Skip to content

Include generated docs in local circuit prompt#83

Open
haocyan0723-code wants to merge 2 commits into
tscircuit:mainfrom
haocyan0723-code:codex/generated-docs-prompt-45-haocyan
Open

Include generated docs in local circuit prompt#83
haocyan0723-code wants to merge 2 commits into
tscircuit:mainfrom
haocyan0723-code:codex/generated-docs-prompt-45-haocyan

Conversation

@haocyan0723-code
Copy link
Copy Markdown

/claim #45

This adds the generated docs from https://docs.tscircuit.com/ai.txt to the local circuit prompt, while keeping prompt creation safe if that docs endpoint is down.

I kept the change small and added focused tests for both paths:

  • generated docs are included when ai.txt is available
  • prompt creation still works when ai.txt cannot be fetched

Checked locally:

  • bun test tests/create-local-circuit-prompt.test.ts
  • biome check lib/prompt-templates/create-local-circuit-prompt.ts tests/create-local-circuit-prompt.test.ts
  • tsc --noEmit --pretty false

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