wildcrane-runner 0.6.54 → 0.6.55

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,4 +1,4 @@
1
- // wildcrane-runner 0.6.54 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.55 — 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.55 — 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,7 +26903,7 @@ function saveAlphaUpdates(value) {
26903
26903
  }
26904
26904
 
26905
26905
  // src/protocol.ts
26906
- var VERSION = true ? "0.6.54" : "0.0.0";
26906
+ var VERSION = true ? "0.6.55" : "0.0.0";
26907
26907
  var AKB_VERSION = true ? "0.11.43" : "0.0.0";
26908
26908
  var EXIT_REFUSED = 10;
26909
26909
  var EXIT_OUTDATED = 11;
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.55 — 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,7 +73774,7 @@ 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";
73777
+ var VERSION = true ? "0.6.55" : "0.0.0";
73778
73778
  var AKB_VERSION = true ? "0.11.43" : "0.0.0";
73779
73779
  var EXIT_REFUSED = 10;
73780
73780
  var EXIT_OUTDATED = 11;
@@ -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 {
@@ -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.55 — 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,7 +111420,7 @@ function status(line) {
111420
111420
  }
111421
111421
 
111422
111422
  // src/protocol.ts
111423
- var VERSION = true ? "0.6.54" : "0.0.0";
111423
+ var VERSION = true ? "0.6.55" : "0.0.0";
111424
111424
  var AKB_VERSION = true ? "0.11.43" : "0.0.0";
111425
111425
  var AKB_CONTRACT = true ? 11 : 0;
111426
111426
  var EXIT_REFUSED = 10;
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.55 — 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,7 +26980,7 @@ 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";
26983
+ var VERSION = true ? "0.6.55" : "0.0.0";
26984
26984
  var AKB_VERSION = true ? "0.11.43" : "0.0.0";
26985
26985
 
26986
26986
  // src/api.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildcrane-runner",
3
- "version": "0.6.54",
3
+ "version": "0.6.55",
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/",