wildcrane-runner 0.6.64 → 0.6.65

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/settings.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.64 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.65 — 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;
@@ -26980,8 +26980,8 @@ function alive(pid) {
26980
26980
  var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
26981
26981
 
26982
26982
  // src/protocol.ts
26983
- var VERSION = true ? "0.6.64" : "0.0.0";
26984
- var AKB_VERSION = true ? "0.11.50" : "0.0.0";
26983
+ var VERSION = true ? "0.6.65" : "0.0.0";
26984
+ var AKB_VERSION = true ? "0.11.51" : "0.0.0";
26985
26985
 
26986
26986
  // src/api.ts
26987
26987
  var RUNTIMES = ["claude-code", "codex", "cursor", "opencode", "kimi", "dsh", "zcode", "grok", "antigravity"];
@@ -27203,6 +27203,16 @@ function readMap(lines, start, indent) {
27203
27203
  return [out, i];
27204
27204
  }
27205
27205
  function readScalar(value) {
27206
+ if (value.startsWith("{") && value.endsWith("}")) {
27207
+ const entries = value.slice(1, -1).match(/(?:[^,"']|"(?:\\.|[^"\\])*"|'(?:''|[^'])*')+/g) ?? [];
27208
+ const out = {};
27209
+ for (const entry of entries) {
27210
+ const pair = /^\s*([^:]+):\s*(.+)$/.exec(entry);
27211
+ if (!pair) return value;
27212
+ out[unquote(pair[1].trim())] = readScalar(pair[2].trim());
27213
+ }
27214
+ return out;
27215
+ }
27206
27216
  const flow = value.match(/^\[(.*)\]$/);
27207
27217
  if (!flow) return unquote(value);
27208
27218
  return flow[1].split(",").map((item) => unquote(item.trim())).filter(Boolean);
@@ -27295,6 +27305,22 @@ function parseSpecAgent(text3, from, file2, builtIn = false, list2 = () => []) {
27295
27305
  if (declaredSession && declaredSession !== "new") {
27296
27306
  return bad(`\`${name}\` declares \`akb.session: ${declaredSession}\` \u2014 it is \`new\`, or left out to run in the planning session`);
27297
27307
  }
27308
+ let stages;
27309
+ if (akb.stages !== void 0) {
27310
+ if (!Array.isArray(akb.stages) || !akb.stages.length || akb.stages.length > 50) return bad("`akb.stages` must contain 1 to 50 stages");
27311
+ stages = [];
27312
+ for (const value of akb.stages) {
27313
+ const row = map(value);
27314
+ const id = str(row?.id);
27315
+ const title = map(row?.title);
27316
+ const instructions2 = str(row?.instructions);
27317
+ if (!row || Object.keys(row).some((key) => !["id", "title", "instructions", "when"].includes(key)) || !AGENT_NAME.test(id) || stages.some((stage) => stage.id === id)) return bad("`akb.stages` needs unique stage IDs and only id, title, instructions and optional when");
27318
+ if (!title || !str(title.en) || Object.values(title).some((text4) => typeof text4 !== "string" || !text4.trim())) return bad(`stage ${id} needs a title map with en`);
27319
+ if (!instructions2.endsWith(".md") || instructions2.startsWith("/") || instructions2.includes("\\") || instructions2.split("/").some((part) => !part || part === ".." || part === ".") || !file2(instructions2)?.trim()) return bad(`stage ${id} needs an existing agent-relative instructions file`);
27320
+ if (row.when !== void 0 && !str(row.when)) return bad(`stage ${id} needs nonempty when text, or omit when for a required stage`);
27321
+ stages.push({ id, title: Object.fromEntries(Object.entries(title).map(([lang, text4]) => [lang, str(text4)])), instructions: instructions2, ...str(row.when) ? { when: str(row.when) } : {} });
27322
+ }
27323
+ }
27298
27324
  const components = akb.components === void 0 ? ["Asset"] : akb.components;
27299
27325
  if (!Array.isArray(components) || components.some((value) => typeof value !== "string" || !value.trim())) {
27300
27326
  return bad(`\`${name}\` declares \`akb.components\` that is not a list of component IDs`);
@@ -27315,6 +27341,7 @@ function parseSpecAgent(text3, from, file2, builtIn = false, list2 = () => []) {
27315
27341
  description,
27316
27342
  ...when ? { when } : {},
27317
27343
  after,
27344
+ ...stages ? { stages } : {},
27318
27345
  components: [...new Set(components.map((value) => value.trim()))],
27319
27346
  ...icon ? { icon } : {},
27320
27347
  ...akb.merges === "true" ? { merges: true } : {},
@@ -27584,6 +27611,9 @@ function inspect(value, official) {
27584
27611
  ...def.land.map((h) => [h.agent, "it lands with"]),
27585
27612
  ...def.scheduled.map((s) => [s.agent, "it schedules"])
27586
27613
  ];
27614
+ for (const { agent } of [...def.land, ...def.scheduled]) {
27615
+ if (agents.get(agent)?.stages) fail(`agents/${agent}/AGENT.md`, "`akb.stages` is only supported for preview agents");
27616
+ }
27587
27617
  for (const [name, why] of named) {
27588
27618
  if (!agents.has(name) && !folders2.has(name)) fail(STUDIO_FILE, `${why} \`${name}\`, which has no agents/${name}/AGENT.md`);
27589
27619
  }
@@ -30287,8 +30317,8 @@ function createTail(log) {
30287
30317
  // ../cli/package.json
30288
30318
  var package_default = {
30289
30319
  name: "wildcrane",
30290
- version: "0.11.50",
30291
- akbContract: 14,
30320
+ version: "0.11.51",
30321
+ akbContract: 15,
30292
30322
  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.",
30293
30323
  keywords: [
30294
30324
  "kanban",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildcrane-runner",
3
- "version": "0.6.64",
3
+ "version": "0.6.65",
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/",