wildcrane-runner 0.6.120 → 0.6.121
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 +207 -182
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +1 -1
- package/dist/codex-proxy.mjs +3 -3
- package/dist/codex-retained.mjs +1 -1
- package/dist/flow-worker-main.mjs +39 -43
- package/dist/launcher.mjs +10 -11
- package/dist/plugin.mjs +10 -11
- package/dist/runner.mjs +56 -85
- package/dist/settings.mjs +8 -9
- package/package.json +1 -1
package/dist/runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.121 — 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;
|
|
@@ -152796,9 +152796,9 @@ function status(line) {
|
|
|
152796
152796
|
}
|
|
152797
152797
|
|
|
152798
152798
|
// src/protocol.ts
|
|
152799
|
-
var VERSION = true ? "0.6.
|
|
152800
|
-
var AKB_VERSION = true ? "0.11.
|
|
152801
|
-
var AKB_CONTRACT = true ?
|
|
152799
|
+
var VERSION = true ? "0.6.121" : "0.0.0";
|
|
152800
|
+
var AKB_VERSION = true ? "0.11.103" : "0.0.0";
|
|
152801
|
+
var AKB_CONTRACT = true ? 36 : 0;
|
|
152802
152802
|
var EXIT_REFUSED = 10;
|
|
152803
152803
|
var EXIT_OUTDATED = 11;
|
|
152804
152804
|
var EXIT_UPDATE = 12;
|
|
@@ -153444,7 +153444,6 @@ function stateLayout(board, root2) {
|
|
|
153444
153444
|
function projectStateDir(board, root2 = stateRootOf(board)) {
|
|
153445
153445
|
return stateLayout(board, root2).state;
|
|
153446
153446
|
}
|
|
153447
|
-
var cloudBoardOf = (project) => path9.join(project, ".akb", "kanban");
|
|
153448
153447
|
function hasLegacyProjectState(board, root2 = stateRootOf(board)) {
|
|
153449
153448
|
const { legacy: legacy2 } = stateLayout(board, root2);
|
|
153450
153449
|
return legacy2.some((dir) => fs8.lstatSync(dir, { throwIfNoEntry: false }));
|
|
@@ -153522,6 +153521,22 @@ function migrateProjectState(board, root2 = stateRootOf(board)) {
|
|
|
153522
153521
|
}
|
|
153523
153522
|
return state;
|
|
153524
153523
|
}
|
|
153524
|
+
function ensureProjectState(board, root2 = stateRootOf(board)) {
|
|
153525
|
+
const dir = migrateProjectState(board, root2);
|
|
153526
|
+
fs8.mkdirSync(dir, { recursive: true });
|
|
153527
|
+
const recorded = realPathOf(board);
|
|
153528
|
+
if (recordedBoard(dir) !== recorded) {
|
|
153529
|
+
const temp = path9.join(dir, `${RECORD}.${randomUUID()}`);
|
|
153530
|
+
try {
|
|
153531
|
+
fs8.writeFileSync(temp, `${JSON.stringify({ board: recorded })}
|
|
153532
|
+
`);
|
|
153533
|
+
fs8.renameSync(temp, path9.join(dir, RECORD));
|
|
153534
|
+
} finally {
|
|
153535
|
+
fs8.rmSync(temp, { force: true });
|
|
153536
|
+
}
|
|
153537
|
+
}
|
|
153538
|
+
return dir;
|
|
153539
|
+
}
|
|
153525
153540
|
function recordedBoard(dir) {
|
|
153526
153541
|
try {
|
|
153527
153542
|
const held5 = JSON.parse(fs8.readFileSync(path9.join(dir, RECORD), "utf8"));
|
|
@@ -153724,8 +153739,8 @@ function removeClaim(dir, token) {
|
|
|
153724
153739
|
throw err;
|
|
153725
153740
|
}
|
|
153726
153741
|
}
|
|
153727
|
-
function tryLock(dir
|
|
153728
|
-
|
|
153742
|
+
function tryLock(dir) {
|
|
153743
|
+
fs10.mkdirSync(path11.dirname(dir), { recursive: true });
|
|
153729
153744
|
const token = `${process.pid}-${randomUUID2()}`;
|
|
153730
153745
|
const candidate = fs10.mkdtempSync(`${dir}.`);
|
|
153731
153746
|
try {
|
|
@@ -154500,8 +154515,8 @@ function createTail(log) {
|
|
|
154500
154515
|
// ../cli/package.json
|
|
154501
154516
|
var package_default = {
|
|
154502
154517
|
name: "wildcrane",
|
|
154503
|
-
version: "0.11.
|
|
154504
|
-
akbContract:
|
|
154518
|
+
version: "0.11.103",
|
|
154519
|
+
akbContract: 36,
|
|
154505
154520
|
canonicalCommands: true,
|
|
154506
154521
|
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.",
|
|
154507
154522
|
keywords: [
|
|
@@ -162671,11 +162686,11 @@ function captureConflict(board, project, files) {
|
|
|
162671
162686
|
save(board, record2);
|
|
162672
162687
|
return record2;
|
|
162673
162688
|
}
|
|
162674
|
-
async function withSyncLock(board, work
|
|
162675
|
-
const lock = path34.join(
|
|
162689
|
+
async function withSyncLock(board, work) {
|
|
162690
|
+
const lock = path34.join(migrateProjectState(board), "board-sync.lock");
|
|
162676
162691
|
const until = Date.now() + 6e4;
|
|
162677
162692
|
let release2;
|
|
162678
|
-
while (!(release2 = tryLock(lock
|
|
162693
|
+
while (!(release2 = tryLock(lock))) {
|
|
162679
162694
|
if (Date.now() >= until) throw new BoardError("Another process is synchronizing this board. Try again.", { kind: "board-busy" });
|
|
162680
162695
|
await new Promise((resolve2) => setTimeout(resolve2, 25));
|
|
162681
162696
|
}
|
|
@@ -162741,7 +162756,7 @@ function hold(dir) {
|
|
|
162741
162756
|
}
|
|
162742
162757
|
function paused(dir) {
|
|
162743
162758
|
try {
|
|
162744
|
-
const file3 = path35.join(projectStateDir(
|
|
162759
|
+
const file3 = path35.join(projectStateDir(path35.join(akbDir(dir), "kanban")), SESSIONS_FILE);
|
|
162745
162760
|
const held5 = JSON.parse(fs33.readFileSync(file3, "utf8"));
|
|
162746
162761
|
return (held5.deliveries ?? []).some((d2) => d2.status === "active");
|
|
162747
162762
|
} catch {
|
|
@@ -162767,14 +162782,14 @@ function busy(dir) {
|
|
|
162767
162782
|
}
|
|
162768
162783
|
function conflicted(dir) {
|
|
162769
162784
|
try {
|
|
162770
|
-
return pendingConflicts(
|
|
162785
|
+
return pendingConflicts(path35.join(dir, ".akb", "kanban")).length > 0;
|
|
162771
162786
|
} catch {
|
|
162772
162787
|
return true;
|
|
162773
162788
|
}
|
|
162774
162789
|
}
|
|
162775
162790
|
function legacyState(dir) {
|
|
162776
162791
|
try {
|
|
162777
|
-
return hasLegacyProjectState(
|
|
162792
|
+
return hasLegacyProjectState(path35.join(akbDir(dir), "kanban"));
|
|
162778
162793
|
} catch {
|
|
162779
162794
|
return true;
|
|
162780
162795
|
}
|
|
@@ -164832,7 +164847,6 @@ function collectSources(sources3, card, host) {
|
|
|
164832
164847
|
// src/task-folder.ts
|
|
164833
164848
|
init_file_limits();
|
|
164834
164849
|
import { setTimeout as delay3 } from "node:timers/promises";
|
|
164835
|
-
import { spawnSync as spawnSync7 } from "node:child_process";
|
|
164836
164850
|
import crypto8 from "node:crypto";
|
|
164837
164851
|
import fs48 from "node:fs";
|
|
164838
164852
|
import path52 from "node:path";
|
|
@@ -185160,25 +185174,10 @@ var validationFailure = (reason, code = "validation_failed") => makeFailure("val
|
|
|
185160
185174
|
var TASK_ID = /^[\w-]{1,100}$/;
|
|
185161
185175
|
var NO_FOLDER = "This project has no folder on this computer. Link one, then try again.";
|
|
185162
185176
|
var EMPTY = { assets: {} };
|
|
185163
|
-
function prepareBoard(projectDir2) {
|
|
185164
|
-
const board = cloudBoardOf(projectDir2);
|
|
185165
|
-
const state = projectStateDir(board);
|
|
185166
|
-
if (hasLegacyProjectState(board) || !fs48.statSync(board, { throwIfNoEntry: false })?.isDirectory() || recordedBoard(state) !== realPathOf(board)) {
|
|
185167
|
-
const akb = bundledAkb(typeof __RUNNER_TEST_DIST__ === "string" ? __RUNNER_TEST_DIST__ : void 0);
|
|
185168
|
-
const result = spawnSync7(akb.command, [...akb.args, "__prepare-board", path52.resolve(projectDir2)], {
|
|
185169
|
-
cwd: runnerCwd(),
|
|
185170
|
-
encoding: "utf8",
|
|
185171
|
-
stdio: ["ignore", "ignore", "pipe"],
|
|
185172
|
-
timeout: 15e3,
|
|
185173
|
-
windowsHide: true
|
|
185174
|
-
});
|
|
185175
|
-
if (result.error) throw result.error;
|
|
185176
|
-
if (result.status !== 0) throw new Error(result.stderr.trim() || "AKB could not prepare the board.");
|
|
185177
|
-
}
|
|
185178
|
-
return { board, state };
|
|
185179
|
-
}
|
|
185180
185177
|
function openBoard(projectDir2) {
|
|
185181
|
-
const
|
|
185178
|
+
const board = path52.join(projectDir2, ".akb", "kanban");
|
|
185179
|
+
ensureProjectState(board);
|
|
185180
|
+
fs48.mkdirSync(board, { recursive: true });
|
|
185182
185181
|
keepOutOfGit(projectDir2);
|
|
185183
185182
|
markUsed(projectDir2);
|
|
185184
185183
|
return board;
|
|
@@ -185212,7 +185211,7 @@ function openDiscussionFolder(job, projectDir2) {
|
|
|
185212
185211
|
}
|
|
185213
185212
|
var boardFolder = (ws) => ({ task: "board", cloudTask: null, board: ws.board, cwd: ws.cwd, project: ws.project, number: null, studio: null });
|
|
185214
185213
|
function keptBoard(cwd) {
|
|
185215
|
-
const board =
|
|
185214
|
+
const board = path52.join(cwd, ".akb", "kanban");
|
|
185216
185215
|
const base = readBase({ cwd });
|
|
185217
185216
|
const project = base.project ?? /^projects\/([^/]+)\//.exec(Object.keys(base.files).find((p2) => p2.startsWith("projects/")) ?? "")?.[1];
|
|
185218
185217
|
return base.head_seq === null || !project ? null : boardFolder({ board, cwd, project });
|
|
@@ -185224,8 +185223,7 @@ function inFolder(dir, work) {
|
|
|
185224
185223
|
const started = performance.now();
|
|
185225
185224
|
logSync("board.start", { dir, waitMs: Math.round(started - queued) });
|
|
185226
185225
|
try {
|
|
185227
|
-
|
|
185228
|
-
return await withSyncLock(board, work, state);
|
|
185226
|
+
return await withSyncLock(path52.join(dir, ".akb", "kanban"), work);
|
|
185229
185227
|
} finally {
|
|
185230
185228
|
logSync("board.end", { dir, ms: Math.round(performance.now() - started) });
|
|
185231
185229
|
}
|
|
@@ -186994,7 +186992,7 @@ function watchBoards(machineId2, ms, lookMs = LOOK_MS, pullMs = PULL_MS, busyMs
|
|
|
186994
186992
|
const watch = (ws) => {
|
|
186995
186993
|
const watchers = [];
|
|
186996
186994
|
try {
|
|
186997
|
-
const
|
|
186995
|
+
const state = ensureProjectState(ws.board);
|
|
186998
186996
|
const parent = path53.dirname(ws.board);
|
|
186999
186997
|
const assets = path53.relative(ws.board, path53.join(state, "assets")).split(path53.sep).join("/");
|
|
187000
186998
|
const watchRoot = (root2) => fs49.watch(root2, { recursive: true }, (_event, name) => {
|
|
@@ -187144,7 +187142,7 @@ async function answerHint(machineId2, hint2) {
|
|
|
187144
187142
|
}
|
|
187145
187143
|
|
|
187146
187144
|
// ../cli/src/lib/agent/stop.ts
|
|
187147
|
-
import { spawnSync as
|
|
187145
|
+
import { spawnSync as spawnSync7 } from "node:child_process";
|
|
187148
187146
|
import { randomUUID as randomUUID7 } from "node:crypto";
|
|
187149
187147
|
import fs51 from "node:fs";
|
|
187150
187148
|
var runMark = (sessionId, since) => ({ name: RUN_ENV, value: sessionId, ...since === void 0 ? {} : { since } });
|
|
@@ -187168,7 +187166,7 @@ function markedInProc(entry, strict = false, since) {
|
|
|
187168
187166
|
}
|
|
187169
187167
|
function startedBefore(pid, since) {
|
|
187170
187168
|
if (since === void 0) return false;
|
|
187171
|
-
const result =
|
|
187169
|
+
const result = spawnSync7("ps", ["-p", String(pid), "-o", "lstart="], {
|
|
187172
187170
|
encoding: "utf8",
|
|
187173
187171
|
timeout: 5e3,
|
|
187174
187172
|
env: { ...process.env, LC_ALL: "C" }
|
|
@@ -187177,7 +187175,7 @@ function startedBefore(pid, since) {
|
|
|
187177
187175
|
return result.status === 0 && Number.isFinite(birth) && birth + 2e3 <= since;
|
|
187178
187176
|
}
|
|
187179
187177
|
function markedInPs(entry, roots) {
|
|
187180
|
-
const ps =
|
|
187178
|
+
const ps = spawnSync7("ps", ["-A", "-E", "-ww", "-o", "pid=,ppid=,command="], {
|
|
187181
187179
|
encoding: "utf8",
|
|
187182
187180
|
maxBuffer: 64 * 1024 * 1024,
|
|
187183
187181
|
timeout: 5e3
|
|
@@ -187255,7 +187253,7 @@ function readProcList(out) {
|
|
|
187255
187253
|
return bootedAt !== void 0 && procs.length ? { procs, bootedAt } : void 0;
|
|
187256
187254
|
}
|
|
187257
187255
|
function procsOnWindows() {
|
|
187258
|
-
const ps =
|
|
187256
|
+
const ps = spawnSync7("powershell.exe", ["-NoProfile", "-NonInteractive", "-Command", LIST_PROCS], {
|
|
187259
187257
|
encoding: "utf8",
|
|
187260
187258
|
maxBuffer: 64 * 1024 * 1024,
|
|
187261
187259
|
timeout: 5e3,
|
|
@@ -187269,7 +187267,7 @@ function killUnderOnWindows(pid, since) {
|
|
|
187269
187267
|
if (!list3) return;
|
|
187270
187268
|
const pids = startedUnder(list3, pid, since).filter((p2) => p2 !== process.pid);
|
|
187271
187269
|
if (!pids.length) return;
|
|
187272
|
-
|
|
187270
|
+
spawnSync7("taskkill", ["/F", ...pids.flatMap((p2) => ["/PID", String(p2)])], { stdio: "ignore", windowsHide: true, timeout: 1e4 });
|
|
187273
187271
|
}
|
|
187274
187272
|
function killMarked(mark, agent) {
|
|
187275
187273
|
if (WINDOWS3) {
|
|
@@ -190118,6 +190116,7 @@ function cmdInspect(id2) {
|
|
|
190118
190116
|
const result = {
|
|
190119
190117
|
id: id2,
|
|
190120
190118
|
card,
|
|
190119
|
+
asset_folder: path70.join(ASSETS, String(id2)),
|
|
190121
190120
|
previews: fact("previews", () => Object.entries(progress).map(([agent, p2]) => ({
|
|
190122
190121
|
agent,
|
|
190123
190122
|
currentStageId: p2.currentStageId,
|
|
@@ -190581,7 +190580,7 @@ function layOut(board, rejections) {
|
|
|
190581
190580
|
}
|
|
190582
190581
|
|
|
190583
190582
|
// ../cli/src/lib/skill/hook.ts
|
|
190584
|
-
import { spawnSync as
|
|
190583
|
+
import { spawnSync as spawnSync8 } from "node:child_process";
|
|
190585
190584
|
import fs73 from "node:fs";
|
|
190586
190585
|
import path74 from "node:path";
|
|
190587
190586
|
var MARKER_LINE = /^# ai4kanban commit guard\b/m;
|
|
@@ -190593,7 +190592,7 @@ var read3 = (file3) => {
|
|
|
190593
190592
|
}
|
|
190594
190593
|
};
|
|
190595
190594
|
function hooksDir(root2) {
|
|
190596
|
-
const out =
|
|
190595
|
+
const out = spawnSync8("git", ["rev-parse", "--git-path", "hooks"], {
|
|
190597
190596
|
cwd: root2,
|
|
190598
190597
|
encoding: "utf8",
|
|
190599
190598
|
windowsHide: true
|
|
@@ -194850,11 +194849,8 @@ var freshFlow = (job) => !job.flow?.sync_recovery_of && !job.syncRecoveryOf && !
|
|
|
194850
194849
|
var flowWorkerEntry = fileURLToPath7(new URL("./flow-worker-main.mjs", import.meta.url));
|
|
194851
194850
|
var canKeepFlow = (job) => !!job.task && !!job.flow && ["create", "refine", "implement", "preview"].includes(job.flow.verb) && !job.agent && !job.review && !job.discussion && !job.test && !job.secret;
|
|
194852
194851
|
function read4(id2) {
|
|
194853
|
-
return readWorker(fileOf3(id2));
|
|
194854
|
-
}
|
|
194855
|
-
function readWorker(file3) {
|
|
194856
194852
|
try {
|
|
194857
|
-
return JSON.parse(fs83.readFileSync(
|
|
194853
|
+
return JSON.parse(fs83.readFileSync(fileOf3(id2), "utf8"));
|
|
194858
194854
|
} catch {
|
|
194859
194855
|
return null;
|
|
194860
194856
|
}
|
|
@@ -194871,7 +194867,7 @@ function launchFlowWorker(id2, machine, entry = flowWorkerEntry, claimAttempt =
|
|
|
194871
194867
|
fs83.mkdirSync(directory2(), { recursive: true, mode: 448 });
|
|
194872
194868
|
const account = readSession()?.subject;
|
|
194873
194869
|
if (!account) throw new Error("\u8D26\u53F7\u5DF2\u9000\u51FA\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002");
|
|
194874
|
-
const worker = { id: id2,
|
|
194870
|
+
const worker = { id: id2, token: crypto13.randomUUID(), machine, account, generation: accountGeneration(), at: Date.now(), markedAt: Date.now(), claimAttempt };
|
|
194875
194871
|
fs83.writeFileSync(fileOf3(id2), JSON.stringify(worker), { flag: "wx", mode: 384 });
|
|
194876
194872
|
const log = fs83.openSync(`${fileOf3(id2)}.log`, "a", 384);
|
|
194877
194873
|
try {
|
|
@@ -194967,20 +194963,6 @@ function writerStopped(worker) {
|
|
|
194967
194963
|
{ pid: worker.pid, since: worker.processAt }
|
|
194968
194964
|
);
|
|
194969
194965
|
}
|
|
194970
|
-
function hasActiveFlowWorkers(otherThanVersion) {
|
|
194971
|
-
let names2;
|
|
194972
|
-
try {
|
|
194973
|
-
names2 = fs83.readdirSync(directory2());
|
|
194974
|
-
} catch (error62) {
|
|
194975
|
-
if (error62.code === "ENOENT") return false;
|
|
194976
|
-
throw error62;
|
|
194977
|
-
}
|
|
194978
|
-
return names2.filter((name) => name.endsWith(".json")).some((name) => {
|
|
194979
|
-
const worker = readWorker(path84.join(directory2(), name));
|
|
194980
|
-
if (!worker || otherThanVersion !== void 0 && worker.runnerVersion === otherThanVersion) return false;
|
|
194981
|
-
return worker.pid ? !writerStopped(worker) : !worker.ended && Date.now() - worker.at <= 1e4;
|
|
194982
|
-
});
|
|
194983
|
-
}
|
|
194984
194966
|
function retireSyncWorker(id2, machine) {
|
|
194985
194967
|
const file3 = fileOf3(id2);
|
|
194986
194968
|
if (!fs83.existsSync(file3)) return true;
|
|
@@ -195090,7 +195072,7 @@ async function reclaimFlowWorkers(machine, given, only, retryWaiting = false) {
|
|
|
195090
195072
|
const job2 = remote3.value.job;
|
|
195091
195073
|
const folder2 = job2.projectDir ? folderFor(job2) : { cwd: path84.join(runnerHome(), "work", job2.id) };
|
|
195092
195074
|
if ("refused" in folder2 || !job2.task || !job2.project) continue;
|
|
195093
|
-
const board =
|
|
195075
|
+
const board = path84.join(folder2.cwd, ".akb", "kanban");
|
|
195094
195076
|
if (!fs83.existsSync(board)) continue;
|
|
195095
195077
|
const deps = given ?? defaultDeps(machine);
|
|
195096
195078
|
if (!await confirmFlowStopped(
|
|
@@ -195561,19 +195543,14 @@ function startRunner(options, lock) {
|
|
|
195561
195543
|
if (updating) {
|
|
195562
195544
|
preparing = true;
|
|
195563
195545
|
await readDone;
|
|
195564
|
-
|
|
195565
|
-
if (
|
|
195566
|
-
|
|
195567
|
-
|
|
195568
|
-
|
|
195569
|
-
|
|
195570
|
-
|
|
195571
|
-
}
|
|
195546
|
+
for (const id2 of running.keys()) {
|
|
195547
|
+
if (workers.has(id2)) continue;
|
|
195548
|
+
const prepared = await finishJob(registration.machineId, id2, "update_prepare");
|
|
195549
|
+
if (!prepared.ok || !prepared.value.prepared && !prepared.value.finished) {
|
|
195550
|
+
preparing = false;
|
|
195551
|
+
void readJobs();
|
|
195552
|
+
throw new Error("\u66F4\u65B0\u6682\u7F13\uFF1A\u672A\u80FD\u4FDD\u5B58\u4E91\u7AEF\u4EFB\u52A1\uFF0C\u7A0D\u540E\u91CD\u8BD5\u3002");
|
|
195572
195553
|
}
|
|
195573
|
-
} catch (error62) {
|
|
195574
|
-
preparing = false;
|
|
195575
|
-
void readJobs();
|
|
195576
|
-
throw error62;
|
|
195577
195554
|
}
|
|
195578
195555
|
}
|
|
195579
195556
|
closed = true;
|
|
@@ -195594,9 +195571,9 @@ function startRunner(options, lock) {
|
|
|
195594
195571
|
live?.close();
|
|
195595
195572
|
presence?.close();
|
|
195596
195573
|
boards?.close();
|
|
195597
|
-
const preserveWorkers = release2 && validAccount();
|
|
195574
|
+
const preserveWorkers = (release2 || updating) && validAccount();
|
|
195598
195575
|
const keptWorkers = preserveWorkers && workers.size > 0;
|
|
195599
|
-
const stops = Promise.all([readDone, ...jobs, ...[...running.entries()].map(([id2, halt]) =>
|
|
195576
|
+
const stops = Promise.all([readDone, ...jobs, ...[...running.entries()].map(([id2, halt]) => preserveWorkers && workers.has(id2) ? void 0 : halt?.())]);
|
|
195600
195577
|
let timeout;
|
|
195601
195578
|
await Promise.race([stops, new Promise((resolve2) => {
|
|
195602
195579
|
timeout = setTimeout(() => {
|
|
@@ -196471,12 +196448,6 @@ async function main() {
|
|
|
196471
196448
|
if (duplicate) return rejectDuplicate();
|
|
196472
196449
|
throw error62;
|
|
196473
196450
|
}
|
|
196474
|
-
if (hasActiveFlowWorkers(VERSION)) {
|
|
196475
|
-
await lock();
|
|
196476
|
-
logRunner("runner", "startup_failed", { ...fields2, stage: "handoff", code: "previous_worker_active" });
|
|
196477
|
-
status("\u66F4\u65B0\u6682\u7F13\uFF0C\u7B49\u5F85\u65E7\u7248\u4EFB\u52A1\u8FDB\u7A0B\u9000\u51FA\u3002");
|
|
196478
|
-
process.exit(EXIT_REFUSED);
|
|
196479
|
-
}
|
|
196480
196451
|
if (!readSession()) {
|
|
196481
196452
|
const failure3 = await signIn();
|
|
196482
196453
|
if (failure3) {
|
package/dist/settings.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.121 — 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;
|
|
@@ -41756,8 +41756,8 @@ function cloudProblem(response, body) {
|
|
|
41756
41756
|
}
|
|
41757
41757
|
|
|
41758
41758
|
// src/protocol.ts
|
|
41759
|
-
var VERSION = true ? "0.6.
|
|
41760
|
-
var AKB_VERSION = true ? "0.11.
|
|
41759
|
+
var VERSION = true ? "0.6.121" : "0.0.0";
|
|
41760
|
+
var AKB_VERSION = true ? "0.11.103" : "0.0.0";
|
|
41761
41761
|
|
|
41762
41762
|
// ../cli/src/lib/agent/harnesses/antigravity.ts
|
|
41763
41763
|
import fs10 from "node:fs";
|
|
@@ -42306,7 +42306,6 @@ function stateLayout(board, root2) {
|
|
|
42306
42306
|
function projectStateDir(board, root2 = stateRootOf(board)) {
|
|
42307
42307
|
return stateLayout(board, root2).state;
|
|
42308
42308
|
}
|
|
42309
|
-
var cloudBoardOf = (project) => path8.join(project, ".akb", "kanban");
|
|
42310
42309
|
function hasLegacyProjectState(board, root2 = stateRootOf(board)) {
|
|
42311
42310
|
const { legacy } = stateLayout(board, root2);
|
|
42312
42311
|
return legacy.some((dir) => fs7.lstatSync(dir, { throwIfNoEntry: false }));
|
|
@@ -42925,8 +42924,8 @@ function createTail(log) {
|
|
|
42925
42924
|
// ../cli/package.json
|
|
42926
42925
|
var package_default = {
|
|
42927
42926
|
name: "wildcrane",
|
|
42928
|
-
version: "0.11.
|
|
42929
|
-
akbContract:
|
|
42927
|
+
version: "0.11.103",
|
|
42928
|
+
akbContract: 36,
|
|
42930
42929
|
canonicalCommands: true,
|
|
42931
42930
|
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.",
|
|
42932
42931
|
keywords: [
|
|
@@ -47816,7 +47815,7 @@ var holdsDir = () => path24.join(runnerHome(), "holds");
|
|
|
47816
47815
|
var holdFile = (dir) => path24.join(holdsDir(), `${crypto4.createHash("sha256").update(dir).digest("hex")}.${process.pid}`);
|
|
47817
47816
|
function paused(dir) {
|
|
47818
47817
|
try {
|
|
47819
|
-
const file2 = path24.join(projectStateDir(
|
|
47818
|
+
const file2 = path24.join(projectStateDir(path24.join(akbDir(dir), "kanban")), SESSIONS_FILE);
|
|
47820
47819
|
const held2 = JSON.parse(fs20.readFileSync(file2, "utf8"));
|
|
47821
47820
|
return (held2.deliveries ?? []).some((d) => d.status === "active");
|
|
47822
47821
|
} catch {
|
|
@@ -47842,14 +47841,14 @@ function busy(dir) {
|
|
|
47842
47841
|
}
|
|
47843
47842
|
function conflicted(dir) {
|
|
47844
47843
|
try {
|
|
47845
|
-
return pendingConflicts(
|
|
47844
|
+
return pendingConflicts(path24.join(dir, ".akb", "kanban")).length > 0;
|
|
47846
47845
|
} catch {
|
|
47847
47846
|
return true;
|
|
47848
47847
|
}
|
|
47849
47848
|
}
|
|
47850
47849
|
function legacyState(dir) {
|
|
47851
47850
|
try {
|
|
47852
|
-
return hasLegacyProjectState(
|
|
47851
|
+
return hasLegacyProjectState(path24.join(akbDir(dir), "kanban"));
|
|
47853
47852
|
} catch {
|
|
47854
47853
|
return true;
|
|
47855
47854
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wildcrane-runner",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.121",
|
|
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/",
|