@mylasertools/kerfscript 0.5.0 → 0.6.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/CHANGELOG.md +29 -1
- package/README.md +14 -3
- package/dist/cli.js +2869 -318
- package/dist/import/dbg.d.cts +1 -0
- package/dist/import/dbg.d.ts +1 -0
- package/dist/import/index.d.cts +16 -0
- package/dist/import/index.d.ts +16 -0
- package/dist/import/shapes.d.cts +76 -0
- package/dist/import/shapes.d.ts +76 -0
- package/dist/import/svg.d.cts +48 -0
- package/dist/import/svg.d.ts +48 -0
- package/dist/import/xml.d.cts +12 -0
- package/dist/import/xml.d.ts +12 -0
- package/dist/index.cjs +46 -12
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +46 -12
- package/dist/language.cjs +26 -26
- package/dist/language.js +26 -26
- package/dist/paths.d.cts +1 -1
- package/dist/paths.d.ts +1 -1
- package/docs/cli.md +9 -0
- package/docs/import.md +149 -0
- package/docs/javascript.md +31 -0
- package/docs/library/calibration.svg +1 -1
- package/docs/library/hanging.svg +1 -1
- package/docs/library/hinge.svg +1 -1
- package/docs/mcp.md +88 -0
- package/docs/versions.md +2 -2
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0 (2026-11-02)
|
|
4
|
+
|
|
5
|
+
Language version 0.2, as in 0.5.0: programs run as before.
|
|
6
|
+
|
|
7
|
+
- Twenty-nine parametric examples, including a tea dispenser,
|
|
8
|
+
jewellery box, drawer cabinet, workshop holders, miniature furniture,
|
|
9
|
+
radial shade, sliding puzzle, game insert, cable chain, cantilever case,
|
|
10
|
+
beam balance, tilting stand, screw press, wheel calendar and laced mat.
|
|
11
|
+
Each has an animated preview in the gallery.
|
|
12
|
+
- `kerf import` and `importSvg()` turn an SVG drawing into a program. They
|
|
13
|
+
write circles, rectangles, polygons, tabs, slots, finger joints, hanger
|
|
14
|
+
holes, keyholes and hanging loops as the modules that make them, and
|
|
15
|
+
repeated holes as loops. Each part is checked against the drawing and
|
|
16
|
+
written as drawn when it does not match. Colours and group names become
|
|
17
|
+
layers, joint depth becomes `$thickness`, and outlines offset for a kerf
|
|
18
|
+
are moved back with `$kerf` set. A path with bad data is read up to the
|
|
19
|
+
error, as browsers draw it. `kerf import` does not replace a program
|
|
20
|
+
already next to the drawing unless it is named with `-o`. See
|
|
21
|
+
[Importing SVG drawings](docs/import.md).
|
|
22
|
+
- The playground imports SVG drawings: choose **Import SVG** or drop a file
|
|
23
|
+
on the editor.
|
|
24
|
+
- Lines are clipped to a part reliably. Scoring or cutting a closed
|
|
25
|
+
polyline inside a part could add lines that were not drawn, or stop with
|
|
26
|
+
an out of memory error; lines along a part's edge are now always left
|
|
27
|
+
out, where before some were kept (`topo-island` scores 34 mm less).
|
|
28
|
+
- Outlines with a spike drawn out and back, or points in a straight line
|
|
29
|
+
with their neighbours, no longer make rendering run out of memory.
|
|
30
|
+
|
|
3
31
|
## 0.5.0 (2026-10-31)
|
|
4
32
|
|
|
5
33
|
Language version 0.2. Programs for 0.1 run as before, except where noted
|
|
@@ -160,7 +188,7 @@ with `"language": "0.2"` in its `kerf.json`.
|
|
|
160
188
|
desktop app), a Docker image, a snap, and Homebrew,
|
|
161
189
|
Scoop, winget and AUR manifests, all built by the release workflow with
|
|
162
190
|
SHA-256, SHA-512 and GPG signatures. Nightly builds go to a rolling
|
|
163
|
-
`nightly` prerelease.
|
|
191
|
+
`nightly` prerelease.
|
|
164
192
|
- A `kerf(1)` man page and a `text/x-kerfscript` MIME type for `*.kerf` files
|
|
165
193
|
in the Linux packages.
|
|
166
194
|
- The command line and `kerfscript.wasm` have a font built in, Atkinson
|
package/README.md
CHANGED
|
@@ -117,6 +117,14 @@ are generators built the same way. Programs written by other people should
|
|
|
117
117
|
run in a worker you can stop; see
|
|
118
118
|
[Running untrusted code](docs/javascript.md#running-untrusted-code).
|
|
119
119
|
|
|
120
|
+
## AI assistants
|
|
121
|
+
|
|
122
|
+
The KerfScript MCP server lets Claude, Cursor, VS Code and other assistants
|
|
123
|
+
read the docs and examples and render designs to check them. Add
|
|
124
|
+
`https://mcp.mylasertools.com/mcp`, which needs no account, or run it locally
|
|
125
|
+
with `npx -y @mylasertools/kerfscript-mcp`. See
|
|
126
|
+
[AI assistants](docs/mcp.md).
|
|
127
|
+
|
|
120
128
|
## Made with KerfScript
|
|
121
129
|
|
|
122
130
|
Every model is a file in [examples/](examples). Open one on the website to
|
|
@@ -225,12 +233,15 @@ Errors are thrown as `KerfError` with `line` and `col`.
|
|
|
225
233
|
[layers](docs/layers.md), [kerf](docs/kerf.md),
|
|
226
234
|
[parts and sheets](docs/parts-and-sheets.md), [settings](docs/customizer.md),
|
|
227
235
|
the [desktop app](docs/desktop.md), the [command line](docs/cli.md), the
|
|
228
|
-
[JavaScript API](docs/javascript.md)
|
|
229
|
-
|
|
236
|
+
[JavaScript API](docs/javascript.md),
|
|
237
|
+
[WebAssembly](docs/webassembly.md) for other languages and
|
|
238
|
+
[AI assistants](docs/mcp.md)
|
|
230
239
|
- [Standard library](docs/library.md): joints, hinges, dividers, hanging
|
|
231
240
|
holes, enclosures and test pieces, with a picture and an example of each
|
|
232
241
|
- [Shared libraries](docs/shared-libraries.md): use and publish `.kerf`
|
|
233
242
|
libraries, pinned in `kerf.lock` so a design cuts the same everywhere
|
|
243
|
+
- [Importing SVG drawings](docs/import.md): turn a drawing into a program,
|
|
244
|
+
with its circles, tabs, slots, finger joints and hanger holes found
|
|
234
245
|
- [Coming from OpenSCAD](docs/openscad.md): what is the same and what is not
|
|
235
246
|
- [LANGUAGE.md](LANGUAGE.md): the full language reference
|
|
236
247
|
- [Versions](docs/versions.md): language and package versions, and what stays
|
|
@@ -241,7 +252,7 @@ Errors are thrown as `KerfError` with `line` and `col`.
|
|
|
241
252
|
## Community
|
|
242
253
|
|
|
243
254
|
Bug reports, cut reports and ideas are welcome; see
|
|
244
|
-
[CONTRIBUTING.md](CONTRIBUTING.md),
|
|
255
|
+
[CONTRIBUTING.md](CONTRIBUTING.md),
|
|
245
256
|
[SECURITY.md](SECURITY.md) and the [code of conduct](CODE_OF_CONDUCT.md).
|
|
246
257
|
|
|
247
258
|
## Licence
|