wildcrane-runner 0.6.111 → 0.6.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // ai4kanban 0.11.91 — built by runner/scripts/build.mjs. Do not edit.
2
+ // ai4kanban 0.11.92 — 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;
@@ -1799,23 +1799,27 @@ function retryBudget(file2, initialAttempt = 1) {
1799
1799
  try {
1800
1800
  const saved = fs14.readFileSync(file2, "utf8");
1801
1801
  const used = Number(saved);
1802
- return /^\d+$/.test(saved) && Number.isSafeInteger(used) && used <= MAX_RETRY_ATTEMPTS ? Math.max(used + 1, initialAttempt) : MAX_RETRY_ATTEMPTS + 1;
1802
+ return /^\d+$/.test(saved) && Number.isSafeInteger(used) && used <= MAX_RETRY_ATTEMPTS ? used + 1 : MAX_RETRY_ATTEMPTS + 1;
1803
1803
  } catch (error62) {
1804
- if (error62.code === "ENOENT") return initialAttempt;
1804
+ if (error62.code === "ENOENT") return 1;
1805
1805
  throw error62;
1806
1806
  }
1807
1807
  };
1808
- const take = () => {
1808
+ const update2 = (advance) => {
1809
1809
  fs14.mkdirSync(path15.dirname(file2), { recursive: true, mode: 448 });
1810
1810
  return withLock(file2 + ".lock", "recording a task retry", () => {
1811
- const next = attempt2() + 1;
1811
+ const current = attempt2();
1812
+ const next = advance(current);
1812
1813
  if (next > MAX_RETRY_ATTEMPTS + 1) return;
1813
- fs14.writeFileSync(file2 + ".tmp", String(next - 1), { mode: 384 });
1814
- fs14.renameSync(file2 + ".tmp", file2);
1814
+ if (next !== current) {
1815
+ fs14.writeFileSync(file2 + ".tmp", String(next - 1), { mode: 384 });
1816
+ fs14.renameSync(file2 + ".tmp", file2);
1817
+ }
1815
1818
  return next;
1816
1819
  });
1817
1820
  };
1818
- return { attempt: attempt2, take };
1821
+ if (initialAttempt > 1) update2((current) => Math.max(current, initialAttempt));
1822
+ return { attempt: attempt2, take: () => update2((current) => current + 1) };
1819
1823
  }
1820
1824
  function retryRecord(failure2, attempt2, runtime, sessionAction) {
1821
1825
  const { source: source2, summary: summary2, detail, code } = failure2;
@@ -40623,7 +40627,7 @@ var init_package = __esm({
40623
40627
  "../cli/package.json"() {
40624
40628
  package_default = {
40625
40629
  name: "wildcrane",
40626
- version: "0.11.91",
40630
+ version: "0.11.92",
40627
40631
  akbContract: 30,
40628
40632
  canonicalCommands: true,
40629
40633
  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.",
@@ -63770,7 +63774,7 @@ var init_refine = __esm({
63770
63774
  var reflect_default;
63771
63775
  var init_reflect = __esm({
63772
63776
  "../cli/src/guide/reflect.md"() {
63773
- 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 board list` and `akb triage check <source-id>`; propose shared work only once.\n- **Exclude**: skip unsupported guesses, 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 task 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 `studio:`, or the id from `akb studio list` that fits the work when it has none.\n\n```text\nakb triage add --title "<one line>" --slug <short-english-slug> --source "#<id>" --studio <studio> --file <body.md>\n```\n\nBriefly report what you proposed and what you skipped, with reasons.\n';
63777
+ 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.\n\n## Filter\n\n- **Evidence**: verify each candidate against the current project and skip resolved issues or unsupported guesses.\n- **Impact**: skip minor or low-impact work and propose only issues with concrete impact that warrant a separate task.\n- **Duplicates**: check open tasks (`akb board list`), pending items in `docs/kanban/triage/`, and the rest of this batch; skip work already covered. If shipped work invalidates an open task\'s plan, run `akb task revise <id> "<the change and why>"`.\n- **Prior decisions**: skip 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\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, with its evidence and impact. Submit nothing if no candidate qualifies.\nUse the source card\'s `studio:`, or the id from `akb studio list` that fits the work when it has none.\n\n```text\nakb triage add --title "<one line>" --slug <short-english-slug> --source "#<id>" --studio <studio> --file <body.md>\n```\n\nBriefly report what you proposed and what you skipped, with reasons.\n';
63774
63778
  }
63775
63779
  });
63776
63780
 
@@ -1 +1 @@
1
- {"name":"wildcrane","version":"0.11.91","akbContract":30,"type":"module","private":true}
1
+ {"name":"wildcrane","version":"0.11.92","akbContract":30,"type":"module","private":true}
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.111 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.112 — built by runner/scripts/build.mjs. Do not edit.
2
2
  import { createRequire as __ai4kanbanRequire } from 'node:module'
3
3
  const require = __ai4kanbanRequire(import.meta.url)
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.111 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.112 — built by runner/scripts/build.mjs. Do not edit.
2
2
  import { createRequire as __ai4kanbanRequire } from 'node:module'
3
3
  const require = __ai4kanbanRequire(import.meta.url)
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.111 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.112 — built by runner/scripts/build.mjs. Do not edit.
2
2
  import { createRequire as __ai4kanbanRequire } from 'node:module'
3
3
  const require = __ai4kanbanRequire(import.meta.url)
4
4
  var __create = Object.create;