Files
claude-kicad-helper/kicad-query.mjs
mikael-lovqvists-claude-agent ec46df5d14 Refactor: separate data functions from rendering
Query functions now return plain data objects. Two renderers
(render_human, render_json) handle output formatting. A single
run_query dispatcher routes to the right data function by file
type and query name, then main() calls the appropriate renderer
based on --format. Eliminates duplicated *_json variants and
the OUTPUT_FORMAT global.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 23:29:29 +00:00

28 KiB