wildcrane-runner 0.6.54 → 0.6.56

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // ai4kanban 0.11.43 — built by runner/scripts/build.mjs. Do not edit.
2
+ // ai4kanban 0.11.44 — built by runner/scripts/build.mjs. Do not edit.
3
3
  import { createRequire as __ai4kanbanRequire } from 'node:module'
4
4
  const require = __ai4kanbanRequire(import.meta.url)
5
5
  var __create = Object.create;
@@ -4223,7 +4223,7 @@ var init_package = __esm({
4223
4223
  "../cli/package.json"() {
4224
4224
  package_default = {
4225
4225
  name: "wildcrane",
4226
- version: "0.11.43",
4226
+ version: "0.11.44",
4227
4227
  akbContract: 11,
4228
4228
  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.",
4229
4229
  keywords: [
@@ -1 +1 @@
1
- {"name":"wildcrane","version":"0.11.43","akbContract":11,"type":"module","private":true}
1
+ {"name":"wildcrane","version":"0.11.44","akbContract":11,"type":"module","private":true}
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.54 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.56 — 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;
package/dist/launcher.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.54 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.56 — 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;
@@ -26903,8 +26903,8 @@ function saveAlphaUpdates(value) {
26903
26903
  }
26904
26904
 
26905
26905
  // src/protocol.ts
26906
- var VERSION = true ? "0.6.54" : "0.0.0";
26907
- var AKB_VERSION = true ? "0.11.43" : "0.0.0";
26906
+ var VERSION = true ? "0.6.56" : "0.0.0";
26907
+ var AKB_VERSION = true ? "0.11.44" : "0.0.0";
26908
26908
  var EXIT_REFUSED = 10;
26909
26909
  var EXIT_OUTDATED = 11;
26910
26910
  var EXIT_UPDATE = 12;
@@ -30513,7 +30513,7 @@ function createTail(log) {
30513
30513
  // ../cli/package.json
30514
30514
  var package_default = {
30515
30515
  name: "wildcrane",
30516
- version: "0.11.43",
30516
+ version: "0.11.44",
30517
30517
  akbContract: 11,
30518
30518
  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.",
30519
30519
  keywords: [
package/dist/plugin.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.54 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.56 — 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;
@@ -73774,8 +73774,8 @@ function machineId() {
73774
73774
  var machineName = () => os3.hostname().replace(/\.local$/, "");
73775
73775
 
73776
73776
  // src/protocol.ts
73777
- var VERSION = true ? "0.6.54" : "0.0.0";
73778
- var AKB_VERSION = true ? "0.11.43" : "0.0.0";
73777
+ var VERSION = true ? "0.6.56" : "0.0.0";
73778
+ var AKB_VERSION = true ? "0.11.44" : "0.0.0";
73779
73779
  var EXIT_REFUSED = 10;
73780
73780
  var EXIT_OUTDATED = 11;
73781
73781
  var EXIT_UPDATE = 12;
@@ -75436,7 +75436,7 @@ var KEEP_MS = 6 * 60 * 6e4;
75436
75436
  var RETRY_MS = 5 * 6e4;
75437
75437
  var pluginRoot = (host2) => (host2 === "claude-code" || host2 === "zcode") && process.env.CLAUDE_PLUGIN_ROOT || path17.resolve(path17.dirname(process.argv[1] ?? ""), "..", "..");
75438
75438
  var CLAUDE_MANIFEST = path17.join(".claude-plugin", "plugin.json");
75439
- var MANIFEST = { "claude-code": CLAUDE_MANIFEST, zcode: CLAUDE_MANIFEST, codex: "plugin.json", grok: "plugin.json", dsh: "package.json", cursor: path17.join(".cursor-plugin", "plugin.json"), kimi: "kimi.plugin.json" };
75439
+ var MANIFEST = { "claude-code": CLAUDE_MANIFEST, zcode: CLAUDE_MANIFEST, codex: "plugin.json", grok: "plugin.json", opencode: "package.json", dsh: "package.json", cursor: path17.join(".cursor-plugin", "plugin.json"), kimi: "kimi.plugin.json" };
75440
75440
  function pluginVersion(host2 = "claude-code", root2 = pluginRoot(host2)) {
75441
75441
  const file2 = MANIFEST[host2];
75442
75442
  try {
@@ -77096,7 +77096,7 @@ function createTail(log) {
77096
77096
  // ../cli/package.json
77097
77097
  var package_default = {
77098
77098
  name: "wildcrane",
77099
- version: "0.11.43",
77099
+ version: "0.11.44",
77100
77100
  akbContract: 11,
77101
77101
  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.",
77102
77102
  keywords: [
@@ -80124,7 +80124,7 @@ async function startSettingsServer(action, port = 0) {
80124
80124
 
80125
80125
  // src/plugin.ts
80126
80126
  function hostOf(arg, env2) {
80127
- if (arg === "codex" || arg === "cursor" || arg === "dsh" || arg === "kimi" || arg === "grok") return arg;
80127
+ if (arg === "codex" || arg === "cursor" || arg === "dsh" || arg === "kimi" || arg === "grok" || arg === "opencode") return arg;
80128
80128
  return env2.ZCODE_PLUGIN_ROOT && env2.ZCODE_PLUGIN_ROOT === env2.CLAUDE_PLUGIN_ROOT ? "zcode" : "claude-code";
80129
80129
  }
80130
80130
  var panelKeyFile = () => path31.join(runnerHome(), "plugin", "panel.key");
@@ -80242,13 +80242,15 @@ var CODEX_SWITCH = "run `codex plugin marketplace add wildcrane-ai/wildcrane --r
80242
80242
  var DSH_UPDATE = "run `dsh plugin --profile web add wildcrane-dsh@latest` in a terminal, then restart dsh";
80243
80243
  var KIMI_UPDATE = "run `/plugins` in Kimi Code, update WildCrane, then restart Kimi Code";
80244
80244
  var GROK_UPDATE = "run `grok plugin update wildcrane` in a terminal, then reopen the Grok Build session";
80245
- var updateSteps = (as, plugin) => as === "grok" ? GROK_UPDATE : as === "dsh" ? DSH_UPDATE : as === "kimi" ? KIMI_UPDATE : plugin.source === "git" ? CODEX_UPGRADE : CODEX_SWITCH;
80245
+ var OPENCODE_UPDATE = "V2: run `opencode plugin update wildcrane-opencode`, then `opencode service restart`. V1: change only wildcrane-opencode in the `plugin` array to the new version and restart OpenCode. See the plugin README for cache recovery and pinned rollback";
80246
+ var updateSteps = (as, plugin) => as === "opencode" ? OPENCODE_UPDATE : as === "grok" ? GROK_UPDATE : as === "dsh" ? DSH_UPDATE : as === "kimi" ? KIMI_UPDATE : plugin.source === "git" ? CODEX_UPGRADE : CODEX_SWITCH;
80246
80247
  var OUTDATED = {
80247
80248
  "claude-code": "WildCrane's Runner is out of date and could not update, so tasks no longer run on this computer. Tell the user to check the network, then restart Claude Code.",
80248
80249
  codex: "WildCrane's Runner is out of date and could not update, so tasks no longer run on this computer. Tell the user to check the network, then restart Codex.",
80249
80250
  cursor: "WildCrane's Runner is out of date and could not update, so tasks no longer run on this computer. Tell the user to check the network, then restart Cursor.",
80250
80251
  zcode: "WildCrane's Runner is out of date and could not update, so tasks no longer run on this computer. Tell the user to check the network, then restart ZCode.",
80251
80252
  dsh: "WildCrane's Runner is out of date and could not update, so tasks no longer run on this computer. Tell the user to check the network, then restart dsh.",
80253
+ opencode: "WildCrane's Runner is out of date and could not update. Check the network, then restart OpenCode.",
80252
80254
  grok: "WildCrane's Runner is out of date and could not update, so tasks no longer run on this computer. Tell the user to check the network, then restart Grok Build.",
80253
80255
  kimi: "WildCrane's Runner is out of date and could not update, so tasks no longer run on this computer. Tell the user to check the network, then restart Kimi Code."
80254
80256
  };
@@ -80265,7 +80267,7 @@ function nextOf(as, state2, plugin, seen) {
80265
80267
  if (as === "codex" && plugin.source === "local") return LOCAL;
80266
80268
  if (seen && !seen.connections.some((c) => c.state === "ready")) return NOT_READY(seen.connections, seen.web);
80267
80269
  if (seen && seen.folder === null && seen.refused === null) return NOT_ADDED;
80268
- return (as === "codex" || as === "dsh" || as === "kimi" || as === "grok") && plugin.version && plugin.latest ? NEWER(as, plugin) : null;
80270
+ return (as === "codex" || as === "dsh" || as === "kimi" || as === "grok" || as === "opencode") && plugin.version && plugin.latest ? NEWER(as, plugin) : null;
80269
80271
  }
80270
80272
  async function state(cwd) {
80271
80273
  const plugin = pluginInfo(host);
@@ -80408,7 +80410,10 @@ var GoalInput = import_zod2.z.object({
80408
80410
  });
80409
80411
  var linked = (d, goals) => goals.map((i) => ({ ...i, url: i.task?.url ?? discussionUrl(d.id) }));
80410
80412
  var PROCESS = `process-${crypto10.randomUUID()}`;
80411
- var threadOf = (meta2) => `${host}:${host === "dsh" || host === "grok" ? crypto10.randomUUID() : typeof meta2?.threadId === "string" && meta2.threadId ? meta2.threadId : PROCESS}`;
80413
+ var threadOf = (meta2) => {
80414
+ if (host === "opencode" && (typeof meta2?.threadId !== "string" || !meta2.threadId.trim())) throw new Error("OpenCode session identity is missing. Reload the WildCrane plugin and retry.");
80415
+ return `${host}:${host === "dsh" || host === "grok" ? crypto10.randomUUID() : typeof meta2?.threadId === "string" && meta2.threadId ? meta2.threadId : PROCESS}`;
80416
+ };
80412
80417
  var pathOf = (given, meta2) => given || Object.keys(meta2?.["x-codex-turn-metadata"]?.workspaces ?? {})[0] || "";
80413
80418
  var SIGNED_OUT = { error: "signed_out", message: "Not signed in to WildCrane. Call wildcrane_open_settings to open settings and sign in, then try again." };
80414
80419
  var PANEL_SIGNED_OUT = { error: "signed_out", message: "Not signed in to WildCrane. Tell the user to run /wildcrane and sign in, then try again." };
package/dist/runner.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.54 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.56 — 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;
@@ -111420,8 +111420,8 @@ function status(line) {
111420
111420
  }
111421
111421
 
111422
111422
  // src/protocol.ts
111423
- var VERSION = true ? "0.6.54" : "0.0.0";
111424
- var AKB_VERSION = true ? "0.11.43" : "0.0.0";
111423
+ var VERSION = true ? "0.6.56" : "0.0.0";
111424
+ var AKB_VERSION = true ? "0.11.44" : "0.0.0";
111425
111425
  var AKB_CONTRACT = true ? 11 : 0;
111426
111426
  var EXIT_REFUSED = 10;
111427
111427
  var EXIT_OUTDATED = 11;
@@ -113083,7 +113083,7 @@ function createTail(log) {
113083
113083
  // ../cli/package.json
113084
113084
  var package_default = {
113085
113085
  name: "wildcrane",
113086
- version: "0.11.43",
113086
+ version: "0.11.44",
113087
113087
  akbContract: 11,
113088
113088
  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.",
113089
113089
  keywords: [
@@ -119350,10 +119350,10 @@ async function pushAssets(ws, record, before) {
119350
119350
  sent = { ok: false, error: `${key}: ${renderError(error)}` };
119351
119351
  }
119352
119352
  if (!sent.ok) {
119353
- if (sent.code && !["too_large", "payload_too_large", "storage_limit", "storage_limit_reached"].includes(sent.code)) return sent;
119353
+ if (sent.code && !["too_large", "payload_too_large", "storage_limit", "storage_limit_reached", "service_unavailable"].includes(sent.code)) return sent;
119354
119354
  record.pendingAssets = [.../* @__PURE__ */ new Set([...record.pendingAssets ?? [], key])];
119355
119355
  writeRecord(ws, record);
119356
- errors.push({ error: sent.error, ...sent.code ? {} : { offline: true } });
119356
+ errors.push({ error: sent.error, ...!sent.code || sent.code === "service_unavailable" ? { offline: true } : {} });
119357
119357
  console.error(`runner: asset upload pending: ${sent.error}`);
119358
119358
  if (before[key]) refs[key] = before[key];
119359
119359
  }
@@ -121764,7 +121764,11 @@ async function runClaimed(job, deps, track, keep2, lease, replyStream) {
121764
121764
  const spent = () => reply && checkpoint.attempts?.length && !(job.recoveryOf && !local && checkpoint.completed) ? { session: checkpoint.session, ...replySpent(checkpoint, job.runtime) } : void 0;
121765
121765
  const finishClaimed = (outcome, reason = "", said2) => {
121766
121766
  const before = spent();
121767
- const report2 = before ? { ...before, ...said2 } : said2;
121767
+ let report2 = before ? { ...before, ...said2 } : said2;
121768
+ if (reply && outcome === "failed" && checkpoint.started === false && checkpoint.effects === false && !checkpoint.pending.length && !checkpoint.opaque && (!(job.recoveryOf || job.manualRecovery) || previous || job.retryReplay === true)) {
121769
+ report2 = { ...report2, recovery: { safe: true, stopped: true, resumable: false } };
121770
+ saveCheckpoint(id, checkpoint);
121771
+ }
121768
121772
  if (before && outcome === "failed") {
121769
121773
  checkpoint.completed = { outcome, reason, report: report2 };
121770
121774
  saveCheckpoint(id, checkpoint);
package/dist/settings.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.54 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.56 — 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;
@@ -26980,8 +26980,8 @@ function alive(pid) {
26980
26980
  var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
26981
26981
 
26982
26982
  // src/protocol.ts
26983
- var VERSION = true ? "0.6.54" : "0.0.0";
26984
- var AKB_VERSION = true ? "0.11.43" : "0.0.0";
26983
+ var VERSION = true ? "0.6.56" : "0.0.0";
26984
+ var AKB_VERSION = true ? "0.11.44" : "0.0.0";
26985
26985
 
26986
26986
  // src/api.ts
26987
26987
  var RUNTIMES = ["claude-code", "codex", "cursor", "opencode", "kimi", "dsh", "zcode", "grok"];
@@ -29786,7 +29786,7 @@ function createTail(log) {
29786
29786
  // ../cli/package.json
29787
29787
  var package_default = {
29788
29788
  name: "wildcrane",
29789
- version: "0.11.43",
29789
+ version: "0.11.44",
29790
29790
  akbContract: 11,
29791
29791
  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.",
29792
29792
  keywords: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildcrane-runner",
3
- "version": "0.6.54",
3
+ "version": "0.6.56",
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/",