@turri-dev/cli 0.4.2 → 0.4.3-next.3fc888b
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 -0
- package/dist/background-skills.d.ts +4 -1
- package/dist/background-skills.js +9 -1
- package/dist/capture/agents.d.ts +391 -0
- package/dist/capture/agents.js +338 -0
- package/dist/capture/area.d.ts +58 -0
- package/dist/capture/area.js +197 -0
- package/dist/capture/assemble.d.ts +122 -0
- package/dist/capture/assemble.js +452 -0
- package/dist/capture/capture.d.ts +116 -0
- package/dist/capture/capture.js +1281 -0
- package/dist/capture/chat.d.ts +29 -0
- package/dist/capture/chat.js +94 -0
- package/dist/capture/checks.d.ts +142 -0
- package/dist/capture/checks.js +643 -0
- package/dist/capture/config.d.ts +13 -0
- package/dist/capture/config.js +60 -0
- package/dist/capture/interface.d.ts +71 -0
- package/dist/capture/interface.js +199 -0
- package/dist/capture/map.d.ts +58 -0
- package/dist/capture/map.js +530 -0
- package/dist/capture/plan.d.ts +8 -0
- package/dist/capture/plan.js +13 -0
- package/dist/capture/progress.d.ts +109 -0
- package/dist/capture/progress.js +240 -0
- package/dist/capture/report.d.ts +75 -0
- package/dist/capture/report.js +268 -0
- package/dist/capture/scripts.d.ts +26 -0
- package/dist/capture/scripts.js +33 -0
- package/dist/capture/state.d.ts +299 -0
- package/dist/capture/state.js +43 -0
- package/dist/capture/trial.d.ts +34 -0
- package/dist/capture/trial.js +89 -0
- package/dist/capture-cli.d.ts +1 -0
- package/dist/capture-cli.js +77 -0
- package/dist/chat-commands.d.ts +2 -10
- package/dist/chat-commands.js +3 -57
- package/dist/chat-tab-header.d.ts +15 -0
- package/dist/chat-tab-header.js +78 -0
- package/dist/chat-tabs.d.ts +26 -0
- package/dist/chat-tabs.js +100 -0
- package/dist/chat-terminal.js +57 -8
- package/dist/chat-waiting.d.ts +4 -1
- package/dist/chat-waiting.js +7 -4
- package/dist/chats.d.ts +11 -6
- package/dist/chats.js +34 -20
- package/dist/cli.js +32 -14
- package/dist/config-edit.js +4 -2
- package/dist/config.d.ts +15 -2
- package/dist/config.js +62 -4
- package/dist/extension.d.ts +1 -0
- package/dist/extension.js +199 -55
- package/dist/identity.js +2 -1
- package/dist/init-config.js +2 -0
- package/dist/loop-cli.js +5 -1
- package/dist/loop-tools.js +5 -1
- package/dist/new-project.d.ts +5 -0
- package/dist/new-project.js +11 -0
- package/dist/pi-launch.js +2 -0
- package/dist/pi-themes.d.ts +3 -0
- package/dist/pi-themes.js +21 -0
- package/dist/pi.js +2 -2
- package/dist/plain-code-blocks.d.ts +14 -0
- package/dist/plain-code-blocks.js +56 -0
- package/dist/pointer-hover.d.ts +12 -0
- package/dist/pointer-hover.js +48 -0
- package/dist/question-dialog.d.ts +5 -0
- package/dist/question-dialog.js +20 -1
- package/dist/regenerate/command-check.js +80 -11
- package/dist/regenerate/job-panel.d.ts +5 -107
- package/dist/regenerate/job-panel.js +4 -289
- package/dist/regenerate/jobs-tree.d.ts +1 -0
- package/dist/regenerate/jobs-tree.js +5 -1
- package/dist/regenerate/loop.js +9 -1
- package/dist/regenerate/side-panel.d.ts +6 -1
- package/dist/regenerate/side-panel.js +158 -22
- package/dist/regenerate/spec-map-view.d.ts +11 -3
- package/dist/regenerate/spec-map-view.js +22 -2
- package/dist/regenerate/test-scripts.d.ts +5 -0
- package/dist/regenerate/test-scripts.js +4 -0
- package/dist/reopen.d.ts +29 -0
- package/dist/reopen.js +47 -0
- package/dist/resume-line.d.ts +4 -1
- package/dist/resume-line.js +5 -2
- package/dist/sentinel-chat.js +7 -2
- package/dist/sentinel.d.ts +1 -1
- package/dist/sentinel.js +3 -1
- package/dist/setup.js +9 -1
- package/dist/terminal-notifications.d.ts +31 -0
- package/dist/terminal-notifications.js +134 -0
- package/docs/README.md +2 -0
- package/docs/capture.md +207 -0
- package/docs/chats.md +8 -6
- package/docs/config.md +16 -3
- package/docs/development.md +4 -1
- package/docs/hosting.md +2 -2
- package/docs/launch.md +2 -2
- package/docs/regenerating.md +1 -1
- package/docs/sandbox.md +2 -2
- package/docs/sentinel.md +11 -11
- package/docs/theming.md +3 -3
- package/docs/using.md +10 -2
- package/genome/capture/capture.md +26 -0
- package/genome/capture/check-conventions.md +5 -0
- package/genome/capture/check-reference.md +11 -0
- package/genome/capture/compact.md +7 -0
- package/genome/capture/concepts.md +3 -0
- package/genome/capture/divide.md +9 -0
- package/genome/capture/feature.md +45 -0
- package/genome/capture/interface.md +9 -0
- package/genome/capture/modules.md +23 -0
- package/genome/capture/outline.md +11 -0
- package/genome/capture/readability.md +12 -0
- package/genome/capture/reference.md +10 -0
- package/genome/capture/split.md +9 -0
- package/genome/capture/survey.md +37 -0
- package/genome/capture/trial.md +18 -0
- package/genome/capture/verify.md +7 -0
- package/genome/rules/turri-regeneration.md +1 -1
- package/package.json +3 -3
package/dist/chat-terminal.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AgentSessionRuntime, InteractiveMode, SessionManager } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import { chatTabHeader } from "./chat-tab-header.js";
|
|
3
|
+
import { chatTabs, closeTerminalChat } from "./chat-tabs.js";
|
|
2
4
|
import { showWaitingMessages } from "./chat-waiting.js";
|
|
5
|
+
import { buttonLabel } from "./pointer-hover.js";
|
|
3
6
|
import { interruptChat, terminalUi } from "./chats.js";
|
|
4
7
|
/**
|
|
5
8
|
* ctrl+c, in the chat shown: what it is doing stopped, the other chats left as they are (`interruptChat`). In a chat
|
|
@@ -59,6 +62,50 @@ export function driveTerminal(core, options = {}) {
|
|
|
59
62
|
};
|
|
60
63
|
showWaitingMessages();
|
|
61
64
|
const prototype = InteractiveMode.prototype;
|
|
65
|
+
let switching = false;
|
|
66
|
+
const tabs = chatTabs(() => core.chats(), (text, shown, hovered, role) => {
|
|
67
|
+
const theme = real?.theme;
|
|
68
|
+
return theme === undefined ? text : buttonLabel(theme, text, shown, hovered, role);
|
|
69
|
+
}, (action) => {
|
|
70
|
+
if (switching || runtime === undefined)
|
|
71
|
+
return;
|
|
72
|
+
if (action.kind === "plain")
|
|
73
|
+
return core.shownChat()?.instance?.plainPanel?.toggle();
|
|
74
|
+
switching = true;
|
|
75
|
+
const change = action.kind === "open" ? core.open() : action.kind === "close" ? closeTerminalChat(core, action.id) : core.show(action.id);
|
|
76
|
+
void change.catch((error) => core.notify(error instanceof Error ? error.message : String(error), "warning")).finally(() => { switching = false; });
|
|
77
|
+
}, () => {
|
|
78
|
+
const panel = core.shownChat()?.instance?.plainPanel;
|
|
79
|
+
return { notifications: core.notifications.count, open: panel?.open() === true, busy: panel?.busy() === true };
|
|
80
|
+
});
|
|
81
|
+
const header = chatTabHeader(tabs);
|
|
82
|
+
const addEntry = prototype.addCustomEntryToChat;
|
|
83
|
+
prototype.addCustomEntryToChat = function (entry) {
|
|
84
|
+
addEntry.call(this, entry);
|
|
85
|
+
if (entry.customType === "turri_banner")
|
|
86
|
+
header.afterBanner(this.chatContainer, entry);
|
|
87
|
+
};
|
|
88
|
+
let stopWatchingTabs;
|
|
89
|
+
const mount = prototype.mountInteractiveTui;
|
|
90
|
+
prototype.mountInteractiveTui = function (tui, components) {
|
|
91
|
+
stopWatchingTabs?.();
|
|
92
|
+
mount.call(this, tui, header.mount(this, components));
|
|
93
|
+
const unwatch = header.watch(this, tui);
|
|
94
|
+
let ticker;
|
|
95
|
+
const refresh = () => {
|
|
96
|
+
if (core.shownChat()?.instance?.plainPanel?.busy() || core.chats().some((chat) => chat.status === "working")) {
|
|
97
|
+
ticker ??= setInterval(() => tui.requestRender(), 250).unref();
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
clearInterval(ticker);
|
|
101
|
+
ticker = undefined;
|
|
102
|
+
}
|
|
103
|
+
tui.requestRender();
|
|
104
|
+
};
|
|
105
|
+
const stop = core.onChats(refresh);
|
|
106
|
+
refresh();
|
|
107
|
+
stopWatchingTabs = () => { stop(); clearInterval(ticker); unwatch(); };
|
|
108
|
+
};
|
|
62
109
|
const rebind = prototype.rebindCurrentSession;
|
|
63
110
|
prototype.rebindCurrentSession = async function (...args) {
|
|
64
111
|
await rebind.apply(this, args);
|
|
@@ -102,8 +149,10 @@ export function driveTerminal(core, options = {}) {
|
|
|
102
149
|
// Leaving turri: every chat let go - the one shown by pi, as it always is.
|
|
103
150
|
const dispose = runtimes.dispose;
|
|
104
151
|
runtimes.dispose = async function () {
|
|
105
|
-
if (this === runtime)
|
|
152
|
+
if (this === runtime) {
|
|
153
|
+
stopWatchingTabs?.();
|
|
106
154
|
await core.dispose({ except: runtime.session });
|
|
155
|
+
}
|
|
107
156
|
return dispose.call(this);
|
|
108
157
|
};
|
|
109
158
|
core.setDriver({
|
|
@@ -135,17 +184,17 @@ export function driveTerminal(core, options = {}) {
|
|
|
135
184
|
return;
|
|
136
185
|
from?.ui?.hide();
|
|
137
186
|
// pi takes the shown chat's widgets and dialogs off the screen, as it does before replacing a session - but not the
|
|
138
|
-
//
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
187
|
+
// overlays on it: the side panel, the session's and not the chat's, stays where it is, beside the chat or over it.
|
|
188
|
+
// pi takes off every overlay it holds, so for that moment it holds none.
|
|
189
|
+
const overlays = screen?.extensionOverlays;
|
|
190
|
+
const kept = [...(overlays ?? [])];
|
|
191
|
+
overlays?.clear();
|
|
143
192
|
try {
|
|
144
193
|
runtime.beforeSessionInvalidate?.();
|
|
145
194
|
}
|
|
146
195
|
finally {
|
|
147
|
-
|
|
148
|
-
|
|
196
|
+
for (const [handle, remove] of kept)
|
|
197
|
+
overlays?.set(handle, remove);
|
|
149
198
|
}
|
|
150
199
|
runtime._session = chat.session;
|
|
151
200
|
runtime._services = chat.services;
|
package/dist/chat-waiting.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ import { type Component } from "@earendil-works/pi-tui";
|
|
|
14
14
|
export interface WaitingScreen {
|
|
15
15
|
chatContainer: Container;
|
|
16
16
|
pendingMessagesContainer: Container;
|
|
17
|
+
/** The output of commands the person ran (`!`) while the agent works: pi keeps it there until it goes in the chat. */
|
|
18
|
+
pendingBashComponents?: Component[];
|
|
17
19
|
getAllQueuedMessages(): {
|
|
18
20
|
steering: string[];
|
|
19
21
|
followUp: string[];
|
|
@@ -36,7 +38,8 @@ export declare class Shade implements Component {
|
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Under the chat, each message the agent has not read yet, drawn as pi draws a message in the chat - shaded, and
|
|
39
|
-
* marked not read yet - in the order they were sent
|
|
41
|
+
* marked not read yet - in the order they were sent; under the output of any command the person ran meanwhile, as pi
|
|
42
|
+
* draws them.
|
|
40
43
|
*/
|
|
41
44
|
export declare function showWaiting(screen: WaitingScreen): void;
|
|
42
45
|
/** What of pi's session `unqueue` reaches. */
|
package/dist/chat-waiting.js
CHANGED
|
@@ -21,11 +21,14 @@ export class Shade {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Under the chat, each message the agent has not read yet, drawn as pi draws a message in the chat - shaded, and
|
|
24
|
-
* marked not read yet - in the order they were sent
|
|
24
|
+
* marked not read yet - in the order they were sent; under the output of any command the person ran meanwhile, as pi
|
|
25
|
+
* draws them.
|
|
25
26
|
*/
|
|
26
27
|
export function showWaiting(screen) {
|
|
27
28
|
const area = screen.pendingMessagesContainer;
|
|
28
29
|
area.clear();
|
|
30
|
+
for (const output of screen.pendingBashComponents ?? [])
|
|
31
|
+
area.addChild(output);
|
|
29
32
|
const { steering, followUp } = screen.getAllQueuedMessages();
|
|
30
33
|
const waiting = [...steering, ...followUp];
|
|
31
34
|
if (waiting.length === 0)
|
|
@@ -36,9 +39,9 @@ export function showWaiting(screen) {
|
|
|
36
39
|
const chat = screen.chatContainer;
|
|
37
40
|
screen.chatContainer = area;
|
|
38
41
|
try {
|
|
39
|
-
for (const text of waiting) {
|
|
40
|
-
// A line between it and
|
|
41
|
-
if (
|
|
42
|
+
for (const [index, text] of waiting.entries()) {
|
|
43
|
+
// A line between it and what is above it; pi puts one between messages itself.
|
|
44
|
+
if (index === 0)
|
|
42
45
|
area.addChild(new Spacer(1));
|
|
43
46
|
const before = area.children.length;
|
|
44
47
|
screen.addMessageToChat({ role: "user", content: [{ type: "text", text }], timestamp: Date.now() });
|
package/dist/chats.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import type { AgentSession, ExtensionAPI, ExtensionContext, ExtensionFactory, Ex
|
|
|
2
2
|
import { type ChatScope } from "./chat-scope.ts";
|
|
3
3
|
import { type RunRecord } from "./chat-records.ts";
|
|
4
4
|
import { type ChatUi } from "./chat-ui.ts";
|
|
5
|
+
import { TerminalNotifications } from "./terminal-notifications.ts";
|
|
5
6
|
import { type SentinelSetting } from "./config.ts";
|
|
6
7
|
import type { AskUserIO } from "./ask.ts";
|
|
7
|
-
import type
|
|
8
|
+
import { type Job, type JobRegistry } from "./regenerate/jobs.ts";
|
|
8
9
|
import type { Launch } from "./launch-track.ts";
|
|
9
10
|
import type { ToolDefinition } from "@earendil-works/pi-coding-agent";
|
|
10
11
|
import { type ChatRole, type Conclusion, type Notice, type NoticeAnswer, type NoticeInput, type SentinelCheck } from "./notice.ts";
|
|
@@ -77,7 +78,7 @@ export interface TurriHost {
|
|
|
77
78
|
* The host shows the person each pulse that lands and each of the sentinel's conclusions itself - its own
|
|
78
79
|
* notifications, from onJobChange and onConcluded. With the sentinel on, the chat the person is in is then told of both
|
|
79
80
|
* without a turn of its own: its agent knows what landed and what the sentinel found when the person asks, and does
|
|
80
|
-
* not say it again in the conversation. Unset, it says both
|
|
81
|
+
* not say it again in the conversation. Unset in a host, it says both.
|
|
81
82
|
*/
|
|
82
83
|
pulseEndsShown?: boolean;
|
|
83
84
|
/**
|
|
@@ -102,6 +103,12 @@ export interface TurriHost {
|
|
|
102
103
|
}
|
|
103
104
|
/** What a chat's extension does for its chat when the session asks. */
|
|
104
105
|
export interface ChatInstance {
|
|
106
|
+
/** The terminal header's toggle. Visibility is independent of which side has the keys. */
|
|
107
|
+
plainPanel?: {
|
|
108
|
+
open(): boolean;
|
|
109
|
+
busy(): boolean;
|
|
110
|
+
toggle(): void;
|
|
111
|
+
};
|
|
105
112
|
/** A pulse it asked for ended: said in the chat, and its agent told, to react to it. */
|
|
106
113
|
announce(job: Job): void;
|
|
107
114
|
/**
|
|
@@ -139,8 +146,6 @@ export interface ChatInstance {
|
|
|
139
146
|
concluded(conclusion: Conclusion): void;
|
|
140
147
|
/** The person answered a notice with something to do: the chat's agent started on it. */
|
|
141
148
|
act(task: string): void;
|
|
142
|
-
/** The jobs changed: what it draws of them is drawn again. */
|
|
143
|
-
jobsChanged(): void;
|
|
144
149
|
/** How hard the chat's model thinks now: sub-agents started from it think as hard. */
|
|
145
150
|
thinkingLevel(): string | undefined;
|
|
146
151
|
/** The chat's context, as its tools get it - for its model and its providers. */
|
|
@@ -189,6 +194,8 @@ export interface ChatState {
|
|
|
189
194
|
unsubscribe?: () => void;
|
|
190
195
|
}
|
|
191
196
|
export interface TurriCore {
|
|
197
|
+
/** Shared by all the terminal's chats. */
|
|
198
|
+
readonly notifications: TerminalNotifications;
|
|
192
199
|
readonly cwd: string;
|
|
193
200
|
readonly host: TurriHost;
|
|
194
201
|
readonly jobs: JobRegistry;
|
|
@@ -267,8 +274,6 @@ export interface TurriCore {
|
|
|
267
274
|
* `refused`: `ignore` on one that is not ignorable.
|
|
268
275
|
*/
|
|
269
276
|
answer(id: string, answer: NoticeAnswer): "done" | "dismissed" | "ignored" | "refused" | "missing" | "over";
|
|
270
|
-
/** For the extension: the jobs changed - every chat draws them again. */
|
|
271
|
-
jobsChanged(): void;
|
|
272
277
|
/** The chat whose work this is, else the one shown: its instance. */
|
|
273
278
|
instanceInScope(): ChatInstance | undefined;
|
|
274
279
|
setDriver(driver: ChatDriver): void;
|
package/dist/chats.js
CHANGED
|
@@ -3,8 +3,10 @@ import { existsSync } from "node:fs";
|
|
|
3
3
|
import { currentChat, inChat } from "./chat-scope.js";
|
|
4
4
|
import { adoptRun, forgetChat, forgetSessionFile, recordRun } from "./chat-records.js";
|
|
5
5
|
import { createChatUi } from "./chat-ui.js";
|
|
6
|
+
import { TerminalNotifications } from "./terminal-notifications.js";
|
|
6
7
|
import { debugMode } from "./config.js";
|
|
7
8
|
import { firstLine, record } from "./regenerate/ledger.js";
|
|
9
|
+
import { pulseName, formatDuration } from "./regenerate/jobs.js";
|
|
8
10
|
import { newNotice, noticeTask, SENTINEL, sentinelStartChoice, wentWrong } from "./notice.js";
|
|
9
11
|
/**
|
|
10
12
|
* The chats of a turri session.
|
|
@@ -204,6 +206,7 @@ export function createChats(options) {
|
|
|
204
206
|
});
|
|
205
207
|
};
|
|
206
208
|
const core = {
|
|
209
|
+
notifications: new TerminalNotifications(),
|
|
207
210
|
cwd,
|
|
208
211
|
host,
|
|
209
212
|
jobs,
|
|
@@ -385,6 +388,11 @@ export function createChats(options) {
|
|
|
385
388
|
},
|
|
386
389
|
sentinelOn: () => driver !== undefined && wantsSentinel(),
|
|
387
390
|
jobFinished(job) {
|
|
391
|
+
if (core.terminal) {
|
|
392
|
+
const result = job.status === "succeeded" ? wentWrong(job) ? "did not pass" : "finished" : job.status;
|
|
393
|
+
core.notifications.add(`${pulseName(job)} · ${result} after ${formatDuration(job)}`, job.error ?? job.report ?? job.note ?? "");
|
|
394
|
+
changed();
|
|
395
|
+
}
|
|
388
396
|
// The question was settled in config.turri.yaml while it was open: what it held goes as the file now says.
|
|
389
397
|
if (consent === "asking" && setting() !== "ask")
|
|
390
398
|
settleStart(setting() === true ? "given" : "declined", "superseded");
|
|
@@ -451,16 +459,6 @@ export function createChats(options) {
|
|
|
451
459
|
sentinelChecks(check);
|
|
452
460
|
return { check: check.id };
|
|
453
461
|
},
|
|
454
|
-
jobsChanged() {
|
|
455
|
-
for (const chat of chats) {
|
|
456
|
-
try {
|
|
457
|
-
chat.instance?.jobsChanged();
|
|
458
|
-
}
|
|
459
|
-
catch {
|
|
460
|
-
/* a chat let go draws nothing */
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
462
|
notice(input) {
|
|
465
463
|
// A check's notice is about its module.
|
|
466
464
|
const about = input.check !== undefined ? checks.get(input.check) : undefined;
|
|
@@ -479,7 +477,13 @@ export function createChats(options) {
|
|
|
479
477
|
const { ignorable, ...rest } = input;
|
|
480
478
|
const notice = newNotice(ignorable === true && input.kind === undefined ? input : rest, target.id);
|
|
481
479
|
open.push(notice);
|
|
482
|
-
if (
|
|
480
|
+
if (core.terminal) {
|
|
481
|
+
// notify_person may omit the id; the sentinel still has exactly one review in progress.
|
|
482
|
+
const work = checking?.work;
|
|
483
|
+
const about = work && currentChat()?.id === sentinelChat()?.id ? ("pulse" in work ? { job: work.pulse.id } : { check: work.check.id }) : undefined;
|
|
484
|
+
core.notifications.put(notice, about);
|
|
485
|
+
}
|
|
486
|
+
else if (target.id !== shownId)
|
|
483
487
|
target.unread = true;
|
|
484
488
|
inChat(target.scope, () => record({ kind: "notice.put", notice: notice.id, severity: notice.severity, ...(notice.module !== undefined ? { module: notice.module } : {}) }, { project: cwd }));
|
|
485
489
|
try {
|
|
@@ -511,7 +515,9 @@ export function createChats(options) {
|
|
|
511
515
|
const module = conclusion.module ?? job?.module ?? check?.module;
|
|
512
516
|
const pulse = conclusion.pulse ?? job?.pulse;
|
|
513
517
|
const told = { ...conclusion, ...(module !== undefined ? { module } : {}), ...(pulse !== undefined ? { pulse } : {}) };
|
|
514
|
-
if (
|
|
518
|
+
if (core.terminal)
|
|
519
|
+
core.notifications.concluded(told);
|
|
520
|
+
else if (target.id !== shownId)
|
|
515
521
|
target.unread = true;
|
|
516
522
|
inChat(target.scope, () => record({ kind: "sentinel.concluded", verdict: told.verdict, ...(module !== undefined ? { module } : {}), ...(told.check !== undefined ? { check: told.check } : {}) }, { project: cwd, ...(told.job !== undefined ? { job: told.job } : {}) }));
|
|
517
523
|
try {
|
|
@@ -543,7 +549,7 @@ export function createChats(options) {
|
|
|
543
549
|
options.ignored?.(notice);
|
|
544
550
|
}
|
|
545
551
|
catch (error) {
|
|
546
|
-
|
|
552
|
+
sentinelMessage(`The sentinel's guidance could not be written: ${error instanceof Error ? error.message : String(error)}`, "warning");
|
|
547
553
|
}
|
|
548
554
|
over(notice, "ignored");
|
|
549
555
|
return "ignored";
|
|
@@ -603,6 +609,8 @@ export function createChats(options) {
|
|
|
603
609
|
}
|
|
604
610
|
if (chat !== undefined)
|
|
605
611
|
inChat(chat.scope, () => record({ kind: "notice.over", notice: notice.id, state }, { project: cwd }));
|
|
612
|
+
if (core.terminal)
|
|
613
|
+
changed();
|
|
606
614
|
}
|
|
607
615
|
/** A pulse ended, told to the chat that asked for it - as without a sentinel - or the chat shown, when that one is closed. */
|
|
608
616
|
function toAsker(job) {
|
|
@@ -704,7 +712,7 @@ export function createChats(options) {
|
|
|
704
712
|
const asked = chats.find((chat) => chat.id === job.chat && chat.role !== SENTINEL);
|
|
705
713
|
const where = personFacing(asked);
|
|
706
714
|
if (where !== undefined) {
|
|
707
|
-
if (where.id !== shownId)
|
|
715
|
+
if (where.id !== shownId && !core.terminal)
|
|
708
716
|
where.unread = true;
|
|
709
717
|
try {
|
|
710
718
|
where.instance?.landed(job, { tell: !wentWrong(job) });
|
|
@@ -739,7 +747,7 @@ export function createChats(options) {
|
|
|
739
747
|
}
|
|
740
748
|
catch (error) {
|
|
741
749
|
const why = error instanceof Error ? error.message : String(error);
|
|
742
|
-
|
|
750
|
+
sentinelMessage(`The sentinel could not be opened: ${why}`, "warning");
|
|
743
751
|
failed(why);
|
|
744
752
|
return undefined;
|
|
745
753
|
}
|
|
@@ -750,10 +758,16 @@ export function createChats(options) {
|
|
|
750
758
|
function unchecked(check, why) {
|
|
751
759
|
core.concluded({ check: check.id, module: check.module, verdict: "unchecked", summary: `Not checked: ${why}.` });
|
|
752
760
|
}
|
|
761
|
+
function sentinelMessage(message, level) {
|
|
762
|
+
if (!core.terminal)
|
|
763
|
+
return core.notify(message, level);
|
|
764
|
+
core.notifications.add(message, "");
|
|
765
|
+
changed();
|
|
766
|
+
}
|
|
753
767
|
/** The sentinel's work, after what it was given before. */
|
|
754
768
|
function toSentinel(work) {
|
|
755
769
|
sentinelWork = sentinelWork.then(work).catch((error) => {
|
|
756
|
-
|
|
770
|
+
sentinelMessage(`The sentinel: ${error instanceof Error ? error.message : String(error)}`, "warning");
|
|
757
771
|
});
|
|
758
772
|
}
|
|
759
773
|
/**
|
|
@@ -788,7 +802,7 @@ export function createChats(options) {
|
|
|
788
802
|
async function refuse(sentinel, work, why) {
|
|
789
803
|
const module = codebaseOf(work);
|
|
790
804
|
inChat(sentinel.scope, () => record({ kind: "sentinel.refused", ...(module !== undefined ? { module } : {}), ...("check" in work ? { check: work.check.id } : {}), why: firstLine(why, 300) }, { project: cwd, ...("pulse" in work ? { job: work.pulse.id } : {}) }));
|
|
791
|
-
if ("pulse" in work)
|
|
805
|
+
if ("pulse" in work && !core.terminal)
|
|
792
806
|
core.notify(`The sentinel cannot check pulse ${work.pulse.id}: ${why}`, "error");
|
|
793
807
|
core.concluded({
|
|
794
808
|
...("pulse" in work ? { job: work.pulse.id } : { check: work.check.id }),
|
|
@@ -823,7 +837,7 @@ export function createChats(options) {
|
|
|
823
837
|
await sentinel.instance.briefCheck(check, where !== undefined ? { focused: titleFor(where) } : {});
|
|
824
838
|
}
|
|
825
839
|
catch (error) {
|
|
826
|
-
|
|
840
|
+
sentinelMessage(`The sentinel could not be told of check ${check.id}: ${error instanceof Error ? error.message : String(error)}`, "warning");
|
|
827
841
|
checking = undefined;
|
|
828
842
|
}
|
|
829
843
|
changed();
|
|
@@ -856,7 +870,7 @@ export function createChats(options) {
|
|
|
856
870
|
});
|
|
857
871
|
}
|
|
858
872
|
catch (error) {
|
|
859
|
-
|
|
873
|
+
sentinelMessage(`The sentinel could not be told of ${job.id}: ${error instanceof Error ? error.message : String(error)}`, "warning");
|
|
860
874
|
checking = undefined;
|
|
861
875
|
}
|
|
862
876
|
changed();
|
|
@@ -933,7 +947,7 @@ export function createChats(options) {
|
|
|
933
947
|
catch (error) {
|
|
934
948
|
Object.assign(chat, old);
|
|
935
949
|
follow(chat);
|
|
936
|
-
|
|
950
|
+
sentinelMessage(`The sentinel goes on in the conversation it had - a new one could not be started: ${error instanceof Error ? error.message : String(error)}`, "warning");
|
|
937
951
|
return;
|
|
938
952
|
}
|
|
939
953
|
const fresh = chat.session;
|
package/dist/cli.js
CHANGED
|
@@ -15,12 +15,14 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
|
15
15
|
return path;
|
|
16
16
|
};
|
|
17
17
|
import { spawnSync } from "node:child_process";
|
|
18
|
+
import { tmpdir } from "node:os";
|
|
18
19
|
import { dirname, join } from "node:path";
|
|
19
20
|
import { fileURLToPath } from "node:url";
|
|
20
21
|
import { CODING_MODEL_ENV, chatModels } from "./chat-models.js";
|
|
21
22
|
import { readProjectConfig } from "./config.js";
|
|
22
23
|
import { extensionInstalledGlobally, PACKAGE_ROOT, themesInstalledGlobally, versionLine } from "./environment.js";
|
|
23
24
|
import { dropNoise } from "./quiet.js";
|
|
25
|
+
import { REOPEN_FILE_ENV, takeReopening } from "./reopen.js";
|
|
24
26
|
/**
|
|
25
27
|
* Start pi with this project's extension and themes already wired in.
|
|
26
28
|
*
|
|
@@ -56,20 +58,35 @@ function chat(args) {
|
|
|
56
58
|
// in as well: pi-launch.ts is told, and leaves it to that. turri doctor offers to remove the file.
|
|
57
59
|
const inPi = extensionInstalledGlobally();
|
|
58
60
|
const themes = themesInstalledGlobally() ? [] : ["--theme", join(PACKAGE_ROOT, ".pi", "themes")];
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
61
|
+
// A chat that quits asking to open again elsewhere - after a capture, in the project it wrote - writes where in this
|
|
62
|
+
// file, and is started again there, as the first was (reopen.ts).
|
|
63
|
+
const reopenFile = join(tmpdir(), `turri-reopen-${process.pid}.json`);
|
|
64
|
+
let run = { cwd: process.cwd(), args, env: {} };
|
|
65
|
+
for (;;) {
|
|
66
|
+
// turri's own theme, unless this run names another. For this run only: pi's settings
|
|
67
|
+
// are left as they are, so a plain `pi` keeps its theme.
|
|
68
|
+
const useTheme = run.args.some((arg) => arg === "--use-theme" || arg.startsWith("--use-theme=")) ? [] : ["--use-theme", DEFAULT_THEME];
|
|
69
|
+
// The model the person talks to, and the one every render runs on - see chat-models.ts.
|
|
70
|
+
const { piArgs, codingModel } = chatModels(run.args, readProjectConfig(run.cwd));
|
|
71
|
+
// Fullscreen: pi owns the viewport, so the conversation stays where it is scrolled to while the
|
|
72
|
+
// jobs redraw - in the terminal's own scrollback, every redraw pulls it back to the bottom.
|
|
73
|
+
const tuiMode = run.args.some((arg) => arg === "--tui-mode" || arg.startsWith("--tui-mode=")) ? [] : ["--tui-mode", "fullscreen"];
|
|
74
|
+
const result = spawnSync(process.execPath, [launcher, ...themes, ...useTheme, ...tuiMode, ...piArgs], {
|
|
75
|
+
stdio: "inherit",
|
|
76
|
+
cwd: run.cwd,
|
|
77
|
+
env: {
|
|
78
|
+
...process.env,
|
|
79
|
+
...run.env,
|
|
80
|
+
[REOPEN_FILE_ENV]: reopenFile,
|
|
81
|
+
...(codingModel ? { [CODING_MODEL_ENV]: codingModel } : {}),
|
|
82
|
+
...(inPi ? { TURRI_EXTENSION_IN_PI: "1" } : {}),
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
const next = takeReopening(reopenFile);
|
|
86
|
+
if (next === undefined)
|
|
87
|
+
process.exit(result.status ?? 1);
|
|
88
|
+
run = { cwd: next.dir, args: next.args, env: next.env };
|
|
89
|
+
}
|
|
73
90
|
}
|
|
74
91
|
const COMMANDS = {
|
|
75
92
|
regenerate: { module: "./regenerate-cli.ts", blurb: "regenerate a module and its chain from the spec as it is (with module:func-ids: regenerate those again)" },
|
|
@@ -79,6 +96,7 @@ const COMMANDS = {
|
|
|
79
96
|
lineage: { module: "./lineage-cli.ts", blurb: "a module's lineage: what was regenerated into it, and when" },
|
|
80
97
|
launch: { module: "./launch-cli.ts", blurb: "launch what is regenerated from dist/<module> on this machine" },
|
|
81
98
|
cultivate: { module: "./cultivate-cli.ts", blurb: "run a gated skill" },
|
|
99
|
+
capture: { module: "./capture-cli.ts", blurb: "capture an existing codebase into ***plain, in <path>/plain - offline, with a report of what it decided" },
|
|
82
100
|
};
|
|
83
101
|
/** Getting the machine ready, and checking it is. */
|
|
84
102
|
const SETUP_COMMANDS = {
|
package/dist/config-edit.js
CHANGED
|
@@ -22,6 +22,8 @@ const ROLE_ABOUT = {
|
|
|
22
22
|
chat: "the conversation - as harness-model, which it wins over",
|
|
23
23
|
sentinel: "the sentinel: checks every finished pulse and tests what is launched",
|
|
24
24
|
planner: "cuts the work into pulses",
|
|
25
|
+
capture: "captures an existing codebase into ***plain",
|
|
26
|
+
"capture-analysis": "extracts and checks the interface reference, splits areas and outlines and divides features",
|
|
25
27
|
diagnosis: "looks into a pulse that failed for good",
|
|
26
28
|
launch: "the launch agent",
|
|
27
29
|
coding: "writes the code - as coding-model, which it wins over",
|
|
@@ -40,7 +42,7 @@ export function settings(rules = []) {
|
|
|
40
42
|
key: `models.${role}`,
|
|
41
43
|
about: `the ${role} role's model and thinking - ${ROLE_ABOUT[role]}`,
|
|
42
44
|
kind: "model",
|
|
43
|
-
unset: role === "default" ? "harness-model's, for the conversation's side; coding-model's for the rest" : "default's",
|
|
45
|
+
unset: role === "default" ? "harness-model's, for the conversation's side; coding-model's for the rest" : role === "capture-analysis" ? "capture's explicit settings, else coding-model with low thinking" : "default's",
|
|
44
46
|
effect: role === "chat" ? "now" : "next-pulse",
|
|
45
47
|
...(role === "chat" ? { projectOnly: true } : {}),
|
|
46
48
|
},
|
|
@@ -48,7 +50,7 @@ export function settings(rules = []) {
|
|
|
48
50
|
key: `models.${role}.turn-limit`,
|
|
49
51
|
about: `seconds each turn of the ${role} role's agents has - 0 for none`,
|
|
50
52
|
kind: "number",
|
|
51
|
-
unset: "default's, else turn-limit",
|
|
53
|
+
unset: role === "capture-analysis" ? "capture's, else default's, else turn-limit" : "default's, else turn-limit",
|
|
52
54
|
effect: "next-pulse",
|
|
53
55
|
options: SECONDS,
|
|
54
56
|
min: 0,
|
package/dist/config.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ export interface ModelChoice {
|
|
|
143
143
|
* The code fixer of a conformance run and the repair agent are coding agents; the unit-test and conformance arbiters
|
|
144
144
|
* are both `arbiter`.
|
|
145
145
|
*/
|
|
146
|
-
export declare const AGENT_ROLES: readonly ["chat", "sentinel", "planner", "diagnosis", "launch", "coding", "conformance", "explorer", "reviewer", "test-reviewer", "judge", "arbiter", "debugger"];
|
|
146
|
+
export declare const AGENT_ROLES: readonly ["chat", "sentinel", "planner", "capture", "capture-analysis", "diagnosis", "launch", "coding", "conformance", "explorer", "reviewer", "test-reviewer", "judge", "arbiter", "debugger"];
|
|
147
147
|
export type AgentRole = (typeof AGENT_ROLES)[number];
|
|
148
148
|
/**
|
|
149
149
|
* How hard each role thinks when nothing names a level - not the config's `models:`, nor a `:level` on the model it is
|
|
@@ -399,7 +399,7 @@ export declare function unknownConfigKeys(root: string): Array<{
|
|
|
399
399
|
* a key turri renamed in the file - information, nothing to do; `old-beside-new`, an old name left beside its new one,
|
|
400
400
|
* doing nothing - take it out; `unknown`, keys turri does not read - take them out, or fix their spelling.
|
|
401
401
|
*/
|
|
402
|
-
export type ConfigLineKind = "renamed" | "old-beside-new" | "unknown";
|
|
402
|
+
export type ConfigLineKind = "broken" | "renamed" | "old-beside-new" | "unknown";
|
|
403
403
|
export interface ConfigLine {
|
|
404
404
|
kind: ConfigLineKind;
|
|
405
405
|
/** The file, from the project: `config.turri.yaml`, `config.turri.<module>.yaml`. */
|
|
@@ -412,4 +412,17 @@ export interface ConfigLine {
|
|
|
412
412
|
* beside its new one - doing nothing - and each file with keys turri does not read.
|
|
413
413
|
*/
|
|
414
414
|
export declare function configLines(root: string): ConfigLine[];
|
|
415
|
+
/**
|
|
416
|
+
* Why a config file does not parse - its line and what YAML says, a key set twice among them - or undefined when it
|
|
417
|
+
* parses or is not there. turri reads a config that does not parse as empty, every setting at its default, the models
|
|
418
|
+
* pi's own: said, never silently.
|
|
419
|
+
*/
|
|
420
|
+
export declare function configFileProblem(path: string): string | undefined;
|
|
421
|
+
/** The config files of a project folder that do not parse - config.turri.yaml and each module's own - each with why. */
|
|
422
|
+
export declare function configProblems(root: string): Array<{
|
|
423
|
+
file: string;
|
|
424
|
+
text: string;
|
|
425
|
+
}>;
|
|
426
|
+
/** Why a project's config does not parse, in a sentence for a refusal - undefined when every file of it parses. */
|
|
427
|
+
export declare function brokenConfig(root: string): string | undefined;
|
|
415
428
|
export {};
|
package/dist/config.js
CHANGED
|
@@ -303,7 +303,7 @@ export const THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhig
|
|
|
303
303
|
* The code fixer of a conformance run and the repair agent are coding agents; the unit-test and conformance arbiters
|
|
304
304
|
* are both `arbiter`.
|
|
305
305
|
*/
|
|
306
|
-
export const AGENT_ROLES = ["chat", "sentinel", "planner", "diagnosis", "launch", "coding", "conformance", "explorer", "reviewer", "test-reviewer", "judge", "arbiter", "debugger"];
|
|
306
|
+
export const AGENT_ROLES = ["chat", "sentinel", "planner", "capture", "capture-analysis", "diagnosis", "launch", "coding", "conformance", "explorer", "reviewer", "test-reviewer", "judge", "arbiter", "debugger"];
|
|
307
307
|
/**
|
|
308
308
|
* How hard each role thinks when nothing names a level - not the config's `models:`, nor a `:level` on the model it is
|
|
309
309
|
* given. The agents that do the work - write the code and the tests, explore, launch - think little: they work from a
|
|
@@ -321,12 +321,15 @@ export const ROLE_THINKING = {
|
|
|
321
321
|
arbiter: "medium",
|
|
322
322
|
debugger: "medium",
|
|
323
323
|
planner: "medium",
|
|
324
|
+
capture: "medium",
|
|
325
|
+
"capture-analysis": "low",
|
|
324
326
|
diagnosis: "medium",
|
|
325
327
|
};
|
|
326
328
|
/** The roles on the conversation's side: without their own entry they take the chat's model, not `default`. */
|
|
327
329
|
// The launch is not: it follows steps - a script, a start command - and runs on the coding model, thinking low. Nor
|
|
328
330
|
// is the diagnosis: a post-mortem of a job that failed, read by the person - it runs on the coding model, thinking medium.
|
|
329
|
-
|
|
331
|
+
// Capture's writers are on the chat's side; its analysis agents take the coding model.
|
|
332
|
+
const CHAT_SIDE = ["chat", "sentinel", "planner", "capture"];
|
|
330
333
|
function isThinkingLevel(value) {
|
|
331
334
|
return typeof value === "string" && THINKING_LEVELS.includes(value);
|
|
332
335
|
}
|
|
@@ -406,6 +409,9 @@ export function roleModel(config, role) {
|
|
|
406
409
|
return undefined;
|
|
407
410
|
const models = config.models ?? {};
|
|
408
411
|
const own = choiceOf(models[role]);
|
|
412
|
+
// An explicit capture setting still applies to the whole capture. Otherwise analysis takes the coding model it was given.
|
|
413
|
+
if (role === "capture-analysis")
|
|
414
|
+
return inheritModel(own, choiceOf(models.capture));
|
|
409
415
|
// The debugger looks at the coding agent's failure: without its own entry it runs on the model it is given - a stronger one.
|
|
410
416
|
if (role === "debugger")
|
|
411
417
|
return own;
|
|
@@ -417,7 +423,7 @@ export function roleModel(config, role) {
|
|
|
417
423
|
/** How long each turn of a role's agents may take, in milliseconds: its own, `default`'s, `turn-limit:`'s - or undefined, the harness's default. */
|
|
418
424
|
export function roleTurnLimitMs(config, role) {
|
|
419
425
|
const models = config.models ?? {};
|
|
420
|
-
const seconds = (role !== undefined ? models[role]?.turnLimit : undefined) ?? models.default?.turnLimit ?? config.turnLimit;
|
|
426
|
+
const seconds = (role !== undefined ? models[role]?.turnLimit : undefined) ?? (role === "capture-analysis" ? models.capture?.turnLimit : undefined) ?? models.default?.turnLimit ?? config.turnLimit;
|
|
421
427
|
return seconds !== undefined ? seconds * 1000 : undefined;
|
|
422
428
|
}
|
|
423
429
|
/** A whole number of at least 1, as the config gives it - or nothing. */
|
|
@@ -731,6 +737,7 @@ export function unknownConfigKeys(root) {
|
|
|
731
737
|
* beside its new one - doing nothing - and each file with keys turri does not read.
|
|
732
738
|
*/
|
|
733
739
|
export function configLines(root) {
|
|
740
|
+
const broken = configProblems(root).map((problem) => ({ kind: "broken", file: problem.file, text: `${problem.text} - so none of ${problem.file} applies: turri runs on its defaults and pi's, the models among them. Set each key once.` }));
|
|
734
741
|
const renamed = renameOldKeys(root).map(({ file, from, to }) => ({ kind: "renamed", file, text: `${file}: ${from} is called ${to} now - turri renamed it there, its value kept.` }));
|
|
735
742
|
const left = [];
|
|
736
743
|
for (const file of namesIn(root).filter((name) => /^config\.turri(\.[^.]+)?\.yaml$/.test(name)).sort()) {
|
|
@@ -753,5 +760,56 @@ export function configLines(root) {
|
|
|
753
760
|
file,
|
|
754
761
|
text: `${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.`,
|
|
755
762
|
}));
|
|
756
|
-
return [...renamed, ...left, ...unknown];
|
|
763
|
+
return [...broken, ...renamed, ...left, ...unknown];
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Why a config file does not parse - its line and what YAML says, a key set twice among them - or undefined when it
|
|
767
|
+
* parses or is not there. turri reads a config that does not parse as empty, every setting at its default, the models
|
|
768
|
+
* pi's own: said, never silently.
|
|
769
|
+
*/
|
|
770
|
+
export function configFileProblem(path) {
|
|
771
|
+
let text;
|
|
772
|
+
try {
|
|
773
|
+
if (!statSync(path).isFile())
|
|
774
|
+
return undefined;
|
|
775
|
+
text = readFileSync(path, "utf8");
|
|
776
|
+
}
|
|
777
|
+
catch {
|
|
778
|
+
return undefined;
|
|
779
|
+
}
|
|
780
|
+
const file = basename(path);
|
|
781
|
+
try {
|
|
782
|
+
const parsed = loadYaml(text);
|
|
783
|
+
if (parsed !== null && parsed !== undefined && (typeof parsed !== "object" || Array.isArray(parsed)))
|
|
784
|
+
return `${file} is not a list of settings, a key and its value a line`;
|
|
785
|
+
return undefined;
|
|
786
|
+
}
|
|
787
|
+
catch (error) {
|
|
788
|
+
const reason = error.reason;
|
|
789
|
+
const line = error.mark?.line;
|
|
790
|
+
const at = typeof line === "number" ? `, line ${line + 1}` : "";
|
|
791
|
+
const key = typeof line === "number" ? /^\s*([\w.-]+)\s*:/.exec(text.split("\n")[line] ?? "")?.[1] : undefined;
|
|
792
|
+
if (reason === "duplicated mapping key")
|
|
793
|
+
return `${file}${at}: ${key !== undefined ? `${key} is` : "a key is"} set twice`;
|
|
794
|
+
return `${file}${at} does not parse: ${typeof reason === "string" ? reason : error instanceof Error ? error.message.split("\n")[0] : String(error)}`;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
/** The config files of a project folder that do not parse - config.turri.yaml and each module's own - each with why. */
|
|
798
|
+
export function configProblems(root) {
|
|
799
|
+
return namesIn(root)
|
|
800
|
+
// config.yaml only while turri reads it: until it writes config.turri.yaml, it may be another tool's.
|
|
801
|
+
.filter((name) => /^config\.turri(\.[^.]+)?\.yaml$/.test(name) || (name === LEGACY_CONFIG_FILE && usesLegacyConfig(root)))
|
|
802
|
+
.sort()
|
|
803
|
+
.flatMap((file) => {
|
|
804
|
+
const text = configFileProblem(join(root, file));
|
|
805
|
+
return text === undefined ? [] : [{ file, text }];
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
/** Why a project's config does not parse, in a sentence for a refusal - undefined when every file of it parses. */
|
|
809
|
+
export function brokenConfig(root) {
|
|
810
|
+
const problems = configProblems(root);
|
|
811
|
+
if (problems.length === 0)
|
|
812
|
+
return undefined;
|
|
813
|
+
return (`${problems.map((problem) => problem.text).join("; ")}. A config that does not parse is read as empty: none of it would apply - ` +
|
|
814
|
+
`not the models, not conformance tests, no other setting - and turri would run on its defaults and pi's. Fix it - each key set once - then ask again.`);
|
|
757
815
|
}
|
package/dist/extension.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ export { fromWorkingDir };
|
|
|
162
162
|
*/
|
|
163
163
|
export declare function pulseEndNote(job: Job, options?: {
|
|
164
164
|
launching?: boolean;
|
|
165
|
+
quiet?: boolean;
|
|
165
166
|
}): string;
|
|
166
167
|
/**
|
|
167
168
|
* What the agent is to do with a job that just ended, unasked: what the project's guidance says to do then, or else say
|