agentic-numerical-control 0.1.2 → 0.1.3
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/dist/server/server.js +10 -1
- package/package.json +1 -1
package/dist/server/server.js
CHANGED
|
@@ -34,7 +34,12 @@ export function createServer() {
|
|
|
34
34
|
gcode: z.string().optional().describe("G-code program text to preview"),
|
|
35
35
|
name: z.string().optional().describe("Display name when passing gcode text"),
|
|
36
36
|
}),
|
|
37
|
-
_meta: {
|
|
37
|
+
_meta: {
|
|
38
|
+
ui: { resourceUri: VIEWER_URI },
|
|
39
|
+
// Status lines ChatGPT shows while the tool runs; other hosts ignore them.
|
|
40
|
+
"openai/toolInvocation/invoking": "Opening the toolpath viewer…",
|
|
41
|
+
"openai/toolInvocation/invoked": "Toolpath viewer ready",
|
|
42
|
+
},
|
|
38
43
|
}, async ({ file, gcode, name }) => {
|
|
39
44
|
try {
|
|
40
45
|
const job = file
|
|
@@ -256,6 +261,10 @@ export function createServer() {
|
|
|
256
261
|
uri: VIEWER_URI,
|
|
257
262
|
mimeType: RESOURCE_MIME_TYPE,
|
|
258
263
|
text: await fs.readFile(VIEWER_HTML, "utf-8"),
|
|
264
|
+
// The viewer is self-contained (one bundled file) and only talks to
|
|
265
|
+
// this server through the host bridge: no outside origins at all.
|
|
266
|
+
// Hosts default border styling differently, so say what we want.
|
|
267
|
+
_meta: { ui: { csp: { connectDomains: [], resourceDomains: [] }, prefersBorder: true } },
|
|
259
268
|
},
|
|
260
269
|
],
|
|
261
270
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-numerical-control",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Agentic Numerical Control: see and run CNC jobs from your AI assistant. A 3D toolpath viewer, live machine status and job control for CNCjs/GRBL machines.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --noEmit -p tsconfig.app.json && cross-env INPUT=viewer.html vite build && tsc -p tsconfig.build.json",
|