Skip to content

Include generated docs in local circuit prompt#74

Open
absalonCRC wants to merge 1 commit into
tscircuit:mainfrom
absalonCRC:bounty/generated-docs-prompt-45
Open

Include generated docs in local circuit prompt#74
absalonCRC wants to merge 1 commit into
tscircuit:mainfrom
absalonCRC:bounty/generated-docs-prompt-45

Conversation

@absalonCRC
Copy link
Copy Markdown

@absalonCRC absalonCRC commented May 20, 2026

Summary

  • fetch https://docs.tscircuit.com/ai.txt alongside the component props docs
  • include the generated docs in createLocalCircuitPrompt when available
  • keep prompt generation working if the optional generated-docs endpoint is unavailable
  • add mocked-fetch coverage for inclusion and fallback behavior
  • make OpenAI-backed tests opt-in so blank-key CI runs do not call the API

/claim #45

Payment fallback if Algora needs direct payout: PayPal cultofrozen@gmail.com.

Tests

  • OPENAI_API_KEY= bun test --timeout 50000
  • bunx biome format --write tests/tscircuitCoder.test.ts tests/utils/generate-random-prompts.test.ts tests/prompt-templates/create-local-circuit-prompt.test.ts lib/prompt-templates/create-local-circuit-prompt.ts
  • bun run build
  • git diff --check

@absalonCRC absalonCRC force-pushed the bounty/generated-docs-prompt-45 branch from 21f26ee to f7fa224 Compare May 20, 2026 14:45
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