wildcrane-runner 0.6.111 → 0.6.112
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/akb/dist/kanban.mjs +14 -10
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +1 -1
- package/dist/codex-proxy.mjs +1 -1
- package/dist/codex-retained.mjs +1 -1
- package/dist/flow-worker-main.mjs +266 -95
- package/dist/launcher.mjs +16 -18
- package/dist/plugin.mjs +20 -22
- package/dist/runner.mjs +378 -255
- package/dist/settings.mjs +6 -14
- package/package.json +1 -1
package/dist/launcher.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.112 — 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;
|
|
@@ -41046,8 +41046,6 @@ function cloudEndpoints() {
|
|
|
41046
41046
|
}
|
|
41047
41047
|
|
|
41048
41048
|
// ../runner/src/i18n.ts
|
|
41049
|
-
var ZH_HOLDER = { "claude-code": "Claude Code", codex: "Codex", cursor: "Cursor", dsh: "dsh", zcode: "ZCode", kimi: "Kimi Code", terminal: "\u672C\u673A\u7EC8\u7AEF" };
|
|
41050
|
-
var EN_HOLDER = { "claude-code": "Claude Code", codex: "Codex", cursor: "Cursor", dsh: "dsh", zcode: "ZCode", kimi: "Kimi Code", terminal: "the terminal" };
|
|
41051
41049
|
var ZH = {
|
|
41052
41050
|
signIn: (url2) => `\u8BF7\u5728\u6D4F\u89C8\u5668\u4E2D\u767B\u5F55 WildCrane\uFF1A
|
|
41053
41051
|
${url2}`,
|
|
@@ -41062,10 +41060,7 @@ ${url2}`,
|
|
|
41062
41060
|
updated: (version2) => `\u5DF2\u66F4\u65B0\u5230 ${version2}`,
|
|
41063
41061
|
rolledBack: (version2) => `\u65B0\u7248\u672C\u672A\u80FD\u542F\u52A8\uFF0C\u5DF2\u9000\u56DE ${version2}`,
|
|
41064
41062
|
nodeTooOld: (range) => `\u65B0\u7248\u672C\u9700\u8981 Node ${range}\uFF0C\u8BF7\u5347\u7EA7 Node\u3002\u672C\u6B21\u7EE7\u7EED\u4F7F\u7528\u5F53\u524D\u7248\u672C\u3002`,
|
|
41065
|
-
|
|
41066
|
-
const who = holder ? ZH_HOLDER[holder] : "\u672C\u673A\u53E6\u4E00\u4E2A\u7A0B\u5E8F";
|
|
41067
|
-
return `${who}\u5DF2\u5728\u8FD0\u884C\u4E00\u4E2A WildCrane \u5B9E\u4F8B\uFF0C\u8D1F\u8D23\u63A5\u6536\u6240\u6709\u8FD0\u884C\u4EFB\u52A1\u3002\u5F53\u524D\u5B9E\u4F8B\u5DF2\u6682\u505C\uFF0C${who}\u5173\u95ED\u540E\u5C06\u7531\u5F53\u524D\u5B9E\u4F8B\u63A5\u66FF\u3002`;
|
|
41068
|
-
},
|
|
41063
|
+
alreadyRunning: () => "\u672C\u673A\u5DF2\u6709 WildCrane Runner \u6B63\u5728\u8FD0\u884C\uFF0C\u65E0\u6CD5\u542F\u52A8\u7B2C\u4E8C\u4E2A\u5B9E\u4F8B\u3002",
|
|
41069
41064
|
stopped: () => "\u5DF2\u505C\u6B62"
|
|
41070
41065
|
};
|
|
41071
41066
|
var EN = {
|
|
@@ -41082,10 +41077,7 @@ ${url2}`,
|
|
|
41082
41077
|
updated: (version2) => `Updated to ${version2}`,
|
|
41083
41078
|
rolledBack: (version2) => `The new version did not start \u2014 back on ${version2}`,
|
|
41084
41079
|
nodeTooOld: (range) => `The new version needs Node ${range}. Update Node; running the current version for now.`,
|
|
41085
|
-
|
|
41086
|
-
const who = holder ? EN_HOLDER[holder] : "another app on this computer";
|
|
41087
|
-
return `${who[0].toUpperCase()}${who.slice(1)} is already running a WildCrane instance that takes all run tasks. This instance is paused and takes over when ${who} closes.`;
|
|
41088
|
-
},
|
|
41080
|
+
alreadyRunning: () => "A WildCrane Runner is already running on this computer. A second instance cannot start.",
|
|
41089
41081
|
stopped: () => "Stopped"
|
|
41090
41082
|
};
|
|
41091
41083
|
function isChinese(env2 = process.env) {
|
|
@@ -41128,11 +41120,12 @@ function saveAlphaUpdates(value) {
|
|
|
41128
41120
|
}
|
|
41129
41121
|
|
|
41130
41122
|
// ../runner/src/protocol.ts
|
|
41131
|
-
var VERSION = true ? "0.6.
|
|
41132
|
-
var AKB_VERSION = true ? "0.11.
|
|
41123
|
+
var VERSION = true ? "0.6.112" : "0.0.0";
|
|
41124
|
+
var AKB_VERSION = true ? "0.11.92" : "0.0.0";
|
|
41133
41125
|
var EXIT_REFUSED = 10;
|
|
41134
41126
|
var EXIT_OUTDATED = 11;
|
|
41135
41127
|
var EXIT_UPDATE = 12;
|
|
41128
|
+
var EXIT_ALREADY_RUNNING = 13;
|
|
41136
41129
|
|
|
41137
41130
|
// ../runner/src/update.ts
|
|
41138
41131
|
import crypto3 from "node:crypto";
|
|
@@ -63084,7 +63077,7 @@ function createTail(log) {
|
|
|
63084
63077
|
// ../cli/package.json
|
|
63085
63078
|
var package_default = {
|
|
63086
63079
|
name: "wildcrane",
|
|
63087
|
-
version: "0.11.
|
|
63080
|
+
version: "0.11.92",
|
|
63088
63081
|
akbContract: 30,
|
|
63089
63082
|
canonicalCommands: true,
|
|
63090
63083
|
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.",
|
|
@@ -67788,6 +67781,7 @@ function runOnce(candidate, options) {
|
|
|
67788
67781
|
let timer = null;
|
|
67789
67782
|
let timedOut = false;
|
|
67790
67783
|
let stopping2 = false;
|
|
67784
|
+
let duplicate = false;
|
|
67791
67785
|
let forceKill;
|
|
67792
67786
|
const watchConnection = () => {
|
|
67793
67787
|
if (timer) clearTimeout(timer);
|
|
@@ -67811,9 +67805,12 @@ function runOnce(candidate, options) {
|
|
|
67811
67805
|
child.on("message", (message) => {
|
|
67812
67806
|
if (message.type === "update-deferred") update3 = null;
|
|
67813
67807
|
if (message.type === "reconnecting" && candidate.fresh && !connected && !timedOut) watchConnection();
|
|
67814
|
-
if (message.type === "waiting"
|
|
67815
|
-
|
|
67816
|
-
|
|
67808
|
+
if (message.type === "waiting") {
|
|
67809
|
+
duplicate = true;
|
|
67810
|
+
process.stderr.write(`${t.alreadyRunning()}
|
|
67811
|
+
`);
|
|
67812
|
+
child.kill("SIGTERM");
|
|
67813
|
+
return;
|
|
67817
67814
|
}
|
|
67818
67815
|
if (message.type === "connected" && !connected) {
|
|
67819
67816
|
connected = true;
|
|
@@ -67840,6 +67837,7 @@ function runOnce(candidate, options) {
|
|
|
67840
67837
|
status(`Runner \u65E0\u6CD5\u542F\u52A8\uFF1A${spawnError.message}`);
|
|
67841
67838
|
return resolve2({ exit: 1 });
|
|
67842
67839
|
}
|
|
67840
|
+
if (duplicate || code === EXIT_ALREADY_RUNNING) return resolve2({ exit: EXIT_ALREADY_RUNNING });
|
|
67843
67841
|
if (code === EXIT_UPDATE && update3 && !stopping2) return resolve2({ update: update3 });
|
|
67844
67842
|
if (connected || !candidate.fresh || stopping2) return resolve2({ exit: code ?? (signal ? 1 : 0) });
|
|
67845
67843
|
if (timedOut) return resolve2({ failed: "timeout" });
|
|
@@ -69099,7 +69097,7 @@ async function terminalSettings(entry2) {
|
|
|
69099
69097
|
running = new AbortController();
|
|
69100
69098
|
done = launch({ version: VERSION, entry: entry2 }, { signal: running.signal }).then((code) => {
|
|
69101
69099
|
running = null;
|
|
69102
|
-
if (code === EXIT_OUTDATED || code === EXIT_REFUSED) blocked = account;
|
|
69100
|
+
if (code === EXIT_ALREADY_RUNNING || code === EXIT_OUTDATED || code === EXIT_REFUSED) blocked = account;
|
|
69103
69101
|
});
|
|
69104
69102
|
};
|
|
69105
69103
|
onSettingsChange(run2);
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.112 — 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;
|
|
@@ -108924,7 +108924,7 @@ function createTail(log) {
|
|
|
108924
108924
|
// ../cli/package.json
|
|
108925
108925
|
var package_default = {
|
|
108926
108926
|
name: "wildcrane",
|
|
108927
|
-
version: "0.11.
|
|
108927
|
+
version: "0.11.92",
|
|
108928
108928
|
akbContract: 30,
|
|
108929
108929
|
canonicalCommands: true,
|
|
108930
108930
|
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.",
|
|
@@ -113440,11 +113440,12 @@ function machineId() {
|
|
|
113440
113440
|
var machineName = () => os4.hostname().replace(/\.local$/, "");
|
|
113441
113441
|
|
|
113442
113442
|
// ../runner/src/protocol.ts
|
|
113443
|
-
var VERSION = true ? "0.6.
|
|
113444
|
-
var AKB_VERSION = true ? "0.11.
|
|
113443
|
+
var VERSION = true ? "0.6.112" : "0.0.0";
|
|
113444
|
+
var AKB_VERSION = true ? "0.11.92" : "0.0.0";
|
|
113445
113445
|
var EXIT_REFUSED = 10;
|
|
113446
113446
|
var EXIT_OUTDATED = 11;
|
|
113447
113447
|
var EXIT_UPDATE = 12;
|
|
113448
|
+
var EXIT_ALREADY_RUNNING = 13;
|
|
113448
113449
|
|
|
113449
113450
|
// ../runner/src/akb.ts
|
|
113450
113451
|
var akbHome = () => path18.join(runnerHome(), "bin", "akb");
|
|
@@ -114322,8 +114323,6 @@ import fs24 from "node:fs";
|
|
|
114322
114323
|
import path28 from "node:path";
|
|
114323
114324
|
|
|
114324
114325
|
// ../runner/src/i18n.ts
|
|
114325
|
-
var ZH_HOLDER = { "claude-code": "Claude Code", codex: "Codex", cursor: "Cursor", dsh: "dsh", zcode: "ZCode", kimi: "Kimi Code", terminal: "\u672C\u673A\u7EC8\u7AEF" };
|
|
114326
|
-
var EN_HOLDER = { "claude-code": "Claude Code", codex: "Codex", cursor: "Cursor", dsh: "dsh", zcode: "ZCode", kimi: "Kimi Code", terminal: "the terminal" };
|
|
114327
114326
|
var ZH = {
|
|
114328
114327
|
signIn: (url2) => `\u8BF7\u5728\u6D4F\u89C8\u5668\u4E2D\u767B\u5F55 WildCrane\uFF1A
|
|
114329
114328
|
${url2}`,
|
|
@@ -114338,10 +114337,7 @@ ${url2}`,
|
|
|
114338
114337
|
updated: (version3) => `\u5DF2\u66F4\u65B0\u5230 ${version3}`,
|
|
114339
114338
|
rolledBack: (version3) => `\u65B0\u7248\u672C\u672A\u80FD\u542F\u52A8\uFF0C\u5DF2\u9000\u56DE ${version3}`,
|
|
114340
114339
|
nodeTooOld: (range) => `\u65B0\u7248\u672C\u9700\u8981 Node ${range}\uFF0C\u8BF7\u5347\u7EA7 Node\u3002\u672C\u6B21\u7EE7\u7EED\u4F7F\u7528\u5F53\u524D\u7248\u672C\u3002`,
|
|
114341
|
-
|
|
114342
|
-
const who = holder ? ZH_HOLDER[holder] : "\u672C\u673A\u53E6\u4E00\u4E2A\u7A0B\u5E8F";
|
|
114343
|
-
return `${who}\u5DF2\u5728\u8FD0\u884C\u4E00\u4E2A WildCrane \u5B9E\u4F8B\uFF0C\u8D1F\u8D23\u63A5\u6536\u6240\u6709\u8FD0\u884C\u4EFB\u52A1\u3002\u5F53\u524D\u5B9E\u4F8B\u5DF2\u6682\u505C\uFF0C${who}\u5173\u95ED\u540E\u5C06\u7531\u5F53\u524D\u5B9E\u4F8B\u63A5\u66FF\u3002`;
|
|
114344
|
-
},
|
|
114340
|
+
alreadyRunning: () => "\u672C\u673A\u5DF2\u6709 WildCrane Runner \u6B63\u5728\u8FD0\u884C\uFF0C\u65E0\u6CD5\u542F\u52A8\u7B2C\u4E8C\u4E2A\u5B9E\u4F8B\u3002",
|
|
114345
114341
|
stopped: () => "\u5DF2\u505C\u6B62"
|
|
114346
114342
|
};
|
|
114347
114343
|
var EN = {
|
|
@@ -114358,10 +114354,7 @@ ${url2}`,
|
|
|
114358
114354
|
updated: (version3) => `Updated to ${version3}`,
|
|
114359
114355
|
rolledBack: (version3) => `The new version did not start \u2014 back on ${version3}`,
|
|
114360
114356
|
nodeTooOld: (range) => `The new version needs Node ${range}. Update Node; running the current version for now.`,
|
|
114361
|
-
|
|
114362
|
-
const who = holder ? EN_HOLDER[holder] : "another app on this computer";
|
|
114363
|
-
return `${who[0].toUpperCase()}${who.slice(1)} is already running a WildCrane instance that takes all run tasks. This instance is paused and takes over when ${who} closes.`;
|
|
114364
|
-
},
|
|
114357
|
+
alreadyRunning: () => "A WildCrane Runner is already running on this computer. A second instance cannot start.",
|
|
114365
114358
|
stopped: () => "Stopped"
|
|
114366
114359
|
};
|
|
114367
114360
|
function isChinese(env2 = process.env) {
|
|
@@ -114671,6 +114664,7 @@ function runOnce(candidate, options) {
|
|
|
114671
114664
|
let timer = null;
|
|
114672
114665
|
let timedOut = false;
|
|
114673
114666
|
let stopping2 = false;
|
|
114667
|
+
let duplicate = false;
|
|
114674
114668
|
let forceKill;
|
|
114675
114669
|
const watchConnection = () => {
|
|
114676
114670
|
if (timer) clearTimeout(timer);
|
|
@@ -114694,9 +114688,12 @@ function runOnce(candidate, options) {
|
|
|
114694
114688
|
child.on("message", (message) => {
|
|
114695
114689
|
if (message.type === "update-deferred") update3 = null;
|
|
114696
114690
|
if (message.type === "reconnecting" && candidate.fresh && !connected && !timedOut) watchConnection();
|
|
114697
|
-
if (message.type === "waiting"
|
|
114698
|
-
|
|
114699
|
-
|
|
114691
|
+
if (message.type === "waiting") {
|
|
114692
|
+
duplicate = true;
|
|
114693
|
+
process.stderr.write(`${t.alreadyRunning()}
|
|
114694
|
+
`);
|
|
114695
|
+
child.kill("SIGTERM");
|
|
114696
|
+
return;
|
|
114700
114697
|
}
|
|
114701
114698
|
if (message.type === "connected" && !connected) {
|
|
114702
114699
|
connected = true;
|
|
@@ -114723,6 +114720,7 @@ function runOnce(candidate, options) {
|
|
|
114723
114720
|
status(`Runner \u65E0\u6CD5\u542F\u52A8\uFF1A${spawnError.message}`);
|
|
114724
114721
|
return resolve2({ exit: 1 });
|
|
114725
114722
|
}
|
|
114723
|
+
if (duplicate || code === EXIT_ALREADY_RUNNING) return resolve2({ exit: EXIT_ALREADY_RUNNING });
|
|
114726
114724
|
if (code === EXIT_UPDATE && update3 && !stopping2) return resolve2({ update: update3 });
|
|
114727
114725
|
if (connected || !candidate.fresh || stopping2) return resolve2({ exit: code ?? (signal ? 1 : 0) });
|
|
114728
114726
|
if (timedOut) return resolve2({ failed: "timeout" });
|
|
@@ -116069,7 +116067,7 @@ function writeShim() {
|
|
|
116069
116067
|
}
|
|
116070
116068
|
}
|
|
116071
116069
|
function run2() {
|
|
116072
|
-
if (runner || runnerState === "outdated" || process.env.WILDCRANE_JOB || !readSession()) return;
|
|
116070
|
+
if (runner || runnerState === "outdated" || runnerState === "already-running" || process.env.WILDCRANE_JOB || !readSession()) return;
|
|
116073
116071
|
runnerState = "running";
|
|
116074
116072
|
const abort = new AbortController();
|
|
116075
116073
|
const entry = path37.join(path37.dirname(fileURLToPath3(import.meta.url)), "runner.mjs");
|
|
@@ -116083,21 +116081,19 @@ function run2() {
|
|
|
116083
116081
|
renew = () => send2("renew");
|
|
116084
116082
|
},
|
|
116085
116083
|
onMessage: (message) => {
|
|
116086
|
-
if (message.type === "waiting") runnerState = "waiting";
|
|
116087
116084
|
if (message.type === "connected") {
|
|
116088
116085
|
runnerState = "running";
|
|
116089
116086
|
writeShim();
|
|
116090
116087
|
}
|
|
116091
116088
|
}
|
|
116092
116089
|
});
|
|
116093
|
-
const stopped2 = done.then((code) => code === EXIT_OUTDATED ? { reason: "outdated" } : { reason: "refused", message: "Runner \u5DF2\u505C\u6B62" });
|
|
116094
116090
|
runner = { close: async () => {
|
|
116095
116091
|
abort.abort();
|
|
116096
116092
|
await done;
|
|
116097
116093
|
}, renew: () => renew() };
|
|
116098
|
-
void
|
|
116094
|
+
void done.then((code) => {
|
|
116099
116095
|
runner = null;
|
|
116100
|
-
runnerState =
|
|
116096
|
+
runnerState = code === EXIT_OUTDATED ? "outdated" : code === EXIT_ALREADY_RUNNING ? "already-running" : "off";
|
|
116101
116097
|
});
|
|
116102
116098
|
}
|
|
116103
116099
|
var startSignIn2 = startSignIn;
|
|
@@ -116136,6 +116132,7 @@ var NOT_READY = (found, web) => {
|
|
|
116136
116132
|
};
|
|
116137
116133
|
var NOT_ADDED = "This folder is not a WildCrane project yet. Call wildcrane_open_settings to let the user choose its project folder.";
|
|
116138
116134
|
function nextOf(as, state2, plugin, seen) {
|
|
116135
|
+
if (state2 === "already-running") return linesFor(false).alreadyRunning();
|
|
116139
116136
|
if (state2 === "outdated") return OUTDATED[as];
|
|
116140
116137
|
if (as === "claude-code") return null;
|
|
116141
116138
|
if (as === "codex" && plugin.source === "local") return LOCAL;
|
|
@@ -116240,6 +116237,7 @@ var PanelArgs = {
|
|
|
116240
116237
|
var UPDATE_COMMANDS = "claude plugin marketplace update wildcrane && claude plugin update wildcrane@wildcrane";
|
|
116241
116238
|
function noticeOf(lang, state2, plugin) {
|
|
116242
116239
|
const zh = lang === "zh";
|
|
116240
|
+
if (state2 === "already-running") return linesFor(zh).alreadyRunning();
|
|
116243
116241
|
if (state2 === "outdated") return zh ? "Runner \u7248\u672C\u8FC7\u65E7\u4E14\u672A\u80FD\u81EA\u52A8\u66F4\u65B0\uFF0C\u4EFB\u52A1\u5DF2\u6682\u505C\u3002\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u542F Claude Code\u3002" : "The Runner is out of date and could not update, so tasks are paused. Check the network, then restart Claude Code.";
|
|
116244
116242
|
if (!plugin.latest) return null;
|
|
116245
116243
|
return zh ? `\u63D2\u4EF6\u6709\u65B0\u7248\u672C ${plugin.latest}\u3002\u5728\u7EC8\u7AEF\u6267\u884C \`${UPDATE_COMMANDS}\`\uFF0C\u518D\u8FD0\u884C /reload-plugins\u3002` : `Version ${plugin.latest} is available. Run \`${UPDATE_COMMANDS}\` in a terminal, then /reload-plugins.`;
|