wildcrane-runner 0.6.45 → 0.6.47

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.45 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.47 — 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,8 +26966,8 @@ 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.45" : "0.0.0";
26970
- var AKB_VERSION = true ? "0.11.39" : "0.0.0";
26969
+ var VERSION = true ? "0.6.47" : "0.0.0";
26970
+ var AKB_VERSION = true ? "0.11.41" : "0.0.0";
26971
26971
 
26972
26972
  // src/api.ts
26973
26973
  var RUNTIMES = ["claude-code", "codex", "cursor", "opencode", "kimi", "dsh", "zcode", "grok"];
@@ -27029,8 +27029,11 @@ import path12 from "node:path";
27029
27029
  import fs8 from "node:fs";
27030
27030
  import path10 from "node:path";
27031
27031
 
27032
+ // ../cli/src/lib/shared/file-limits.ts
27033
+ var BOARD_FILE_LIMIT = 10 * 1024 * 1024;
27034
+ var ASSET_FILE_LIMIT = 100 * 1024 * 1024;
27035
+
27032
27036
  // ../cli/src/lib/shared/board-files.ts
27033
- var BOARD_FILE_LIMIT = 256 * 1024;
27034
27037
  var studioFolder = (id) => id.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
27035
27038
  var studioName = (id) => id.startsWith("wf_builtin_") ? id.slice("wf_builtin_".length).replace(/_/g, "-") : studioFolder(id);
27036
27039
 
@@ -27330,7 +27333,7 @@ function readTranslations(raw) {
27330
27333
  }
27331
27334
  return out;
27332
27335
  }
