copperflow 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +142 -12
- package/dist/app/THIRD_PARTY_LICENSES.txt +5 -0
- package/dist/app/assets/NewPartDialog-BBJaZFCo.js +160 -0
- package/dist/app/assets/VerifyPartDialog-BHLqD_WJ.css +1 -0
- package/dist/app/assets/VerifyPartDialog-Ey6xpQ_U.js +2 -0
- package/dist/app/assets/index-BKoIKo22.css +1 -0
- package/dist/app/assets/index-DPmr2dR1.js +20 -0
- package/dist/app/assets/texture-worker-CyI_g_XZ.js +1 -0
- package/dist/app/index.html +2 -2
- package/dist/cli-commands.js +170 -23
- package/dist/cli-commands.js.map +1 -1
- package/dist/cli-impedance.d.ts +4 -0
- package/dist/cli-impedance.js +56 -0
- package/dist/cli-impedance.js.map +1 -0
- package/dist/cli-library.d.ts +5 -0
- package/dist/cli-library.js +58 -0
- package/dist/cli-library.js.map +1 -0
- package/dist/cli-modules.d.ts +6 -0
- package/dist/cli-modules.js +33 -0
- package/dist/cli-modules.js.map +1 -0
- package/dist/cli-simulate.d.ts +3 -0
- package/dist/cli-simulate.js +54 -0
- package/dist/cli-simulate.js.map +1 -0
- package/dist/cli-studio.d.ts +1 -0
- package/dist/cli-studio.js +27 -0
- package/dist/cli-studio.js.map +1 -0
- package/dist/core/analyze.js +5 -2
- package/dist/core/analyze.js.map +1 -1
- package/dist/core/board-import.d.ts +39 -0
- package/dist/core/board-import.js +114 -0
- package/dist/core/board-import.js.map +1 -0
- package/dist/core/board-shape-edit.d.ts +13 -0
- package/dist/core/board-shape-edit.js +134 -0
- package/dist/core/board-shape-edit.js.map +1 -0
- package/dist/core/bom.d.ts +6 -1
- package/dist/core/bom.js +23 -4
- package/dist/core/bom.js.map +1 -1
- package/dist/core/case-results.d.ts +4 -0
- package/dist/core/case-results.js +9 -0
- package/dist/core/case-results.js.map +1 -0
- package/dist/core/change-files.d.ts +31 -0
- package/dist/core/change-files.js +67 -0
- package/dist/core/change-files.js.map +1 -0
- package/dist/core/change-render.d.ts +18 -0
- package/dist/core/change-render.js +48 -0
- package/dist/core/change-render.js.map +1 -0
- package/dist/core/change-view.d.ts +33 -0
- package/dist/core/change-view.js +73 -0
- package/dist/core/change-view.js.map +1 -0
- package/dist/core/change-words.d.ts +39 -0
- package/dist/core/change-words.js +214 -0
- package/dist/core/change-words.js.map +1 -0
- package/dist/core/checklist-text.d.ts +21 -0
- package/dist/core/checklist-text.js +59 -0
- package/dist/core/checklist-text.js.map +1 -0
- package/dist/core/edit.js +12 -3
- package/dist/core/edit.js.map +1 -1
- package/dist/core/fabrication.d.ts +9 -2
- package/dist/core/fabrication.js +29 -10
- package/dist/core/fabrication.js.map +1 -1
- package/dist/core/git.d.ts +16 -0
- package/dist/core/git.js +51 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/home.d.ts +2 -0
- package/dist/core/home.js +10 -0
- package/dist/core/home.js.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/instance-copper.d.ts +25 -0
- package/dist/core/instance-copper.js +142 -0
- package/dist/core/instance-copper.js.map +1 -0
- package/dist/core/instance-move.d.ts +23 -0
- package/dist/core/instance-move.js +59 -0
- package/dist/core/instance-move.js.map +1 -0
- package/dist/core/instance-requests.d.ts +3 -2
- package/dist/core/instance-requests.js +17 -3
- package/dist/core/instance-requests.js.map +1 -1
- package/dist/core/library-modules.d.ts +29 -0
- package/dist/core/library-modules.js +324 -0
- package/dist/core/library-modules.js.map +1 -0
- package/dist/core/library-sources.d.ts +33 -0
- package/dist/core/library-sources.js +179 -0
- package/dist/core/library-sources.js.map +1 -0
- package/dist/core/library.d.ts +46 -0
- package/dist/core/library.js +54 -16
- package/dist/core/library.js.map +1 -1
- package/dist/core/modules.d.ts +45 -0
- package/dist/core/modules.js +301 -0
- package/dist/core/modules.js.map +1 -0
- package/dist/core/new-circuit-sheets.d.ts +11 -2
- package/dist/core/new-circuit-sheets.js +35 -6
- package/dist/core/new-circuit-sheets.js.map +1 -1
- package/dist/core/order-report.d.ts +10 -0
- package/dist/core/order-report.js +93 -0
- package/dist/core/order-report.js.map +1 -0
- package/dist/core/pin-header.d.ts +5 -0
- package/dist/core/pin-header.js +77 -0
- package/dist/core/pin-header.js.map +1 -0
- package/dist/core/pin-map.d.ts +46 -0
- package/dist/core/pin-map.js +101 -0
- package/dist/core/pin-map.js.map +1 -0
- package/dist/core/placement-write.d.ts +2 -0
- package/dist/core/placement-write.js +12 -6
- package/dist/core/placement-write.js.map +1 -1
- package/dist/core/plain-sheet.d.ts +12 -0
- package/dist/core/plain-sheet.js +169 -0
- package/dist/core/plain-sheet.js.map +1 -0
- package/dist/core/render.d.ts +24 -4
- package/dist/core/render.js +16 -6
- package/dist/core/render.js.map +1 -1
- package/dist/core/sheet-card.d.ts +37 -0
- package/dist/core/sheet-card.js +163 -0
- package/dist/core/sheet-card.js.map +1 -0
- package/dist/core/sheet-files.js +10 -3
- package/dist/core/sheet-files.js.map +1 -1
- package/dist/core/simulate.d.ts +19 -0
- package/dist/core/simulate.js +72 -0
- package/dist/core/simulate.js.map +1 -0
- package/dist/core/step-export.d.ts +17 -0
- package/dist/core/step-export.js +35 -0
- package/dist/core/step-export.js.map +1 -0
- package/dist/core/supplier-prop.d.ts +6 -0
- package/dist/core/supplier-prop.js +21 -0
- package/dist/core/supplier-prop.js.map +1 -0
- package/dist/core/types.d.ts +20 -0
- package/dist/core/workspace.d.ts +6 -1
- package/dist/core/workspace.js +15 -3
- package/dist/core/workspace.js.map +1 -1
- package/dist/engine/board.js +3 -1
- package/dist/engine/board.js.map +1 -1
- package/dist/engine/checks/drc-parts.js +7 -7
- package/dist/engine/checks/drc-parts.js.map +1 -1
- package/dist/engine/checks/erc.js +35 -3
- package/dist/engine/checks/erc.js.map +1 -1
- package/dist/engine/checks/fast-lines.d.ts +60 -0
- package/dist/engine/checks/fast-lines.js +209 -0
- package/dist/engine/checks/fast-lines.js.map +1 -0
- package/dist/engine/checks/index.js +2 -0
- package/dist/engine/checks/index.js.map +1 -1
- package/dist/engine/component.d.ts +2 -0
- package/dist/engine/component.js +18 -1
- package/dist/engine/component.js.map +1 -1
- package/dist/engine/design-diff.d.ts +120 -0
- package/dist/engine/design-diff.js +249 -0
- package/dist/engine/design-diff.js.map +1 -0
- package/dist/engine/design.d.ts +3 -0
- package/dist/engine/design.js +7 -2
- package/dist/engine/design.js.map +1 -1
- package/dist/engine/dxf/board.d.ts +42 -0
- package/dist/engine/dxf/board.js +218 -0
- package/dist/engine/dxf/board.js.map +1 -0
- package/dist/engine/dxf/index.d.ts +2 -0
- package/dist/engine/dxf/index.js +3 -0
- package/dist/engine/dxf/index.js.map +1 -0
- package/dist/engine/dxf/reader.d.ts +43 -0
- package/dist/engine/dxf/reader.js +142 -0
- package/dist/engine/dxf/reader.js.map +1 -0
- package/dist/engine/elaborate.js +14 -4
- package/dist/engine/elaborate.js.map +1 -1
- package/dist/engine/fab/designator-places.d.ts +101 -0
- package/dist/engine/fab/designator-places.js +259 -0
- package/dist/engine/fab/designator-places.js.map +1 -0
- package/dist/engine/fab/designators.d.ts +26 -14
- package/dist/engine/fab/designators.js +320 -70
- package/dist/engine/fab/designators.js.map +1 -1
- package/dist/engine/fab/export.d.ts +17 -1
- package/dist/engine/fab/export.js +26 -4
- package/dist/engine/fab/export.js.map +1 -1
- package/dist/engine/fab/layers.js +6 -6
- package/dist/engine/fab/layers.js.map +1 -1
- package/dist/engine/fab/names.d.ts +2 -2
- package/dist/engine/fab/names.js +4 -2
- package/dist/engine/fab/names.js.map +1 -1
- package/dist/engine/fab/picture/board-picture.d.ts +52 -0
- package/dist/engine/fab/picture/board-picture.js +102 -0
- package/dist/engine/fab/picture/board-picture.js.map +1 -0
- package/dist/engine/fab/picture/board-view.d.ts +20 -0
- package/dist/engine/fab/picture/board-view.js +50 -0
- package/dist/engine/fab/picture/board-view.js.map +1 -0
- package/dist/engine/fab/picture/compose.d.ts +50 -0
- package/dist/engine/fab/picture/compose.js +208 -0
- package/dist/engine/fab/picture/compose.js.map +1 -0
- package/dist/engine/fab/picture/layer-images.d.ts +9 -0
- package/dist/engine/fab/picture/layer-images.js +67 -0
- package/dist/engine/fab/picture/layer-images.js.map +1 -0
- package/dist/engine/fab/picture/looks.d.ts +152 -0
- package/dist/engine/fab/picture/looks.js +53 -0
- package/dist/engine/fab/picture/looks.js.map +1 -0
- package/dist/engine/fab/picture/png.d.ts +31 -0
- package/dist/engine/fab/picture/png.js +47 -0
- package/dist/engine/fab/picture/png.js.map +1 -0
- package/dist/engine/fab/picture/raster.d.ts +46 -0
- package/dist/engine/fab/picture/raster.js +170 -0
- package/dist/engine/fab/picture/raster.js.map +1 -0
- package/dist/engine/fab/stroke-font.d.ts +2 -2
- package/dist/engine/fab/stroke-font.js +7 -6
- package/dist/engine/fab/stroke-font.js.map +1 -1
- package/dist/engine/fab/zip.d.ts +2 -1
- package/dist/engine/fab/zip.js +1 -1
- package/dist/engine/fab/zip.js.map +1 -1
- package/dist/engine/impedance.d.ts +72 -0
- package/dist/engine/impedance.js +133 -0
- package/dist/engine/impedance.js.map +1 -0
- package/dist/engine/line-length.d.ts +15 -0
- package/dist/engine/line-length.js +116 -0
- package/dist/engine/line-length.js.map +1 -0
- package/dist/engine/model.d.ts +17 -1
- package/dist/engine/model.js.map +1 -1
- package/dist/engine/pcb-place/block-board.d.ts +9 -0
- package/dist/engine/pcb-place/block-board.js +256 -0
- package/dist/engine/pcb-place/block-board.js.map +1 -0
- package/dist/engine/pcb-place/blocks.d.ts +31 -6
- package/dist/engine/pcb-place/blocks.js +37 -8
- package/dist/engine/pcb-place/blocks.js.map +1 -1
- package/dist/engine/pcb-place/constructive.d.ts +3 -2
- package/dist/engine/pcb-place/constructive.js +14 -2
- package/dist/engine/pcb-place/constructive.js.map +1 -1
- package/dist/engine/pcb-place/index.d.ts +8 -0
- package/dist/engine/pcb-place/index.js +7 -0
- package/dist/engine/pcb-place/index.js.map +1 -1
- package/dist/engine/pcb-place/roles.d.ts +3 -1
- package/dist/engine/pcb-place/roles.js +5 -0
- package/dist/engine/pcb-place/roles.js.map +1 -1
- package/dist/engine/pcb-place/scope.js +6 -1
- package/dist/engine/pcb-place/scope.js.map +1 -1
- package/dist/engine/pcb.d.ts +6 -0
- package/dist/engine/pcb.js +12 -1
- package/dist/engine/pcb.js.map +1 -1
- package/dist/engine/router/replicate.js +4 -0
- package/dist/engine/router/replicate.js.map +1 -1
- package/dist/engine/router/route-board.d.ts +2 -0
- package/dist/engine/router/route-board.js +27 -1
- package/dist/engine/router/route-board.js.map +1 -1
- package/dist/engine/rules/impedance-widths.d.ts +20 -0
- package/dist/engine/rules/impedance-widths.js +57 -0
- package/dist/engine/rules/impedance-widths.js.map +1 -0
- package/dist/engine/rules/load.js +11 -2
- package/dist/engine/rules/load.js.map +1 -1
- package/dist/engine/rules/pairs.d.ts +27 -0
- package/dist/engine/rules/pairs.js +86 -0
- package/dist/engine/rules/pairs.js.map +1 -0
- package/dist/engine/rules/profiles.js +16 -0
- package/dist/engine/rules/profiles.js.map +1 -1
- package/dist/engine/rules/schema.d.ts +44 -0
- package/dist/engine/rules/schema.js +16 -1
- package/dist/engine/rules/schema.js.map +1 -1
- package/dist/engine/sheet-ports.d.ts +17 -1
- package/dist/engine/sheet-ports.js +38 -1
- package/dist/engine/sheet-ports.js.map +1 -1
- package/dist/engine/sim/answer.d.ts +13 -0
- package/dist/engine/sim/answer.js +101 -0
- package/dist/engine/sim/answer.js.map +1 -0
- package/dist/engine/sim/cases.d.ts +29 -0
- package/dist/engine/sim/cases.js +63 -0
- package/dist/engine/sim/cases.js.map +1 -0
- package/dist/engine/sim/devices.d.ts +109 -0
- package/dist/engine/sim/devices.js +137 -0
- package/dist/engine/sim/devices.js.map +1 -0
- package/dist/engine/sim/elements.d.ts +49 -0
- package/dist/engine/sim/elements.js +2 -0
- package/dist/engine/sim/elements.js.map +1 -0
- package/dist/engine/sim/from-circuit.d.ts +52 -0
- package/dist/engine/sim/from-circuit.js +354 -0
- package/dist/engine/sim/from-circuit.js.map +1 -0
- package/dist/engine/sim/limits.d.ts +12 -0
- package/dist/engine/sim/limits.js +79 -0
- package/dist/engine/sim/limits.js.map +1 -0
- package/dist/engine/sim/linear.d.ts +2 -0
- package/dist/engine/sim/linear.js +49 -0
- package/dist/engine/sim/linear.js.map +1 -0
- package/dist/engine/sim/model-schema.d.ts +246 -0
- package/dist/engine/sim/model-schema.js +115 -0
- package/dist/engine/sim/model-schema.js.map +1 -0
- package/dist/engine/sim/part-models.d.ts +47 -0
- package/dist/engine/sim/part-models.js +102 -0
- package/dist/engine/sim/part-models.js.map +1 -0
- package/dist/engine/sim/run.d.ts +14 -0
- package/dist/engine/sim/run.js +13 -0
- package/dist/engine/sim/run.js.map +1 -0
- package/dist/engine/sim/solve.d.ts +42 -0
- package/dist/engine/sim/solve.js +294 -0
- package/dist/engine/sim/solve.js.map +1 -0
- package/dist/engine/sim/spice.d.ts +5 -0
- package/dist/engine/sim/spice.js +66 -0
- package/dist/engine/sim/spice.js.map +1 -0
- package/dist/engine/sim/values.d.ts +4 -0
- package/dist/engine/sim/values.js +40 -0
- package/dist/engine/sim/values.js.map +1 -0
- package/dist/engine/solid/heights.d.ts +29 -0
- package/dist/engine/solid/heights.js +87 -0
- package/dist/engine/solid/heights.js.map +1 -0
- package/dist/engine/solid/limits.d.ts +7 -0
- package/dist/engine/solid/limits.js +20 -0
- package/dist/engine/solid/limits.js.map +1 -0
- package/dist/engine/solid/model.d.ts +54 -0
- package/dist/engine/solid/model.js +147 -0
- package/dist/engine/solid/model.js.map +1 -0
- package/dist/engine/solid/step.d.ts +5 -0
- package/dist/engine/solid/step.js +164 -0
- package/dist/engine/solid/step.js.map +1 -0
- package/dist/engine/solid/thickness.d.ts +11 -0
- package/dist/engine/solid/thickness.js +10 -0
- package/dist/engine/solid/thickness.js.map +1 -0
- package/dist/library/kicad/board.d.ts +26 -0
- package/dist/library/kicad/board.js +96 -0
- package/dist/library/kicad/board.js.map +1 -0
- package/dist/library/kicad/copper.d.ts +44 -0
- package/dist/library/kicad/copper.js +106 -0
- package/dist/library/kicad/copper.js.map +1 -0
- package/dist/library/kicad/footprints.d.ts +62 -0
- package/dist/library/kicad/footprints.js +184 -0
- package/dist/library/kicad/footprints.js.map +1 -0
- package/dist/library/kicad/geometry.d.ts +36 -0
- package/dist/library/kicad/geometry.js +84 -0
- package/dist/library/kicad/geometry.js.map +1 -0
- package/dist/library/kicad/import.d.ts +58 -0
- package/dist/library/kicad/import.js +240 -0
- package/dist/library/kicad/import.js.map +1 -0
- package/dist/library/kicad/plan.d.ts +40 -0
- package/dist/library/kicad/plan.js +139 -0
- package/dist/library/kicad/plan.js.map +1 -0
- package/dist/library/kicad/read.d.ts +30 -0
- package/dist/library/kicad/read.js +105 -0
- package/dist/library/kicad/read.js.map +1 -0
- package/dist/library/kicad/sexpr.d.ts +36 -0
- package/dist/library/kicad/sexpr.js +153 -0
- package/dist/library/kicad/sexpr.js.map +1 -0
- package/dist/library/kicad/tally.d.ts +32 -0
- package/dist/library/kicad/tally.js +55 -0
- package/dist/library/kicad/tally.js.map +1 -0
- package/dist/library/kicad/write.d.ts +37 -0
- package/dist/library/kicad/write.js +146 -0
- package/dist/library/kicad/write.js.map +1 -0
- package/dist/library/new-part.d.ts +2 -0
- package/dist/library/new-part.js +1 -0
- package/dist/library/new-part.js.map +1 -1
- package/dist/mcp/batch.d.ts +2 -2
- package/dist/mcp/batch.js +12 -12
- package/dist/mcp/batch.js.map +1 -1
- package/dist/mcp/board-import-tool.d.ts +25 -0
- package/dist/mcp/board-import-tool.js +35 -0
- package/dist/mcp/board-import-tool.js.map +1 -0
- package/dist/mcp/board-summary.d.ts +1 -1
- package/dist/mcp/board-summary.js +1 -1
- package/dist/mcp/board-summary.js.map +1 -1
- package/dist/mcp/copper-summary.d.ts +2 -0
- package/dist/mcp/copper-summary.js +4 -2
- package/dist/mcp/copper-summary.js.map +1 -1
- package/dist/mcp/copper-tools.d.ts +4 -4
- package/dist/mcp/copper-tools.js +19 -19
- package/dist/mcp/copper-tools.js.map +1 -1
- package/dist/mcp/create-part.d.ts +24 -1
- package/dist/mcp/create-part.js +9 -8
- package/dist/mcp/create-part.js.map +1 -1
- package/dist/mcp/datasheet-tools.d.ts +1 -1
- package/dist/mcp/datasheet-tools.js +4 -4
- package/dist/mcp/datasheet-tools.js.map +1 -1
- package/dist/mcp/fast-summary.d.ts +3 -0
- package/dist/mcp/fast-summary.js +46 -0
- package/dist/mcp/fast-summary.js.map +1 -0
- package/dist/mcp/fillet-tools.d.ts +2 -2
- package/dist/mcp/fillet-tools.js +6 -6
- package/dist/mcp/fillet-tools.js.map +1 -1
- package/dist/mcp/guide.d.ts +1 -1
- package/dist/mcp/guide.js +4 -3
- package/dist/mcp/guide.js.map +1 -1
- package/dist/mcp/import-part.d.ts +1 -1
- package/dist/mcp/import-part.js +4 -4
- package/dist/mcp/import-part.js.map +1 -1
- package/dist/mcp/make-sheet.d.ts +1 -1
- package/dist/mcp/make-sheet.js +6 -6
- package/dist/mcp/make-sheet.js.map +1 -1
- package/dist/mcp/module-tools.d.ts +4 -0
- package/dist/mcp/module-tools.js +21 -0
- package/dist/mcp/module-tools.js.map +1 -0
- package/dist/mcp/new-circuit.d.ts +13 -2
- package/dist/mcp/new-circuit.js +30 -28
- package/dist/mcp/new-circuit.js.map +1 -1
- package/dist/mcp/open-studio.d.ts +30 -0
- package/dist/mcp/open-studio.js +97 -0
- package/dist/mcp/open-studio.js.map +1 -0
- package/dist/mcp/place-tools.d.ts +2 -2
- package/dist/mcp/place-tools.js +14 -11
- package/dist/mcp/place-tools.js.map +1 -1
- package/dist/mcp/pour-tools.d.ts +4 -4
- package/dist/mcp/pour-tools.js +18 -18
- package/dist/mcp/pour-tools.js.map +1 -1
- package/dist/mcp/project-tools.d.ts +3 -3
- package/dist/mcp/project-tools.js +8 -8
- package/dist/mcp/project-tools.js.map +1 -1
- package/dist/mcp/render-tool.d.ts +33 -2
- package/dist/mcp/render-tool.js +23 -7
- package/dist/mcp/render-tool.js.map +1 -1
- package/dist/mcp/route-tools.d.ts +2 -2
- package/dist/mcp/route-tools.js +10 -10
- package/dist/mcp/route-tools.js.map +1 -1
- package/dist/mcp/server.js +60 -34
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/sheet-card-tools.d.ts +30 -0
- package/dist/mcp/sheet-card-tools.js +47 -0
- package/dist/mcp/sheet-card-tools.js.map +1 -0
- package/dist/mcp/simulate-tool.d.ts +10 -0
- package/dist/mcp/simulate-tool.js +12 -0
- package/dist/mcp/simulate-tool.js.map +1 -0
- package/dist/render/render.js +8178 -118
- package/dist/studio/change-route.d.ts +18 -0
- package/dist/studio/change-route.js +24 -0
- package/dist/studio/change-route.js.map +1 -0
- package/dist/studio/http-error.d.ts +5 -0
- package/dist/studio/http-error.js +9 -0
- package/dist/studio/http-error.js.map +1 -0
- package/dist/studio/idle.d.ts +7 -0
- package/dist/studio/idle.js +34 -0
- package/dist/studio/idle.js.map +1 -0
- package/dist/studio/live.d.ts +2 -0
- package/dist/studio/live.js.map +1 -1
- package/dist/studio/place-runner.js +1 -1
- package/dist/studio/place-runner.js.map +1 -1
- package/dist/studio/run-studio.d.ts +21 -0
- package/dist/studio/run-studio.js +68 -0
- package/dist/studio/run-studio.js.map +1 -0
- package/dist/studio/server.d.ts +5 -0
- package/dist/studio/server.js +66 -16
- package/dist/studio/server.js.map +1 -1
- package/dist/studio/studio-control.d.ts +6 -0
- package/dist/studio/studio-control.js +14 -0
- package/dist/studio/studio-control.js.map +1 -0
- package/dist/studio/studio-note.d.ts +33 -0
- package/dist/studio/studio-note.js +130 -0
- package/dist/studio/studio-note.js.map +1 -0
- package/dist/studio/verify-routes.d.ts +42 -0
- package/dist/studio/verify-routes.js +110 -0
- package/dist/studio/verify-routes.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/library/modules/CanNode/CanNode.sheet.tsx +65 -0
- package/library/modules/CanNode/module.json +4 -0
- package/library/modules/CanNode/parts/MCP2515-I-SO/MCP2515_I_SO.tsx +11 -0
- package/library/modules/CanNode/parts/MCP2515-I-SO/part.yaml +66 -0
- package/library/modules/CanNode/parts/MCP2515-I-SO/verification.md +43 -0
- package/library/modules/CanNode/parts/TJA1051T-3/TJA1051T_3.tsx +11 -0
- package/library/modules/CanNode/parts/TJA1051T-3/part.yaml +36 -0
- package/library/modules/CanNode/parts/TJA1051T-3/verification.md +29 -0
- package/library/modules/DigitalInput24V/DigitalInput24V.sheet.tsx +24 -0
- package/library/modules/DigitalInput24V/module.json +4 -0
- package/library/modules/RelayDriver/RelayDriver.sheet.tsx +39 -0
- package/library/modules/RelayDriver/module.json +4 -0
- package/library/modules/RelayDriver/parts/AO3400A/AO3400A.tsx +11 -0
- package/library/modules/RelayDriver/parts/AO3400A/part.yaml +55 -0
- package/library/modules/RelayDriver/parts/AO3400A/verification.md +34 -0
- package/library/modules/RelayDriver/parts/SRD-12VDC-SL-C/SRD_12VDC_SL_C.tsx +12 -0
- package/library/modules/RelayDriver/parts/SRD-12VDC-SL-C/footprint.yaml +70 -0
- package/library/modules/RelayDriver/parts/SRD-12VDC-SL-C/part.yaml +45 -0
- package/library/modules/RelayDriver/parts/SRD-12VDC-SL-C/verification.md +40 -0
- package/package.json +2 -1
- package/skills/copperflow/SKILL.md +16 -16
- package/skills/copperflow/references/copper.md +89 -6
- package/skills/copperflow/references/design-rules.md +48 -0
- package/skills/copperflow/references/modules.md +106 -0
- package/skills/copperflow/references/planning.md +55 -11
- package/skills/copperflow/references/writing-circuits.md +32 -3
- package/skills/copperflow-plan/SKILL.md +7 -4
- package/dist/app/assets/NewPartDialog-B_cnPuI-.js +0 -160
- package/dist/app/assets/index-CSWIIMFE.css +0 -1
- package/dist/app/assets/index-CjN3tctq.js +0 -19
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ its own engine. You and your agent work on them together:
|
|
|
14
14
|
Everything runs locally. There is no chat inside copperflow: use the agent you already use,
|
|
15
15
|
for example Claude Code, through MCP.
|
|
16
16
|
|
|
17
|
-
> **Status: 0.
|
|
18
|
-
>
|
|
17
|
+
> **Status: 0.4, early.** The core, the MCP server, the CLI, the visual editor, the parts library,
|
|
18
|
+
> placement, routing and the fabrication export work. Expect rough edges; see [docs/design.md](docs/design.md).
|
|
19
19
|
|
|
20
20
|
## Quick start
|
|
21
21
|
|
|
@@ -72,6 +72,14 @@ copperflow skill
|
|
|
72
72
|
Any other MCP client can run `copperflow mcp` over stdio from the project folder
|
|
73
73
|
(or pass `--root <dir>`).
|
|
74
74
|
|
|
75
|
+
Without installing, the same server starts through npx: give `npx -y copperflow mcp` wherever a
|
|
76
|
+
client asks for the command. The first start takes about a quarter of a minute while npm fetches
|
|
77
|
+
the package.
|
|
78
|
+
|
|
79
|
+
An agent that can run commands can set copperflow up for itself: the steps are at
|
|
80
|
+
<https://copperflow.kurpeeren.com/llms.txt> as plain text. Most programs load their MCP servers
|
|
81
|
+
when a session starts, so the tools appear in the next session, not in the one that added them.
|
|
82
|
+
|
|
75
83
|
### Open the visual editor
|
|
76
84
|
|
|
77
85
|
```bash
|
|
@@ -81,10 +89,14 @@ copperflow studio --root examples/usb-c-ldo
|
|
|
81
89
|
Then open the address it prints. The address carries a key for this session, so other web
|
|
82
90
|
pages and other programs on your computer cannot use the editor's API.
|
|
83
91
|
|
|
92
|
+
A connected agent opens it for you: ask it to open copperflow and it calls `open_studio`, which
|
|
93
|
+
starts the editor for the project if none runs and opens it in your browser. An editor started
|
|
94
|
+
that way stops by itself an hour after the last tab closes; `copperflow studio stop` stops it at once.
|
|
95
|
+
|
|
84
96
|
The schematic and the PCB are drawn from the design copperflow's engine builds, with
|
|
85
97
|
copperflow's own footprints and schematic symbols. The PCB shows the ratsnest, a straight line
|
|
86
|
-
for each connection still to be made, until
|
|
87
|
-
|
|
98
|
+
for each connection still to be made, until it is routed by hand or by the router. A third tab,
|
|
99
|
+
3D, shows the board as it will be made with its parts on it (see [Pictures and 3D](#beyond-drawing)).
|
|
88
100
|
|
|
89
101
|
The window is laid out like a desktop EDA editor:
|
|
90
102
|
|
|
@@ -188,6 +200,50 @@ is no `--build` option.
|
|
|
188
200
|
who made it. `copperflow undo` reverts the newest change; the agent can undo only its own.
|
|
189
201
|
The agent sees what you undid and does not repeat it.
|
|
190
202
|
|
|
203
|
+
## Beyond drawing
|
|
204
|
+
|
|
205
|
+
**Checking a part against its datasheet.** Verify on a library part opens a screen in the Studio: the
|
|
206
|
+
footprint drawn with its dimensions, each pin as a row to tick, and the recorded datasheet beside them.
|
|
207
|
+
The part can be marked verified only when every item is ticked, and only a person can do it.
|
|
208
|
+
|
|
209
|
+
**What a change did.** `copperflow history <id>` (the agent's `recent_changes { id }`) says what one
|
|
210
|
+
change did: parts added, removed and moved, nets and copper; `--since <id>` covers everything after
|
|
211
|
+
it. `copperflow render <file> --change <id>` draws it on the board, and each row of the Studio's Log
|
|
212
|
+
has Show.
|
|
213
|
+
|
|
214
|
+
**Ready to order.** `copperflow bom` ends with whether the board is ready to order bare and ready for
|
|
215
|
+
assembly, and names the lines with no supplier part number. No price or stock is checked.
|
|
216
|
+
|
|
217
|
+
**Pin map for firmware.** `copperflow pins <file>` lists which net is on each pin of the chips and
|
|
218
|
+
connectors, as a table, CSV or a C header (`--format c`); `copperflow package` writes them too.
|
|
219
|
+
|
|
220
|
+
**Fabrication files.** `copperflow export <file>` writes the Gerbers, drills, pick-and-place file and
|
|
221
|
+
BOM for JLCPCB into `<name>-fab/` and a zip, with `<name>.step` for a mechanical CAD program and a
|
|
222
|
+
picture of each side of the board. A circuit with errors is refused.
|
|
223
|
+
|
|
224
|
+
**Pictures and 3D.** `copperflow render <file> --view board` draws the bare board as made: every
|
|
225
|
+
fabrication layer is drawn by itself, from the same data the Gerbers are written from, and they are
|
|
226
|
+
put together as mask, finish, print and holes, in the maker's usual colours (`--mask`, `--finish`,
|
|
227
|
+
`--silk`). `--view 3d` and the Studio's 3D tab lay that picture on the board and stand the parts on
|
|
228
|
+
it. The parts are simple shapes, not their real models, in the 3D view and in the STEP file; a part's
|
|
229
|
+
height comes from its `height` in `part.yaml`, else a typical figure for its package, else 1 mm, and
|
|
230
|
+
the view says which.
|
|
231
|
+
|
|
232
|
+
**Fast lines.** Net classes in `rules.yaml` take an impedance, a differential pair with its gap and
|
|
233
|
+
skew, a longest length and length-matched groups; the checks report a pair that runs apart or differs
|
|
234
|
+
in length, and `copperflow impedance` gives widths and gaps for the board's stack. The figures are
|
|
235
|
+
estimates, and the router does not route pairs together or tune lengths yet. See
|
|
236
|
+
[design-rules.md](skills/copperflow/references/design-rules.md).
|
|
237
|
+
|
|
238
|
+
**Simulation.** `copperflow simulate` (the agent's `simulate`) finds the DC operating point from ideal
|
|
239
|
+
sources and simple part models: no time, no frequency, no temperature, no tolerance, and chips are not
|
|
240
|
+
modelled. A sheet's card can hold cases ("at 24 V in, the output is between 3.0 and 3.5 V") that it
|
|
241
|
+
runs; `copperflow spice` writes the same circuit as a SPICE netlist for another simulator.
|
|
242
|
+
|
|
243
|
+
**A board from KiCad.** `copperflow import kicad board.kicad_pcb` (the agent's `import_board`, or
|
|
244
|
+
File, Import board in the Studio) makes a new circuit from a KiCad 6 or newer board: its outline,
|
|
245
|
+
parts, nets, tracks, vias and pours. The parts arrive as library parts, not verified.
|
|
246
|
+
|
|
191
247
|
## MCP tools
|
|
192
248
|
|
|
193
249
|
| Tool | What it does |
|
|
@@ -201,6 +257,14 @@ The agent sees what you undid and does not repeat it.
|
|
|
201
257
|
| `new_circuit` | Writes a whole new circuit from a netlist in one call: parts (a built-in `kind` or a library `part`, `value`, `footprint`, `props` such as `pinCount` or a `pinLabels` object to name pins, no positions) and `nets` (`{ GND: ["R1.pin2", "U1.GND"] }`, no wire corners). Pins are checked first (a wrong one is refused with the part's real pin names); an existing file needs `replace: true`; one history entry, and undo removes the file. It then places the board (`autoplace`, a second entry; the board is fitted when no `board` size is given) unless `place: false` |
|
|
202
258
|
| `autoplace` | Places the parts nobody placed or locked (or only `parts`, or one `instance`) by their connections, as one change: answers "Placed 12 parts; wire length 184 mm (was 412); board 42 × 28 mm; 0 overlaps", then the parts it found no room for and its notes; `fit: true` fits the board too; `budgetSeconds` (20 s by default); `connectors: "ahead"` tries each connector beside the part it serves (route and compare before keeping it) |
|
|
203
259
|
| `fit_board` | Shrinks or grows a rectangular board to the parts' courtyards plus `margin` (2 mm by default), as one change |
|
|
260
|
+
| `import_board` | Sets the board's outline, mounting holes and keepouts from a DXF drawing in the project folder, as one change; a `.kicad_pcb` file makes a new circuit from a KiCad board |
|
|
261
|
+
| `autoroute` / `unroute` | Routes the unrouted connections (the whole board, some nets, some parts or one instance) and names each one it could not route with the reason; or removes the router's copper |
|
|
262
|
+
| `add_pour` / `remove_pour` / `add_hole` / `remove_hole` | A copper pour of a net on one layer, or a non-plated mounting hole, each as one change |
|
|
263
|
+
| `simulate` | The DC operating point of a circuit or a sheet: set nets to volts, close switches, energise relay coils; with a sheet and no values it runs the sheet's cases |
|
|
264
|
+
| `make_sheet` / `describe_sheet` | Moves parts into a sub-sheet with ports, and writes a sheet's card: what it does, its ports and its cases |
|
|
265
|
+
| `list_modules` / `module_info` / `use_module` / `save_module` | The shelf of modules and the libraries: read one, bring one into the project, save a described sheet |
|
|
266
|
+
| `export_fabrication` | Writes the fabrication files, the STEP model and the board's pictures; refused when the circuit has errors |
|
|
267
|
+
| `attach_datasheet` / `guide` | Records the datasheet a part came from; and the copperflow skill's texts for an agent that has no skills |
|
|
204
268
|
| `edit_circuit` | Several edits in one call, applied as one change (one history entry); stops at the first refused edit and writes nothing |
|
|
205
269
|
| `connect_nets` | Connects many pins to named nets in one call, e.g. `{ "GND": ["R1.pin2", "C1.pin2"] }` |
|
|
206
270
|
| `route_track` | Draws one track of a net by hand from a pad, track or via of that net, as one change; refused when a point lands on another net's copper; the answer lists the copper violations it introduced |
|
|
@@ -208,13 +272,14 @@ The agent sees what you undid and does not repeat it.
|
|
|
208
272
|
| `fillet_tracks` / `straighten_tracks` | Rounds the square corners of tracks (by id, or every track) into short chords on an arc of the design rules' fillet radius, or puts rounded corners back, each as one change; a corner too close to other copper, a pad, a keepout or the board edge, or with legs too short, stays square and is counted |
|
|
209
273
|
| `copper_summary` | Per net: tracks, vias, length and unrouted connections, then copper violations by rule (at most 60 lines) |
|
|
210
274
|
| `board_summary` / `project_status` / `note_decision` / `set_project` | The board in about 60 lines (size, one line per part, longest connections with both pads' places, overlaps, edge, pours; `detail: "full"` for the rest); and the project memory `PROJECT.md` (Intent, Blocks, Decisions, Open) with each circuit's counts and last changes, a dated decision, or rewritten sections, each write one change |
|
|
211
|
-
| `
|
|
275
|
+
| `open_studio` | Starts the Studio for the project if none runs, opens it in your browser and answers with the address |
|
|
276
|
+
| `render` | A PNG of the board or of one schematic page, drawn by the Studio's own code; `view: "board"` is the bare board as made: mask, finish, print and holes drawn from the fabrication layers, either side, in the maker's usual colours; `view: "3d"` is that board with its parts as simple shapes, at an angle; `change` or `since` draws what a change did; `parts` zooms to some parts (needs the optional package `@napi-rs/canvas`) |
|
|
212
277
|
| `list_parts` / `part_info` | Shows the parts library and a part's data and checklist |
|
|
213
278
|
| `create_part` | Adds a part from a datasheet: pins, footprint string or footprint file, MPN, suppliers |
|
|
214
279
|
| `import_part` | Fetches one part by its LCSC number from EasyEDA into `parts/<id>/`, unverified, for personal, non-commercial use only (see [licences](docs/licences.md)) |
|
|
215
280
|
| `place_part` | Adds a library or built-in part to a circuit, with its import |
|
|
216
|
-
| `bom` / `export_package` | Bill of materials; folder with BOM, datasheets
|
|
217
|
-
| `recent_changes` | Recent changes by you and the agent, including undos |
|
|
281
|
+
| `bom` / `export_package` | Bill of materials, with whether the board is ready to order; folder with BOM, datasheets, part status and pin maps |
|
|
282
|
+
| `recent_changes` | Recent changes by you and the agent, including undos; `id` says what one change did, `since` everything after it |
|
|
218
283
|
| `undo_change` | Undoes one of the agent's own changes |
|
|
219
284
|
|
|
220
285
|
There is no unlock tool and no verify tool on purpose.
|
|
@@ -223,8 +288,12 @@ There is no unlock tool and no verify tool on purpose.
|
|
|
223
288
|
|
|
224
289
|
```text
|
|
225
290
|
copperflow mcp start the MCP server on stdio
|
|
226
|
-
copperflow studio [--port n]
|
|
227
|
-
|
|
291
|
+
copperflow studio [--port n] [--idle-minutes n]
|
|
292
|
+
open the visual editor at http://127.0.0.1:4777 (or a free port);
|
|
293
|
+
with --idle-minutes it stops after n minutes with no tab open
|
|
294
|
+
copperflow studio stop stop the Studio of this folder
|
|
295
|
+
copperflow skill [--global] copy the copperflow skills into .claude/skills of this folder
|
|
296
|
+
(or of your home folder), for agents that read skills
|
|
228
297
|
copperflow summary <file> print a circuit summary
|
|
229
298
|
copperflow check <file> list the errors and warnings of copperflow's own rule checks
|
|
230
299
|
copperflow lock <file> <part...> lock parts so the agent cannot change them
|
|
@@ -239,22 +308,83 @@ copperflow parts verify <id> --by <name> --against <datasheet, page>
|
|
|
239
308
|
copperflow parts import <C-number> [--id <id>] [--replace]
|
|
240
309
|
fetch a part by its LCSC number from EasyEDA into parts/,
|
|
241
310
|
not verified (needs the internet; see docs/licences.md)
|
|
311
|
+
copperflow modules list the shelf of modules (COPPERFLOW_MODULES, default ~/.copperflow/modules)
|
|
312
|
+
copperflow modules verify <name> --by <name>
|
|
313
|
+
mark a module (or <library>/<name>) as checked by you
|
|
314
|
+
copperflow modules remove <name> take a module off the shelf
|
|
315
|
+
copperflow library list the libraries of modules: built in, git and folders
|
|
316
|
+
copperflow library add <name> <address or folder> [--ref <branch or tag>]
|
|
317
|
+
add a library from git (https://, ssh:// or user@host:path)
|
|
318
|
+
or a folder; its modules read NOT verified until you verify them
|
|
319
|
+
copperflow library update [name] bring git libraries to the newest commit of their ref
|
|
320
|
+
copperflow library remove <name> forget a library (a clone is deleted, a folder never)
|
|
242
321
|
copperflow place <file> <part> <name> [key=value ...]
|
|
243
322
|
add a library or built-in part to a circuit
|
|
244
323
|
copperflow bom <file> [--csv] print the bill of materials
|
|
245
324
|
copperflow package <file> [--out dir]
|
|
246
|
-
write BOM, datasheets
|
|
247
|
-
copperflow
|
|
325
|
+
write BOM, datasheets, part status and pin maps to a folder
|
|
326
|
+
copperflow pins <file> [--part <name>] [--format md|csv|c]
|
|
327
|
+
which net is on each pin of the library chips and connectors
|
|
328
|
+
copperflow export <file> [--out dir] write the fabrication files for JLCPCB: Gerbers, drills,
|
|
329
|
+
pick-and-place and BOM in <name>-fab/ and <name>-fab.zip
|
|
330
|
+
beside the circuit (or in the project folder --out), with <name>.step
|
|
331
|
+
copperflow step <file> [--out file.step] write the board and its parts (as boxes) as a STEP file for CAD,
|
|
332
|
+
<name>.step beside the circuit
|
|
333
|
+
copperflow render <file> [--view pcb|schematic|board|3d] [--page <name>] [--parts U1,C3] [--width n] [--out file.png]
|
|
334
|
+
board: the bare board as made [--side bottom] [--mask black] [--finish hasl] [--silk black] [--background #rrggbb]
|
|
335
|
+
3d: the board as made with its parts as simple shapes [--angle top|bottom|front|iso] and the same look options
|
|
336
|
+
[--change <id> | --since <id>]
|
|
248
337
|
draw the board or a schematic page to a PNG, as the Studio shows it
|
|
338
|
+
(<name>-pcb.png or <name>-schematic-<page>.png beside the circuit)
|
|
339
|
+
copperflow simulate <file> --set V12=12 --set CTRL=3.3 [--sheet <name>] [--closed SW1,J2] [--coil K1] [--all]
|
|
340
|
+
the DC operating point from ideal sources and simple models: no time,
|
|
341
|
+
no frequency, no temperature, no tolerance; chips are not modelled.
|
|
342
|
+
With --sheet and no --set it runs the sheet's cases
|
|
343
|
+
copperflow spice <file> [--sheet <name>] [--set net=volts ...] [--out file.cir]
|
|
344
|
+
write the same circuit as a SPICE3 netlist for another simulator
|
|
345
|
+
copperflow board <file> --dxf <path> [--layer <name>] [--units mm|inch] [--origin keep] [--replace]
|
|
346
|
+
set the board's outline, holes and keepouts from a DXF drawing
|
|
347
|
+
copperflow import kicad <board.kicad_pcb> [--name <circuit name>] [--replace] [--origin keep]
|
|
348
|
+
make a new circuit from a KiCad board: its outline, parts (as
|
|
349
|
+
library parts, not verified), nets, tracks, vias and pours
|
|
350
|
+
copperflow impedance [--single 50] [--pair 90] [--gap 0.2] [--width 0.3]
|
|
351
|
+
line widths and gaps for an impedance on the board's stack (rules.yaml);
|
|
352
|
+
an estimate: the router does not route pairs together or tune lengths
|
|
249
353
|
copperflow history [--limit n] list recent changes
|
|
354
|
+
copperflow history <id> | --since <id> what one change did, or everything after it
|
|
250
355
|
copperflow undo [id] undo the newest change, or the given one
|
|
251
356
|
```
|
|
252
357
|
|
|
358
|
+
Every command accepts `--root <dir>` (default: the current directory).
|
|
359
|
+
|
|
360
|
+
## Libraries
|
|
361
|
+
|
|
362
|
+
A library is a folder of modules laid out as the shelf is: `modules/<Name>/` (or `<Name>/` at the top
|
|
363
|
+
when there is no `modules` folder), each holding `<Name>.sheet.tsx`, `parts/<id>/part.yaml` (and
|
|
364
|
+
`footprint.yaml`) and an optional `module.json`. copperflow comes with one, named `copperflow`; you
|
|
365
|
+
add your own:
|
|
366
|
+
|
|
367
|
+
```text
|
|
368
|
+
copperflow library add <name> <git address or folder> [--ref <branch or tag>]
|
|
369
|
+
copperflow library update [name]
|
|
370
|
+
copperflow library remove <name>
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
`copperflow library` lists them. The agent sees their modules as `<library>/<Name>` in
|
|
374
|
+
`list_modules`, `module_info` and `use_module`. A circuit file is code that runs when the board
|
|
375
|
+
builds, so a sheet from a library enters a project only when copperflow has proved it plain (part
|
|
376
|
+
imports, one function returning tags with literal values, nothing else), and its parts come as data,
|
|
377
|
+
their component files written by copperflow. A library module reads NOT verified until you run
|
|
378
|
+
`copperflow modules verify <library>/<Name> --by <name>`.
|
|
379
|
+
|
|
253
380
|
## Roadmap
|
|
254
381
|
|
|
255
382
|
- **0.2** (done) Visual editor in the browser: drag, rotate, lock, delete and reconnect wires, marks.
|
|
256
383
|
- **0.3** (done) Parts library (one folder per part) and datasheet-to-part import; BOM and datasheet package.
|
|
257
|
-
- **0.4**
|
|
384
|
+
- **0.4** (done) Placement, routing, pours and the fabrication export; sheets, modules and libraries; part
|
|
385
|
+
verification on screen, the change view, the order report, pin maps, STEP and the 3D view, fast-line rules,
|
|
386
|
+
DC simulation, KiCad board import and the board drawn as made.
|
|
387
|
+
- **Next** Routing pairs together and tuning lengths, time and frequency in the simulator, real part models in 3D.
|
|
258
388
|
|
|
259
389
|
## Contributing
|
|
260
390
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
copperflow studio bundles the following packages. Their licences follow.
|
|
2
2
|
|
|
3
|
+
========================================================================
|
|
4
|
+
clipper-lib@6.4.2 BSL
|
|
5
|
+
========================================================================
|
|
6
|
+
(no licence file in the package)
|
|
7
|
+
|
|
3
8
|
========================================================================
|
|
4
9
|
react-dom@19.1.0 MIT
|
|
5
10
|
========================================================================
|