Commit Graph
305 Commits
Author SHA1 Message Date
Charis Lam 3ac4a35720 refactor(assistant): streamline text generation
Consolidate prompt generation between evals and prod so that we can always be sure we are testing the prompts that would show up in prod.

Probably want to consolidate the downstream logic as well (minus the mocked tools), will address that in subsequent commit.
2025-10-03 14:10:44 -04:00
Saxon Fletcher ca8d0defd8 Merge branch 'master' into feature/braintrust 2025-09-30 11:36:58 +10:00
Saxon Fletcher e90b8ac495 Context gathering prominence (#39072) 2025-09-30 06:20:13 +10:00
1973615a42 Prompt GPT-5 Optimizations (#39031)
* update onboarding

* update model and fix part issue

* action orientated assistant

* fix tool

* lock

* remove unused filter

* fix tests

* fix again

* update package

* update container

* fix tests

* refactor(ai assistant): break out message markdown and profile picture

* wip

* refactor(ai assistant): break up message component

* refactor: break ai assistant message down into multiple files

* add limitations prompt

* limitations prompt

* link prompt

* refactor: simplify ReportBlock state

* fix: styling of draggable report block header

When the drag handle is showing, it overlaps with the block header.
Decrease the opacity of the header so the handle can be seen and the two
can be distinguished.

* fix: minor tweaks to tool ui

* refactor: simplify DisplayBlockRenderer state

* fix: remove double deploy button in edge function block

When the confirm footer is shown, the deploy button on the top right should be
hidden (not just disabled) to avoid confusion.

* refactor, test: message sanitization by opt-in level

Refactor the message sanitization to have more type safety and be more testable.
Add tests to ensure:

- Message sanitization always runs on generate-v4
- Message sanitization correctly works by opt-in level

* Fix conflicts in pnpm lock

* Couple of nits and refactors

* Revert casing for report block snippet

* adjust sanitised prompt

* Fix tests

* prompt optimizer

* remove realtime for now

* Update apps/studio/lib/ai/prompts.ts

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/studio/lib/ai/prompts.ts

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-09-29 14:07:53 +10:00
626eb30e77 Assistant action orientated approach (#38806)
* update onboarding

* update model and fix part issue

* action orientated assistant

* fix tool

* lock

* remove unused filter

* fix tests

* fix again

* update package

* update container

* fix tests

* refactor(ai assistant): break out message markdown and profile picture

* wip

* refactor(ai assistant): break up message component

* refactor: break ai assistant message down into multiple files

* refactor: simplify ReportBlock state

* fix: styling of draggable report block header

When the drag handle is showing, it overlaps with the block header.
Decrease the opacity of the header so the handle can be seen and the two
can be distinguished.

* fix: minor tweaks to tool ui

* refactor: simplify DisplayBlockRenderer state

* fix: remove double deploy button in edge function block

When the confirm footer is shown, the deploy button on the top right should be
hidden (not just disabled) to avoid confusion.

* refactor, test: message sanitization by opt-in level

Refactor the message sanitization to have more type safety and be more testable.
Add tests to ensure:

- Message sanitization always runs on generate-v4
- Message sanitization correctly works by opt-in level

* Fix conflicts in pnpm lock

* Couple of nits and refactors

* Revert casing for report block snippet

* adjust sanitised prompt

* Fix tests

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-09-29 03:57:36 +00:00
Andrew Valleteau e8c37ccdbd fix(studio): refetch GitHub repositories after new install (#39021)
* fix(studio): add refetch after github pop-up close

* fix: github.ts

* fix: add delay

* chore: increase to 2s

* chore: remove debug logs
2025-09-27 04:59:47 +00:00
Matt Rossman e2960f38ed feat: self-hosted MCP development tools (#39022)
* feat: stub `getDevelopmentOperations`

* feat: `getProjectUrl`

* feat: `getAnonKey`

* feat: `generateTypescriptTypes`

* chore: comment for consistency

* fix: "development" in supported feature group schema

* fix: `ResponseError` checks

* chore: rename `typescript.ts` to `generate-types.ts`

* chore: unused import
2025-09-26 09:02:15 -04:00
5f533247e1 Update docs url to env var (#38772)
* Update Supabase docs URLs to use env variable

Co-authored-by: a <a@alaisteryoung.com>

* Refactor: Use DOCS_URL constant for documentation links

This change centralizes documentation links using a new DOCS_URL constant, improving maintainability and consistency.

Co-authored-by: a <a@alaisteryoung.com>

* Refactor: Use DOCS_URL constant for all documentation links

This change replaces hardcoded documentation URLs with a centralized constant, improving maintainability and consistency.

Co-authored-by: a <a@alaisteryoung.com>

* replace more instances

* ci: Autofix updates from GitHub workflow

* remaining instances

* fix duplicate useRouter

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: alaister <10985857+alaister@users.noreply.github.com>
2025-09-26 10:16:33 +00:00
Saxon Fletcher 377fb046b5 Merge branch 'chore/ai-flow-limitations' into feature/braintrust 2025-09-26 16:50:41 +10:00
Saxon Fletcher 5493955b47 Merge branch 'chore/ai-flow-execute' into feature/braintrust 2025-09-26 16:44:05 +10:00
Saxon Fletcher 36cecc322b prompt optimizer 2025-09-26 16:42:03 +10:00
Saxon Fletcher 4374ad695f Merge branch 'chore/ai-flow-execute' into chore/ai-flow-limitations 2025-09-26 16:41:19 +10:00
Joshen Lim a7bddc8bb0 Fix tests 2025-09-25 15:23:59 +08:00
Saxon Fletcher b9e50838ee adjust sanitised prompt 2025-09-25 17:10:10 +10:00
Joshen Lim 15b32544a5 Couple of nits and refactors 2025-09-25 12:50:13 +08:00
Joshen Lim 654b10dc69 merge master resolve conflicts 2025-09-25 11:21:21 +08:00
Charis Lam 9869254e02 refactor, test: message sanitization by opt-in level
Refactor the message sanitization to have more type safety and be more testable.
Add tests to ensure:

- Message sanitization always runs on generate-v4
- Message sanitization correctly works by opt-in level
2025-09-24 18:23:43 -04:00
Greg Richardson 081a75350e fix(local-mcp): database operations (#38965)
* fix(local-mcp): return values from database operations

* fix(local-mcp): pg-meta status code forwarding
2025-09-23 16:41:36 -06:00
Greg Richardson 9820707d71 feat: local mcp server (#38797)
* feat: local mcp server

* feat(local-mcp): implement migrations

* fix: remove unsupported mcp args

* feat(local-mcp): tests

* fix(local-mcp): packages to adhere to minimumReleaseAge

* fix(mcp): import path for createSupabaseApiPlatform

* fix(local-mcp): move tests out of pages/api dir

* refactor: self-hosted execute sql logic

* fix: deps
2025-09-23 12:00:08 -06:00
Saxon Fletcher 6eb2345956 link prompt 2025-09-23 13:47:03 +10:00
Saxon Fletcher 5ab6abded2 limitations prompt 2025-09-23 13:46:09 +10:00
Saxon Fletcher d276aca6cb Chore/ai flow model (#38805)
* update onboarding

* update model and fix part issue

* lock

* remove unused filter

* fix tests

* fix again

* update package

* fix merge issue
2025-09-23 12:46:20 +10:00
Saxon Fletcher 96ec5c8658 add limitations prompt 2025-09-23 07:15:00 +10:00
Saxon Fletcher 6fd83602e5 more evals 2025-09-19 16:54:31 +10:00
Saxon Fletcher 12826fb12d more evals 2025-09-19 16:40:29 +10:00
Saxon Fletcher af903d0a8e Merge branch 'chore/ai-flow-execute' into feature/braintrust 2025-09-19 16:06:43 +10:00
Saxon Fletcher e96d9d5c52 Merge branch 'master' into feature/braintrust 2025-09-19 15:17:29 +10:00
Joshen Lim 1b91f5ae79 Address odd bug between data grid contextmenu and overlay (#38809)
* Address odd bug between data grid contextmenu and overlay

* nit

* Smol tweak
2025-09-18 18:54:28 +08:00
Saxon Fletcher d9fcef51b4 fix tests 2025-09-18 16:00:09 +10:00
Saxon Fletcher 252490e101 Merge branch 'chore/ai-flow-model' into chore/ai-flow-execute 2025-09-18 15:32:13 +10:00
Saxon Fletcher 6aac53f457 fix again 2025-09-18 15:21:22 +10:00
Saxon Fletcher bbe9b8bbce fix tests 2025-09-18 15:19:00 +10:00
Saxon Fletcher 3f0189ef3c remove unused filter 2025-09-18 15:13:07 +10:00
Saxon Fletcher b871b5f0f5 action orientated assistant 2025-09-18 14:23:24 +10:00
Saxon Fletcher 52bd2628d2 update model and fix part issue 2025-09-18 14:04:03 +10:00
Charis 2e6a7093d6 refactor: make MCP docs url configurable (#38763) 2025-09-17 12:25:31 -04:00
Charis 283b125369 fix: failing type errors in build (#38761)
* fix(www): types for awaited params

* fix(docs): no extraneous exports from route page

* fix(studio): api handler types, no non-handlers allowed in pages
2025-09-17 15:55:38 +10:00
Saxon Fletcher b3a687e7a4 Fix filtering issue (#38613)
filter issue
2025-09-11 16:32:26 +10:00
Saxon Fletcher 3775607213 Re-add get_logs tool (#38612)
readd log tool
2025-09-11 16:32:04 +10:00
Joshen Lim dabfaa8972 Support for projects pagination part 1 (#38298)
* init

* Infinite scrolling pagination for projects in table view

* Infinite scrolling pagination for projects in cards view

* Shift searching projects to URL state + to server side

* Shift status filter to URL state

* opt to use local storage query for view moe

* update wildcard project route

* add created at value, and shift filter status to server side

* Nit

* final nit

* Address comments

* Fix

* Prettier

* Raise page limit to 96
2025-09-11 14:02:58 +08:00
Saxon Fletcher 48059bd2b3 cleanup 2025-09-10 20:41:57 +10:00
Saxon Fletcher 577c3bf9bf Refine prompt (#38576)
refine prompt
2025-09-10 15:14:34 +08:00
Saxon Fletcher 00d4dda6f8 update to add logging 2025-09-10 16:54:10 +10:00
Saxon Fletcher 537026968c adjust evals 2025-09-10 16:13:00 +10:00
Saxon Fletcher f445d454c8 Merge branch 'master' into feature/braintrust 2025-09-10 16:12:37 +10:00
Saxon FletcherandJoshen Lim bf004b8a1d Choose provider and model (#38267)
* choose provider and model

* fix test

* Fix lint

* Nit clean up

* add provider options and remove anthropic

* remove package

* use chat model and update prompt

* prompt rendering

* default to pro

* fix test

* low

* remove log

* remove redundant part.text

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-09-09 10:05:39 +00:00
Saxon Fletcher 2672ddf897 fix 2025-09-04 15:11:46 +10:00
Saxon Fletcher c6148c0eae mock 2025-09-04 14:58:01 +10:00
Saxon Fletcher aee3e1b016 setup braintrust 2025-09-04 13:46:26 +10:00
Saxon Fletcher 67de319003 prompt rendering 2025-09-04 10:03:07 +10:00