wildcrane-runner 0.6.106 → 0.6.107

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/runner.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.106 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.107 — built by runner/scripts/build.mjs. Do not edit.
2
2
  import { createRequire as __ai4kanbanRequire } from 'node:module'
3
3
  const require = __ai4kanbanRequire(import.meta.url)
4
4
  var __create = Object.create;
@@ -1912,33 +1912,33 @@ var require_stats = __commonJS({
1912
1912
  var require_diagnostics = __commonJS({
1913
1913
  "node_modules/undici/lib/core/diagnostics.js"(exports, module) {
1914
1914
  "use strict";
1915
- var diagnosticsChannel = __require("node:diagnostics_channel");
1915
+ var diagnosticsChannel2 = __require("node:diagnostics_channel");
1916
1916
  var util = __require("node:util");
1917
1917
  var undiciDebugLog = util.debuglog("undici");
1918
1918
  var fetchDebuglog = util.debuglog("fetch");
1919
1919
  var websocketDebuglog = util.debuglog("websocket");
1920
1920
  var channels = {
1921
1921
  // Client
1922
- beforeConnect: diagnosticsChannel.channel("undici:client:beforeConnect"),
1923
- connected: diagnosticsChannel.channel("undici:client:connected"),
1924
- connectError: diagnosticsChannel.channel("undici:client:connectError"),
1925
- sendHeaders: diagnosticsChannel.channel("undici:client:sendHeaders"),
1922
+ beforeConnect: diagnosticsChannel2.channel("undici:client:beforeConnect"),
1923
+ connected: diagnosticsChannel2.channel("undici:client:connected"),
1924
+ connectError: diagnosticsChannel2.channel("undici:client:connectError"),
1925
+ sendHeaders: diagnosticsChannel2.channel("undici:client:sendHeaders"),
1926
1926
  // Request
1927
- create: diagnosticsChannel.channel("undici:request:create"),
1928
- bodySent: diagnosticsChannel.channel("undici:request:bodySent"),
1929
- bodyChunkSent: diagnosticsChannel.channel("undici:request:bodyChunkSent"),
1930
- bodyChunkReceived: diagnosticsChannel.channel("undici:request:bodyChunkReceived"),
1931
- headers: diagnosticsChannel.channel("undici:request:headers"),
1932
- trailers: diagnosticsChannel.channel("undici:request:trailers"),
1933
- error: diagnosticsChannel.channel("undici:request:error"),
1927
+ create: diagnosticsChannel2.channel("undici:request:create"),
1928
+ bodySent: diagnosticsChannel2.channel("undici:request:bodySent"),
1929
+ bodyChunkSent: diagnosticsChannel2.channel("undici:request:bodyChunkSent"),
1930
+ bodyChunkReceived: diagnosticsChannel2.channel("undici:request:bodyChunkReceived"),
1931
+ headers: diagnosticsChannel2.channel("undici:request:headers"),
1932
+ trailers: diagnosticsChannel2.channel("undici:request:trailers"),
1933
+ error: diagnosticsChannel2.channel("undici:request:error"),
1934
1934
  // WebSocket
1935
- open: diagnosticsChannel.channel("undici:websocket:open"),
1936
- close: diagnosticsChannel.channel("undici:websocket:close"),
1937
- socketError: diagnosticsChannel.channel("undici:websocket:socket_error"),
1938
- ping: diagnosticsChannel.channel("undici:websocket:ping"),
1939
- pong: diagnosticsChannel.channel("undici:websocket:pong"),
1935
+ open: diagnosticsChannel2.channel("undici:websocket:open"),
1936
+ close: diagnosticsChannel2.channel("undici:websocket:close"),
1937
+ socketError: diagnosticsChannel2.channel("undici:websocket:socket_error"),
1938
+ ping: diagnosticsChannel2.channel("undici:websocket:ping"),
1939
+ pong: diagnosticsChannel2.channel("undici:websocket:pong"),
1940
1940
  // ProxyAgent
1941
- proxyConnected: diagnosticsChannel.channel("undici:proxy:connected")
1941
+ proxyConnected: diagnosticsChannel2.channel("undici:proxy:connected")
1942
1942
  };
1943
1943
  var isTrackingClientEvents = false;
1944
1944
  function trackClientEvents(debugLog = undiciDebugLog) {
@@ -1950,7 +1950,7 @@ var require_diagnostics = __commonJS({
1950
1950
  return;
1951
1951
  }
1952
1952
  isTrackingClientEvents = true;
1953
- diagnosticsChannel.subscribe(
1953
+ diagnosticsChannel2.subscribe(
1954
1954
  "undici:client:beforeConnect",
1955
1955
  (evt) => {
1956
1956
  const {
@@ -1965,7 +1965,7 @@ var require_diagnostics = __commonJS({
1965
1965
  );
1966
1966
  }
1967
1967
  );
1968
- diagnosticsChannel.subscribe(
1968
+ diagnosticsChannel2.subscribe(
1969
1969
  "undici:client:connected",
1970
1970
  (evt) => {
1971
1971
  const {
@@ -1980,7 +1980,7 @@ var require_diagnostics = __commonJS({
1980
1980
  );
1981
1981
  }
1982
1982
  );
1983
- diagnosticsChannel.subscribe(
1983
+ diagnosticsChannel2.subscribe(
1984
1984
  "undici:client:connectError",
1985
1985
  (evt) => {
1986
1986
  const {
@@ -1997,7 +1997,7 @@ var require_diagnostics = __commonJS({
1997
1997
  );
1998
1998
  }
1999
1999
  );
2000
- diagnosticsChannel.subscribe(
2000
+ diagnosticsChannel2.subscribe(
2001
2001
  "undici:client:sendHeaders",
2002
2002
  (evt) => {
2003
2003
  const {
@@ -2017,7 +2017,7 @@ var require_diagnostics = __commonJS({
2017
2017
  return;
2018
2018
  }
2019
2019
  isTrackingRequestEvents = true;
2020
- diagnosticsChannel.subscribe(
2020
+ diagnosticsChannel2.subscribe(
2021
2021
  "undici:request:headers",
2022
2022
  (evt) => {
2023
2023
  const {
@@ -2033,7 +2033,7 @@ var require_diagnostics = __commonJS({
2033
2033
  );
2034
2034
  }
2035
2035
  );
2036
- diagnosticsChannel.subscribe(
2036
+ diagnosticsChannel2.subscribe(
2037
2037
  "undici:request:trailers",
2038
2038
  (evt) => {
2039
2039
  const {
@@ -2042,7 +2042,7 @@ var require_diagnostics = __commonJS({
2042
2042
  debugLog("trailers received from %s %s%s", method, origin, path68);
2043
2043
  }
2044
2044
  );
2045
- diagnosticsChannel.subscribe(
2045
+ diagnosticsChannel2.subscribe(
2046
2046
  "undici:request:error",
2047
2047
  (evt) => {
2048
2048
  const {
@@ -2069,7 +2069,7 @@ var require_diagnostics = __commonJS({
2069
2069
  return;
2070
2070
  }
2071
2071
  isTrackingWebSocketEvents = true;
2072
- diagnosticsChannel.subscribe(
2072
+ diagnosticsChannel2.subscribe(
2073
2073
  "undici:websocket:open",
2074
2074
  (evt) => {
2075
2075
  if (evt.address != null) {
@@ -2080,7 +2080,7 @@ var require_diagnostics = __commonJS({
2080
2080
  }
2081
2081
  }
2082
2082
  );
2083
- diagnosticsChannel.subscribe(
2083
+ diagnosticsChannel2.subscribe(
2084
2084
  "undici:websocket:close",
2085
2085
  (evt) => {
2086
2086
  const { websocket, code, reason } = evt;
@@ -2092,19 +2092,19 @@ var require_diagnostics = __commonJS({
2092
2092
  );
2093
2093
  }
2094
2094
  );
2095
- diagnosticsChannel.subscribe(
2095
+ diagnosticsChannel2.subscribe(
2096
2096
  "undici:websocket:socket_error",
2097
2097
  (err) => {
2098
2098
  debugLog("connection errored - %s", err.message);
2099
2099
  }
2100
2100
  );
2101
- diagnosticsChannel.subscribe(
2101
+ diagnosticsChannel2.subscribe(
2102
2102
  "undici:websocket:ping",
2103
2103
  (evt) => {
2104
2104
  debugLog("ping received");
2105
2105
  }
2106
2106
  );
2107
- diagnosticsChannel.subscribe(
2107
+ diagnosticsChannel2.subscribe(
2108
2108
  "undici:websocket:pong",
2109
2109
  (evt) => {
2110
2110
  debugLog("pong received");
@@ -19003,11 +19003,11 @@ var require_deduplication_handler = __commonJS({
19003
19003
  var require_deduplicate = __commonJS({
19004
19004
  "node_modules/undici/lib/interceptor/deduplicate.js"(exports, module) {
19005
19005
  "use strict";
19006
- var diagnosticsChannel = __require("node:diagnostics_channel");
19006
+ var diagnosticsChannel2 = __require("node:diagnostics_channel");
19007
19007
  var util = require_util();
19008
19008
  var DeduplicationHandler = require_deduplication_handler();
19009
19009
  var { normalizeHeaders, makeCacheKey, makeDeduplicationKey } = require_cache();
19010
- var pendingRequestsChannel = diagnosticsChannel.channel("undici:request:pending-requests");
19010
+ var pendingRequestsChannel = diagnosticsChannel2.channel("undici:request:pending-requests");
19011
19011
  module.exports = (opts = {}) => {
19012
19012
  const {
19013
19013
  methods = ["GET"],
@@ -152799,8 +152799,8 @@ function status(line) {
152799
152799
  }
152800
152800
 
152801
152801
  // src/protocol.ts
152802
- var VERSION = true ? "0.6.106" : "0.0.0";
152803
- var AKB_VERSION = true ? "0.11.86" : "0.0.0";
152802
+ var VERSION = true ? "0.6.107" : "0.0.0";
152803
+ var AKB_VERSION = true ? "0.11.87" : "0.0.0";
152804
152804
  var AKB_CONTRACT = true ? 29 : 0;
152805
152805
  var EXIT_REFUSED = 10;
152806
152806
  var EXIT_OUTDATED = 11;
@@ -155472,7 +155472,7 @@ function createTail(log) {
155472
155472
  // ../cli/package.json
155473
155473
  var package_default = {
155474
155474
  name: "wildcrane",
155475
- version: "0.11.86",
155475
+ version: "0.11.87",
155476
155476
  akbContract: 29,
155477
155477
  description: "WildCrane's `akb` command \u2014 scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
155478
155478
  keywords: [
@@ -156530,6 +156530,7 @@ async function run(io, options, count2) {
156530
156530
  const execution = randomUUID();
156531
156531
  let host = {};
156532
156532
  let cleanup = { status: "confirmed", execution, kept: [] };
156533
+ let hostCleanup;
156533
156534
  let settlement;
156534
156535
  let replySnapshots = /* @__PURE__ */ new Map();
156535
156536
  const visible = /* @__PURE__ */ new Set();
@@ -156586,11 +156587,11 @@ async function run(io, options, count2) {
156586
156587
  };
156587
156588
  const closed = () => {
156588
156589
  const reason = "Codex connection closed before all work and results finished.";
156589
- if (work.work().some((w2) => ["running", "unknown"].includes(w2.status))) note("Connection lost; managed cleanup is unconfirmed.");
156590
+ if (hostCleanup !== "confirmed" && work.work().some((w2) => ["running", "unknown"].includes(w2.status))) note("Connection lost; managed cleanup is unconfirmed.");
156590
156591
  end(reason, makeFailure("runtime", reason, { code: "connection_lost", detail: reason }));
156591
156592
  };
156592
156593
  const inputFailed = (e2) => {
156593
- if (work.work().some((w2) => ["running", "unknown"].includes(w2.status))) note("Connection input failed; managed cleanup is unconfirmed.");
156594
+ if (hostCleanup !== "confirmed" && work.work().some((w2) => ["running", "unknown"].includes(w2.status))) note("Connection input failed; managed cleanup is unconfirmed.");
156594
156595
  end(e2.message, executionFailure(e2));
156595
156596
  };
156596
156597
  io.stdout.once("close", closed);
@@ -156813,6 +156814,14 @@ async function run(io, options, count2) {
156813
156814
  return;
156814
156815
  }
156815
156816
  const p2 = obj2(msg.params);
156817
+ if (msg.method === "wildcrane/cleanup") {
156818
+ if (p2.status === "confirmed") hostCleanup = "confirmed";
156819
+ else if (p2.status === "unconfirmed") {
156820
+ hostCleanup = "unconfirmed";
156821
+ note(str2(p2.diagnostic) || "Codex cleanup is unconfirmed.");
156822
+ }
156823
+ return;
156824
+ }
156816
156825
  const source2 = str2(p2.threadId);
156817
156826
  if (!work.own(source2)) return;
156818
156827
  if (msg.method === "item/commandExecution/terminalInteraction") {
@@ -179230,6 +179239,7 @@ import path23 from "node:path";
179230
179239
 
179231
179240
  // src/codex-native.ts
179232
179241
  import crypto2 from "node:crypto";
179242
+ import diagnosticsChannel from "node:diagnostics_channel";
179233
179243
  import fs19 from "node:fs";
179234
179244
  import os6 from "node:os";
179235
179245
  import path22 from "node:path";
@@ -179374,9 +179384,41 @@ function nativeEndpoint(key) {
179374
179384
  fs19.chmodSync(directory3, 448);
179375
179385
  return `unix://${path22.join(directory3, `${key.slice(0, 12)}-${crypto2.randomBytes(6).toString("hex")}.sock`)}`;
179376
179386
  }
179387
+ function nativeErrorText(error62) {
179388
+ if (!error62) return "";
179389
+ if (error62 instanceof RpcError) return `RPC ${error62.code ?? "unknown"}: ${error62.message}`;
179390
+ if (error62 instanceof Error) {
179391
+ const code = error62.code;
179392
+ const text3 = error62.message.trim() || error62.name;
179393
+ return code && !text3.includes(code) ? `${code}: ${text3}` : text3;
179394
+ }
179395
+ return String(error62);
179396
+ }
179397
+ function nativeEventDetail(event2, fallback) {
179398
+ const value = event2;
179399
+ const message = typeof value.message === "string" && value.message.trim() && value.message !== "undefined" ? value.message.trim() : "";
179400
+ const code = typeof value.code === "number" ? `code ${value.code}${value.reason ? `: ${value.reason}` : ""}` : "";
179401
+ const error62 = value.error instanceof Error && !value.error.message.trim() ? "" : nativeErrorText(value.error);
179402
+ return fallback || error62 || message || code || nativeErrorText(value.error);
179403
+ }
179377
179404
  async function nativeConnection(backend, onMessage) {
179378
179405
  const unix = backend.endpoint.startsWith("unix://");
179379
- const dispatcher = unix ? new import_undici2.Agent({ connect: { socketPath: backend.endpoint.slice(7) } }) : void 0;
179406
+ const socketPath = unix ? backend.endpoint.slice(7) : void 0;
179407
+ const dispatcher = unix ? new import_undici2.Agent({ connect: { socketPath } }) : void 0;
179408
+ let lastError = "";
179409
+ const onSocketError = (err) => {
179410
+ lastError = nativeErrorText(err) || lastError;
179411
+ };
179412
+ const onConnectError = (data) => {
179413
+ const record2 = data;
179414
+ if (!socketPath || record2.connectParams?.socketPath === socketPath) lastError = nativeErrorText(record2.error) || lastError;
179415
+ };
179416
+ diagnosticsChannel.subscribe("undici:websocket:socket_error", onSocketError);
179417
+ diagnosticsChannel.subscribe("undici:client:connectError", onConnectError);
179418
+ const unsubscribeDiagnostics = () => {
179419
+ diagnosticsChannel.unsubscribe("undici:websocket:socket_error", onSocketError);
179420
+ diagnosticsChannel.unsubscribe("undici:client:connectError", onConnectError);
179421
+ };
179380
179422
  const ws = new import_undici2.WebSocket(unix ? "ws://localhost" : backend.endpoint, {
179381
179423
  ...dispatcher ? { dispatcher } : {},
179382
179424
  ...backend.token ? { headers: { authorization: `Bearer ${backend.token}` } } : {}
@@ -179394,11 +179436,30 @@ async function nativeConnection(backend, onMessage) {
179394
179436
  });
179395
179437
  outgoing.on("error", () => {
179396
179438
  });
179439
+ let closing = false;
179397
179440
  ws.addEventListener("message", (event2) => incoming.write(String(event2.data) + "\n"));
179398
- ws.addEventListener("close", () => incoming.destroy());
179399
- ws.addEventListener("error", () => incoming.destroy(Error("Codex native connection failed.")));
179441
+ ws.addEventListener("close", (event2) => {
179442
+ unsubscribeDiagnostics();
179443
+ if (!closing && !incoming.destroyed && (!event2.wasClean || event2.code !== 1e3 && event2.code !== 1005)) {
179444
+ const detail = nativeEventDetail(event2, lastError);
179445
+ const message = detail ? `Codex native connection closed (${detail}).` : "Codex native connection closed.";
179446
+ console.error(message);
179447
+ incoming.destroy(Error(message));
179448
+ return;
179449
+ }
179450
+ incoming.destroy();
179451
+ });
179452
+ ws.addEventListener("error", (event2) => {
179453
+ if (closing || incoming.destroyed) return;
179454
+ const detail = nativeEventDetail(event2, lastError);
179455
+ const message = detail ? `Codex native connection failed: ${detail}` : "Codex native connection failed.";
179456
+ console.error(message);
179457
+ incoming.destroy(Error(message));
179458
+ });
179400
179459
  const close = () => {
179401
- ws.close();
179460
+ closing = true;
179461
+ unsubscribeDiagnostics();
179462
+ if (ws.readyState === import_undici2.WebSocket.OPEN || ws.readyState === import_undici2.WebSocket.CONNECTING) ws.close();
179402
179463
  incoming.destroy();
179403
179464
  outgoing.destroy();
179404
179465
  void dispatcher?.destroy();
@@ -179406,7 +179467,10 @@ async function nativeConnection(backend, onMessage) {
179406
179467
  try {
179407
179468
  await bounded(new Promise((resolve2, reject) => {
179408
179469
  ws.addEventListener("open", () => resolve2(), { once: true });
179409
- ws.addEventListener("error", () => reject(Error("Codex native listener did not answer.")), { once: true });
179470
+ ws.addEventListener("error", (event2) => {
179471
+ const detail = nativeEventDetail(event2, lastError);
179472
+ reject(Error(detail ? `Codex native listener did not answer (${detail}).` : "Codex native listener did not answer."));
179473
+ }, { once: true });
179410
179474
  }), CODEX_TIMEOUT, "Codex native connection timed out.");
179411
179475
  } catch (error62) {
179412
179476
  close();
@@ -189132,14 +189196,19 @@ async function codexServer() {
189132
189196
  const work = (async () => {
189133
189197
  const previous = readPrivate(backendFile(key));
189134
189198
  if (previous && previous.generation === generation && liveBackend(previous)) {
189135
- const probe2 = await nativeConnection(previous, () => {
189136
- });
189137
189199
  try {
189138
- await initializeNative(probe2);
189139
- } finally {
189140
- probe2.close();
189200
+ const probe2 = await nativeConnection(previous, () => {
189201
+ });
189202
+ try {
189203
+ await initializeNative(probe2);
189204
+ } finally {
189205
+ probe2.close();
189206
+ }
189207
+ idle2.delete(previous.instance);
189208
+ return previous;
189209
+ } catch (error62) {
189210
+ if (liveBackend(previous)) throw error62;
189141
189211
  }
189142
- return previous;
189143
189212
  }
189144
189213
  if (previous && liveBackend(previous)) throw Error("Codex backend belongs to an expired account session; stop it before reconnecting.");
189145
189214
  const backend = { ...processIdentity(), key, instance: crypto11.randomUUID(), generation, endpoint: nativeEndpoint(key) };
@@ -189197,6 +189266,7 @@ async function codexServer() {
189197
189266
  backend.identity = connectionIdentity(child.pid);
189198
189267
  if (!backend.identity) throw Error("Codex native process identity could not be confirmed.");
189199
189268
  writePrivate(backendFile(key), backend);
189269
+ idle2.delete(backend.instance);
189200
189270
  return backend;
189201
189271
  } catch (error62) {
189202
189272
  child.kill("SIGKILL");
@@ -189265,10 +189335,10 @@ async function codexServer() {
189265
189335
  used = fs57.readdirSync(leases).filter((file3) => file3.endsWith(".json")).some((file3) => !!readPrivate(path61.join(leases, file3)));
189266
189336
  } catch {
189267
189337
  }
189268
- if (used || pending.has(backend.key)) idle2.delete(backend.key);
189338
+ if (used || pending.has(backend.key)) idle2.delete(backend.instance);
189269
189339
  else {
189270
- const since = idle2.get(backend.key) ?? Date.now();
189271
- idle2.set(backend.key, since);
189340
+ const since = idle2.get(backend.instance) ?? Date.now();
189341
+ idle2.set(backend.instance, since);
189272
189342
  if (Date.now() - since > (Number(process.env.WILDCRANE_CODEX_IDLE_MS) || 3e4) && liveBackend(backend)) {
189273
189343
  try {
189274
189344
  process.kill(backend.pid, "SIGTERM");
package/dist/settings.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.106 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.107 — built by runner/scripts/build.mjs. Do not edit.
2
2
  import { createRequire as __ai4kanbanRequire } from 'node:module'
3
3
  const require = __ai4kanbanRequire(import.meta.url)
4
4
  var __create = Object.create;
@@ -61045,8 +61045,8 @@ function cloudProblem(response, body) {
61045
61045
  }
61046
61046
 
61047
61047
  // src/protocol.ts
61048
- var VERSION = true ? "0.6.106" : "0.0.0";
61049
- var AKB_VERSION = true ? "0.11.86" : "0.0.0";
61048
+ var VERSION = true ? "0.6.107" : "0.0.0";
61049
+ var AKB_VERSION = true ? "0.11.87" : "0.0.0";
61050
61050
 
61051
61051
  // ../cli/src/lib/agent/harnesses/antigravity.ts
61052
61052
  import fs7 from "node:fs";
@@ -63569,7 +63569,7 @@ function createTail(log) {
63569
63569
  // ../cli/package.json
63570
63570
  var package_default = {
63571
63571
  name: "wildcrane",
63572
- version: "0.11.86",
63572
+ version: "0.11.87",
63573
63573
  akbContract: 29,
63574
63574
  description: "WildCrane's `akb` command \u2014 scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
63575
63575
  keywords: [
@@ -64543,6 +64543,7 @@ async function run(io, options, count2) {
64543
64543
  const execution = randomUUID();
64544
64544
  let host = {};
64545
64545
  let cleanup = { status: "confirmed", execution, kept: [] };
64546
+ let hostCleanup;
64546
64547
  let settlement;
64547
64548
  let replySnapshots = /* @__PURE__ */ new Map();
64548
64549
  const visible = /* @__PURE__ */ new Set();
@@ -64599,11 +64600,11 @@ async function run(io, options, count2) {
64599
64600
  };
64600
64601
  const closed = () => {
64601
64602
  const reason = "Codex connection closed before all work and results finished.";
64602
- if (work.work().some((w) => ["running", "unknown"].includes(w.status))) note("Connection lost; managed cleanup is unconfirmed.");
64603
+ if (hostCleanup !== "confirmed" && work.work().some((w) => ["running", "unknown"].includes(w.status))) note("Connection lost; managed cleanup is unconfirmed.");
64603
64604
  end(reason, makeFailure("runtime", reason, { code: "connection_lost", detail: reason }));
64604
64605
  };
64605
64606
  const inputFailed = (e) => {
64606
- if (work.work().some((w) => ["running", "unknown"].includes(w.status))) note("Connection input failed; managed cleanup is unconfirmed.");
64607
+ if (hostCleanup !== "confirmed" && work.work().some((w) => ["running", "unknown"].includes(w.status))) note("Connection input failed; managed cleanup is unconfirmed.");
64607
64608
  end(e.message, executionFailure(e));
64608
64609
  };
64609
64610
  io.stdout.once("close", closed);
@@ -64826,6 +64827,14 @@ async function run(io, options, count2) {
64826
64827
  return;
64827
64828
  }
64828
64829
  const p = obj2(msg.params);
64830
+ if (msg.method === "wildcrane/cleanup") {
64831
+ if (p.status === "confirmed") hostCleanup = "confirmed";
64832
+ else if (p.status === "unconfirmed") {
64833
+ hostCleanup = "unconfirmed";
64834
+ note(str2(p.diagnostic) || "Codex cleanup is unconfirmed.");
64835
+ }
64836
+ return;
64837
+ }
64829
64838
  const source = str2(p.threadId);
64830
64839
  if (!work.own(source)) return;
64831
64840
  if (msg.method === "item/commandExecution/terminalInteraction") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildcrane-runner",
3
- "version": "0.6.106",
3
+ "version": "0.6.107",
4
4
  "description": "WildCrane's Local Runner — connects this computer to WildCrane and runs its jobs on your local Claude Code, Codex, OpenCode or Cursor.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://wildcrane.ai/",