gaunt-sloth 2.0.0-beta.9 → 2.0.0

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.
Files changed (106) hide show
  1. package/.gsloth.review-discovery.md +19 -0
  2. package/cli.js +49 -0
  3. package/dist/cli.js +37 -3
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/adkEvalRunner.d.ts +7 -6
  6. package/dist/commands/adkEvalRunner.js +3 -3
  7. package/dist/commands/adkEvalRunner.js.map +1 -1
  8. package/dist/commands/agUiEvalRunner.d.ts +4 -4
  9. package/dist/commands/agUiEvalRunner.js +8 -7
  10. package/dist/commands/agUiEvalRunner.js.map +1 -1
  11. package/dist/commands/askCommand.js +9 -1
  12. package/dist/commands/askCommand.js.map +1 -1
  13. package/dist/commands/batchCommand.d.ts +2 -2
  14. package/dist/commands/batchCommand.js +10 -5
  15. package/dist/commands/batchCommand.js.map +1 -1
  16. package/dist/commands/commandIntrospection.d.ts +1 -1
  17. package/dist/commands/commandIntrospection.js +6 -3
  18. package/dist/commands/commandIntrospection.js.map +1 -1
  19. package/dist/commands/configCommand.d.ts +1 -1
  20. package/dist/commands/configCommand.js +1 -1
  21. package/dist/commands/configSetup.d.ts +1 -1
  22. package/dist/commands/discoveryConfigSchemaAgreement.d.ts +45 -0
  23. package/dist/commands/discoveryConfigSchemaAgreement.js +2 -0
  24. package/dist/commands/discoveryConfigSchemaAgreement.js.map +1 -0
  25. package/dist/commands/evalCommand.d.ts +27 -1
  26. package/dist/commands/evalCommand.js +155 -13
  27. package/dist/commands/evalCommand.js.map +1 -1
  28. package/dist/commands/execCommand.d.ts +1 -1
  29. package/dist/commands/execCommand.js +9 -2
  30. package/dist/commands/execCommand.js.map +1 -1
  31. package/dist/commands/firstRunDialog.d.ts +3 -3
  32. package/dist/commands/firstRunDialog.js +2 -2
  33. package/dist/commands/getCommand.js +10 -1
  34. package/dist/commands/getCommand.js.map +1 -1
  35. package/dist/commands/historyCommand.d.ts +1 -1
  36. package/dist/commands/historyCommand.js +16 -4
  37. package/dist/commands/historyCommand.js.map +1 -1
  38. package/dist/commands/prCommand.js +45 -16
  39. package/dist/commands/prCommand.js.map +1 -1
  40. package/dist/commands/prDiscovery.d.ts +24 -25
  41. package/dist/commands/prDiscovery.js +55 -132
  42. package/dist/commands/prDiscovery.js.map +1 -1
  43. package/dist/commands/requirementsDiscovery.d.ts +82 -0
  44. package/dist/commands/requirementsDiscovery.js +127 -0
  45. package/dist/commands/requirementsDiscovery.js.map +1 -0
  46. package/dist/commands/reviewCommand.js +75 -8
  47. package/dist/commands/reviewCommand.js.map +1 -1
  48. package/dist/commands/reviewDiscovery.d.ts +96 -0
  49. package/dist/commands/reviewDiscovery.js +180 -0
  50. package/dist/commands/reviewDiscovery.js.map +1 -0
  51. package/dist/tui/approvalBridges.d.ts +86 -0
  52. package/dist/tui/approvalBridges.js +147 -0
  53. package/dist/tui/approvalBridges.js.map +1 -0
  54. package/dist/tui/components/App.js +272 -27
  55. package/dist/tui/components/App.js.map +1 -1
  56. package/dist/tui/components/DebugPanel.d.ts +6 -3
  57. package/dist/tui/components/DebugPanel.js +32 -10
  58. package/dist/tui/components/DebugPanel.js.map +1 -1
  59. package/dist/tui/components/FetchProgress.d.ts +1 -1
  60. package/dist/tui/components/LaunchBanner.d.ts +4 -3
  61. package/dist/tui/components/LaunchBanner.js +8 -6
  62. package/dist/tui/components/LaunchBanner.js.map +1 -1
  63. package/dist/tui/components/LiveTurn.d.ts +15 -9
  64. package/dist/tui/components/LiveTurn.js +15 -14
  65. package/dist/tui/components/LiveTurn.js.map +1 -1
  66. package/dist/tui/components/PromptInput.d.ts +2 -2
  67. package/dist/tui/components/PromptInput.js +11 -6
  68. package/dist/tui/components/PromptInput.js.map +1 -1
  69. package/dist/tui/components/ResumePicker.d.ts +69 -0
  70. package/dist/tui/components/ResumePicker.js +93 -0
  71. package/dist/tui/components/ResumePicker.js.map +1 -0
  72. package/dist/tui/components/SelectList.d.ts +1 -1
  73. package/dist/tui/components/SelectList.js +1 -1
  74. package/dist/tui/components/SlashCommandMenu.d.ts +1 -1
  75. package/dist/tui/components/SlashCommandMenu.js +1 -1
  76. package/dist/tui/components/StatusBar.d.ts +27 -1
  77. package/dist/tui/components/StatusBar.js +13 -2
  78. package/dist/tui/components/StatusBar.js.map +1 -1
  79. package/dist/tui/debugRender.d.ts +26 -3
  80. package/dist/tui/debugRender.js +232 -2
  81. package/dist/tui/debugRender.js.map +1 -1
  82. package/dist/tui/fixtureAgent.d.ts +2 -2
  83. package/dist/tui/fixtureAgent.js +2 -2
  84. package/dist/tui/keyBindings.js +7 -1
  85. package/dist/tui/keyBindings.js.map +1 -1
  86. package/dist/tui/keyGuards.d.ts +1 -1
  87. package/dist/tui/keyGuards.js +1 -1
  88. package/dist/tui/ruleWidth.d.ts +1 -1
  89. package/dist/tui/ruleWidth.js +1 -1
  90. package/dist/tui/selectCancelled.d.ts +1 -1
  91. package/dist/tui/selectCancelled.js +1 -1
  92. package/dist/tui/transcriptWindow.js +7 -1
  93. package/dist/tui/transcriptWindow.js.map +1 -1
  94. package/dist/tui/tuiSessionModule.js +89 -190
  95. package/dist/tui/tuiSessionModule.js.map +1 -1
  96. package/dist/tui/types.d.ts +77 -18
  97. package/dist/tui/useMouse.d.ts +1 -1
  98. package/dist/tui/useMouse.js +1 -1
  99. package/dist/tui/useSlothAnimation.d.ts +1 -1
  100. package/dist/tui/viewModel.d.ts +64 -12
  101. package/dist/tui/viewModel.js +38 -11
  102. package/dist/tui/viewModel.js.map +1 -1
  103. package/dist/utils/configErrorGuard.d.ts +11 -3
  104. package/dist/utils/configErrorGuard.js +11 -3
  105. package/dist/utils/configErrorGuard.js.map +1 -1
  106. package/package.json +18 -18
