@zeroroot-ai/zerocool-claude 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -1
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -157,7 +157,11 @@ export async function submitMission(definition, targetId, opts = {}) {
157
157
  const file = join(dir, "session.json");
158
158
  try {
159
159
  await writeFile(file, JSON.stringify(definition), { mode: 0o600 });
160
- const args = ["mission", "submit", file, "--format", "json", "--target", targetId];
160
+ // --detach: the CLI returns once the daemon started the run and prints the
161
+ // mission id. Without it the CLI holds the RunMission stream until the
162
+ // mission ends, which never happens: this process must go on to claim the
163
+ // dispatch, and the CLI's own deadline fires first.
164
+ const args = ["mission", "submit", file, "--format", "json", "--target", targetId, "--detach"];
161
165
  if (opts.gibsonURL)
162
166
  args.push("--gibson-url", opts.gibsonURL);
163
167
  if (opts.tenant)
@@ -166,6 +170,8 @@ export async function submitMission(definition, targetId, opts = {}) {
166
170
  if (r.code !== 0) {
167
171
  if (needsLogin(r))
168
172
  throw new Error("the gibson CLI has no session; run gibson_login first");
173
+ if (/unknown flag: --detach/.test(r.stderr))
174
+ throw new Error("the gibson CLI is too old for mission submit --detach; update the gibson CLI (adk >= 0.109)");
169
175
  throw new Error(`gibson mission submit failed (exit ${r.code}): ${(r.stderr || r.stdout).trim().slice(0, 400)}`);
170
176
  }
171
177
  const ids = r.stdout.match(UUID) ?? [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeroroot-ai/zerocool-claude",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Claude Code plugin: Gibson platform integration (zerocool). The session is a live mission. Memory, knowledge, findings, tools, delegation. The model stays on your Claude subscription.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@modelcontextprotocol/sdk": "^1.30.0",
29
- "@zeroroot-ai/sdk": "^0.8.0",
29
+ "@zeroroot-ai/sdk": "^0.9.0",
30
30
  "zod": "^4.4.3"
31
31
  },
32
32
  "bin": {