Skip to content

Use generated docs in local circuit prompt#95

Open
yanziwei wants to merge 1 commit into
tscircuit:mainfrom
yanziwei:yanziwei/use-generated-docs-prompt
Open

Use generated docs in local circuit prompt#95
yanziwei wants to merge 1 commit into
tscircuit:mainfrom
yanziwei:yanziwei/use-generated-docs-prompt

Conversation

@yanziwei

@yanziwei yanziwei commented Jun 8, 2026

Copy link
Copy Markdown

Summary

/claim #45

  • Switches createLocalCircuitPrompt from the older generated component types markdown to https://docs.tscircuit.com/ai.txt.
  • Keeps OpenAI-backed tests deterministic in default CI/local runs by skipping them when OPENAI_API_KEY is not configured.
  • Leaves the existing prompt cleanup behavior intact.

Validation

  • npx --yes bun test --timeout 50000 -> 11 pass, 2 skip, 0 fail
  • npx tsc --noEmit --pretty false
  • npm run build
  • git diff --check

Note: this environment does not have a global bun, so I used npx --yes bun for the Bun test run. Dependencies were installed with npm install --no-package-lock --legacy-peer-deps for local validation without changing the lockfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant