wildcrane-runner 0.6.101 → 0.6.102
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 +1 -1
- package/dist/akb/dist/kanban.mjs +37 -30
- package/dist/akb/package.json +1 -1
- package/dist/akb-proxy.mjs +228 -228
- package/dist/codex-proxy.mjs +241 -241
- package/dist/codex-retained.mjs +233 -233
- package/dist/flow-worker-main.mjs +801 -752
- package/dist/launcher.mjs +264 -278
- package/dist/plugin.mjs +684 -694
- package/dist/runner.mjs +837 -788
- package/dist/settings.mjs +262 -276
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Codex 由 Runner 管理原生 App Server,任务直接连接;Runner 更新或
|
|
|
29
29
|
- **看板与技能**:通过插件连接云端项目;Runner 在绑定目录和运行任务时把 kanban 技能写入项目,无需手动安装,并维护提交保护,保留用户文件和已有钩子。
|
|
30
30
|
|
|
31
31
|
- **Node**: 22 or newer.
|
|
32
|
-
-
|
|
32
|
+
- **代理**:Runner 优先使用启动环境的 `HTTP_PROXY`、`HTTPS_PROXY` 或 `ALL_PROXY`,否则跟随 macOS 系统代理。其他平台可通过环境变量指定代理。旧版 `proxy.env` 中仍需使用的配置可移到启动环境。
|
|
33
33
|
- **One computer per account**: a second computer is refused while the first is connected.
|
|
34
34
|
- **Folders**: tasks run in `~/.wildcrane/work/`, or in a project folder listed in
|
|
35
35
|
`~/.wildcrane/projects.json` (`{ "projects": ["/path/to/project"] }`). Any other folder is
|
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.82 — 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;
|
|
@@ -22510,13 +22510,20 @@ var init_goal = __esm({
|
|
|
22510
22510
|
|
|
22511
22511
|
// ../cli/src/lib/goal-draft.ts
|
|
22512
22512
|
import fs8 from "node:fs";
|
|
22513
|
+
import { randomUUID } from "node:crypto";
|
|
22513
22514
|
function readGoalDraft(file2) {
|
|
22514
22515
|
return decodeGoals(JSON.parse(fs8.readFileSync(file2, "utf8")));
|
|
22515
22516
|
}
|
|
22516
22517
|
function writeGoalDraft(file2, { goals, ...draft }, field2) {
|
|
22517
22518
|
const entries = field2 === "goals" ? goals : goals.map(({ task, ...goal }) => ({ ...goal, task: task?.key ? task : task?.id ?? null }));
|
|
22518
|
-
|
|
22519
|
-
|
|
22519
|
+
const temporary = `${file2}.${randomUUID()}.tmp`;
|
|
22520
|
+
try {
|
|
22521
|
+
fs8.writeFileSync(temporary, `${JSON.stringify({ ...draft, [field2]: entries }, null, 2)}
|
|
22522
|
+
`, { mode: 384, flag: "wx" });
|
|
22523
|
+
fs8.renameSync(temporary, file2);
|
|
22524
|
+
} finally {
|
|
22525
|
+
fs8.rmSync(temporary, { force: true });
|
|
22526
|
+
}
|
|
22520
22527
|
}
|
|
22521
22528
|
var goalDraftPath;
|
|
22522
22529
|
var init_goal_draft = __esm({
|
|
@@ -37778,7 +37785,7 @@ function cmdGoal(args2, opts) {
|
|
|
37778
37785
|
write2();
|
|
37779
37786
|
if ("dropped" in result) say(`Dropped goal ${result.id}.`);
|
|
37780
37787
|
else if ("start" in result) say(`Goal ${result.id} starts as a task when this turn ends.`);
|
|
37781
|
-
else say(`
|
|
37788
|
+
else say(`Goal ${result.id} will be saved when this turn ends: ${result.title} (${shortStudioId(result.studio)}).`);
|
|
37782
37789
|
return result;
|
|
37783
37790
|
}
|
|
37784
37791
|
function editGoal(args2, opts, held4) {
|
|
@@ -41340,7 +41347,7 @@ var init_codex_background_types = __esm({
|
|
|
41340
41347
|
});
|
|
41341
41348
|
|
|
41342
41349
|
// ../cli/src/lib/lock.ts
|
|
41343
|
-
import { randomUUID } from "node:crypto";
|
|
41350
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
41344
41351
|
import fs19 from "node:fs";
|
|
41345
41352
|
import path18 from "node:path";
|
|
41346
41353
|
function sleep2(ms) {
|
|
@@ -41398,7 +41405,7 @@ function removeClaim(dir, token2) {
|
|
|
41398
41405
|
}
|
|
41399
41406
|
function tryLock(dir) {
|
|
41400
41407
|
fs19.mkdirSync(path18.dirname(dir), { recursive: true });
|
|
41401
|
-
const token2 = `${process.pid}-${
|
|
41408
|
+
const token2 = `${process.pid}-${randomUUID2()}`;
|
|
41402
41409
|
const candidate = fs19.mkdtempSync(`${dir}.`);
|
|
41403
41410
|
try {
|
|
41404
41411
|
fs19.writeFileSync(path18.join(candidate, token2), "");
|
|
@@ -41936,7 +41943,7 @@ var init_package = __esm({
|
|
|
41936
41943
|
"../cli/package.json"() {
|
|
41937
41944
|
package_default = {
|
|
41938
41945
|
name: "wildcrane",
|
|
41939
|
-
version: "0.11.
|
|
41946
|
+
version: "0.11.82",
|
|
41940
41947
|
akbContract: 27,
|
|
41941
41948
|
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.",
|
|
41942
41949
|
keywords: [
|
|
@@ -42136,7 +42143,7 @@ var init_catalog = __esm({
|
|
|
42136
42143
|
// ../cli/src/lib/machine/telemetry.ts
|
|
42137
42144
|
import fs24 from "node:fs";
|
|
42138
42145
|
import path23 from "node:path";
|
|
42139
|
-
import { randomUUID as
|
|
42146
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
42140
42147
|
function readUsageReporting() {
|
|
42141
42148
|
const { unreadable, values } = heldSettings();
|
|
42142
42149
|
if (unreadable) return { on: false, disclosed: false, installId: "", unreadable: true };
|
|
@@ -42158,7 +42165,7 @@ function ensureUsageInstallId() {
|
|
|
42158
42165
|
const held4 = readUsageReporting();
|
|
42159
42166
|
if (!held4.on) return "";
|
|
42160
42167
|
if (held4.installId) return held4.installId;
|
|
42161
|
-
const id2 =
|
|
42168
|
+
const id2 = randomUUID3();
|
|
42162
42169
|
return saveSettings({ usageInstallId: id2 }).ok ? id2 : "";
|
|
42163
42170
|
}
|
|
42164
42171
|
function write(on, disclosed) {
|
|
@@ -42188,7 +42195,7 @@ var init_telemetry = __esm({
|
|
|
42188
42195
|
// ../cli/src/lib/machine/usage.ts
|
|
42189
42196
|
import fs25 from "node:fs";
|
|
42190
42197
|
import path24 from "node:path";
|
|
42191
|
-
import { randomUUID as
|
|
42198
|
+
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
42192
42199
|
function usageSurface() {
|
|
42193
42200
|
return process.env.KANBAN_DESKTOP === "1" ? "app" : "command";
|
|
42194
42201
|
}
|
|
@@ -42216,10 +42223,10 @@ function reportUsage(name, fields2 = {}, surface = usageSurface()) {
|
|
|
42216
42223
|
const day = usageDay();
|
|
42217
42224
|
const state = readState();
|
|
42218
42225
|
if (state.dayEvent !== day && name !== "app_day") {
|
|
42219
|
-
append({ name: "app_day", day, id:
|
|
42226
|
+
append({ name: "app_day", day, id: randomUUID4(), surface, version: SKILL_VERSION });
|
|
42220
42227
|
writeState({ ...state, dayEvent: day });
|
|
42221
42228
|
}
|
|
42222
|
-
append({ name, day, id:
|
|
42229
|
+
append({ name, day, id: randomUUID4(), surface, version: SKILL_VERSION, ...fields2 });
|
|
42223
42230
|
} catch {
|
|
42224
42231
|
return;
|
|
42225
42232
|
}
|
|
@@ -42306,7 +42313,7 @@ function reportBoardNumbers(customAgentsOn2) {
|
|
|
42306
42313
|
const on = customAgentsOn2();
|
|
42307
42314
|
if (on > 0) fields2.custom_agents_on = on;
|
|
42308
42315
|
if (!Object.keys(fields2).length) return;
|
|
42309
|
-
const id2 = typeof held4.id === "string" && held4.id ? held4.id :
|
|
42316
|
+
const id2 = typeof held4.id === "string" && held4.id ? held4.id : randomUUID4();
|
|
42310
42317
|
writeBoard({ id: id2, day });
|
|
42311
42318
|
reportUsage("board_numbers", { board: id2, ...fields2 });
|
|
42312
42319
|
} catch {
|
|
@@ -46053,7 +46060,7 @@ var init_codex_work = __esm({
|
|
|
46053
46060
|
});
|
|
46054
46061
|
|
|
46055
46062
|
// ../cli/src/lib/agent/wire/codex.ts
|
|
46056
|
-
import { randomUUID as
|
|
46063
|
+
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
46057
46064
|
import { setTimeout as delay } from "node:timers/promises";
|
|
46058
46065
|
function createCodexConnection(argv) {
|
|
46059
46066
|
const execAt = argv.indexOf("exec");
|
|
@@ -46146,7 +46153,7 @@ async function run(io, options, count3) {
|
|
|
46146
46153
|
};
|
|
46147
46154
|
const work = codexWork();
|
|
46148
46155
|
const children = work.children;
|
|
46149
|
-
const execution =
|
|
46156
|
+
const execution = randomUUID5();
|
|
46150
46157
|
let host2 = {};
|
|
46151
46158
|
let cleanup = { status: "confirmed", execution, kept: [] };
|
|
46152
46159
|
let settlement;
|
|
@@ -51060,7 +51067,7 @@ var init_run_settings = __esm({
|
|
|
51060
51067
|
});
|
|
51061
51068
|
|
|
51062
51069
|
// ../cli/src/lib/agent/resolve.ts
|
|
51063
|
-
import { randomUUID as
|
|
51070
|
+
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
51064
51071
|
function activeProviderOf({
|
|
51065
51072
|
harness,
|
|
51066
51073
|
values,
|
|
@@ -51239,7 +51246,7 @@ function planResume(session, agent, own2 = {}) {
|
|
|
51239
51246
|
cwd
|
|
51240
51247
|
};
|
|
51241
51248
|
}
|
|
51242
|
-
function planFork(session, agent, own2 = {}, sessionId =
|
|
51249
|
+
function planFork(session, agent, own2 = {}, sessionId = randomUUID6()) {
|
|
51243
51250
|
const { harness: harnessName, resumeId, cwd = REPO_ROOT } = session;
|
|
51244
51251
|
if (!harnessByName(harnessName)) return null;
|
|
51245
51252
|
const resolved = resolveHarness({ agent, ...own2, harness: harnessName });
|
|
@@ -52209,7 +52216,7 @@ var init_creation_lock = __esm({
|
|
|
52209
52216
|
});
|
|
52210
52217
|
|
|
52211
52218
|
// ../cli/src/lib/agent/sessions.ts
|
|
52212
|
-
import { randomUUID as
|
|
52219
|
+
import { randomUUID as randomUUID7 } from "node:crypto";
|
|
52213
52220
|
import fs51 from "node:fs";
|
|
52214
52221
|
import path54 from "node:path";
|
|
52215
52222
|
function reap(runs, reaped = [], restore = []) {
|
|
@@ -52491,7 +52498,7 @@ function approvedDirect(req) {
|
|
|
52491
52498
|
const typed = req.description?.trim();
|
|
52492
52499
|
return typed ? { title: typed, approved: typed } : void 0;
|
|
52493
52500
|
}
|
|
52494
|
-
function openRun(req, prompt, notes = [], sessionId =
|
|
52501
|
+
function openRun(req, prompt, notes = [], sessionId = randomUUID7(), said2) {
|
|
52495
52502
|
const retired = retiredStudioRun(req.action);
|
|
52496
52503
|
if (retired) return retired;
|
|
52497
52504
|
if (req.deliveryId && findDelivery(req.deliveryId)?.scheduled) return retiredStudioRun("scheduled");
|
|
@@ -52556,7 +52563,7 @@ function openRun(req, prompt, notes = [], sessionId = randomUUID6(), said2) {
|
|
|
52556
52563
|
// Internal refinement sessions name their position in the request. A standalone
|
|
52557
52564
|
// resolve carries no round.
|
|
52558
52565
|
refineRound: req.refineRound,
|
|
52559
|
-
flowId: parent?.flowId ?? req.flowId ??
|
|
52566
|
+
flowId: parent?.flowId ?? req.flowId ?? randomUUID7(),
|
|
52560
52567
|
...parent ? { parentId: parent.sessionId, deliveryId: parent.deliveryId, specAgent: req.specAgent } : {}
|
|
52561
52568
|
};
|
|
52562
52569
|
const out = withCreationLock(() => withStore((store) => {
|
|
@@ -52601,7 +52608,7 @@ function carriedSession(req) {
|
|
|
52601
52608
|
const fresh = (why2) => ({ note: `new session \u2014 ${why2}` });
|
|
52602
52609
|
if (req.session === "new") return fresh("the earlier one is gone, so this step was started again");
|
|
52603
52610
|
const agent = agentForRun(req);
|
|
52604
|
-
const own2 = planRun(
|
|
52611
|
+
const own2 = planRun(randomUUID7(), REPO_ROOT, agent, req.runtime ? { pin: req.runtime } : {});
|
|
52605
52612
|
const resumeId = req.carry?.resumeId;
|
|
52606
52613
|
const found2 = resumeId ? { session: { harness: own2.harness, resumeId }, fork: req.carry?.fork === true } : planningSession(req.id);
|
|
52607
52614
|
if ("none" in found2) {
|
|
@@ -52615,7 +52622,7 @@ function carriedSession(req) {
|
|
|
52615
52622
|
const pin = { pin: own2.runtime };
|
|
52616
52623
|
return found2.fork ? planFork(session, agent, pin, sessionId) : planResume(session, agent, pin);
|
|
52617
52624
|
};
|
|
52618
|
-
if (!plan(REPO_ROOT,
|
|
52625
|
+
if (!plan(REPO_ROOT, randomUUID7())) {
|
|
52619
52626
|
return fresh(`${harnessLabel(own2.harness)} cannot ${found2.fork ? "copy a session" : "continue an earlier session"}`);
|
|
52620
52627
|
}
|
|
52621
52628
|
return {
|
|
@@ -52697,7 +52704,7 @@ async function openResume(id2, options) {
|
|
|
52697
52704
|
}
|
|
52698
52705
|
const resuming = prev.deliveryId ? findDelivery(prev.deliveryId) : void 0;
|
|
52699
52706
|
const cwd = deliveryCwd(resuming ?? {});
|
|
52700
|
-
const sessionId =
|
|
52707
|
+
const sessionId = randomUUID7();
|
|
52701
52708
|
let plan;
|
|
52702
52709
|
let fresh;
|
|
52703
52710
|
if (!forced && prev.harness === "antigravity" && !session && !neverStarted(prev)) {
|
|
@@ -62351,7 +62358,7 @@ var init_describe_project = __esm({
|
|
|
62351
62358
|
var discuss_goal_default;
|
|
62352
62359
|
var init_discuss_goal = __esm({
|
|
62353
62360
|
"../cli/src/guide/discuss-goal.md"() {
|
|
62354
|
-
discuss_goal_default = '# Discuss a goal\n\nExplain feasible options and key tradeoffs, then save the result the user can choose to start.\n\n- **Investigations**: finish checks and diagnosis here; save a change only when findings establish it. Report unverified work plainly.\n- **Goals**: save independent deliverables separately. Update existing goals rather than duplicate them.\n- **Studio**: choose the fitting installed Studio, preferring the user\'s choice; read its Additional Notes with `akb studio rule <studio>` and honor their scope.\n- **Select Previews**: choose Studio Previews for drafts or results that need review. Define a Goal Preview for a requested result the Studio lacks. Keep task context in the Goal body.\n- **Review** independent Previews in parallel by default. Use Studio or Goal Preview names, e.g. `--review \'Tech choices + UI design\'`. Add `->` when the next group needs the previous group\'s approvals. Verify the saved plan.\n- **Review state**: pass `--review \'\'` for no extra approval, leave the plan undecided while a decision is missing, and omit the option when keeping a saved plan.\n- **Decisions**: explain the proposed outcome and review arrangement before saving. Ask only for choices the user must make, with a recommendation.\n- **Start**: the user starts each Goal from the page; its effective review arrangement governs output approval. Confirm changes to task-specific Preview definitions before making the affected output.\n- **Communication**: the remote user sees tasks and previews. Use plain words and button labels, omitting internal paths, commands and tools.\n\n## Goal format\n\nUse exactly these three fields on create and update. Include only what the user requested or confirmed.\n\nPass the one-line title separately with `--title`. Use this template for `--body-file`:\n\n```markdown\n<The requested outcome in at most 150 words.>\n\n## Done when\n\n- <A verifiable condition for the requested outcome.>\n```\n\n\n## Custom Preview definitions\n\nPass a JSON array with `--preview-definitions-file`. Use a stable ID, English and Chinese titles, and concise requirements. Omit the file to keep definitions, or pass `[]` to clear them.\n\n```json\n[{\n "id": "accessibility-report",\n "title": {"en": "Accessibility report", "zh": "\u65E0\u969C\u788D\u68C0\u67E5\u62A5\u544A"},\n "instructions": "Check keyboard navigation, visible focus and contrast. Include steps to reproduce issues."\n}]\n```\n\nUse the title in a Flow such as `--review \'UI design -> Accessibility report\'` when preparation requires an earlier approval.\n';
|
|
62361
|
+
discuss_goal_default = '# Discuss a goal\n\nExplain feasible options and key tradeoffs, then save the result the user can choose to start.\n\n- **Investigations**: finish checks and diagnosis here; save a change only when findings establish it. Report unverified work plainly.\n- **Goals**: save independent deliverables separately. Update existing goals rather than duplicate them.\n- **Studio**: choose the fitting installed Studio, preferring the user\'s choice; read its Additional Notes with `akb studio rule <studio>` and honor their scope.\n- **Select Previews**: choose Studio Previews for drafts or results that need review. Define a Goal Preview for a requested result the Studio lacks. Keep task context in the Goal body.\n- **Review** independent Previews in parallel by default. Use Studio or Goal Preview names, e.g. `--review \'Tech choices + UI design\'`. Add `->` when the next group needs the previous group\'s approvals. Verify the saved plan.\n- **Review state**: pass `--review \'\'` for no extra approval, leave the plan undecided while a decision is missing, and omit the option when keeping a saved plan.\n- **Decisions**: explain the proposed outcome and review arrangement before saving. Ask only for choices the user must make, with a recommendation.\n- **Save**: in a web discussion, use `akb goal` in the current session, including on retry. Say the goal is ready to save when the reply ends. If the command still fails, say it was not saved.\n- **Start**: the user starts each Goal from the page; its effective review arrangement governs output approval. Confirm changes to task-specific Preview definitions before making the affected output.\n- **Communication**: the remote user sees tasks and previews. Use plain words and button labels, omitting internal paths, commands and tools.\n\n## Goal format\n\nUse exactly these three fields on create and update. Include only what the user requested or confirmed.\n\nPass the one-line title separately with `--title`. Use this template for `--body-file`:\n\n```markdown\n<The requested outcome in at most 150 words.>\n\n## Done when\n\n- <A verifiable condition for the requested outcome.>\n```\n\n\n## Custom Preview definitions\n\nPass a JSON array with `--preview-definitions-file`. Use a stable ID, English and Chinese titles, and concise requirements. Omit the file to keep definitions, or pass `[]` to clear them.\n\n```json\n[{\n "id": "accessibility-report",\n "title": {"en": "Accessibility report", "zh": "\u65E0\u969C\u788D\u68C0\u67E5\u62A5\u544A"},\n "instructions": "Check keyboard navigation, visible focus and contrast. Include steps to reproduce issues."\n}]\n```\n\nUse the title in a Flow such as `--review \'UI design -> Accessibility report\'` when preparation requires an earlier approval.\n';
|
|
62355
62362
|
}
|
|
62356
62363
|
});
|
|
62357
62364
|
|
|
@@ -62367,7 +62374,7 @@ var init_follow_up = __esm({
|
|
|
62367
62374
|
var implement_default;
|
|
62368
62375
|
var init_implement = __esm({
|
|
62369
62376
|
"../cli/src/guide/implement.md"() {
|
|
62370
|
-
implement_default = "# Implement the approved requirements\n\nBuild the approved requirements without reopening settled decisions or unrelated questions; without a card, create none.\n\nFor Git deliveries, adapt the approved work to the current target branch and preserve
|
|
62377
|
+
implement_default = "# Implement the approved requirements\n\nBuild the approved requirements without reopening settled decisions or unrelated questions; without a card, create none.\n\nFor Git deliveries, adapt the approved work to the current target branch and preserve its\nbehavior and removals unless the task's core intent requires changing them. Stop the\naffected work and use `akb guide update-questions` only if those changes conflict with the\ntask's core intent.\n\nDo not push, publish or deploy.\n\nOnce a task meets its Studio's delivery conditions, follow `akb guide archive` to record\ndelivery completion before ending the run.\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";
|
|
62371
62378
|
}
|
|
62372
62379
|
});
|
|
62373
62380
|
|
|
@@ -62968,7 +62975,7 @@ var init_complete = __esm({
|
|
|
62968
62975
|
});
|
|
62969
62976
|
|
|
62970
62977
|
// ../cli/src/lib/agent/start.ts
|
|
62971
|
-
import { randomUUID as
|
|
62978
|
+
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
62972
62979
|
async function startRun(req) {
|
|
62973
62980
|
const short2 = retiredStudioRun(req.action) ?? studioRefusal(req);
|
|
62974
62981
|
if (short2) return short2;
|
|
@@ -62977,7 +62984,7 @@ async function startRun(req) {
|
|
|
62977
62984
|
const previous = readRuns().filter((r) => r.deliveryId === delivery.deliveryId && r.action === "implement").reverse().sort((a, b) => b.startedAt - a.startedAt)[0];
|
|
62978
62985
|
if (previous && !delivery.completions?.some((c) => c.sessionId === previous.sessionId || c.resumedSessions?.includes(previous.sessionId))) return startResume(previous.sessionId, { deliveryId: delivery.deliveryId, notes: req.notes });
|
|
62979
62986
|
}
|
|
62980
|
-
return open3(req,
|
|
62987
|
+
return open3(req, randomUUID8());
|
|
62981
62988
|
}
|
|
62982
62989
|
function studioRefusal(req) {
|
|
62983
62990
|
if (!Number.isInteger(req.id)) return null;
|
|
@@ -63006,7 +63013,7 @@ function startSubRun(parentId, prompt, runtime) {
|
|
|
63006
63013
|
specAgent: parent.agent,
|
|
63007
63014
|
runtime: runtime ?? inherited
|
|
63008
63015
|
},
|
|
63009
|
-
|
|
63016
|
+
randomUUID8()
|
|
63010
63017
|
);
|
|
63011
63018
|
}
|
|
63012
63019
|
function runAsk(req, sessionId) {
|
|
@@ -65662,7 +65669,7 @@ var init_previews = __esm({
|
|
|
65662
65669
|
// ../cli/src/commands/studio-preview.ts
|
|
65663
65670
|
import fs85 from "node:fs";
|
|
65664
65671
|
import path84 from "node:path";
|
|
65665
|
-
import { createHash as createHash9, randomUUID as
|
|
65672
|
+
import { createHash as createHash9, randomUUID as randomUUID9 } from "node:crypto";
|
|
65666
65673
|
import { spawnSync as spawnSync7 } from "node:child_process";
|
|
65667
65674
|
function readFolder2(folder2, baseline = false) {
|
|
65668
65675
|
const root2 = fs85.realpathSync(folder2);
|
|
@@ -65699,7 +65706,7 @@ ${start < 0 ? "" : lines.slice(start + 2).join("\n")}`;
|
|
|
65699
65706
|
}
|
|
65700
65707
|
async function cmdStudioPreview(id2, opts) {
|
|
65701
65708
|
if (!locate(id2)) die(`no card ${id2}`, "no-such-card");
|
|
65702
|
-
const destination = path84.join(ASSETS, String(id2), "studio-review"), staging = `${destination}.${
|
|
65709
|
+
const destination = path84.join(ASSETS, String(id2), "studio-review"), staging = `${destination}.${randomUUID9()}.tmp`, backup = `${destination}.${randomUUID9()}.previous`;
|
|
65703
65710
|
let moved = false;
|
|
65704
65711
|
try {
|
|
65705
65712
|
const draft = readFolder2(path84.resolve(opts.folder)), base = opts.base === "empty" ? null : readFolder2(path84.resolve(opts.base), true);
|
package/dist/akb/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"wildcrane","version":"0.11.
|
|
1
|
+
{"name":"wildcrane","version":"0.11.82","akbContract":27,"type":"module","private":true}
|