@zeroroot-ai/zerocool 0.11.0 → 0.11.2

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.
@@ -81,8 +81,13 @@ export interface CallbackGrant {
81
81
  callbackToken: string;
82
82
  /** Dial the callback listener without TLS. Only for a local or kind daemon. */
83
83
  insecure?: boolean;
84
+ /**
85
+ * The mission run. Required: the mission ID is the same for every run of a
86
+ * record, so a callback with no run cannot be told from a callback of another
87
+ * run, and the daemon refuses it (gibson#1235).
88
+ */
89
+ missionRunId: string;
84
90
  /** Provenance the platform correlates the run by. Empty when the caller set none. */
85
- missionRunId?: string;
86
91
  agentRunId?: string;
87
92
  traceId?: string;
88
93
  }
package/dist/dispatch.js CHANGED
@@ -79,11 +79,14 @@ import { formatSourceAnalysis, harnessTriageModel, runSourceAnalysis, } from "./
79
79
  * same environment.
80
80
  */
81
81
  export function dispatchChildEnv(g) {
82
+ if (!g.missionRunId) {
83
+ throw new Error("dispatch carries no mission run id: the child's callbacks would be refused");
84
+ }
82
85
  return {
83
86
  ...(g.callbackEndpoint ? { GIBSON_CALLBACK_ENDPOINT: g.callbackEndpoint } : {}),
84
87
  ...(g.callbackToken ? { GIBSON_CALLBACK_TOKEN: g.callbackToken } : {}),
85
88
  ...(g.insecure ? { GIBSON_CALLBACK_INSECURE: "1" } : {}),
86
- ...(g.missionRunId ? { GIBSON_MISSION_RUN_ID: g.missionRunId } : {}),
89
+ GIBSON_MISSION_RUN_ID: g.missionRunId,
87
90
  ...(g.agentRunId ? { GIBSON_AGENT_RUN_ID: g.agentRunId } : {}),
88
91
  ...(g.traceId ? { GIBSON_TRACE_ID: g.traceId } : {}),
89
92
  };
@@ -17,10 +17,10 @@
17
17
  * The agent image carries no npm at all: every npm release bundles its own
18
18
  * copies of undici and ip-address, and an image that carries npm carries
19
19
  * their CVEs (zerocool-plugins#101). There the server is installed at build
20
- * time from tools/opencode/package-lock.json, hash pinned, and
20
+ * time from packages/opencode-gibson/image/package-lock.json, hash pinned, and
21
21
  * `ZEROCOOL_MCP_BIN` names it, the same knob the Claude member driver reads.
22
22
  */
23
- export declare const GIBSON_MCP_PACKAGE = "@zeroroot-ai/gibson-mcp@0.3.0";
23
+ export declare const GIBSON_MCP_PACKAGE = "@zeroroot-ai/gibson-mcp@0.7.1";
24
24
  /** The command opencode spawns: the installed bin when the image names one, else the pinned package through npx. */
25
25
  export declare function gibsonMcpCommand(env?: NodeJS.ProcessEnv): string[];
26
26
  export interface OpencodeMcpLocal {
@@ -19,10 +19,10 @@
19
19
  * The agent image carries no npm at all: every npm release bundles its own
20
20
  * copies of undici and ip-address, and an image that carries npm carries
21
21
  * their CVEs (zerocool-plugins#101). There the server is installed at build
22
- * time from tools/opencode/package-lock.json, hash pinned, and
22
+ * time from packages/opencode-gibson/image/package-lock.json, hash pinned, and
23
23
  * `ZEROCOOL_MCP_BIN` names it, the same knob the Claude member driver reads.
24
24
  */
25
- export const GIBSON_MCP_PACKAGE = "@zeroroot-ai/gibson-mcp@0.3.0";
25
+ export const GIBSON_MCP_PACKAGE = "@zeroroot-ai/gibson-mcp@0.7.1";
26
26
  /** The command opencode spawns: the installed bin when the image names one, else the pinned package through npx. */
27
27
  export function gibsonMcpCommand(env = process.env) {
28
28
  const bin = env.ZEROCOOL_MCP_BIN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeroroot-ai/zerocool",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "opencode host adapter for Gibson (zerocool): zero-config LLM through the harness, ambient knowledge, and the Gibson MCP server registered for you. The tools come from @zeroroot-ai/gibson-mcp.",
5
5
  "license": "Elastic-2.0",
6
6
  "repository": {
@@ -23,13 +23,13 @@
23
23
  "test": "tsc -p tsconfig.test.json && node --test \"dist-test/**/*.test.js\""
24
24
  },
25
25
  "dependencies": {
26
- "@zeroroot-ai/sdk": "^0.16.0"
26
+ "@zeroroot-ai/sdk": "^0.18.1"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@opencode-ai/plugin": "*"
30
30
  },
31
31
  "devDependencies": {
32
- "@opencode-ai/plugin": "^1.18.34"
32
+ "@opencode-ai/plugin": "^1.19.2"
33
33
  },
34
34
  "bin": {
35
35
  "zerocool-serve": "dist/serve.js",