agentic-numerical-control 0.1.6 → 0.1.8
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 +44 -44
- package/dist/jobs.html +137 -0
- package/dist/machine.html +164 -0
- package/dist/server/analysis.js +356 -0
- package/dist/server/autostart.js +18 -18
- package/dist/server/cncjs.js +96 -1
- 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 +352 -50
- package/dist/setup.html +156 -0
- package/dist/viewer.html +299 -265
- package/package.json +2 -2
- 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,44 +1,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 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 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).
|