wildcrane-runner 0.6.83 → 0.6.84
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 +64 -53
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +1 -1
- package/dist/codex-proxy.mjs +1 -1
- package/dist/codex-retained.mjs +1 -1
- package/dist/flow-worker-main.mjs +3 -3
- package/dist/launcher.mjs +4 -4
- package/dist/plugin.mjs +4 -4
- package/dist/runner.mjs +4 -4
- package/dist/settings.mjs +4 -4
- package/package.json +2 -2
package/dist/akb/dist/kanban.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// ai4kanban 0.11.
|
|
2
|
+
// ai4kanban 0.11.68 — 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;
|
|
@@ -4004,7 +4004,7 @@ var init_package = __esm({
|
|
|
4004
4004
|
"../cli/package.json"() {
|
|
4005
4005
|
package_default = {
|
|
4006
4006
|
name: "wildcrane",
|
|
4007
|
-
version: "0.11.
|
|
4007
|
+
version: "0.11.68",
|
|
4008
4008
|
akbContract: 17,
|
|
4009
4009
|
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.",
|
|
4010
4010
|
keywords: [
|
|
@@ -18865,8 +18865,14 @@ async function all(route2) {
|
|
|
18865
18865
|
} while (after2);
|
|
18866
18866
|
return rows;
|
|
18867
18867
|
}
|
|
18868
|
-
function linked() {
|
|
18869
|
-
|
|
18868
|
+
function linked(location) {
|
|
18869
|
+
const cwd = location.cwd ?? process.cwd();
|
|
18870
|
+
const board2 = location.board ?? (process.env.AI4KANBAN_BOARD?.trim() || null);
|
|
18871
|
+
if (board2) {
|
|
18872
|
+
const link2 = linkedProject("", projectRootOf(path69.resolve(cwd, board2)));
|
|
18873
|
+
return link2.ok ? link2.value : null;
|
|
18874
|
+
}
|
|
18875
|
+
for (let dir = path69.resolve(cwd, location.dir ?? "."); ; dir = path69.dirname(dir)) {
|
|
18870
18876
|
if (fs66.existsSync(path69.join(dir, ".akb", "base.json"))) {
|
|
18871
18877
|
const link2 = linkedProject("", dir);
|
|
18872
18878
|
return link2.ok ? link2.value : null;
|
|
@@ -18874,33 +18880,33 @@ function linked() {
|
|
|
18874
18880
|
if (path69.dirname(dir) === dir) return null;
|
|
18875
18881
|
}
|
|
18876
18882
|
}
|
|
18877
|
-
async function project(asked) {
|
|
18878
|
-
const id = asked ?? linked();
|
|
18883
|
+
async function project(asked, location) {
|
|
18884
|
+
const id = asked ?? linked(location);
|
|
18879
18885
|
if (id) return id;
|
|
18880
18886
|
const rows = await all("/v1/projects");
|
|
18881
18887
|
return refuse2(`Pick a project with --project: ${rows.map(projectLine).join(", ") || "none yet"}`, "no_project");
|
|
18882
18888
|
}
|
|
18883
|
-
async function workspace(asked) {
|
|
18889
|
+
async function workspace(asked, location) {
|
|
18884
18890
|
if (asked) return asked;
|
|
18885
|
-
const prj = linked();
|
|
18891
|
+
const prj = linked(location);
|
|
18886
18892
|
if (prj) return (await cloud("GET", `/v1/projects/${enc(prj)}`)).workspace;
|
|
18887
18893
|
const rows = await all("/v1/workspaces");
|
|
18888
18894
|
return refuse2(`Pick a workspace with --workspace: ${rows.map((w2) => `${w2.id} ${w2.name}`).join(", ")}`, "no_project");
|
|
18889
18895
|
}
|
|
18890
|
-
async function taskRef(asked) {
|
|
18896
|
+
async function taskRef(asked, location = {}) {
|
|
18891
18897
|
if (!/^\d+$/.test(asked.trim())) return asked.trim();
|
|
18892
|
-
const prj = linked();
|
|
18898
|
+
const prj = linked(location);
|
|
18893
18899
|
if (!prj) refuse2("Write the full task key, like WC-12, or run this in a linked folder.", "no_project");
|
|
18894
18900
|
return `${(await cloud("GET", `/v1/projects/${enc(prj)}`)).prefix}-${asked.trim()}`;
|
|
18895
18901
|
}
|
|
18896
|
-
async function taskList(opts) {
|
|
18897
|
-
const scope = opts.project || !opts.workspace ? `project=${enc(await project(opts.project))}` : `workspace=${enc(opts.workspace)}`;
|
|
18898
|
-
const
|
|
18899
|
-
for (const t of
|
|
18900
|
-
return {
|
|
18902
|
+
async function taskList(opts, location = {}) {
|
|
18903
|
+
const scope = opts.project || !opts.workspace ? `project=${enc(await project(opts.project, location))}` : `workspace=${enc(opts.workspace)}`;
|
|
18904
|
+
const data = await all(`/v1/tasks?${scope}${opts.status ? `&status=${enc(opts.status)}` : ""}`);
|
|
18905
|
+
for (const t of data) say(`${t.key} ${t.status} ${t.title}`);
|
|
18906
|
+
return { data, next: null };
|
|
18901
18907
|
}
|
|
18902
|
-
async function taskShow(id) {
|
|
18903
|
-
const task = await cloud("GET", `/v1/tasks/${enc(await taskRef(id))}`);
|
|
18908
|
+
async function taskShow(id, location = {}) {
|
|
18909
|
+
const task = await cloud("GET", `/v1/tasks/${enc(await taskRef(id, location))}`);
|
|
18904
18910
|
const card = task.studio ? await cloud("GET", `/v1/tasks/${enc(task.id)}/card`).catch(() => null) : null;
|
|
18905
18911
|
say(`${task.key} ${task.title}`);
|
|
18906
18912
|
say(`${task.status}${task.studio ? ` ${task.studio.name}` : ""} ${taskUrl(task.key)}`);
|
|
@@ -18908,42 +18914,47 @@ async function taskShow(id) {
|
|
|
18908
18914
|
${card.body.trim()}`);
|
|
18909
18915
|
return { ...task, card };
|
|
18910
18916
|
}
|
|
18911
|
-
async function taskCreate(request2, opts) {
|
|
18917
|
+
async function taskCreate(request2, opts, location = {}) {
|
|
18912
18918
|
const text6 = request2.trim();
|
|
18913
18919
|
if (!text6) die("Say what the task is.", { kind: "bad-args", exitCode: 2 });
|
|
18914
18920
|
const line = text6.split("\n")[0].trim();
|
|
18915
18921
|
const title = line.length > 80 ? `${line.slice(0, 79)}\u2026` : line;
|
|
18922
|
+
const target = await project(opts.project, location);
|
|
18923
|
+
if (!opts.studio?.trim()) return refuse2("Choose --studio from akb studio list.", "no_studio");
|
|
18916
18924
|
const task = await cloud("POST", "/v1/tasks", {
|
|
18917
18925
|
title,
|
|
18918
18926
|
request: text6,
|
|
18919
|
-
project:
|
|
18920
|
-
|
|
18921
|
-
source: "api"
|
|
18927
|
+
project: target,
|
|
18928
|
+
studio: cloudStudio(opts.studio),
|
|
18929
|
+
source: "api",
|
|
18930
|
+
run: true
|
|
18922
18931
|
});
|
|
18923
18932
|
say(`Created ${task.key}: ${task.title} ${taskUrl(task.key)}`);
|
|
18933
|
+
say(`Status: ${task.status}${task.failure ? ` \u2014 ${task.failure}` : ""}`);
|
|
18924
18934
|
return { ...task };
|
|
18925
18935
|
}
|
|
18926
|
-
async function act(id, route2, body, done) {
|
|
18927
|
-
const ref = await taskRef(id);
|
|
18936
|
+
async function act(id, route2, body, done, location = {}) {
|
|
18937
|
+
const ref = await taskRef(id, location);
|
|
18928
18938
|
const value = await cloud("POST", `/v1/tasks/${enc(ref)}/${route2}`, body);
|
|
18929
18939
|
say(done(ref));
|
|
18930
18940
|
return value;
|
|
18931
18941
|
}
|
|
18932
|
-
async function taskApprove(id, comment, opts = {}) {
|
|
18942
|
+
async function taskApprove(id, comment, opts = {}, location = {}) {
|
|
18933
18943
|
const preview = opts.preview || opts.previewStage || opts.previewVersion || opts.definitionRevision ? previewConfirmation(opts) : null;
|
|
18934
18944
|
if (preview && (insideRun() || process.env[REPLY_APPROVAL_ENV] || process.env[PREVIEW_BRIDGE_ENV])) return refuse2("Only the user confirms a preview stage.", "preview_refused");
|
|
18935
|
-
const
|
|
18945
|
+
const ref = !preview && process.env[REPLY_APPROVAL_ENV] && !linked(location) ? id.trim() : await taskRef(id, location);
|
|
18946
|
+
const deferred = preview ? null : await approveAfterReply(ref, comment);
|
|
18936
18947
|
if (deferred) return deferred;
|
|
18937
|
-
const task = await cloud("GET", `/v1/tasks/${enc(
|
|
18948
|
+
const task = await cloud("GET", `/v1/tasks/${enc(ref)}`);
|
|
18938
18949
|
return act(task.key, "decisions", {
|
|
18939
18950
|
...preview ?? { decision: "approve" },
|
|
18940
18951
|
...comment?.trim() ? { comment: comment.trim() } : {},
|
|
18941
18952
|
...preview ? { review_revision: task.previewReviewRevision ?? task.review?.revision ?? 0 } : task.review ? { review_revision: task.review.revision } : {}
|
|
18942
18953
|
}, (k2) => `Approved ${k2}.`);
|
|
18943
18954
|
}
|
|
18944
|
-
async function taskUpdateQuestions(id, typed) {
|
|
18955
|
+
async function taskUpdateQuestions(id, typed, location = {}) {
|
|
18945
18956
|
const ops = readQuestionOps(typed);
|
|
18946
|
-
const ref = await taskRef(id);
|
|
18957
|
+
const ref = await taskRef(id, location);
|
|
18947
18958
|
const card = await cloud("GET", `/v1/tasks/${enc(ref)}/card`);
|
|
18948
18959
|
const questions = parseFrontmatter(card.body).meta?.questions ?? [];
|
|
18949
18960
|
let changes;
|
|
@@ -18978,8 +18989,8 @@ async function projectList(opts) {
|
|
|
18978
18989
|
for (const p2 of data) say(projectLine(p2));
|
|
18979
18990
|
return { data };
|
|
18980
18991
|
}
|
|
18981
|
-
async function runnerList(opts) {
|
|
18982
|
-
const held4 = await cloud("GET", `/v1/workspaces/${enc(await workspace(opts.workspace))}/runners`);
|
|
18992
|
+
async function runnerList(opts, location = {}) {
|
|
18993
|
+
const held4 = await cloud("GET", `/v1/workspaces/${enc(await workspace(opts.workspace, location))}/runners`);
|
|
18983
18994
|
for (const r2 of held4.runners) say(`${r2.name} ${r2.connected ? "online" : "offline"}`);
|
|
18984
18995
|
return held4;
|
|
18985
18996
|
}
|
|
@@ -19006,11 +19017,11 @@ var init_task = __esm({
|
|
|
19006
19017
|
WEB = () => process.env.WILDCRANE_WEB_URL || "https://app.wildcrane.ai";
|
|
19007
19018
|
taskUrl = (key) => `${WEB()}/tasks/${enc(key)}`;
|
|
19008
19019
|
projectLine = (p2) => `${p2.id} ${p2.prefix} ${p2.name}`;
|
|
19009
|
-
taskChat = (id, message) => act(id, "chat", { body: message }, (k2) => `Sent to ${k2}
|
|
19010
|
-
taskRemove = (id, reason) => act(id, "cancel", reason.trim() ? { reason: reason.trim() } : void 0, (k2) => `Removed ${k2}. Restore it on the web
|
|
19011
|
-
taskResume = (id) => act(id, "resume", void 0, (k2) => `Resumed ${k2}
|
|
19012
|
-
taskStop = (id) => act(id, "stop", void 0, (k2) => `Stopped ${k2}
|
|
19013
|
-
taskComment = (id, text6) => act(id, "comments", { body: text6 }, (k2) => `Commented on ${k2}
|
|
19020
|
+
taskChat = (id, message, location = {}) => act(id, "chat", { body: message }, (k2) => `Sent to ${k2}.`, location);
|
|
19021
|
+
taskRemove = (id, reason, location = {}) => act(id, "cancel", reason.trim() ? { reason: reason.trim() } : void 0, (k2) => `Removed ${k2}. Restore it on the web.`, location);
|
|
19022
|
+
taskResume = (id, location = {}) => act(id, "resume", void 0, (k2) => `Resumed ${k2}.`, location);
|
|
19023
|
+
taskStop = (id, location = {}) => act(id, "stop", void 0, (k2) => `Stopped ${k2}.`, location);
|
|
19024
|
+
taskComment = (id, text6, location = {}) => act(id, "comments", { body: text6 }, (k2) => `Commented on ${k2}.`, location);
|
|
19014
19025
|
}
|
|
19015
19026
|
});
|
|
19016
19027
|
|
|
@@ -27736,7 +27747,7 @@ ${m.body}`);
|
|
|
27736
27747
|
if (value.truncated) say(text5(`Showing ${value.messages.length} of ${value.total} messages.`, `\u663E\u793A ${value.total} \u6761\u4E2D\u7684 ${value.messages.length} \u6761\u3002`));
|
|
27737
27748
|
}
|
|
27738
27749
|
async function read2(id, opts, signal2) {
|
|
27739
|
-
const route2 = `/v1/tasks/${encodeURIComponent(await taskRef(id))}`;
|
|
27750
|
+
const route2 = `/v1/tasks/${encodeURIComponent(await taskRef(id, opts))}`;
|
|
27740
27751
|
const [task, chat] = await Promise.all([cloud("GET", route2, void 0, signal2), cloud("GET", `${route2}/chat`, void 0, signal2)]);
|
|
27741
27752
|
return { route: route2, chat, value: snapshot(task, chat, opts) };
|
|
27742
27753
|
}
|
|
@@ -27887,7 +27898,7 @@ var init_task_chat = __esm({
|
|
|
27887
27898
|
var add_task_default;
|
|
27888
27899
|
var init_add_task = __esm({
|
|
27889
27900
|
"../cli/src/guide/add-task.md"() {
|
|
27890
|
-
add_task_default =
|
|
27901
|
+
add_task_default = "# Add tasks\n\nCreate new work with `akb task create`; read its `--help` for options.\n\n- **Modules**: read `docs/kanban/modules.md` and relevant project context; follow\n `akb guide module-map` when no tag fits.\n\n## Group tasks\n\nUse a group when several tasks deliver one larger outcome; otherwise keep them independent.\n\n- **Creation**: create the root first, then its subtasks.\n- **Relationships**: link group members with `related`; use `blocked_by` for actual dependencies.\n- **Layout**: once their cards are prepared, place the root at `todo/<id>-<slug>/root.md`\n and the subtask files beside it; update their paths in `todo/README.md`.\n- **Tracking**: the root's `## Todo` lists its subtasks, one line each ending in `#<subid>`.\n\nFollow `akb guide writing` when editing a card.\n";
|
|
27891
27902
|
}
|
|
27892
27903
|
});
|
|
27893
27904
|
|
|
@@ -27903,7 +27914,7 @@ var init_archive2 = __esm({
|
|
|
27903
27914
|
var board_default;
|
|
27904
27915
|
var init_board3 = __esm({
|
|
27905
27916
|
"../cli/src/guide/board.md"() {
|
|
27906
|
-
board_default = "# How this board works\n\nThese rules apply to every card studio. Read them once; each studio's guide covers\nthe remaining details.\n\n## Layout\n\n```\ndocs/kanban/\n\u251C\u2500\u2500 todo/ open tasks\n\u2502 \u251C\u2500\u2500 README.md the index \u2014 read it first\n\u2502 \u2514\u2500\u2500 <id>-<slug>.md\n\u2502 one card per file; a group keeps its cards in one folder\n\u251C\u2500\u2500 memory/ all memory \u2014 see \"Who owns a memory file\"\n\u2502 \u251C\u2500\u2500 readme.md what shipped \u2014 the board's own record\n\u2502 \u251C\u2500\u2500 project.md what the project is today \u2014 written only by `akb raw describe-project`\n\u2502 \u251C\u2500\u2500 <name>/ a global memory: `MEMORY.md` (its rules, unless built in), `README.md`\n\u2502 \u2502 (its index) and its entries\n\u2502 \u2514\u2500\u2500 agents/ one folder per agent that keeps memory, named after it \u2014\n\u2502 `planner/` holds `decisions.md`, `rejected.md`, `redesign.md`\n\u251C\u2500\u2500 rules/ `<agent>.md` \u2014 the user's rule for one agent, appended to every run it\n\u2502 does; written from the web or `akb studio instructions`\n\u251C\u2500\u2500 triage/ items waiting to be sorted, one file each \u2014 not cards. Only\n\u2502 \u2502 Cloud's sort or Refine idea on the web's Triage page turns one\n\u2502 \u2502 into a card; `akb raw triage check <source-id>` finds an existing one\n\u2502 \u251C\u2500\u2500 archived/ items a card was made of\n\u2502 \u251C\u2500\u2500 dismissed/ items ignored, with the reason\n\u2502 \u2514\u2500\u2500 files/ dropped-in files\n\u2514\u2500\u2500 modules.md one line per module \u2014 `akb guide module-map` writes it\n```\n\n## Task ID\n\nEvery task's id is the number at the front of its filename (`04-plan-cap-enforcement.md` \u2192\nid 4): its Cloud task's number (`WC-4`). Only Cloud assigns one
|
|
27917
|
+
board_default = "# How this board works\n\nThese rules apply to every card studio. Read them once; each studio's guide covers\nthe remaining details.\n\n## Layout\n\n```\ndocs/kanban/\n\u251C\u2500\u2500 todo/ open tasks\n\u2502 \u251C\u2500\u2500 README.md the index \u2014 read it first\n\u2502 \u2514\u2500\u2500 <id>-<slug>.md\n\u2502 one card per file; a group keeps its cards in one folder\n\u251C\u2500\u2500 memory/ all memory \u2014 see \"Who owns a memory file\"\n\u2502 \u251C\u2500\u2500 readme.md what shipped \u2014 the board's own record\n\u2502 \u251C\u2500\u2500 project.md what the project is today \u2014 written only by `akb raw describe-project`\n\u2502 \u251C\u2500\u2500 <name>/ a global memory: `MEMORY.md` (its rules, unless built in), `README.md`\n\u2502 \u2502 (its index) and its entries\n\u2502 \u2514\u2500\u2500 agents/ one folder per agent that keeps memory, named after it \u2014\n\u2502 `planner/` holds `decisions.md`, `rejected.md`, `redesign.md`\n\u251C\u2500\u2500 rules/ `<agent>.md` \u2014 the user's rule for one agent, appended to every run it\n\u2502 does; written from the web or `akb studio instructions`\n\u251C\u2500\u2500 triage/ items waiting to be sorted, one file each \u2014 not cards. Only\n\u2502 \u2502 Cloud's sort or Refine idea on the web's Triage page turns one\n\u2502 \u2502 into a card; `akb raw triage check <source-id>` finds an existing one\n\u2502 \u251C\u2500\u2500 archived/ items a card was made of\n\u2502 \u251C\u2500\u2500 dismissed/ items ignored, with the reason\n\u2502 \u2514\u2500\u2500 files/ dropped-in files\n\u2514\u2500\u2500 modules.md one line per module \u2014 `akb guide module-map` writes it\n```\n\n## Task ID\n\nEvery task's id is the number at the front of its filename (`04-plan-cap-enforcement.md` \u2192\nid 4): its Cloud task's number (`WC-4`). Only Cloud assigns one.\n\n## Never hand-write a card's frontmatter\n\n`akb raw update` and `update-questions` manage an existing card's frontmatter,\nincluding its `previews`. Edit only the card's **body** by hand. `akb raw help`\nlists all operations; `akb raw help <move>` explains one operation.\n\n## Inside a board run\n\nA board run carries `KANBAN_RUN` in its environment. Never unset or bypass it (for example\n`env -u KANBAN_RUN`): when a command only prints a flow, follow the printed flow.\n\n## Group task\n\nA group lives in `todo/<id>-<slug>/`: `root.md` tracks the whole job and each subtask is its\nown card beside it; `akb guide add-task` says how to build one. The root's `## Todo` lists the\nsubtasks, one line each ending in `#<subid>`: archiving a subtask ticks its line, rejecting\none strikes it through, and resolving the last line archives the root in the same run, with\nany open question or unticked todo of its own. A board a Runner keeps leaves that close to\nCloud, which waits for the root to be queued with no step on it. A root listing no subtasks is\nonly closed by hand.\n\n## Who owns a memory file\n\n**A memory file belongs to whoever reads and writes it.**\n\n- **`memory/readme.md`**: the board's record of shipped user-facing work.\n- **`memory/project.md`**: what the project is today, from its users' side, and the\n direction every judgement serves. Only `akb raw describe-project` writes it.\n- **`memory/agents/planner/`**: `decisions.md` holds user-facing answers that guide future\n planning and `redesign.md` design mistakes to avoid, both written by the memory review (`akb\n guide review-memory`); `rejected.md` holds what the user turned down and why, written only\n by the rejection and dismissal review (`akb guide review-rejections`). Other flows only read\n them, `akb raw memory prune` aside.\n- **`memory/<name>/`**: a global memory, kept by every agent listing it under `akb.memory`\n by the rules each run is given. Only the user changes its `MEMORY.md`, from the board UI.\n- **`memory/agents/<agent>/`**: an agent keeps only the files and split paths its own AGENT.md\n declares, plus the `redesign.md` the memory review writes there. An agent whose instructions\n name none keeps none.\n\nFile a planning note about one module in that module's folder,\n`memory/agents/planner/<module>/`, under the same file name, creating it if missing. A note\nspanning modules, or from a card with none, stays in `memory/agents/planner/`.\n\n### What earns a note\n\nOnly what changes a future planning choice. Writing nothing is a complete outcome.\n\n- **Honor an opt-out**: told not to record, write no memory and finish the requested action.\n- **A conversation writes none**: a card chat, a discussion, a feedback conversation, and\n any flow started in it write no memory and say nothing about it.\n- **Require lasting value**: a durable preference, constraint, decision, or lesson.\n- **Skip housekeeping**: duplicates, routine status changes, and facts recorded elsewhere.\n A rejected duplicate is not a rejected feature.\n- **Merge, don't repeat**: rewrite an equivalent entry in place.\n\n`readme.md` is not planning memory.\n";
|
|
27907
27918
|
}
|
|
27908
27919
|
});
|
|
27909
27920
|
|
|
@@ -28063,7 +28074,7 @@ var init_write_prompt = __esm({
|
|
|
28063
28074
|
var writing_default;
|
|
28064
28075
|
var init_writing = __esm({
|
|
28065
28076
|
"../cli/src/guide/writing.md"() {
|
|
28066
|
-
writing_default = "# Write a card\n\nA card has a **human half** for review and a folded **agent half** for implementation.\nUse this order and keep the English section titles and empty scaffold sections:\n\n```text\n<One short paragraph: the problem and the intended result.>\n\n## Worth noting <- user's answers first, then material decisions; empty if none\n- **<decision>**: <chosen behavior and main cost in one sentence>\n\n## Worth noting after implementation\n- **<decision>**: <chosen behavior and main cost in one sentence>\n <- settled by the build; omit when empty; no logs or open questions\n\n## By `<name>` agent <- preview owned by that agent\n\n<!-- agent --> <- folded content starts here\n\n## Scope <- requirements, not rationale\n### Done when <- acceptance checklist, when supplied\n- [ ] <observable result>\n\n## Todo <- implementation only; finish planning before writing steps\n- [ ] <one build step>\n\n## Decided by the agent <- other decisions and non-obvious findings the build needs\n- **<decision>**: <answer and required action>\n### Overruled by the user <- superseded decisions, always last\n```\n\n- **Decisions**: use the material-decision test in `akb guide update-questions` for Worth noting;\n merge entries governed by one policy and keep only the decision and its main cost.\n- **Delivery boundary**: Worth noting after implementation never changes approved scope or\n blocks an ongoing delivery; the build must fix deviations or refer them to the user.\n- **Preview ownership**: produce preview sections only by running their agent; before changing\n owned content, read `akb raw file <studio> agents/<agent>/AGENT.md` and the studio's\n `shared/RULES.md`, then only the files needed for that change with `akb raw file <studio> <path>`;\n report unreadable rules before proceeding.\n- **Preserve work**: leave checked todos and supplied Done when checklists unchanged; append a\n todo to reverse completed work, and move user-overruled decisions to Overruled by the user\n until the card leaves no room to repeat them.\n- **Writing**: write clear behavior and necessary tradeoffs for a fresh reader, keep the human\n half self-contained, and state each fact once.\n- **Agent half**: keep only implementation-critical information not stated elsewhere; omit\n process logs and routine implementation planning, and leave unneeded sections empty.\n- **Frontmatter**: never edit frontmatter by hand; use `akb raw
|
|
28077
|
+
writing_default = "# Write a card\n\nA card has a **human half** for review and a folded **agent half** for implementation.\nUse this order and keep the English section titles and empty scaffold sections:\n\n```text\n<One short paragraph: the problem and the intended result.>\n\n## Worth noting <- user's answers first, then material decisions; empty if none\n- **<decision>**: <chosen behavior and main cost in one sentence>\n\n## Worth noting after implementation\n- **<decision>**: <chosen behavior and main cost in one sentence>\n <- settled by the build; omit when empty; no logs or open questions\n\n## By `<name>` agent <- preview owned by that agent\n\n<!-- agent --> <- folded content starts here\n\n## Scope <- requirements, not rationale\n### Done when <- acceptance checklist, when supplied\n- [ ] <observable result>\n\n## Todo <- implementation only; finish planning before writing steps\n- [ ] <one build step>\n\n## Decided by the agent <- other decisions and non-obvious findings the build needs\n- **<decision>**: <answer and required action>\n### Overruled by the user <- superseded decisions, always last\n```\n\n- **Decisions**: use the material-decision test in `akb guide update-questions` for Worth noting;\n merge entries governed by one policy and keep only the decision and its main cost.\n- **Delivery boundary**: Worth noting after implementation never changes approved scope or\n blocks an ongoing delivery; the build must fix deviations or refer them to the user.\n- **Preview ownership**: produce preview sections only by running their agent; before changing\n owned content, read `akb raw file <studio> agents/<agent>/AGENT.md` and the studio's\n `shared/RULES.md`, then only the files needed for that change with `akb raw file <studio> <path>`;\n report unreadable rules before proceeding.\n- **Preserve work**: leave checked todos and supplied Done when checklists unchanged; append a\n todo to reverse completed work, and move user-overruled decisions to Overruled by the user\n until the card leaves no room to repeat them.\n- **Writing**: write clear behavior and necessary tradeoffs for a fresh reader, keep the human\n half self-contained, and state each fact once.\n- **Agent half**: keep only implementation-critical information not stated elsewhere; omit\n process logs and routine implementation planning, and leave unneeded sections empty.\n- **Frontmatter**: never edit frontmatter by hand; use `akb raw update` or `update-questions`.\n- **Validate**: run `akb raw validate <id>` after edits and fix every reported file and line.\n";
|
|
28067
28078
|
}
|
|
28068
28079
|
});
|
|
28069
28080
|
|
|
@@ -115831,7 +115842,7 @@ async function onBoard2(cmd, cli, work) {
|
|
|
115831
115842
|
}
|
|
115832
115843
|
async function boardless(cmd, cli, work) {
|
|
115833
115844
|
const ctx = ctxOf(cmd, cli.program);
|
|
115834
|
-
await runAction(ctx, {}, async () => await work(cli.program) ?? {});
|
|
115845
|
+
await runAction(ctx, {}, async () => await work(cli.program, { board: ctx.board, dir: ctx.dir, cwd: cli.cwd }) ?? {});
|
|
115835
115846
|
}
|
|
115836
115847
|
function nounOf(program2, name, summary2, description) {
|
|
115837
115848
|
const cmd = withShared(program2.command(name)).summary(summary2);
|
|
@@ -115919,39 +115930,39 @@ function declareRuns(program2, cli) {
|
|
|
115919
115930
|
this.help();
|
|
115920
115931
|
});
|
|
115921
115932
|
withShared(task.command("list")).summary("list tasks").option("--project <id>", "the project; default: this folder\u2019s linked one").option("--workspace <id>", "every project of a workspace").option("--status <status>", "queued, running, waiting_review, done, failed, cancelled or stopped").action(async function() {
|
|
115922
|
-
await boardless(this, cli, () => taskList(this.opts()));
|
|
115933
|
+
await boardless(this, cli, (_2, location) => taskList(this.opts(), location));
|
|
115923
115934
|
});
|
|
115924
115935
|
withShared(task.command("show")).argument("<task>").summary("a task and its card").action(async function(id) {
|
|
115925
|
-
await boardless(this, cli, () => taskShow(id));
|
|
115936
|
+
await boardless(this, cli, (_2, location) => taskShow(id, location));
|
|
115926
115937
|
});
|
|
115927
|
-
withShared(task.command("create")).argument("<request...>", "what the task should do").summary("create a task").option("--project <id>", "the project; default: this folder\u2019s linked one").option("--studio <id>", "a name `akb studio list` shows").action(async function(request2) {
|
|
115928
|
-
await boardless(this, cli, () => taskCreate(request2.join(" "), this.opts()));
|
|
115938
|
+
withShared(task.command("create")).argument("<request...>", "what the task should do").summary("create a task and prepare its card asynchronously").option("--project <id>", "the project; default: this folder\u2019s linked one").option("--studio <id>", "required: a name `akb studio list` shows").action(async function(request2) {
|
|
115939
|
+
await boardless(this, cli, (_2, location) => taskCreate(request2.join(" "), this.opts(), location));
|
|
115929
115940
|
});
|
|
115930
115941
|
withShared(task.command("approve")).argument("<task>").summary("approve the current review point").option("--preview <agent>", "confirm this preview\u2019s intermediate stage").option("--preview-stage <id>", "the stage reviewed").option("--preview-version <n>", "the version reviewed").option("--definition-revision <revision>", "the frozen definition reviewed").option("--comment <text>", "a note with the approval").action(async function(id) {
|
|
115931
|
-
await boardless(this, cli, () => taskApprove(id, this.opts().comment, this.opts()));
|
|
115942
|
+
await boardless(this, cli, (_2, location) => taskApprove(id, this.opts().comment, this.opts(), location));
|
|
115932
115943
|
});
|
|
115933
115944
|
const questionOps = [];
|
|
115934
115945
|
const opInOrder = ordered(questionOps);
|
|
115935
115946
|
withShared(task.command("update-questions")).argument("<task>").summary("edit the task's open questions, like `raw update-questions`").description("Positions are 1-based, in the order of the card\u2019s `questions:` (`akb task show`). --option, --recommended-option, --mode and --agent attach to the --append or --update before them.").option("--append <text>", "add one question to the end", opInOrder("append")).option("--update <n> <text...>", "rewrite question <n> whole", opInOrder("update")).option("--drop <positions>", "remove questions, e.g. 1 or 1,3", opInOrder("drop")).option("--clear", "remove every open question", opInOrder("clear")).option("--option <text>", "a choice for the op before it", opInOrder("option")).option("--recommended-option <text>", "a choice for the op before it, ticked to start", opInOrder("recommended-option")).option("--mode <mode>", "how many choices the op before it takes: single | multi", opInOrder("mode")).option("--agent <name>", "the preview agent whose section the op before it is about", opInOrder("agent")).action(async function(id) {
|
|
115936
|
-
await boardless(this, cli, () => taskUpdateQuestions(id, questionOps));
|
|
115947
|
+
await boardless(this, cli, (_2, location) => taskUpdateQuestions(id, questionOps, location));
|
|
115937
115948
|
});
|
|
115938
115949
|
withShared(task.command("chat")).argument("<task>").argument("[message...]").summary("read task chat history, follow or stop its reply, or send a message").description("Without a message, read the last 20 messages and the chat reply state separately from task execution. --follow tracks only the reply present at the start; Ctrl+C disconnects locally. --stop stops only that reply. --follow --json emits JSON Lines; other modes return one JSON object.").option("--limit <n>", "show the last n messages, oldest first (default: 20)", intInRange(1, Number.MAX_SAFE_INTEGER)).option("--all", "show all retained messages").option("--follow", "follow this reply to its result, then exit").option("--stop", "request stopping only the current chat reply").addHelpText("after", '\nExamples:\n akb task chat WC-12\n akb task chat 12 --all --json\n akb task chat 12 --follow --json\n akb task chat 12 --stop\n akb task chat 12 "Revise the draft"').action(async function(id, message) {
|
|
115939
115950
|
const opts = this.opts();
|
|
115940
115951
|
validateChatOptions(message, opts);
|
|
115941
|
-
if (opts.follow) return taskChatFollow(id, { ...opts,
|
|
115942
|
-
await boardless(this, cli, () => message.length ? taskChat(id, message.join(" ")) : taskChatRead(id, opts));
|
|
115952
|
+
if (opts.follow) return taskChatFollow(id, { ...opts, ...ctxOf(this, cli.program), cwd: cli.cwd });
|
|
115953
|
+
await boardless(this, cli, (_2, location) => message.length ? taskChat(id, message.join(" "), location) : taskChatRead(id, { ...opts, ...location }));
|
|
115943
115954
|
});
|
|
115944
115955
|
withShared(task.command("remove")).argument("<task>").argument("[reason...]").summary("remove a task; restore it on the web").action(async function(id, reason) {
|
|
115945
|
-
await boardless(this, cli, () => taskRemove(id, reason.join(" ")));
|
|
115956
|
+
await boardless(this, cli, (_2, location) => taskRemove(id, reason.join(" "), location));
|
|
115946
115957
|
});
|
|
115947
115958
|
withShared(task.command("resume")).argument("<task>").summary("continue its stopped run").action(async function(id) {
|
|
115948
|
-
await boardless(this, cli, () => taskResume(id));
|
|
115959
|
+
await boardless(this, cli, (_2, location) => taskResume(id, location));
|
|
115949
115960
|
});
|
|
115950
115961
|
withShared(task.command("stop")).argument("<task>").summary("stop its current run").action(async function(id) {
|
|
115951
|
-
await boardless(this, cli, () => taskStop(id));
|
|
115962
|
+
await boardless(this, cli, (_2, location) => taskStop(id, location));
|
|
115952
115963
|
});
|
|
115953
115964
|
withShared(task.command("comment")).argument("<task>").argument("<text...>").summary("comment on a task").action(async function(id, text6) {
|
|
115954
|
-
await boardless(this, cli, () => taskComment(id, text6.join(" ")));
|
|
115965
|
+
await boardless(this, cli, (_2, location) => taskComment(id, text6.join(" "), location));
|
|
115955
115966
|
});
|
|
115956
115967
|
const goal = withShared(program2.command("goal")).argument("<move>", "new, save, drop or start").summary("save, drop and start goals of this conversation").description('Write a temporary draft, then goal new --title "\u2026" --body-file <file> [--studio <id>] [--previews <agents>]; update with goal save --id <goal> and any of --title, --body-file, --studio, --previews. goal drop --id <goal> withdraws one; goal start --id <goal> turns it into a task. A `## Done when` list in the body is what counts as done. Studios are the ones `akb studio list` shows.').option("--id <goal>", "the goal to save, drop or start").option("--title <title>", "what the goal is called").option("--body-file <path>", "the outcome, then a `## Done when` list").option("--studio <id>", "the studio that does the work, from `akb studio list`").option("--previews <agents>", "review points, comma-separated; empty clears the selection");
|
|
115957
115968
|
goal.action(async function(sub) {
|
|
@@ -115964,7 +115975,7 @@ function declareRuns(program2, cli) {
|
|
|
115964
115975
|
await boardless(this, cli, () => projectList(this.opts()));
|
|
115965
115976
|
});
|
|
115966
115977
|
withShared(withShared(program2.command("runner")).summary("the computers that run a workspace\u2019s tasks").command("list")).summary("list Runners").option("--workspace <id>", "default: the linked project\u2019s").action(async function() {
|
|
115967
|
-
await boardless(this, cli, () => runnerList(this.opts()));
|
|
115978
|
+
await boardless(this, cli, (_2, location) => runnerList(this.opts(), location));
|
|
115968
115979
|
});
|
|
115969
115980
|
const account = withShared(program2.command("account")).summary("the account this MACHINE acts as").description(
|
|
115970
115981
|
`A sign-in is started in the WildCrane app, under Configuration \u2192 Cloud, and nowhere else: the consent screen opens in your own browser and comes back to the app. Once per machine \u2014 every \`${cli.program}\` on it then acts as that account, because they read the one session the app wrote, outside every repository. Cloud is an invite-only preview.`
|
package/dist/akb/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"wildcrane","version":"0.11.
|
|
1
|
+
{"name":"wildcrane","version":"0.11.68","akbContract":17,"type":"module","private":true}
|
package/dist/akb-proxy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.84 — 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/codex-proxy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.84 — 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/codex-retained.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.84 — 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.
|
|
1
|
+
// wildcrane-runner 0.6.84 — 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;
|
|
@@ -112081,7 +112081,7 @@ async function studioSnapshot(workspace, catalog, list3) {
|
|
|
112081
112081
|
}
|
|
112082
112082
|
|
|
112083
112083
|
// src/protocol.ts
|
|
112084
|
-
var AKB_VERSION = true ? "0.11.
|
|
112084
|
+
var AKB_VERSION = true ? "0.11.68" : "0.0.0";
|
|
112085
112085
|
var AKB_CONTRACT = true ? 17 : 0;
|
|
112086
112086
|
|
|
112087
112087
|
// src/secrets.ts
|
|
@@ -116527,7 +116527,7 @@ function createTail(log) {
|
|
|
116527
116527
|
// ../cli/package.json
|
|
116528
116528
|
var package_default = {
|
|
116529
116529
|
name: "wildcrane",
|
|
116530
|
-
version: "0.11.
|
|
116530
|
+
version: "0.11.68",
|
|
116531
116531
|
akbContract: 17,
|
|
116532
116532
|
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.",
|
|
116533
116533
|
keywords: [
|
package/dist/launcher.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.84 — 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;
|
|
@@ -26903,8 +26903,8 @@ function saveAlphaUpdates(value) {
|
|
|
26903
26903
|
}
|
|
26904
26904
|
|
|
26905
26905
|
// src/protocol.ts
|
|
26906
|
-
var VERSION = true ? "0.6.
|
|
26907
|
-
var AKB_VERSION = true ? "0.11.
|
|
26906
|
+
var VERSION = true ? "0.6.84" : "0.0.0";
|
|
26907
|
+
var AKB_VERSION = true ? "0.11.68" : "0.0.0";
|
|
26908
26908
|
var EXIT_REFUSED = 10;
|
|
26909
26909
|
var EXIT_OUTDATED = 11;
|
|
26910
26910
|
var EXIT_UPDATE = 12;
|
|
@@ -31141,7 +31141,7 @@ function createTail(log) {
|
|
|
31141
31141
|
// ../cli/package.json
|
|
31142
31142
|
var package_default = {
|
|
31143
31143
|
name: "wildcrane",
|
|
31144
|
-
version: "0.11.
|
|
31144
|
+
version: "0.11.68",
|
|
31145
31145
|
akbContract: 17,
|
|
31146
31146
|
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.",
|
|
31147
31147
|
keywords: [
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.84 — 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;
|
|
@@ -73849,8 +73849,8 @@ function machineId() {
|
|
|
73849
73849
|
var machineName = () => os3.hostname().replace(/\.local$/, "");
|
|
73850
73850
|
|
|
73851
73851
|
// src/protocol.ts
|
|
73852
|
-
var VERSION = true ? "0.6.
|
|
73853
|
-
var AKB_VERSION = true ? "0.11.
|
|
73852
|
+
var VERSION = true ? "0.6.84" : "0.0.0";
|
|
73853
|
+
var AKB_VERSION = true ? "0.11.68" : "0.0.0";
|
|
73854
73854
|
var EXIT_REFUSED = 10;
|
|
73855
73855
|
var EXIT_OUTDATED = 11;
|
|
73856
73856
|
var EXIT_UPDATE = 12;
|
|
@@ -77722,7 +77722,7 @@ function createTail(log) {
|
|
|
77722
77722
|
// ../cli/package.json
|
|
77723
77723
|
var package_default = {
|
|
77724
77724
|
name: "wildcrane",
|
|
77725
|
-
version: "0.11.
|
|
77725
|
+
version: "0.11.68",
|
|
77726
77726
|
akbContract: 17,
|
|
77727
77727
|
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.",
|
|
77728
77728
|
keywords: [
|
package/dist/runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.84 — 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;
|
|
@@ -112193,8 +112193,8 @@ function status(line) {
|
|
|
112193
112193
|
}
|
|
112194
112194
|
|
|
112195
112195
|
// src/protocol.ts
|
|
112196
|
-
var VERSION = true ? "0.6.
|
|
112197
|
-
var AKB_VERSION = true ? "0.11.
|
|
112196
|
+
var VERSION = true ? "0.6.84" : "0.0.0";
|
|
112197
|
+
var AKB_VERSION = true ? "0.11.68" : "0.0.0";
|
|
112198
112198
|
var AKB_CONTRACT = true ? 17 : 0;
|
|
112199
112199
|
var EXIT_REFUSED = 10;
|
|
112200
112200
|
var EXIT_OUTDATED = 11;
|
|
@@ -114328,7 +114328,7 @@ function createTail(log) {
|
|
|
114328
114328
|
// ../cli/package.json
|
|
114329
114329
|
var package_default = {
|
|
114330
114330
|
name: "wildcrane",
|
|
114331
|
-
version: "0.11.
|
|
114331
|
+
version: "0.11.68",
|
|
114332
114332
|
akbContract: 17,
|
|
114333
114333
|
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.",
|
|
114334
114334
|
keywords: [
|
package/dist/settings.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.84 — 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;
|
|
@@ -27370,8 +27370,8 @@ async function stopExecutors() {
|
|
|
27370
27370
|
}
|
|
27371
27371
|
|
|
27372
27372
|
// src/protocol.ts
|
|
27373
|
-
var VERSION = true ? "0.6.
|
|
27374
|
-
var AKB_VERSION = true ? "0.11.
|
|
27373
|
+
var VERSION = true ? "0.6.84" : "0.0.0";
|
|
27374
|
+
var AKB_VERSION = true ? "0.11.68" : "0.0.0";
|
|
27375
27375
|
|
|
27376
27376
|
// src/api.ts
|
|
27377
27377
|
var RUNTIMES = ["claude-code", "codex", "cursor", "opencode", "kimi", "dsh", "zcode", "grok", "antigravity"];
|
|
@@ -30409,7 +30409,7 @@ function createTail(log) {
|
|
|
30409
30409
|
// ../cli/package.json
|
|
30410
30410
|
var package_default = {
|
|
30411
30411
|
name: "wildcrane",
|
|
30412
|
-
version: "0.11.
|
|
30412
|
+
version: "0.11.68",
|
|
30413
30413
|
akbContract: 17,
|
|
30414
30414
|
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.",
|
|
30415
30415
|
keywords: [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wildcrane-runner",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "WildCrane's Local Runner
|
|
3
|
+
"version": "0.6.84",
|
|
4
|
+
"description": "WildCrane's Local Runner \u2014 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/",
|
|
7
7
|
"repository": {
|