@@ -12,10 +12,9 @@ import { appendToFile, getCommandOutputFilePath } from '@gaunt-sloth/core/utils/
12
12
  import { env, exit, getProjectDir, stdin, stdout } from '@gaunt-sloth/core/utils/systemUtils.js';
13
13
  import { openConversationSafe, recordSessionSafe, } from '@gaunt-sloth/core/history/recordSession.js';
14
14
  import { openSessionCheckpointerSafe } from '@gaunt-sloth/core/history/sessionCheckpointer.js';
15
- import { openHistoryStore, resolveHistoryDbPath } from '@gaunt-sloth/core/history/historyStore.js';
15
+ import { buildHistorySlashProps } from '@gaunt-sloth/core/history/historySlashProps.js';
16
16
  import { saveConversationGrantsSafe } from '@gaunt-sloth/core/core/approvals/conversationGrants.js';
17
17
  import { applyResumeTarget, listResumeCandidates, resolveResumeTarget, resumeRefusalNotice, } from '@gaunt-sloth/agent/modules/sessionResume.js';
18
- import { formatConversationList, formatInsightsSummary, formatSearchResults, } from '@gaunt-sloth/core/history/historyFormat.js';
19
18
  import { HumanMessage } from '@langchain/core/messages';
20
19
  import { createResolvers } from '@gaunt-sloth/agent/resolvers.js';
21
20
  import { resolveAgentFactory } from '@gaunt-sloth/agent/core/resolveAgentFactory.js';
@@ -24,52 +23,10 @@ import { readTermination, writeDebugDump } from '@gaunt-sloth/core/utils/debugDu
24
23
  import { App } from '#src/tui/components/App.js';
25
24
  import { applyTuiColour } from '#src/tui/colour.js';
26
25
  import { formatConfigSummary, } from '@gaunt-sloth/agent/modules/slashCommands.js';
26
+ import { createApprovalBridge, createAttackHaltBridge } from '#src/tui/approvalBridges.js';
27
27
  import { collectMcpOverview, renderHistory, renderMcpDetails, renderSystemDetails, renderToolDetails, renderResponse, } from '#src/tui/debugRender.js';
28
28
  import { installAlternateScrollSuppression, installMouseReporting, } from '#src/tui/mouseReporting.js';
29
29
  import { createMouseStdin } from '#src/tui/mouseStdin.js';
