@gaunt-sloth/core 2.0.0-alpha.34 → 2.0.0-alpha.36

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 (92) hide show
  1. package/dist/config/configDiscovery.d.ts +79 -0
  2. package/dist/config/configDiscovery.js +80 -0
  3. package/dist/config/configDiscovery.js.map +1 -0
  4. package/dist/config/loader.d.ts +6 -5
  5. package/dist/config/loader.js +229 -92
  6. package/dist/config/loader.js.map +1 -1
  7. package/dist/config/schema.d.ts +3 -2
  8. package/dist/config/schema.js +57 -9
  9. package/dist/config/schema.js.map +1 -1
  10. package/dist/config/shell-policy.d.ts +58 -26
  11. package/dist/config/shell-policy.js +60 -27
  12. package/dist/config/shell-policy.js.map +1 -1
  13. package/dist/config/tool-descriptions.d.ts +6 -6
  14. package/dist/config/tool-descriptions.js +7 -7
  15. package/dist/config/tool-descriptions.js.map +1 -1
  16. package/dist/config/types.d.ts +34 -31
  17. package/dist/config/types.js.map +1 -1
  18. package/dist/config.d.ts +3 -0
  19. package/dist/config.js +3 -0
  20. package/dist/config.js.map +1 -1
  21. package/dist/core/GthAbstractAgent.d.ts +11 -13
  22. package/dist/core/GthAbstractAgent.js +9 -11
  23. package/dist/core/GthAbstractAgent.js.map +1 -1
  24. package/dist/core/GthAgentRunner.d.ts +17 -33
  25. package/dist/core/GthAgentRunner.js +31 -41
  26. package/dist/core/GthAgentRunner.js.map +1 -1
  27. package/dist/core/GthLangChainAgent.js +25 -34
  28. package/dist/core/GthLangChainAgent.js.map +1 -1
  29. package/dist/core/approvals/toolAnnotationSources.d.ts +4 -4
  30. package/dist/core/approvals/toolAnnotationSources.js +8 -8
  31. package/dist/core/debugCapture.d.ts +2 -3
  32. package/dist/core/debugCapture.js +1 -2
  33. package/dist/core/debugCapture.js.map +1 -1
  34. package/dist/core/gthLeanAgentFactory.d.ts +4 -4
  35. package/dist/core/gthLeanAgentFactory.js +4 -4
  36. package/dist/core/reasoningBlocks.d.ts +7 -2
  37. package/dist/core/reasoningBlocks.js +7 -2
  38. package/dist/core/reasoningBlocks.js.map +1 -1
  39. package/dist/core/shell/ShellCommandFailedError.d.ts +3 -4
  40. package/dist/core/shell/ShellCommandFailedError.js +3 -4
  41. package/dist/core/shell/ShellCommandFailedError.js.map +1 -1
  42. package/dist/core/shell/approvalStop.d.ts +68 -29
  43. package/dist/core/shell/approvalStop.js +178 -28
  44. package/dist/core/shell/approvalStop.js.map +1 -1
  45. package/dist/core/shell/hardline.d.ts +22 -0
  46. package/dist/core/shell/hardline.js +81 -0
  47. package/dist/core/shell/hardline.js.map +1 -1
  48. package/dist/core/shell/negotiation.d.ts +81 -2
  49. package/dist/core/shell/negotiation.js +144 -11
  50. package/dist/core/shell/negotiation.js.map +1 -1
  51. package/dist/core/shell/rater.d.ts +7 -69
  52. package/dist/core/shell/rater.js +5 -24
  53. package/dist/core/shell/rater.js.map +1 -1
  54. package/dist/core/shell/raterVocabulary.d.ts +119 -0
  55. package/dist/core/shell/raterVocabulary.js +114 -0
  56. package/dist/core/shell/raterVocabulary.js.map +1 -0
  57. package/dist/core/types.d.ts +17 -3
  58. package/dist/providers/anthropic.js +12 -0
  59. package/dist/providers/anthropic.js.map +1 -1
  60. package/dist/providers/configurationPassthrough.d.ts +107 -0
  61. package/dist/providers/configurationPassthrough.js +148 -0
  62. package/dist/providers/configurationPassthrough.js.map +1 -0
  63. package/dist/providers/geminiThinking.d.ts +8 -0
  64. package/dist/providers/geminiThinking.js +33 -13
  65. package/dist/providers/geminiThinking.js.map +1 -1
  66. package/dist/providers/google-genai.js +11 -0
  67. package/dist/providers/google-genai.js.map +1 -1
  68. package/dist/providers/groq.js +12 -0
  69. package/dist/providers/groq.js.map +1 -1
  70. package/dist/providers/ollama.js +12 -0
  71. package/dist/providers/ollama.js.map +1 -1
  72. package/dist/providers/openrouter.d.ts +23 -0
  73. package/dist/providers/openrouter.js +71 -4
  74. package/dist/providers/openrouter.js.map +1 -1
  75. package/dist/providers/vertexai.js +12 -0
  76. package/dist/providers/vertexai.js.map +1 -1
  77. package/dist/providers/xai.js +20 -0
  78. package/dist/providers/xai.js.map +1 -1
  79. package/dist/runtime/conversation.d.ts +2 -2
  80. package/dist/runtime/conversation.js +19 -4
  81. package/dist/runtime/conversation.js.map +1 -1
  82. package/dist/runtime/singleShot.d.ts +2 -3
  83. package/dist/runtime/singleShot.js +22 -7
  84. package/dist/runtime/singleShot.js.map +1 -1
  85. package/dist/utils/systemPromptNotes.d.ts +17 -20
  86. package/dist/utils/systemPromptNotes.js +22 -24
  87. package/dist/utils/systemPromptNotes.js.map +1 -1
  88. package/dist/utils/untrustedText.d.ts +24 -4
  89. package/dist/utils/untrustedText.js +25 -4
  90. package/dist/utils/untrustedText.js.map +1 -1
  91. package/package.json +4 -4
  92. package/schema/gsloth-config.schema.json +0 -1
