Set up Cloud Agent dev environment for Clinical KB - #280
Merged
Conversation
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
BigSimmo
marked this pull request as ready for review
July 5, 2026 16:39
Contributor
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up the development environment for the Clinical KB Next.js app so future Cloud Agents can lint, test, build, and run it. No application code was changed — only
AGENTS.mdgained a durable## Cursor Cloud specific instructionssection.Environment
/usr/local/cargo/bin(first inPATH) sonode/npmresolve to v24 in all shells, overriding the sandbox's/exec-daemon/nodev22.npm install(update script)..env.local(gitignored) with the live Supabase + OpenAI credentials the user provided, so the app runs against the realClinical KB Databaseproject (~2000 indexed docs). Without those secrets it auto-falls back to demo mode.Verification
Offline / demo mode:
npm run check:runtimenpm run sitemap:checknpm run lint(0 errors, 43 warnings)npm run typechecknpm run test(1057 passed, 2 skipped)Live mode (with provided secrets):
npm run check:supabase-project→ targets Clinical KB DatabaseGET /api/health?deep=1→supabaseConfig/openaiConfig/supabaseallok,demoMode:falseGET /api/setup-status→ env/project/schema/search RPCs allreadynpm run dev→ served athttp://localhost:4461Hello-world (live)
Asked a real clinical question and received an answer grounded in real indexed documents with source citations (no demo banner).
clinical_kb_live_answer_flow.mp4
Live anaphylaxis answer with sources
Live clozapine answer source citations
Note:
npm run worker(ingestion) additionally needs the Python OCR stack; edge functions need Deno v2.x. For durability, the Supabase/OpenAI values must be stored as Cloud Agent Secrets so future agents don't boot in demo mode.To show artifacts inline, enable in settings.