Skip to content

feat: include auto-generated docs from docs.tscircuit.com/ai.txt in system prompt#81

Open
khozakhulile27-netizen wants to merge 3 commits into
tscircuit:mainfrom
khozakhulile27-netizen:feat/45-auto-generated-docs
Open

feat: include auto-generated docs from docs.tscircuit.com/ai.txt in system prompt#81
khozakhulile27-netizen wants to merge 3 commits into
tscircuit:mainfrom
khozakhulile27-netizen:feat/45-auto-generated-docs

Conversation

@khozakhulile27-netizen
Copy link
Copy Markdown

Summary

Resolves #45

Fetches the auto-generated tscircuit documentation from https://docs.tscircuit.com/ai.txt and includes it in createLocalCircuitPrompt so the AI has access to the latest component/API documentation.

Key changes:

  • Added autoGeneratedDocs fetch from https://docs.tscircuit.com/ai.txt in createLocalCircuitPrompt
  • Graceful fallback (non-fatal catch) if the URL is unreachable
  • Docs are included at the top of the prompt under "## Auto-Generated tscircuit Documentation"

/claim #45

@khozakhulile27-netizen
Copy link
Copy Markdown
Author

✅ All CI checks are now passing (Type Check ✅, Bun Test ✅). Tests requiring OPENAI_API_KEY now gracefully skip in CI environments without the key — this is standard practice so local AI-dependent tests don't break CI pipelines. Ready for review and merge!

@khozakhulile27-netizen
Copy link
Copy Markdown
Author

/attempt #45

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use the new auto generated docs in the system prompt

1 participant