@@ -394,8 +394,7 @@ export class GthLangChainAgent extends GthAbstractAgent {
394
394
  return { messages: [promoted] };
395
395
  },
396
396
  });
397
- // EXT-21: lean-path sibling of the deep agent's GthDeepShellExitSoftening (GthDeepAgent.ts).
398
- // `exec` / `ask --write` route through this lean `createAgent` graph, whose run_* shell/dev
397
+ // EXT-21: `exec` / `ask --write` route through this `createAgent` graph, whose run_* shell/dev
399
398
  // tools (GthDevToolkit.executeCommand) THROW a ShellCommandFailedError on a non-zero exit or a
400
399
  // timeout-kill. langchain's default ToolNode would catch that throw into a ToolMessage but leave
401
400
  // it status:'success' (✓) — misreporting a failed command. Catch it here at the tool-wrap layer
@@ -468,7 +467,7 @@ export class GthLangChainAgent extends GthAbstractAgent {
468
467
  }
469
468
  },
470
469
  });
471
- // Debug-capture middleware (TUI `/debug` panel) the lean-path sibling of GthDeepAgent's.
470
+ // Debug-capture middleware (TUI `/debug` panel); the contract lives in core's debugCapture.
472
471
  // Always installed but lazy: it reads `this.debugCapture` per call, so until the TUI attaches a
473
472
  // sink it is a transparent pass-through (one extra await around the handler — the normal path
474
473
  // pays nothing). `request.messages` is the real history at call time; `handler(request)`
