copperflow 0.3.2 → 0.3.3
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 +3 -0
- package/dist/app/assets/{NewPartDialog-Qb7NwhBb.js → NewPartDialog-B_cnPuI-.js} +38 -38
- package/dist/app/assets/{index-C_TXwo-N.js → index-CjN3tctq.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/cli-commands.d.ts +3 -0
- package/dist/cli-commands.js +24 -1
- package/dist/cli-commands.js.map +1 -1
- package/dist/core/fabrication.d.ts +6 -0
- package/dist/core/fabrication.js +1 -1
- package/dist/core/fabrication.js.map +1 -1
- 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/render.d.ts +45 -0
- package/dist/core/render.js +57 -0
- package/dist/core/render.js.map +1 -0
- package/dist/engine/footprints/file.d.ts +33 -0
- package/dist/engine/footprints/file.js +13 -5
- package/dist/engine/footprints/file.js.map +1 -1
- package/dist/mcp/compact.js +17 -5
- package/dist/mcp/compact.js.map +1 -1
- package/dist/mcp/create-part.d.ts +3 -3
- package/dist/mcp/create-part.js +5 -3
- package/dist/mcp/create-part.js.map +1 -1
- package/dist/mcp/render-tool.d.ts +30 -0
- package/dist/mcp/render-tool.js +33 -0
- package/dist/mcp/render-tool.js.map +1 -0
- package/dist/mcp/server.d.ts +3 -0
- package/dist/mcp/server.js +3 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/render/render.js +2005 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -2
- package/skills/copperflow/SKILL.md +4 -4
- package/skills/copperflow/references/copper.md +2 -0
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.3.
|
|
1
|
+
export declare const VERSION = "0.3.3";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.3.
|
|
1
|
+
export const VERSION = "0.3.3";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copperflow",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Design circuits in code with a human and an AI agent editing the same files.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Eren Kürpe",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"NOTICE"
|
|
35
35
|
],
|
|
36
36
|
"scripts": {
|
|
37
|
-
"build": "tsc -p tsconfig.build.json && vite build --config studio/vite.config.ts",
|
|
37
|
+
"build": "tsc -p tsconfig.build.json && node scripts/build-render.mjs && vite build --config studio/vite.config.ts",
|
|
38
38
|
"typecheck": "tsc --noEmit && tsc --noEmit -p studio/tsconfig.json",
|
|
39
39
|
"test": "vitest run",
|
|
40
40
|
"test:perf": "vitest run --mode perf --no-file-parallelism --silent=false",
|
|
@@ -62,5 +62,8 @@
|
|
|
62
62
|
"typescript": "7.0.2",
|
|
63
63
|
"vite": "8.3.5",
|
|
64
64
|
"vitest": "5.1.0"
|
|
65
|
+
},
|
|
66
|
+
"optionalDependencies": {
|
|
67
|
+
"@napi-rs/canvas": "1.1.1"
|
|
65
68
|
}
|
|
66
69
|
}
|
|
@@ -120,12 +120,12 @@ means, `replace`, refused pins and the export's warnings are in
|
|
|
120
120
|
8. **Board shape and connectors.** `fit_board` `{ file, margin? }`:
|
|
121
121
|
`Change c0010: board 42 × 28 mm (margin 2 mm)`; or `autoplace` with `fit: true`.
|
|
122
122
|
Mounting holes with `add_hole` `{ file, x, y, diameter }`.
|
|
123
|
-
9. **Fine tuning.** `board_summary` `{ file }`
|
|
123
|
+
9. **Fine tuning.** `board_summary` `{ file }` reads the board: `main.circuit.tsx: Board 42 × 28 mm,
|
|
124
124
|
2 layers, courtyards use 38%; 24 parts, 18 nets`, one line per part
|
|
125
125
|
(`U1 MCP2515 soic18w @(12.0, 8.5) r90 top [LOCKED]`), the ten longest connections with both pads' places,
|
|
126
|
-
`Courtyards overlap (n):`, `Off the board (n):`, `Pours:` and `Unrouted: N connections`.
|
|
127
|
-
a
|
|
128
|
-
|
|
126
|
+
`Courtyards overlap (n):`, `Off the board (n):`, `Pours:` and `Unrouted: N connections`. `render` `{ file }`
|
|
127
|
+
is your eyes, a PNG of the board as the person sees it: look after `autoplace` and after `autoroute`; `parts` zooms.
|
|
128
|
+
Move a part with `set_props` `{ pcbX, pcbY, pcbRotation }` only for a reason, never one the human placed unless asked.
|
|
129
129
|
10. **Pours.** `add_pour` `{ file, net: "GND", layer: "top" }` on the layer the parts sit on:
|
|
130
130
|
`Change …: added copperpour:1 (GND, top)` and `copperpour:1 GND top: … mm², joins N pads`.
|
|
131
131
|
On a two-layer board pour GND on both layers (`top` and `bottom`) before `autoroute`.
|
|
@@ -19,6 +19,8 @@ it is across with its load capacitors on its far side, and a pull-up or an LED's
|
|
|
19
19
|
the pin it serves. After `autoplace`, read `board_summary`'s longest connections: a part far
|
|
20
20
|
from the pin it serves shows there with both pads' places. Move it with `set_props`
|
|
21
21
|
`{ pcbX, pcbY, pcbRotation }`; it then has a position, and `autoplace` leaves it alone.
|
|
22
|
+
Look at the board with `render` `{ file }` after `autoplace` and again after `autoroute`: it is the
|
|
23
|
+
Studio's own drawing, what the person sees; `parts: ["U1", "C3"]` zooms to those parts.
|
|
22
24
|
|
|
23
25
|
Connectors are placed last, into the edge room the other parts left, so on a tight board a
|
|
24
26
|
connector can land far from the part it serves. If `board_summary` or `copper_summary` shows a
|