agentic-numerical-control 0.1.6 → 0.2.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 +45 -44
- 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/jobs.html +137 -0
- package/dist/machine.html +164 -0
- package/dist/server/analysis.js +356 -0
- package/dist/server/cam.js +592 -0
- package/dist/server/cncjs.js +194 -75
- package/dist/server/history.js +48 -0
- package/dist/server/jobs.js +60 -3
- package/dist/server/machines.js +96 -0
- package/dist/server/program.js +14 -0
- package/dist/server/server.js +577 -52
- package/dist/server/settings-import.js +237 -0
- package/dist/setup.html +156 -0
- package/dist/viewer.html +296 -265
- package/package.json +9 -5
package/README.md
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
# Agentic Numerical Control
|
|
2
|
-
|
|
3
|
-
See and run CNC jobs from Claude: a 3D toolpath viewer inside the chat, live machine status and job control, for
|
|
4
|
-
|
|
5
|
-
The product name, npm package name and cloud address live in [product.json](product.json); renaming is a change there.
|
|
6
|
-
|
|
7
|
-
## How it fits together
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
Claude ──MCP+OAuth──▶ cloud/ (Cloudflare Worker) ◀──outbound WebSocket── PC app (npm package) ──▶ CNCjs ──USB──▶ GRBL
|
|
11
|
-
```
|
|
12
|
-
|
|
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,
|
|
15
|
-
- **
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
npm
|
|
35
|
-
npm run
|
|
36
|
-
npm run dev
|
|
37
|
-
npm run
|
|
38
|
-
npm run sim:
|
|
39
|
-
npm
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
# Agentic Numerical Control
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
The product name, npm package name and cloud address live in [product.json](product.json); renaming is a change there.
|
|
6
|
+
|
|
7
|
+
## How it fits together
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Claude ──MCP+OAuth──▶ cloud/ (Cloudflare Worker) ◀──outbound WebSocket── PC app (npm package) ──▶ built-in CNCjs ──USB──▶ GRBL
|
|
11
|
+
```
|
|
12
|
+
|
|
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, 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)).
|
|
16
|
+
- **sim/**: grblHAL simulator exposed to CNCjs as a GRBL-SIM serial port, for testing without a machine (development only, not shipped).
|
|
17
|
+
|
|
18
|
+
## For users
|
|
19
|
+
|
|
20
|
+
```powershell
|
|
21
|
+
irm https://agenticnumericalcontrol.netlify.app/install.ps1 | iex # Windows
|
|
22
|
+
```
|
|
23
|
+
```bash
|
|
24
|
+
curl -fsSL https://agenticnumericalcontrol.netlify.app/install.sh | sh # macOS / Linux
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The installer puts a private Node.js and the app in the user's app-data folder (no admin), links the PC to the account with a code, and starts it at every login. G-code goes in `Documents/Agentic Numerical Control`. The app updates itself from npm when it starts.
|
|
28
|
+
|
|
29
|
+
CLI: `anc setup | start | status | unlink | stdio | serve`.
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
```powershell
|
|
34
|
+
npm install
|
|
35
|
+
npm run build # CNCjs and Kiri:Moto engines, viewer and compiled app in dist/
|
|
36
|
+
npm run dev # build and run the app against the cloud in product.json
|
|
37
|
+
npm run dev:serve # local MCP endpoint only, http://127.0.0.1:3311/mcp/<token>
|
|
38
|
+
npm run sim:build # build the simulator (WSL on Windows)
|
|
39
|
+
npm run sim:e2e # connect GRBL-SIM, load the demo job, start, pause, stop
|
|
40
|
+
npm pack # what would be published (dist, product.json, demo job, sim hook)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
State (local token, CNCjs engine config, device link, log) is in `%LOCALAPPDATA%\AgenticNumericalControl`, `~/Library/Application Support/AgenticNumericalControl` or `~/.local/share/agentic-numerical-control`.
|
|
44
|
+
|
|
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).
|