Skip to content

Use generated docs in local circuit prompt#70

Open
juanfgaviriac wants to merge 1 commit into
tscircuit:mainfrom
juanfgaviriac:codex/generated-docs-prompt
Open

Use generated docs in local circuit prompt#70
juanfgaviriac wants to merge 1 commit into
tscircuit:mainfrom
juanfgaviriac:codex/generated-docs-prompt

Conversation

@juanfgaviriac
Copy link
Copy Markdown

@juanfgaviriac juanfgaviriac commented May 20, 2026

Summary

  • Load the generated tscircuit docs feed from https://docs.tscircuit.com/ai.txt into createLocalCircuitPrompt
  • Keep the generated docs fetch optional so prompt creation still works if the docs feed is unavailable
  • Add focused mocked-fetch coverage for both inclusion and fallback behavior
  • Skip OpenAI-backed tests when OPENAI_API_KEY is absent so the default CI test job stays deterministic

Verification

  • npx --yes bun@1.3.14 test --timeout 50000
  • npx --yes bun@1.3.14 test tests/prompt-templates/create-local-circuit-prompt.test.ts
  • npx --yes bun@1.3.14 x biome check lib/prompt-templates/create-local-circuit-prompt.ts tests/prompt-templates/create-local-circuit-prompt.test.ts tests/tscircuit-coder.test.ts tests/utils/generate-random-prompts.test.ts
  • npx --yes bun@1.3.14 x tsc --noEmit
  • npx --yes bun@1.3.14 run build
  • git diff --check
  • Live prompt smoke confirmed the generated docs section is present when https://docs.tscircuit.com/ai.txt is reachable

/claim #45

@juanfgaviriac juanfgaviriac force-pushed the codex/generated-docs-prompt branch from c2293c9 to e0ccc79 Compare May 20, 2026 04:22
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.

2 participants