30
- /**
31
- * GS2-7 (B20) — build the read-only history slash-command props from the local store, fail-soft.
32
- * If no DB is available (history never enabled / file missing / unopenable) it returns `{}`, so
33
- * `/history` `/insights` `/search` render their "history unavailable" notices. Never throws — a
34
- * store problem must not affect starting a session.
35
- */
36
- function buildHistorySlashProps(config) {
37
- try {
38
- const dbPath = resolveHistoryDbPath(config.history?.dbPath);
39
- const store = openHistoryStore(dbPath, { create: false });
40
- if (!store)
41
- return {};
42
- try {
43
- const historySummary = formatConversationList(store.listConversations(20));
44
- const insightsSummary = formatInsightsSummary(store.insights());
45
- // Search runs later (at dispatch), so it re-opens read-only per call rather than holding a
46
- // connection open for the session; still fully fail-soft.
47
- const historySearch = (query) => {
48
- try {
49
- const s = openHistoryStore(dbPath, { create: false });
50
- if (!s)
51
- return formatSearchResults([]);
52
- try {
53
- return formatSearchResults(s.search(query, 20));
54
- }
55
- finally {
56
- s.close();
57
- }
58
- }
59
- catch {
60
- return formatSearchResults([]);
61
- }
62
- };
63
- return { historySummary, insightsSummary, historySearch };
64
- }
65
- finally {
66
- store.close();
67
- }
68
- }
69
- catch {
70
- return {};
71
- }
72
- }
73
30
  /**
74
31
  * GS2-46 — the real `/debug-dump` writer, injected into `<App>` the same way `historySearch` is:
75
32
  * forwards the App-assembled input straight to the core writer, which does the actual fs I/O
@@ -233,109 +190,14 @@ function createDebugBridge(config, resolvers) {
233
190
  },
234
191
  };
235
192
  }
236
- /**
237
- * Fan-out so the runner's tool-approval callback can reach the mounted React app. Modeled on
238
- * {@link createStatusBridge}, but promise-based: when the runner suspends on a
239
- * `run_shell_command` interrupt and calls the approval callback, the bridge creates a pending
240
- * record (the {@link PendingToolInterrupt} plus a `resolve`), emits it to the subscribed
241
- * `<App>`, and hands the callback a Promise it awaits until the app resolves a decision.
242
- *
243
- * Fail-closed: if the session ends / the app unmounts while an approval is still pending, every
244
- * outstanding record is resolved as a reject (`abortPending`), so a suspended run can never hang
245
- * — matching the readline path's "anything not o/s/a → reject" default.
246
- *
247
- * [[EXT-150]] — **and the answer comes back the other way.** The runner reports what a decision
248
- * LANDED as only after the callback above has returned (the write is attempted then), so the
249
- * decision promise cannot carry it. `report` is wired to `runner.setApprovalOutcomeCallback` and
250
- * settles a second promise per request, which is what `resolve` hands the App. The two are paired by
251
- * the `pending` object's identity rather than by arrival order: this bridge holds a SET of
252
- * outstanding records and the App a queue, so ordering is not a property either of them keeps, and a
253
- * mis-paired outcome would confirm one call's persistence on another call's dialog.
254
- */
255
- function createApprovalBridge() {
256
- const listeners = new Set();
257
- // Records that have been emitted but not yet resolved (used by abortPending on teardown).
258
- const outstanding = new Set();
259
- // [[EXT-150]] — how to settle the outcome promise of a request still waiting to hear one, keyed by
260
- // the interrupt the runner will name. Cleared as each is settled, so nothing accumulates.
261
- const awaitingOutcome = new Map();
262
- return {
263
- /** Wired to `runner.setToolApprovalCallback`: returns a Promise the runner awaits. */
264
- request: (pending) => new Promise((resolve) => {
265
- let settled = false;
266
- // Created before the record so `resolve` can hand it back; the executor runs synchronously,
267
- // so `settleOutcome` is the real resolver by the time anything can call it.
268
- let settleOutcome = () => { };
269
- const outcome = new Promise((settleIt) => {
270
- settleOutcome = settleIt;
271
- });
272
- awaitingOutcome.set(pending, (reported) => {
273
- awaitingOutcome.delete(pending);
274
- settleOutcome(reported);
275
- });
276
- const record = {
277
- pending,
278
- resolve: (decision) => {
279
- if (!settled) {
280
- settled = true;
281
- outstanding.delete(record);
282
- resolve(decision);
283
- }
284
- // The same promise on every call, so the idempotent second `resolve` of a race is still
285
- // told the outcome rather than handed one that can never settle.
286
- return outcome;
287
- },
288
- };
289
- outstanding.add(record);
290
- for (const l of listeners)
291
- l(record);
292
- }),
293
- /**
294
- * [[EXT-150]] — wired to `runner.setApprovalOutcomeCallback`: hand the waiting request what its
295
- * answer actually landed as. An outcome for a request nobody is waiting on (teardown got there
296
- * first) is dropped, which is why the map entry is removed as it settles.
297
- */
298
- report: (outcome) => {
299
- awaitingOutcome.get(outcome.pending)?.(outcome);
300
- },
301
- subscribe: (cb) => {
302
- listeners.add(cb);
303
- return () => {
304
- listeners.delete(cb);
305
- };
306
- },
307
- /** Resolve every still-pending approval as a reject (fail-closed) on teardown. */
308
- abortPending: () => {
309
- for (const record of [...outstanding]) {
310
- record.resolve({ type: 'reject', message: 'Session ended before approval.' });
311
- }
312
- // [[EXT-150]] — and tell everything still waiting that no outcome is coming. Fail-closed here
313
- // means `null`, which the App renders as *no persistence claim*: a surface that hung waiting
314
- // would be as bad as one that guessed, and guessing is what this node removes.
315
- for (const settle of [...awaitingOutcome.values()])
316
- settle(null);
317
- },
318
- };
319
- }
320
- /**
321
- * [[TUI-C68]] §6.1 — the same fan-out for **attack halts**, so the runner's halt seam can reach the
322
- * mounted React app and a human can type their way past one.
323
- *
324
- * A second bridge rather than a widened approval one: the answers are different types, and keeping
325
- * them apart is what stops a surface returning an approval `scope` for a halt that must never carry
326
- * one.
327
- *
328
- * Fail-closed the same way, and here that word means `stop`: if the session ends while a banner is
329
- * still up, {@link abortPending} answers it so the suspended run cannot hang — and it answers with
330
- * the one value that does not run the command.
331
- */
332
193
  /**
333
194
  * [[TUI-C69]] §5.4 — the same fan-out for the **negotiation's rounds**, so the gate can draw the
334
195
  * argument between the agent and the auto-rater while it happens.
335
196
  *
336
- * A plain listener rather than a promise bridge, and that is the whole difference from the two
337
- * above: nothing here is being answered, so nothing waits. A round is an event the run reports on
338
- * its way past, and a surface that is slow to draw one must never be able to hold up the decision.
197
+ * A plain listener rather than a promise bridge, and that is the whole difference from the two in
198
+ * `#src/tui/approvalBridges.ts`: nothing here is being answered, so nothing waits. A round is an
199
+ * event the run reports on its way past, and a surface that is slow to draw one must never be able
200
+ * to hold up the decision.
339
201
  */
