wildcrane 0.11.53 → 0.11.54

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.
Files changed (2) hide show
  1. package/dist/kanban.mjs +2 -27
  2. package/package.json +1 -1
package/dist/kanban.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // ai4kanban 0.11.53 — built from the CLI's TypeScript sources by cli/scripts/build.mjs.
2
+ // ai4kanban 0.11.54 — built from the CLI's TypeScript sources by cli/scripts/build.mjs.
3
3
  // Do not edit: every change belongs in cli/src/, and a build overwrites this file.
4
4
  import { createRequire as __ai4kanbanRequire } from 'node:module'
5
5
  const require = __ai4kanbanRequire(import.meta.url)
@@ -4206,7 +4206,7 @@ var init_package = __esm({
4206
4206
  "package.json"() {
4207
4207
  package_default = {
4208
4208
  name: "wildcrane",
4209
- version: "0.11.53",
4209
+ version: "0.11.54",
4210
4210
  akbContract: 15,
4211
4211
  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.",
4212
4212
  keywords: [
@@ -18836,18 +18836,6 @@ ${stage.artifact?.body ?? ""}`),
18836
18836
  `Write only the current work in your existing section. Submit it with: ${command} raw previews ${name} ${id} --submit --stage ${current.id}. Stop after success.`
18837
18837
  ].join("\n\n");
18838
18838
  }
18839
- function previewBlocker(id) {
18840
- const card = findCard(id);
18841
- if (!card) return null;
18842
- const meta = cardMeta(id);
18843
- const flow = studioFor(card.studio);
18844
- const required = cardStages(meta, flow).slice(0, cardStage(meta, flow)).flat();
18845
- for (const name of required) {
18846
- const progress = freezePreviewProgress(id, name);
18847
- if (progress && !previewReady(progress)) return `#${id}: ${name} / ${progress.currentStageId ?? "stage selection"} is unfinished. Review that preview before approving or implementing.`;
18848
- }
18849
- return null;
18850
- }
18851
18839
  function previewRun(id, name) {
18852
18840
  const run3 = readRuns().find((run4) => run4.sessionId === insideRun());
18853
18841
  if (!run3 || run3.status !== "running" || run3.action !== "spec" || run3.specAgent !== name || run3.cardId !== id) throw Error("Only the active preview agent can select or submit its stages.");
@@ -18956,8 +18944,6 @@ function approvalRequest(req) {
18956
18944
  const id = req.id;
18957
18945
  const card = id === void 0 ? null : findCard(id);
18958
18946
  if (!card) return { error: `task #${id} does not exist` };
18959
- const blocked = previewBlocker(card.id);
18960
- if (blocked) return { error: blocked };
18961
18947
  if (card.questions.length) return { error: `#${card.id} has open questions \u2014 answer them before approving it.` };
18962
18948
  if (readRuns().some((r) => r.status === "running" && r.cardId === card.id && holdsCard(r.action))) {
18963
18949
  return { error: `#${card.id} has a run in flight \u2014 approve once it ends.` };
@@ -18982,7 +18968,6 @@ function advancePhase(id) {
18982
18968
  var init_approve = __esm({
18983
18969
  "src/lib/agent/approve.ts"() {
18984
18970
  "use strict";
18985
- init_preview_progress();
18986
18971
  init_cards();
18987
18972
  init_frontmatter();
18988
18973
  init_read();
@@ -19000,10 +18985,6 @@ async function startRun(req) {
19000
18985
  const cardId2 = Number.isInteger(req.id) ? req.id : null;
19001
18986
  const short2 = studioRefusal(req) ?? await scheduledRefusal(req);
19002
18987
  if (short2) return short2;
19003
- if (cardId2 !== null && ["implement", "approve", "archive"].includes(req.action)) {
19004
- const blocked = previewBlocker(cardId2);
19005
- if (blocked) return { error: blocked };
19006
- }
19007
18988
  const delivery = req.action === "implement" ? deliveryFor(req) : void 0;
19008
18989
  if (delivery && req.session !== "new") {
19009
18990
  const previous = readRuns().filter((r) => r.deliveryId === delivery.deliveryId && r.action === "implement").reverse().sort((a, b) => b.startedAt - a.startedAt)[0];
@@ -19088,7 +19069,6 @@ async function startResume(id, options) {
19088
19069
  var init_start = __esm({
19089
19070
  "src/lib/agent/start.ts"() {
19090
19071
  "use strict";
19091
- init_preview_progress();
19092
19072
  init_approve();
19093
19073
  init_launch();
19094
19074
  init_pictures();
@@ -26973,10 +26953,6 @@ import path85 from "node:path";
26973
26953
  async function cmdStartRun(action, args2, opts, program2 = "akb") {
26974
26954
  if (action === "approve" && (opts.preview || opts.previewStage || opts.previewVersion || opts.definitionRevision)) return confirmLocalPreview(Number(args2[0]), opts);
26975
26955
  const { req, follow: follow2, print } = readRequest(action, args2, opts);
26976
- if (Number.isInteger(req.id) && ["approve", "implement", "archive"].includes(action)) {
26977
- const blocked = previewBlocker(req.id);
26978
- if (blocked) die(blocked, { kind: "preview-unfinished" });
26979
- }
26980
26956
  if (!print && (action === "approve" || action === "implement")) {
26981
26957
  const deferred = await approveAfterReply(String(req.id), req.notes);
26982
26958
  if (deferred) return deferred;
@@ -27476,7 +27452,6 @@ var init_run = __esm({
27476
27452
  "src/commands/run.ts"() {
27477
27453
  "use strict";
27478
27454
  init_preview_confirm();
27479
- init_preview_progress();
27480
27455
  init_progress();
27481
27456
  init_complete();
27482
27457
  init_answers();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildcrane",
3
- "version": "0.11.53",
3
+ "version": "0.11.54",
4
4
  "akbContract": 15,
5
5
  "description": "WildCrane's `akb` command — scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
6
6
  "keywords": [