wildcrane-runner 0.6.31 → 0.6.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // ai4kanban 0.11.28 — built by runner/scripts/build.mjs. Do not edit.
2
+ // ai4kanban 0.11.29 — 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;
@@ -3243,7 +3243,7 @@ var init_package = __esm({
3243
3243
  "../cli/package.json"() {
3244
3244
  package_default = {
3245
3245
  name: "wildcrane",
3246
- version: "0.11.28",
3246
+ version: "0.11.29",
3247
3247
  akbContract: 7,
3248
3248
  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.",
3249
3249
  keywords: [
@@ -15217,6 +15217,14 @@ var init_Workflow = __esm({
15217
15217
  }
15218
15218
  });
15219
15219
 
15220
+ // ../cli/src/components/shared.md
15221
+ var shared_default;
15222
+ var init_shared = __esm({
15223
+ "../cli/src/components/shared.md"() {
15224
+ shared_default = "Tags draw only in the card body; in any other Markdown file, show pictures as plain Markdown images with paths relative to that file.\n";
15225
+ }
15226
+ });
15227
+
15220
15228
  // ../cli/src/lib/components.ts
15221
15229
  function agentComponents(names3, documents = DOCUMENTS) {
15222
15230
  const docs = /* @__PURE__ */ new Map();
@@ -15251,12 +15259,13 @@ var init_components = __esm({
15251
15259
  init_Compare();
15252
15260
  init_Storyboard();
15253
15261
  init_Workflow();
15262
+ init_shared();
15254
15263
  init_agents();
15255
15264
  init_io();
15256
15265
  init_paths();
15257
15266
  init_workflows();
15258
15267
  DOCUMENTS = { Asset: Asset_default, Compare: Compare_default, Storyboard: Storyboard_default, Workflow: Workflow_default };
15259
- componentDocsText = (docs) => docs.map((doc) => doc.text.trim()).join("\n\n");
15268
+ componentDocsText = (docs) => docs.length ? [shared_default, ...docs.map((doc) => doc.text)].map((text5) => text5.trim()).join("\n\n") : "";
15260
15269
  }
15261
15270
  });
15262
15271
 
@@ -21481,7 +21490,7 @@ function ordered(into) {
21481
21490
  };
21482
21491
  }
21483
21492
  var HELP_WIDTH, collect2;
21484
- var init_shared = __esm({
21493
+ var init_shared2 = __esm({
21485
21494
  "../cli/src/lib/cli/shared.ts"() {
21486
21495
  "use strict";
21487
21496
  init_esm();
@@ -21702,7 +21711,7 @@ var init_board2 = __esm({
21702
21711
  init_board_cli();
21703
21712
  init_cloud_workflows();
21704
21713
  init_validate();
21705
- init_shared();
21714
+ init_shared2();
21706
21715
  init_esm();
21707
21716
  init_tasks();
21708
21717
  init_card();
@@ -21804,7 +21813,7 @@ async function runBoard(argv, options = {}) {
21804
21813
  onAnswer
21805
21814
  } = options;
21806
21815
  const { buildBoardProgram: buildBoardProgram2 } = await Promise.resolve().then(() => (init_board2(), board_exports));
21807
- const { runProgram: runProgram2 } = await Promise.resolve().then(() => (init_shared(), shared_exports));
21816
+ const { runProgram: runProgram2 } = await Promise.resolve().then(() => (init_shared2(), shared_exports));
21808
21817
  return runProgram2(buildBoardProgram2({ program: program2, cwd, installHint, version, onAnswer }), argv, program2);
21809
21818
  }
21810
21819
  function rawArgv(argv) {
@@ -21919,7 +21928,7 @@ var init_discuss_goal = __esm({
21919
21928
  var follow_up_default;
21920
21929
  var init_follow_up = __esm({
21921
21930
  "../cli/src/guide/follow-up.md"() {
21922
- follow_up_default = '# Handle follow-up work\n\nUse when planning or implementation discovers additional work.\n\n- **Current task**: finish required work on this card; queue independent follow-ups in triage, then resume the original task.\n- **Drop what was turned down**: queue nothing that\n `docs/kanban/memory/agents/planner/rejected.md` or\n `docs/kanban/memory/agents/planner/*/rejected.md` turns down.\n- **Existing card**: when only another open card needs changing, run `akb card revise <id> "<the change and why>"`.\n- **Queue it**: use the command below; skip an item the command reports as already there.\n- **Workflow**: use the source card\'s `workflow:`, or the id from `akb workflow list` that fits the work when it has none.\n\n```text\nakb triage add --title "<one line>" --slug <short-english-slug> --source "#<id>" --workflow <workflow> --text "<body>"\n```\n\n## Write the item\n\n- **Reader**: someone who has read neither the original card nor the code can decide in ten seconds whether the work is worth doing.\n- **Order**: first explain what happened and what the user runs into, then say what the work would do.\n- **Plain words**: keep file, function and field names, card ids, agent names and evidence trails out of the title and body.\n';
21931
+ follow_up_default = '# Handle follow-up work\n\nUse when planning or implementation discovers additional work.\n\n- **Current task**: finish required work on this card; queue independent follow-ups in triage, then resume the original task.\n- **Drop what was turned down**: queue nothing that\n `docs/kanban/memory/agents/planner/rejected.md` or\n `docs/kanban/memory/agents/planner/*/rejected.md` turns down.\n- **Existing card**: when only another open card needs changing, run `akb card revise <id> "<the change and why>"`.\n- **Queue it**: use the command below; skip an item the command reports as already there.\n- **Workflow**: use the source card\'s `workflow:`, or the id from `akb workflow list` that fits the work when it has none.\n\n```text\nakb triage add --title "<one line>" --slug <short-english-slug> --source "#<id>" --workflow <workflow> --text "<body>"\n```\n\n## Write the item\n\nWrite each item\'s title and body in the **Goal format** of `akb guide discuss-goal`.\n';
21923
21932
  }
21924
21933
  });
21925
21934
 
@@ -21975,7 +21984,7 @@ var init_refine = __esm({
21975
21984
  var reflect_default;
21976
21985
  var init_reflect = __esm({
21977
21986
  "../cli/src/guide/reflect.md"() {
21978
- reflect_default = '# Reflect on completed cards\n\n## Read\n\nRead each given `<card>` in full and check its own `shipped` content; keep cards separate.\nFind needs the work left behind or revealed, and verify them in the project. Proposing nothing is fine.\n\n## Filter\n\n- **Duplicates**: check `akb raw list` and `akb triage check <source-id>`; propose shared work only once.\n- **Exclude**: skip unsupported guesses, work covered by `<scheduled-agents>`, work rejected in `docs/kanban/memory/agents/planner/rejected.md` or its module folders, and calls the user reversed, in any `redesign.md` under `docs/kanban/memory/agents/` or under a card\'s `Overruled by the user`.\n- **Existing cards**: when shipped work invalidates an open card\'s plan, run `akb card revise <id> "<the change and why>"` instead of proposing an item.\n\n## Write\n\n- **Reader**: someone who has read neither the original card nor the code can decide in ten seconds whether the work is worth doing.\n- **Order**: first explain what happened and what the user runs into, then say what the work would do.\n- **Plain words**: keep file, function and field names, card ids, agent names and evidence trails out of the title and body.\n\nWrite the body to a temporary Markdown file and end with the source card\'s archive path.\nWrite one triage item per proposal. Exploratory ideas are welcome; identify small chores as such.\nUse the source card\'s `workflow:`, or the id from `akb workflow list` that fits the work when it has none.\n\n```text\nakb triage add --title "<one line>" --slug <short-english-slug> --source "#<id>" --workflow <workflow> --file <body.md>\n```\n\nBriefly report what you proposed and what you skipped, with reasons.\n';
21987
+ reflect_default = '# Reflect on completed cards\n\n## Read\n\nRead each given `<card>` in full and check its own `shipped` content; keep cards separate.\nFind needs the work left behind or revealed, and verify them in the project. Proposing nothing is fine.\n\n## Filter\n\n- **Duplicates**: check `akb raw list` and `akb triage check <source-id>`; propose shared work only once.\n- **Exclude**: skip unsupported guesses, work covered by `<scheduled-agents>`, work rejected in `docs/kanban/memory/agents/planner/rejected.md` or its module folders, and calls the user reversed, in any `redesign.md` under `docs/kanban/memory/agents/` or under a card\'s `Overruled by the user`.\n- **Existing cards**: when shipped work invalidates an open card\'s plan, run `akb card revise <id> "<the change and why>"` instead of proposing an item.\n\n## Write\n\nWrite each item\'s title and body in the **Goal format** of `akb guide discuss-goal`; write the body to a temporary Markdown file and end it with the source card\'s archive path.\nWrite one triage item per proposal. Exploratory ideas are welcome; identify small chores as such.\nUse the source card\'s `workflow:`, or the id from `akb workflow list` that fits the work when it has none.\n\n```text\nakb triage add --title "<one line>" --slug <short-english-slug> --source "#<id>" --workflow <workflow> --file <body.md>\n```\n\nBriefly report what you proposed and what you skipped, with reasons.\n';
21979
21988
  }
21980
21989
  });
21981
21990
 
@@ -111148,7 +111157,7 @@ function cmdTelemetry(args, program2) {
111148
111157
  }
111149
111158
 
111150
111159
  // ../cli/src/lib/cli/agent.ts
111151
- init_shared();
111160
+ init_shared2();
111152
111161
  async function onBoard2(cmd, cli, work) {
111153
111162
  const ctx = ctxOf(cmd, cli.program);
111154
111163
  await runAction(ctx, {}, async () => {
@@ -111781,7 +111790,7 @@ function isOlder(a2, b2) {
111781
111790
  // ../cli/src/lib/cli/setup.ts
111782
111791
  init_io();
111783
111792
  init_version();
111784
- init_shared();
111793
+ init_shared2();
111785
111794
  var spelled = (program2) => program2 === "akb" ? "" : `
111786
111795
  This copy isn't on your PATH as \`akb\` \u2014 every \`akb\` below is \`${program2}\` here.
111787
111796
  `;
@@ -111806,7 +111815,7 @@ function declareSetup(program2, cli) {
111806
111815
 
111807
111816
  // ../cli/src/lib/cli/akb.ts
111808
111817
  init_io();
111809
- init_shared();
111818
+ init_shared2();
111810
111819
  function buildAkbProgram(cli) {
111811
111820
  const program2 = withShared(newCommand(cli.program));
111812
111821
  program2.description("set up a board, and put an agent to work on it.").helpCommand("help [command]", "this list, or one command in full");
@@ -111823,7 +111832,7 @@ function buildAkbProgram(cli) {
111823
111832
  }
111824
111833
 
111825
111834
  // ../cli/src/lib/agent-cli.ts
111826
- init_shared();
111835
+ init_shared2();
111827
111836
  init_usage();
111828
111837
  var WATCH = "__watch";
111829
111838
  async function runAgent2(argv, options = {}) {
@@ -1 +1 @@
1
- {"name":"wildcrane","version":"0.11.28","akbContract":7,"type":"module","private":true}
1
+ {"name":"wildcrane","version":"0.11.29","akbContract":7,"type":"module","private":true}
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.31 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.32 — 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.31 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.32 — 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;
@@ -26889,7 +26889,7 @@ function saveAlphaUpdates(value) {
26889
26889
  }
26890
26890
 
26891
26891
  // src/protocol.ts
26892
- var VERSION = true ? "0.6.31" : "0.0.0";
26892
+ var VERSION = true ? "0.6.32" : "0.0.0";
26893
26893
  var EXIT_REFUSED = 10;
26894
26894
  var EXIT_OUTDATED = 11;
26895
26895
  var EXIT_UPDATE = 12;
@@ -29377,7 +29377,7 @@ function createTail(log) {
29377
29377
  // ../cli/package.json
29378
29378
  var package_default = {
29379
29379
  name: "wildcrane",
29380
- version: "0.11.28",
29380
+ version: "0.11.29",
29381
29381
  akbContract: 7,
29382
29382
  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.",
29383
29383
  keywords: [
package/dist/runner.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.31 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.32 — 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;
@@ -111400,8 +111400,8 @@ function status(line) {
111400
111400
  }
111401
111401
 
111402
111402
  // src/protocol.ts
111403
- var VERSION = true ? "0.6.31" : "0.0.0";
111404
- var AKB_VERSION = true ? "0.11.28" : "0.0.0";
111403
+ var VERSION = true ? "0.6.32" : "0.0.0";
111404
+ var AKB_VERSION = true ? "0.11.29" : "0.0.0";
111405
111405
  var AKB_CONTRACT = true ? 7 : 0;
111406
111406
  var EXIT_REFUSED = 10;
111407
111407
  var EXIT_OUTDATED = 11;
@@ -112926,7 +112926,7 @@ function createTail(log) {
112926
112926
  // ../cli/package.json
112927
112927
  var package_default = {
112928
112928
  name: "wildcrane",
112929
- version: "0.11.28",
112929
+ version: "0.11.29",
112930
112930
  akbContract: 7,
112931
112931
  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.",
112932
112932
  keywords: [
@@ -119274,12 +119274,13 @@ function matcher(entry) {
119274
119274
 
119275
119275
  // src/task-folder.ts
119276
119276
  var TASK_ID = /^[\w-]{1,100}$/;
119277
+ var NO_FOLDER = "This project has no folder on this computer. Link one, then try again.";
119277
119278
  var EMPTY = { assets: {} };
119278
119279
  function openTaskFolder(job, projectDir2) {
119279
119280
  const task = job.task ?? "";
119280
119281
  if (!TASK_ID.test(task)) throw new Error("This job names no task.");
119281
119282
  if (!job.project) throw new Error("This job names no project.");
119282
- projectDir2 ??= openCached(job.project);
119283
+ if (!projectDir2) throw new Error(NO_FOLDER);
119283
119284
  keepOutOfGit(projectDir2);
119284
119285
  markUsed(projectDir2);
119285
119286
  const board = path35.join(projectDir2, ".akb", "kanban");
@@ -119327,11 +119328,6 @@ function inFolder(dir, work) {
119327
119328
  return next;
119328
119329
  }
119329
119330
  var safe2 = (name) => name.replace(/[^\w.-]/g, "_") || "default";
119330
- function openCached(project) {
119331
- const dir = cacheDir(project);
119332
- fs31.mkdirSync(dir, { recursive: true });
119333
- return dir;
119334
- }
119335
119331
  var SKILL_FOLDERS = [".claude/skills/kanban", ".agents/skills/kanban"];
119336
119332
  var SKILL_ROOTS = [".claude/skills", ".agents/skills"];
119337
119333
  function keepOutOfGit(dir, folders2 = SKILL_FOLDERS) {
@@ -119559,7 +119555,7 @@ function assetPath(ws, name, owner) {
119559
119555
  if (!roots.some((root3) => inside(file2, root3))) throw new Error(`outside the board: ${name}`);
119560
119556
  let existing = file2;
119561
119557
  while (!fs31.existsSync(existing) && path35.dirname(existing) !== existing) existing = path35.dirname(existing);
119562
- const real = fs31.realpathSync(existing);
119558
+ const real = path35.join(fs31.realpathSync(existing), path35.relative(existing, file2));
119563
119559
  let stateParent = state;
119564
119560
  while (stateParent && !fs31.existsSync(stateParent) && path35.dirname(stateParent) !== stateParent) stateParent = path35.dirname(stateParent);
119565
119561
  const realState = state && stateParent ? path35.resolve(fs31.realpathSync(stateParent), path35.relative(stateParent, state)) : null;
@@ -119711,7 +119707,13 @@ async function pullAssets(ws, record, assets) {
119711
119707
  if (held4?.artifact === ref.artifact) out[name] = held4;
119712
119708
  continue;
119713
119709
  }
119714
- const target = assetPath(ws, name, file2);
119710
+ let target;
119711
+ try {
119712
+ target = assetPath(ws, name, file2);
119713
+ } catch {
119714
+ if (held4) out[name] = held4;
119715
+ continue;
119716
+ }
119715
119717
  if (!target) continue;
119716
119718
  let kind = held4?.artifact === ref.artifact ? held4.kind : void 0;
119717
119719
  let version = ref.version;
@@ -119719,6 +119721,10 @@ async function pullAssets(ws, record, assets) {
119719
119721
  const current2 = held4?.artifact === ref.artifact && held4.version === version && localHash === (held4.localHash ?? held4.hash);
119720
119722
  if (version === void 0 || !kind || !current2 && kind !== "html") {
119721
119723
  const latest = await readArtifact(ref.artifact);
119724
+ if (!latest.ok && latest.code === "not_found") {
119725
+ if (held4) out[name] = held4;
119726
+ continue;
119727
+ }
119722
119728
  if (!latest.ok) return latest;
119723
119729
  version ??= latest.value.latest_version ?? 0;
119724
119730
  kind = latest.value.type;
@@ -119733,6 +119739,10 @@ async function pullAssets(ws, record, assets) {
119733
119739
  continue;
119734
119740
  }
119735
119741
  const bytes2 = await readAsset(ref.artifact, version);
119742
+ if (!bytes2.ok && bytes2.code === "not_found") {
119743
+ if (held4) out[name] = held4;
119744
+ continue;
119745
+ }
119736
119746
  if (!bytes2.ok) return bytes2;
119737
119747
  let local = bytes2.value;
119738
119748
  const dependencies = [];
@@ -119753,7 +119763,11 @@ async function pullAssets(ws, record, assets) {
119753
119763
  const restored = mapReferences(manifest, data, (src, found) => {
119754
119764
  const name2 = Object.entries(assets).find(([, r2]) => r2.artifact === src)?.[0];
119755
119765
  if (!name2) return src;
119756
- const child = assetPath(ws, name2, file2);
119766
+ let child = null;
119767
+ try {
119768
+ child = assetPath(ws, name2, file2);
119769
+ } catch {
119770
+ }
119757
119771
  if (!child) return src;
119758
119772
  dependencies.push(name2);
119759
119773
  const back = !found.text && /^\.(assets|mockups)\//.test(name2) ? name2 : path35.relative(path35.dirname(target), child).split(path35.sep).join("/");
@@ -120113,7 +120127,7 @@ var BUSY_MS = 3e4;
120113
120127
  function keptFolders() {
120114
120128
  let cached2 = [];
120115
120129
  try {
120116
- cached2 = fs32.readdirSync(cacheRoot()).map((name) => path36.join(cacheRoot(), name));
120130
+ cached2 = fs32.readdirSync(cacheRoot()).map((name) => fs32.realpathSync(path36.join(cacheRoot(), name)));
120117
120131
  } catch {
120118
120132
  }
120119
120133
  return [.../* @__PURE__ */ new Set([...allowedProjects(), ...cached2])].flatMap((dir) => [keptBoard(dir)].filter((ws) => !!ws));
@@ -122017,7 +122031,7 @@ async function runClaimed(job, deps, track, keep2, lease, replyStream) {
122017
122031
  if (job.test) return runTest(job, deps, lease);
122018
122032
  if (job.agent) return runAgentJob(job, deps, track, keep2, lease, checkpoint, persist);
122019
122033
  const task = job.task ?? job.review?.tasks[0] ?? null;
122020
- const folder = task && !job.projectDir ? null : folderFor(job);
122034
+ const folder = task && !job.projectDir ? { refused: NO_FOLDER } : folderFor(job);
122021
122035
  if (folder && "refused" in folder) {
122022
122036
  return finishClaimed("failed", folder.refused);
122023
122037
  }
package/dist/settings.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.31 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.32 — 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;
@@ -26966,7 +26966,7 @@ function alive(pid) {
26966
26966
  var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
26967
26967
 
26968
26968
  // src/protocol.ts
26969
- var VERSION = true ? "0.6.31" : "0.0.0";
26969
+ var VERSION = true ? "0.6.32" : "0.0.0";
26970
26970
 
26971
26971
  // src/api.ts
26972
26972
  var RUNTIMES = ["claude-code", "codex", "cursor", "opencode", "kimi", "dsh", "zcode", "grok"];
@@ -28715,7 +28715,7 @@ function createTail(log) {
28715
28715
  // ../cli/package.json
28716
28716
  var package_default = {
28717
28717
  name: "wildcrane",
28718
- version: "0.11.28",
28718
+ version: "0.11.29",
28719
28719
  akbContract: 7,
28720
28720
  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.",
28721
28721
  keywords: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildcrane-runner",
3
- "version": "0.6.31",
3
+ "version": "0.6.32",
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": "FSL-1.1-ALv2",
6
6
  "homepage": "https://wildcrane.ai/",