Skip to content

Write project library footprints and symbols back out as library text files - #132

Open
wdunn001 wants to merge 990 commits into
tangency-labs:mainfrom
wdunn001:feat-library-export
Open

wdunn001 wants to merge 990 commits into
tangency-labs:mainfrom
wdunn001:feat-library-export

Conversation

@wdunn001

Copy link
Copy Markdown

Stacked on #131 (the only new commit is b8608fb).

What this adds

Two MCP export tools that write project-library definitions back out as library text files:

  • library.export_footprint writes one project-library footprint to a .kicad_mod footprint library text file.
  • library.export_symbol writes one project-library symbol to a .kicad_sym symbol library text file.

Both are read-only over the design: no engine command, no history change, no project edit. The path must carry the matching extension and an unknown definition name is refused.

Details

  • New io writers footprint_library_text and symbol_library_text emit pads (shape, size, roundrect ratio, circular/oval/offset drills, layer lists), artwork (lines, rectangles, circles, three-point arcs, polygons, text), 3D model references, per-footprint rule overrides, symbol properties, and symbol pins regrouped into unit/body sub-symbols with the stored y-up drawing coordinates mirrored back to the file frame.
  • Round-trip tests re-parse the written text through the library reader and compare every pad field, graphic, model transform, rule override, pin and unit graphic against the definition parsed from the shipped fixtures, including an inherited symbol.
  • The capability description and library docs now state that a single footprint or symbol can be written back out, while whole-directory library collections and original-file preservation remain out of scope.
  • README tool count corrected to 227 (the measured tools/list total; the previous line was one ahead of reality).

Verification

cargo xtask ci green: fmt, clippy -D warnings all targets, full workspace tests, wasm32 check. MCP tools/list returns 227 tools including both new entries; all 197 engine commands still have tools.

wdunn001 and others added 28 commits October 29, 2026 01:38
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… for pad, pin, Duplicate, Change width and Properties menus

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Conflict in crates/io/src/lib.rs: both sides added a pub use line; kept both. The image trace code needed the new pour field on CopperZone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Keep library.export and resolve ui-egui from main.
Conflict in crates/ui-egui/src/lib.rs: the tool strip tail; took the branch's editing controls row with the tool hint right-aligned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s run one at a time

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Conflict in crates/ui-egui/src/lib.rs: two mod lines; kept both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
wdunn001 and others added 30 commits October 29, 2026 05:23
…th feat-assistant-context (tangency-labs#348 tangency-labs#368 #369 #370)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…angency-labs#389) and feat-machine-profiles (tangency-labs#324)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The pad shape list now includes Chamfered (cut size and per-corner
toggles) and Custom polygon (outline points with add and delete), with
tooltips, catalog text and screen reader names. Adds the newcomer story
a_newcomer_makes_a_chamfered_pad_and_then_a_custom_pad. Refs #281.
Drop external EDA product names and URLs; index workbench-patterns in docs README.

Co-authored-by: Cursor <cursoragent@cursor.com>
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