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 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 CNCjs/GRBL machines. 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) ──▶ 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, bundles CNCjs, serves the MCP tools and the viewer, and keeps an outbound connection to the cloud. Nothing listens on the network.
15
- - **sim/**: grblHAL simulator exposed to CNCjs as a GRBL-SIM serial port, for testing without a machine (development only, not shipped).
16
-
17
- ## For users
18
-
19
- ```powershell
20
- irm https://agenticnumericalcontrol.netlify.app/install.ps1 | iex # Windows
21
- ```
22
- ```bash
23
- curl -fsSL https://agenticnumericalcontrol.netlify.app/install.sh | sh # macOS / Linux
24
- ```
25
-
26
- 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.
27
-
28
- CLI: `anc setup | start | status | unlink | stdio | serve`.
29
-
30
- ## Development
31
-
32
- ```powershell
33
- npm install
34
- npm run build # viewer + compiled app in dist/
35
- npm run dev # build and run the app against the cloud in product.json
36
- npm run dev:serve # local MCP endpoint only, http://127.0.0.1:3311/mcp/<token>
37
- npm run sim:build # build the simulator (WSL on Windows)
38
- npm run sim:e2e # connect GRBL-SIM, load the demo job, start, pause, stop
39
- npm pack # what would be published (dist, product.json, demo job, sim hook)
40
- ```
41
-
42
- State (local token, bundled CNCjs config, device link, log) is in `%LOCALAPPDATA%\AgenticNumericalControl`, `~/Library/Application Support/AgenticNumericalControl` or `~/.local/share/agentic-numerical-control`.
43
-
44
- Design notes and decisions: [docs/design-notes.md](docs/design-notes.md).
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).