@gaunt-sloth/agent 2.0.0-alpha.29 → 2.0.0-alpha.30
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/core/GthDeepAgent.d.ts +4 -2
- package/dist/core/GthDeepAgent.js +71 -15
- package/dist/core/GthDeepAgent.js.map +1 -1
- package/dist/core/deepAgentPermissions.d.ts +23 -0
- package/dist/core/deepAgentPermissions.js +27 -0
- package/dist/core/deepAgentPermissions.js.map +1 -1
- package/dist/modules/acpModule.js +9 -1
- package/dist/modules/acpModule.js.map +1 -1
- package/dist/modules/interactiveSessionModule.js +265 -40
- package/dist/modules/interactiveSessionModule.js.map +1 -1
- package/dist/modules/slashCommands.d.ts +119 -10
- package/dist/modules/slashCommands.js +127 -21
- package/dist/modules/slashCommands.js.map +1 -1
- package/dist/tools/GthDevToolkit.js +24 -4
- package/dist/tools/GthDevToolkit.js.map +1 -1
- package/package.json +2 -2
- package/dist/tools/shell/hardline.d.ts +0 -46
- package/dist/tools/shell/hardline.js +0 -573
- package/dist/tools/shell/hardline.js.map +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { initConfig } from '@gaunt-sloth/core/config.js';
|
|
2
|
-
import { defaultStatusCallback, display, displayInfo, displayLaunchBanner, displayWarning, flushSessionLog, formatInputPrompt, initSessionLogging, stopSessionLogging, } from '@gaunt-sloth/core/utils/consoleUtils.js';
|
|
2
|
+
import { defaultStatusCallback, display, displayError, displayInfo, displayLaunchBanner, displayWarning, flushSessionLog, formatInputPrompt, initSessionLogging, stopSessionLogging, } from '@gaunt-sloth/core/utils/consoleUtils.js';
|
|
3
3
|
import { GthAgentRunner } from '@gaunt-sloth/core/core/GthAgentRunner.js';
|
|
4
4
|
import { GthAbstractAgent } from '@gaunt-sloth/core/core/GthAbstractAgent.js';
|
|
5
5
|
import { launchBannerFields, launchBannerText } from '@gaunt-sloth/core/core/launchBanner.js';
|
|
6
6
|
import { buildRejectionMessage } from '@gaunt-sloth/core/core/shell/rejection.js';
|
|
7
|
+
import { renderNegotiationRows } from '@gaunt-sloth/core/core/shell/negotiation.js';
|
|
8
|
+
import { attackBannerCopy, describeRaterOutcome, grantsRunAnyway, RATER_REASON_LABEL, } from '@gaunt-sloth/core/core/shell/escalationSeverity.js';
|
|
9
|
+
import { frameUntrustedCommand, frameUntrustedText, frameWidthFor, narrowTerminalNotice, STICKY_PREVIEW_MAX_ROWS, } from '@gaunt-sloth/core/core/shell/framing.js';
|
|
7
10
|
import { writeDebugDump } from '@gaunt-sloth/core/utils/debugDump.js';
|
|
8
11
|
import { appendToFile, getCommandOutputFilePath } from '@gaunt-sloth/core/utils/fileUtils.js';
|
|
9
12
|
import { openConversationSafe, recordSessionSafe, } from '@gaunt-sloth/core/history/recordSession.js';
|
|
@@ -13,6 +16,28 @@ import { MemorySaver } from '@langchain/langgraph';
|
|
|
13
16
|
import { createResolvers } from '#src/resolvers.js';
|
|
14
17
|
import { resolveAgentFactory } from '#src/core/resolveAgentFactory.js';
|
|
15
18
|
import { approvalsRungNotice, approvalsStatusNotice, approvalsTrustNotice, createCommandRegistry, dispatchSlashCommand, formatConfigSummary, parseSlashCommand, } from '#src/modules/slashCommands.js';
|
|
19
|
+
/**
|
|
20
|
+
* [[TUI-C26]] §6 — the `display*` channel an escalation's severity is written on.
|
|
21
|
+
*
|
|
22
|
+
* This surface has no colour of its own: `consoleUtils` owns it per channel, so choosing the
|
|
23
|
+
* channel IS choosing the colour (red for `displayError`, yellow for `displayWarning`, dim for
|
|
24
|
+
* `displayInfo`).
|
|
25
|
+
*
|
|
26
|
+
* **The channel is also a STREAM, and they are not all the same one.** `displayError`,
|
|
27
|
+
* `displayInfo` and `display` go to **stdout**; `displayWarning` goes to **stderr**. So a dialog
|
|
28
|
+
* that mixes them — a `destructive` heading, the rater's label beneath it, the framed reason under
|
|
29
|
+
* that — is written across both. On a terminal both are unbuffered and synchronous, so the lines
|
|
30
|
+
* land in call order and the dialog reads top to bottom. That stops holding the moment stdout is
|
|
31
|
+
* not a terminal: redirected to a pipe or a file it is block-buffered while stderr is not, so a
|
|
32
|
+
* captured log can carry these lines interleaved differently from the screen. The dialog is a
|
|
33
|
+
* question a human answers on the terminal, and every line of it says what it is, so the order is
|
|
34
|
+
* cosmetic there rather than load-bearing — but a reader diffing a captured log against a session
|
|
35
|
+
* should know why the two do not match.
|
|
36
|
+
*
|
|
37
|
+
* The channel is the observable an assertion can bite on, too: a change that made `catastrophic`
|
|
38
|
+
* look like `destructive` here would have to route both to the same function, which a test can see.
|
|
39
|
+
*/
|
|
40
|
+
const severityChannel = (tone) => tone === 'danger' ? displayError : tone === 'warn' ? displayWarning : displayInfo;
|
|
16
41
|
export async function createInteractiveSession(sessionConfig, commandLineConfigOverrides, message) {
|
|
17
42
|
const config = { ...(await initConfig(commandLineConfigOverrides)) };
|
|
18
43
|
const checkpointSaver = new MemorySaver();
|
|
@@ -57,6 +82,9 @@ export async function createInteractiveSession(sessionConfig, commandLineConfigO
|
|
|
57
82
|
modelDisplayName: dumpInput.modelDisplayName,
|
|
58
83
|
redact: dumpInput.redact,
|
|
59
84
|
modelRequest: agent instanceof GthAbstractAgent ? agent.lastModelRequest : undefined,
|
|
85
|
+
// [[TUI-C27]] — the approvals gate's record of every gated decision, read from the live
|
|
86
|
+
// runner at CALL time for the same reason the model request is.
|
|
87
|
+
approvals: runner.getApprovalCaptures(),
|
|
60
88
|
});
|
|
61
89
|
};
|
|
62
90
|
// EXT-18: ref stdin before every rl.question() that can run AFTER an agent turn/stream end.
|
|
@@ -73,10 +101,11 @@ export async function createInteractiveSession(sessionConfig, commandLineConfigO
|
|
|
73
101
|
// `run_shell_command`. When a run suspends on such a tool call, the runner calls this with
|
|
74
102
|
// the pending command. EXT-9 Tier-2: instead of a bare y/N, offer a scoped choice so the
|
|
75
103
|
// human can stop re-prompting for an operation they trust:
|
|
76
|
-
// [o]nce
|
|
77
|
-
// [s]ession
|
|
78
|
-
// [a]lways
|
|
79
|
-
//
|
|
104
|
+
// [o]nce — approve this single invocation only (persists nothing),
|
|
105
|
+
// [s]ession — auto-approve this exact command for the rest of the session,
|
|
106
|
+
// [a]lways — additionally persist it to the project allow-list,
|
|
107
|
+
// [d]eny always — refuse it AND record a deny entry for the rest of the session,
|
|
108
|
+
// anything else → reject this one call (fail-closed, and it stays the fallthrough).
|
|
80
109
|
// The runner consults the allow-list BEFORE calling this, so trusted commands never reach
|
|
81
110
|
// this prompt at all. (The Ink TUI surfaces the same scoped prompt via an approval bridge —
|
|
82
111
|
// see tuiSessionModule's createApprovalBridge + the <ApprovalPrompt> component.)
|
|
@@ -84,20 +113,85 @@ export async function createInteractiveSession(sessionConfig, commandLineConfigO
|
|
|
84
113
|
const commandText = typeof pending.args.command === 'string'
|
|
85
114
|
? pending.args.command
|
|
86
115
|
: JSON.stringify(pending.args);
|
|
116
|
+
// [[TUI-C26]] §6 — the command is model-authored text going to a terminal, where it is not
|
|
117
|
+
// inert: a carriage return reaches column 0, an escape sequence clears the screen, and a
|
|
118
|
+
// newline alone lays down a line that looks exactly like this prompt's own chrome. It is
|
|
119
|
+
// painted through core's framing renderer — neutralised, inside a line-number gutter, with
|
|
120
|
+
// its command-substitution and composition sites listed above it — the SAME renderer the Ink
|
|
121
|
+
// prompt uses, so the two surfaces cannot differ about how much of a command a human saw.
|
|
122
|
+
// Nothing is clamped to one line: the command that motivated this hid its payload fifteen
|
|
123
|
+
// lines into a commit message, and a clamp discards exactly what the human must rule on.
|
|
124
|
+
const frameWidth = frameWidthFor(output.columns);
|
|
125
|
+
const framedCommand = frameUntrustedCommand(commandText, { width: frameWidth });
|
|
87
126
|
displayWarning(`\nThe agent wants to run a shell command via ${pending.name}:`);
|
|
88
|
-
|
|
127
|
+
// Below core's floor the frame is wider than the terminal, which wraps it and puts untrusted
|
|
128
|
+
// text at the left edge. The frame is still shown — hiding what the human must rule on would
|
|
129
|
+
// be worse — but the guarantee has lapsed, and it says so instead of lapsing silently.
|
|
130
|
+
const tooNarrow = narrowTerminalNotice(output.columns);
|
|
131
|
+
if (tooNarrow)
|
|
132
|
+
displayWarning(tooNarrow);
|
|
133
|
+
for (const notice of framedCommand.notices)
|
|
134
|
+
displayWarning(notice);
|
|
135
|
+
display('');
|
|
136
|
+
for (const line of framedCommand.lines)
|
|
137
|
+
display(line);
|
|
138
|
+
display('');
|
|
89
139
|
// CFG-27: when the auto-rater escalated this command (rather than approving it), show its
|
|
90
140
|
// outcome + reason before the human decides. §6 makes that explanation mandatory whenever a
|
|
91
141
|
// rating exists; at the unrated rungs there is none and the prompt shows the command alone.
|
|
142
|
+
// The outcome is a schema enum; the reason is model-authored prose and is framed exactly like
|
|
143
|
+
// the command, because a dialog forgeable through the string that explains it is not a gate.
|
|
144
|
+
// [[TUI-C26]] §6 — the severity is legible in three independent ways: a glyph, a sentence of
|
|
145
|
+
// the gate's own naming what the outcome MEANS, and the channel it is written on. The channel
|
|
146
|
+
// is this surface's colour: `catastrophic` goes to `displayError` (red) where `destructive`
|
|
147
|
+
// goes to `displayWarning` (yellow), so the two cannot look alike — and the sentence carries
|
|
148
|
+
// it anyway for a terminal with no colour at all, which is the one that must not be left out.
|
|
92
149
|
if (pending.safetyVerdict) {
|
|
93
|
-
|
|
150
|
+
const severity = describeRaterOutcome(pending.safetyVerdict.outcome);
|
|
151
|
+
const say = severityChannel(severity.tone);
|
|
152
|
+
say(severity.heading);
|
|
153
|
+
// The reason is the RATER's, and now that the line above it is the gate's own sentence the
|
|
154
|
+
// attribution has to be said rather than implied.
|
|
155
|
+
displayInfo(RATER_REASON_LABEL);
|
|
156
|
+
for (const line of frameUntrustedText(pending.safetyVerdict.reason, { width: frameWidth })
|
|
157
|
+
.lines) {
|
|
158
|
+
say(line);
|
|
159
|
+
}
|
|
94
160
|
}
|
|
95
161
|
// EXT-71 §3.2 — when a declared `approvals.escalate` entry is what brought this call here,
|
|
96
162
|
// the prompt shows THE ENTRY THAT FIRED. Without it the user is asked about a command their
|
|
97
163
|
// rung would have approved, with nothing on screen tying the question to the line they wrote
|
|
98
164
|
// — which reads as the gate malfunctioning rather than as their own rule working.
|
|
165
|
+
// [[TUI-C26]] — framed rather than interpolated. The entry is usually something the user
|
|
166
|
+
// wrote, but an MCP entry can carry server-supplied names, and this line sits one string away
|
|
167
|
+
// from the prompt's own chrome. The label stays this surface's own line.
|
|
99
168
|
if (pending.escalatedBy) {
|
|
100
|
-
displayWarning(
|
|
169
|
+
displayWarning('⚠ Your approvals.escalate list matched this call:');
|
|
170
|
+
for (const line of frameUntrustedText(pending.escalatedBy, { width: frameWidth }).lines) {
|
|
171
|
+
displayWarning(line);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
// [[EXT-29]] §6 — when a §5 negotiation preceded this escalation, the human is shown ALL of
|
|
175
|
+
// it. The user is not asked to rule on the final command in isolation: that the agent
|
|
176
|
+
// proposed the same command three times unchanged, against two rejections that each told it
|
|
177
|
+
// what to fix, is the most important thing on the screen and is invisible if only the last
|
|
178
|
+
// attempt is shown. Rendered through core's shared renderer, so the surfaces cannot describe
|
|
179
|
+
// one exchange two ways.
|
|
180
|
+
//
|
|
181
|
+
// [[TUI-C26]] §5.4 — rendered as ROWS, so the two voices are told apart: the rater's turns go
|
|
182
|
+
// to the warn channel (yellow) and the agent's to the plain one, which is what the spec asks
|
|
183
|
+
// for and what one joined string could not express — the whole exchange used to arrive in a
|
|
184
|
+
// single colour. The rows are bound to the terminal width for the same reason the command is:
|
|
185
|
+
// a long justification left to the terminal's own wrap continues at column 0.
|
|
186
|
+
for (const row of renderNegotiationRows(pending.negotiationRounds ?? [], {
|
|
187
|
+
width: frameWidth,
|
|
188
|
+
})) {
|
|
189
|
+
if (row.voice === 'rater')
|
|
190
|
+
displayWarning(row.text);
|
|
191
|
+
else if (row.voice === 'agent')
|
|
192
|
+
display(row.text);
|
|
193
|
+
else
|
|
194
|
+
displayInfo(row.text);
|
|
101
195
|
}
|
|
102
196
|
// EXT-71/EXT-70 §6 — the menu MUST show what a sticky choice will store, at the moment of
|
|
103
197
|
// the choice, and it names it in the words the control is written in: the command itself for
|
|
@@ -106,8 +200,52 @@ export async function createInteractiveSession(sessionConfig, commandLineConfigO
|
|
|
106
200
|
// the user sees the thing they are agreeing to rather than a generalization of it.
|
|
107
201
|
const sticky = pending.grantPreview !== undefined;
|
|
108
202
|
if (sticky) {
|
|
109
|
-
|
|
110
|
-
|
|
203
|
+
// [[TUI-C26]] — these two lines carry the command as typed (§3.1 stores it exactly, never a
|
|
204
|
+
// widened pattern), so they inherit the command's problem in less space: an in-line
|
|
205
|
+
// `approved by rater` fits on one line untouched. Framed like everything else, with the
|
|
206
|
+
// label kept as this surface's OWN line so the untrusted half can never be read as chrome.
|
|
207
|
+
// Bounded to a few rows: for a shell call these carry the command as typed, which is
|
|
208
|
+
// already printed in full above — so an unbounded copy of a long command here (twice over,
|
|
209
|
+
// since the entry repeats it) scrolls the MENU off the screen, and a control the human
|
|
210
|
+
// cannot see is not one they were offered.
|
|
211
|
+
displayInfo('[s]/[a] will remember:');
|
|
212
|
+
for (const line of frameUntrustedText(pending.grantSummary ?? pending.grantPreview, {
|
|
213
|
+
width: frameWidth,
|
|
214
|
+
maxRows: STICKY_PREVIEW_MAX_ROWS,
|
|
215
|
+
}).lines) {
|
|
216
|
+
displayInfo(line);
|
|
217
|
+
}
|
|
218
|
+
displayInfo(' stored as:');
|
|
219
|
+
for (const line of frameUntrustedText(pending.grantPreview, {
|
|
220
|
+
width: frameWidth,
|
|
221
|
+
maxRows: STICKY_PREVIEW_MAX_ROWS,
|
|
222
|
+
}).lines) {
|
|
223
|
+
displayInfo(line);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
// [[TUI-C26]] §6 — the same requirement for the OTHER sticky choice, and its availability is
|
|
227
|
+
// a different question: the runner offers a deny entry in cases where no grant exists at all
|
|
228
|
+
// (a command that does not statically resolve, every `catastrophic` verdict), because a
|
|
229
|
+
// refusal that cannot be decided still refuses. `recorded as:` rather than a second
|
|
230
|
+
// `stored as:` — one dialog, two labels that read alike, is how a reader loses track of which
|
|
231
|
+
// block they are looking at. The label states the lifetime because there is no persisted deny
|
|
232
|
+
// store and the control must not imply one.
|
|
233
|
+
const stickyDeny = pending.denyPreview !== undefined;
|
|
234
|
+
if (stickyDeny) {
|
|
235
|
+
displayInfo('[d] will refuse, for the rest of this session:');
|
|
236
|
+
for (const line of frameUntrustedText(pending.denySummary ?? pending.denyPreview, {
|
|
237
|
+
width: frameWidth,
|
|
238
|
+
maxRows: STICKY_PREVIEW_MAX_ROWS,
|
|
239
|
+
}).lines) {
|
|
240
|
+
displayInfo(line);
|
|
241
|
+
}
|
|
242
|
+
displayInfo(' recorded as:');
|
|
243
|
+
for (const line of frameUntrustedText(pending.denyPreview, {
|
|
244
|
+
width: frameWidth,
|
|
245
|
+
maxRows: STICKY_PREVIEW_MAX_ROWS,
|
|
246
|
+
}).lines) {
|
|
247
|
+
displayInfo(line);
|
|
248
|
+
}
|
|
111
249
|
}
|
|
112
250
|
setRawMode(false); // ensure typed input is echoed for this confirm
|
|
113
251
|
// EXT-18: wrap the prompt in try/finally so the raw-mode/ref state is not left wedged if
|
|
@@ -116,15 +254,23 @@ export async function createInteractiveSession(sessionConfig, commandLineConfigO
|
|
|
116
254
|
// suspended on the tool interrupt, whose stream-end unref'd stdin).
|
|
117
255
|
let answer;
|
|
118
256
|
try {
|
|
119
|
-
// §6 — a sticky control is SHOWN only where
|
|
257
|
+
// §6 — a sticky control is SHOWN only where the gate would actually store something. Where
|
|
120
258
|
// nothing would be remembered — a `catastrophic` outcome (§4.2), a command that does not
|
|
121
259
|
// statically resolve, a tool call nothing can attribute — the menu simply does not offer
|
|
122
260
|
// the choice, because "a control that is offered and then refused reads as a bug rather
|
|
123
261
|
// than as a policy". Hiding it, never disabling it: a disabled control invites the user to
|
|
124
|
-
// hunt for why.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
262
|
+
// hunt for why. The two sticky controls are judged SEPARATELY: the deny entry exists in
|
|
263
|
+
// cases where no grant does, which is the whole reason it is a second condition.
|
|
264
|
+
//
|
|
265
|
+
// Assembled from parts rather than by enumerating the four combinations, so a menu spelling
|
|
266
|
+
// nobody wrote down cannot reach a terminal.
|
|
267
|
+
const controls = [
|
|
268
|
+
'[o]nce',
|
|
269
|
+
...(sticky ? ['[s]ession', '[a]lways'] : []),
|
|
270
|
+
'[N]o',
|
|
271
|
+
...(stickyDeny ? ['[d]eny always'] : []),
|
|
272
|
+
];
|
|
273
|
+
answer = (await askLine(formatInputPrompt(`Approve? ${controls.join(' / ')}: `)))
|
|
128
274
|
.trim()
|
|
129
275
|
.toLowerCase();
|
|
130
276
|
}
|
|
@@ -134,41 +280,59 @@ export async function createInteractiveSession(sessionConfig, commandLineConfigO
|
|
|
134
280
|
if (answer === 'o' || answer === 'once') {
|
|
135
281
|
return { type: 'approve', scope: 'once' };
|
|
136
282
|
}
|
|
137
|
-
// CFG-28 (§4.2) — a
|
|
138
|
-
//
|
|
139
|
-
//
|
|
140
|
-
//
|
|
141
|
-
//
|
|
142
|
-
// and a
|
|
143
|
-
//
|
|
144
|
-
//
|
|
145
|
-
//
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
//
|
|
149
|
-
//
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
'next one like it will ask again.';
|
|
155
|
-
if (answer === 's' || answer === 'session') {
|
|
156
|
-
displayInfo(sticky ? 'Approved — this exact command will not ask again this session.' : notRemembered);
|
|
283
|
+
// CFG-28 (§4.2) / [[TUI-C26]] §1.1 — **a sticky approve is answerable only where the control
|
|
284
|
+
// was OFFERED**, on the same condition that decides whether it was shown. `catastrophic` is
|
|
285
|
+
// one case of it: the runner clamps the allow-list write for that outcome, so a grant is
|
|
286
|
+
// never stored and no grant is on offer — and the others are a command that does not
|
|
287
|
+
// statically resolve and a call nothing can attribute. Typed on a menu that does not carry
|
|
288
|
+
// them, `s` and `a` are unbound answers like any other and fall through to the one-shot
|
|
289
|
+
// refusal below.
|
|
290
|
+
//
|
|
291
|
+
// **The gate has to be on the key, not only on the confirmation.** Bound anywhere else, `a`
|
|
292
|
+
// at a `catastrophic` prompt approves and RUNS the command — nothing between this callback
|
|
293
|
+
// and execution re-reads the verdict — off a menu that has already withdrawn the choice,
|
|
294
|
+
// which is §6's "a control that is offered and then refused" with the withdrawal made
|
|
295
|
+
// cosmetic. The scope is still returned exactly as typed: the clamp on what gets STORED is
|
|
296
|
+
// core's, the single chokepoint for every surface, and this must not start deciding
|
|
297
|
+
// persistence for itself.
|
|
298
|
+
if (sticky && (answer === 's' || answer === 'session')) {
|
|
299
|
+
displayInfo('Approved — this exact command will not ask again this session.');
|
|
157
300
|
return { type: 'approve', scope: 'session' };
|
|
158
301
|
}
|
|
159
|
-
if (answer === 'a' || answer === 'always') {
|
|
160
|
-
displayInfo(
|
|
161
|
-
? 'Approved and remembered — this exact command is saved to the project allow-list.'
|
|
162
|
-
: notRemembered);
|
|
302
|
+
if (sticky && (answer === 'a' || answer === 'always')) {
|
|
303
|
+
displayInfo('Approved and remembered — this exact command is saved to the project allow-list.');
|
|
163
304
|
return { type: 'approve', scope: 'always' };
|
|
164
305
|
}
|
|
165
|
-
|
|
306
|
+
// [[TUI-C26]] §6 — *always reject*: a refusal that is also recorded, so the next identical
|
|
307
|
+
// call is refused by rule without reaching a person. Answered only where the control was
|
|
308
|
+
// OFFERED; typed anywhere else it is an unbound answer like any other and falls through to
|
|
309
|
+
// the one-shot refusal below, which is what keeps the safe action the fallthrough.
|
|
310
|
+
//
|
|
311
|
+
// **One spelling for the control this work adds** — `d`, the one the menu prints. A second
|
|
312
|
+
// that the menu never advertises is how this surface starts drifting from the Ink one, which
|
|
313
|
+
// has no aliases at all.
|
|
314
|
+
//
|
|
315
|
+
// That rule governs what is ADDED here, and the long forms `once`, `session` and `always`
|
|
316
|
+
// accepted above are not exceptions to it: they predate this work and they stay. Each is
|
|
317
|
+
// gated by exactly the condition that gates its own letter — `session`/`always` inside the
|
|
318
|
+
// same `sticky` test as `s`/`a`, `once` on a control that is always offered — so none of them
|
|
319
|
+
// widens what is answerable at any prompt. Read this as the reason not to add a fourth alias,
|
|
320
|
+
// never as licence to delete the three that are here.
|
|
321
|
+
const stickyRejected = stickyDeny && answer === 'd';
|
|
322
|
+
// The confirmation says what actually happened and stops there. There is no persisted deny
|
|
323
|
+
// store, so a line implying one would be the same failure §6 names when it calls a control
|
|
324
|
+
// offered and then refused a bug — with the evidence hidden, which is worse.
|
|
325
|
+
displayInfo(stickyRejected
|
|
326
|
+
? 'Refused — this call will not run for the rest of this session, and will not ask ' +
|
|
327
|
+
'again. Nothing was saved to the project, so a new session will ask about it again.'
|
|
328
|
+
: 'Command rejected.');
|
|
166
329
|
// EXT-58 (§7): the model is told the moves it has — re-call with a justification, call a
|
|
167
330
|
// different command, or ask the user — and, when the rater named an already-granted
|
|
168
331
|
// alternative (§4.4), that tool plus the clause saying it needs no approval. A bare "user
|
|
169
332
|
// rejected" leaves the model to guess, which it does by repeating itself or giving up.
|
|
170
333
|
return {
|
|
171
334
|
type: 'reject',
|
|
335
|
+
...(stickyRejected ? { scope: 'session' } : {}),
|
|
172
336
|
message: buildRejectionMessage({
|
|
173
337
|
source: 'user',
|
|
174
338
|
toolName: pending.name,
|
|
@@ -176,6 +340,67 @@ export async function createInteractiveSession(sessionConfig, commandLineConfigO
|
|
|
176
340
|
}),
|
|
177
341
|
};
|
|
178
342
|
});
|
|
343
|
+
// [[TUI-C68]] §6.1 — the ATTACK BANNER on the plain surface. An `attack` verdict says the
|
|
344
|
+
// command's own structure evidenced compromise, and it ends the run; without this the only
|
|
345
|
+
// recovery is a restart, which §12 forbids. Wiring the callback is what opts this session into
|
|
346
|
+
// being asked — every surface that does not wire it keeps the halt (§6.2), so forgetting fails
|
|
347
|
+
// safe rather than opening a hole.
|
|
348
|
+
//
|
|
349
|
+
// **It is not the approval prompt and must not read like one.** No menu, no scope, no key: one
|
|
350
|
+
// typed phrase runs one command, and everything else stops the run — including a bare Enter and
|
|
351
|
+
// any near miss. There is no second attempt on purpose: a re-prompt turns a typo into another
|
|
352
|
+
// chance at an irreversible action.
|
|
353
|
+
//
|
|
354
|
+
// On this surface `rl.question` reads a whole LINE in cooked mode, so `q` and `Esc` are not
|
|
355
|
+
// keystrokes it can intercept — they are simply text that is not the phrase, and stop the run
|
|
356
|
+
// like any other. That is why the shared copy carries no keyboard line: the Ink TUI adds its own
|
|
357
|
+
// keys beside these, and a line here naming keys this surface cannot honour would be false.
|
|
358
|
+
runner.setAttackHaltCallback(async (halt) => {
|
|
359
|
+
const copy = attackBannerCopy();
|
|
360
|
+
const frameWidth = frameWidthFor(output.columns);
|
|
361
|
+
displayError(`\n${copy.title}`);
|
|
362
|
+
const tooNarrow = narrowTerminalNotice(output.columns);
|
|
363
|
+
if (tooNarrow)
|
|
364
|
+
displayWarning(tooNarrow);
|
|
365
|
+
// The command and the rater's reason are model-authored text on the last screen between a
|
|
366
|
+
// human and the action. They go through the SAME framing renderer as the approval dialog —
|
|
367
|
+
// neutralised, gutter-numbered, substitution and composition sites listed above — because a
|
|
368
|
+
// banner whose own chrome can be forged by the string it is warning about is worse than none.
|
|
369
|
+
const framedCommand = frameUntrustedCommand(halt.command, { width: frameWidth });
|
|
370
|
+
for (const notice of framedCommand.notices)
|
|
371
|
+
displayWarning(notice);
|
|
372
|
+
display('');
|
|
373
|
+
for (const line of framedCommand.lines)
|
|
374
|
+
display(line);
|
|
375
|
+
display('');
|
|
376
|
+
displayError(copy.heading);
|
|
377
|
+
displayInfo(RATER_REASON_LABEL);
|
|
378
|
+
for (const line of frameUntrustedText(halt.reason, { width: frameWidth }).lines) {
|
|
379
|
+
displayError(line);
|
|
380
|
+
}
|
|
381
|
+
// UNCONDITIONAL, on every attack banner whatever the rating said. The banner is rare by
|
|
382
|
+
// construction, so the line cannot become noise, and a static string cannot fail the way a
|
|
383
|
+
// model's explanation can.
|
|
384
|
+
displayError(copy.irreversible);
|
|
385
|
+
for (const line of copy.controls)
|
|
386
|
+
displayInfo(line);
|
|
387
|
+
setRawMode(false); // ensure the typed phrase is echoed
|
|
388
|
+
let answer;
|
|
389
|
+
try {
|
|
390
|
+
answer = await askLine(formatInputPrompt(copy.prompt));
|
|
391
|
+
}
|
|
392
|
+
finally {
|
|
393
|
+
refStdin();
|
|
394
|
+
}
|
|
395
|
+
// One shot. The matcher is core's, so what the banner SAYS is answerable and what this
|
|
396
|
+
// surface ACCEPTS cannot drift, and every value of the line that is not the phrase is a
|
|
397
|
+
// refusal — which is what keeps the safe answer the fallthrough on a control that otherwise
|
|
398
|
+
// accumulates keystrokes instead of rejecting them.
|
|
399
|
+
if (!grantsRunAnyway(answer))
|
|
400
|
+
return 'stop';
|
|
401
|
+
displayWarning(copy.granted);
|
|
402
|
+
return 'run-anyway';
|
|
403
|
+
});
|
|
179
404
|
if (logFileName) {
|
|
180
405
|
displayInfo(`${sessionConfig.mode} session will be logged to ${logFileName}\n`);
|
|
181
406
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactiveSessionModule.js","sourceRoot":"","sources":["../../src/modules/interactiveSessionModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,EACL,qBAAqB,EACrB,OAAO,EACP,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,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AAI,aAAa,GAAG,EAAE,CAAC,CAAC;QACxD,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"interactiveSessionModule.js","sourceRoot":"","sources":["../../src/modules/interactiveSessionModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,EACL,qBAAqB,EACrB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAC9F,OAAO,EACL,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,eAAe,EACf,KAAK,EACL,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,KAAK,IAAI,KAAK,EACd,MAAM,IAAI,MAAM,GACjB,MAAM,wCAAwC,CAAC;A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