340
202
  function createNegotiationBridge() {
341
203
  const listeners = new Set();
@@ -360,40 +222,6 @@ function createNegotiationBridge() {
360
222
  },
361
223
  };
362
224
  }
363
- function createAttackHaltBridge() {
364
- const listeners = new Set();
365
- const outstanding = new Set();
366
- return {
367
- /** Wired to `runner.setAttackHaltCallback`: returns a Promise the runner awaits. */
368
- request: (halt) => new Promise((resolve) => {
369
- let settled = false;
370
- const record = {
371
- halt,
372
- resolve: (answer) => {
373
- if (settled)
374
- return;
375
- settled = true;
376
- outstanding.delete(record);
377
- resolve(answer);
378
- },
379
- };
380
- outstanding.add(record);
381
- for (const l of listeners)
382
- l(record);
383
- }),
384
- subscribe: (cb) => {
385
- listeners.add(cb);
386
- return () => {
387
- listeners.delete(cb);
388
- };
389
- },
390
- /** Answer every still-open banner with `stop` on teardown. */
391
- abortPending: () => {
392
- for (const record of [...outstanding])
393
- record.resolve('stop');
394
- },
395
- };
396
- }
397
225
  /**
398
226
  * Ink TUI counterpart to `createInteractiveSession` (the readline path).
399
227
  *
@@ -626,6 +454,9 @@ async function runTuiSession(sessionConfig, commandLineConfigOverrides, message,
626
454
  ? bootResume.conversationId
627
455
  : (openConversationSafe(config, {
628
456
  command: sessionConfig.mode,
457
+ // The conversation's PROJECT ROOT, not the directory this session is in: `getProjectDir()`
458
+ // is the discovered config root whenever one was found above us. It is what the resume
459
+ // workspace check compares, so nothing may render it as where the user was.
629
460
  project: getProjectDir(),
630
461
  model: config.modelDisplayName,
631
462
  threadId: checkpointer.threadId,
@@ -650,6 +481,50 @@ async function runTuiSession(sessionConfig, commandLineConfigOverrides, message,
650
481
  const approvalBridge = createApprovalBridge();
651
482
  const attackHaltBridge = createAttackHaltBridge();
652
483
  const negotiationBridge = createNegotiationBridge();
484
+ /**
485
+ * [[EXT-194]] — **the one place a still-open prompt is answered**, so no teardown path can answer
486
+ * one bridge and forget the other. That is not hypothetical: the `catch` below answered the
487
+ * approval prompt and not the attack banner, so a session that threw with a banner on screen left
488
+ * that prompt unanswered entirely — no reply, no record, nothing — while the sentence "every
489
+ * still-open prompt is answered on teardown" stayed true of the exit path a reader would check
490
+ * first. A second line in the `catch` would have fixed that instance and left a third bridge to be
491
+ * forgotten the same way; one closure that answers all of them cannot be half-called.
492
+ *
493
+ * [[EXT-110]] is what they are answered WITH: a teardown, which refuses the call exactly as a
494
+ * reject did while leaving the archive able to say that nobody was at the keyboard.
495
+ *
496
+ * `negotiationBridge` is deliberately absent. Nothing there is being answered — a round is an
497
+ * event the run reports on its way past — so there is nothing outstanding to release.
498
+ *
499
+ * ## Every way this session can end, and what each one answers
500
+ *
501
+ * **Read the reason before the list.** The first four have nothing to answer, and not one of them
502
+ * is safe because somebody checked it. They are safe because **a prompt cannot be open until
503
+ * `setToolApprovalCallback` and `setAttackHaltCallback` have run**, and that wiring sits below
504
+ * every one of them — the first three leave before the bridges are even constructed, a few lines
505
+ * above. Move the wiring up and those ends become live, silently and with nothing to say so. That
506
+ * invariant, not the list, is what makes the next asymmetry cheap to find.
507
+ *
508
+ * 1. the hermetic fixture branch's `return` — nothing wired
509
+ * 2. the `--resume` refusal's `exit(1)` — nothing wired
510
+ * 3. a throw before the `try` (config load, checkpointer open, resume resolution, runner
511
+ * construction) — nothing wired
512
+ * 4. a throw inside the `try` but before the wiring (`runner.init`) — reaches 6 and answers both
513
+ * bridges, which by then exist with nothing outstanding on either
514
+ * 5. `onExit` — every deliberate exit, Ctrl+C included, via [[TUI-C79]]'s ladder: answers both
515
+ * 6. the `catch` — a render-phase throw, the one exit that can carry a live prompt: answers both
516
+ * 7. the session's `finally` — runs after 5 and 6 have answered; not an answering seam
517
+ * 8. `createTuiSession`'s outer `finally` — the exit-output drain; the bridges are out of scope
518
+ *
519
+ * The answer deliberately does NOT live in 7, where no future branch could miss it. A `finally`
520
+ * runs after `runner.cleanup()`, and a suspended run has to be released BEFORE cleanup rather than
521
+ * after — so unforgettable placement would buy its reliability by changing fail-closed ordering.
522
+ * It would also make 5 and 6 redundant, and the test that pins each of them would stop biting.
523
+ */
524
+ const answerOpenPrompts = () => {
525
+ approvalBridge.abortPending();
526
+ attackHaltBridge.abortPending();
527
+ };
653
528
  // B5: TUI code/chat ask for the LEAN backend, which is the only one Gaunt Sloth ships — the
