@grackle-ai/cli 0.112.2 → 0.114.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
|
@@ -81,6 +81,9 @@ grackle serve --allow-network # bind to 0.0.0.0 for LAN access
|
|
|
81
81
|
| `--port <port>` | Server gRPC port | `7434` |
|
|
82
82
|
| `--web-port <port>` | Web UI port | `3000` |
|
|
83
83
|
| `--mcp-port <port>` | MCP server port | `7435` |
|
|
84
|
+
| `--mcp-origin <origin>` | Browser-facing MCP origin (e.g. `https://mcp.example.com`) for reverse-proxy/TLS deployments; trusted asset/CSP origin for widgets | (derived from host + `--mcp-port`) |
|
|
85
|
+
| `--sandbox-port <port>` | MCP Apps widget sandbox port | `7436` |
|
|
86
|
+
| `--sandbox-origin <origin>` | Browser-facing MCP Apps sandbox origin (e.g. `https://sandbox.example.com`) for reverse-proxy/TLS deployments | (derived from host + `--sandbox-port`) |
|
|
84
87
|
| `--powerline-port <port>` | Local PowerLine port | `7433` |
|
|
85
88
|
| `--allow-network` | Bind to all interfaces (0.0.0.0) | Off (127.0.0.1) |
|
|
86
89
|
|
|
@@ -646,10 +649,13 @@ Inspect active IPC streams for debugging inter-session communication.
|
|
|
646
649
|
|
|
647
650
|
#### `grackle streams list`
|
|
648
651
|
|
|
649
|
-
List
|
|
652
|
+
List active IPC streams with subscriber details and message buffer depth.
|
|
653
|
+
Internal plumbing streams (`lifecycle:` / `pipe:` / `stdin:`) are hidden by
|
|
654
|
+
default; pass `--internal` to include them.
|
|
650
655
|
|
|
651
656
|
```bash
|
|
652
657
|
grackle streams list
|
|
658
|
+
grackle streams list --internal # include internal IPC plumbing
|
|
653
659
|
# ┌──────────┬────────────────┬─────────────────────────┬──────────────┐
|
|
654
660
|
# │ ID │ Name │ Subscribers │ Buffer Depth │
|
|
655
661
|
# ├──────────┼────────────────┼─────────────────────────┼──────────────┤
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,8EAA8E;AAC9E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,8EAA8E;AAC9E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmC3D"}
|
package/dist/commands/serve.js
CHANGED
|
@@ -6,16 +6,26 @@ export function registerServeCommand(program) {
|
|
|
6
6
|
.option("--port <port>", "Server port", "7434")
|
|
7
7
|
.option("--web-port <port>", "Web UI port", "3000")
|
|
8
8
|
.option("--mcp-port <port>", "MCP server port", "7435")
|
|
9
|
+
.option("--mcp-origin <origin>", "Browser-facing MCP origin (e.g. https://mcp.example.com) for reverse-proxy/TLS deployments; trusted asset/CSP origin for widgets")
|
|
10
|
+
.option("--sandbox-port <port>", "MCP Apps widget sandbox port", "7436")
|
|
11
|
+
.option("--sandbox-origin <origin>", "Browser-facing MCP Apps sandbox origin (e.g. https://sandbox.example.com) for reverse-proxy/TLS deployments")
|
|
9
12
|
.option("--powerline-port <port>", "Local PowerLine port", "7433")
|
|
10
13
|
.option("--allow-network", "Bind to all interfaces (0.0.0.0) for LAN access")
|
|
11
14
|
.action(async (opts) => {
|
|
12
15
|
process.env.GRACKLE_PORT = opts.port;
|
|
13
16
|
process.env.GRACKLE_WEB_PORT = opts.webPort;
|
|
14
17
|
process.env.GRACKLE_MCP_PORT = opts.mcpPort;
|
|
18
|
+
if (opts.mcpOrigin !== undefined) {
|
|
19
|
+
process.env.GRACKLE_MCP_ORIGIN = opts.mcpOrigin;
|
|
20
|
+
}
|
|
21
|
+
process.env.GRACKLE_SANDBOX_PORT = opts.sandboxPort;
|
|
22
|
+
if (opts.sandboxOrigin !== undefined) {
|
|
23
|
+
process.env.GRACKLE_SANDBOX_ORIGIN = opts.sandboxOrigin;
|
|
24
|
+
}
|
|
15
25
|
process.env.GRACKLE_POWERLINE_PORT = opts.powerlinePort;
|
|
16
26
|
process.env.GRACKLE_HOST = opts.allowNetwork ? "0.0.0.0" : "127.0.0.1";
|
|
17
27
|
console.log(`Starting Grackle server...`);
|
|
18
|
-
console.log(`gRPC on port ${opts.port}, Web UI on port ${opts.webPort}, MCP on port ${opts.mcpPort}, PowerLine on port ${opts.powerlinePort}`);
|
|
28
|
+
console.log(`gRPC on port ${opts.port}, Web UI on port ${opts.webPort}, MCP on port ${opts.mcpPort}, Sandbox on port ${opts.sandboxPort}, PowerLine on port ${opts.powerlinePort}`);
|
|
19
29
|
if (opts.allowNetwork) {
|
|
20
30
|
console.log("Network access enabled — binding to all interfaces");
|
|
21
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,OAAO;SACJ,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,0BAA0B,CAAC;SACvC,MAAM,CAAC,eAAe,EAAE,aAAa,EAAE,MAAM,CAAC;SAC9C,MAAM,CAAC,mBAAmB,EAAE,aAAa,EAAE,MAAM,CAAC;SAClD,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,CAAC;SACtD,MAAM,CAAC,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,CAAC;SACjE,MAAM,CAAC,iBAAiB,EAAE,iDAAiD,CAAC;SAC5E,MAAM,CAAC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,MAAM,UAAU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IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC;QAEvE,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC1C,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,CAAC,IAAI,oBAAoB,IAAI,CAAC,OAAO,iBAAiB,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,WAAW,uBAAuB,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QACpL,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACtB,OAAO,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAAC;QACpE,CAAC;QAED,qCAAqC;QACrC,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.d.ts","sourceRoot":"","sources":["../../src/commands/streams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,2DAA2D;AAC3D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"streams.d.ts","sourceRoot":"","sources":["../../src/commands/streams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,2DAA2D;AAC3D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmC7D"}
|
package/dist/commands/streams.js
CHANGED
|
@@ -6,9 +6,10 @@ export function registerStreamCommands(program) {
|
|
|
6
6
|
streams
|
|
7
7
|
.command("list")
|
|
8
8
|
.description("List active IPC streams with subscriber details")
|
|
9
|
-
.
|
|
9
|
+
.option("--internal", "Include internal IPC streams (lifecycle/pipe/stdin)")
|
|
10
|
+
.action(async (opts) => {
|
|
10
11
|
const { core: client } = createGrackleClients();
|
|
11
|
-
const res = await client.listStreams({});
|
|
12
|
+
const res = await client.listStreams({ includeInternal: opts.internal ?? false });
|
|
12
13
|
if (res.streams.length === 0) {
|
|
13
14
|
console.log("No active streams.");
|
|
14
15
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../src/commands/streams.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,2DAA2D;AAC3D,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACrD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAE9E,OAAO;SACJ,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../src/commands/streams.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,2DAA2D;AAC3D,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACrD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAE9E,OAAO;SACJ,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,iDAAiD,CAAC;SAC9D,MAAM,CAAC,YAAY,EAAE,qDAAqD,CAAC;SAC3E,MAAM,CAAC,KAAK,EAAE,IAA4B,EAAE,EAAE;QAC7C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,oBAAoB,EAAE,CAAC;QAChD,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,QAAQ,IAAI,KAAK,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Command-line interface for managing Grackle environments and agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"commander": "^13.0.0",
|
|
39
39
|
"ora": "^8.0.0",
|
|
40
40
|
"qrcode": "^1.5.4",
|
|
41
|
-
"@grackle-ai/server": "0.
|
|
42
|
-
"@grackle-ai/
|
|
43
|
-
"@grackle-ai/
|
|
41
|
+
"@grackle-ai/server": "0.114.0",
|
|
42
|
+
"@grackle-ai/common": "0.114.0",
|
|
43
|
+
"@grackle-ai/core": "0.114.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@rushstack/heft": "1.2.7",
|