@@ -544,17 +543,16 @@ export class GthLangChainAgent extends GthAbstractAgent {
544
543
  // provider-unsafe steer, not a warn); HALT (opt-in) actively breaks the loop via a terminal
545
544
  // jumpTo:'end'. Default WARN-ON is applied here at the read site (resolveToolLoopGuardOptions),
546
545
  // NOT in DEFAULT_CONFIG, so the
547
- // effective-config snapshot never churns. Lean backend only (like GS2-36); the deep array is
548
- // untouched. `toolLoopGuard: false` resolves to a no-op guard (still installed at index 3 so the
546
+ // effective-config snapshot never churns.
547
+ // `toolLoopGuard: false` resolves to a no-op guard (still installed at index 3 so the
549
548
  // placement is stable).
550
549
  const toolLoopGuard = createToolLoopGuardMiddleware(resolveToolLoopGuardOptions(this.config.toolLoopGuard),
551
550
  // WARN surfaces through the same TUI-safe status channel every other agent notice uses
552
551
  // (renderer-consumed, never raw stdout) so it can't leak over the Ink frame (TUI-C31).
553
552
  (message) => statusUpdate(StatusLevel.WARNING, message));
554
- // EXT-52: gate the opt-in run_shell_command tool behind the SAME per-command approval
555
- // interrupt the deep backend has always wired (deepagents' `interruptOn` installs this very
556
- // langchain `humanInTheLoopMiddleware` see GthDeepAgent.buildDeepAgentParams). Without it,
557
- // no interrupt ever fired on the lean (default) backend, so the runner's whole approval stack
553
+ // EXT-52: gate the opt-in run_shell_command tool behind the per-command approval interrupt —
554
+ // langchain's `humanInTheLoopMiddleware`. Without it,
555
+ // no interrupt ever fires, so the runner's whole approval stack
558
556
  // (`GthAgentRunner.decideToolApproval`: sessionYolo → allow-list → judge → human callback,
559
557
  // fail-closed reject) was DEAD CODE on lean and shell commands ran unprompted. A matching tool
560
558
  // call now suspends the graph with a HITLRequest interrupt; the runner drains it via
@@ -563,9 +561,8 @@ export class GthLangChainAgent extends GthAbstractAgent {
563
561
  // identically on lean.
564
562
  //
565
563
  // The gate condition and its user-facing notices are the SHARED policy
566
- // (`resolveShellApprovalGate`, EXT-12 semantics documented there); the two backends differ only
567
- // in how they install the interrupt — directly as middleware here, via deepagents' `interruptOn`
568
- // in GthDeepAgent.
564
+ // (`resolveShellApprovalGate`, EXT-12 semantics documented there); the interrupt itself is
565
+ // installed directly as middleware here.
569
566
  const { gateShell, notice: shellGateNotice } = resolveShellApprovalGate(this.config ?? undefined, this.command);
570
567
  //
571
568
  // EXT-80: the shell is not the whole story. At `manual` and `write` every bound tool the
@@ -581,8 +578,8 @@ export class GthLangChainAgent extends GthAbstractAgent {
581
578
  // in force instead, which is where the rung has always been read — so wiring wider does not gate
582
579
  // wider: at a rated rung a non-shell call is approved there with no rating call and no prompt.
583
580
  //
584
- // Both sets come from core's shared policy, which the deep backend and the runner also call, so
585
- // no two of the three can disagree; and both read the FINAL tool array below rather than any
581
+ // Both sets come from core's shared policy, which the runner also calls, so
582
+ // the two cannot disagree; and both read the FINAL tool array below rather than any
586
583
  // static list, because a hand-written list cannot contain an MCP or custom tool, which is
587
584
  // exactly what has to escalate.
588
585
  const rung = resolveApprovals(this.config ?? undefined, this.command).rung;
@@ -639,8 +636,8 @@ export class GthLangChainAgent extends GthAbstractAgent {
639
636
  // REVERSE array order (the EXT-35 rule above). The gate's afterModel therefore executes LAST,
640
637
  // after EXT-35's repair has promoted a text-emitted `run_shell_command` into a native
641
638
  // tool_call, so a small local model that serialises the call as text is gated too (were the
642
- // gate appended last, like deepagents does on the deep path, it would run FIRST and a promoted
643
- // shell call would bypass approval entirely).
639
+ // gate appended last it would run FIRST and a promoted shell call would bypass approval
640
+ // entirely).
644
641
  const middleware = [
645
642
  shellExitSoftening,
646
643
  mcpToolErrorSoftening,
@@ -654,28 +651,22 @@ export class GthLangChainAgent extends GthAbstractAgent {
654
651
  ];
655
652
  this.headerStatus(`Loaded middleware: ${middleware.map((m) => m.name).join(', ')}`);
656
653
  // GS2-21: compose gsloth's system prompt (backstory + guidelines + per-command mode prompt +
657
- // system prompt) EXACTLY as GthDeepAgent does, so identity profiles and `.gsloth.*.md` are
658
- // honored on the lean backend too. Previously the lean agent gave the model NO system prompt
659
- // (only the deep agent composed one), so `system-prompt.md` / the guidelines never reached
660
- // the model — the robot (agent.backend: lean) behaved as if it never got its guidelines.
654
+ // system prompt), so identity profiles and `.gsloth.*.md` reach the model.
661
655
  // This is passed to createAgent as `systemPrompt`, which langchain applies as the agent's
662
656
  // static system message on every turn — NOT injected as a separate mid-conversation
663
657
  // SystemMessage (a non-first system message that Anthropic rejects). GS2-79: which mode prompt
664
658
  // a command gets is decided ONCE, in core's `readModePrompt` — 'code' the code-mode prompt,
665
659
  // 'exec' the exec-mode prompt, 'review'/'pr' the REVIEW INSTRUCTIONS, chat/api/others the chat
666
- // prompt — so this backend and the deep one cannot disagree, and a command left out of the
667
- // selection can no longer be served the chat prompt by silent default.
660
+ // prompt — so a command left out of the selection can no longer be served the chat prompt by
661
+ // silent default.
668
662
  const modePrompt = readModePrompt(this.command, this.config);
669
663
  const systemMessages = buildSystemMessages(this.config, modePrompt);
670
664
  const baseSystemPrompt = typeof systemMessages[0]?.content === 'string' ? systemMessages[0].content : undefined;
671
- // GS2-27: in `code` mode append the SHARED code-mode notes the deep backend has always carried
672
- // — the real-cwd / path-model note (EXT-13) and the OS + shell-dialect note (EXT-26). Both are
673
- // backend-agnostic (the lean backend also exposes `run_shell_command` and runs on the real-fs
674
- // cwd), so composing them here closes the deep-only drift that left a lean code session with no
675
- // cwd value and no shell-dialect guidance (e.g. on Windows). The deepagents virtual-fs-namespace
676
- // notes stay deep-only (lean never runs virtualMode). Same order the deep backend's real-path
677
- // branch uses: cwd note first, OS/shell note last. `getCurrentWorkDir()` is already read above
678
- // for the status line, so the value is free.
665
+ // GS2-27: in `code` mode append the SHARED code-mode notes the real-cwd / path-model note
666
+ // (EXT-13) and the OS + shell-dialect note (EXT-26). They are backend-agnostic (they describe
667
+ // the opt-in `run_shell_command` tool and the real-fs cwd), which is why they are composed from
668
+ // core's `systemPromptNotes` rather than inline here. Order: cwd note first, OS/shell note
669
+ // last. `getCurrentWorkDir()` is already read above for the status line, so the value is free.
679
670
  // GS2-34/EXT-83: resolve the active model identity ONCE, honouring the `injectModelContext`
680
671
  // opt-out (default ON) at this single read site. Both consumers below take this same value, so
681
672
  // the commit trailer and the model-context note can never disagree about which model is serving
@@ -690,7 +681,7 @@ export class GthLangChainAgent extends GthAbstractAgent {
690
681
  // EXT-84: the effective `filesystem` is threaded in so the note names the writing tool only
691
682
  // where that tool is registered. `this.config` is the command-merged value (getEffectiveConfig,
692
683
  // above) — the SAME value handed to the tool resolver, so the note and the registered toolset
693
- // cannot disagree. Mirrored on the deep backend.
684
+ // cannot disagree.
694
685
  const codeNotesPrompt = this.command === 'code'
695
686
  ? appendCommitCoAuthorNote(appendOsShellNote(appendCwdNote(baseSystemPrompt, getCurrentWorkDir())), this.config.commit?.coAuthor, modelIdentity, this.config.filesystem)
696
687
  : baseSystemPrompt;
@@ -700,14 +691,14 @@ export class GthLangChainAgent extends GthAbstractAgent {
700
691
  // arise in ANY mode (chat/ask/code/exec), so the identity must be visible everywhere. The
701
692
  // `injectModelContext` opt-out is applied at the single read site above; when it is off — or
702
693
  // when no model resolves — `modelIdentity` is undefined, nothing is appended, and the prompt is
703
- // exactly as before. Backend-agnostic: the deep backend composes the same note (GS2-27). GS2-6's
704
- // capability note is a deferred follow-up (bare provider:model identity only for now).
694
+ // exactly as before. GS2-6's capability note is a deferred follow-up (bare provider:model
695
+ // identity only for now).
705
696
  const modelContextPrompt = appendModelContextNote(codeNotesPrompt, modelIdentity);
706
697
  // EXT-32: inject each connected MCP server's discovery `instructions` (captured during tool
707
698
  // resolution) into the prompt — fenced + per-server-labelled as untrusted server-provided
708
699
  // context. Mode-independent: MCP tools load in every mode, so their usage guidance applies in
709
700
  // every mode (not just `code`). Empty/absent capture (or a resolver without the accessor) adds
710
- // nothing. Composed through this shared path so it reaches the lean AND deep backends alike.
701
+ // nothing. Composed through the shared path in core so any backend reaches it alike.
711
702
  // When tools are disabled, resolveTools is skipped entirely (no MCP contact), so a REUSED
712
703
  // resolver could still hold a prior run's capture — gate on toolsDisabled so no stale
713
704
  // instructions leak into a tools-dis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CAAC,CAAC,gBAAgB,CAAC;QAEvB,gGAAgG;QAChG,8FAA8F;QAC9F,6FAA6F;QAC7F,0FAA0F;QAC1F,6FAA6F;QAC7F,gGAAgG;QAChG,0FAA0F;QAC1F,0BAA0B;QAC1B,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;QAElF,4FAA4F;QAC5F,0FAA0F;QAC1F,8FAA8F;QAC9F,+FAA+F;QAC/F,qFAAqF;QACrF,0FAA0F;QAC1F,sFAAsF;QACtF,mDAAmD;QACnD,MAAM,eAAe,GAAG,aAAa;YACnC,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,wBAAwB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACzD,MAAM,YAAY,GAAG,+BAA+B,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC;QAE1F,6FAA6F;QAC7F,4CAA4C;QAC5C,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC;YACvB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG;YACtB,KAAK;YACL,UAAU;YACV,YAAY;YACZ,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC1C,CAAC,CAAC;QACH,QAAQ,CAAC,kCAAkC,CAAC,CAAC;IAC/C,CAAC;CACF"}
@@ -10,10 +10,10 @@ export type AuthoredToolAnnotations = Required<DeclaredToolAnnotations>;
10
10
  * through the trusted provenance (§4.7.1: we author these), so every value here has to be *true*
11
11
  * rather than convenient.
12
12
  *
13
- * Keyed by the registered tool name, covering both backends — gsloth's own `GthFileSystemToolkit`
14
- * and `gth_*` tools on the lean backend, deepagents' `ls`/`glob`/`grep` on the deep one because
15
- * the two sets overlap on `read_file`/`write_file`/`edit_file` and one flat table by name serves
16
- * both, exactly as `BUILT_IN_TOOL_ACCESS` does.
13
+ * Keyed by the registered tool NAME, not by owner — gsloth's own `GthFileSystemToolkit` and
14
+ * `gth_*` tools, plus the conventional `ls`/`glob`/`grep` a graph builder or MCP server may
15
+ * register — because the conventions overlap on `read_file`/`write_file`/`edit_file` and one flat
16
+ * table by name serves them all, exactly as `BUILT_IN_TOOL_ACCESS` does.
17
17
  *
18
18
  * The judgments that carry security weight:
19
19
  *
@@ -21,9 +21,9 @@
21
21
  * `createEffectiveToolAnnotationSource` resolves to the MCP fail-closed defaults — a destructive,
22
22
  * non-idempotent, open-world writer. That is why tools whose honest annotation set simply *is* the
23
23
  * fail-closed default are deliberately absent below rather than spelled out: `run_shell_command`,
24
- * the fixed dev-command tools, deepagents' `execute`, A2A agent tools and user-authored custom
25
- * tools all reach arbitrary code or the network, and writing four rows that restate the default
26
- * would add entries no behaviour could distinguish from their absence.
24
+ * the fixed dev-command tools, A2A agent tools and user-authored custom tools all reach arbitrary
25
+ * code or the network, and writing rows that restate the default would add entries no behaviour
26
+ * could distinguish from their absence.
27
27
  */
28
28
  import { TOOL_ANNOTATION_HINTS } from '#src/config/shell-policy.js';
29
29
  import { isMcpNamespacedToolName, mcpToolRegisteredName, UNRESOLVED_MCP_SERVER, } from '#src/core/approvals/mcpSubjects.js';
@@ -94,10 +94,10 @@ const SESSION_STATE_CHANGE = authored({
94
94
  * through the trusted provenance (§4.7.1: we author these), so every value here has to be *true*
95
95
  * rather than convenient.
96
96
  *
97
- * Keyed by the registered tool name, covering both backends — gsloth's own `GthFileSystemToolkit`
98
- * and `gth_*` tools on the lean backend, deepagents' `ls`/`glob`/`grep` on the deep one because
99
- * the two sets overlap on `read_file`/`write_file`/`edit_file` and one flat table by name serves
100
- * both, exactly as `BUILT_IN_TOOL_ACCESS` does.
97
+ * Keyed by the registered tool NAME, not by owner — gsloth's own `GthFileSystemToolkit` and
98
+ * `gth_*` tools, plus the conventional `ls`/`glob`/`grep` a graph builder or MCP server may
99
+ * register — because the conventions overlap on `read_file`/`write_file`/`edit_file` and one flat
100
+ * table by name serves them all, exactly as `BUILT_IN_TOOL_ACCESS` does.
101
101
  *
102
102
  * The judgments that carry security weight:
103
103
  *
@@ -132,7 +132,7 @@ export const BUILT_IN_TOOL_ANNOTATIONS = Object.freeze({
132
132
  // Reports which directories the file tools may touch. Reads configuration, changes nothing.
133
133
  list_allowed_directories: LOCAL_READ,
134
134
  gth_grep: LOCAL_READ,
135
- // ---- Local reads registered by deepagents on the deep backend. ---------------------------
135
+ // ---- Conventional local-read names a graph builder or MCP server may register. -----------
136
136
  ls: LOCAL_READ,
137
137
  glob: LOCAL_READ,
138
138
  grep: LOCAL_READ,
@@ -46,7 +46,7 @@ export interface LastModelRequest {
46
46
  *
47
47
  * A {@link DebugCapture} is an OPT-IN callback the TUI sets on a live agent after `init`
48
48
  * (on the shared {@link import('#src/core/GthAbstractAgent.js').GthAbstractAgent} base, so
49
- * both the lean and deep backends support it). When present, the agent's `wrapModelCall`
49
+ * every backend supports it). When present, the agent's `wrapModelCall`
50
50
  * middleware reports, per model call:
51
51
  *
52
52
  * - `request` — `request.messages: BaseMessage[]`, the real history sent to the model at
@@ -69,7 +69,6 @@ export interface DebugCapture {
69
69
  * Assemble the non-message request parts ({@link DebugRequestExtras}) for the `/debug`
70
70
  * panel from a `wrapModelCall` request, defensively and key-free. Never throws (the caller
71
71
  * already guards, but a debug sink must never break a run) and never dumps the raw model.
72
- * Shared by both the lean ({@link import('#src/core/GthLangChainAgent.js').GthLangChainAgent})
73
- * and deep backends so the panel behaves identically on either.
72
+ * Lives in core, beside the capture type itself, so every backend feeds the panel the same shape.
74
73
  */
75
74
  export declare function extractDebugRequestExtras(request: unknown): DebugRequestExtras | undefined;
@@ -72,8 +72,7 @@ function extractToolDefs(tools) {
72
72
  * Assemble the non-message request parts ({@link DebugRequestExtras}) for the `/debug`
73
73
  * panel from a `wrapModelCall` request, defensively and key-free. Never throws (the caller
74
74
  * already guards, but a debug sink must never break a run) and never dumps the raw model.
75
- * Shared by both the lean ({@link import('#src/core/GthLangChainAgent.js').GthLangChainAgent})
76
- * and deep backends so the panel behaves identically on either.
75
+ * Lives in core, beside the capture type itself, so every backend feeds the panel the same shape.
77
76
  */
78
77
  export function extractDebugRequestExtras(request) {
79
78
  if (!request || typeof request !== 'object')
@@ -1 +1 @@
1
- {"version":3,"file":"debugCapture.js","sourceRoot":"","sources":["../../src/core/debugCapture.ts"],"names":[],"mappings":"AAwEA;;;;;;;;GAQG;AACH,MAAM,sBAAsB,GAAG;IAC7B,OAAO;IACP,WAAW;IACX,SAAS;IACT,gBAAgB;IAChB,aAAa;IACb,MAAM;IACN,MAAM;IACN,WAAW;IACX,iBAAiB;IACjB,oBAAoB;IACpB,iBAAiB;IACjB,gBAAgB;IAChB,MAAM;IACN,UAAU;CACF,CAAC;AAEX,yFAAyF;AACzF,SAAS,kBAAkB,CAAC,KAAc;IACxC,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC1D,MAAM,GAAG,GAAG,KAAgC,CAAC;IAC7C,MAAM,GAAG,GAA4B,EAAE,CAAC;IACxC,KAAK,MAAM,GAAG,IAAI,sBAAsB,EAAE,CAAC;QACzC,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;YAAE,SAAS;QACpD,oFAAoF;QACpF,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,SAAS;QACjE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACnB,CAAC;IACD,2FAA2F;IAC3F,kFAAkF;IAClF,IAAI,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;QACvE,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,SAAS,CAAC;IAC5B,CAAC;IACD,IAAI,GAAG,CAAC,SAAS,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AuB;QACjC,YAAY;QACZ,KAAK,EAAE,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC;QACjC,WAAW,EAAE,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAC;QAC1C,UAAU,EAAE,GAAG,CAAC,UAAU;KAC3B,CAAC;IACF,kGAAkG;IAClG,MAAM,MAAM,GACV,MAAM,CAAC,YAAY,KAAK,SAAS;QACjC,MAAM,CAAC,KAAK,KAAK,SAAS;QAC1B,MAAM,CAAC,WAAW,KAAK,SAAS;QAChC,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC;IAClC,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACrC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import type { GthAgentFactory } from '#src/core/types.js';
2
2
  /**
3
3
  * The lean backend factory — a {@link GthAgentFactory} that produces a plain
4
- * {@link GthLangChainAgent} (no deepagents graph). This is identical to the built-in
5
- * default {@link GthAgentRunner} constructs when no factory is passed; exporting it lets
6
- * `@gaunt-sloth/agent`'s {@link resolveAgentFactory} pick lean vs deep from config without
7
- * duplicating the constructor call.
4
+ * {@link GthLangChainAgent}. This is identical to the built-in default {@link GthAgentRunner}
5
+ * constructs when no factory is passed; exporting it lets `@gaunt-sloth/agent`'s
6
+ * {@link resolveAgentFactory} hand the runner a backend without duplicating the constructor
7
+ * call.
8
8
  */
9
9
  export declare const gthLeanAgentFactory: GthAgentFactory;
@@ -1,10 +1,10 @@
1
1
  import { GthLangChainAgent } from '#src/core/GthLangChainAgent.js';
2
2
  /**
3
3
  * The lean backend factory — a {@link GthAgentFactory} that produces a plain
4
- * {@link GthLangChainAgent} (no deepagents graph). This is identical to the built-in
5
- * default {@link GthAgentRunner} constructs when no factory is passed; exporting it lets
6
- * `@gaunt-sloth/agent`'s {@link resolveAgentFactory} pick lean vs deep from config without
7
- * duplicating the constructor call.
4
+ * {@link GthLangChainAgent}. This is identical to the built-in default {@link GthAgentRunner}
5
+ * constructs when no factory is passed; exporting it lets `@gaunt-sloth/agent`'s
6
+ * {@link resolveAgentFactory} hand the runner a backend without duplicating the constructor
7
+ * call.
8
8
  */
9
9
  export const gthLeanAgentFactory = (statusUpdate, resolvers) => new GthLangChainAgent(statusUpdate, resolvers);
10
10
  //# sourceMappingURL=gthLeanAgentFactory.js.map
@@ -54,7 +54,12 @@ export declare function answerTextOf(content: unknown): string;
54
54
  * path). Returns the INPUT REFERENCE unchanged whenever nothing matched, so every other provider's
55
55
  * content object is untouched and identity comparisons still hold.
56
56
  *
57
- * Only the rendering path strips: the message kept in graph state is left intact, so the thought
58
- * parts (and any `thoughtSignature` riding with them) still replay to the provider as history.
57
+ * A pure content transform with no opinion about graph state what a caller does with the result is
58
+ * the caller's argument to make. Every caller in this package only READS the result rendering it,
59
+ * or pulling a refusal's explanation out of it — so the message kept in state stays whole and its
60
+ * thought parts (and any `thoughtSignature` riding with them) still replay to the provider as
61
+ * history. The one caller that rewrites state instead is the subagent thought
62
+ * redaction in `@gaunt-sloth/agent`, which strips a FINISHED subagent's own messages; why that costs
63
+ * nothing is argued there.
59
64
  */
60
65
  export declare function stripReasoningBlocks(content: unknown): unknown;
@@ -86,8 +86,13 @@ export function answerTextOf(content) {
86
86
  * path). Returns the INPUT REFERENCE unchanged whenever nothing matched, so every other provider's
87
87
  * content object is untouched and identity comparisons still hold.
88
88
  *
89
- * Only the rendering path strips: the message kept in graph state is left intact, so the thought
90
- * parts (and any `thoughtSignature` riding with them) still replay to the provider as history.
89
+ * A pure content transform with no opinion about graph state what a caller does with the result is
90
+ * the caller's argument to make. Every caller in this package only READS the result rendering it,
91
+ * or pulling a refusal's explanation out of it — so the message kept in state stays whole and its
92
+ * thought parts (and any `thoughtSignature` riding with them) still replay to the provider as
93
+ * history. The one caller that rewrites state instead is the subagent thought
94
+ * redaction in `@gaunt-sloth/agent`, which strips a FINISHED subagent's own messages; why that costs
95
+ * nothing is argued there.
91
96
  */
92
97
  export function stripReasoningBlocks(content) {
93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CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9D,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,SAAS;QAChC,IAAI,uBAAuB,CAAC,KAAK,CAAC,EAAE,CAAC;YACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7C,CAAC;aAAM,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,OAAO,uBAAuB,CAAC,OAAO,CAAC;SACpC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC;SAC9C,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;SAC9B,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAgB;IACnD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAC5C,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,OAAO,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;AACzD,CAAC"}
@@ -6,10 +6,9 @@
6
6
  * body so a softening middleware can hand the model the exact observation it saw before — the
7
7
  * only change being that the tool result's status flips to `'error'` (→ `isError` → the ✗ glyph).
8
8
  *
9
- * Canonical home is **core** so BOTH agents can recognise a shell failure without violating the
10
- * `agent → core` dependency direction:
11
- * - the deep agent (`code` mode, `@gaunt-sloth/agent` `GthDeepShellExitSoftening`) and
12
- * - the lean agent (`exec` / `ask --write`, core `GthLangChainAgent` `GthLeanShellExitSoftening`).
9
+ * Canonical home is **core** so any agent can recognise a shell failure without violating the
10
+ * `agent → core` dependency direction — today the lean agent (`exec` / `ask --write`, core
11
+ * `GthLangChainAgent` `GthLeanShellExitSoftening`).
13
12
  *
14
13
  * The throw site (`GthDevToolkit.executeCommand`) lives in the `agent` package and re-exports this
15
14
  * class, so its `throw new ShellCommandFailedError(...)` is one and the same type both agents catch.
@@ -6,10 +6,9 @@
6
6
  * body so a softening middleware can hand the model the exact observation it saw before — the
7
7
  * only change being that the tool result's status flips to `'error'` (→ `isError` → the ✗ glyph).
8
8
  *
9
- * Canonical home is **core** so BOTH agents can recognise a shell failure without violating the
10
- * `agent → core` dependency direction:
11
- * - the deep agent (`code` mode, `@gaunt-sloth/agent` `GthDeepShellExitSoftening`) and
12
- * - the lean agent (`exec` / `ask --write`, core `GthLangChainAgent` `GthLeanShellExitSoftening`).
9
+ * Canonical home is **core** so any agent can recognise a shell failure without violating the
10
+ * `agent → core` dependency direction — today the lean agent (`exec` / `ask --write`, core
11
+ * `GthLangChainAgent` `GthLeanShellExitSoftening`).
13
12
  *
14
13
  * The throw site (`GthDevToolkit.executeCommand`) lives in the `agent` package and re-exports this
15
14
  * class, so its `throw new ShellCommandFailedError(...)` is one and the same type both agents catch.
@@ -1 +1 @@
1
- {"version":3,"file":"ShellCommandFailedError.js","sourceRoot":"","sources":["../../../src/core/shell/ShellCommandFailedError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAChD,iGAAiG;IACxF,MAAM,CAAS;IACxB,oGAAoG;IAC3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,MAAM,CAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAClC,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,yBAAyB,CAAC,CAAU;IAClD,IAAI,CAAC,YAAY,uBAAuB;QAAE,OAAO,IAAI,CAAC;IACtD,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ;QACrB,CAAC,KAAK,IAAI;QACT,CAAwB,CAAC,IAAI,KAAK,yBAAyB;QAC5D,OAAQ,CAA0B,CAAC,MAAM,KAAK,QAAQ;QACtD,OAAQ,CAA2B,CAAC,OAAO,KAAK,QAAQ;QACxD,OAAQ,CAA4B,CAAC,QAAQ,KAAK,QAAQ,CAC3D,CAAC;AACJ,CAAC"}
@@ -1,49 +1,88 @@
1
1
  /**
2
- * @module core/shell/approvalStop
2
+ * One piece of a stop message, tagged with who wrote it.
3
3
  *
4
- * CFG-27the two ways the approvals gate **ends a run** rather than answering a tool call.
5
- * Both are thrown from `GthAgentRunner.decideToolApproval`, both carry the command and the reason
6
- * a person needs to see, and both are re-thrown UNCHANGED by `processMessages` (which otherwise
7
- * wraps failures as `Agent processing failed: …`) so the explanation reaches the user intact.
4
+ * - `own` this module's own sentence. Nothing outside it can influence the text, so a surface
5
+ * may paint it as it is and let the terminal wrap it.
6
+ * - `command` the command the agent proposed. Framed with the site extraction, because its
7
+ * composition boundaries and substitutions are the decision-relevant positions in it.
8
+ * - `value` — one untrusted single value (the rater's outcome or reason, the matched
9
+ * `approvals.escalate` entry). Framed as prose; there are no sites to point at.
10
+ * - `block` — an untrusted block whose LINE STRUCTURE is a renderer's, not the model's: the §5
11
+ * negotiation transcript, whose rows `core/shell/negotiation` builds and whose leaves it has
12
+ * already collapsed to one line each. Its breaks survive into the message where a `value`'s
13
+ * would be escaped, because they are the thing that makes it readable at all.
8
14
  *
9
- * They are errors rather than {@link ../types.js ToolApprovalDecision}s on purpose. A decision is
10
- * something the model observes as a `ToolMessage` and can respond to; these two are precisely the
11
- * cases where the spec says the model gets no move at all:
15
+ * **A `block` is still neutralised line by line here, and that is deliberate defence in depth.**
16
+ * Its one production producer (`renderNegotiationTranscript`) has already cleaned every leaf, so
17
+ * on today's paths this arm changes nothing but these constructors are public, and a caller
18
+ * handing one a raw multi-line string must not be the thing that decides whether a cursor can
19
+ * move. `approvalStop.spec.ts` builds exactly that string so the arm is falsifiable rather than
20
+ * merely reassuring.
12
21
  *
13
- * - **{@link AttackHaltError}** (§4.2) an `attack` outcome *halts the run*. "A halt ends the
14
- * agent loop. It is not a rejection the model can respond to, and no rung except `bypass` can
15
- * turn it into anything else."
16
- * - **{@link NonInteractiveEscalationError}** (§6.2) where no human can answer, *every*
17
- * escalation is an immediate non-zero exit carrying the command, the rating and its reason.
18
- * There is no prompt, no waiting, and never a timeout into approval. Teams that need specific
19
- * commands to run unattended declare them in `approvals.allow` (§3), which is consulted before
20
- * the rater and therefore never escalates.
22
+ * **The §5.4 VOICE distinction is deliberately not carried here**, and the trade is worth stating
23
+ * because `negotiation.ts` documents voice preservation as a rule: `renderNegotiationRows` tags
24
+ * each row `chrome`/`agent`/`rater` so a surface can colour the rater's turns apart from the
25
+ * agent's. A stop renders the transcript as one undifferentiated untrusted block instead. Framing
26
+ * a mixed-trust block wholly as untrusted is the safe direction (nothing in it is promoted to the
27
+ * gate's own voice), the row prefixes still name the speaker in text, and an `Error` carries no
28
+ * colour to any of the non-terminal consumers anyway. Colouring by voice here would mean
29
+ * re-deriving the tags from a string that no longer has them.
30
+ */
31
+ export type ApprovalStopPart = {
32
+ kind: 'own';
33
+ text: string;
34
+ } | {
35
+ kind: 'command';
36
+ label: string;
37
+ text: string;
38
+ } | {
39
+ kind: 'value';
40
+ label: string;
41
+ text: string;
42
+ } | {
43
+ kind: 'block';
44
+ text: string;
45
+ };
46
+ /**
47
+ * The stop as terminal rows, for a surface that paints lines rather than components.
21
48
  *
22
- * Exit code: neither class sets one. The single-shot runtime (`runSingleShot`) already reports a
23
- * thrown run as `ok: false`, and each command entry point turns that into `setExitCode(1)` — so
24
- * "immediate non-zero exit carrying the explanation" is what a caller already gets, without a new
25
- * exit path that could diverge from the existing one.
49
+ * Every row is painted **verbatim, one row per line, and never re-wrapped** that is the
50
+ * condition `core/shell/framing` states its column-0 guarantee over, and a caller that joins these
51
+ * and hands them to something that wraps has undone the whole point.
52
+ *
53
+ * `columns` is what the surface reports (`stdout.columns`), not a frame width: it is resolved
54
+ * through {@link frameWidthFor} here so the plain surfaces, the Ink TUI and the approval dialog
55
+ * cannot come to disagree about how much of a command a human was shown. When it is below core's
56
+ * floor the frame is wider than the terminal and the guarantee lapses — {@link narrowTerminalNotice}
57
+ * leads the block in that case, so it lapses out loud.
26
58
  */
59
+ export declare function approvalStopRows(parts: readonly ApprovalStopPart[], options?: {
60
+ columns?: number;
61
+ }): string[];
27
62
  /**
28
63
  * Base class for the two run-ending approvals outcomes, so a caller that wants to present them as
29
- * an ending rather than a crash can catch both with one `instanceof`. Every surface shows the
30
- * message as-is, which is already the whole explanation.
64
+ * an ending rather than a crash can catch both with one `instanceof`.
65
+ *
66
+ * A surface that can frame should render {@link parts} (see {@link approvalStopRows}); one that
67
+ * cannot shows {@link message}, which is already neutralised and is already the whole explanation.
31
68
  */
32
69
  export declare abstract class ApprovalStopError extends Error {
33
- /** The command that ended the run. */
70
+ /** The command that ended the run, exactly as the agent proposed it. */
34
71
  readonly command: string;
35
- protected constructor(message: string, command: string);
72
+ /** The message's pieces, tagged with who wrote each — see {@link ApprovalStopPart}. */
73
+ readonly parts: readonly ApprovalStopPart[];
74
+ protected constructor(parts: readonly ApprovalStopPart[], command: string);
36
75
  }
37
76
  /**
38
77
  * §4.2 — an `attack` outcome: the command's own **structure** evidenced compromise (§4.1.1 —
39
78
  * credential targeting, privilege escalation, persistence, deception, obfuscation). Ends the agent
40
79
  * loop; the model is told nothing and offered nothing.
41
80
  *
42
- * **This is what reaches a surface that cannot ask.** An interactive surface is offered §6.1's red
43
- * banner first — `GthAgentRunner.setAttackHaltCallback`, where typing `run anyway` runs this one
44
- * command and everything else stops the run — and this error is thrown when no banner is wired, or
45
- * when the banner is answered with anything but that phrase. A non-interactive session wires
46
- * nothing and so gets this message directly (§6.2).
81
+ * **This is what reaches a surface that cannot ask.** An interactive surface is offered [[TUI-C68]]
82
+ * §6.1's red banner first — `GthAgentRunner.setAttackHaltCallback`, where typing `run anyway` runs
83
+ * this one command and everything else stops the run — and this error is thrown when no banner is
84
+ * wired, or when the banner is answered with anything but that phrase. A non-interactive session
85
+ * wires nothing and so gets this message directly (§6.2).
47
86
  *
48
87
  * The recovery this message names is deliberately the **allow-list**, not `bypass`. §4.2 makes
49
88
  * `approvals.allow` the supported way to run such a command unattended (it is consulted before the