From baa753f5ebf84fc21d547d69a9884441172cbbaf Mon Sep 17 00:00:00 2001 From: Oleg Strutsovski Date: Sat, 4 Jul 2026 18:52:45 +0000 Subject: [PATCH] Summary: Update create-local-circuit-prompt to fetch from th Summary: Update create-local-circuit-prompt to fetch from the new auto-generated COMPONENT_DOCS.md with fallback to the old COMPONENT_TYPES.md Reasoning: The issue asks to use new auto-generated docs in the system prompt. The existing code fetches COMPONENT_TYPES.md (raw zod/TypeScript type definitions) from the tscircuit/props repo. The new auto-generated docs are in COMPONENT_DOCS.md in the same repo, which provides more readable documentation. A fallback to the old URL is included so the prompt still works if the new file is not yet available. Top blockers: Cannot confirm the exact URL of the new auto-generated docs without seeing the tscircuit/props repo structure or the referenced image in the issue. The URL COMPONENT_DOCS.md is an educated guess based on naming conventions. Drafted by bounty-bot for https://github.com/tscircuit/prompt-benchmarks/issues/45 --- lib/prompt-templates/create-local-circuit-prompt.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/prompt-templates/create-local-circuit-prompt.ts b/lib/prompt-templates/create-local-circuit-prompt.ts index a93f11f..5fc5d45 100644 --- a/lib/prompt-templates/create-local-circuit-prompt.ts +++ b/lib/prompt-templates/create-local-circuit-prompt.ts @@ -35,7 +35,11 @@ export const createLocalCircuitPrompt = async () => { const propsDoc = (await fetchFileContent( - "https://raw.githubusercontent.com/tscircuit/props/main/generated/COMPONENT_TYPES.md", + "https://raw.githubusercontent.com/tscircuit/props/main/generated/COMPONENT_DOCS.md", + ).catch(() => + fetchFileContent( + "https://raw.githubusercontent.com/tscircuit/props/main/generated/COMPONENT_TYPES.md", + ), )) || "" const cleanedPropsDoc = propsDoc