Skip to content

Include generated docs in local circuit prompt#82

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

Include generated docs in local circuit prompt#82
DevvoZA wants to merge 2 commits into
tscircuit:mainfrom
DevvoZA:codex/generated-docs-prompt-45

Conversation

@DevvoZA
Copy link
Copy Markdown

@DevvoZA DevvoZA commented May 24, 2026

/claim #45

Summary

  • Load https://docs.tscircuit.com/ai.txt as optional auto-generated tscircuit documentation for createLocalCircuitPrompt.
  • Insert the generated docs before the existing handwritten API overview when available.
  • Keep prompt creation working if the optional docs endpoint is unavailable, and cache successful generated-doc fetches.
  • Add mocked-fetch coverage for generated-doc inclusion, fallback behavior, and caching.
  • Skip OpenAI-live tests when OPENAI_API_KEY is unavailable so fork PR CI remains deterministic.

Verification

  • npx --yes bun@latest test --timeout 50000
  • npx --yes bun@latest x tsc --noEmit
  • npx --yes bun@latest run build
  • git diff --check

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5145af3d39

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/prompt-templates/create-local-circuit-prompt.ts
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.

1 participant