654
529
  // `config.agent.backend` seam is still read but can name nothing else. Mirrors the readline path
655
530
  // in createInteractiveSession, askCommand, and execCommand — the TUI is the default interactive
@@ -757,6 +632,8 @@ async function runTuiSession(sessionConfig, commandLineConfigOverrides, message,
757
632
  recordSessionSafe(config, {
758
633
  conversationId, // GS2-19: group every turn under this session's conversation
759
634
  command: sessionConfig.mode,
635
+ // The turn's PROJECT ROOT, not the directory this session is in — see the same field on
636
+ // the conversation row above.
760
637
  project: getProjectDir(),
761
638
  model: config.modelDisplayName,
762
639
  prompt: userInput,
@@ -787,10 +664,24 @@ async function runTuiSession(sessionConfig, commandLineConfigOverrides, message,
787
664
  getTerminationReason() {
788
665
  return runner.getTerminationReason();
789
666
  },
667
+ // [[EXT-158]] — and whether that turn left checklist work outstanding, read at the same
668
+ // moment and for the same reason: after the stream is done, as a value rather than an event.
669
+ getOutstandingWork() {
670
+ return runner.getOutstandingWork();
671
+ },
672
+ // [[EXT-178]] — and, for the surfaces that ask, a recap of the turn. The runner owns the
673
+ // call because the runner owns the config; the App is never given a live model, and this is
674
+ // the seam that keeps it that way.
675
+ requestRunRecap(reason) {
676
+ return runner.requestRunRecap(reason);
677
+ },
790
678
  // `/clear` rotates the runner's thread_id so the model context truly matches the
791
- // cleared transcript (the checkpointer otherwise replays the whole prior conversation).
792
- resetThread() {
793
- runner.resetThread();
679
+ // cleared transcript (the checkpointer otherwise replays the whole prior conversation), and
680
+ // ([[EXT-109]]) drops the approvals capture log the Auto-mode tab and `/debug-dump` read.
681
+ // The runner's `resetThread` is deliberately NOT what this calls: that one is the per-turn
682
+ // rotation the conversational surfaces make, and the log must survive it there.
683
+ clearConversation() {
684
+ runner.clearConversation();
794
685
  },
795
686
  // CFG-27 — `/approvals <rung>` switches the runner's session rung. Returns the posture the
796
687
  // runner LANDED on, so the notice and the status badge describe the real state rather than
@@ -876,14 +767,19 @@ async function runTuiSession(sessionConfig, commandLineConfigOverrides, message,
876
767
  // GS2-20 — the conversation `/status` names, what a bare `/resume` offers (read live, so
877
768
  // the session is never offered the conversation it has moved to), and the resumed
878
769
  // conversation whose banner and turns seed the transcript on a `--resume` start.
879
- conversationId: conversationId, listResumeCandidates: () => listResumeCandidates(config, conversationId), resumed: bootResume, readyMessage: sessionConfig.readyMessage, exitMessage: sessionConfig.exitMessage, initialMessage: message, subscribeStatus: bridge.subscribe, subscribeDebug: debugBridge.subscribe, subscribeApproval: approvalBridge.subscribe, subscribeAttackHalt: attackHaltBridge.subscribe, subscribeNegotiation: negotiationBridge.subscribe, onTurnComplete: logTurn, onExit: async () => {
880
- // Fail-closed: resolve any approval still awaiting a decision before tearing down,
881
- // so a suspended run can never hang on an unanswered prompt. The attack banner gets the
882
- // same treatment, answered `stop` — and Ctrl+C at either of those prompts reaches this,
883
- // because [[TUI-C79]] routes it through <App>'s `quit()` rather than through an Ink
884
- // unmount that would have torn the session down without running any of this.
885
- approvalBridge.abortPending();
886
- attackHaltBridge.abortPending();
770
+ conversationId: conversationId, listResumeCandidates: () => listResumeCandidates(config, conversationId), resumed: bootResume, readyMessage: sessionConfig.readyMessage, exitMessage: sessionConfig.exitMessage, initialMessage: message, subscribeStatus: bridge.subscribe, subscribeDebug: debugBridge.subscribe, subscribeApproval: approvalBridge.subscribe, subscribeAttackHalt: attackHaltBridge.subscribe, subscribeNegotiation: negotiationBridge.subscribe,
771
+ // [[TUI-C27]] — the Auto-mode debug tab reads the gate's decisions from the live runner,
772
+ // at RENDER time, for the same reason `/debug-dump` reads them at call time: the log is
773
+ // mutated in place as each decision is made, so anything snapshotted earlier is a
774
+ // decision-in-progress frozen halfway.
775
+ readApprovalCaptures: () => runner.getApprovalCaptures(), onTurnComplete: logTurn, onExit: async () => {
776
+ // Fail-closed: answer every prompt still awaiting a decision before tearing down, so a
777
+ // suspended run can never hang on an unanswered one. Ctrl+C at either of those prompts
778
+ // reaches this, because [[TUI-C79]] routes it through <App>'s `quit()` rather than
779
+ // through an Ink unmount that would have torn the session down without running any of
780
+ // this. Before `runner.cleanup()`, which is the ordering: the suspended run is released
781
+ // first, then cleaned up.
782
+ answerOpenPrompts();
887
783
  await runner.cleanup();
888
784
  stopSessionLogging();
889
785
  } }), {
@@ -916,7 +812,10 @@ async function runTuiSession(sessionConfig, commandLineConfigOverrides, message,
916
812
  }
917
813
  catch (err) {
918
814
  mouseSession?.dispose();
919
- approvalBridge.abortPending();
815
+ // [[EXT-194]] — the render-phase throw is the one exit that can carry a prompt nobody answered:
816
+ // <App> never reached its own quit, so `onExit` above never ran and this is the only teardown
817
+ // there is. The same closure as that path, in the same position before `runner.cleanup()`.
818
+ answerOpenPrompts();
920
819
  await runner.cleanup();
921
820
  stopSessionLogging();
922
821
  throw err;
@@ -1 +1 @@
1
- {"version":3,"file":"tuiSessionModule.js","sourceRoot":"","sources":["../../src/tui/tuiSessionModule.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAmC,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EACL,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAQ9D,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAC9F,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EACL,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,mBA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,qFAAqF;YACrF,8FAA8F;YAC9F,gEAAgE;YAChE,WAAW,EAAE,KAAK;SACnB,CACF,CAAC;QAEF,MAAM,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC/B,yFAAyF;QACzF,gFAAgF;QAChF,YAAY,EAAE,OAAO,EAAE,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,YAAY,EAAE,OAAO,EAAE,CAAC;QACxB,gGAAgG;QAChG,8FAA8F;QAC9F,2FAA2F;QAC3F,iBAAiB,EAAE,CAAC;QACpB,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QACvB,kBAAkB,EAAE,CAAC;QACrB,MAAM,GAAG,CAAC;IACZ,CAAC;YAAS,CAAC;QACT,0FAA0F;QAC1F,2FAA2F;QAC3F,uBAAuB,CAAC,KAAK,CAAC,CAAC;QAC/B,8FAA8F;QAC9F,wFAAwF;QACxF,oCAAoC;QACpC,YAAY,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { AgentStreamEvent, ApprovalOutcome, AttackHaltAnswer, PendingAttackHalt, PendingToolInterrupt, ToolApprovalDecision, McpConnectionFailure } from '@gaunt-sloth/core/core/types.js';
1
+ import type { AgentStreamEvent, ApprovalOutcome, AttackHaltReply, PendingAttackHalt, PendingToolInterrupt, ToolApprovalReply, McpConnectionFailure } from '@gaunt-sloth/core/core/types.js';
2
2
  import type { TurnViewModel } from '#src/tui/viewModel.js';
3
3
  import type { AllowlistCounts, ApprovalRefusal, ApprovalRefusalLift, ApprovalRung, McpAnnotationTrustChange, McpAnnotationTrustView, ResolvedApprovals, ToolAnnotationHint } from '@gaunt-sloth/core/config.js';
4
4
  import type { ApprovalGrant } from '@gaunt-sloth/core/core/approvals/grants.js';
@@ -7,19 +7,23 @@ import type { AutocompactStatus } from '@gaunt-sloth/core/core/compactionThresho
7
7
  import type { TokenBudget } from '@gaunt-sloth/core/config.js';
8
8
  import type { ApprovalStopPart } from '@gaunt-sloth/core/core/shell/approvalStop.js';
9
9
  import type { GthTerminationReason } from '@gaunt-sloth/core/core/terminationReason.js';
10
+ import type { GthOutstandingWork } from '@gaunt-sloth/core/core/outstandingWork.js';
11
+ import type { GthRunRecap } from '@gaunt-sloth/core/core/runRecap.js';
10
12
  import type { LiveNegotiationRound } from '@gaunt-sloth/core/core/shell/negotiation.js';
13
+ import type { ApprovalDecisionCapture } from '@gaunt-sloth/core/core/shell/approvalCapture.js';
11
14
  import type { CommandNoticeTone } from '#src/tui/components/CommandNotice.js';
12
15
  import type { DebugDumpInput } from '@gaunt-sloth/agent/modules/slashCommands.js';
13
16
  import type { ResumeResolution, ResumeTarget } from '@gaunt-sloth/agent/modules/sessionResume.js';
14
17
  import type { ConversationSummary } from '@gaunt-sloth/core/history/historyStore.js';
18
+ import type { HistoryAvailability } from '@gaunt-sloth/core/history/historySlashProps.js';
15
19
  import type { MouseSubscribe } from '#src/tui/useMouse.js';
16
20
  /**
17
21
  * One in-flight tool-approval request bridged from the runner into the mounted `<App>`
18
- * (EXT-9 Phase B2): the {@link PendingToolInterrupt} the runner suspended on, plus a `resolve`
19
- * that hands the human's {@link ToolApprovalDecision} back to the awaiting runner callback.
22
+ * (EXT-9 Phase B2): the {@link @gaunt-sloth/core!core/types.PendingToolInterrupt | PendingToolInterrupt} the runner suspended on, plus a `resolve`
23
+ * that hands the human's {@link @gaunt-sloth/core!core/types.ToolApprovalDecision | ToolApprovalDecision} back to the awaiting runner callback.
20
24
  * Idempotent — calling `resolve` more than once is a no-op (the first decision wins).
21
25
  *
22
- * [[EXT-150]] — **`resolve` answers back.** It returns the {@link ApprovalOutcome} the runner
26
+ * [[EXT-150]] — **`resolve` answers back.** It returns the {@link @gaunt-sloth/core!core/types.ApprovalOutcome | ApprovalOutcome} the runner
23
27
  * reports once it has recorded the answer, which is the only way this surface can learn whether an
24
28
  * `always` reached the project file: [[EXT-149]] decides that inside the runner, after the decision
25
29
  * has already been handed back. `null` means no outcome will arrive — the session ended with the
@@ -31,12 +35,17 @@ import type { MouseSubscribe } from '#src/tui/useMouse.js';
31
35
  */
32
36
  export interface PendingApproval {
33
37
  pending: PendingToolInterrupt;
34
- resolve: (decision: ToolApprovalDecision) => Promise<ApprovalOutcome | null>;
38
+ /**
39
+ * [[EXT-110]] — a {@link @gaunt-sloth/core!core/types.ToolApprovalReply | ToolApprovalReply} rather than a decision, because the session's
40
+ * teardown resolves this too and it is not a person answering. The `<App>`'s own controls only
41
+ * ever produce a decision; the teardown arm is what the approval bridge's `abortPending` sends.
42
+ */
43
+ resolve: (reply: ToolApprovalReply) => Promise<ApprovalOutcome | null>;
35
44
  }
36
45
  /**
37
46
  * [[TUI-C68]] §6.1 — one in-flight **attack halt** bridged from the runner into the mounted
38
- * `<App>`: the {@link PendingAttackHalt} the rater produced, plus a `resolve` that hands the
39
- * human's {@link AttackHaltAnswer} back to the awaiting runner callback. Idempotent, like
47
+ * `<App>`: the {@link @gaunt-sloth/core!core/types.PendingAttackHalt | PendingAttackHalt} the rater produced, plus a `resolve` that hands the
48
+ * human's {@link @gaunt-sloth/core!core/types.AttackHaltAnswer | AttackHaltAnswer} back to the awaiting runner callback. Idempotent, like
40
49
  * {@link PendingApproval} — the first answer wins.
41
50
  *
42
51
  * Deliberately NOT a {@link PendingApproval} with a special decision. The banner is a different
@@ -45,12 +54,16 @@ export interface PendingApproval {
45
54
  */
46
55
  export interface PendingAttackBanner {
47
56
  halt: PendingAttackHalt;
48
- resolve: (answer: AttackHaltAnswer) => void;
57
+ /**
58
+ * [[EXT-110]] — an {@link @gaunt-sloth/core!core/types.AttackHaltReply | AttackHaltReply} for the reason {@link PendingApproval.resolve} takes
59
+ * one: the banner is also answered by teardown, and `stop` would claim a person typed it.
60
+ */
61
+ resolve: (reply: AttackHaltReply) => void;
49
62
  }
50
63
  /**
51
64
  * The minimal agent surface the Ink `<App>` drives. Decoupling the component from
52
65
  * `GthAgentRunner` keeps the UI unit-testable with a scripted fake (a generator that
53
- * yields {@link AgentStreamEvent}s) — see the component spec.
66
+ * yields {@link @gaunt-sloth/core!core/types.AgentStreamEvent | AgentStreamEvent}s) — see the component spec.
54
67
  */
55
68
  export interface TuiAgent {
56
69
  /** Run one user turn, yielding typed events; aborts when `signal` fires (Esc). */
@@ -67,17 +80,44 @@ export interface TuiAgent {
67
80
  */
68
81
  getTerminationReason?(): GthTerminationReason | null;
69
82
  /**
70
- * Reset the agent's conversation thread so subsequent turns start from an empty model
71
- * context — wired to the TUI's `/clear`, which only clears the on-screen transcript.
72
- * Optional so the fixture agent (no real checkpointer thread) may omit it.
83
+ * [[EXT-158]] — the checklist work the turn that just ended left outstanding, or `null`.
84
+ *
85
+ * Read alongside {@link getTerminationReason} and for the same reason it is not an event: a
86
+ * value read after the stream is done is the only thing an abandoned turn can still answer.
87
+ *
88
+ * Optional, so the scripted fixture agent may omit it.
73
89
  */
74
- resetThread?(): void;
90
+ getOutstandingWork?(): GthOutstandingWork | null;
91
+ /**
92
+ * [[EXT-178]] — ask for an end-of-run recap of the turn that just ended, or `null`.
93
+ *
94
+ * The one method on this interface that may contact a model, and the only one that is awaited
95
+ * after the turn is already over. It answers `null` without contacting anything whenever the
96
+ * user's `recap` rung is `off` (the default) or the turn did not end at `completed`, so the App
97
+ * may always call it.
98
+ *
99
+ * It never continues the run — see `GthAgentRunner.requestRunRecap`, which this delegates to.
100
+ */
101
+ requestRunRecap?(reason: GthTerminationReason | null): Promise<GthRunRecap | null>;
102
+ /**
103
+ * The user asked for this conversation to be forgotten: `/clear`, which by itself only empties
104
+ * the on-screen transcript. The agent drops everything that is state of the conversation being
105
+ * left — the model's thread, so subsequent turns start from an empty model context, and
106
+ * ([[EXT-109]]) the approvals gate's capture log, which the `/debug-dump` archive and the
107
+ * Auto-mode debug tab both read live and which would otherwise still hand back the user's own
108
+ * pre-`/clear` messages.
109
+ *
110
+ * **It is named for the gesture, not for the rotation**, because the runner rotates the same
111
+ * thread once per turn on the ACP and AG-UI surfaces and must not drop the log there. Optional so
112
+ * the fixture agent (no runner, no checkpointer thread) may omit it.
113
+ */
114
+ clearConversation?(): void;
75
115
  /**
76
116
  * CFG-27 — switch the session approvals RUNG and return the posture the runner LANDED on, so
77
117
  * the App can render a state-aware notice and the status-bar badge. Wired to `/approvals
78
118
  * <rung>`. Optional so the fixture agent (no runner) may omit it.
79
119
  *
80
- * It returns the landed {@link ResolvedApprovals} rather than the requested rung so the copy
120
+ * It returns the landed {@link @gaunt-sloth/core!config/shell-policy.ResolvedApprovals | ResolvedApprovals} rather than the requested rung so the copy
81
121
  * can only ever describe the posture actually in force.
82
122
  */
83
123
  setApprovalRung?(rung: ApprovalRung): ResolvedApprovals;
@@ -204,6 +244,7 @@ export type TranscriptItem = {
204
244
  id: number;
205
245
  level: string;
206
246
  text: string;
247
+ raw?: string;
207
248
  } | {
208
249
  kind: 'notice';
209
250
  id: number;
@@ -285,11 +326,15 @@ export interface TuiAppProps {
285
326
  */
286
327
  configSummary?: string[];
287
328
  /**
288
- * GS2-7 (B20) — pre-rendered recent-session lines for `/history` and analytics lines for
289
- * `/insights`, plus a fail-soft search provider for `/search`. All built by the session module
290
- * from the local history store; omitted when no store is available (history off / DB
291
- * missing), where the commands show an "unavailable" notice.
329
+ * GS2-7 (B20) / GS2-88 — pre-rendered recent-session lines for `/history` and analytics lines
330
+ * for `/insights`, a fail-soft search provider for `/search`, and WHY there is nothing when
331
+ * there is nothing. All four come from core's one `buildHistorySlashProps`, which the plain
332
+ * readline session uses too, so neither surface can serve a subset of the other. The summaries
333
+ * are present only when `historyAvailability` is `available`; the commands explain themselves
334
+ * from that field otherwise, and never name a cause it does not carry. Omitted entirely by the
335
+ * fixture agent, which loads no config and therefore established nothing about either.
292
336
  */
337
+ historyAvailability?: HistoryAvailability;
293
338
  historySummary?: string[];
294
339
  insightsSummary?: string[];
295
340
  historySearch?: (query: string) => string[];
@@ -360,6 +405,20 @@ export interface TuiAppProps {
360
405
  * so the readline/AG-UI paths and the fixture agent (which have no such sink) simply omit it.
361
406
  */
362
407
  subscribeDebug?: (cb: (capture: TuiDebugCapture) => void) => () => void;
408
+ /**
409
+ * [[TUI-C27]] — read the approvals gate's record of this session's gated tool calls, for the
410
+ * `/debug` panel's **Auto-mode** tab.
411
+ *
412
+ * **A getter rather than a subscription, because the case the tab exists for emits nothing.** A
413
+ * call the rater approves on its first rating relays no event to any surface — the tool simply
414
+ * runs — so a push bridge would carry the refusals and negotiations and silently miss exactly the
415
+ * decision this instrumentation was filed over. The panel therefore pulls, reading the live
416
+ * `ApprovalCaptureLog` snapshot while the tab is on screen.
417
+ *
418
+ * Optional, and absent is what a surface with no approvals gate means: the fixture agent and the
419
+ * AG-UI path omit it and the tab shows its empty state rather than an empty promise.
420
+ */
421
+ readApprovalCaptures?: () => readonly ApprovalDecisionCapture[];
363
422
  /**
364
423
  * Subscribe to tool-approval requests bridged from the runner (EXT-9 Phase B2): each
365
424
  * {@link PendingApproval} carries the pending `run_shell_command` interrupt and a `resolve`
@@ -24,7 +24,7 @@ export interface MouseProviderProps {
24
24
  * Wraps the live region and dispatches clicks against it.
25
25
  *
26
26
  * A region's claimed rectangle is an offset inside the frame, and the frame starts at screen row 0
27
- * (see {@link FRAME_ORIGIN_ROW}), so a claim maps to absolute screen cells with no arithmetic and
27
+ * (see `FRAME_ORIGIN_ROW`), so a claim maps to absolute screen cells with no arithmetic and
28
28
  * nothing to keep in step as the frame reflows.
29
29
  */
30
30
  export declare function MouseProvider({ subscribe, enabled, children }: MouseProviderProps): React.JSX.Element;