27333
- function memoryPaths(raw) {
27336
+ function memoryPaths(raw, folder = "memory/agents/<name>/") {
27334
27337
  if (raw === void 0) return [];
27335
27338
  const block = map(raw);
27336
27339
  const extra = block ? Object.keys(block).filter((key) => key !== "workspace") : [];
@@ -27342,7 +27345,7 @@ function memoryPaths(raw) {
27342
27345
  }
27343
27346
  const paths = [...new Set(list.map((v) => v.trim()))];
27344
27347
  const outside = paths.find((p) => p.startsWith("/") || p.includes("\\") || p.split("/").some((part) => part === ".." || part === "."));
27345
- if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside \`memory/agents/<name>/\``;
27348
+ if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside \`${folder}\``;
27346
27349
  return paths;
27347
27350
  }
27348
27351
  var names = (value) => [...new Set((Array.isArray(value) ? value : [value]).map((v) => str(v)).filter(Boolean))];
@@ -27421,6 +27424,8 @@ function parseStudioFile(id, source, from) {
27421
27424
  if (!agent || scheduled.some((s) => s.agent === agent)) continue;
27422
27425
  scheduled.push({ agent, ...text(row.cadence) ? { cadence: text(row.cadence) } : {} });
27423
27426
  }
27427
+ const workspace = memoryPaths(raw.memoryFiles, `memory/studios/${id}/`);
27428
+ if (typeof workspace === "string") return { problem: `${from}: declares ${workspace}` };
27424
27429
  const names2 = Object.fromEntries(Object.entries(box(raw.names)).map(([lang, said]) => [lang, text(said)]).filter(([, said]) => said));
27425
27430
  return {
27426
27431
  def: {
@@ -27434,6 +27439,7 @@ function parseStudioFile(id, source, from) {
27434
27439
  previews,
27435
27440
  land,
27436
27441
  scheduled,
27442
+ ...workspace.length ? { memoryFiles: { workspace } } : {},
27437
27443
  rules: body.trim()
27438
27444
  }
27439
27445
  };
@@ -27446,6 +27452,8 @@ import path4 from "node:path";
27446
27452
  // ../cli/src/lib/shared/studio-files.ts
27447
27453
  var STUDIO_FILE = "STUDIO.md";
27448
27454
  var MCP_FILE = "mcp.json";
27455
+ var CARD_TEMPLATE_FILE = "CARD.md";
27456
+ var SHARED_DIR = "shared/";
27449
27457
  var VERSION_FILE = "version.json";
27450
27458
  var KB = 1024;
27451
27459
  var FILE_LIMITS = { file: 2 * KB * KB, total: 2 * KB * KB, count: 500, path: 512 };
@@ -27455,6 +27463,10 @@ var landsOf = (def) => ({ lands: def.land.some((h) => !h.off) });
27455
27463
  var SEGMENT = /^[\w.-]+$/;
27456
27464
  var isAboutFile = (file2) => /^ABOUT(\.[a-z]{2})?\.md$/.test(file2) || /^screenshots\/[\w.-]+\.(png|jpe?g|webp)$/.test(file2);
27457
27465
  var bytes = (text3) => new TextEncoder().encode(text3).length;
27466
+ var isSharedFile = (file2) => {
27467
+ const parts = file2.split("/");
27468
+ return parts.length > 1 && parts[0] === "shared" && parts.slice(1).every((p) => SEGMENT.test(p) && p !== "." && p !== "..");
27469
+ };
27458
27470
  function folderPath(file2, top) {
27459
27471
  const parts = file2.split("/");
27460
27472
  if (parts.length < 3 || parts[0] !== top || !AGENT_NAME.test(parts[1])) return null;
@@ -27510,7 +27522,7 @@ function inspect(value, official) {
27510
27522
  if (size > FILE_LIMITS.file) return fail(file2, `is larger than ${FILE_LIMITS.file / KB} KB`, true);
27511
27523
  total += size;
27512
27524
  if (total > FILE_LIMITS.total) return fail("files", `are larger than ${FILE_LIMITS.total / KB / KB} MB together`, true);
27513
- if (file2 === STUDIO_FILE) continue;
27525
+ if (file2 === STUDIO_FILE || file2 === CARD_TEMPLATE_FILE) continue;
27514
27526
  if (official && file2 === MCP_FILE) {
27515
27527
  const problem = mcpProblem(text3);
27516
27528
  if (problem) fail(file2, problem);
@@ -27522,9 +27534,10 @@ function inspect(value, official) {
27522
27534
  else skills.add(file2.split("/")[1]);
27523
27535
  continue;
27524
27536
  }
27537
+ if (isSharedFile(file2)) continue;
27525
27538
  const at = folderPath(file2, "agents");
27526
27539
  if (!at) {
27527
- fail(file2, `is neither ${STUDIO_FILE} nor inside agents/<name>/`);
27540
+ fail(file2, `is neither ${STUDIO_FILE}, ${CARD_TEMPLATE_FILE}, shared/ nor inside agents/<name>/`);
27528
27541
  continue;
27529
27542
  }
27530
27543
  if (!folders2.has(at[0])) folders2.set(at[0], /* @__PURE__ */ new Map());
@@ -27596,7 +27609,7 @@ function packOfficial(root2 = OFFICIAL, loose = false) {
27596
27609
  const dir = path5.join(studiosDir, folder);
27597
27610
  const files = {};
27598
27611
  for (const f of filesOf(dir).sort()) {
27599
- if (f === STUDIO_FILE || f === MCP_FILE || f.startsWith("skills/") || isAboutFile(f)) files[f] = readStudioFile(dir, f);
27612
+ if (f === STUDIO_FILE || f === CARD_TEMPLATE_FILE || f === MCP_FILE || f.startsWith("skills/") || f.startsWith(SHARED_DIR) || isAboutFile(f)) files[f] = readStudioFile(dir, f);
27600
27613
  }
27601
27614
  const read2 = checkStudioFiles({ [STUDIO_FILE]: files[STUDIO_FILE], ...Object.fromEntries(
27602
27615
  Object.entries(agentFiles).flatMap(([name, own2]) => Object.entries(own2).map(([f, t2]) => [`agents/${name}/${f}`, t2]))
@@ -29743,8 +29756,8 @@ function createTail(log) {
29743
29756
  // ../cli/package.json
29744
29757
  var package_default = {
29745
29758
  name: "wildcrane",
29746
- version: "0.11.39",
29747
- akbContract: 10,
29759
+ version: "0.11.41",
29760
+ akbContract: 11,
29748
29761
  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.",
29749
29762
  keywords: [
29750
29763
  "kanban",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildcrane-runner",
3
- "version": "0.6.45",
3
+ "version": "0.6.47",
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/",