agentic-numerical-control 0.1.8 → 0.2.1
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/LICENSE +21 -21
- package/README.md +7 -6
- package/dist/engines/cncjs/LICENSES.txt +2593 -0
- package/dist/engines/cncjs/cncjs-headless.cjs +67988 -0
- package/dist/engines/cncjs/manifest.json +195 -0
- package/dist/engines/kiri/LICENSES.txt +1097 -0
- package/dist/engines/kiri/bin/dom-stub.mjs +30 -0
- package/dist/engines/kiri/bin/kiri-main.js +127342 -0
- package/dist/engines/kiri/bin/kiri-pool.js +83963 -0
- package/dist/engines/kiri/bin/kiri-work.js +136718 -0
- package/dist/engines/kiri/bin/runner.mjs +241 -0
- package/dist/engines/kiri/bin/worker-shim.mjs +32 -0
- package/dist/engines/kiri/manifest.json +356 -0
- package/dist/engines/kiri/wasm/manifold.wasm +0 -0
- package/dist/server/autostart.js +18 -18
- package/dist/server/cam.js +592 -0
- package/dist/server/cncjs.js +105 -81
- package/dist/server/server.js +225 -2
- package/dist/server/settings-import.js +237 -0
- package/dist/setup.html +1 -1
- package/dist/viewer.html +175 -178
- package/package.json +9 -5
- package/product.json +8 -8
- package/samples/demo-pocket-profile.nc +130 -130
- package/sim/virtual-port.cjs +134 -134
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Edward Coventry
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Edward Coventry
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
# Agentic Numerical Control
|
|
2
2
|
|
|
3
|
-
See and run CNC jobs from Claude: a 3D toolpath viewer inside the chat, live machine status and job control, for
|
|
3
|
+
See and run CNC jobs from Claude: a 3D toolpath viewer inside the chat, live machine status and job control, for GRBL machines (and the others CNCjs supports). Claude on the web, desktop and phone.
|
|
4
4
|
|
|
5
5
|
The product name, npm package name and cloud address live in [product.json](product.json); renaming is a change there.
|
|
6
6
|
|
|
7
7
|
## How it fits together
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
Claude ──MCP+OAuth──▶ cloud/ (Cloudflare Worker) ◀──outbound WebSocket── PC app (npm package) ──▶ CNCjs ──USB──▶ GRBL
|
|
10
|
+
Claude ──MCP+OAuth──▶ cloud/ (Cloudflare Worker) ◀──outbound WebSocket── PC app (npm package) ──▶ built-in CNCjs ──USB──▶ GRBL
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
- **cloud/**: the address Claude connects to. Sign-in through Neon Auth, OAuth for Claude, PC pairing by code, and a per-user relay (Durable Object). Also serves the product page and the one-line installers. Deployed by hand: `cd cloud && npm run deploy`.
|
|
14
|
-
- **PC app** (repo root, published to npm): runs beside the machine,
|
|
14
|
+
- **PC app** (repo root, published to npm): runs beside the machine, runs its own headless CNCjs engine, turns STL models into G-code with Kiri:Moto, serves the MCP tools and the viewer, and keeps an outbound connection to the cloud. Nothing listens on the network.
|
|
15
|
+
- **engines/**: the headless CNCjs engine and the Kiri:Moto CAM engine, each built from a pinned, unmodified upstream commit into `dist/engines/` (see [engines/README.md](engines/README.md)).
|
|
15
16
|
- **sim/**: grblHAL simulator exposed to CNCjs as a GRBL-SIM serial port, for testing without a machine (development only, not shipped).
|
|
16
17
|
|
|
17
18
|
## For users
|
|
@@ -31,7 +32,7 @@ CLI: `anc setup | start | status | unlink | stdio | serve`.
|
|
|
31
32
|
|
|
32
33
|
```powershell
|
|
33
34
|
npm install
|
|
34
|
-
npm run build # viewer
|
|
35
|
+
npm run build # CNCjs and Kiri:Moto engines, viewer and compiled app in dist/
|
|
35
36
|
npm run dev # build and run the app against the cloud in product.json
|
|
36
37
|
npm run dev:serve # local MCP endpoint only, http://127.0.0.1:3311/mcp/<token>
|
|
37
38
|
npm run sim:build # build the simulator (WSL on Windows)
|
|
@@ -39,6 +40,6 @@ npm run sim:e2e # connect GRBL-SIM, load the demo job, start, pause, stop
|
|
|
39
40
|
npm pack # what would be published (dist, product.json, demo job, sim hook)
|
|
40
41
|
```
|
|
41
42
|
|
|
42
|
-
State (local token,
|
|
43
|
+
State (local token, CNCjs engine config, device link, log) is in `%LOCALAPPDATA%\AgenticNumericalControl`, `~/Library/Application Support/AgenticNumericalControl` or `~/.local/share/agentic-numerical-control`.
|
|
43
44
|
|
|
44
|
-
Design notes and decisions: [docs/design-notes.md](docs/design-notes.md).
|
|
45
|
+
Design notes and decisions: [docs/design-notes.md](docs/design-notes.md). Importing tools from other CNC software: [docs/importing-settings.md](docs/importing-settings.md).
|