app
service-kicad
Public Made by Adomby adom
Shared headless KiCad 10: DRC, ERC, SVG/Gerber/STEP export, Altium library conversion, symbol/footprint/3D-model lookup. Every Adom tool shells to this CLI instead of calling the HTTP API directly.
kicad-cli shim: carry hierarchical schematic dependencies and directory outputs
AI Flow ships its own desktop kicad-cli wrapper (adom-aiflow-kicad-cli-remote, tools/kicad-cli-remote) only because the shared kicad-cli shim does not yet cover what its gates need. We would like to retire the wrapper and call the shim.
Gaps in the shim's desktop lane (checked 2026-10-15):
- Inputs: it sends a file and its same-stem siblings (.kicad_pro, .kicad_dru, .kicad_pcb, .kicad_sch, .kicad_prl). A hierarchical schematic also needs its sub-sheets (Sheetfile properties, recursively, same relative folders),
sym-lib-table,fp-lib-table, and every${KIPRJMOD}library those tables name. Without themsch export netlistandsch ercrun against a broken project. - Outputs: it pulls each
-o/--outputback as a single file.pcb export gerbersandpcb export drillwrite a directory (--output <dir>/), which needs a directory pull (for exampledesktop_pull_globover the job's out folder). - Commands AI Flow uses:
pcb drc --format json --refill-zoneswith project rules,sch export netlist --format kicadsexpr,pcb export gerbers,pcb export drill,pcb export pos. - Small: the temp folder comes from
shell_execute echo %TEMP%, a human-gated call. A read-only desktop path (for example fromdesktop_disk_free's recordingsDir parent, or a dedicated verb) would avoid one approval per job.
Acceptance: the five commands above produce the same outputs through the shim as through tools/kicad-cli-remote on a hierarchical project with project rules. AI Flow will then set ADOM_AIFLOW_KICAD_CLI to kicad-cli and drop the wrapper.
0 Replies
Log in to reply.