wildcrane-runner 0.6.45 → 0.6.46
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/akb/dist/kanban.mjs +684 -556
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +1 -1
- package/dist/launcher.mjs +20 -10
- package/dist/plugin.mjs +20 -10
- package/dist/runner.mjs +25 -12
- package/dist/settings.mjs +20 -10
- package/package.json +1 -1
package/dist/akb/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"wildcrane","version":"0.11.
|
|
1
|
+
{"name":"wildcrane","version":"0.11.40","akbContract":11,"type":"module","private":true}
|
package/dist/akb-proxy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.46 — 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.
|
|
1
|
+
// wildcrane-runner 0.6.46 — 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,8 +26889,8 @@ function saveAlphaUpdates(value) {
|
|
|
26889
26889
|
}
|
|
26890
26890
|
|
|
26891
26891
|
// src/protocol.ts
|
|
26892
|
-
var VERSION = true ? "0.6.
|
|
26893
|
-
var AKB_VERSION = true ? "0.11.
|
|
26892
|
+
var VERSION = true ? "0.6.46" : "0.0.0";
|
|
26893
|
+
var AKB_VERSION = true ? "0.11.40" : "0.0.0";
|
|
26894
26894
|
var EXIT_REFUSED = 10;
|
|
26895
26895
|
var EXIT_OUTDATED = 11;
|
|
26896
26896
|
var EXIT_UPDATE = 12;
|
|
@@ -28048,7 +28048,7 @@ function readTranslations(raw) {
|
|
|
28048
28048
|
}
|
|
28049
28049
|
return out;
|
|
28050
28050
|
}
|
|
28051
|
-
function memoryPaths(raw) {
|
|
28051
|
+
function memoryPaths(raw, folder = "memory/agents/<name>/") {
|
|
28052
28052
|
if (raw === void 0) return [];
|
|
28053
28053
|
const block = map(raw);
|
|
28054
28054
|
const extra = block ? Object.keys(block).filter((key) => key !== "workspace") : [];
|
|
@@ -28060,7 +28060,7 @@ function memoryPaths(raw) {
|
|
|
28060
28060
|
}
|
|
28061
28061
|
const paths = [...new Set(list.map((v) => v.trim()))];
|
|
28062
28062
|
const outside = paths.find((p) => p.startsWith("/") || p.includes("\\") || p.split("/").some((part) => part === ".." || part === "."));
|
|
28063
|
-
if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside
|
|
28063
|
+
if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside \`${folder}\``;
|
|
28064
28064
|
return paths;
|
|
28065
28065
|
}
|
|
28066
28066
|
var names = (value) => [...new Set((Array.isArray(value) ? value : [value]).map((v) => str(v)).filter(Boolean))];
|
|
@@ -28139,6 +28139,8 @@ function parseStudioFile(id, source, from) {
|
|
|
28139
28139
|
if (!agent || scheduled.some((s) => s.agent === agent)) continue;
|
|
28140
28140
|
scheduled.push({ agent, ...text(row.cadence) ? { cadence: text(row.cadence) } : {} });
|
|
28141
28141
|
}
|
|
28142
|
+
const workspace = memoryPaths(raw.memoryFiles, `memory/studios/${id}/`);
|
|
28143
|
+
if (typeof workspace === "string") return { problem: `${from}: declares ${workspace}` };
|
|
28142
28144
|
const names2 = Object.fromEntries(Object.entries(box(raw.names)).map(([lang, said]) => [lang, text(said)]).filter(([, said]) => said));
|
|
28143
28145
|
return {
|
|
28144
28146
|
def: {
|
|
@@ -28152,6 +28154,7 @@ function parseStudioFile(id, source, from) {
|
|
|
28152
28154
|
previews,
|
|
28153
28155
|
land,
|
|
28154
28156
|
scheduled,
|
|
28157
|
+
...workspace.length ? { memoryFiles: { workspace } } : {},
|
|
28155
28158
|
rules: body.trim()
|
|
28156
28159
|
}
|
|
28157
28160
|
};
|
|
@@ -28164,6 +28167,8 @@ import path8 from "node:path";
|
|
|
28164
28167
|
// ../cli/src/lib/shared/studio-files.ts
|
|
28165
28168
|
var STUDIO_FILE = "STUDIO.md";
|
|
28166
28169
|
var MCP_FILE = "mcp.json";
|
|
28170
|
+
var CARD_TEMPLATE_FILE = "CARD.md";
|
|
28171
|
+
var SHARED_DIR = "shared/";
|
|
28167
28172
|
var VERSION_FILE = "version.json";
|
|
28168
28173
|
var KB = 1024;
|
|
28169
28174
|
var FILE_LIMITS = { file: 2 * KB * KB, total: 2 * KB * KB, count: 500, path: 512 };
|
|
@@ -28173,6 +28178,10 @@ var landsOf = (def) => ({ lands: def.land.some((h) => !h.off) });
|
|
|
28173
28178
|
var SEGMENT = /^[\w.-]+$/;
|
|
28174
28179
|
var isAboutFile = (file2) => /^ABOUT(\.[a-z]{2})?\.md$/.test(file2) || /^screenshots\/[\w.-]+\.(png|jpe?g|webp)$/.test(file2);
|
|
28175
28180
|
var bytes = (text3) => new TextEncoder().encode(text3).length;
|
|
28181
|
+
var isSharedFile = (file2) => {
|
|
28182
|
+
const parts = file2.split("/");
|
|
28183
|
+
return parts.length > 1 && parts[0] === "shared" && parts.slice(1).every((p) => SEGMENT.test(p) && p !== "." && p !== "..");
|
|
28184
|
+
};
|
|
28176
28185
|
function folderPath(file2, top) {
|
|
28177
28186
|
const parts = file2.split("/");
|
|
28178
28187
|
if (parts.length < 3 || parts[0] !== top || !AGENT_NAME.test(parts[1])) return null;
|
|
@@ -28228,7 +28237,7 @@ function inspect(value, official) {
|
|
|
28228
28237
|
if (size > FILE_LIMITS.file) return fail(file2, `is larger than ${FILE_LIMITS.file / KB} KB`, true);
|
|
28229
28238
|
total += size;
|
|
28230
28239
|
if (total > FILE_LIMITS.total) return fail("files", `are larger than ${FILE_LIMITS.total / KB / KB} MB together`, true);
|
|
28231
|
-
if (file2 === STUDIO_FILE) continue;
|
|
28240
|
+
if (file2 === STUDIO_FILE || file2 === CARD_TEMPLATE_FILE) continue;
|
|
28232
28241
|
if (official && file2 === MCP_FILE) {
|
|
28233
28242
|
const problem = mcpProblem(text3);
|
|
28234
28243
|
if (problem) fail(file2, problem);
|
|
@@ -28240,9 +28249,10 @@ function inspect(value, official) {
|
|
|
28240
28249
|
else skills.add(file2.split("/")[1]);
|
|
28241
28250
|
continue;
|
|
28242
28251
|
}
|
|
28252
|
+
if (isSharedFile(file2)) continue;
|
|
28243
28253
|
const at = folderPath(file2, "agents");
|
|
28244
28254
|
if (!at) {
|
|
28245
|
-
fail(file2, `is neither ${STUDIO_FILE} nor inside agents/<name>/`);
|
|
28255
|
+
fail(file2, `is neither ${STUDIO_FILE}, ${CARD_TEMPLATE_FILE}, shared/ nor inside agents/<name>/`);
|
|
28246
28256
|
continue;
|
|
28247
28257
|
}
|
|
28248
28258
|
if (!folders2.has(at[0])) folders2.set(at[0], /* @__PURE__ */ new Map());
|
|
@@ -28314,7 +28324,7 @@ function packOfficial(root2 = OFFICIAL, loose = false) {
|
|
|
28314
28324
|
const dir = path9.join(studiosDir, folder);
|
|
28315
28325
|
const files = {};
|
|
28316
28326
|
for (const f of filesOf(dir).sort()) {
|
|
28317
|
-
if (f === STUDIO_FILE || f === MCP_FILE || f.startsWith("skills/") || isAboutFile(f)) files[f] = readStudioFile(dir, f);
|
|
28327
|
+
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);
|
|
28318
28328
|
}
|
|
28319
28329
|
const read2 = checkStudioFiles({ [STUDIO_FILE]: files[STUDIO_FILE], ...Object.fromEntries(
|
|
28320
28330
|
Object.entries(agentFiles).flatMap(([name, own2]) => Object.entries(own2).map(([f, t2]) => [`agents/${name}/${f}`, t2]))
|
|
@@ -30461,8 +30471,8 @@ function createTail(log) {
|
|
|
30461
30471
|
// ../cli/package.json
|
|
30462
30472
|
var package_default = {
|
|
30463
30473
|
name: "wildcrane",
|
|
30464
|
-
version: "0.11.
|
|
30465
|
-
akbContract:
|
|
30474
|
+
version: "0.11.40",
|
|
30475
|
+
akbContract: 11,
|
|
30466
30476
|
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.",
|
|
30467
30477
|
keywords: [
|
|
30468
30478
|
"kanban",
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.46 — 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;
|
|
@@ -73760,8 +73760,8 @@ function machineId() {
|
|
|
73760
73760
|
var machineName = () => os2.hostname().replace(/\.local$/, "");
|
|
73761
73761
|
|
|
73762
73762
|
// src/protocol.ts
|
|
73763
|
-
var VERSION = true ? "0.6.
|
|
73764
|
-
var AKB_VERSION = true ? "0.11.
|
|
73763
|
+
var VERSION = true ? "0.6.46" : "0.0.0";
|
|
73764
|
+
var AKB_VERSION = true ? "0.11.40" : "0.0.0";
|
|
73765
73765
|
var EXIT_REFUSED = 10;
|
|
73766
73766
|
var EXIT_OUTDATED = 11;
|
|
73767
73767
|
var EXIT_UPDATE = 12;
|
|
@@ -74206,7 +74206,7 @@ function readTranslations(raw) {
|
|
|
74206
74206
|
}
|
|
74207
74207
|
return out;
|
|
74208
74208
|
}
|
|
74209
|
-
function memoryPaths(raw) {
|
|
74209
|
+
function memoryPaths(raw, folder = "memory/agents/<name>/") {
|
|
74210
74210
|
if (raw === void 0) return [];
|
|
74211
74211
|
const block = map(raw);
|
|
74212
74212
|
const extra = block ? Object.keys(block).filter((key) => key !== "workspace") : [];
|
|
@@ -74218,7 +74218,7 @@ function memoryPaths(raw) {
|
|
|
74218
74218
|
}
|
|
74219
74219
|
const paths = [...new Set(list.map((v) => v.trim()))];
|
|
74220
74220
|
const outside = paths.find((p) => p.startsWith("/") || p.includes("\\") || p.split("/").some((part) => part === ".." || part === "."));
|
|
74221
|
-
if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside
|
|
74221
|
+
if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside \`${folder}\``;
|
|
74222
74222
|
return paths;
|
|
74223
74223
|
}
|
|
74224
74224
|
var names = (value) => [...new Set((Array.isArray(value) ? value : [value]).map((v) => str(v)).filter(Boolean))];
|
|
@@ -74297,6 +74297,8 @@ function parseStudioFile(id, source, from) {
|
|
|
74297
74297
|
if (!agent || scheduled.some((s) => s.agent === agent)) continue;
|
|
74298
74298
|
scheduled.push({ agent, ...text(row.cadence) ? { cadence: text(row.cadence) } : {} });
|
|
74299
74299
|
}
|
|
74300
|
+
const workspace = memoryPaths(raw.memoryFiles, `memory/studios/${id}/`);
|
|
74301
|
+
if (typeof workspace === "string") return { problem: `${from}: declares ${workspace}` };
|
|
74300
74302
|
const names2 = Object.fromEntries(Object.entries(box(raw.names)).map(([lang, said]) => [lang, text(said)]).filter(([, said]) => said));
|
|
74301
74303
|
return {
|
|
74302
74304
|
def: {
|
|
@@ -74310,6 +74312,7 @@ function parseStudioFile(id, source, from) {
|
|
|
74310
74312
|
previews,
|
|
74311
74313
|
land,
|
|
74312
74314
|
scheduled,
|
|
74315
|
+
...workspace.length ? { memoryFiles: { workspace } } : {},
|
|
74313
74316
|
rules: body.trim()
|
|
74314
74317
|
}
|
|
74315
74318
|
};
|
|
@@ -74322,6 +74325,8 @@ import path5 from "node:path";
|
|
|
74322
74325
|
// ../cli/src/lib/shared/studio-files.ts
|
|
74323
74326
|
var STUDIO_FILE = "STUDIO.md";
|
|
74324
74327
|
var MCP_FILE = "mcp.json";
|
|
74328
|
+
var CARD_TEMPLATE_FILE = "CARD.md";
|
|
74329
|
+
var SHARED_DIR = "shared/";
|
|
74325
74330
|
var VERSION_FILE = "version.json";
|
|
74326
74331
|
var KB = 1024;
|
|
74327
74332
|
var FILE_LIMITS = { file: 2 * KB * KB, total: 2 * KB * KB, count: 500, path: 512 };
|
|
@@ -74331,6 +74336,10 @@ var landsOf = (def) => ({ lands: def.land.some((h) => !h.off) });
|
|
|
74331
74336
|
var SEGMENT = /^[\w.-]+$/;
|
|
74332
74337
|
var isAboutFile = (file2) => /^ABOUT(\.[a-z]{2})?\.md$/.test(file2) || /^screenshots\/[\w.-]+\.(png|jpe?g|webp)$/.test(file2);
|
|
74333
74338
|
var bytes = (text4) => new TextEncoder().encode(text4).length;
|
|
74339
|
+
var isSharedFile = (file2) => {
|
|
74340
|
+
const parts = file2.split("/");
|
|
74341
|
+
return parts.length > 1 && parts[0] === "shared" && parts.slice(1).every((p) => SEGMENT.test(p) && p !== "." && p !== "..");
|
|
74342
|
+
};
|
|
74334
74343
|
function folderPath(file2, top) {
|
|
74335
74344
|
const parts = file2.split("/");
|
|
74336
74345
|
if (parts.length < 3 || parts[0] !== top || !AGENT_NAME.test(parts[1])) return null;
|
|
@@ -74386,7 +74395,7 @@ function inspect(value, official) {
|
|
|
74386
74395
|
if (size > FILE_LIMITS.file) return fail(file2, `is larger than ${FILE_LIMITS.file / KB} KB`, true);
|
|
74387
74396
|
total += size;
|
|
74388
74397
|
if (total > FILE_LIMITS.total) return fail("files", `are larger than ${FILE_LIMITS.total / KB / KB} MB together`, true);
|
|
74389
|
-
if (file2 === STUDIO_FILE) continue;
|
|
74398
|
+
if (file2 === STUDIO_FILE || file2 === CARD_TEMPLATE_FILE) continue;
|
|
74390
74399
|
if (official && file2 === MCP_FILE) {
|
|
74391
74400
|
const problem = mcpProblem(text4);
|
|
74392
74401
|
if (problem) fail(file2, problem);
|
|
@@ -74398,9 +74407,10 @@ function inspect(value, official) {
|
|
|
74398
74407
|
else skills.add(file2.split("/")[1]);
|
|
74399
74408
|
continue;
|
|
74400
74409
|
}
|
|
74410
|
+
if (isSharedFile(file2)) continue;
|
|
74401
74411
|
const at = folderPath(file2, "agents");
|
|
74402
74412
|
if (!at) {
|
|
74403
|
-
fail(file2, `is neither ${STUDIO_FILE} nor inside agents/<name>/`);
|
|
74413
|
+
fail(file2, `is neither ${STUDIO_FILE}, ${CARD_TEMPLATE_FILE}, shared/ nor inside agents/<name>/`);
|
|
74404
74414
|
continue;
|
|
74405
74415
|
}
|
|
74406
74416
|
if (!folders2.has(at[0])) folders2.set(at[0], /* @__PURE__ */ new Map());
|
|
@@ -74472,7 +74482,7 @@ function packOfficial(root2 = OFFICIAL, loose = false) {
|
|
|
74472
74482
|
const dir = path6.join(studiosDir, folder);
|
|
74473
74483
|
const files = {};
|
|
74474
74484
|
for (const f of filesOf(dir).sort()) {
|
|
74475
|
-
if (f === STUDIO_FILE || f === MCP_FILE || f.startsWith("skills/") || isAboutFile(f)) files[f] = readStudioFile(dir, f);
|
|
74485
|
+
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);
|
|
74476
74486
|
}
|
|
74477
74487
|
const read2 = checkStudioFiles({ [STUDIO_FILE]: files[STUDIO_FILE], ...Object.fromEntries(
|
|
74478
74488
|
Object.entries(agentFiles).flatMap(([name, own3]) => Object.entries(own3).map(([f, t2]) => [`agents/${name}/${f}`, t2]))
|
|
@@ -77044,8 +77054,8 @@ function createTail(log) {
|
|
|
77044
77054
|
// ../cli/package.json
|
|
77045
77055
|
var package_default = {
|
|
77046
77056
|
name: "wildcrane",
|
|
77047
|
-
version: "0.11.
|
|
77048
|
-
akbContract:
|
|
77057
|
+
version: "0.11.40",
|
|
77058
|
+
akbContract: 11,
|
|
77049
77059
|
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.",
|
|
77050
77060
|
keywords: [
|
|
77051
77061
|
"kanban",
|
package/dist/runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.46 — 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;
|
|
@@ -111406,9 +111406,9 @@ function status(line) {
|
|
|
111406
111406
|
}
|
|
111407
111407
|
|
|
111408
111408
|
// src/protocol.ts
|
|
111409
|
-
var VERSION = true ? "0.6.
|
|
111410
|
-
var AKB_VERSION = true ? "0.11.
|
|
111411
|
-
var AKB_CONTRACT = true ?
|
|
111409
|
+
var VERSION = true ? "0.6.46" : "0.0.0";
|
|
111410
|
+
var AKB_VERSION = true ? "0.11.40" : "0.0.0";
|
|
111411
|
+
var AKB_CONTRACT = true ? 11 : 0;
|
|
111412
111412
|
var EXIT_REFUSED = 10;
|
|
111413
111413
|
var EXIT_OUTDATED = 11;
|
|
111414
111414
|
var EXIT_UPDATE = 12;
|
|
@@ -113053,8 +113053,8 @@ function createTail(log) {
|
|
|
113053
113053
|
// ../cli/package.json
|
|
113054
113054
|
var package_default = {
|
|
113055
113055
|
name: "wildcrane",
|
|
113056
|
-
version: "0.11.
|
|
113057
|
-
akbContract:
|
|
113056
|
+
version: "0.11.40",
|
|
113057
|
+
akbContract: 11,
|
|
113058
113058
|
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.",
|
|
113059
113059
|
keywords: [
|
|
113060
113060
|
"kanban",
|
|
@@ -116734,7 +116734,7 @@ function readTranslations(raw) {
|
|
|
116734
116734
|
}
|
|
116735
116735
|
return out;
|
|
116736
116736
|
}
|
|
116737
|
-
function memoryPaths(raw) {
|
|
116737
|
+
function memoryPaths(raw, folder = "memory/agents/<name>/") {
|
|
116738
116738
|
if (raw === void 0) return [];
|
|
116739
116739
|
const block = map(raw);
|
|
116740
116740
|
const extra = block ? Object.keys(block).filter((key) => key !== "workspace") : [];
|
|
@@ -116746,7 +116746,7 @@ function memoryPaths(raw) {
|
|
|
116746
116746
|
}
|
|
116747
116747
|
const paths = [...new Set(list.map((v) => v.trim()))];
|
|
116748
116748
|
const outside = paths.find((p2) => p2.startsWith("/") || p2.includes("\\") || p2.split("/").some((part) => part === ".." || part === "."));
|
|
116749
|
-
if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside
|
|
116749
|
+
if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside \`${folder}\``;
|
|
116750
116750
|
return paths;
|
|
116751
116751
|
}
|
|
116752
116752
|
var names = (value) => [...new Set((Array.isArray(value) ? value : [value]).map((v) => str3(v)).filter(Boolean))];
|
|
@@ -116825,6 +116825,8 @@ function parseStudioFile(id, source, from) {
|
|
|
116825
116825
|
if (!agent || scheduled.some((s) => s.agent === agent)) continue;
|
|
116826
116826
|
scheduled.push({ agent, ...text2(row.cadence) ? { cadence: text2(row.cadence) } : {} });
|
|
116827
116827
|
}
|
|
116828
|
+
const workspace = memoryPaths(raw.memoryFiles, `memory/studios/${id}/`);
|
|
116829
|
+
if (typeof workspace === "string") return { problem: `${from}: declares ${workspace}` };
|
|
116828
116830
|
const names2 = Object.fromEntries(Object.entries(box(raw.names)).map(([lang, said]) => [lang, text2(said)]).filter(([, said]) => said));
|
|
116829
116831
|
return {
|
|
116830
116832
|
def: {
|
|
@@ -116838,6 +116840,7 @@ function parseStudioFile(id, source, from) {
|
|
|
116838
116840
|
previews,
|
|
116839
116841
|
land,
|
|
116840
116842
|
scheduled,
|
|
116843
|
+
...workspace.length ? { memoryFiles: { workspace } } : {},
|
|
116841
116844
|
rules: body.trim()
|
|
116842
116845
|
}
|
|
116843
116846
|
};
|
|
@@ -116850,6 +116853,8 @@ import path20 from "node:path";
|
|
|
116850
116853
|
// ../cli/src/lib/shared/studio-files.ts
|
|
116851
116854
|
var STUDIO_FILE = "STUDIO.md";
|
|
116852
116855
|
var MCP_FILE = "mcp.json";
|
|
116856
|
+
var CARD_TEMPLATE_FILE = "CARD.md";
|
|
116857
|
+
var SHARED_DIR = "shared/";
|
|
116853
116858
|
var VERSION_FILE = "version.json";
|
|
116854
116859
|
var KB = 1024;
|
|
116855
116860
|
var FILE_LIMITS = { file: 2 * KB * KB, total: 2 * KB * KB, count: 500, path: 512 };
|
|
@@ -116859,6 +116864,10 @@ var landsOf = (def) => ({ lands: def.land.some((h3) => !h3.off) });
|
|
|
116859
116864
|
var SEGMENT = /^[\w.-]+$/;
|
|
116860
116865
|
var isAboutFile = (file3) => /^ABOUT(\.[a-z]{2})?\.md$/.test(file3) || /^screenshots\/[\w.-]+\.(png|jpe?g|webp)$/.test(file3);
|
|
116861
116866
|
var bytes = (text3) => new TextEncoder().encode(text3).length;
|
|
116867
|
+
var isSharedFile = (file3) => {
|
|
116868
|
+
const parts = file3.split("/");
|
|
116869
|
+
return parts.length > 1 && parts[0] === "shared" && parts.slice(1).every((p2) => SEGMENT.test(p2) && p2 !== "." && p2 !== "..");
|
|
116870
|
+
};
|
|
116862
116871
|
function folderPath(file3, top) {
|
|
116863
116872
|
const parts = file3.split("/");
|
|
116864
116873
|
if (parts.length < 3 || parts[0] !== top || !AGENT_NAME.test(parts[1])) return null;
|
|
@@ -116914,7 +116923,7 @@ function inspect(value, official) {
|
|
|
116914
116923
|
if (size > FILE_LIMITS.file) return fail(file3, `is larger than ${FILE_LIMITS.file / KB} KB`, true);
|
|
116915
116924
|
total += size;
|
|
116916
116925
|
if (total > FILE_LIMITS.total) return fail("files", `are larger than ${FILE_LIMITS.total / KB / KB} MB together`, true);
|
|
116917
|
-
if (file3 === STUDIO_FILE) continue;
|
|
116926
|
+
if (file3 === STUDIO_FILE || file3 === CARD_TEMPLATE_FILE) continue;
|
|
116918
116927
|
if (official && file3 === MCP_FILE) {
|
|
116919
116928
|
const problem = mcpProblem(text3);
|
|
116920
116929
|
if (problem) fail(file3, problem);
|
|
@@ -116926,9 +116935,10 @@ function inspect(value, official) {
|
|
|
116926
116935
|
else skills.add(file3.split("/")[1]);
|
|
116927
116936
|
continue;
|
|
116928
116937
|
}
|
|
116938
|
+
if (isSharedFile(file3)) continue;
|
|
116929
116939
|
const at2 = folderPath(file3, "agents");
|
|
116930
116940
|
if (!at2) {
|
|
116931
|
-
fail(file3, `is neither ${STUDIO_FILE} nor inside agents/<name>/`);
|
|
116941
|
+
fail(file3, `is neither ${STUDIO_FILE}, ${CARD_TEMPLATE_FILE}, shared/ nor inside agents/<name>/`);
|
|
116932
116942
|
continue;
|
|
116933
116943
|
}
|
|
116934
116944
|
if (!folders2.has(at2[0])) folders2.set(at2[0], /* @__PURE__ */ new Map());
|
|
@@ -117000,7 +117010,7 @@ function packOfficial(root2 = OFFICIAL, loose = false) {
|
|
|
117000
117010
|
const dir = path21.join(studiosDir, folder);
|
|
117001
117011
|
const files = {};
|
|
117002
117012
|
for (const f2 of filesOf(dir).sort()) {
|
|
117003
|
-
if (f2 === STUDIO_FILE || f2 === MCP_FILE || f2.startsWith("skills/") || isAboutFile(f2)) files[f2] = readStudioFile(dir, f2);
|
|
117013
|
+
if (f2 === STUDIO_FILE || f2 === CARD_TEMPLATE_FILE || f2 === MCP_FILE || f2.startsWith("skills/") || f2.startsWith(SHARED_DIR) || isAboutFile(f2)) files[f2] = readStudioFile(dir, f2);
|
|
117004
117014
|
}
|
|
117005
117015
|
const read4 = checkStudioFiles({ [STUDIO_FILE]: files[STUDIO_FILE], ...Object.fromEntries(
|
|
117006
117016
|
Object.entries(agentFiles).flatMap(([name, own2]) => Object.entries(own2).map(([f2, t2]) => [`agents/${name}/${f2}`, t2]))
|
|
@@ -118474,7 +118484,10 @@ function sharedMemory(board) {
|
|
|
118474
118484
|
}
|
|
118475
118485
|
take(folder, text3, false);
|
|
118476
118486
|
}
|
|
118477
|
-
const matches = [
|
|
118487
|
+
const matches = [
|
|
118488
|
+
...[...declared].flatMap(([agent, paths]) => paths.map((p2) => matcher(`agents/${agent}/${p2}`))),
|
|
118489
|
+
...cloudFlows().flatMap((f2) => (f2.def.memoryFiles?.workspace ?? []).map((p2) => matcher(`studios/${f2.def.id}/${p2}`)))
|
|
118490
|
+
];
|
|
118478
118491
|
return (name) => matches.some((m) => m(name));
|
|
118479
118492
|
}
|
|
118480
118493
|
function matcher(entry) {
|
package/dist/settings.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.46 — 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.
|
|
26970
|
-
var AKB_VERSION = true ? "0.11.
|
|
26969
|
+
var VERSION = true ? "0.6.46" : "0.0.0";
|
|
26970
|
+
var AKB_VERSION = true ? "0.11.40" : "0.0.0";
|
|
26971
26971
|
|
|
26972
26972
|
// src/api.ts
|
|
26973
26973
|
var RUNTIMES = ["claude-code", "codex", "cursor", "opencode", "kimi", "dsh", "zcode", "grok"];
|
|
@@ -27330,7 +27330,7 @@ function readTranslations(raw) {
|
|
|
27330
27330
|
}
|
|
27331
27331
|
return out;
|
|
27332
27332
|
}
|
|
27333
|
-
function memoryPaths(raw) {
|
|
27333
|
+
function memoryPaths(raw, folder = "memory/agents/<name>/") {
|
|
27334
27334
|
if (raw === void 0) return [];
|
|
27335
27335
|
const block = map(raw);
|
|
27336
27336
|
const extra = block ? Object.keys(block).filter((key) => key !== "workspace") : [];
|
|
@@ -27342,7 +27342,7 @@ function memoryPaths(raw) {
|
|
|
27342
27342
|
}
|
|
27343
27343
|
const paths = [...new Set(list.map((v) => v.trim()))];
|
|
27344
27344
|
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
|
|
27345
|
+
if (outside) return `\`akb.memoryFiles.workspace: ${outside}\`, which is outside its memory folder \u2014 use a path inside \`${folder}\``;
|
|
27346
27346
|
return paths;
|
|
27347
27347
|
}
|
|
27348
27348
|
var names = (value) => [...new Set((Array.isArray(value) ? value : [value]).map((v) => str(v)).filter(Boolean))];
|
|
@@ -27421,6 +27421,8 @@ function parseStudioFile(id, source, from) {
|
|
|
27421
27421
|
if (!agent || scheduled.some((s) => s.agent === agent)) continue;
|
|
27422
27422
|
scheduled.push({ agent, ...text(row.cadence) ? { cadence: text(row.cadence) } : {} });
|
|
27423
27423
|
}
|
|
27424
|
+
const workspace = memoryPaths(raw.memoryFiles, `memory/studios/${id}/`);
|
|
27425
|
+
if (typeof workspace === "string") return { problem: `${from}: declares ${workspace}` };
|
|
27424
27426
|
const names2 = Object.fromEntries(Object.entries(box(raw.names)).map(([lang, said]) => [lang, text(said)]).filter(([, said]) => said));
|
|
27425
27427
|
return {
|
|
27426
27428
|
def: {
|
|
@@ -27434,6 +27436,7 @@ function parseStudioFile(id, source, from) {
|
|
|
27434
27436
|
previews,
|
|
27435
27437
|
land,
|
|
27436
27438
|
scheduled,
|
|
27439
|
+
...workspace.length ? { memoryFiles: { workspace } } : {},
|
|
27437
27440
|
rules: body.trim()
|
|
27438
27441
|
}
|
|
27439
27442
|
};
|
|
@@ -27446,6 +27449,8 @@ import path4 from "node:path";
|
|
|
27446
27449
|
// ../cli/src/lib/shared/studio-files.ts
|
|
27447
27450
|
var STUDIO_FILE = "STUDIO.md";
|
|
27448
27451
|
var MCP_FILE = "mcp.json";
|
|
27452
|
+
var CARD_TEMPLATE_FILE = "CARD.md";
|
|
27453
|
+
var SHARED_DIR = "shared/";
|
|
27449
27454
|
var VERSION_FILE = "version.json";
|
|
27450
27455
|
var KB = 1024;
|
|
27451
27456
|
var FILE_LIMITS = { file: 2 * KB * KB, total: 2 * KB * KB, count: 500, path: 512 };
|
|
@@ -27455,6 +27460,10 @@ var landsOf = (def) => ({ lands: def.land.some((h) => !h.off) });
|
|
|
27455
27460
|
var SEGMENT = /^[\w.-]+$/;
|
|
27456
27461
|
var isAboutFile = (file2) => /^ABOUT(\.[a-z]{2})?\.md$/.test(file2) || /^screenshots\/[\w.-]+\.(png|jpe?g|webp)$/.test(file2);
|
|
27457
27462
|
var bytes = (text3) => new TextEncoder().encode(text3).length;
|
|
27463
|
+
var isSharedFile = (file2) => {
|
|
27464
|
+
const parts = file2.split("/");
|
|
27465
|
+
return parts.length > 1 && parts[0] === "shared" && parts.slice(1).every((p) => SEGMENT.test(p) && p !== "." && p !== "..");
|
|
27466
|
+
};
|
|
27458
27467
|
function folderPath(file2, top) {
|
|
27459
27468
|
const parts = file2.split("/");
|
|
27460
27469
|
if (parts.length < 3 || parts[0] !== top || !AGENT_NAME.test(parts[1])) return null;
|
|
@@ -27510,7 +27519,7 @@ function inspect(value, official) {
|
|
|
27510
27519
|
if (size > FILE_LIMITS.file) return fail(file2, `is larger than ${FILE_LIMITS.file / KB} KB`, true);
|
|
27511
27520
|
total += size;
|
|
27512
27521
|
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;
|
|
27522
|
+
if (file2 === STUDIO_FILE || file2 === CARD_TEMPLATE_FILE) continue;
|
|
27514
27523
|
if (official && file2 === MCP_FILE) {
|
|
27515
27524
|
const problem = mcpProblem(text3);
|
|
27516
27525
|
if (problem) fail(file2, problem);
|
|
@@ -27522,9 +27531,10 @@ function inspect(value, official) {
|
|
|
27522
27531
|
else skills.add(file2.split("/")[1]);
|
|
27523
27532
|
continue;
|
|
27524
27533
|
}
|
|
27534
|
+
if (isSharedFile(file2)) continue;
|
|
27525
27535
|
const at = folderPath(file2, "agents");
|
|
27526
27536
|
if (!at) {
|
|
27527
|
-
fail(file2, `is neither ${STUDIO_FILE} nor inside agents/<name>/`);
|
|
27537
|
+
fail(file2, `is neither ${STUDIO_FILE}, ${CARD_TEMPLATE_FILE}, shared/ nor inside agents/<name>/`);
|
|
27528
27538
|
continue;
|
|
27529
27539
|
}
|
|
27530
27540
|
if (!folders2.has(at[0])) folders2.set(at[0], /* @__PURE__ */ new Map());
|
|
@@ -27596,7 +27606,7 @@ function packOfficial(root2 = OFFICIAL, loose = false) {
|
|
|
27596
27606
|
const dir = path5.join(studiosDir, folder);
|
|
27597
27607
|
const files = {};
|
|
27598
27608
|
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);
|
|
27609
|
+
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
27610
|
}
|
|
27601
27611
|
const read2 = checkStudioFiles({ [STUDIO_FILE]: files[STUDIO_FILE], ...Object.fromEntries(
|
|
27602
27612
|
Object.entries(agentFiles).flatMap(([name, own2]) => Object.entries(own2).map(([f, t2]) => [`agents/${name}/${f}`, t2]))
|
|
@@ -29743,8 +29753,8 @@ function createTail(log) {
|
|
|
29743
29753
|
// ../cli/package.json
|
|
29744
29754
|
var package_default = {
|
|
29745
29755
|
name: "wildcrane",
|
|
29746
|
-
version: "0.11.
|
|
29747
|
-
akbContract:
|
|
29756
|
+
version: "0.11.40",
|
|
29757
|
+
akbContract: 11,
|
|
29748
29758
|
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
29759
|
keywords: [
|
|
29750
29760
|
"kanban",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wildcrane-runner",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.46",
|
|
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/",
|