wildcrane-runner 0.6.79 → 0.6.80
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/README.md +5 -1
- package/dist/akb/dist/kanban.mjs +92 -142
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +1 -1
- package/dist/codex-proxy.mjs +1082 -680
- package/dist/{codex-service-main.mjs → codex-retained.mjs} +402 -2515
- package/dist/flow-worker-main.mjs +403 -428
- package/dist/launcher.mjs +849 -813
- package/dist/plugin.mjs +1115 -1079
- package/dist/runner.mjs +1091 -921
- package/dist/settings.mjs +1042 -1006
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,12 +11,16 @@ wildcrane-runner
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
首次启动会打开浏览器登录。独立 Runner 与插件内的 Runner 每分钟检查云端指定版本,
|
|
14
|
-
|
|
14
|
+
下载成功后自动保存交接并替换 Runner,独立执行中的任务继续运行。下载失败继续使用当前版本,
|
|
15
15
|
新版无法启动则自动回退。已有 Runner 需要先手动更新一次,才能获得自动更新能力。
|
|
16
16
|
|
|
17
17
|
更新交接的作业保留 7 天,期间断网会等待重连。已完成的结果直接回写;操作结果不明或
|
|
18
18
|
连接器无法提供恢复依据时,任务会提示检查后续跑,避免重复执行。
|
|
19
19
|
|
|
20
|
+
Codex 由 Runner 管理原生 App Server,任务直接连接;Runner 更新或崩溃不会断开原有任务。
|
|
21
|
+
需要支持原生持久监听的 Codex(已验证 0.169.0-alpha.11.1);不支持时会在提交任务前提示更新。
|
|
22
|
+
旧共享服务上的任务与保留服务先安全结束,新任务使用新路径;状态不明的旧工作会保留。
|
|
23
|
+
|
|
20
24
|
- **看板与技能**:通过插件连接云端项目;Runner 在绑定目录和运行任务时把 kanban 技能写入项目,无需手动安装,并维护提交保护,保留用户文件和已有钩子。
|
|
21
25
|
|
|
22
26
|
- **Node**: 22 or newer.
|
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.64 — 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;
|
|
@@ -854,6 +854,76 @@ var init_identity = __esm({
|
|
|
854
854
|
}
|
|
855
855
|
});
|
|
856
856
|
|
|
857
|
+
// ../cli/src/lib/agent/capabilities.ts
|
|
858
|
+
function harnessGaps(harness) {
|
|
859
|
+
return CAPABILITIES.filter((c2) => !c2.has(harness)).map(({ id, label, blurb }) => ({ id, label, blurb }));
|
|
860
|
+
}
|
|
861
|
+
var CAPABILITIES;
|
|
862
|
+
var init_capabilities = __esm({
|
|
863
|
+
"../cli/src/lib/agent/capabilities.ts"() {
|
|
864
|
+
"use strict";
|
|
865
|
+
CAPABILITIES = [
|
|
866
|
+
{
|
|
867
|
+
id: "resume",
|
|
868
|
+
label: "Chat and resume",
|
|
869
|
+
blurb: "No conversations, and a run that stops short starts over.",
|
|
870
|
+
has: (h3) => h3.resumes
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
id: "early-resume",
|
|
874
|
+
label: "Early-crash resume",
|
|
875
|
+
blurb: "A run that fails in its first seconds starts over.",
|
|
876
|
+
// Two ways a run that died in its first seconds still has somewhere to go back to: the
|
|
877
|
+
// agent took the id we generated, or it minted one and had already saved the session
|
|
878
|
+
// under it. Anything else leaves the crash ahead of the id.
|
|
879
|
+
has: (h3) => h3.adoptsSessionId || h3.savesSessionAtOpen
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
id: "cost",
|
|
883
|
+
label: "Run cost",
|
|
884
|
+
blurb: "No price in the runs panel.",
|
|
885
|
+
has: (h3) => h3.reports.includes("cost")
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
id: "tokens",
|
|
889
|
+
label: "Token counts",
|
|
890
|
+
blurb: "No token numbers in the runs panel.",
|
|
891
|
+
has: (h3) => h3.reports.includes("tokens")
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
id: "model",
|
|
895
|
+
label: "Model name",
|
|
896
|
+
blurb: "The runs panel shows no model.",
|
|
897
|
+
has: (h3) => h3.reports.includes("model")
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
id: "context",
|
|
901
|
+
label: "Context window",
|
|
902
|
+
blurb: "No context ring on chats or runs.",
|
|
903
|
+
has: (h3) => h3.reports.includes("context")
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
id: "rate-limit",
|
|
907
|
+
label: "Rate-limit exit",
|
|
908
|
+
blurb: "A rate-limited run waits it out, holding its card.",
|
|
909
|
+
has: (h3) => h3.stopsOnRateLimit
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
id: "retry",
|
|
913
|
+
label: "Provider retry",
|
|
914
|
+
blurb: "A passing provider failure ends the run.",
|
|
915
|
+
has: (h3) => h3.transient !== void 0
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
id: "images",
|
|
919
|
+
label: "Pasted pictures",
|
|
920
|
+
blurb: "A picture pasted into a chat is turned away.",
|
|
921
|
+
has: (h3) => h3.images !== void 0
|
|
922
|
+
}
|
|
923
|
+
];
|
|
924
|
+
}
|
|
925
|
+
});
|
|
926
|
+
|
|
857
927
|
// ../cli/src/lib/machine/home.ts
|
|
858
928
|
import os2 from "node:os";
|
|
859
929
|
import path7 from "node:path";
|
|
@@ -1227,12 +1297,11 @@ function machineFile(name, text5) {
|
|
|
1227
1297
|
fs9.writeFileSync(file2, text5);
|
|
1228
1298
|
return file2;
|
|
1229
1299
|
}
|
|
1230
|
-
var
|
|
1300
|
+
var RAW_ARGS_KEY, MODEL_KEY, RAW_ARGS, MCP_CONFIG;
|
|
1231
1301
|
var init_types = __esm({
|
|
1232
1302
|
"../cli/src/lib/agent/harnesses/types.ts"() {
|
|
1233
1303
|
"use strict";
|
|
1234
1304
|
init_home();
|
|
1235
|
-
SKILL_SENTENCE = "Use the kanban skill";
|
|
1236
1305
|
RAW_ARGS_KEY = "args";
|
|
1237
1306
|
MODEL_KEY = "model";
|
|
1238
1307
|
RAW_ARGS = {
|
|
@@ -1824,7 +1893,6 @@ ${rule}
|
|
|
1824
1893
|
adoptsSessionId: false,
|
|
1825
1894
|
savesSessionAtOpen: false,
|
|
1826
1895
|
stopsOnRateLimit: false,
|
|
1827
|
-
skillCall: SKILL_SENTENCE,
|
|
1828
1896
|
// `models` is read-only. Only explicit authentication errors mean signed out.
|
|
1829
1897
|
login: {
|
|
1830
1898
|
args: ["models"],
|
|
@@ -3139,7 +3207,7 @@ var init_package = __esm({
|
|
|
3139
3207
|
"../cli/package.json"() {
|
|
3140
3208
|
package_default = {
|
|
3141
3209
|
name: "wildcrane",
|
|
3142
|
-
version: "0.11.
|
|
3210
|
+
version: "0.11.64",
|
|
3143
3211
|
akbContract: 17,
|
|
3144
3212
|
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.",
|
|
3145
3213
|
keywords: [
|
|
@@ -5149,8 +5217,6 @@ var init_claude_code = __esm({
|
|
|
5149
5217
|
savesSessionAtOpen: false,
|
|
5150
5218
|
// Its own Read tool opens an image file, so a path in the message is the whole of it.
|
|
5151
5219
|
images: { as: "message" },
|
|
5152
|
-
// Claude Code loads a skill from its slash name.
|
|
5153
|
-
skillCall: "/kanban",
|
|
5154
5220
|
// `claude auth status` prints one JSON object saying whether it is signed in and how. Its
|
|
5155
5221
|
// `loggedIn` flag is read, not its exit code: this one does set the code, and two of the
|
|
5156
5222
|
// other three leave it at 0 in both states, so the output is the rule everywhere.
|
|
@@ -5536,10 +5602,6 @@ var init_codex2 = __esm({
|
|
|
5536
5602
|
// tokens it would swallow the prompt that follows it as a second file — Codex would then
|
|
5537
5603
|
// read the prompt from a stdin the board never opens and send an empty turn.
|
|
5538
5604
|
images: { as: "args", args: (file2) => [`--image=${file2}`] },
|
|
5539
|
-
// Codex ignores a slash name — it reads as plain chat text — and triggers a skill from a
|
|
5540
|
-
// `$` name. The install already writes the skill to `.agents/skills/kanban/`, which is
|
|
5541
|
-
// where Codex looks.
|
|
5542
|
-
skillCall: "$kanban",
|
|
5543
5605
|
// `codex login status` prints one line and nothing else: "Logged in using ChatGPT" —
|
|
5544
5606
|
// or an API key, which is why the reading stops at the first two words — and "Not logged
|
|
5545
5607
|
// in".
|
|
@@ -5610,7 +5672,6 @@ var init_cursor = __esm({
|
|
|
5610
5672
|
savesSessionAtOpen: false,
|
|
5611
5673
|
// Its own file reading opens a picture from a path written into the words.
|
|
5612
5674
|
images: { as: "message" },
|
|
5613
|
-
skillCall: SKILL_SENTENCE,
|
|
5614
5675
|
// `cursor-agent status` exits 0 whether or not anybody is signed in, so its output is the
|
|
5615
5676
|
// whole of the answer.
|
|
5616
5677
|
login: {
|
|
@@ -5736,9 +5797,6 @@ ${text5}` } };
|
|
|
5736
5797
|
// And it has written that session down before it answers: killed right after
|
|
5737
5798
|
// `session/new`, dsh-acp reopens the id from a fresh command about half a second later.
|
|
5738
5799
|
savesSessionAtOpen: true,
|
|
5739
|
-
// dsh has no slash or `$` skill syntax a headless run can use, so the prompt asks for the
|
|
5740
|
-
// skill in a sentence. It reads `.agents/skills/`, the folder an install already writes.
|
|
5741
|
-
skillCall: SKILL_SENTENCE,
|
|
5742
5800
|
// No login probe: dsh has no login to probe. Its own command offers `web` and `plugin` and
|
|
5743
5801
|
// nothing else — a run signs with the key in `$DSH_HOME`'s settings, or with the box above
|
|
5744
5802
|
// — so there is no CLI sign-in for a logged-out reading to be about.
|
|
@@ -5854,10 +5912,6 @@ var init_grok = __esm({
|
|
|
5854
5912
|
// And it has written that session down before it answers: killed the instant
|
|
5855
5913
|
// `session/new` returns, grok reopens the id from a fresh command.
|
|
5856
5914
|
savesSessionAtOpen: true,
|
|
5857
|
-
// Grok lists its skills as slash names, but a slash typed into an ACP `session/prompt` is
|
|
5858
|
-
// not the same thing as one typed into its TUI, and the sentence is proved: asked this
|
|
5859
|
-
// way, grok found `.agents/skills/kanban/SKILL.md` in the project and read it.
|
|
5860
|
-
skillCall: SKILL_SENTENCE,
|
|
5861
5915
|
installs: () => [...process.env.GROK_BIN_DIR ? [join4(process.env.GROK_BIN_DIR, "grok")] : [], home(".grok", "bin", "grok")],
|
|
5862
5916
|
install: "curl -fsSL https://x.ai/cli/install.sh | bash"
|
|
5863
5917
|
};
|
|
@@ -6065,13 +6119,6 @@ ${text5}
|
|
|
6065
6119
|
// Kimi names its own session, and prints the id as its closing row.
|
|
6066
6120
|
adoptsSessionId: false,
|
|
6067
6121
|
savesSessionAtOpen: false,
|
|
6068
|
-
// Kimi does have a slash name for a skill — `/skill:kanban` — but whether one typed into
|
|
6069
|
-
// a `-p` prompt is read as a command or as plain chat text is unprobed. The sentence
|
|
6070
|
-
// works either way, because Kimi's model picks a skill from its description on its own.
|
|
6071
|
-
//
|
|
6072
|
-
// PROBE: if `/skill:kanban` triggers the skill from a `-p` prompt, this becomes that and
|
|
6073
|
-
// the connector stops showing a "Direct skill call" gap.
|
|
6074
|
-
skillCall: SKILL_SENTENCE,
|
|
6075
6122
|
// No login probe, so Kimi is never called logged out. `kimi login` is the way in, but
|
|
6076
6123
|
// nothing was found that PRINTS whether that login is there, and `kimi` was not on the
|
|
6077
6124
|
// machine this was written on to read one off — and a reading nobody has seen is exactly
|
|
@@ -6164,9 +6211,6 @@ var init_opencode = __esm({
|
|
|
6164
6211
|
savesSessionAtOpen: true,
|
|
6165
6212
|
// Its own file reading opens a picture from a path written into the words.
|
|
6166
6213
|
images: { as: "message" },
|
|
6167
|
-
// No slash or `$` skill syntax in a sent message, so the prompt asks for the skill in a
|
|
6168
|
-
// sentence. It scans `.agents/skills/` and `.claude/skills/`, where an install writes.
|
|
6169
|
-
skillCall: SKILL_SENTENCE,
|
|
6170
6214
|
// No login probe: OpenCode's free models need no sign-in, so a machine with no saved
|
|
6171
6215
|
// credential is not logged out.
|
|
6172
6216
|
installs: () => [...process.env.OPENCODE_INSTALL_DIR ? [join6(process.env.OPENCODE_INSTALL_DIR, "opencode")] : [], home(".opencode", "bin", "opencode")],
|
|
@@ -6189,7 +6233,6 @@ var init_zcode2 = __esm({
|
|
|
6189
6233
|
"use strict";
|
|
6190
6234
|
init_wire();
|
|
6191
6235
|
init_models();
|
|
6192
|
-
init_types();
|
|
6193
6236
|
ZCODE = {
|
|
6194
6237
|
name: "zcode",
|
|
6195
6238
|
label: "ZCode",
|
|
@@ -6273,10 +6316,6 @@ var init_zcode2 = __esm({
|
|
|
6273
6316
|
// answers "Session not found" ten seconds after the id came back. So a ZCode run that
|
|
6274
6317
|
// dies before its first turn has nothing to go back to.
|
|
6275
6318
|
savesSessionAtOpen: false,
|
|
6276
|
-
// ZCode's slash and `$` names are its terminal UI's, not something a sent prompt
|
|
6277
|
-
// triggers, so the prompt asks for the skill in a sentence. It reads `.agents/skills/`,
|
|
6278
|
-
// the folder an install already writes, and finds the board's rules there by itself.
|
|
6279
|
-
skillCall: SKILL_SENTENCE,
|
|
6280
6319
|
// No login probe: a ZCode run signs with the Coding Plan key above and never with a
|
|
6281
6320
|
// `zcode login`, whose credential the command's own config never points at (#282). Its
|
|
6282
6321
|
// CLI's login decides nothing here, so there is nothing to warn about.
|
|
@@ -6323,83 +6362,6 @@ var init_harnesses = __esm({
|
|
|
6323
6362
|
}
|
|
6324
6363
|
});
|
|
6325
6364
|
|
|
6326
|
-
// ../cli/src/lib/agent/capabilities.ts
|
|
6327
|
-
function harnessGaps(harness) {
|
|
6328
|
-
return CAPABILITIES.filter((c2) => !c2.has(harness)).map(({ id, label, blurb }) => ({ id, label, blurb }));
|
|
6329
|
-
}
|
|
6330
|
-
var CAPABILITIES;
|
|
6331
|
-
var init_capabilities = __esm({
|
|
6332
|
-
"../cli/src/lib/agent/capabilities.ts"() {
|
|
6333
|
-
"use strict";
|
|
6334
|
-
init_harnesses();
|
|
6335
|
-
CAPABILITIES = [
|
|
6336
|
-
{
|
|
6337
|
-
id: "resume",
|
|
6338
|
-
label: "Chat and resume",
|
|
6339
|
-
blurb: "No conversations, and a run that stops short starts over.",
|
|
6340
|
-
has: (h3) => h3.resumes
|
|
6341
|
-
},
|
|
6342
|
-
{
|
|
6343
|
-
id: "early-resume",
|
|
6344
|
-
label: "Early-crash resume",
|
|
6345
|
-
blurb: "A run that fails in its first seconds starts over.",
|
|
6346
|
-
// Two ways a run that died in its first seconds still has somewhere to go back to: the
|
|
6347
|
-
// agent took the id we generated, or it minted one and had already saved the session
|
|
6348
|
-
// under it. Anything else leaves the crash ahead of the id.
|
|
6349
|
-
has: (h3) => h3.adoptsSessionId || h3.savesSessionAtOpen
|
|
6350
|
-
},
|
|
6351
|
-
{
|
|
6352
|
-
id: "cost",
|
|
6353
|
-
label: "Run cost",
|
|
6354
|
-
blurb: "No price in the runs panel.",
|
|
6355
|
-
has: (h3) => h3.reports.includes("cost")
|
|
6356
|
-
},
|
|
6357
|
-
{
|
|
6358
|
-
id: "tokens",
|
|
6359
|
-
label: "Token counts",
|
|
6360
|
-
blurb: "No token numbers in the runs panel.",
|
|
6361
|
-
has: (h3) => h3.reports.includes("tokens")
|
|
6362
|
-
},
|
|
6363
|
-
{
|
|
6364
|
-
id: "model",
|
|
6365
|
-
label: "Model name",
|
|
6366
|
-
blurb: "The runs panel shows no model.",
|
|
6367
|
-
has: (h3) => h3.reports.includes("model")
|
|
6368
|
-
},
|
|
6369
|
-
{
|
|
6370
|
-
id: "context",
|
|
6371
|
-
label: "Context window",
|
|
6372
|
-
blurb: "No context ring on chats or runs.",
|
|
6373
|
-
has: (h3) => h3.reports.includes("context")
|
|
6374
|
-
},
|
|
6375
|
-
{
|
|
6376
|
-
id: "rate-limit",
|
|
6377
|
-
label: "Rate-limit exit",
|
|
6378
|
-
blurb: "A rate-limited run waits it out, holding its card.",
|
|
6379
|
-
has: (h3) => h3.stopsOnRateLimit
|
|
6380
|
-
},
|
|
6381
|
-
{
|
|
6382
|
-
id: "retry",
|
|
6383
|
-
label: "Provider retry",
|
|
6384
|
-
blurb: "A passing provider failure ends the run.",
|
|
6385
|
-
has: (h3) => h3.transient !== void 0
|
|
6386
|
-
},
|
|
6387
|
-
{
|
|
6388
|
-
id: "skill-call",
|
|
6389
|
-
label: "Direct skill call",
|
|
6390
|
-
blurb: "Prompts ask for the board skill in a sentence.",
|
|
6391
|
-
has: (h3) => h3.skillCall !== SKILL_SENTENCE
|
|
6392
|
-
},
|
|
6393
|
-
{
|
|
6394
|
-
id: "images",
|
|
6395
|
-
label: "Pasted pictures",
|
|
6396
|
-
blurb: "A picture pasted into a chat is turned away.",
|
|
6397
|
-
has: (h3) => h3.images !== void 0
|
|
6398
|
-
}
|
|
6399
|
-
];
|
|
6400
|
-
}
|
|
6401
|
-
});
|
|
6402
|
-
|
|
6403
6365
|
// ../cli/src/lib/agent/proxy.ts
|
|
6404
6366
|
import { execFileSync } from "node:child_process";
|
|
6405
6367
|
function withSystemProxy(env2 = process.env, platform = process.platform, read3 = () => execFileSync("/usr/sbin/scutil", ["--proxy"], { encoding: "utf8", timeout: 1e3, stdio: ["ignore", "pipe", "ignore"] })) {
|
|
@@ -7523,7 +7485,7 @@ var init_flows = __esm({
|
|
|
7523
7485
|
argument: "<id> [note...]",
|
|
7524
7486
|
argumentNote: NOTE,
|
|
7525
7487
|
gloss: "build the card",
|
|
7526
|
-
options: [RUNTIME_OPTION, ...CARRY_OPTIONS]
|
|
7488
|
+
options: [RUNTIME_OPTION, ...CARRY_OPTIONS.map((option) => ({ ...option, description: "accepted for compatibility; ignored by implementation" }))]
|
|
7527
7489
|
},
|
|
7528
7490
|
{
|
|
7529
7491
|
command: "refine",
|
|
@@ -10474,9 +10436,6 @@ function adoptsSessionId(harnessName) {
|
|
|
10474
10436
|
const harness = harnessByName(harnessName);
|
|
10475
10437
|
return !!harness && harness.resumes && harness.adoptsSessionId;
|
|
10476
10438
|
}
|
|
10477
|
-
function skillCall(agent, pin) {
|
|
10478
|
-
return resolveHarness({ agent, pin }).harness.skillCall;
|
|
10479
|
-
}
|
|
10480
10439
|
function modelsRun() {
|
|
10481
10440
|
const ran = /* @__PURE__ */ new Map();
|
|
10482
10441
|
const { runs } = readStore();
|
|
@@ -16155,7 +16114,6 @@ function carriedNote(req) {
|
|
|
16155
16114
|
return `${held4} The card as it reads now outranks what you remember of it, and what was dropped along the way stays dropped: read it again before you act.`;
|
|
16156
16115
|
}
|
|
16157
16116
|
function actionPrompt(req, command, notes) {
|
|
16158
|
-
const kb = skillCall(agentForRun(req), req.runtime);
|
|
16159
16117
|
const tag = req.id ? `#${req.id}` : "";
|
|
16160
16118
|
const named2 = req.title ? `${tag} ("${req.title}")` : tag;
|
|
16161
16119
|
if (isRetired(req.action)) return "";
|
|
@@ -16164,28 +16122,26 @@ function actionPrompt(req, command, notes) {
|
|
|
16164
16122
|
case "implement":
|
|
16165
16123
|
if (req.id === void 0) {
|
|
16166
16124
|
return [
|
|
16167
|
-
req.plan ?
|
|
16125
|
+
req.plan ? `Build the approved plan at \`${req.plan}\`.` : `Build this: "${req.description?.trim() ?? ""}".`,
|
|
16168
16126
|
`Follow \`akb guide implement\` \u2014 build exactly the approved requirement; create no card.`
|
|
16169
16127
|
].filter(Boolean).join(" ");
|
|
16170
16128
|
}
|
|
16171
16129
|
return [
|
|
16172
|
-
|
|
16173
|
-
carriedNote(req),
|
|
16130
|
+
`Implement task ${req.id} ${named2} following \`akb guide implement\`. Read its current card before starting.`,
|
|
16174
16131
|
req.notes ? `Extra notes: ${req.notes}` : ""
|
|
16175
16132
|
].filter(Boolean).join(" ");
|
|
16176
16133
|
case "archive":
|
|
16177
16134
|
return [
|
|
16178
|
-
|
|
16135
|
+
`Archive task ${req.id} ${named2}.`,
|
|
16179
16136
|
`Follow \`akb guide archive\`.`,
|
|
16180
16137
|
req.notes ? `Extra notes: ${req.notes}` : "",
|
|
16181
16138
|
`Don't ask me questions with human-in-the-loop. Leave any questions as open questions.`
|
|
16182
16139
|
].filter(Boolean).join(" ");
|
|
16183
16140
|
case "edit":
|
|
16184
16141
|
return [
|
|
16185
|
-
|
|
16142
|
+
`Revise task ${req.id} ${named2}: "${req.notes || ""}" ${NO_IMPLEMENT}`,
|
|
16186
16143
|
carriedNote(req),
|
|
16187
16144
|
`Apply the requested change following \`akb guide revise\`.`,
|
|
16188
|
-
`You can create new subtasks if it's a group task and the intent is to do so.`,
|
|
16189
16145
|
`Don't ask me questions with human-in-the-loop. Leave any questions as open questions.`
|
|
16190
16146
|
].filter(Boolean).join(" ");
|
|
16191
16147
|
case "clarify": {
|
|
@@ -16204,7 +16160,7 @@ function actionPrompt(req, command, notes) {
|
|
|
16204
16160
|
// anything it cannot settle stays in the memory file it is rewriting.
|
|
16205
16161
|
case "prune-memory":
|
|
16206
16162
|
return [
|
|
16207
|
-
|
|
16163
|
+
`Prune this board's memory following \`akb guide prune-memory\`.`,
|
|
16208
16164
|
`Cover the board's own record at \`${rel(MEMORY)}/\` and every agent's memory at \`${rel(MEMORY)}/agents/<agent>/\`, the ${PLANNER}'s among them, and each studio's at \`${rel(MEMORY)}/studios/<studio>/\`.`,
|
|
16209
16165
|
`Change nothing but those files: no card, no question for anyone.`
|
|
16210
16166
|
].join(" ");
|
|
@@ -16214,18 +16170,15 @@ function actionPrompt(req, command, notes) {
|
|
|
16214
16170
|
// is no card to leave a question on.
|
|
16215
16171
|
case "review-memory":
|
|
16216
16172
|
return [
|
|
16217
|
-
|
|
16218
|
-
req.tasks?.length ? `The conversations are the ones \`${command} raw memory review --task ${req.tasks.join(" ")} --print\` prints.` : ""
|
|
16219
|
-
`Read each conversation the flow lists right through, and hold to "What earns a note" in \`akb guide board\`.`,
|
|
16220
|
-
`Rewrite or delete a note an earlier review wrote that the conversation has since overturned, rather than adding a second one.`,
|
|
16221
|
-
`Change nothing but the memory files: no card, no question for anyone.`
|
|
16173
|
+
`Review what this board's conversations settled and write it into memory, following \`akb guide review-memory\`.`,
|
|
16174
|
+
req.tasks?.length ? `The conversations are the ones \`${command} raw memory review --task ${req.tasks.join(" ")} --print\` prints.` : ""
|
|
16222
16175
|
].filter(Boolean).join(" ");
|
|
16223
16176
|
// The dismissal review (#929). The flow lists the dismissals and restored ids; the guide
|
|
16224
16177
|
// holds every rule.
|
|
16225
16178
|
case "review-dismissals":
|
|
16226
|
-
return
|
|
16179
|
+
return `Learn what the user does not want from their rejections and dismissals, following \`akb guide review-rejections\`.`;
|
|
16227
16180
|
case "describe-project":
|
|
16228
|
-
return
|
|
16181
|
+
return `Describe this project following \`akb guide describe-project\`.`;
|
|
16229
16182
|
// Reflecting on the cards the board has just completed (#534, #1467). They are off the
|
|
16230
16183
|
// board, so the ask names the archive: nothing else can find them. It only writes inbox
|
|
16231
16184
|
// items or starts a revise — it never edits or archives a card itself.
|
|
@@ -16235,10 +16188,8 @@ function actionPrompt(req, command, notes) {
|
|
|
16235
16188
|
const titles = ids.map((id) => archived.get(id) ? `#${id} ("${archived.get(id)}")` : `#${id}`);
|
|
16236
16189
|
return [
|
|
16237
16190
|
[
|
|
16238
|
-
|
|
16191
|
+
`These tasks have just been completed: ${titles.join(", ")}. Propose the work that should follow them, following \`akb guide reflect\`.`,
|
|
16239
16192
|
`They have left the board \u2014 read each in its own <card> block below, with the discussion it came from when the block lists one.`,
|
|
16240
|
-
`Skip anything already on the board, already in the inbox, or turned down before.`,
|
|
16241
|
-
`Write each survivor with \`${command} raw triage add\`, and revise an open card whose plan what shipped made untrue with \`${command} raw card revise\`: that is all you may do${settingsBlock(req) ? " unless your settings below say otherwise" : ""} \u2014 you edit and archive no card yourself, and finding nothing worth proposing is a complete result.`,
|
|
16242
16193
|
`Don't ask me questions with human-in-the-loop.`
|
|
16243
16194
|
].join(" "),
|
|
16244
16195
|
...reflectBlocks(ids),
|
|
@@ -16255,7 +16206,7 @@ function actionPrompt(req, command, notes) {
|
|
|
16255
16206
|
const shared = agent ? globalMemoryBlock(agent) : "";
|
|
16256
16207
|
return [
|
|
16257
16208
|
[
|
|
16258
|
-
|
|
16209
|
+
`You are the \`${req.specAgent}\` preview agent on task ${req.id} ${named2}.`,
|
|
16259
16210
|
`Card: \`${cardFile3}\`. Section: \`\`## By \`${req.specAgent}\` agent\`\`.`,
|
|
16260
16211
|
`How a preview agent works: \`${command} guide preview-agent\` \u2014 read it unless it is already in your context.`,
|
|
16261
16212
|
req.notes ? `What the flow that asked for you wants looked at: ${req.notes}` : "",
|
|
@@ -16342,13 +16293,13 @@ ${shared}` : ""
|
|
|
16342
16293
|
// The flow supplies conflict facts; the guide owns the procedure.
|
|
16343
16294
|
case "approve":
|
|
16344
16295
|
return [
|
|
16345
|
-
|
|
16296
|
+
`Task ${req.id} ${named2} has been approved: write the previews that were waiting on that Approve from the card as it stands.`,
|
|
16346
16297
|
req.notes ? `Extra notes: ${req.notes}` : "",
|
|
16347
16298
|
`Don't ask me questions with human-in-the-loop. Leave any questions as open questions.`
|
|
16348
16299
|
].filter(Boolean).join(" ");
|
|
16349
16300
|
case "resolve":
|
|
16350
16301
|
return [
|
|
16351
|
-
|
|
16302
|
+
`Apply my answers to the open questions on task ${req.id} ${named2} following \`akb guide resolve\`.`,
|
|
16352
16303
|
carriedNote(req),
|
|
16353
16304
|
answeredNote(req.id, command),
|
|
16354
16305
|
req.notes ? `Extra notes: ${req.notes}` : ""
|
|
@@ -17081,8 +17032,7 @@ function planningSession(cardId2, cwd = REPO_ROOT) {
|
|
|
17081
17032
|
return resumeId ? { session: { harness: planned.harness, resumeId }, fork: false } : { none: "unrecorded" };
|
|
17082
17033
|
}
|
|
17083
17034
|
function carriedSession(req) {
|
|
17084
|
-
|
|
17085
|
-
if (!Number.isInteger(req.id) || !carries) return void 0;
|
|
17035
|
+
if (!Number.isInteger(req.id) || !PLANNING.has(req.action)) return void 0;
|
|
17086
17036
|
const fresh = (why2) => ({ note: `new session \u2014 ${why2}` });
|
|
17087
17037
|
if (req.session === "new") return fresh("the earlier one is gone, so this step was started again");
|
|
17088
17038
|
const agent = agentForRun(req);
|
|
@@ -23773,7 +23723,7 @@ var init_add_task = __esm({
|
|
|
23773
23723
|
var archive_default;
|
|
23774
23724
|
var init_archive2 = __esm({
|
|
23775
23725
|
"../cli/src/guide/archive.md"() {
|
|
23776
|
-
archive_default = "# Finish a task\n\n## Write the shipped line\n\nRecord each user-facing outcome on one line in `docs/kanban/memory/readme.md`, under the\n`## <module>` heading the card's `modules:` names. Do not record internal-only changes. Use\nformats like these:\n\n- \u2705 Exporting a report to PDF: [Export reports](https://docs.example.com/export). Link to\n a published doc when available; do not restate it.\n- \u2705 Customers can pay an invoice by bank transfer from the billing page. When no doc\n exists, state plainly what the user can now do.\n- \u274C The orders table moved to a new database cluster. This describes infrastructure, not\n user-facing behavior.\n\n## Archive the card\n\nUse `akb raw delivery complete <id>` to finish your current studio step. The last step archives\nthe card and prints its handoff. Earlier steps leave it for the remaining studio agents.\nOutside an active delivery, use `akb raw archive <id>` or `akb raw reject <id>`.\n\
|
|
23726
|
+
archive_default = "# Finish a task\n\n## Write the shipped line\n\nRecord each user-facing outcome on one line in `docs/kanban/memory/readme.md`, under the\n`## <module>` heading the card's `modules:` names. Do not record internal-only changes. Use\nformats like these:\n\n- \u2705 Exporting a report to PDF: [Export reports](https://docs.example.com/export). Link to\n a published doc when available; do not restate it.\n- \u2705 Customers can pay an invoice by bank transfer from the billing page. When no doc\n exists, state plainly what the user can now do.\n- \u274C The orders table moved to a new database cluster. This describes infrastructure, not\n user-facing behavior.\n\n## Archive the card\n\nUse `akb raw delivery complete <id>` to finish your current studio step. The last step archives\nthe card and prints its handoff. Earlier steps leave it for the remaining studio agents.\nOutside an active delivery, use `akb raw archive <id>` or `akb raw reject <id>`.\n\nFinish cards through these commands, never by deleting their files.\n\nBefore completing a step, verify its approved requirements and outputs; before the last step,\nverify the complete approved outcome.\nRecord results on the card, leave unmet work unchecked, and handle user-action blockers through\n`akb guide implement`.\n\nOnce those checks pass, run `akb raw delivery complete <id>` and follow its handoff. Software\nsteps in a git project supply `--commit <full-sha> --branch <target>`.\nIf completion was interrupted, inspect the recorded result and retry the same completion.\n";
|
|
23777
23727
|
}
|
|
23778
23728
|
});
|
|
23779
23729
|
|
|
@@ -23829,7 +23779,7 @@ var init_follow_up = __esm({
|
|
|
23829
23779
|
var implement_default;
|
|
23830
23780
|
var init_implement = __esm({
|
|
23831
23781
|
"../cli/src/guide/implement.md"() {
|
|
23832
|
-
implement_default = "# Implement the approved requirements\n\nBuild the approved requirements without reopening settled decisions or unrelated questions; without a card, create none.\n\n- **Verification**: run required and minimal representative checks, reuse valid results, distinguish defects from environment or tool limits, stop retries that add no evidence, and finish when acceptance is proven.\n- **Authorization**: carry approval for necessary in-scope operations across tools and stages without asking again.\n- **Blockers**: resolve routine problems and use `akb guide update-questions` only for user-action blockers or out-of-scope decisions, stating attempts, impact and recommendation while continuing independent work.\n- **Defer**: follow `akb guide follow-up` for unrelated work and keep it from blocking delivery.\n- **Decisions**: record material, reversible build decisions under `## Worth noting after implementation`.\n";
|
|
23782
|
+
implement_default = "# Implement the approved requirements\n\nBuild the approved requirements without reopening settled decisions or unrelated questions; without a card, create none.\n\nDo not push, publish or deploy.\n\n- **Verification**: run required and minimal representative checks, reuse valid results, distinguish defects from environment or tool limits, stop retries that add no evidence, and finish when acceptance is proven.\n- **Authorization**: carry approval for necessary in-scope operations across tools and stages without asking again.\n- **Blockers**: resolve routine problems and use `akb guide update-questions` only for user-action blockers or out-of-scope decisions, stating attempts, impact and recommendation while continuing independent work.\n- **Defer**: follow `akb guide follow-up` for unrelated work and keep it from blocking delivery.\n- **Decisions**: record material, reversible build decisions under `## Worth noting after implementation`.\n";
|
|
23833
23783
|
}
|
|
23834
23784
|
});
|
|
23835
23785
|
|
|
@@ -23941,7 +23891,7 @@ var init_write_prompt = __esm({
|
|
|
23941
23891
|
var writing_default;
|
|
23942
23892
|
var init_writing = __esm({
|
|
23943
23893
|
"../cli/src/guide/writing.md"() {
|
|
23944
|
-
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- **Frontmatter**: never edit frontmatter by hand; use `akb raw create`, `update`, or\n `update-questions`.\n- **Validate**: run `akb raw validate <id>` after edits and fix every reported file and line.\n";
|
|
23894
|
+
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 create`, `update`, or\n `update-questions`.\n- **Validate**: run `akb raw validate <id>` after edits and fix every reported file and line.\n";
|
|
23945
23895
|
}
|
|
23946
23896
|
});
|
|
23947
23897
|
|
|
@@ -26163,7 +26113,7 @@ function readRequest(action, args2, opts) {
|
|
|
26163
26113
|
const req = { action, id, title: titleOf(id) };
|
|
26164
26114
|
req.notes = words(1);
|
|
26165
26115
|
if (action === "implement") req.runtime = opts.runtime;
|
|
26166
|
-
if (opts.session || opts.transcript) {
|
|
26116
|
+
if (action !== "implement" && (opts.session || opts.transcript)) {
|
|
26167
26117
|
const costFrom = Number(process.env[SESSION_COST_ENV]);
|
|
26168
26118
|
req.carry = {
|
|
26169
26119
|
resumeId: opts.session,
|
package/dist/akb/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"wildcrane","version":"0.11.
|
|
1
|
+
{"name":"wildcrane","version":"0.11.64","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.80 — 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;
|