Skip to content

Include generated docs in local circuit prompt#80

Open
NightVibes33 wants to merge 1 commit into
tscircuit:mainfrom
NightVibes33:add-generated-docs-to-system-prompt
Open

Include generated docs in local circuit prompt#80
NightVibes33 wants to merge 1 commit into
tscircuit:mainfrom
NightVibes33:add-generated-docs-to-system-prompt

Conversation

@NightVibes33
Copy link
Copy Markdown

@NightVibes33 NightVibes33 commented May 23, 2026

Summary

  • fetch the generated tscircuit docs from https://docs.tscircuit.com/ai.txt in createLocalCircuitPrompt
  • keep the existing component props docs and handwritten API overview as fallback context
  • cache the generated-docs fetch and continue prompt creation if the docs endpoint is unavailable
  • add focused prompt-template coverage for docs inclusion, fallback behavior, and cache reuse
  • gate OpenAI-dependent tests when no OPENAI_API_KEY is available so default test runs stay focused on repo logic

Verification

  • GitHub Actions type-check: passing
  • GitHub Actions test: passing
  • git diff --check

/claim #45

@NightVibes33 NightVibes33 force-pushed the add-generated-docs-to-system-prompt branch from a4874c7 to 3a47797 Compare May 23, 2026 03:54
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