@turri-dev/cli 0.2.4-next.240620d → 0.2.4-next.636a651

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/cli.js CHANGED
@@ -109,7 +109,7 @@ const USAGE = [
109
109
  " turri <command> [args]",
110
110
  " turri --version turri's version, and pi's",
111
111
  "",
112
- ` ${"options".padEnd(12)} --harness-model <m> the model you chat with --coding-model <m> the model renders run on`,
112
+ ` ${"options".padEnd(12)} --harness-model <m> the model you chat with --coding-model <m> the model that writes the code`,
113
113
  ` ${"".padEnd(12)} --stack <name> build with config.turri.<name>.yaml over config.turri.yaml - here and in every command`,
114
114
  ` ${"".padEnd(12)} --debug keep what turri writes for debugging it - agents' logs and sessions - as debug: true does`,
115
115
  ` ${"".padEnd(12)} --use-theme <t> another theme than turri-dark - and every option of pi's own`,
@@ -155,7 +155,8 @@ async function withoutStack(args) {
155
155
  }
156
156
  return kept;
157
157
  }
158
- if (command === "-h" || command === "--help") {
158
+ // `turri help` too: the word people type first, which would otherwise be an unknown command.
159
+ if (command === "-h" || command === "--help" || command === "help") {
159
160
  console.log(USAGE);
160
161
  process.exit(0);
161
162
  }
package/dist/config.d.ts CHANGED
@@ -366,7 +366,20 @@ export declare function testDirOf(plainFile: string): string;
366
366
  export declare function configForSpec(plainFile: string): ProjectConfig;
367
367
  /**
368
368
  * One config file, read, or nothing of it when it is not there or does not parse. Parsed again only once the file has
369
- * changed - its size or its modification time - and each caller given its own copy.
369
+ * changed - its size or its modification time - and each caller given its own copy. A file modified less than a second
370
+ * before it was read is read again each time, as git treats a racily clean file: written again within the same tick of
371
+ * the file system's clock - milliseconds on Linux - and to the same size, its stamp would not change.
370
372
  */
371
373
  export declare function readConfigFile(path: string): ProjectConfig;
374
+ /**
375
+ * The keys of the project's own config files - config.turri.yaml and each stack's - that turri reads nothing of: a setting
376
+ * turri no longer has (`test-advisor`), or one misspelt. Said as turri starts, so a setting the person thinks is on is
377
+ * not silently ignored. config.yaml is left out: it may be another tool's, with keys of its own.
378
+ */
379
+ export declare function unknownConfigKeys(root: string): Array<{
380
+ file: string;
381
+ keys: string[];
382
+ }>;
383
+ /** The banner's line for each config file with keys turri does not read. */
384
+ export declare function unknownConfigLines(root: string): string[];
372
385
  export {};
package/dist/config.js CHANGED
@@ -82,16 +82,19 @@ function legacyStackConfigFile(stack) {
82
82
  }
83
83
  /**
84
84
  * The names in a folder - read again only once the folder itself has changed: a name added, removed or renamed in it
85
- * moves its modification time. Asked many times a look, for every module of every chain.
85
+ * moves its modification time. Asked many times a look, for every module of every chain. A folder changed less than a
86
+ * second before it was read is read again each time: a name added within the same tick of the file system's clock
87
+ * would not move it (readConfigFile).
86
88
  */
87
89
  function namesIn(root) {
88
90
  try {
89
91
  const at = statSync(root).mtimeMs;
90
92
  const kept = keptNames.get(root);
91
- if (kept !== undefined && kept.at === at)
93
+ if (kept !== undefined && kept.at === at && at < kept.readAt - RACY_MS)
92
94
  return [...kept.names];
95
+ const readAt = Date.now();
93
96
  const names = readdirSync(root);
94
- keptNames.set(root, { at, names });
97
+ keptNames.set(root, { at, names, readAt });
95
98
  if (keptNames.size > 64)
96
99
  keptNames.delete(keptNames.keys().next().value);
97
100
  return [...names];
@@ -533,28 +536,35 @@ export function configForSpec(plainFile) {
533
536
  }
534
537
  /**
535
538
  * One config file, read, or nothing of it when it is not there or does not parse. Parsed again only once the file has
536
- * changed - its size or its modification time - and each caller given its own copy.
539
+ * changed - its size or its modification time - and each caller given its own copy. A file modified less than a second
540
+ * before it was read is read again each time, as git treats a racily clean file: written again within the same tick of
541
+ * the file system's clock - milliseconds on Linux - and to the same size, its stamp would not change.
537
542
  */
538
543
  export function readConfigFile(path) {
539
544
  let stamp;
545
+ let modified;
540
546
  try {
541
547
  const stat = statSync(path);
542
548
  if (!stat.isFile())
543
549
  return {};
544
550
  stamp = `${stat.size}:${stat.mtimeMs}:${stat.ino}`;
551
+ modified = stat.mtimeMs;
545
552
  }
546
553
  catch {
547
554
  return {};
548
555
  }
549
556
  const kept = keptConfigs.get(path);
550
- if (kept !== undefined && kept.stamp === stamp)
557
+ if (kept !== undefined && kept.stamp === stamp && modified < kept.readAt - RACY_MS)
551
558
  return structuredClone(kept.config);
559
+ const readAt = Date.now();
552
560
  const config = readConfigFileNow(path);
553
- keptConfigs.set(path, { stamp, config });
561
+ keptConfigs.set(path, { stamp, config, readAt });
554
562
  if (keptConfigs.size > 64)
555
563
  keptConfigs.delete(keptConfigs.keys().next().value);
556
564
  return structuredClone(config);
557
565
  }
566
+ /** How long before it was read a config file must have last changed for its stamp to be trusted. */
567
+ const RACY_MS = 1_000;
558
568
  const keptConfigs = new Map();
559
569
  function readConfigFileNow(path) {
560
570
  let parsed;
@@ -608,3 +618,33 @@ function readConfigFileNow(path) {
608
618
  turnLimit: turnLimitSetting(raw[CONFIG_KEYS.turnLimit]),
609
619
  };
610
620
  }
621
+ /** Keys a config file is read for besides CONFIG_KEYS: the older spellings turri still takes. */
622
+ const OLDER_KEYS = ["model", "turn_limit"];
623
+ /**
624
+ * The keys of the project's own config files - config.turri.yaml and each stack's - that turri reads nothing of: a setting
625
+ * turri no longer has (`test-advisor`), or one misspelt. Said as turri starts, so a setting the person thinks is on is
626
+ * not silently ignored. config.yaml is left out: it may be another tool's, with keys of its own.
627
+ */
628
+ export function unknownConfigKeys(root) {
629
+ const known = new Set([...Object.values(CONFIG_KEYS), ...OLDER_KEYS]);
630
+ const found = [];
631
+ for (const file of namesIn(root).filter((name) => /^config\.turri(\.[^.]+)?\.yaml$/.test(name)).sort()) {
632
+ let parsed;
633
+ try {
634
+ parsed = loadYaml(readFileSync(join(root, file), "utf8"));
635
+ }
636
+ catch {
637
+ continue;
638
+ }
639
+ if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed))
640
+ continue;
641
+ const keys = Object.keys(parsed).filter((key) => !known.has(key));
642
+ if (keys.length > 0)
643
+ found.push({ file, keys });
644
+ }
645
+ return found;
646
+ }
647
+ /** The banner's line for each config file with keys turri does not read. */
648
+ export function unknownConfigLines(root) {
649
+ return unknownConfigKeys(root).map(({ file, keys }) => `${file} has ${keys.length === 1 ? "a key" : "keys"} turri does not read - ${keys.join(", ")}: no setting turri has, so ${keys.length === 1 ? "it does" : "they do"} nothing. Take ${keys.length === 1 ? "it" : "them"} out, or see docs/config.md for the spelling.`);
650
+ }
@@ -69,6 +69,9 @@ export function conformanceBlock(on) {
69
69
  "They are on here (conformance-tests: true): functional specs with scenarios are conformance tested once their code is",
70
70
  "built. As you write or change a functional spec, judge whether it needs scenarios, as the rules on test plain files say,",
71
71
  "and write them when it does - in the same change, a visible ***plain change the person reviews like any other.",
72
+ "Scenarios are tested only once their module has test reqs and the project a conformance testing script: when you",
73
+ "write scenarios and one of those is missing, write it first, in that order - the test reqs, then the script with",
74
+ "implement-conformance-testing-script - asking nothing: conformance tests on is the person's yes to them.",
72
75
  ].join("\n")
73
76
  : [
74
77
  "They are off here (conformance-tests: false, or unset). They make each change take about twice as long, so the person",
@@ -14,6 +14,12 @@ import { type TurriCore, type TurriHost } from "./chats.ts";
14
14
  * exchange is therefore reported back, so the interview is visible while it happens and
15
15
  * survives in the tool's result afterwards.
16
16
  */
17
+ /**
18
+ * What a question gets with nobody to answer it - print, json and rpc modes. What is the agent's to decide it decides; the
19
+ * person's own files it leaves as they are, as it would have without their yes - a testing script it finds wrong is said,
20
+ * not rewritten.
21
+ */
22
+ export declare const NO_USER_ANSWER: string;
17
23
  export declare function askUserVia(ctx: ExtensionContext, onExchange: (question: string, answer: string, said?: string) => void,
18
24
  /** Given, "/btw ..." typed as an answer is a side question: answered with this, and the question asked again. */
19
25
  aside?: (question: string) => Promise<string>,
package/dist/extension.js CHANGED
@@ -9,7 +9,7 @@ import { allocateImageId, Box, getCapabilities, getPngDimensions, isKeyRelease,
9
9
  import { defineTool, getMarkdownTheme, UserMessageComponent } from "@earendil-works/pi-coding-agent";
10
10
  import { Type } from "typebox";
11
11
  import { CODING_MODEL_ENV } from "./chat-models.js";
12
- import { AGENT_ROLES, chosenStack, CONFIG_FILE, configForSpec, stackForModule, hasProjectConfig, LEGACY_CONFIG_FILE, projectConfigFile, stackConfigFileIn, stackOf, stacksOf, withStack, modelOnly, modelSpec, projectModels, readProjectConfig, roleModel, splitModelSpec } from "./config.js";
12
+ import { AGENT_ROLES, chosenStack, CONFIG_FILE, configForSpec, stackForModule, hasProjectConfig, LEGACY_CONFIG_FILE, projectConfigFile, stackConfigFileIn, stackOf, stacksOf, withStack, modelOnly, modelSpec, projectModels, readProjectConfig, roleModel, splitModelSpec, unknownConfigLines } from "./config.js";
13
13
  import { projectDirOf, skillRunDir } from "./regenerate/paths.js";
14
14
  import { sweepOrphanedGroups } from "./regenerate/shell.js";
15
15
  import { readScript, scriptAgainstMachine, stackOnMachine, toolchainsBlock } from "./stack.js";
@@ -21,7 +21,7 @@ import { bannerWarnings } from "./turri-versions.js";
21
21
  import { CONFORMANCE_OFF_REFUSAL, conformanceBlock, conformanceTestsOn, conformanceTestsOnIn, turnOnConformanceTests } from "./conformance-switch.js";
22
22
  import { BACKGROUND_NOTE, doneLine, failedTask, ownChanges, runDetails, skillRunDelivery, startedText } from "./background-skills.js";
23
23
  import { createAskUserTool } from "./tools.js";
24
- import { asksFromScratch, asksWholeChain, driftTool, fromWorkingDir, haltTool, loopReply, MODEL_PARAM, regenerateTool, STACK_PARAM, stopJob, WAIT_PARAM, withCallStack, WORKING_DIR_PARAM } from "./loop-tools.js";
24
+ import { asksFromScratch, asksWholeChain, driftTool, endWait, fromWorkingDir, haltTool, loopReply, startWait, toldByWaitingCall, MODEL_PARAM, regenerateTool, STACK_PARAM, stopJob, WAIT_PARAM, withCallStack, WORKING_DIR_PARAM } from "./loop-tools.js";
25
25
  import { createWebTools } from "./regenerate/web.js";
26
26
  import { describeGates, interruptedRun, runSkill } from "./genome.js";
27
27
  import { unqueue } from "./chat-waiting.js";
@@ -100,6 +100,15 @@ const PACKAGE_ROOT = dirname(dirname(fileURLToPath(import.meta.url)));
100
100
  * exchange is therefore reported back, so the interview is visible while it happens and
101
101
  * survives in the tool's result afterwards.
102
102
  */
103
+ /**
104
+ * What a question gets with nobody to answer it - print, json and rpc modes. What is the agent's to decide it decides; the
105
+ * person's own files it leaves as they are, as it would have without their yes - a testing script it finds wrong is said,
106
+ * not rewritten.
107
+ */
108
+ export const NO_USER_ANSWER = "No user is available to answer. Decide yourself what is yours to decide - the ***plain you were asked to write, a choice the " +
109
+ "***plain leaves open - and say in your report what you assumed. What you asked because it is the person's - their testing " +
110
+ "scripts, their config, any file of theirs you would replace or delete - leave as it is: say what you would change and why, " +
111
+ "and go on without it.";
103
112
  export function askUserVia(ctx, onExchange,
104
113
  /** Given, "/btw ..." typed as an answer is a side question: answered with this, and the question asked again. */
105
114
  aside,
@@ -107,7 +116,7 @@ aside,
107
116
  dialogs) {
108
117
  return async (request) => {
109
118
  if (dialogs === undefined && !ctx.hasUI) {
110
- return "No user is available to answer. Decide yourself, and say in your report what you assumed.";
119
+ return NO_USER_ANSWER;
111
120
  }
112
121
  // Declined - ctrl+c at it, the host's decline, or the turn that asked it stopped: the dialog open is closed, no other is
113
122
  // opened, and it comes back as DECLINED.
@@ -440,6 +449,9 @@ function turriExtension(api, session, link) {
440
449
  // what finished. In the chat that asked for the pulse, shown or not.
441
450
  const announce = (job) => {
442
451
  announceJob(pi, job);
452
+ // A pulse a call of this chat waits for is told in that call's reply: a turn of its own would say it again.
453
+ if (toldByWaitingCall(jobs, job) && job.specConflict === undefined)
454
+ return;
443
455
  // A spec that contradicts itself is the person's to settle, now: the agent is started on it.
444
456
  if (job.specConflict !== undefined) {
445
457
  void pi.sendMessage({ customType: "turri_spec_conflict", content: specConflictTask(job.specConflict), display: false, details: { jobId: job.id } }, { triggerTurn: true });
@@ -512,7 +524,7 @@ function turriExtension(api, session, link) {
512
524
  announceJob(pi, job);
513
525
  if (job.specConflict !== undefined)
514
526
  session.notice(specConflictNotice(job, specConflictTask(job.specConflict)));
515
- if (options.tell !== true)
527
+ if (options.tell !== true || toldByWaitingCall(jobs, job))
516
528
  return;
517
529
  // A host that shows the person the pulse's end itself: the chat knows of it - in order, with no turn of its own.
518
530
  const shown = host.pulseEndsShown === true;
@@ -986,7 +998,16 @@ function turriExtension(api, session, link) {
986
998
  // files while it runs, and they are not its doing.
987
999
  const filesBefore = projectFiles(cwd);
988
1000
  // A side question asked while it runs is told what it has done so far.
989
- const ended = skillRunStarted({ skill: skill.name, dir: skill.dir, step: () => live.step, trace: () => [...trace], runDir });
1001
+ const ran_ = skillRunStarted({ skill: skill.name, dir: skill.dir, step: () => live.step, trace: () => [...trace], runDir });
1002
+ // A testing script being written - here to its end, in print mode - holds the modules it is for, as in the background:
1003
+ // a pulse started meanwhile, by a regenerate called beside it, would run against the script as it was.
1004
+ const kind = scriptKindOfSkill(skill.name);
1005
+ const stack = plainFile !== undefined ? stackForModule(plainFile) : chosenStack();
1006
+ const written = kind !== undefined ? writingScript({ project: plainFile !== undefined ? projectDirOf(plainFile) : cwd, kind, ...(stack !== undefined ? { stack } : {}) }) : () => { };
1007
+ const ended = () => {
1008
+ written();
1009
+ ran_();
1010
+ };
990
1011
  const ran = await captureConsole(() => runSkill({
991
1012
  skillDir: skill.dir,
992
1013
  // The chat's turn stopped - ctrl+c, esc - stops the run with it.
@@ -1018,7 +1039,7 @@ function turriExtension(api, session, link) {
1018
1039
  regenerateTool({ cwd, jobs, loop: () => workLoopFor(jobs, cwd, ctx), model: (_skill, plainFile, named, work) => jobModel(ctx, work ?? "spec_changes", named, plainFile), wait: () => false }),
1019
1040
  driftTool({ cwd, jobs, loop: () => workLoopFor(jobs, cwd, ctx) }),
1020
1041
  haltTool({ jobs, workLoop: () => workLoops.get(jobs)?.loop }),
1021
- conformTool({ cwd, loop: () => workLoopFor(jobs, cwd, ctx), model: (_skill, plainFile, named) => jobModel(ctx, "spec_changes", named, plainFile), wait: () => false }),
1042
+ conformTool({ cwd, jobs, loop: () => workLoopFor(jobs, cwd, ctx), model: (_skill, plainFile, named) => jobModel(ctx, "spec_changes", named, plainFile), wait: () => false }),
1022
1043
  ],
1023
1044
  // The escalation becomes a real dialog - the host's own, when it has them. Without one there is nobody to ask,
1024
1045
  // so the gate stands.
@@ -1258,7 +1279,9 @@ export const COMMAND_STARTED_REACTION = "My pulses are running from the person's
1258
1279
  */
1259
1280
  export const CONFORM_REFUSED_REACTION = "Nothing was started from the person's /conform, for the reason shown - and their /conform is their yes to conformance " +
1260
1281
  "tests here. Where what is missing is yours to write - the test reqs, the conformance testing script, the scenarios - " +
1261
- "write it now, in that order and only what is missing, asking nothing: the scenarios of the functional specs they named, " +
1282
+ "write it now, in that order and only what is missing, asking nothing: the test reqs first; then the conformance testing " +
1283
+ "script, started with its skill before anything else - it runs in the background, so the scenarios are written while it " +
1284
+ "does; then the scenarios of the functional specs they named, " +
1262
1285
  "or, naming none, of each functional spec that needs them by the rules on test plain files. Then call regenerate for the " +
1263
1286
  "module: the work loop writes and runs their tests once the code is built. Say in a line or two what you wrote, and for " +
1264
1287
  "each functional spec why it needs scenarios - or, when none does, that and why. Where it is not yours to settle - a " +
@@ -1313,6 +1336,7 @@ function registerDrift(pi, cwd, jobs) {
1313
1336
  function registerBind(pi, cwd, jobs, turnOn) {
1314
1337
  pi.registerTool(conformTool({
1315
1338
  cwd,
1339
+ jobs,
1316
1340
  loop: (ctx) => workLoopFor(jobs, cwd, ctx),
1317
1341
  model: (ctx, plainFile, named) => jobModel(ctx, "spec_changes", named, plainFile),
1318
1342
  wait: (ctx, asked) => shouldWait(ctx.mode, asked),
@@ -1441,12 +1465,22 @@ function conformTool(options) {
1441
1465
  return { content: [{ type: "text", text: CONFORMANCE_OFF_REFUSAL }], details: { refused: true } };
1442
1466
  const model = options.model(ctx, plainFile, params.model);
1443
1467
  const loop = options.loop(ctx);
1444
- const statuses = await loop.conformance(plainFile, {
1445
- ...(params.funcIds !== undefined ? { funcIds: params.funcIds } : {}),
1446
- ...(model !== undefined ? { model } : {}),
1447
- ...(params.one_by_one === true ? { separately: true } : {}),
1448
- });
1449
- return loopReply(loop, statuses, options.wait(ctx, params.wait));
1468
+ const wait = options.wait(ctx, params.wait);
1469
+ const waiting = wait ? { jobs: options.jobs, wait: startWait(options.jobs) } : undefined;
1470
+ let statuses;
1471
+ try {
1472
+ statuses = await loop.conformance(plainFile, {
1473
+ ...(params.funcIds !== undefined ? { funcIds: params.funcIds } : {}),
1474
+ ...(model !== undefined ? { model } : {}),
1475
+ ...(params.one_by_one === true ? { separately: true } : {}),
1476
+ });
1477
+ }
1478
+ catch (error) {
1479
+ if (waiting !== undefined)
1480
+ endWait(waiting.jobs, waiting.wait);
1481
+ throw error;
1482
+ }
1483
+ return loopReply(loop, statuses, wait, waiting);
1450
1484
  });
1451
1485
  },
1452
1486
  });
@@ -2975,6 +3009,7 @@ function registerBranding(pi, skills) {
2975
3009
  (data.commit !== undefined ? theme.fg("dim", ` from a clone, ${data.commit}${data.changed ? " with changes" : ""}`) : ""),
2976
3010
  // A newer turri out, or one installed and hidden behind this one: said first, under the version it is about.
2977
3011
  ...(data.versions ?? []).map((line) => theme.fg("warning", line)),
3012
+ ...(data.config ?? []).map((line) => theme.fg("warning", line)),
2978
3013
  `${theme.fg("text", "the first coding agent with the power of ")}${brandPink(theme)("regenerative software")}`,
2979
3014
  // Where the settings are changed, without leaving the chat.
2980
3015
  theme.fg("muted", "configure with /turri-config"),
@@ -3026,6 +3061,7 @@ function registerBranding(pi, skills) {
3026
3061
  pending: skills.pending.length,
3027
3062
  sandbox: sandboxSummary(),
3028
3063
  versions: versions.lines,
3064
+ config: unknownConfigLines(ctx.cwd),
3029
3065
  });
3030
3066
  }
3031
3067
  catch {
package/dist/genome.js CHANGED
@@ -4,6 +4,7 @@ import { Command, MemorySaver } from "@langchain/langgraph";
4
4
  import { compileSkill } from "./graph.js";
5
5
  import { createExecutor } from "./pi.js";
6
6
  import { plainWriteTools } from "./plain-files.js";
7
+ import { skillShell } from "./self-invocation.js";
7
8
  import { toolchainsBlock } from "./stack.js";
8
9
  import { clearOfStop, describeToolCall, describeToolResult, withStopSignal } from "./regenerate/activity.js";
9
10
  import { createLiveReviewer } from "./review/live.js";
@@ -104,6 +105,9 @@ async function runStoppable(opts) {
104
105
  customTools.push(...(opts.sharedTools ?? []));
105
106
  // Its write and edit reach the project's ***plain only - not the code, a release, or what an app it started writes.
106
107
  customTools.push(...plainWriteTools(opts.cwd).filter((tool) => skill.allowedTools.includes(tool.name)));
108
+ // Its shell runs neither turri nor another pi again: that would build outside the session's work loop.
109
+ if (skill.allowedTools.includes("bash"))
110
+ customTools.push(skillShell(opts.cwd));
107
111
  const names = customTools.map((tool) => tool.name);
108
112
  // Tools this harness provides are never pi built-ins, even when it did not provide them.
109
113
  const builtins = skill.allowedTools.filter((t) => !names.includes(t) && !LOOP_TOOLS.includes(t));
@@ -2,7 +2,7 @@ import { type ExtensionContext, type ToolDefinition } from "@earendil-works/pi-c
2
2
  import { Type } from "typebox";
3
3
  import { type ModuleStatus, type WorkLoop } from "./regenerate/loop.ts";
4
4
  import type { RenderWork } from "./regenerate/engine.ts";
5
- import { type JobRegistry } from "./regenerate/jobs.ts";
5
+ import { type Job, type JobRegistry } from "./regenerate/jobs.ts";
6
6
  /**
7
7
  * The tools that act on the work loop - `regenerate`, `drift` and `halt` - defined once, for the conversation and for the
8
8
  * skills alike: a skill that regenerates what a spec holds, or reads how far it is regenerated, uses the conversation's
@@ -37,8 +37,31 @@ export declare function fromWorkingDir<T extends {
37
37
  }>(cwd: string, params: T): T & {
38
38
  base: string;
39
39
  };
40
- /** What the loop is doing for a spec's modules, for the conversation - and, waiting, how each module ended. */
41
- export declare function loopReply(loop: WorkLoop, statuses: ModuleStatus[], wait: boolean): Promise<{
40
+ /**
41
+ * A call that waits for its pulses - print, json and rpc modes, or `wait: true` - in the chat it was made in: every pulse
42
+ * of that chat that was not there when it was made, and ends while it waits, is told in its reply.
43
+ */
44
+ export interface Wait {
45
+ chat: string | undefined;
46
+ before: ReadonlySet<string>;
47
+ }
48
+ /** A call in this chat starts waiting, from the pulses there are now. */
49
+ export declare function startWait(jobs: JobRegistry): Wait;
50
+ /** A call is done waiting: what ends now is told as any pulse's end is. */
51
+ export declare function endWait(jobs: JobRegistry, wait: Wait): void;
52
+ /**
53
+ * Whether a pulse that ended is told by a call still waiting in its chat - its agent is told it in that call's reply, so
54
+ * a turn of its own to say it again would only repeat it.
55
+ */
56
+ export declare function toldByWaitingCall(jobs: JobRegistry, job: Job): boolean;
57
+ /**
58
+ * What the loop is doing for a spec's modules, for the conversation - and, waiting, the pulses that ran meanwhile and how
59
+ * each ended, then how each module stands: `ran` is the registry and the call's wait (startWait).
60
+ */
61
+ export declare function loopReply(loop: WorkLoop, statuses: ModuleStatus[], wait: boolean, ran?: {
62
+ jobs: JobRegistry;
63
+ wait: Wait;
64
+ }): Promise<{
42
65
  content: {
43
66
  type: "text";
44
67
  text: string;
@@ -6,7 +6,10 @@ import { Type } from "typebox";
6
6
  import { CONFIG_FILE, readProjectConfig, stackConfigFile, stackForModule, stackNamed, stacksOf, withStack } from "./config.js";
7
7
  import { checkPlainFile, formatCheckResults } from "./plain/check.js";
8
8
  import { describeDrift, describeModules } from "./regenerate/loop.js";
9
- import { pulseName } from "./regenerate/jobs.js";
9
+ import { describeJob, pulseName } from "./regenerate/jobs.js";
10
+ import { currentChat } from "./chat-scope.js";
11
+ import { whyFailed } from "./regenerate/diagnose-job.js";
12
+ import { didNotLand } from "./regenerate/failure-reports.js";
10
13
  import { stopDeployed } from "./regenerate/release.js";
11
14
  import { projectDirOf } from "./regenerate/paths.js";
12
15
  import { findTestScripts } from "./regenerate/test-scripts.js";
@@ -90,13 +93,69 @@ export function fromWorkingDir(cwd, params) {
90
93
  ...(params.build_dir !== undefined ? { build_dir: resolve(base, params.build_dir) } : {}),
91
94
  };
92
95
  }
93
- /** What the loop is doing for a spec's modules, for the conversation - and, waiting, how each module ended. */
94
- export async function loopReply(loop, statuses, wait) {
95
- if (wait)
96
- await loop.drain();
96
+ /** The calls waiting now, by registry. */
97
+ const waits = new WeakMap();
98
+ /** A call in this chat starts waiting, from the pulses there are now. */
99
+ export function startWait(jobs) {
100
+ const wait = { chat: currentChat()?.id, before: new Set(jobs.list().map((job) => job.id)) };
101
+ const set = waits.get(jobs) ?? new Set();
102
+ set.add(wait);
103
+ waits.set(jobs, set);
104
+ return wait;
105
+ }
106
+ /** A call is done waiting: what ends now is told as any pulse's end is. */
107
+ export function endWait(jobs, wait) {
108
+ waits.get(jobs)?.delete(wait);
109
+ }
110
+ /**
111
+ * Whether a pulse that ended is told by a call still waiting in its chat - its agent is told it in that call's reply, so
112
+ * a turn of its own to say it again would only repeat it.
113
+ */
114
+ export function toldByWaitingCall(jobs, job) {
115
+ for (const wait of waits.get(jobs) ?? [])
116
+ if (wait.chat === job.chat && !wait.before.has(job.id))
117
+ return true;
118
+ return false;
119
+ }
120
+ /** A module's why while it waits for a testing script being written (loop.ts SCRIPT_BEING_WRITTEN). */
121
+ const SCRIPT_WAIT = /, which is being written$/;
122
+ /** How often a waiting call looks again while its module waits for a testing script. */
123
+ const SCRIPT_POLL_MS = 500;
124
+ /** How much of each pulse that ran while a call waited is told: the rest is pulses' with its id. */
125
+ const RAN_CHARS = 3_000;
126
+ /**
127
+ * What the loop is doing for a spec's modules, for the conversation - and, waiting, the pulses that ran meanwhile and how
128
+ * each ended, then how each module stands: `ran` is the registry and the call's wait (startWait).
129
+ */
130
+ export async function loopReply(loop, statuses, wait, ran) {
131
+ try {
132
+ if (wait) {
133
+ await loop.drain();
134
+ // A module held for a testing script being written - beside this call, by a skill run - starts once it is: a call
135
+ // that waits waits for that too, rather than say it waits and end before its pulse runs.
136
+ while (loop.status().some((status) => statuses.some((asked) => asked.plainFile === status.plainFile) && SCRIPT_WAIT.test(status.why ?? ""))) {
137
+ await new Promise((resolve) => setTimeout(resolve, SCRIPT_POLL_MS));
138
+ await loop.drain();
139
+ }
140
+ }
141
+ }
142
+ finally {
143
+ if (ran !== undefined)
144
+ endWait(ran.jobs, ran.wait);
145
+ }
97
146
  const now = wait ? loop.status().filter((status) => statuses.some((asked) => asked.plainFile === status.plainFile)) : statuses;
98
147
  const jobIds = now.flatMap((status) => (status.running !== undefined ? [status.running.jobId] : []));
148
+ const pulses = wait && ran !== undefined ? ran.jobs.list().filter((job) => job.chat === ran.wait.chat && !ran.wait.before.has(job.id)).sort((a, b) => a.sequence - b.sequence) : [];
149
+ const cut = (text) => (text.length > RAN_CHARS ? `${text.slice(0, RAN_CHARS)}\n… cut short: pulses with its id tells the whole of it` : text);
99
150
  const text = [
151
+ ...(pulses.length > 0
152
+ ? [
153
+ `What ran while you waited - ${pulses.length} pulse${pulses.length === 1 ? "" : "s"}:`,
154
+ ...pulses.map((job) => `\n<pulse id="${job.id}" landed="${didNotLand(job) ? "no" : "yes"}">\n${cut(didNotLand(job) ? whyFailed(job) : describeJob(job))}\n</pulse>`),
155
+ "",
156
+ "How each module stands now:",
157
+ ]
158
+ : []),
100
159
  describeModules(now),
101
160
  "",
102
161
  wait
@@ -211,12 +270,23 @@ export function regenerateTool(options) {
211
270
  const model = options.model !== undefined ? options.model(ctx, plainFile, given.model, work) : given.model;
212
271
  const loop = options.loop(ctx);
213
272
  const request = { ...(model !== undefined ? { model } : {}), ...(given.guidance !== undefined ? { guidance: given.guidance } : {}) };
214
- const statuses = given.from_scratch !== undefined
215
- ? await loop.fromScratch(plainFile, { ...request, chain: given.from_scratch === "chain" })
216
- : again.length > 0
217
- ? await loop.regenerateAgain(plainFile, again, request)
218
- : await loop.bringUp(plainFile, request);
219
- return loopReply(loop, statuses, options.wait !== undefined ? options.wait(ctx, given.wait) : given.wait === true);
273
+ const wait = options.wait !== undefined ? options.wait(ctx, given.wait) : given.wait === true;
274
+ const waiting = wait && options.jobs !== undefined ? { jobs: options.jobs, wait: startWait(options.jobs) } : undefined;
275
+ let statuses;
276
+ try {
277
+ statuses =
278
+ given.from_scratch !== undefined
279
+ ? await loop.fromScratch(plainFile, { ...request, chain: given.from_scratch === "chain" })
280
+ : again.length > 0
281
+ ? await loop.regenerateAgain(plainFile, again, request)
282
+ : await loop.bringUp(plainFile, request);
283
+ }
284
+ catch (error) {
285
+ if (waiting !== undefined)
286
+ endWait(waiting.jobs, waiting.wait);
287
+ throw error;
288
+ }
289
+ return loopReply(loop, statuses, wait, waiting);
220
290
  });
221
291
  },
222
292
  });
package/dist/pi.js CHANGED
@@ -317,6 +317,9 @@ async function askOnce(session, text, onDelta) {
317
317
  reportNow("thinking");
318
318
  }
319
319
  else if (update.type === "text_start") {
320
+ // Each message of the turn its own paragraph: the agent's words between tool calls never run into each other.
321
+ if (out !== "" && !/\s$/.test(out))
322
+ out += "\n\n";
320
323
  reportNow("writing");
321
324
  }
322
325
  else if (update.type === "toolcall_start") {
@@ -95,7 +95,9 @@ export function agentShell(role, options = {}) {
95
95
  const checked = checkCommand(command, commandFence);
96
96
  if (!checked.ok) {
97
97
  record({ kind: "command.refused", rule: checked.rule });
98
- reportNote(` refused an agent's command (${checked.rule}): ${command.length > 120 ? `${command.slice(0, 120)}...` : command}`);
98
+ // On one line: a note is a line of the job panel, and a command's newlines would break the screen around it.
99
+ const shown = command.replace(/\s+/g, " ").trim();
100
+ reportNote(` refused an agent's command (${checked.rule}): ${shown.length > 120 ? `${shown.slice(0, 120)}...` : shown}`);
99
101
  const output = `Not run: ${checked.reason}`;
100
102
  runOptions.onData?.(Buffer.from(output));
101
103
  return { exitCode: 126, output };
@@ -9,6 +9,8 @@ const SKIPPED = new Set([
9
9
  "node_modules", ".venv", "venv", "__pycache__", ".pytest_cache", ".mypy_cache", ".ruff_cache", ".tox", "target", "build",
10
10
  "dist", ".gradle", ".m2", ".cargo", ".next", "coverage", ".git", ".turri", ".plaingit", ".idea", ".vscode",
11
11
  ]);
12
+ /** How close to the command's start a file's time must be for its time and size alone not to be trusted. */
13
+ const RACY_MS = 1_000;
12
14
  /** A file kept whole before the command - at most this big. */
13
15
  const MAX_KEPT = 1024 * 1024;
14
16
  function stat(path) {
@@ -156,6 +158,13 @@ export function afterCommand(snapshot) {
156
158
  continue;
157
159
  changed.push(path);
158
160
  }
161
+ else if (seen.mtimeMs >= snapshot.at - RACY_MS) {
162
+ // Its time and size as before, but written around when the command started: rewritten to the same size within
163
+ // the same tick of the file system's clock would look the same. What it held before tells - where it was kept.
164
+ const kept = tree.kept?.get(path);
165
+ if (kept !== undefined && !readFileSync(path).equals(kept))
166
+ changed.push(path);
167
+ }
159
168
  }
160
169
  for (const path of tree.files.keys())
161
170
  if (!after.has(path))
@@ -209,6 +209,11 @@ export declare function placeProblems(input: PlaceInput, answer: PlaceAnswer): s
209
209
  * spec it changes - else of its first change - and how many more it makes. Never the bare word.
210
210
  */
211
211
  export declare function editTitle(changes: SpecChange[]): string;
212
+ /**
213
+ * The title of the pulse that changes what is built, first: what it changes, by name - the functional specs' func-ids,
214
+ * else the kinds of item - so the person reads which, not "changes to what is built".
215
+ */
216
+ export declare function builtTitle(changes: SpecChange[]): string;
212
217
  export declare function planChunks(input: PlanInput, agents?: ChunkAgents, notes?: string[]): Promise<DraftJob[]>;
213
218
  export declare function groupPrompt(specs: NewSpec[], steering?: Steering[], maxSpecs?: number, built?: BuiltChange[]): string;
214
219
  export declare function placePrompt(input: PlaceInput): string;
@@ -358,6 +358,21 @@ export function editTitle(changes) {
358
358
  const more = `, and ${rest.length} more`;
359
359
  return `${shortTitle(line, TITLE_CHARS - more.length, TITLE_WORDS - 3).replace(/[.,;:]+$/, "")}${more}`;
360
360
  }
361
+ /**
362
+ * The title of the pulse that changes what is built, first: what it changes, by name - the functional specs' func-ids,
363
+ * else the kinds of item - so the person reads which, not "changes to what is built".
364
+ */
365
+ export function builtTitle(changes) {
366
+ const ids = [...new Set(changes.filter(isFunctionalSpec).map(funcIdOf).filter((id) => id !== undefined))];
367
+ if (ids.length > 0) {
368
+ const named = ids.slice(0, 2).join(", ");
369
+ const others = changes.length - changes.filter(isFunctionalSpec).length;
370
+ const more = ids.length - 2 + others;
371
+ return `Changes to ${named}${more > 0 ? `, and ${more} more` : ""}`;
372
+ }
373
+ const kinds = [...new Set(changes.map((change) => WHAT[change.section] ?? change.section))].map((kind) => `${kind}s`);
374
+ return `Changes to the ${kinds.length > 1 ? `${kinds.slice(0, -1).join(", ")} and ${kinds.at(-1)}` : kinds[0]}`;
375
+ }
361
376
  /** A change as the title agent is shown it: what it is, how it changes, its text now - and before, for a change. */
362
377
  function titleChangeOf(change) {
363
378
  return {
@@ -553,7 +568,7 @@ async function cut(input, agents, notes) {
553
568
  const bySpec = new Map(specs.map((change, index) => [index + 1, change]));
554
569
  const firstBuilt = () => builtChanges.filter((change) => (builtTo.get(change) ?? "first") === "first");
555
570
  const chunksFor = (list) => [
556
- ...(firstBuilt().length > 0 ? [{ title: "Changes to what is built", specs: [], definitions: [], reqs: [], built: firstBuilt() }] : []),
571
+ ...(firstBuilt().length > 0 ? [{ title: builtTitle(firstBuilt()), specs: [], definitions: [], reqs: [], built: firstBuilt() }] : []),
557
572
  ...list.map((group) => ({
558
573
  title: group.title,
559
574
  specs: group.specs.map((number) => bySpec.get(number)),
@@ -227,7 +227,9 @@ export function jobPanelLines(jobs, options = {}) {
227
227
  const key = options.keys ?? ((_key, text) => text);
228
228
  lines.push(` ${key("trace", `ctrl+o to ${expanded ? "collapse" : "expand"} the trace`)} · ${key("peek", `${PANEL_KEY} to peek at regen`)}`);
229
229
  }
230
- return lines;
230
+ // A line is one row of the screen: a newline in one - an agent's words, a command - would draw past what the renderer
231
+ // tracks and stay on the screen, so each part is a row of its own.
232
+ return lines.flatMap((line) => line.split(/\r?\n/));
231
233
  }
232
234
  /**
233
235
  * The keys of the line, painted at `now`'s breath: one not pressed yet in the text's colour mixed toward the dim one, one
@@ -33,7 +33,7 @@ import { baseFolderDrift, baseOfCodebase, seedFromBaseFolder } from "./base-fold
33
33
  import { BASE_RECORD_FILE } from "./paths.js";
34
34
  import { onScriptRunEnded, scriptBeingWritten } from "./scripts-being-written.js";
35
35
  import { conformanceTestsOn } from "../conformance-switch.js";
36
- import { findTestScripts, projectRootFor } from "./test-scripts.js";
36
+ import { projectRootFor } from "./test-scripts.js";
37
37
  /** What is left to regenerate, as the conversation and the command line read it. */
38
38
  export function describeDrift(reports) {
39
39
  if (reports.length === 0)
@@ -294,13 +294,14 @@ export function createWorkLoop(options) {
294
294
  return testingGap({ moduleName: tip.moduleName, plainFile: tip.plainFile, tree: spec.tree, buildDir: tip.buildDir });
295
295
  };
296
296
  /**
297
- * Whether a codebase lacks a testing script of this kind that is being written in the background now: it waits for it,
298
- * rather than fail for want of it, and is looked at again once the run ends.
297
+ * Whether a testing script of this kind is being written for a codebase now - one it lacks, or one written over: it waits
298
+ * for it, rather than fail for want of it or run against the old one, and is looked at again once the run ends.
299
299
  */
300
300
  const awaitsScript = (state, kind) => {
301
301
  const tip = tipEntry(state);
302
302
  const root = projectRootFor(tip.plainFile, tip.buildDir);
303
- return scriptBeingWritten(root, kind, stackForModule(tip.plainFile)) && findTestScripts(root, tip.plainFile, tip.buildDir)[kind] === undefined;
303
+ // Lacking the script, or with one being written over: a pulse started now would run without it, or against the old one.
304
+ return scriptBeingWritten(root, kind, stackForModule(tip.plainFile));
304
305
  };
305
306
  /**
306
307
  * The base folder a codebase started from, as its status says it. Counting the files still there looks at each, and the
@@ -1886,8 +1887,11 @@ export function describeModules(statuses, options = {}) {
1886
1887
  : ` ${index + 1}. ${job.track === "conformance" ? "conformance tests: " : ""}${job.title} - ${casesText(job.cases)}`));
1887
1888
  if (status.planNotes !== undefined)
1888
1889
  lines.push(" what the plan did not do as asked:", ...status.planNotes.map((note) => ` - ${note}`));
1890
+ // A look ahead from the command line keeps its plan only while the process lives: the run that starts it plans again.
1889
1891
  if (status.why !== undefined)
1890
- lines.push(` ${status.why}`);
1892
+ lines.push(options.for === "command line" && status.why === LOOKED_AHEAD
1893
+ ? ` looked ahead - planned, nothing started: turri regenerate ${basename(status.plainFile)} runs it, planning it again as it starts`
1894
+ : ` ${status.why}`);
1891
1895
  if (status.conformanceNote !== undefined)
1892
1896
  lines.push(` ${status.conformanceNote}`);
1893
1897
  lines.push(...startOver(status));
@@ -570,11 +570,14 @@ export async function renderSpecDiff(options) {
570
570
  // Passing means the harness's own run of the unit testing script passed, last.
571
571
  const unitPassed = verified;
572
572
  const files = diffFiles(digestsBefore, digestFiles(buildDir));
573
+ // The report is what the agent said it did, handed over with submit_work - not what it said along the way, which reads
574
+ // as a plan ("next I'll check...") when its last words came before its last tool calls. Without an account, its words.
575
+ const account = work.last()?.summary.trim();
573
576
  const base = {
574
577
  moduleName,
575
578
  buildDir,
576
579
  diff: applied,
577
- response,
580
+ response: account !== undefined && account !== "" ? account : response,
578
581
  runs,
579
582
  attempts,
580
583
  testRemovals,
@@ -30,6 +30,8 @@ export interface WorkLedger {
30
30
  peek: () => WorkAccount[];
31
31
  /** What was handed over since the last take - and from now, nothing. */
32
32
  take: () => WorkAccount[];
33
+ /** The last account handed over, taken or not: what the agent last said it did. */
34
+ last: () => WorkAccount | undefined;
33
35
  }
34
36
  export declare function createWorkLedger(): WorkLedger;
35
37
  /** The problems, numbered from 1, that no account answered. */
@@ -5,7 +5,9 @@ export const SUBMIT_WORK_NOTE = [
5
5
  "When you are done with a turn - the work written and its tests passing - call submit_work, last: a short summary of",
6
6
  "what you did and why, and after a review, an answer for each problem it raised - fixed, or declined and why. Its",
7
7
  "reviewer gets your account beside the diff of what you changed, and checks the one against the other: say what you",
8
- "did, not what you meant to.",
8
+ "did, not what you meant to. It is also the pulse's report to the person: say what the code does now, and a check you",
9
+ "ran as the check it was - \"breaking the tie order on purpose made 4 tests fail\" - never a bug you planted and undid",
10
+ "as if it were in the code.",
9
11
  ];
10
12
  /** What the agent is told with a review's problems: how it answers them. */
11
13
  export const SUBMIT_AFTER_REVIEW = [
@@ -13,6 +15,7 @@ export const SUBMIT_AFTER_REVIEW = [
13
15
  ];
14
16
  export function createWorkLedger() {
15
17
  let accounts = [];
18
+ let last;
16
19
  const tool = defineTool({
17
20
  name: "submit_work",
18
21
  label: "Submit the work",
@@ -20,7 +23,7 @@ export function createWorkLedger() {
20
23
  "raised, by its number - fixed, or declined and why, and the files. The reviewer checks it against the diff.",
21
24
  promptSnippet: "hand the work over for review - what you did, and your answer to each problem raised",
22
25
  parameters: Type.Object({
23
- summary: Type.String({ description: "What you did in this turn and why, in a few sentences" }),
26
+ summary: Type.String({ description: "What you did in this turn and why, in a few sentences - the pulse's report: what the code does now, a check you ran said as a check" }),
24
27
  answers: Type.Optional(Type.Array(Type.Object({
25
28
  problem: Type.Number({ description: "The problem's number in the review's list" }),
26
29
  outcome: Type.Union([Type.Literal("fixed"), Type.Literal("declined")]),
@@ -29,13 +32,15 @@ export function createWorkLedger() {
29
32
  }), { description: "After a review: one answer for each problem it raised. Omit on a first turn." })),
30
33
  }),
31
34
  async execute(_id, params) {
32
- accounts.push({ summary: params.summary, answers: (params.answers ?? []) });
35
+ last = { summary: params.summary, answers: (params.answers ?? []) };
36
+ accounts.push(last);
33
37
  return { content: [{ type: "text", text: "Handed over." }], details: {}, terminate: true };
34
38
  },
35
39
  });
36
40
  return {
37
41
  tool,
38
42
  peek: () => [...accounts],
43
+ last: () => last,
39
44
  take() {
40
45
  const taken = accounts;
41
46
  accounts = [];
@@ -17,7 +17,7 @@ build when none is given), coding-model (the agents that build) and harness-mode
17
17
  for every functional spec's scenarios.
18
18
 
19
19
  --dry-run look ahead: plan the work as regenerate would and print the prompt of each codebase's
20
- next pulse, starting and writing nothing
20
+ next pulse, starting nothing and changing no code or tests
21
21
  --start-over start over, without asking, a codebase regenerated without a module it now requires -
22
22
  with no terminal to ask and without it, the run stops there
23
23
  --from-scratch delete the module's code and conformance tests (its lineage keeps them) and regenerate all of it
@@ -8,6 +8,7 @@
8
8
  * the same build directories. It is never the right call unless the person asked for the
9
9
  * command line, so the harness refuses it and names the tool to use instead.
10
10
  */
11
+ import { type ToolDefinition } from "@earendil-works/pi-coding-agent";
11
12
  /**
12
13
  * What a shell command would run of turri or pi itself, if anything: the subcommand,
13
14
  * or "pi" for another pi. `turri parse`, `drift` and `lineage` are not in it - they start no
@@ -23,3 +24,13 @@ export declare function askedForCommandLine(message: string): boolean;
23
24
  export declare function refusal(what: string, surface?: string): string;
24
25
  /** The instruction that goes into the conversation's system prompt. */
25
26
  export declare const TOOLS_NOT_CLI: string;
27
+ type AnyTool = ToolDefinition<any, any, any>;
28
+ /** What a skill's agent is told when its shell would run turri or another pi. */
29
+ export declare function skillRefusal(what: string): string;
30
+ /**
31
+ * A skill's shell: pi's bash in the project, refusing what its agent never runs there - turri or another pi again
32
+ * (selfInvocation), and a change to the machine's toolchains or settings (machineChange). The conversation's own bash is
33
+ * held to the same by its tool_call guard; a skill runs in a session of its own, which that guard does not see.
34
+ */
35
+ export declare function skillShell(cwd: string): AnyTool;
36
+ export {};
@@ -8,6 +8,8 @@
8
8
  * the same build directories. It is never the right call unless the person asked for the
9
9
  * command line, so the harness refuses it and names the tool to use instead.
10
10
  */
11
+ import { createBashToolDefinition } from "@earendil-works/pi-coding-agent";
12
+ import { machineChange, machineChangeReason } from "./regenerate/command-check.js";
11
13
  /** The tool that does what a turri subcommand does, from inside the conversation. */
12
14
  const TOOL_FOR = {
13
15
  regenerate: "regenerate",
@@ -106,3 +108,30 @@ export const TOOLS_NOT_CLI = [
106
108
  "is fine; it starts no agent.",
107
109
  "</turri-tools>",
108
110
  ].join("\n");
111
+ /** What a skill's agent is told when its shell would run turri or another pi. */
112
+ export function skillRefusal(what) {
113
+ return (`Not run: that starts ${what === "pi" ? "another agent" : `turri ${what}`} from the shell - a separate, headless run outside the person's session, ` +
114
+ "its pulses and /halt, writing the same codebases as the work loop. A skill starts no pulse: finish your own work, and say in what you " +
115
+ "hand back what should run next - the conversation runs it.");
116
+ }
117
+ /**
118
+ * A skill's shell: pi's bash in the project, refusing what its agent never runs there - turri or another pi again
119
+ * (selfInvocation), and a change to the machine's toolchains or settings (machineChange). The conversation's own bash is
120
+ * held to the same by its tool_call guard; a skill runs in a session of its own, which that guard does not see.
121
+ */
122
+ export function skillShell(cwd) {
123
+ const bash = createBashToolDefinition(cwd);
124
+ return {
125
+ ...bash,
126
+ async execute(toolCallId, params, signal, onUpdate, ctx) {
127
+ const command = String(params.command ?? "");
128
+ const what = selfInvocation(command);
129
+ if (what !== undefined)
130
+ throw new Error(skillRefusal(what));
131
+ const changes = machineChange(command);
132
+ if (changes !== undefined)
133
+ throw new Error(machineChangeReason(changes));
134
+ return bash.execute(toolCallId, params, signal, onUpdate, ctx);
135
+ },
136
+ };
137
+ }
package/dist/sentinel.js CHANGED
@@ -182,7 +182,10 @@ export function sentinelPrompt(cwd, options = {}) {
182
182
  " its log, and the code and the ***plain, which you read.",
183
183
  "2. When it was released (the message says so - release-after-pulse is on), test what was released: it is running",
184
184
  " where the message says. How far you test is yours to judge, from what the pulse changed and what the ***plain says",
185
- " it should do: that it came up, answers, and does what its ***plain diff says it now does.",
185
+ " it should do: that it came up, answers, and does what its ***plain diff says it now does. Where the ***plain picks",
186
+ " one way among several - which of a tie comes first, how a default is chosen - try an input on which the ways give",
187
+ " different answers, so a pass shows the ***plain's way and no other: a tie whose first word is also first",
188
+ " alphabetically tells \"first in the file\" from nothing.",
186
189
  "3. When something is wrong - the pulse failed or stopped, it did not pass, the release did not come up, the software",
187
190
  " does not do what its ***plain says - find out why. Then:",
188
191
  " - When it is the project's tooling - a testing script, or where config.turri.yaml says the scripts are and which",
@@ -209,7 +212,7 @@ export function sentinelPrompt(cwd, options = {}) {
209
212
  "",
210
213
  "You fix the project's tooling and nothing else. Your file tools read the whole project; write and edit reach only the",
211
214
  "testing scripts and config.turri.yaml - and in it only where the scripts are, and toolchains:. Your shell runs with",
212
- "the project read only. You never change ***plain - it is the person's intent, never yours to fix - and never steer,",
215
+ "the project read only; the files you try a release with go in $TMPDIR - /tmp is outside what it may write. You never change ***plain - it is the person's intent, never yours to fix - and never steer,",
213
216
  "release, or regenerate but by resume after a fix of yours. You install nothing on this machine and change none of",
214
217
  "its settings, nor the person's shell - under no circumstances: that is always the person's, said in a notice. You",
215
218
  "never ask the person questions - a notice is how you reach them.",
@@ -180,7 +180,8 @@ export function removalOf(turri, platform = process.platform) {
180
180
  export function versionFindings(options = {}) {
181
181
  const identity = options.self ?? (() => {
182
182
  const own = turriIdentity();
183
- return { ...(own.version !== null ? { version: own.version } : {}), clone: own.git_commit !== null, root: PACKAGE_ROOT };
183
+ // An image built from a clone (docker/Dockerfile) has no .git, and is updated by building it again from a newer clone.
184
+ return { ...(own.version !== null ? { version: own.version } : {}), clone: own.git_commit !== null || process.env.TURRI_FROM_CLONE === "1", root: PACKAGE_ROOT };
184
185
  })();
185
186
  const onPath = options.onPath ?? turrisOnPath();
186
187
  const findings = [];
package/docs/config.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The project config
2
2
 
3
- A project says how its \*\*\*plain is built in `config.turri.yaml`, at the project root. Everything in it is optional: with no file at all, turri finds the testing scripts on its own, turns conformance tests on wherever a module has test reqs, and runs on [pi](https://pi.dev)'s configured model. A project whose parts are on different stacks - a backend and a frontend - adds a file per stack, `config.turri.<stack>.yaml`, beside it, and chooses the stack to build with (see [stacks](#stacks)). turri never writes a `config.yaml`: it may be another tool's, and is read only by a project that has no file of turri's yet (see [the old config.yaml](#the-old-configyaml)).
3
+ A project says how its \*\*\*plain is built in `config.turri.yaml`, at the project root. Everything in it is optional: with no file at all, turri finds the testing scripts on its own, turns conformance tests on wherever a module has test reqs, and runs on [pi](https://pi.dev)'s configured model. A project whose parts are on different stacks - a backend and a frontend - adds a file per stack, `config.turri.<stack>.yaml`, beside it, and chooses the stack to build with (see [stacks](#stacks)). turri never writes a `config.yaml`: it may be another tool's, and is read only by a project that has no file of turri's yet (see [the old config.yaml](#the-old-configyaml)). A key in `config.turri.yaml` or a stack's file that turri reads nothing of - a setting it no longer has, like `test-advisor`, or one misspelt - is named in a warning under the banner as turri starts, rather than ignored without a word.
4
4
 
5
5
  `turri init-config` starts one: the two models, a strong one to talk to and a smaller one to write the code. It asks which vendor's models you use - `--vendor` says it without asking, and with neither, as from a script, it is `other`:
6
6
 
package/docs/headless.md CHANGED
@@ -226,4 +226,4 @@ turri regenerate app.plain --harness-model amazon-bedrock/eu.anthropic.claude-op
226
226
  nohup turri -p "Render app.plain as a whole module, with conformance tests" > render.log 2>&1 &
227
227
  ```
228
228
 
229
- It reports what it did at the end, and nothing streams in between, so for long runs `turri regenerate` is the better choice. A skill that interviews needs someone to answer; without one it decides and record their assumptions, and a gate that escalates to a human stops the run.
229
+ It reports what it did at the end, and nothing streams in between, so for long runs `turri regenerate` is the better choice. A tool that waited - `regenerate`, `conform` - comes back with every pulse of the chat that ran while it waited, each with its report or why it did not land, before how each module stands; those pulses' ends start no turn of their own after it, so the answer says each once. A module waiting for a testing script being written beside it - a skill run in the same turn - is waited for too, until its pulse has run. A skill that interviews needs someone to answer; without one it decides and record their assumptions, and a gate that escalates to a human stops the run.
@@ -186,7 +186,7 @@ A job that regenerates the whole of a new module's \*\*\*plain is too big to bui
186
186
 
187
187
  Each pulse's title says what it does - at most 10 words and 70 characters, as it heads the pulse where the person watches the work. The grouping agent titles its groups; groups no agent made - the conformance tests', and a grouping that fell back - are titled by a third agent, told what each pulse does: what it builds, or, for the conformance tests, what they test. Without it, or when it fails, a pulse is titled by its functional specs' first lines, cut short. A pulse that makes the whole of an edit in one go - an edit that only changes what is built (a functional spec reworded, a definition or an implementation req changed, none new and none marked to regenerate again), or one no plan of holds together - is titled by the same agent, shown every change, before and after: by what the edit does (`Expired links answer 410 and the stats page goes`), and an edit to definitions or implementation reqs alone by what it changes in what is built (`Links are kept for 30 days`), never by its section. Without it, or when it fails, it is titled by the first line of the first functional spec it changes - else of its first change - and how many more (`Follow-link answers 410 for expired links, and 2 more`). A title names the change, never the act: one that starts with "regenerate" does not hold. Pulses already in the ledger keep the titles they were recorded with.
188
188
 
189
- Changes to what is built - an item edited or taken out, a functional spec built worded differently - go where the same agent places each: with the group of new functional specs it is about, by default - so one edit that adds a functional spec, changes another and takes out a third is one pulse - or first, in a pulse of its own, when it reshapes what the new work is built on (a concept many functional specs use redefined, one others rely on taken out, a large rewrite) or has nothing to do with it. A functional spec changed counts toward its group's `max-specs-per-pulse`; one taken out does not. Every answer is checked: every new functional spec once, in order, next to each other, at most `max-specs-per-pulse`; every change to what is built placed once; every req placed once; every group titled once, within the limit. One that does not hold goes back to its agent, twice at most, and then the plan is a functional spec a job with every req in the first. A group whose functional specs and the definitions they bring pass `max-lines-per-pulse` (120 unset) is split into as few pulses as fit - its functional specs kept together in runs, in order, as long as each run stays within it, `Comments (1 of 2)`, `Comments (2 of 2)` - not a functional spec a job; its reqs do not count, as a split leaves them with its first job whatever happens. The planner runs on the chat's model in a conversation, and on the harness model under `turri regenerate`. No agent reviews its plan: the harness checks it - every change in exactly one job, \*\*\*plain holding together after each, the last ending on \*\*\*plain as it is.
189
+ Changes to what is built - an item edited or taken out, a functional spec built worded differently - go where the same agent places each: with the group of new functional specs it is about, by default - so one edit that adds a functional spec, changes another and takes out a third is one pulse - or first, in a pulse of its own, when it reshapes what the new work is built on (a concept many functional specs use redefined, one others rely on taken out, a large rewrite) or has nothing to do with it - titled by what it changes: `Changes to top-words`, or `Changes to the definitions` when no functional spec is among them. A functional spec changed counts toward its group's `max-specs-per-pulse`; one taken out does not. Every answer is checked: every new functional spec once, in order, next to each other, at most `max-specs-per-pulse`; every change to what is built placed once; every req placed once; every group titled once, within the limit. One that does not hold goes back to its agent, twice at most, and then the plan is a functional spec a job with every req in the first. A group whose functional specs and the definitions they bring pass `max-lines-per-pulse` (120 unset) is split into as few pulses as fit - its functional specs kept together in runs, in order, as long as each run stays within it, `Comments (1 of 2)`, `Comments (2 of 2)` - not a functional spec a job; its reqs do not count, as a split leaves them with its first job whatever happens. The planner runs on the chat's model in a conversation, and on the harness model under `turri regenerate`. No agent reviews its plan: the harness checks it - every change in exactly one job, \*\*\*plain holding together after each, the last ending on \*\*\*plain as it is.
190
190
 
191
191
  Each planned job knows its cases - which functional specs it adds, changes (their text, or a concept they use) and takes out, or none: reqs and definitions only - and the loop says them, with each job's title, where the person looks (`drift`, `pulses`, and what `regenerate` returns).
192
192
 
@@ -194,7 +194,7 @@ Each planned job knows its cases - which functional specs it adds, changes (thei
194
194
 
195
195
  A plan is kept until \*\*\*plain, what it starts from or its steering changes. `steer` alone plans nothing: the next look does - a `regenerate`, a job ending, \*\*\*plain changing. Then the work not running yet is planned again to follow it, a running job going on as it is. Where a plan did not do as asked, it says so, and what `regenerate` returns lists it under "what the plan did not do as asked": each wish an agent did not follow, with why (both tools take a `notes` for that), a grouping or placement that did not hold, with what was wrong, and a group split for its size. The conversation tells the person that, rather than guessing.
196
196
 
197
- **Looking ahead.** What will run can be seen before it does, from the same plan: a look ahead (`WorkLoop.lookAhead` - the chat's `pulses` with a module's `plain_file`, and `turri regenerate --dry-run`) has the session's work loop plan the module as `regenerate` would - the same codebases, its stack pinned, the steering and AGENTS.md's queue section given to the planner - and keep the plans, starting nothing. Its codebases are held for it, apart from a halt: none of their pulses starts when another pulse ends and the loop looks again, and the look ahead writes nothing - a pure rename is not made, the work planned from the code as it would leave it. A codebase whose chain has a pulse running goes on as it was, what follows that pulse planned; a module the person halted stays halted. `regenerate`, `conform` or `/regenerate` lifts the hold, and the first pulse of the kept plan starts as it is, no planner asked again - so the plan seen is the plan run. Until then the plan is kept only while it fits: \*\*\*plain, what it starts from or the steering changed, it is dropped, not made again - only a look ahead plans a held codebase - and the next look ahead or `regenerate` plans it anew. The planned rows say they wait for `regenerate`. A planned row's id (`pulses` with `planned-<module>-1`) gives the next pulse of its codebase's whole prompt, built from the kept plan - and never planned again for it; a later pulse's prompt depends on what the ones before it land, a conformance pulse's on the code once it is built, and a codebase with a pulse running shows none.
197
+ **Looking ahead.** What will run can be seen before it does, from the same plan: a look ahead (`WorkLoop.lookAhead` - the chat's `pulses` with a module's `plain_file`, and `turri regenerate --dry-run`) has the session's work loop plan the module as `regenerate` would - the same codebases, its stack pinned, the steering and AGENTS.md's queue section given to the planner - and keep the plans, starting nothing. Its codebases are held for it, apart from a halt: none of their pulses starts when another pulse ends and the loop looks again, and the look ahead writes nothing - a pure rename is not made, the work planned from the code as it would leave it. A codebase whose chain has a pulse running goes on as it was, what follows that pulse planned; a module the person halted stays halted. `regenerate`, `conform` or `/regenerate` lifts the hold, and the first pulse of the kept plan starts as it is, no planner asked again - so the plan seen is the plan run. Until then the plan is kept only while it fits: \*\*\*plain, what it starts from or the steering changed, it is dropped, not made again - only a look ahead plans a held codebase - and the next look ahead or `regenerate` plans it anew. The planned rows say they wait for `regenerate`. A planned row's id (`pulses` with `planned-<module>-1`) gives the next pulse of its codebase's whole prompt, built from the kept plan - and never planned again for it; a later pulse's prompt depends on what the ones before it land, a conformance pulse's on the code once it is built, and a codebase with a pulse running shows none. `turri regenerate --dry-run` keeps its plan only while it runs: it prints the next pulse's prompt and exits, and the `turri regenerate` after it plans again.
198
198
 
199
199
  ### When \*\*\*plain changes
200
200
 
@@ -220,7 +220,7 @@ Whether something is done is never the agent's call, and never a command it chos
220
220
  | `test_scripts/run_conformance_tests_<lang>.sh` | `run_conformance_tests_<lang>.sh <build> <tests>` | whether the conformance tests pass - the whole suite in `plain_modules/<module>/tests`, every functionality's and those carried up from below, at once - and the tests' static checks with them, exit 80 when only the checks fail |
221
221
  | `test_scripts/prepare_environment_<lang>.sh` - optional | `prepare_environment_<lang>.sh <build>`, before every run of the conformance testing script | nothing on its own: it readies the environment the conformance tests run in - a `mvn install` of the build, say - and when it fails, the conformance tests are not run and the run fails as the preparation's |
222
222
 
223
- The `implement-unit-testing-script` and `implement-conformance-testing-script` skills write them, in the background on the coding model of the module they are for ([background skills](skills-and-gates.md)). While one is being written, a module that lacks that script waits for it - `waiting for its unit testing script, which is being written`, or its conformance testing script - rather than fail for want of it, and is looked at again once the run ends: built, once the script is there, and stopped for want of it as before, when the run wrote none (`src/regenerate/scripts-being-written.ts`). A script written for one stack holds only the modules on that stack. They are looked for at the project root - the folder that holds `plain_modules` - in this order:
223
+ The `implement-unit-testing-script` and `implement-conformance-testing-script` skills write them, in the background on the coding model of the module they are for ([background skills](skills-and-gates.md)). While one is being written - in the background, or to its end in print mode - a module on its stack waits for it, whether it lacks that script or has one being written over (a pulse started meanwhile would run against the old one) - `waiting for its unit testing script, which is being written`, or its conformance testing script - rather than fail for want of it, and is looked at again once the run ends: built, once the script is there, and stopped for want of it as before, when the run wrote none (`src/regenerate/scripts-being-written.ts`). A script written for one stack holds only the modules on that stack. They are looked for at the project root - the folder that holds `plain_modules` - in this order:
224
224
 
225
225
  1. `config.turri.yaml` - with the chosen stack's `config.turri.<stack>.yaml` over it, for a project whose parts are on different stacks - naming them by path from the root:
226
226
 
@@ -331,7 +331,7 @@ They follow the code: a functional spec's scenarios get their tests once its cod
331
331
 
332
332
  ### The steps of adding tests
333
333
 
334
- Nothing about testing exists until the person asks for it, or - conformance tests on - the chat judges a functional spec needs it: a module imports its stack alone, and its functional specs have no test plain files. The first time tests are written in a module, the chat takes three steps, in order, each a visible change: the **test reqs** - the stack's conformance template, `stdlib/<kind>/conformance/<stack>`, imported, or the module's own `***test reqs***`; the **conformance testing script** for the module's stack, written with `implement-conformance-testing-script` when the project has none ([the testing scripts](#the-testing-scripts)) - in the background, so the chat goes straight on, and the conformance tests wait for the script; then the **scenarios**.
334
+ Nothing about testing exists until the person asks for it, or - conformance tests on - the chat judges a functional spec needs it: a module imports its stack alone, and its functional specs have no test plain files. The first time tests are written in a module, the chat takes three steps, in order, each a visible change, asking nothing - conformance tests on, or `/conform`, is the person's yes to them: the **test reqs** - the stack's conformance template, `stdlib/<kind>/conformance/<stack>`, imported, or the module's own `***test reqs***`; the **conformance testing script** for the module's stack, written with `implement-conformance-testing-script` when the project has none ([the testing scripts](#the-testing-scripts)) - in the background, so the chat goes straight on, and the conformance tests wait for the script; then the **scenarios**.
335
335
 
336
336
  A step skipped - functional specs with scenarios, and no test reqs (the module's own or imported), or no conformance testing script for its stack - and turri refuses to start a conformance pulse there, the work loop's and `conform`'s alike, naming the first step missing and the next step: `app has scenarios to test - app:say-hello - but no ***test reqs***, so its conformance tests cannot be written - the test reqs are the first step of adding tests. Next step: import the stack's conformance template, stdlib/backend/conformance/python-flask.` Nothing is started and nothing halts: the code goes on being built, and once it is, the module waits on that step - `waiting for its test reqs: …` in the loop's status and in `drift` - until \*\*\*plain or the scripts change, when the next look starts the pulse. `parse` gives the same as a warning, never a failure, and the map's top line says what is missing. A module another requires has its conformance tests written in the tips above it, so `parse` judges it by them, and says which: `base's conformance tests are written in top, which requires it: …`. A module with no scenarios skipped nothing: it is not tested, and nothing is said. Asked to conform a module none of whose functional specs has scenarios yet, turri names every step still to take, in their order, from the first one missing - `No functional spec of app has scenarios - none has a test plain file - so there is nothing to test. Adding tests is three steps, in this order: the test reqs, the conformance testing script, the scenarios. Next step: write the module's own ***test reqs***; then write the conformance testing script with the implement-conformance-testing-script skill; then write the scenarios, each functional spec's in tests/app/<func-id>.plain, then regenerate.` - and with only the scenarios left, that step alone.
337
337
 
package/docs/sentinel.md CHANGED
@@ -34,7 +34,7 @@ Nothing goes to the sentinel, or to your chat, until you answer: the pulses that
34
34
  Each pulse it checks from scratch, in a conversation of its own: its prompt, your guidance (`.turri/sentinel.md`, below) and what turri writes it of that pulse - nothing of the pulses before it. Its chat stays the same tab; the conversation in it is replaced as it starts on the next pulse, and the one before is let go - deleted, outside [debug mode](config.md). For each pulse that finishes, turri writes the sentinel what it was and how it ended - its stages, rounds and failures as the [ledger](using.md#the-ledger) has them, its \*\*\*plain diff, its log, the chat that asked for it, the chat you are in, and what was released and where it runs. Then it:
35
35
 
36
36
  1. **checks the pulse** - from what it is told, and when that is not enough, from the pulse in full (`pulses` with its id), its log, the code and the \*\*\*plain;
37
- 2. **tests the release**, with `release-after-pulse` on: what was released is running where it is told, and it tries it - in the terminal with its shell (`curl`, the program itself, the logs), in a host also with what the host gives it, a browser say. How far it tests is its own judgement, from what the pulse changed and what the \*\*\*plain says it now does. With `release-after-pulse` off nothing is running, and it checks the pulse alone;
37
+ 2. **tests the release**, with `release-after-pulse` on: what was released is running where it is told, and it tries it - in the terminal with its shell (`curl`, the program itself, the logs), in a host also with what the host gives it, a browser say. How far it tests is its own judgement, from what the pulse changed and what the \*\*\*plain says it now does. Where the \*\*\*plain picks one way among several - which of a tie comes first, how a default is chosen - it tries an input on which the ways give different answers, so a pass shows the \*\*\*plain's way and no other. With `release-after-pulse` off nothing is running, and it checks the pulse alone;
38
38
  3. **finds out why**, when something is wrong - the pulse failed or stopped, it did not pass, the release did not come up, the software does not do what its \*\*\*plain says. A testing script, or where the config says the scripts are, it fixes itself, resumes the module, and tells you what it changed (below). Anything else it puts to you as a notice, each action a task your chat's agent can carry out once you accept it - and what the machine lacks, the exact command for you to run;
39
39
  4. **notifies no one** when all is well;
40
40
  5. **concludes**, last, whether all is well or not: what it checked and what it found, in a line or two. The chat you are in shows it - `✓ sentinel · app · pulse 3 · checked, it holds` - and its agent tells you so in a line, and does nothing more; when something was wrong, that its notice says what.
@@ -78,6 +78,7 @@ A gate can also have a `continuous` reviewer: a read-only agent that re-reads th
78
78
  Beside "Something else…", every list an agent's question shows carries "Chat about this": the person says what they want to talk over - why it is asked, what an option means for later - and it goes back to the agent that asked, as no answer. A skill's agent answers in the `context` of the question asked again, since nothing else it writes reaches them; the conversation's agent answers in its reply and ends its turn, the person going on in the chat. It is not counted against the questioning level, and owes no \*\*\*plain change. The harness's own first question - how many the phases may ask - has no agent to answer, and does not offer it. Either choice is backed out of with Esc, or by typing nothing: the options come back, so one picked by accident costs nothing. Esc on the options themselves dismisses the question.
79
79
  - **Be asked something on the side.** A skill runs inside one `cultivate` call, so the conversation can answer nothing until it returns. `/btw <question>` (`btw.ts`) can: [pi](https://pi.dev) runs a command at once, even mid-turn, and it starts an agent of its own - fresh, on the chat's model, reading the project and turri and changing nothing - shown the conversation, the running skill's trace and the end of its agent's session, and the pulses. It is told it is turri, as the conversation's agent is (`identity.ts`), and answers as turri, in the first person - never as an onlooker who sends the person to turri with a message to pass on. Its answer goes in the transcript as an entry, in no model's context: the conversation and the skill go on as if nothing was asked. While a question of the skill's has the keys, `/btw <question>` typed as the answer (under "Something else…") is the same: answered, and the question asked again with the answer above it - the skill's agent never sees it.
80
80
  - **Regenerate, and conform.** A skill that names them in `allowed-tools` gets the conversation's own `regenerate`, `drift`, `halt` and `conform`, on its loop: `conform` schedules a conformance pulse for functional specs not built yet, as it does from the chat. The skill never waits for them.
81
+ - **Run commands, never turri again.** A skill with `bash` in `allowed-tools` has a shell in the project that refuses what the conversation's refuses: turri's own commands that start work - `turri regenerate`, `conform`, `cultivate`, `release` - turri itself or another pi, and any change to the machine's toolchains or settings (`skillShell` in `self-invocation.ts`). Such a run would build outside the session's work loop, beside its pulses and unseen by them: a script skill that tried its new conformance testing script with `turri conform` wrote and committed the module's conformance tests from a second turri the chat never heard of. The skill says what should run next in what it hands back, and the conversation runs it.
81
82
  - **Choose the model that regenerates**, when the user says so - `engine`, the same tool the conversation has.
82
83
 
83
84
  The harness still owns the sequence. A step chooses what to ask; it does not choose whether the gate afterwards runs. A run is saved as it goes, so an interrupted one can be resumed where it stopped - a run stopped with the chat's turn (`ctrl+c`, `esc`) too: its agents end their turns there, and what it started on the work loop goes on.
@@ -39,7 +39,7 @@ The other rules say what a spec means. This one says what turri does with a chan
39
39
  ## Conformance tests
40
40
 
41
41
  - Conformance tests are the person's choice: `conformance-tests:` in config.turri.yaml, off when unset, as they make each change take about twice as long. Off, no scenarios are tested and `conform` is refused - write no test plain file, test reqs or conformance testing script. When you think a module needs conformance tests, or the person asks for them, tell them in a line or two why; they decide, and turn them on with `/conform`
42
- - On, you decide which functional specs need scenarios: as you write or change one, judge it by the criteria in the rules on test plain files, and when it needs them, write them - with the test reqs and the conformance testing script first, when missing - as a visible ***plain change the person reviews like any other, then call `regenerate`. The work loop writes and runs their conformance tests once the code is built
42
+ - On, you decide which functional specs need scenarios: as you write or change one, judge it by the criteria in the rules on test plain files, and when it needs them, write them - with the test reqs and the conformance testing script first, when missing, without asking: conformance tests on is the person's yes to all three - as a visible ***plain change the person reviews like any other, then call `regenerate`. The work loop writes and runs their conformance tests once the code is built
43
43
 
44
44
  ## What a coding agent sees
45
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turri-dev/cli",
3
- "version": "0.2.4-next.240620d",
3
+ "version": "0.2.4-next.636a651",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {