wildcrane-runner 0.6.47 → 0.6.49
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 +5 -5
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +1 -1
- package/dist/launcher.mjs +29 -19
- package/dist/plugin.mjs +35 -25
- package/dist/runner.mjs +46 -22
- package/dist/settings.mjs +28 -19
- package/package.json +1 -1
package/dist/akb/dist/kanban.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// ai4kanban 0.11.
|
|
2
|
+
// ai4kanban 0.11.42 — 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;
|
|
@@ -4207,7 +4207,7 @@ var init_package = __esm({
|
|
|
4207
4207
|
"../cli/package.json"() {
|
|
4208
4208
|
package_default = {
|
|
4209
4209
|
name: "wildcrane",
|
|
4210
|
-
version: "0.11.
|
|
4210
|
+
version: "0.11.42",
|
|
4211
4211
|
akbContract: 11,
|
|
4212
4212
|
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.",
|
|
4213
4213
|
keywords: [
|
|
@@ -23095,7 +23095,7 @@ var init_add_task = __esm({
|
|
|
23095
23095
|
var archive_default;
|
|
23096
23096
|
var init_archive2 = __esm({
|
|
23097
23097
|
"../cli/src/guide/archive.md"() {
|
|
23098
|
-
archive_default = "# Finish a task\n\n## Write the shipped line\n\nRecord each user-facing outcome on one line in `docs/kanban/memory/readme.md`, under the\n`## <module>` heading the card's `modules:` names. Do not record internal-only changes. Use\nformats like these:\n\n- \u2705 Exporting a report to PDF: [Export reports](https://docs.example.com/export). Link to\n a published doc when available; do not restate it.\n- \u2705 Customers can pay an invoice by bank transfer from the billing page. When no doc\n exists, state plainly what the user can now do.\n- \u274C The orders table moved to a new database cluster. This describes infrastructure, not\n user-facing behavior.\n\n## Archive the card\n\nUse `akb raw delivery complete <id>` to finish your current studio step. The last step archives\nthe card and prints its handoff. Earlier steps leave it for the remaining studio agents.\nOutside an active delivery, use `akb raw archive <id>` or `akb raw reject <id>`.\n\n**Never finish a task by hand.** Deleting the card file yourself leaves other cards'\n`blocked_by:` and `related:` pointing at a card that no longer exists \u2014 the command is what\nfinds those, and nothing else will. A run that does this is reported as having broken the\nboard.\n\
|
|
23098
|
+
archive_default = "# Finish a task\n\n## Write the shipped line\n\nRecord each user-facing outcome on one line in `docs/kanban/memory/readme.md`, under the\n`## <module>` heading the card's `modules:` names. Do not record internal-only changes. Use\nformats like these:\n\n- \u2705 Exporting a report to PDF: [Export reports](https://docs.example.com/export). Link to\n a published doc when available; do not restate it.\n- \u2705 Customers can pay an invoice by bank transfer from the billing page. When no doc\n exists, state plainly what the user can now do.\n- \u274C The orders table moved to a new database cluster. This describes infrastructure, not\n user-facing behavior.\n\n## Archive the card\n\nUse `akb raw delivery complete <id>` to finish your current studio step. The last step archives\nthe card and prints its handoff. Earlier steps leave it for the remaining studio agents.\nOutside an active delivery, use `akb raw archive <id>` or `akb raw reject <id>`.\n\n**Never finish a task by hand.** Deleting the card file yourself leaves other cards'\n`blocked_by:` and `related:` pointing at a card that no longer exists \u2014 the command is what\nfinds those, and nothing else will. A run that does this is reported as having broken the\nboard.\n\nBefore completing a step, verify its approved requirements and required outputs; before the\nlast step, verify every delivery condition, including any required publication and live checks.\nRecord the verification results on the card, leave unmet work unchecked, and handle user-action\nblockers through `akb guide implement`. Preparation, a merged commit or a handoff in the final\nreply does not establish delivery.\n\nOnce those checks pass, run `akb raw delivery complete <id>` and follow its handoff. Software\nsteps in a git project supply `--commit <full-sha> --branch <target>`.\nIf completion was interrupted, inspect the recorded result and retry the same completion.\n";
|
|
23099
23099
|
}
|
|
23100
23100
|
});
|
|
23101
23101
|
|
|
@@ -23135,7 +23135,7 @@ var init_describe_project = __esm({
|
|
|
23135
23135
|
var discuss_goal_default;
|
|
23136
23136
|
var init_discuss_goal = __esm({
|
|
23137
23137
|
"../cli/src/guide/discuss-goal.md"() {
|
|
23138
|
-
discuss_goal_default = '# Discuss a goal\n\nThis flow only helps the user settle goals; refining, previewing, and running them come later.\n\n- **Remote user**: the user works remotely and sees only tasks and their previews, never local files.\n- **
|
|
23138
|
+
discuss_goal_default = '# Discuss a goal\n\nThis flow only helps the user settle goals; refining, previewing, and running them come later.\n\n- **Remote user**: the user works remotely and sees only tasks and their previews, never local files.\n- **Investigate here**: complete checks, diagnosis, audits, and similar investigations in this session, using `akb guide troubleshoot` for software failures; never create investigation or \u201Cinvestigate then fix\u201D goals.\n- **Concrete goals**: when a change needs investigation, save a goal only after the findings establish the concrete change; if verification is blocked, report what remains unverified instead of deferring it to a goal.\n\n## Goals\n\n- **Missing information**: ask the user for information needed to form a goal.\n- **Save**: once a goal is clear, save or update it with `akb goal` (see `akb goal --help`), then stop; an existing build continues in its current session.\n- **Goal format**: each goal has a title, an outcome of at most 150 words, and a `## Done when` list of verifiable acceptance criteria, without technical design.\n- **Independent deliverables**: save separate deliverables as separate goals; remove a replaced goal with `akb goal drop --id <goal>`.\n- **Studio**: pick the studio from `akb studio list` that fits the actual work; prefer the user\u2019s choice.\n- **Review points**: save through `--previews` the agents from `akb raw previews --triggers --studio <id>` whose conditions the goal meets, always including those marked `Always`, or an empty list.\n- **Use judgment**: settle outcome decisions you can and explain them; ask only for decisions the user must make that change the result, with a recommendation.\n- **Plain words**: answer directly using everyday words.\n- **Hide machinery**: omit plans, files, paths, commands, tools, and connectors from replies; refer to actions by their button labels.\n- **Starting a goal**: "Start now" (\u7ACB\u5373\u5F00\u59CB) begins the work directly; "Refine goal" (\u7EC6\u5316\u76EE\u6807) appears only when the goal has review points, and shows their previews for approval first.\n- **Anything else**: for a request this guide does not cover, read `akb help` once, then the matching command\'s `--help`.\n';
|
|
23139
23139
|
}
|
|
23140
23140
|
});
|
|
23141
23141
|
|
|
@@ -23151,7 +23151,7 @@ var init_follow_up = __esm({
|
|
|
23151
23151
|
var implement_default;
|
|
23152
23152
|
var init_implement = __esm({
|
|
23153
23153
|
"../cli/src/guide/implement.md"() {
|
|
23154
|
-
implement_default = "# Implement the approved requirements\n\nBuild the approved card or plan directly. Preserve settled decisions and unrelated questions;\ndo not replace or contradict the approved requirements. With no card, build only the given\nrequirement and create no card.\n\n- **Check applicability**: use the working directory, project instructions, configuration\n sources and change history as evidence; missing configuration alone does not make a check\n inapplicable. Explain any inapplicable check and its alternative verification; never report\n an unrun or failing check as passed. Do not bypass checks with empty configuration, disabled\n checks or lower standards.\n- **User-action blockers**: ask only when
|
|
23154
|
+
implement_default = "# Implement the approved requirements\n\nBuild the approved card or plan directly. Preserve settled decisions and unrelated questions;\ndo not replace or contradict the approved requirements. With no card, build only the given\nrequirement and create no card.\n\n- **Check applicability**: use the working directory, project instructions, configuration\n sources and change history as evidence; missing configuration alone does not make a check\n inapplicable. Explain any inapplicable check and its alternative verification; never report\n an unrun or failing check as passed. Do not bypass checks with empty configuration, disabled\n checks or lower standards.\n- **Authorization**: approval covers the necessary operations within the agreed scope and\n constraints; carry it across commands, tools and stages without repeated confirmation.\n- **User-action blockers**: resolve routine choices and problems yourself; ask only when\n reasonable investigation leaves a blocker requiring user action or a decision beyond the\n approved scope. On a card, use `akb guide update-questions`, stating what you tried, what\n is blocked and your recommendation; continue independent work.\n- **Defer what can wait**: follow `akb guide follow-up` for work this build does not require;\n never ask about it or let it block this build.\n- **Decisions made while building**: record an answered material decision the user could\n reasonably reverse under `## Worth noting after implementation` on the card.\n- **Resume**: inspect the existing result and the unchecked todos, carry completed steps\n forward, and finish the remaining todos before recording completion.\n";
|
|
23155
23155
|
}
|
|
23156
23156
|
});
|
|
23157
23157
|
|
package/dist/akb/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"wildcrane","version":"0.11.
|
|
1
|
+
{"name":"wildcrane","version":"0.11.42","akbContract":11,"type":"module","private":true}
|
package/dist/akb-proxy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.49 — 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.
|
|
1
|
+
// wildcrane-runner 0.6.49 — 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;
|
|
@@ -26670,6 +26670,15 @@ ${captureLines}` : capture.stack;
|
|
|
26670
26670
|
}
|
|
26671
26671
|
});
|
|
26672
26672
|
|
|
26673
|
+
// src/startup.ts
|
|
26674
|
+
import os from "node:os";
|
|
26675
|
+
try {
|
|
26676
|
+
process.cwd();
|
|
26677
|
+
} catch (error) {
|
|
26678
|
+
if (error.code !== "ENOENT") throw error;
|
|
26679
|
+
process.chdir(os.homedir());
|
|
26680
|
+
}
|
|
26681
|
+
|
|
26673
26682
|
// src/launcher-main.ts
|
|
26674
26683
|
import path30 from "node:path";
|
|
26675
26684
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -26677,7 +26686,7 @@ import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
|
26677
26686
|
// src/home.ts
|
|
26678
26687
|
import crypto from "node:crypto";
|
|
26679
26688
|
import fs from "node:fs";
|
|
26680
|
-
import
|
|
26689
|
+
import os2 from "node:os";
|
|
26681
26690
|
import path from "node:path";
|
|
26682
26691
|
import { parseEnv } from "node:util";
|
|
26683
26692
|
|
|
@@ -26753,7 +26762,7 @@ function followProxy(read2) {
|
|
|
26753
26762
|
|
|
26754
26763
|
// src/home.ts
|
|
26755
26764
|
function runnerHome() {
|
|
26756
|
-
return process.env.WILDCRANE_HOME || path.join(
|
|
26765
|
+
return process.env.WILDCRANE_HOME || path.join(os2.homedir(), ".wildcrane");
|
|
26757
26766
|
}
|
|
26758
26767
|
function useRunnerHome() {
|
|
26759
26768
|
process.env.AI4KANBAN_HOME = runnerHome();
|
|
@@ -26786,7 +26795,7 @@ function machineId() {
|
|
|
26786
26795
|
`);
|
|
26787
26796
|
return id;
|
|
26788
26797
|
}
|
|
26789
|
-
var machineName = () =>
|
|
26798
|
+
var machineName = () => os2.hostname().replace(/\.local$/, "");
|
|
26790
26799
|
|
|
26791
26800
|
// src/launcher.ts
|
|
26792
26801
|
import { spawn } from "node:child_process";
|
|
@@ -26889,8 +26898,8 @@ function saveAlphaUpdates(value) {
|
|
|
26889
26898
|
}
|
|
26890
26899
|
|
|
26891
26900
|
// src/protocol.ts
|
|
26892
|
-
var VERSION = true ? "0.6.
|
|
26893
|
-
var AKB_VERSION = true ? "0.11.
|
|
26901
|
+
var VERSION = true ? "0.6.49" : "0.0.0";
|
|
26902
|
+
var AKB_VERSION = true ? "0.11.42" : "0.0.0";
|
|
26894
26903
|
var EXIT_REFUSED = 10;
|
|
26895
26904
|
var EXIT_OUTDATED = 11;
|
|
26896
26905
|
var EXIT_UPDATE = 12;
|
|
@@ -27121,6 +27130,7 @@ async function candidates(own2) {
|
|
|
27121
27130
|
function runOnce(candidate, options) {
|
|
27122
27131
|
return new Promise((resolve2) => {
|
|
27123
27132
|
const child = spawn(process.execPath, [candidate.entry], {
|
|
27133
|
+
cwd: path4.dirname(candidate.entry),
|
|
27124
27134
|
stdio: ["ignore", options.quiet ? 2 : "inherit", "inherit", "ipc"],
|
|
27125
27135
|
env: { ...process.env, WILDCRANE_RUNNER_VERSION: candidate.version, WILDCRANE_RUNNER_KIND: options.kind ?? "terminal" }
|
|
27126
27136
|
});
|
|
@@ -27239,10 +27249,10 @@ import fs5 from "node:fs";
|
|
|
27239
27249
|
import path6 from "node:path";
|
|
27240
27250
|
|
|
27241
27251
|
// ../cli/src/lib/machine/home.ts
|
|
27242
|
-
import
|
|
27252
|
+
import os3 from "node:os";
|
|
27243
27253
|
import path5 from "node:path";
|
|
27244
27254
|
function machineHome() {
|
|
27245
|
-
return process.env.AI4KANBAN_HOME || path5.join(
|
|
27255
|
+
return process.env.AI4KANBAN_HOME || path5.join(os3.homedir(), ".ai4kanban");
|
|
27246
27256
|
}
|
|
27247
27257
|
|
|
27248
27258
|
// ../cli/src/lib/cloud/session.ts
|
|
@@ -28651,7 +28661,7 @@ var flows = memoByFiles(sources, readFlows);
|
|
|
28651
28661
|
|
|
28652
28662
|
// src/folders.ts
|
|
28653
28663
|
import fs13 from "node:fs";
|
|
28654
|
-
import
|
|
28664
|
+
import os4 from "node:os";
|
|
28655
28665
|
import path15 from "node:path";
|
|
28656
28666
|
var projectsFile = () => path15.join(runnerHome(), "projects.json");
|
|
28657
28667
|
function realpath(p) {
|
|
@@ -28734,7 +28744,7 @@ var allow = (dir) => {
|
|
|
28734
28744
|
var disallow = (dir) => update((list) => list.filter((p) => p !== dir));
|
|
28735
28745
|
var SYSTEM_MAC = ["/System", "/Library", "/Applications", "/usr", "/bin", "/sbin", "/etc", "/var", "/private", "/opt", "/cores", "/dev"];
|
|
28736
28746
|
var SYSTEM_WIN = ["Windows", "Program Files", "Program Files (x86)", "ProgramData"];
|
|
28737
|
-
var here = () => ({ platform: process.platform, home:
|
|
28747
|
+
var here = () => ({ platform: process.platform, home: os4.homedir(), resolve: realpath });
|
|
28738
28748
|
function refusal(picked, where = here()) {
|
|
28739
28749
|
const win = where.platform === "win32";
|
|
28740
28750
|
const p = win ? path15.win32 : path15.posix;
|
|
@@ -28881,7 +28891,7 @@ function installKanbanSkill(dir) {
|
|
|
28881
28891
|
// src/runtimes.ts
|
|
28882
28892
|
import { spawn as spawn5 } from "node:child_process";
|
|
28883
28893
|
import fs22 from "node:fs";
|
|
28884
|
-
import
|
|
28894
|
+
import os6 from "node:os";
|
|
28885
28895
|
import path25 from "node:path";
|
|
28886
28896
|
|
|
28887
28897
|
// ../cli/src/lib/agent/argv.ts
|
|
@@ -29033,7 +29043,7 @@ import path22 from "node:path";
|
|
|
29033
29043
|
// ../cli/src/lib/agent/locate.ts
|
|
29034
29044
|
import { spawn as spawn4, spawnSync as spawnSync2 } from "node:child_process";
|
|
29035
29045
|
import fs18 from "node:fs";
|
|
29036
|
-
import
|
|
29046
|
+
import os5 from "node:os";
|
|
29037
29047
|
import path20 from "node:path";
|
|
29038
29048
|
|
|
29039
29049
|
// ../cli/src/lib/agent/installed.ts
|
|
@@ -29173,7 +29183,7 @@ function latestIn(parent, tail = "") {
|
|
|
29173
29183
|
}
|
|
29174
29184
|
var env = (name) => process.env[name]?.trim() ?? "";
|
|
29175
29185
|
function commonDirs() {
|
|
29176
|
-
const home3 =
|
|
29186
|
+
const home3 = os5.homedir();
|
|
29177
29187
|
const under = (...parts) => path20.join(home3, ...parts);
|
|
29178
29188
|
const nodes = (root2, tail = []) => root2 ? folders(root2).map((version) => path20.join(root2, version, ...tail)) : [];
|
|
29179
29189
|
if (WINDOWS2) {
|
|
@@ -29279,7 +29289,7 @@ function copyEnv(file2, given = process.env) {
|
|
|
29279
29289
|
if (!path20.isAbsolute(file2)) return given;
|
|
29280
29290
|
return { ...given, PATH: [path20.dirname(file2), given.PATH].filter(Boolean).join(path20.delimiter) };
|
|
29281
29291
|
}
|
|
29282
|
-
var probeOptions = (file2) => ({ cwd:
|
|
29292
|
+
var probeOptions = (file2) => ({ cwd: os5.tmpdir(), env: copyEnv(file2), windowsHide: true, shell: false });
|
|
29283
29293
|
function probe(file2) {
|
|
29284
29294
|
const key = keyOf(file2);
|
|
29285
29295
|
const start = spawnable(file2, ["--version"], { ...probeOptions(file2), stdio: ["ignore", "pipe", "pipe"], timeout: PROBE_MS });
|
|
@@ -30474,7 +30484,7 @@ function createTail(log) {
|
|
|
30474
30484
|
// ../cli/package.json
|
|
30475
30485
|
var package_default = {
|
|
30476
30486
|
name: "wildcrane",
|
|
30477
|
-
version: "0.11.
|
|
30487
|
+
version: "0.11.42",
|
|
30478
30488
|
akbContract: 11,
|
|
30479
30489
|
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.",
|
|
30480
30490
|
keywords: [
|
|
@@ -32514,14 +32524,14 @@ var listed = (harness) => async () => (harness.models?.() ?? []).map((id) => ({
|
|
|
32514
32524
|
var readModels = (name) => (MODELS[name] ?? listed(HARNESSES2[name]))().catch(() => []);
|
|
32515
32525
|
var MODELS = {
|
|
32516
32526
|
"claude-code": async () => {
|
|
32517
|
-
const cached2 = claudeModels(path25.join(process.env.CLAUDE_CONFIG_DIR || path25.join(
|
|
32527
|
+
const cached2 = claudeModels(path25.join(process.env.CLAUDE_CONFIG_DIR || path25.join(os6.homedir(), ".claude"), "cache", "model-catalog"));
|
|
32518
32528
|
return cached2.length ? cached2 : [
|
|
32519
32529
|
{ id: "opus", name: "Opus" },
|
|
32520
32530
|
{ id: "sonnet", name: "Sonnet" },
|
|
32521
32531
|
{ id: "haiku", name: "Haiku" }
|
|
32522
32532
|
];
|
|
32523
32533
|
},
|
|
32524
|
-
codex: async () => codexModels(path25.join(process.env.CODEX_HOME || path25.join(
|
|
32534
|
+
codex: async () => codexModels(path25.join(process.env.CODEX_HOME || path25.join(os6.homedir(), ".codex"), "models_cache.json")),
|
|
32525
32535
|
opencode: async () => opencodeModels(await output(commandOf(HARNESSES2.opencode)[0], ["models"])),
|
|
32526
32536
|
cursor: () => cursorModels()
|
|
32527
32537
|
};
|
|
@@ -32533,7 +32543,7 @@ function cursorModels() {
|
|
|
32533
32543
|
return new Promise((resolve2) => {
|
|
32534
32544
|
let child;
|
|
32535
32545
|
try {
|
|
32536
|
-
const start = spawnable(argv[0], argv.slice(1), { cwd:
|
|
32546
|
+
const start = spawnable(argv[0], argv.slice(1), { cwd: os6.tmpdir(), stdio: ["pipe", "pipe", "ignore"], env: copyEnv(argv[0], withSystemProxy({ ...process.env, ...HARNESSES2.cursor.env() })) });
|
|
32537
32547
|
child = spawn5(start.command, start.args, start.options);
|
|
32538
32548
|
} catch {
|
|
32539
32549
|
return resolve2([]);
|
|
@@ -32546,7 +32556,7 @@ function cursorModels() {
|
|
|
32546
32556
|
const timer = setTimeout(() => done([]), MODELS_MS);
|
|
32547
32557
|
child.on("error", () => done([]));
|
|
32548
32558
|
const rpc = connect(child.stdout, child.stdin, (msg) => msg.id !== void 0 && rpc.refuse(msg.id, "no"), { jsonrpc: true });
|
|
32549
|
-
rpc.call("initialize", { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } }).then(() => rpc.call("session/new", { cwd:
|
|
32559
|
+
rpc.call("initialize", { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } }).then(() => rpc.call("session/new", { cwd: os6.tmpdir(), mcpServers: [] })).then((opened) => done(acpModels(opened))).catch(() => done([]));
|
|
32550
32560
|
});
|
|
32551
32561
|
}
|
|
32552
32562
|
function acpModels(opened) {
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.49 — 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;
|
|
@@ -57156,10 +57156,19 @@ ${captureLines}` : capture.stack;
|
|
|
57156
57156
|
}
|
|
57157
57157
|
});
|
|
57158
57158
|
|
|
57159
|
+
// src/startup.ts
|
|
57160
|
+
import os from "node:os";
|
|
57161
|
+
try {
|
|
57162
|
+
process.cwd();
|
|
57163
|
+
} catch (error2) {
|
|
57164
|
+
if (error2.code !== "ENOENT") throw error2;
|
|
57165
|
+
process.chdir(os.homedir());
|
|
57166
|
+
}
|
|
57167
|
+
|
|
57159
57168
|
// src/plugin.ts
|
|
57160
57169
|
import crypto10 from "node:crypto";
|
|
57161
57170
|
import fs27 from "node:fs";
|
|
57162
|
-
import
|
|
57171
|
+
import os8 from "node:os";
|
|
57163
57172
|
import path31 from "node:path";
|
|
57164
57173
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
57165
57174
|
import { Writable } from "node:stream";
|
|
@@ -73469,10 +73478,10 @@ import fs from "node:fs";
|
|
|
73469
73478
|
import path2 from "node:path";
|
|
73470
73479
|
|
|
73471
73480
|
// ../cli/src/lib/machine/home.ts
|
|
73472
|
-
import
|
|
73481
|
+
import os2 from "node:os";
|
|
73473
73482
|
import path from "node:path";
|
|
73474
73483
|
function machineHome() {
|
|
73475
|
-
return process.env.AI4KANBAN_HOME || path.join(
|
|
73484
|
+
return process.env.AI4KANBAN_HOME || path.join(os2.homedir(), ".ai4kanban");
|
|
73476
73485
|
}
|
|
73477
73486
|
|
|
73478
73487
|
// ../cli/src/lib/cloud/config.ts
|
|
@@ -73648,7 +73657,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
73648
73657
|
// src/home.ts
|
|
73649
73658
|
import crypto from "node:crypto";
|
|
73650
73659
|
import fs2 from "node:fs";
|
|
73651
|
-
import
|
|
73660
|
+
import os3 from "node:os";
|
|
73652
73661
|
import path3 from "node:path";
|
|
73653
73662
|
import { parseEnv } from "node:util";
|
|
73654
73663
|
|
|
@@ -73724,7 +73733,7 @@ function followProxy(read2) {
|
|
|
73724
73733
|
|
|
73725
73734
|
// src/home.ts
|
|
73726
73735
|
function runnerHome() {
|
|
73727
|
-
return process.env.WILDCRANE_HOME || path3.join(
|
|
73736
|
+
return process.env.WILDCRANE_HOME || path3.join(os3.homedir(), ".wildcrane");
|
|
73728
73737
|
}
|
|
73729
73738
|
function useRunnerHome() {
|
|
73730
73739
|
process.env.AI4KANBAN_HOME = runnerHome();
|
|
@@ -73757,11 +73766,11 @@ function machineId() {
|
|
|
73757
73766
|
`);
|
|
73758
73767
|
return id;
|
|
73759
73768
|
}
|
|
73760
|
-
var machineName = () =>
|
|
73769
|
+
var machineName = () => os3.hostname().replace(/\.local$/, "");
|
|
73761
73770
|
|
|
73762
73771
|
// src/protocol.ts
|
|
73763
|
-
var VERSION = true ? "0.6.
|
|
73764
|
-
var AKB_VERSION = true ? "0.11.
|
|
73772
|
+
var VERSION = true ? "0.6.49" : "0.0.0";
|
|
73773
|
+
var AKB_VERSION = true ? "0.11.42" : "0.0.0";
|
|
73765
73774
|
var EXIT_REFUSED = 10;
|
|
73766
73775
|
var EXIT_OUTDATED = 11;
|
|
73767
73776
|
var EXIT_UPDATE = 12;
|
|
@@ -74809,7 +74818,7 @@ var flows = memoByFiles(sources, readFlows);
|
|
|
74809
74818
|
|
|
74810
74819
|
// src/folders.ts
|
|
74811
74820
|
import fs10 from "node:fs";
|
|
74812
|
-
import
|
|
74821
|
+
import os4 from "node:os";
|
|
74813
74822
|
import path12 from "node:path";
|
|
74814
74823
|
var projectsFile = () => path12.join(runnerHome(), "projects.json");
|
|
74815
74824
|
function realpath(p) {
|
|
@@ -74892,7 +74901,7 @@ var allow = (dir) => {
|
|
|
74892
74901
|
var disallow = (dir) => update((list) => list.filter((p) => p !== dir));
|
|
74893
74902
|
var SYSTEM_MAC = ["/System", "/Library", "/Applications", "/usr", "/bin", "/sbin", "/etc", "/var", "/private", "/opt", "/cores", "/dev"];
|
|
74894
74903
|
var SYSTEM_WIN = ["Windows", "Program Files", "Program Files (x86)", "ProgramData"];
|
|
74895
|
-
var here = () => ({ platform: process.platform, home:
|
|
74904
|
+
var here = () => ({ platform: process.platform, home: os4.homedir(), resolve: realpath });
|
|
74896
74905
|
function refusal(picked, where = here()) {
|
|
74897
74906
|
const win = where.platform === "win32";
|
|
74898
74907
|
const p = win ? path12.win32 : path12.posix;
|
|
@@ -75286,6 +75295,7 @@ async function candidates(own3) {
|
|
|
75286
75295
|
function runOnce(candidate, options) {
|
|
75287
75296
|
return new Promise((resolve2) => {
|
|
75288
75297
|
const child = spawn(process.execPath, [candidate.entry], {
|
|
75298
|
+
cwd: path16.dirname(candidate.entry),
|
|
75289
75299
|
stdio: ["ignore", options.quiet ? 2 : "inherit", "inherit", "ipc"],
|
|
75290
75300
|
env: { ...process.env, WILDCRANE_RUNNER_VERSION: candidate.version, WILDCRANE_RUNNER_KIND: options.kind ?? "terminal" }
|
|
75291
75301
|
});
|
|
@@ -75405,7 +75415,7 @@ var taskUrl = (task) => `${WEB_URL()}/tasks/${encodeURIComponent(task)}`;
|
|
|
75405
75415
|
|
|
75406
75416
|
// src/plugin-version.ts
|
|
75407
75417
|
import fs15 from "node:fs";
|
|
75408
|
-
import
|
|
75418
|
+
import os5 from "node:os";
|
|
75409
75419
|
import path17 from "node:path";
|
|
75410
75420
|
var RELEASED = "https://raw.githubusercontent.com/wildcrane-ai/wildcrane/main/plugins/claude-code/.claude-plugin/plugin.json";
|
|
75411
75421
|
var TIMEOUT_MS3 = 5e3;
|
|
@@ -75440,7 +75450,7 @@ function checkReleased(url = RELEASED, now = Date.now()) {
|
|
|
75440
75450
|
fetching = get(url).then(releasedOf, () => null).then((value) => void (released = { at: Date.now(), value })).finally(() => fetching = null);
|
|
75441
75451
|
return fetching;
|
|
75442
75452
|
}
|
|
75443
|
-
function codexSource(home4 = process.env.CODEX_HOME || path17.join(
|
|
75453
|
+
function codexSource(home4 = process.env.CODEX_HOME || path17.join(os5.homedir(), ".codex")) {
|
|
75444
75454
|
try {
|
|
75445
75455
|
const config2 = fs15.readFileSync(path17.join(home4, "config.toml"), "utf8");
|
|
75446
75456
|
const section = /^\[marketplaces\.wildcrane\][^\n]*\n((?:(?!\[)[^\n]*\n?)*)/m.exec(config2)?.[1] ?? "";
|
|
@@ -75464,7 +75474,7 @@ async function get(url) {
|
|
|
75464
75474
|
// src/runtimes.ts
|
|
75465
75475
|
import { spawn as spawn3 } from "node:child_process";
|
|
75466
75476
|
import fs22 from "node:fs";
|
|
75467
|
-
import
|
|
75477
|
+
import os7 from "node:os";
|
|
75468
75478
|
import path25 from "node:path";
|
|
75469
75479
|
|
|
75470
75480
|
// ../cli/src/lib/agent/argv.ts
|
|
@@ -75616,7 +75626,7 @@ import path22 from "node:path";
|
|
|
75616
75626
|
// ../cli/src/lib/agent/locate.ts
|
|
75617
75627
|
import { spawn as spawn2, spawnSync } from "node:child_process";
|
|
75618
75628
|
import fs18 from "node:fs";
|
|
75619
|
-
import
|
|
75629
|
+
import os6 from "node:os";
|
|
75620
75630
|
import path20 from "node:path";
|
|
75621
75631
|
|
|
75622
75632
|
// ../cli/src/lib/agent/installed.ts
|
|
@@ -75756,7 +75766,7 @@ function latestIn(parent, tail = "") {
|
|
|
75756
75766
|
}
|
|
75757
75767
|
var env = (name) => process.env[name]?.trim() ?? "";
|
|
75758
75768
|
function commonDirs() {
|
|
75759
|
-
const home4 =
|
|
75769
|
+
const home4 = os6.homedir();
|
|
75760
75770
|
const under = (...parts) => path20.join(home4, ...parts);
|
|
75761
75771
|
const nodes = (root2, tail = []) => root2 ? folders(root2).map((version2) => path20.join(root2, version2, ...tail)) : [];
|
|
75762
75772
|
if (WINDOWS2) {
|
|
@@ -75862,7 +75872,7 @@ function copyEnv(file2, given = process.env) {
|
|
|
75862
75872
|
if (!path20.isAbsolute(file2)) return given;
|
|
75863
75873
|
return { ...given, PATH: [path20.dirname(file2), given.PATH].filter(Boolean).join(path20.delimiter) };
|
|
75864
75874
|
}
|
|
75865
|
-
var probeOptions = (file2) => ({ cwd:
|
|
75875
|
+
var probeOptions = (file2) => ({ cwd: os6.tmpdir(), env: copyEnv(file2), windowsHide: true, shell: false });
|
|
75866
75876
|
function probe(file2) {
|
|
75867
75877
|
const key = keyOf(file2);
|
|
75868
75878
|
const start = spawnable(file2, ["--version"], { ...probeOptions(file2), stdio: ["ignore", "pipe", "pipe"], timeout: PROBE_MS });
|
|
@@ -77057,7 +77067,7 @@ function createTail(log) {
|
|
|
77057
77067
|
// ../cli/package.json
|
|
77058
77068
|
var package_default = {
|
|
77059
77069
|
name: "wildcrane",
|
|
77060
|
-
version: "0.11.
|
|
77070
|
+
version: "0.11.42",
|
|
77061
77071
|
akbContract: 11,
|
|
77062
77072
|
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.",
|
|
77063
77073
|
keywords: [
|
|
@@ -79097,14 +79107,14 @@ var listed = (harness) => async () => (harness.models?.() ?? []).map((id) => ({
|
|
|
79097
79107
|
var readModels = (name) => (MODELS[name] ?? listed(HARNESSES2[name]))().catch(() => []);
|
|
79098
79108
|
var MODELS = {
|
|
79099
79109
|
"claude-code": async () => {
|
|
79100
|
-
const cached3 = claudeModels(path25.join(process.env.CLAUDE_CONFIG_DIR || path25.join(
|
|
79110
|
+
const cached3 = claudeModels(path25.join(process.env.CLAUDE_CONFIG_DIR || path25.join(os7.homedir(), ".claude"), "cache", "model-catalog"));
|
|
79101
79111
|
return cached3.length ? cached3 : [
|
|
79102
79112
|
{ id: "opus", name: "Opus" },
|
|
79103
79113
|
{ id: "sonnet", name: "Sonnet" },
|
|
79104
79114
|
{ id: "haiku", name: "Haiku" }
|
|
79105
79115
|
];
|
|
79106
79116
|
},
|
|
79107
|
-
codex: async () => codexModels(path25.join(process.env.CODEX_HOME || path25.join(
|
|
79117
|
+
codex: async () => codexModels(path25.join(process.env.CODEX_HOME || path25.join(os7.homedir(), ".codex"), "models_cache.json")),
|
|
79108
79118
|
opencode: async () => opencodeModels(await output(commandOf(HARNESSES2.opencode)[0], ["models"])),
|
|
79109
79119
|
cursor: () => cursorModels()
|
|
79110
79120
|
};
|
|
@@ -79116,7 +79126,7 @@ function cursorModels() {
|
|
|
79116
79126
|
return new Promise((resolve2) => {
|
|
79117
79127
|
let child;
|
|
79118
79128
|
try {
|
|
79119
|
-
const start = spawnable(argv[0], argv.slice(1), { cwd:
|
|
79129
|
+
const start = spawnable(argv[0], argv.slice(1), { cwd: os7.tmpdir(), stdio: ["pipe", "pipe", "ignore"], env: copyEnv(argv[0], withSystemProxy({ ...process.env, ...HARNESSES2.cursor.env() })) });
|
|
79120
79130
|
child = spawn3(start.command, start.args, start.options);
|
|
79121
79131
|
} catch {
|
|
79122
79132
|
return resolve2([]);
|
|
@@ -79129,7 +79139,7 @@ function cursorModels() {
|
|
|
79129
79139
|
const timer = setTimeout(() => done([]), MODELS_MS);
|
|
79130
79140
|
child.on("error", () => done([]));
|
|
79131
79141
|
const rpc = connect(child.stdout, child.stdin, (msg) => msg.id !== void 0 && rpc.refuse(msg.id, "no"), { jsonrpc: true });
|
|
79132
|
-
rpc.call("initialize", { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } }).then(() => rpc.call("session/new", { cwd:
|
|
79142
|
+
rpc.call("initialize", { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } }).then(() => rpc.call("session/new", { cwd: os7.tmpdir(), mcpServers: [] })).then((opened) => done(acpModels(opened))).catch(() => done([]));
|
|
79133
79143
|
});
|
|
79134
79144
|
}
|
|
79135
79145
|
function acpModels(opened) {
|
|
@@ -80116,7 +80126,7 @@ function keepChat(chat) {
|
|
|
80116
80126
|
fs27.writeFileSync(chatsFile(), `${JSON.stringify({ chats: chats2 }, null, 2)}
|
|
80117
80127
|
`);
|
|
80118
80128
|
}
|
|
80119
|
-
var home3 = (dir) => dir ===
|
|
80129
|
+
var home3 = (dir) => dir === os8.homedir() || dir.startsWith(os8.homedir() + path31.sep) ? `~${dir.slice(os8.homedir().length)}` : dir;
|
|
80120
80130
|
function realpath3(dir) {
|
|
80121
80131
|
try {
|
|
80122
80132
|
return fs27.realpathSync(dir);
|
|
@@ -80257,7 +80267,7 @@ async function elsewhere() {
|
|
|
80257
80267
|
if (!list.ok) return [];
|
|
80258
80268
|
return list.value.projects.map(({ project, name, workspace_name, personal }) => ({ project, name, workspace_name, personal, board: boardUrl(project) }));
|
|
80259
80269
|
}
|
|
80260
|
-
var typed = (given, cwd) => path31.resolve(cwd, given.trim().replace(/^~(?=$|[\\/])/,
|
|
80270
|
+
var typed = (given, cwd) => path31.resolve(cwd, given.trim().replace(/^~(?=$|[\\/])/, os8.homedir()));
|
|
80261
80271
|
async function addFolder3(dir, bind, strict = false) {
|
|
80262
80272
|
const result = await addFolder2(dir, bind, strict);
|
|
80263
80273
|
return "error" in result ? result : { ...result, board: boardUrl(result.project) };
|
|
@@ -80446,7 +80456,7 @@ function server() {
|
|
|
80446
80456
|
inputSchema: { path: import_zod2.z.string().optional().describe("The current working directory.") }
|
|
80447
80457
|
}, async ({ path: given }, extra) => {
|
|
80448
80458
|
const dir = pathOf(given, extra._meta);
|
|
80449
|
-
const now = await state(dir ||
|
|
80459
|
+
const now = await state(dir || os8.homedir());
|
|
80450
80460
|
const found = (await connections2()).connections;
|
|
80451
80461
|
const akb = akbFile2 ? { akb: akbFile2 } : {};
|
|
80452
80462
|
if (!now.signedIn) return text3({ signedIn: false, ...akb, signing: signingState(), connections: found });
|
package/dist/runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.49 — 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;
|
|
@@ -111051,15 +111051,24 @@ var init_mockup = __esm({
|
|
|
111051
111051
|
}
|
|
111052
111052
|
});
|
|
111053
111053
|
|
|
111054
|
+
// src/startup.ts
|
|
111055
|
+
import os from "node:os";
|
|
111056
|
+
try {
|
|
111057
|
+
process.cwd();
|
|
111058
|
+
} catch (error) {
|
|
111059
|
+
if (error.code !== "ENOENT") throw error;
|
|
111060
|
+
process.chdir(os.homedir());
|
|
111061
|
+
}
|
|
111062
|
+
|
|
111054
111063
|
// ../cli/src/lib/cloud/session.ts
|
|
111055
111064
|
import fs from "node:fs";
|
|
111056
111065
|
import path2 from "node:path";
|
|
111057
111066
|
|
|
111058
111067
|
// ../cli/src/lib/machine/home.ts
|
|
111059
|
-
import
|
|
111068
|
+
import os2 from "node:os";
|
|
111060
111069
|
import path from "node:path";
|
|
111061
111070
|
function machineHome() {
|
|
111062
|
-
return process.env.AI4KANBAN_HOME || path.join(
|
|
111071
|
+
return process.env.AI4KANBAN_HOME || path.join(os2.homedir(), ".ai4kanban");
|
|
111063
111072
|
}
|
|
111064
111073
|
|
|
111065
111074
|
// ../cli/src/lib/cloud/config.ts
|
|
@@ -111234,7 +111243,7 @@ var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
|
111234
111243
|
// src/home.ts
|
|
111235
111244
|
import crypto from "node:crypto";
|
|
111236
111245
|
import fs2 from "node:fs";
|
|
111237
|
-
import
|
|
111246
|
+
import os3 from "node:os";
|
|
111238
111247
|
import path3 from "node:path";
|
|
111239
111248
|
import { parseEnv } from "node:util";
|
|
111240
111249
|
|
|
@@ -111313,7 +111322,7 @@ function proxyEnv() {
|
|
|
111313
111322
|
|
|
111314
111323
|
// src/home.ts
|
|
111315
111324
|
function runnerHome() {
|
|
111316
|
-
return process.env.WILDCRANE_HOME || path3.join(
|
|
111325
|
+
return process.env.WILDCRANE_HOME || path3.join(os3.homedir(), ".wildcrane");
|
|
111317
111326
|
}
|
|
111318
111327
|
function useRunnerHome() {
|
|
111319
111328
|
process.env.AI4KANBAN_HOME = runnerHome();
|
|
@@ -111346,7 +111355,7 @@ function machineId() {
|
|
|
111346
111355
|
`);
|
|
111347
111356
|
return id;
|
|
111348
111357
|
}
|
|
111349
|
-
var machineName = () =>
|
|
111358
|
+
var machineName = () => os3.hostname().replace(/\.local$/, "");
|
|
111350
111359
|
|
|
111351
111360
|
// src/i18n.ts
|
|
111352
111361
|
var ZH_HOLDER = { "claude-code": "Claude Code", codex: "Codex", cursor: "Cursor", dsh: "dsh", zcode: "ZCode", kimi: "Kimi Code", terminal: "\u672C\u673A\u7EC8\u7AEF" };
|
|
@@ -111406,8 +111415,8 @@ function status(line) {
|
|
|
111406
111415
|
}
|
|
111407
111416
|
|
|
111408
111417
|
// src/protocol.ts
|
|
111409
|
-
var VERSION = true ? "0.6.
|
|
111410
|
-
var AKB_VERSION = true ? "0.11.
|
|
111418
|
+
var VERSION = true ? "0.6.49" : "0.0.0";
|
|
111419
|
+
var AKB_VERSION = true ? "0.11.42" : "0.0.0";
|
|
111411
111420
|
var AKB_CONTRACT = true ? 11 : 0;
|
|
111412
111421
|
var EXIT_REFUSED = 10;
|
|
111413
111422
|
var EXIT_OUTDATED = 11;
|
|
@@ -111417,7 +111426,7 @@ var EXIT_UPDATE = 12;
|
|
|
111417
111426
|
import { spawn as spawn2 } from "node:child_process";
|
|
111418
111427
|
import { randomUUID } from "node:crypto";
|
|
111419
111428
|
import fs12 from "node:fs";
|
|
111420
|
-
import
|
|
111429
|
+
import os5 from "node:os";
|
|
111421
111430
|
import path16 from "node:path";
|
|
111422
111431
|
|
|
111423
111432
|
// ../cli/src/lib/agent/language.ts
|
|
@@ -111605,7 +111614,7 @@ import path8 from "node:path";
|
|
|
111605
111614
|
// ../cli/src/lib/agent/locate.ts
|
|
111606
111615
|
import { spawn, spawnSync } from "node:child_process";
|
|
111607
111616
|
import fs5 from "node:fs";
|
|
111608
|
-
import
|
|
111617
|
+
import os4 from "node:os";
|
|
111609
111618
|
import path6 from "node:path";
|
|
111610
111619
|
|
|
111611
111620
|
// ../cli/src/lib/agent/installed.ts
|
|
@@ -111745,7 +111754,7 @@ function latestIn(parent, tail = "") {
|
|
|
111745
111754
|
}
|
|
111746
111755
|
var env = (name) => process.env[name]?.trim() ?? "";
|
|
111747
111756
|
function commonDirs() {
|
|
111748
|
-
const home4 =
|
|
111757
|
+
const home4 = os4.homedir();
|
|
111749
111758
|
const under = (...parts) => path6.join(home4, ...parts);
|
|
111750
111759
|
const nodes = (root2, tail = []) => root2 ? folders(root2).map((version) => path6.join(root2, version, ...tail)) : [];
|
|
111751
111760
|
if (WINDOWS2) {
|
|
@@ -111851,7 +111860,7 @@ function copyEnv(file3, given = process.env) {
|
|
|
111851
111860
|
if (!path6.isAbsolute(file3)) return given;
|
|
111852
111861
|
return { ...given, PATH: [path6.dirname(file3), given.PATH].filter(Boolean).join(path6.delimiter) };
|
|
111853
111862
|
}
|
|
111854
|
-
var probeOptions = (file3) => ({ cwd:
|
|
111863
|
+
var probeOptions = (file3) => ({ cwd: os4.tmpdir(), env: copyEnv(file3), windowsHide: true, shell: false });
|
|
111855
111864
|
function probe(file3) {
|
|
111856
111865
|
const key = keyOf(file3);
|
|
111857
111866
|
const start = spawnable(file3, ["--version"], { ...probeOptions(file3), stdio: ["ignore", "pipe", "pipe"], timeout: PROBE_MS });
|
|
@@ -113053,7 +113062,7 @@ function createTail(log) {
|
|
|
113053
113062
|
// ../cli/package.json
|
|
113054
113063
|
var package_default = {
|
|
113055
113064
|
name: "wildcrane",
|
|
113056
|
-
version: "0.11.
|
|
113065
|
+
version: "0.11.42",
|
|
113057
113066
|
akbContract: 11,
|
|
113058
113067
|
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.",
|
|
113059
113068
|
keywords: [
|
|
@@ -115731,14 +115740,14 @@ var listed = (harness) => async () => (harness.models?.() ?? []).map((id) => ({
|
|
|
115731
115740
|
var readModels = (name) => (MODELS[name] ?? listed(HARNESSES2[name]))().catch(() => []);
|
|
115732
115741
|
var MODELS = {
|
|
115733
115742
|
"claude-code": async () => {
|
|
115734
|
-
const cached2 = claudeModels(path16.join(process.env.CLAUDE_CONFIG_DIR || path16.join(
|
|
115743
|
+
const cached2 = claudeModels(path16.join(process.env.CLAUDE_CONFIG_DIR || path16.join(os5.homedir(), ".claude"), "cache", "model-catalog"));
|
|
115735
115744
|
return cached2.length ? cached2 : [
|
|
115736
115745
|
{ id: "opus", name: "Opus" },
|
|
115737
115746
|
{ id: "sonnet", name: "Sonnet" },
|
|
115738
115747
|
{ id: "haiku", name: "Haiku" }
|
|
115739
115748
|
];
|
|
115740
115749
|
},
|
|
115741
|
-
codex: async () => codexModels(path16.join(process.env.CODEX_HOME || path16.join(
|
|
115750
|
+
codex: async () => codexModels(path16.join(process.env.CODEX_HOME || path16.join(os5.homedir(), ".codex"), "models_cache.json")),
|
|
115742
115751
|
opencode: async () => opencodeModels(await output(commandOf(HARNESSES2.opencode)[0], ["models"])),
|
|
115743
115752
|
cursor: () => cursorModels()
|
|
115744
115753
|
};
|
|
@@ -115750,7 +115759,7 @@ function cursorModels() {
|
|
|
115750
115759
|
return new Promise((resolve2) => {
|
|
115751
115760
|
let child;
|
|
115752
115761
|
try {
|
|
115753
|
-
const start = spawnable(argv[0], argv.slice(1), { cwd:
|
|
115762
|
+
const start = spawnable(argv[0], argv.slice(1), { cwd: os5.tmpdir(), stdio: ["pipe", "pipe", "ignore"], env: copyEnv(argv[0], withSystemProxy({ ...process.env, ...HARNESSES2.cursor.env() })) });
|
|
115754
115763
|
child = spawn2(start.command, start.args, start.options);
|
|
115755
115764
|
} catch {
|
|
115756
115765
|
return resolve2([]);
|
|
@@ -115763,7 +115772,7 @@ function cursorModels() {
|
|
|
115763
115772
|
const timer = setTimeout(() => done([]), MODELS_MS);
|
|
115764
115773
|
child.on("error", () => done([]));
|
|
115765
115774
|
const rpc = connect(child.stdout, child.stdin, (msg) => msg.id !== void 0 && rpc.refuse(msg.id, "no"), { jsonrpc: true });
|
|
115766
|
-
rpc.call("initialize", { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } }).then(() => rpc.call("session/new", { cwd:
|
|
115775
|
+
rpc.call("initialize", { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } }).then(() => rpc.call("session/new", { cwd: os5.tmpdir(), mcpServers: [] })).then((opened) => done(acpModels(opened))).catch(() => done([]));
|
|
115767
115776
|
});
|
|
115768
115777
|
}
|
|
115769
115778
|
function acpModels(opened) {
|
|
@@ -116007,7 +116016,7 @@ function connectCloudLive(handlers) {
|
|
|
116007
116016
|
|
|
116008
116017
|
// src/folders.ts
|
|
116009
116018
|
import fs13 from "node:fs";
|
|
116010
|
-
import
|
|
116019
|
+
import os6 from "node:os";
|
|
116011
116020
|
import path17 from "node:path";
|
|
116012
116021
|
var projectsFile = () => path17.join(runnerHome(), "projects.json");
|
|
116013
116022
|
function realpath(p2) {
|
|
@@ -116096,7 +116105,7 @@ var allow = (dir) => {
|
|
|
116096
116105
|
var disallow = (dir) => update2((list) => list.filter((p2) => p2 !== dir));
|
|
116097
116106
|
var SYSTEM_MAC = ["/System", "/Library", "/Applications", "/usr", "/bin", "/sbin", "/etc", "/var", "/private", "/opt", "/cores", "/dev"];
|
|
116098
116107
|
var SYSTEM_WIN = ["Windows", "Program Files", "Program Files (x86)", "ProgramData"];
|
|
116099
|
-
var here = () => ({ platform: process.platform, home:
|
|
116108
|
+
var here = () => ({ platform: process.platform, home: os6.homedir(), resolve: realpath });
|
|
116100
116109
|
function refusal(picked, where = here()) {
|
|
116101
116110
|
const win = where.platform === "win32";
|
|
116102
116111
|
const p2 = win ? path17.win32 : path17.posix;
|
|
@@ -119193,9 +119202,9 @@ async function pushAssets(ws, record, before) {
|
|
|
119193
119202
|
}
|
|
119194
119203
|
writeRecord(ws, record);
|
|
119195
119204
|
}
|
|
119196
|
-
|
|
119205
|
+
const sendResource = async (file4) => {
|
|
119197
119206
|
const key = canonical(file4);
|
|
119198
|
-
if (refs[key])
|
|
119207
|
+
if (refs[key]) return { ok: true, value: void 0 };
|
|
119199
119208
|
assetPath(ws, key, cardFile(ws));
|
|
119200
119209
|
const sendFile = async () => {
|
|
119201
119210
|
const previous = record.assets[key];
|
|
@@ -119267,7 +119276,22 @@ async function pushAssets(ws, record, before) {
|
|
|
119267
119276
|
console.error(`runner: asset upload pending: ${sent.error}`);
|
|
119268
119277
|
if (before[key]) refs[key] = before[key];
|
|
119269
119278
|
}
|
|
119270
|
-
|
|
119279
|
+
return { ok: true, value: void 0 };
|
|
119280
|
+
};
|
|
119281
|
+
const files = [...new Map(taskAssetFiles(ws).map((file4) => [canonical(file4), file4])).values()];
|
|
119282
|
+
let next = 0;
|
|
119283
|
+
let failure2;
|
|
119284
|
+
await Promise.all(Array.from({ length: Math.min(4, files.length) }, async () => {
|
|
119285
|
+
while (!failure2 && next < files.length) {
|
|
119286
|
+
try {
|
|
119287
|
+
const sent = await sendResource(files[next++]);
|
|
119288
|
+
if (!sent.ok) failure2 ??= sent;
|
|
119289
|
+
} catch (error) {
|
|
119290
|
+
failure2 ??= { ok: false, code: "bad_request", error: renderError(error) };
|
|
119291
|
+
}
|
|
119292
|
+
}
|
|
119293
|
+
}));
|
|
119294
|
+
if (failure2) return failure2;
|
|
119271
119295
|
} catch (error) {
|
|
119272
119296
|
return { ok: false, code: "bad_request", error: error instanceof Error ? error.message : String(error) };
|
|
119273
119297
|
}
|
package/dist/settings.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.49 — 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;
|
|
@@ -26670,10 +26670,19 @@ ${captureLines}` : capture.stack;
|
|
|
26670
26670
|
}
|
|
26671
26671
|
});
|
|
26672
26672
|
|
|
26673
|
+
// src/startup.ts
|
|
26674
|
+
import os from "node:os";
|
|
26675
|
+
try {
|
|
26676
|
+
process.cwd();
|
|
26677
|
+
} catch (error) {
|
|
26678
|
+
if (error.code !== "ENOENT") throw error;
|
|
26679
|
+
process.chdir(os.homedir());
|
|
26680
|
+
}
|
|
26681
|
+
|
|
26673
26682
|
// src/home.ts
|
|
26674
26683
|
import crypto from "node:crypto";
|
|
26675
26684
|
import fs from "node:fs";
|
|
26676
|
-
import
|
|
26685
|
+
import os2 from "node:os";
|
|
26677
26686
|
import path from "node:path";
|
|
26678
26687
|
import { parseEnv } from "node:util";
|
|
26679
26688
|
|
|
@@ -26749,7 +26758,7 @@ function followProxy(read2) {
|
|
|
26749
26758
|
|
|
26750
26759
|
// src/home.ts
|
|
26751
26760
|
function runnerHome() {
|
|
26752
|
-
return process.env.WILDCRANE_HOME || path.join(
|
|
26761
|
+
return process.env.WILDCRANE_HOME || path.join(os2.homedir(), ".wildcrane");
|
|
26753
26762
|
}
|
|
26754
26763
|
function useRunnerHome() {
|
|
26755
26764
|
process.env.AI4KANBAN_HOME = runnerHome();
|
|
@@ -26782,7 +26791,7 @@ function machineId() {
|
|
|
26782
26791
|
`);
|
|
26783
26792
|
return id;
|
|
26784
26793
|
}
|
|
26785
|
-
var machineName = () =>
|
|
26794
|
+
var machineName = () => os2.hostname().replace(/\.local$/, "");
|
|
26786
26795
|
|
|
26787
26796
|
// src/settings.ts
|
|
26788
26797
|
import crypto7 from "node:crypto";
|
|
@@ -26794,10 +26803,10 @@ import fs2 from "node:fs";
|
|
|
26794
26803
|
import path3 from "node:path";
|
|
26795
26804
|
|
|
26796
26805
|
// ../cli/src/lib/machine/home.ts
|
|
26797
|
-
import
|
|
26806
|
+
import os3 from "node:os";
|
|
26798
26807
|
import path2 from "node:path";
|
|
26799
26808
|
function machineHome() {
|
|
26800
|
-
return process.env.AI4KANBAN_HOME || path2.join(
|
|
26809
|
+
return process.env.AI4KANBAN_HOME || path2.join(os3.homedir(), ".ai4kanban");
|
|
26801
26810
|
}
|
|
26802
26811
|
|
|
26803
26812
|
// ../cli/src/lib/cloud/config.ts
|
|
@@ -26966,8 +26975,8 @@ function alive(pid) {
|
|
|
26966
26975
|
var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
26967
26976
|
|
|
26968
26977
|
// src/protocol.ts
|
|
26969
|
-
var VERSION = true ? "0.6.
|
|
26970
|
-
var AKB_VERSION = true ? "0.11.
|
|
26978
|
+
var VERSION = true ? "0.6.49" : "0.0.0";
|
|
26979
|
+
var AKB_VERSION = true ? "0.11.42" : "0.0.0";
|
|
26971
26980
|
|
|
26972
26981
|
// src/api.ts
|
|
26973
26982
|
var RUNTIMES = ["claude-code", "codex", "cursor", "opencode", "kimi", "dsh", "zcode", "grok"];
|
|
@@ -27933,7 +27942,7 @@ var flows = memoByFiles(sources, readFlows);
|
|
|
27933
27942
|
|
|
27934
27943
|
// src/folders.ts
|
|
27935
27944
|
import fs9 from "node:fs";
|
|
27936
|
-
import
|
|
27945
|
+
import os4 from "node:os";
|
|
27937
27946
|
import path11 from "node:path";
|
|
27938
27947
|
var projectsFile = () => path11.join(runnerHome(), "projects.json");
|
|
27939
27948
|
function realpath(p) {
|
|
@@ -28016,7 +28025,7 @@ var allow = (dir) => {
|
|
|
28016
28025
|
var disallow = (dir) => update((list) => list.filter((p) => p !== dir));
|
|
28017
28026
|
var SYSTEM_MAC = ["/System", "/Library", "/Applications", "/usr", "/bin", "/sbin", "/etc", "/var", "/private", "/opt", "/cores", "/dev"];
|
|
28018
28027
|
var SYSTEM_WIN = ["Windows", "Program Files", "Program Files (x86)", "ProgramData"];
|
|
28019
|
-
var here = () => ({ platform: process.platform, home:
|
|
28028
|
+
var here = () => ({ platform: process.platform, home: os4.homedir(), resolve: realpath });
|
|
28020
28029
|
function refusal(picked, where = here()) {
|
|
28021
28030
|
const win = where.platform === "win32";
|
|
28022
28031
|
const p = win ? path11.win32 : path11.posix;
|
|
@@ -28163,7 +28172,7 @@ function installKanbanSkill(dir) {
|
|
|
28163
28172
|
// src/runtimes.ts
|
|
28164
28173
|
import { spawn as spawn2 } from "node:child_process";
|
|
28165
28174
|
import fs18 from "node:fs";
|
|
28166
|
-
import
|
|
28175
|
+
import os6 from "node:os";
|
|
28167
28176
|
import path21 from "node:path";
|
|
28168
28177
|
|
|
28169
28178
|
// ../cli/src/lib/agent/argv.ts
|
|
@@ -28315,7 +28324,7 @@ import path18 from "node:path";
|
|
|
28315
28324
|
// ../cli/src/lib/agent/locate.ts
|
|
28316
28325
|
import { spawn, spawnSync as spawnSync2 } from "node:child_process";
|
|
28317
28326
|
import fs14 from "node:fs";
|
|
28318
|
-
import
|
|
28327
|
+
import os5 from "node:os";
|
|
28319
28328
|
import path16 from "node:path";
|
|
28320
28329
|
|
|
28321
28330
|
// ../cli/src/lib/agent/installed.ts
|
|
@@ -28455,7 +28464,7 @@ function latestIn(parent, tail = "") {
|
|
|
28455
28464
|
}
|
|
28456
28465
|
var env = (name) => process.env[name]?.trim() ?? "";
|
|
28457
28466
|
function commonDirs() {
|
|
28458
|
-
const home3 =
|
|
28467
|
+
const home3 = os5.homedir();
|
|
28459
28468
|
const under = (...parts) => path16.join(home3, ...parts);
|
|
28460
28469
|
const nodes = (root2, tail = []) => root2 ? folders(root2).map((version) => path16.join(root2, version, ...tail)) : [];
|
|
28461
28470
|
if (WINDOWS2) {
|
|
@@ -28561,7 +28570,7 @@ function copyEnv(file2, given = process.env) {
|
|
|
28561
28570
|
if (!path16.isAbsolute(file2)) return given;
|
|
28562
28571
|
return { ...given, PATH: [path16.dirname(file2), given.PATH].filter(Boolean).join(path16.delimiter) };
|
|
28563
28572
|
}
|
|
28564
|
-
var probeOptions = (file2) => ({ cwd:
|
|
28573
|
+
var probeOptions = (file2) => ({ cwd: os5.tmpdir(), env: copyEnv(file2), windowsHide: true, shell: false });
|
|
28565
28574
|
function probe(file2) {
|
|
28566
28575
|
const key = keyOf(file2);
|
|
28567
28576
|
const start = spawnable(file2, ["--version"], { ...probeOptions(file2), stdio: ["ignore", "pipe", "pipe"], timeout: PROBE_MS });
|
|
@@ -29756,7 +29765,7 @@ function createTail(log) {
|
|
|
29756
29765
|
// ../cli/package.json
|
|
29757
29766
|
var package_default = {
|
|
29758
29767
|
name: "wildcrane",
|
|
29759
|
-
version: "0.11.
|
|
29768
|
+
version: "0.11.42",
|
|
29760
29769
|
akbContract: 11,
|
|
29761
29770
|
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.",
|
|
29762
29771
|
keywords: [
|
|
@@ -31796,14 +31805,14 @@ var listed = (harness) => async () => (harness.models?.() ?? []).map((id) => ({
|
|
|
31796
31805
|
var readModels = (name) => (MODELS[name] ?? listed(HARNESSES2[name]))().catch(() => []);
|
|
31797
31806
|
var MODELS = {
|
|
31798
31807
|
"claude-code": async () => {
|
|
31799
|
-
const cached2 = claudeModels(path21.join(process.env.CLAUDE_CONFIG_DIR || path21.join(
|
|
31808
|
+
const cached2 = claudeModels(path21.join(process.env.CLAUDE_CONFIG_DIR || path21.join(os6.homedir(), ".claude"), "cache", "model-catalog"));
|
|
31800
31809
|
return cached2.length ? cached2 : [
|
|
31801
31810
|
{ id: "opus", name: "Opus" },
|
|
31802
31811
|
{ id: "sonnet", name: "Sonnet" },
|
|
31803
31812
|
{ id: "haiku", name: "Haiku" }
|
|
31804
31813
|
];
|
|
31805
31814
|
},
|
|
31806
|
-
codex: async () => codexModels(path21.join(process.env.CODEX_HOME || path21.join(
|
|
31815
|
+
codex: async () => codexModels(path21.join(process.env.CODEX_HOME || path21.join(os6.homedir(), ".codex"), "models_cache.json")),
|
|
31807
31816
|
opencode: async () => opencodeModels(await output(commandOf(HARNESSES2.opencode)[0], ["models"])),
|
|
31808
31817
|
cursor: () => cursorModels()
|
|
31809
31818
|
};
|
|
@@ -31815,7 +31824,7 @@ function cursorModels() {
|
|
|
31815
31824
|
return new Promise((resolve2) => {
|
|
31816
31825
|
let child;
|
|
31817
31826
|
try {
|
|
31818
|
-
const start = spawnable(argv[0], argv.slice(1), { cwd:
|
|
31827
|
+
const start = spawnable(argv[0], argv.slice(1), { cwd: os6.tmpdir(), stdio: ["pipe", "pipe", "ignore"], env: copyEnv(argv[0], withSystemProxy({ ...process.env, ...HARNESSES2.cursor.env() })) });
|
|
31819
31828
|
child = spawn2(start.command, start.args, start.options);
|
|
31820
31829
|
} catch {
|
|
31821
31830
|
return resolve2([]);
|
|
@@ -31828,7 +31837,7 @@ function cursorModels() {
|
|
|
31828
31837
|
const timer = setTimeout(() => done([]), MODELS_MS);
|
|
31829
31838
|
child.on("error", () => done([]));
|
|
31830
31839
|
const rpc = connect(child.stdout, child.stdin, (msg) => msg.id !== void 0 && rpc.refuse(msg.id, "no"), { jsonrpc: true });
|
|
31831
|
-
rpc.call("initialize", { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } }).then(() => rpc.call("session/new", { cwd:
|
|
31840
|
+
rpc.call("initialize", { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } }).then(() => rpc.call("session/new", { cwd: os6.tmpdir(), mcpServers: [] })).then((opened) => done(acpModels(opened))).catch(() => done([]));
|
|
31832
31841
|
});
|
|
31833
31842
|
}
|
|
31834
31843
|
function acpModels(opened) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wildcrane-runner",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.49",
|
|
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/",
|