@tangle-network/agent-runtime 0.338.0 → 0.339.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 (140) hide show
  1. package/dist/{activation-CsbNax2X.d.ts → activation-CJIIl_Ey.d.ts} +4 -24
  2. package/dist/{activation-kbkAuSmY.js → activation-CVSFxis9.js} +5 -18
  3. package/dist/{activation-kbkAuSmY.js.map → activation-CVSFxis9.js.map} +1 -1
  4. package/dist/agent.d.ts +4 -4
  5. package/dist/agent.js +3 -3
  6. package/dist/{bundle-DM60AI2B.js → bundle-DVOhBTic.js} +2 -2
  7. package/dist/{bundle-DM60AI2B.js.map → bundle-DVOhBTic.js.map} +1 -1
  8. package/dist/candidate-execution/index.d.ts +4 -63
  9. package/dist/candidate-execution/index.js +6 -145
  10. package/dist/candidate-execution/index.js.map +1 -1
  11. package/dist/{delegate-Se1YZKMb.js → delegate-CCWE_AkU.js} +2 -2
  12. package/dist/{delegate-Se1YZKMb.js.map → delegate-CCWE_AkU.js.map} +1 -1
  13. package/dist/{driver-control-acknowledgers-T2a1Ouay.js → driver-control-acknowledgers-C53ggdJ6.js} +12 -8
  14. package/dist/driver-control-acknowledgers-C53ggdJ6.js.map +1 -0
  15. package/dist/{durable-file-B_eJr6Mb.js → durable-file-gNI9ILAn.js} +1 -3
  16. package/dist/durable-file-gNI9ILAn.js.map +1 -0
  17. package/dist/durable.d.ts +3 -35
  18. package/dist/durable.js +10 -10
  19. package/dist/durable.js.map +1 -1
  20. package/dist/{graph-CY0wH838.js → graph-CI9JXKqO.js} +4 -4
  21. package/dist/graph-CI9JXKqO.js.map +1 -0
  22. package/dist/{graph-registry-By0tUj4S.js → graph-registry-BnO64cn8.js} +3 -3
  23. package/dist/{graph-registry-By0tUj4S.js.map → graph-registry-BnO64cn8.js.map} +1 -1
  24. package/dist/{improve-CWGBT13K.js → improve-BOXTLWJ3.js} +8 -35
  25. package/dist/improve-BOXTLWJ3.js.map +1 -0
  26. package/dist/{improvement-adapter-D5gwwoXQ.d.ts → improvement-adapter-HUt_-cWA.d.ts} +2 -20
  27. package/dist/index.d.ts +9 -206
  28. package/dist/index.js +91 -302
  29. package/dist/index.js.map +1 -1
  30. package/dist/intelligence.d.ts +10 -142
  31. package/dist/intelligence.js +7 -81
  32. package/dist/intelligence.js.map +1 -1
  33. package/dist/{jsonl-file-DBv31uPi.js → jsonl-file-C9Kde_0Z.js} +2 -2
  34. package/dist/{jsonl-file-DBv31uPi.js.map → jsonl-file-C9Kde_0Z.js.map} +1 -1
  35. package/dist/kernel.d.ts +4 -3
  36. package/dist/kernel.js +12 -14
  37. package/dist/loop-runner-CWzG1bH4.d.ts +32 -0
  38. package/dist/loop-runner-bin.d.ts +32 -2
  39. package/dist/loop-runner-bin.js +93 -1
  40. package/dist/loop-runner-bin.js.map +1 -0
  41. package/dist/loop-runner-pmPIHFVY.js +59 -0
  42. package/dist/loop-runner-pmPIHFVY.js.map +1 -0
  43. package/dist/mcp/bin.js +3 -3
  44. package/dist/mcp/index.d.ts +99 -418
  45. package/dist/mcp/index.js +121 -203
  46. package/dist/mcp/index.js.map +1 -1
  47. package/dist/mcp/memory-bin.js +231 -1
  48. package/dist/mcp/memory-bin.js.map +1 -1
  49. package/dist/model-policy-CyCUwHed.js.map +1 -1
  50. package/dist/placement.d.ts +2 -9
  51. package/dist/placement.js +1 -1
  52. package/dist/placement.js.map +1 -1
  53. package/dist/platform.d.ts +188 -1
  54. package/dist/platform.js +129 -1
  55. package/dist/platform.js.map +1 -1
  56. package/dist/{prepare-Bt0IouPq.js → prepare-bXkvPMJA.js} +8 -160
  57. package/dist/prepare-bXkvPMJA.js.map +1 -0
  58. package/dist/{profile-Do-5xO_D.js → profile-Dpei_Sq0.js} +2 -2
  59. package/dist/profile-Dpei_Sq0.js.map +1 -0
  60. package/dist/{profile-materialization-BnoEf1co.d.ts → profile-materialization-B1wm2SPT.d.ts} +3 -5
  61. package/dist/profiles.d.ts +2 -2
  62. package/dist/profiles.js +3 -40
  63. package/dist/profiles.js.map +1 -1
  64. package/dist/{protected-model-port-DGxQ8_YM.d.ts → protected-model-port-BGgpy2r9.d.ts} +3 -29
  65. package/dist/protected-redaction-DFCeo4vg.js.map +1 -1
  66. package/dist/{provision-supervisor-0jMufp4h.js → provision-supervisor-CJ6Zz6dz.js} +6 -6
  67. package/dist/{provision-supervisor-0jMufp4h.js.map → provision-supervisor-CJ6Zz6dz.js.map} +1 -1
  68. package/dist/{run-cancellation-BoW5Sg9Y.js → run-cancellation-C9oL62sW.js} +3 -7
  69. package/dist/{run-cancellation-BoW5Sg9Y.js.map → run-cancellation-C9oL62sW.js.map} +1 -1
  70. package/dist/{runtime-D37zRSs7.js → runtime-B2fjL9Oi.js} +2531 -2889
  71. package/dist/runtime-B2fjL9Oi.js.map +1 -0
  72. package/dist/{runtime-hooks-Bj6wJHlH.d.ts → runtime-hooks-nsqxSUFL.d.ts} +2 -6
  73. package/dist/{sandbox-profile-compat-xSoVtdWw.js → sandbox-profile-compat-BzVBFqrz.js} +2 -4
  74. package/dist/sandbox-profile-compat-BzVBFqrz.js.map +1 -0
  75. package/dist/{search-executor-DmgUm5p7.js → search-executor-zMumiak_.js} +3 -3
  76. package/dist/search-executor-zMumiak_.js.map +1 -0
  77. package/dist/{server-DQHJszfk.js → server-_4voDNrl.js} +362 -67
  78. package/dist/server-_4voDNrl.js.map +1 -0
  79. package/dist/{structural-rollout-DAvIE8mw.js → structural-rollout-DpLCXzaL.js} +80 -80
  80. package/dist/structural-rollout-DpLCXzaL.js.map +1 -0
  81. package/dist/{substrate-B0TYNrXn.js → substrate-CGDFTSRh.js} +2 -9
  82. package/dist/substrate-CGDFTSRh.js.map +1 -0
  83. package/dist/{supervise-WuPAwfPh.js → supervise-qAwXmPtD.js} +10 -57
  84. package/dist/supervise-qAwXmPtD.js.map +1 -0
  85. package/dist/{supervisor-CPG1I9UN.js → supervisor-DHrUJhEZ.js} +179 -236
  86. package/dist/supervisor-DHrUJhEZ.js.map +1 -0
  87. package/dist/testing.d.ts +2 -2
  88. package/dist/testing.js +13 -13
  89. package/dist/testing.js.map +1 -1
  90. package/dist/tool-loop.d.ts +1 -1
  91. package/dist/{tool-server-Dqer2M4_.js → tool-server-XV4aJwoQ.js} +2 -2
  92. package/dist/tool-server-XV4aJwoQ.js.map +1 -0
  93. package/dist/top-snapshot-CbZE1JsU.js +502 -0
  94. package/dist/top-snapshot-CbZE1JsU.js.map +1 -0
  95. package/dist/tui/bin.js +711 -1
  96. package/dist/tui/bin.js.map +1 -1
  97. package/dist/tui/index.d.ts +2 -70
  98. package/dist/tui/index.js +3 -3
  99. package/dist/{types-CrNWif8-.d.ts → types-CaOXqRTq.d.ts} +713 -2096
  100. package/dist/workspace-store/index.d.ts +2 -27
  101. package/dist/workspace-store/index.js +2 -2
  102. package/dist/workspace-store/index.js.map +1 -1
  103. package/dist/{workspace-streams-BZZds1Fw.d.ts → workspace-streams-BiS4ABah.d.ts} +3 -18
  104. package/package.json +1 -1
  105. package/skills/agent-graphs/references/authoring.md +3 -2
  106. package/dist/coder-yhVWbdWc.js +0 -40
  107. package/dist/coder-yhVWbdWc.js.map +0 -1
  108. package/dist/delegation-status-CF4D0NZ_.js +0 -358
  109. package/dist/delegation-status-CF4D0NZ_.js.map +0 -1
  110. package/dist/driver-control-acknowledgers-T2a1Ouay.js.map +0 -1
  111. package/dist/durable-file-B_eJr6Mb.js.map +0 -1
  112. package/dist/graph-CY0wH838.js.map +0 -1
  113. package/dist/improve-CWGBT13K.js.map +0 -1
  114. package/dist/integrations-6xttbPi9.d.ts +0 -190
  115. package/dist/integrations-dFi-ALk7.js +0 -132
  116. package/dist/integrations-dFi-ALk7.js.map +0 -1
  117. package/dist/kb-gate-C8z2juK8.d.ts +0 -80
  118. package/dist/kb-gate-DpaSwXVx.js +0 -80
  119. package/dist/kb-gate-DpaSwXVx.js.map +0 -1
  120. package/dist/loop-runner-bin-CFnrAHpl.d.ts +0 -164
  121. package/dist/loop-runner-bin-CdPlhy9g.js +0 -246
  122. package/dist/loop-runner-bin-CdPlhy9g.js.map +0 -1
  123. package/dist/memory-server-DXQ8IxGR.js +0 -234
  124. package/dist/memory-server-DXQ8IxGR.js.map +0 -1
  125. package/dist/openai-tools-DoQ32vpe.js +0 -44
  126. package/dist/openai-tools-DoQ32vpe.js.map +0 -1
  127. package/dist/openai-tools-zh2I_uD7.d.ts +0 -24
  128. package/dist/prepare-Bt0IouPq.js.map +0 -1
  129. package/dist/profile-Do-5xO_D.js.map +0 -1
  130. package/dist/runtime-D37zRSs7.js.map +0 -1
  131. package/dist/sandbox-profile-compat-xSoVtdWw.js.map +0 -1
  132. package/dist/search-executor-DmgUm5p7.js.map +0 -1
  133. package/dist/server-DQHJszfk.js.map +0 -1
  134. package/dist/structural-rollout-DAvIE8mw.js.map +0 -1
  135. package/dist/substrate-B0TYNrXn.js.map +0 -1
  136. package/dist/supervise-WuPAwfPh.js.map +0 -1
  137. package/dist/supervisor-CPG1I9UN.js.map +0 -1
  138. package/dist/tool-server-Dqer2M4_.js.map +0 -1
  139. package/dist/top-app-C55Wa7uy.js +0 -1214
  140. package/dist/top-app-C55Wa7uy.js.map +0 -1
@@ -1,29 +1,82 @@
1
- import { $S as analystToolGroupNames, $_ as DelegationHistoryEntry, $b as CreateWorktreeOptions, $g as CoderDelegate, $m as ResolveSpawnResourcePathsResult, $x as DownMessageAuthorizationInput, AS as McpTransport, A_ as DelegationResumeDriver, Av as createPropagatingTraceEmitter, BS as ANALYST_DEFINITION_BOUNDS, B_ as DelegateCodeResult, Bv as buildDelegationTraceSpans, Bx as QuestionEscalationOutcome, C_ as detachedTurnEvents, Ct as GraphSubtasks, Cv as ResearchSource, Cx as LeadMessage, DS as JsonRpcResponse, D_ as DelegationArgs, Dx as WorkerWatchOptions, ES as JsonRpcMessage, E_ as runDetachedTurn, Et as SettledWorker, Ex as ToolOutcomeEvent, F_ as SubmitInput, Fv as DELEGATION_TRACE_MAX_BYTES, G_ as DelegateResearchResult, Gv as DelegationStateCorruptError, Gx as QuestionPolicy, HS as AnalystDefinitionIssue, H_ as DelegateFeedbackResult, Hv as composeLoopTraceEmitters, Hx as QuestionEscalationTarget, I_ as SubmitOutput, Iv as DELEGATION_TRACE_MAX_SPANS, Ix as ChildQuestionInbox, JS as AnalystToolGroupName, J_ as DelegateUiAuditResult, Jv as FileDelegationStoreOptions, Jx as questionEscalationTargets, KS as AnalystRegistry, K_ as DelegateUiAuditArgs, Kv as DelegationStore, Kx as QuestionRecord, L_ as hashIdempotencyInput, Lv as DelegationTraceCaps, Lx as EscalateQuestion, M_ as DelegationRunContext, Mt as WorkerSpawnContext, Mv as readTraceContextFromEnv, N_ as DelegationTaskQueue, Nv as traceContextToEnv, OS as McpToolAnnotations, O_ as DelegationRecord, P_ as DelegationTaskQueueOptions, Pv as CappedDelegationTrace, QS as DefinedAnalystRecord, Q_ as DelegationHistoryArgs, Qg as eventToSnapshot, R_ as DelegateCodeArgs, Rv as DelegationTraceCollector, Rx as Question, S_ as createDetachedTurnResumeDriver, St as GraphSubtaskPreparation, Sx as EventAcknowledgement, T_ as parseDetachedSessionRef, Tt as PeerAuditAccess, Tx as ManagerWake, US as AnalystFindingEvent, U_ as DelegateResearchArgs, Uv as createDelegationTraceCollector, Ux as QuestionLevel, VS as AnalystAssignmentRecord, V_ as DelegateFeedbackArgs, Vv as capDelegationTrace, Vx as QuestionEscalationRecord, WS as AnalystKind, W_ as DelegateResearchConfig, Wv as DelegationPersistenceError, Wx as QuestionOption, XS as AuthoredAnalystDefinition, X_ as DelegationError, Xg as FeedbackStore, Xv as CoderOutput, Xx as AuthorizedDownMessage, Y_ as DelegateUiAuditRoute, Yg as FeedbackEvent, Yv as InMemoryDelegationStore, Yx as AuthorizeDownMessage, ZS as AuthoredAnalystLimits, Z_ as DelegationFeedbackSnapshot, Zg as InMemoryFeedbackStore, Zx as ContinuationInstruction, __ as DetachedTurn, _h as DelegateHandlerOptions, _x as CodexTokenUsage, a_ as SettleDetachedCoderTurnOptions, ah as environmentReader, av as DelegationStatusArgs, ax as captureWorktreeDiff, b_ as DriveTurnTick, bh as validateDelegateArgs, bt as CoordinationTools, bx as AwaitWakeInput, c_ as detachedSessionDelegate, ch as McpServer, cv as FeedbackRefersTo, cx as LocalHarnessResult, d_ as FleetHandle, dh as createMcpServer, dv as UiAuditorDelegationOutput, dx as CodexExecutionEvidence, eS as DownMessageDeliveryAttempt, e_ as CoderReview, eh as ResolvedSpawnResourcePath, ev as DelegationHistoryResult, ex as DiffOptions, f_ as FleetWorkspaceExecutorOptions, fh as DELEGATE_DESCRIPTION, fv as delegationProfiles, fx as DEFAULT_LOCAL_HARNESS, g_ as DetachedSessionRefParts, gh as DelegateError, gx as localHarnessExecutable, h_ as createSiblingSandboxExecutor, hh as DelegateArgs, hx as harnessSupportsReasoningEffort, iS as downMessageRefusalReasons, i_ as DetachedWinnerSelection, ih as SpawnResourceReader, iv as DelegationStatus, ix as WorktreeHandle, jT as LoopSandboxPlacement, j_ as DelegationResumeTick, jv as mergeTraceEnv, kS as McpToolDescriptor, k_ as DelegationResumeContext, kv as TraceContext, l_ as settleDetachedCoderTurn, lh as McpServerOptions, lv as ResearchOutputShape, lx as RunLocalHarnessOptions, m_ as createFleetWorkspaceExecutor, mh as DELEGATE_TOOL_NAME, mx as LocalHarness, nC as parseAuthoredAnalystDefinition, nS as DownMessageEvent, n_ as DelegateRunCtx, nh as SpawnResourceBytes, nv as DelegationProgress, nx as GitRunner, o_ as UiAuditorDelegate, oh as hostDirectoryReader, ov as DelegationStatusResult, ox as createWorktree, p_ as SiblingSandboxExecutorOptions, ph as DELEGATE_INPUT_SCHEMA, px as LOCAL_HARNESSES, qS as AnalystRunContext, q_ as DelegateUiAuditConfig, qv as FileDelegationStore, qx as QuestionUrgency, r_ as DetachedSessionDelegateOptions, rh as SpawnResourceRead, rv as DelegationResultPayload, rx as RemoveWorktreeOptions, s_ as coderTaskFromArgs, sh as resolveSpawnResourcePaths, sv as FeedbackRating, sx as removeWorktree, tS as DownMessageDeliveryOutcome, t_ as CoderReviewer, th as SPAWN_RESOURCE_PATH_MAX_BYTES, tv as DelegationProfile, tx as DiffResult, u_ as DelegationExecutor, uh as createInProcessTransport, uv as UiAuditLensFilter, ux as runLocalHarness, v_ as DetachedTurnResumeDriverOptions, vh as DelegateResult, vv as UiLens, vx as parseCodexTokenUsage, w_ as formatDetachedSessionRef, wt as MakeWorkerAgent, wx as ManagerReentryState, x_ as RunDetachedTurnOptions, xt as CoordinationToolsOptions, xx as CoordinationEvent, y_ as DriveTurnCapableBox, yh as createDelegateHandler, yx as CodexExecutionPolicy, z_ as DelegateCodeConfig, zv as DelegationTraceSpan, zx as QuestionDecision } from "../types-CrNWif8-.js";
2
- import { a as KbGateResult, i as FactJudgeVerdict, n as FactCandidate, o as createKbGate, r as FactJudge, t as CreateKbGateOptions } from "../kb-gate-C8z2juK8.js";
3
- import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "../openai-tools-zh2I_uD7.js";
4
- import { l as PlatformConnection } from "../integrations-6xttbPi9.js";
5
- import { AgentProfileMcpServer, HarnessType } from "@tangle-network/agent-interface";
6
- //#region src/mcp/codex-diagnostics.d.ts
7
- /** Bounded, credential-redacted process context attached when reproducible Codex output fails
8
- * validation. The process still fails closed; this only preserves enough evidence to diagnose it. */
9
- interface CodexExecutionFailureDiagnostic {
10
- exitCode: number | null;
11
- killedBySignal: NodeJS.Signals | null;
12
- timedOut: boolean;
13
- aborted?: boolean;
14
- durationMs: number;
15
- stdout: string;
16
- stderr: string;
17
- stdoutTruncated: boolean;
18
- stderrTruncated: boolean;
1
+ import { $m as CoderReviewer, Ah as DelegateUiAuditRoute, Bh as FeedbackRefersTo, Ch as SubmitOutput, Cp as McpServer, Dh as DelegateResearchConfig, Dp as DelegateHandlerOptions, Eh as DelegateResearchArgs, Ep as DelegateError, Fh as DelegationProgress, Fy as LocalHarness, Hh as UiAuditLensFilter, Ih as DelegationResultPayload, Lh as DelegationStatus, Mh as DelegationFeedbackSnapshot, My as RunLocalHarnessOptions, Nh as DelegationHistoryArgs, Ny as runLocalHarness, Oh as DelegateUiAuditArgs, Op as DelegateResult, Ov as QuestionUrgency, Ph as DelegationHistoryEntry, Py as LOCAL_HARNESSES, Qm as CoderReview, Rh as DelegationStatusResult, Sh as SubmitInput, Sp as resolveSpawnResourcePaths, St as SpawnRefusalCause, Th as DelegateCodeConfig, Tp as createMcpServer, Tv as QuestionOption, Uh as UiAuditorDelegationOutput, Vh as ResearchOutputShape, Xm as FeedbackStore, Ym as FeedbackEvent, Zm as CoderDelegate, _h as DelegationResumeDriver, _p as ResolvedSpawnResourcePath, ag as composeLoopTraceEmitters, ah as DelegationExecutor, bh as DelegationTaskQueue, bp as SpawnResourceReader, cg as FileDelegationStore, ch as SiblingSandboxExecutorOptions, cy as McpToolAnnotations, dg as CoderTask, dh as DetachedTurn, dt as CoordinationStats, eh as DelegateRunCtx, ev as GitRunner, fh as RunDetachedTurnOptions, ft as CoordinationTools, gh as DelegationResumeContext, gp as ResolveSpawnResourcePathsResult, gt as MakeWorkerAgent, hh as DelegationRecord, ig as DelegationTraceSpan, ih as detachedSessionDelegate, jh as DelegationError, kh as DelegateUiAuditConfig, kp as createDelegateHandler, lg as FileDelegationStoreOptions, lh as createFleetWorkspaceExecutor, ly as McpToolDescriptor, mh as DelegationArgs, ng as createPropagatingTraceEmitter, nh as DetachedWinnerSelection, np as CheckRead, nv as CoordinationEvent, og as DelegationPersistenceError, oh as FleetHandle, ov as ManagerWake, oy as JsonRpcMessage, ph as runDetachedTurn, pt as CoordinationToolsOptions, rg as readTraceContextFromEnv, rh as UiAuditorDelegate, sg as DelegationStore, sh as FleetWorkspaceExecutorOptions, sy as JsonRpcResponse, tg as TraceContext, th as DetachedSessionDelegateOptions, tv as AwaitWakeInput, ug as CoderOutput, uh as createSiblingSandboxExecutor, uy as McpTransport, vh as DelegationResumeTick, vp as SpawnResourceBytes, wh as DelegateCodeArgs, wp as McpServerOptions, wt as WorkerSpawnContext, wv as QuestionLevel, wy as AnalystRegistry, xh as DelegationTaskQueueOptions, xp as environmentReader, yh as DelegationRunContext, yp as SpawnResourceRead, yv as Question, zh as FeedbackRating } from "../types-CaOXqRTq.js";
2
+ import { HarnessType } from "@tangle-network/agent-interface";
3
+ //#region src/mcp/kb-gate.d.ts
4
+ /**
5
+ *
6
+ * `createKbGate` — the valid-only knowledge-base growth gate, distilled from
7
+ * physim's KB-research subsystem. A research-in-a-loop delegate (or any KB
8
+ * writer) runs candidate facts through this before persisting, so the KB grows
9
+ * with ONLY grounded facts — hallucinated, unsourced, or laundered claims are
10
+ * vetoed at the gate.
11
+ *
12
+ * Fail-closed by construction: every judge must `accept`; the FIRST veto wins
13
+ * and the fact is rejected. The non-negotiable floor (always on, can't be
14
+ * disabled) is the **passage-present guard** — a fact's `verbatimPassage` MUST
15
+ * literally appear in its `sourceText`. That single check kills the dominant
16
+ * failure mode (a confident claim decoupled from any real source).
17
+ *
18
+ * Pure + dependency-free: it operates on fact candidates, not on a store, so it
19
+ * composes with `@tangle-network/agent-knowledge` or any persistence layer
20
+ * without importing it. The remediation policy (correct-on-veto vs
21
+ * escalate-as-unverified) is the caller's — this returns the verdict; it never
22
+ * drops a fact silently.
23
+ *
24
+ * @experimental
25
+ */
26
+ /** @experimental A fact proposed for the KB, with its grounding. */
27
+ interface FactCandidate {
28
+ /** The atomic claim text. */
29
+ claim: string;
30
+ /** Optional extracted value (number or string) the claim asserts. */
31
+ value?: string | number;
32
+ /** Verbatim span lifted from the source that backs the claim. */
33
+ verbatimPassage: string;
34
+ /** The raw source text the passage must be grounded in. */
35
+ sourceText: string;
36
+ /** Where the fact claims to come from — checked for circular/self citations. */
37
+ citation?: string;
19
38
  }
20
- /** Thrown when reproducible Codex exits without one valid terminal usage event. */
21
- declare class CodexExecutionDiagnosticError extends Error {
22
- readonly reason: string;
23
- readonly diagnostic: CodexExecutionFailureDiagnostic;
24
- readonly code = "CODEX_EXECUTION_DIAGNOSTIC";
25
- constructor(reason: string, diagnostic: CodexExecutionFailureDiagnostic, cause?: unknown);
39
+ /** @experimental */
40
+ interface FactJudgeVerdict {
41
+ accept: boolean;
42
+ reason?: string;
43
+ }
44
+ /** @experimental A pluggable fact validator. Throw is NOT allowed — return a
45
+ * verdict; a thrown judge is a programmer error, not a veto. */
46
+ interface FactJudge {
47
+ name: string;
48
+ judge(candidate: FactCandidate): FactJudgeVerdict | Promise<FactJudgeVerdict>;
49
+ }
50
+ /** @experimental */
51
+ interface KbGateResult {
52
+ accepted: boolean;
53
+ /** Name of the judge that vetoed; undefined when accepted. */
54
+ vetoedBy?: string;
55
+ reason?: string;
56
+ }
57
+ /** @experimental */
58
+ interface CreateKbGateOptions {
59
+ /** Extra judges appended after the built-in floor (e.g. an LLM judge). */
60
+ judges?: FactJudge[];
61
+ /** Minimum verbatim-passage length. Default 12 — kills empty/stub passages. */
62
+ minPassageChars?: number;
63
+ /**
64
+ * Citation tokens that denote a SELF-generated artifact (e.g. `'spec'`,
65
+ * `'cad_params'`, `'requirements'`). A citation naming one is circular
66
+ * (laundering) — the fact cites a derived artifact, not a real source.
67
+ * Default `[]` (no circular check unless the consumer declares its kinds).
68
+ */
69
+ selfArtifactKinds?: string[];
26
70
  }
71
+ /**
72
+ *
73
+ * Build a fail-closed KB gate. The returned function runs the built-in floor
74
+ * (passage-non-empty → passage-present → value-in-passage → no-circular-citation)
75
+ * then any consumer judges, returning on the first veto.
76
+ *
77
+ * @experimental
78
+ */
79
+ declare function createKbGate(options?: CreateKbGateOptions): (candidate: FactCandidate) => Promise<KbGateResult>;
27
80
  //#endregion
28
81
  //#region src/mcp/harness-native-tools.d.ts
29
82
  /**
@@ -37,8 +90,6 @@ declare const harnessNativeTools: {
37
90
  };
38
91
  /** A harness with a sourced native tool list. */
39
92
  type SourcedHarness = keyof typeof harnessNativeTools;
40
- /** The harnesses this registry has a sourced list for. */
41
- declare const sourcedHarnesses: ReadonlyArray<SourcedHarness>;
42
93
  /**
43
94
  * The tool names `harness` publishes natively, or `undefined` when no list has been sourced for it.
44
95
  * The two are different facts and a caller must not read one as the other.
@@ -52,76 +103,6 @@ declare function harnessNativeToolNames(harness: HarnessType): ReadonlyArray<str
52
103
  */
53
104
  declare function collidesWithHarnessNativeTool(name: string): ReadonlyArray<SourcedHarness>;
54
105
  //#endregion
55
- //#region src/mcp/tool-server.d.ts
56
- /**
57
- * Protocol versions this server speaks, newest first. `initialize` answers with
58
- * the client's requested version when it is listed here, and otherwise with
59
- * `PROTOCOL_VERSION` (2024-11-05), which every client that speaks 2024-11-05 accepts.
60
- */
61
- declare const SUPPORTED_PROTOCOL_VERSIONS: readonly string[];
62
- /** @experimental */
63
- interface StdioToolServerOptions {
64
- /** Server display name surfaced via `initialize`. */
65
- serverName: string;
66
- /** Server version surfaced via `initialize`. */
67
- serverVersion: string;
68
- /** The tools to serve. Duplicate names throw — a silent shadow would hide a tool. */
69
- tools: readonly McpToolDescriptor[];
70
- }
71
- /** @experimental */
72
- interface StdioToolServer {
73
- /** Tools currently registered, keyed by name. */
74
- readonly tools: ReadonlyMap<string, McpToolDescriptor>;
75
- /** Handle a single parsed JSON-RPC message. Returns the response object (or `null` for notifications). */
76
- handle(message: JsonRpcMessage): Promise<JsonRpcResponse | null>;
77
- /** Drive the server on a stdio-shaped transport until `stop()` is called. */
78
- serve(transport?: McpTransport): Promise<void>;
79
- /** Stop a `serve` call. Subsequent requests are rejected. */
80
- stop(): void;
81
- }
82
- /** Build the generic stdio JSON-RPC tool server. */
83
- declare function createStdioToolServer(options: StdioToolServerOptions): StdioToolServer;
84
- //#endregion
85
- //#region src/mcp/hub-server.d.ts
86
- /** The substrate data providers whose Hub adapters become agent tools. */
87
- declare const HUB_DATA_PROVIDER_KINDS: readonly string[];
88
- /** The subset of `PlatformHubClient` this module needs — mocks plug in here. */
89
- interface HubIntegrationClient {
90
- listConnections(): Promise<PlatformConnection[]>;
91
- exec(input: {
92
- path: string;
93
- input?: unknown;
94
- connectionId?: string;
95
- }): Promise<unknown>;
96
- }
97
- interface HubIntegrationToolsOptions {
98
- client: HubIntegrationClient;
99
- /** Provider kinds to expose. Defaults to `HUB_DATA_PROVIDER_KINDS`. */
100
- providers?: readonly string[];
101
- /** Also serve connections whose last health probe failed. Default false. */
102
- includeUnhealthy?: boolean;
103
- }
104
- /**
105
- * One router tool per active Hub connection to a data provider. The tool
106
- * handler never holds provider credentials — it execs through the Hub, which
107
- * enforces the per-user action policy and writes the audit record.
108
- */
109
- declare function hubIntegrationTools(options: HubIntegrationToolsOptions): Promise<McpToolDescriptor[]>;
110
- interface CreateHubIntegrationToolServerOptions extends HubIntegrationToolsOptions {
111
- /** Server display name surfaced via `initialize`. Default 'agent-hub-integrations'. */
112
- serverName?: string;
113
- /** Server version surfaced via `initialize`. Default '0'. */
114
- serverVersion?: string;
115
- }
116
- /**
117
- * Build the hub integration MCP server on the shared stdio JSON-RPC core —
118
- * the same wire protocol every in-repo MCP server speaks. Serves zero tools
119
- * when the caller has no active data-provider connections (a session without
120
- * connections simply gets no database tools, mirroring the memory server's
121
- * "no artifact, no server" discipline).
122
- */
123
- declare function createHubIntegrationToolServer(options: CreateHubIntegrationToolServerOptions): Promise<StdioToolServer>;
124
- //#endregion
125
106
  //#region src/mcp/in-process-executor.d.ts
126
107
  /** @experimental */
127
108
  interface InProcessExecutorOptions {
@@ -147,13 +128,6 @@ interface InProcessExecutorOptions {
147
128
  stderr: string;
148
129
  }>;
149
130
  }
150
- /** @experimental */
151
- interface InProcessExecutorDescribePlacement extends LoopSandboxPlacement {
152
- /** Worktree path in the parent sandbox's filesystem (set so traces correlate to on-disk artifacts). */
153
- worktreePath?: string;
154
- /** Which harness handled this delegation. */
155
- harness?: LocalHarness;
156
- }
157
131
  /**
158
132
  * Build an in-process executor. Returns a {@link DelegationExecutor} whose `client.create()`
159
133
  * returns a minimal virtual `SandboxInstance`; the kernel calls `streamPrompt(msg)` on it, which
@@ -168,326 +142,33 @@ interface InProcessExecutorDescribePlacement extends LoopSandboxPlacement {
168
142
  */
169
143
  declare function createInProcessExecutor(options: InProcessExecutorOptions): DelegationExecutor;
170
144
  //#endregion
171
- //#region src/mcp/memory-server.d.ts
172
- /** One row of agent memory: a crisp lesson/fact with provenance. */
173
- interface MemoryItem {
174
- /** Stable id (content-hash by convention; see `memoryArtifactFromLessons`). */
175
- id: string;
176
- /** The lesson itself — one imperative or observation the agent should recall. */
177
- text: string;
178
- /** Optional retrieval tags, matched by `memory_search` alongside the text. */
179
- tags?: string[];
180
- /** Provenance: the finding / trace / curation pass this row came from. */
181
- source?: string;
182
- }
183
- /**
184
- * The `memory` artifact payload — HOW a profile's memory is stored and served:
185
- *
186
- * - `store: 'file'` — served by the in-repo memory bin
187
- * (`agent-runtime-memory-mcp`, src/mcp/memory-bin.ts): rows load from
188
- * `path` (a JSON array or JSONL file of `MemoryItem`) and/or the inline
189
- * `items` seed (inline wins on id collision). At least one of
190
- * `path`/`items` is required.
191
- * - `store: 'mcp'` — an EXTERNAL, already-runnable MCP server that exposes
192
- * the memory tools itself; `server` is required and mounts verbatim.
193
- *
194
- * `logPath` makes the served memory append one JSONL row per `memory_search`
195
- * — the retrieval log a holdout estimator reads (see module doc).
196
- */
197
- interface AgentMemorySpec {
198
- store: 'file' | 'mcp';
199
- /** `store:'file'` — host path to the durable row store (JSON array or JSONL). */
200
- path?: string;
201
- /** Inline seed rows, served alongside (and winning over) `path` rows. */
202
- items?: MemoryItem[];
203
- /** `store:'mcp'` — the external server that already serves memory tools. */
204
- server?: AgentProfileMcpServer;
205
- /** JSONL retrieval log: one row per `memory_search` (ts, query, k, returned). */
206
- logPath?: string;
207
- }
208
- /** Env var naming the durable row store file the memory bin loads (the
209
- * `memoryMcpServer` ↔ memory-bin contract). */
210
- declare const MEMORY_FILE_ENV = "AGENT_MEMORY_FILE";
211
- /** Env var carrying inline JSON `MemoryItem` rows (win over file rows on id). */
212
- declare const MEMORY_ITEMS_ENV = "AGENT_MEMORY_ITEMS";
213
- /** Env var naming the JSONL retrieval log (one row per `memory_search`). */
214
- declare const MEMORY_LOG_ENV = "AGENT_MEMORY_LOG";
215
- /** Env var overriding the served display name (default 'agent-memory'). */
216
- declare const MEMORY_NAME_ENV = "AGENT_MEMORY_NAME";
217
- interface CreateMemoryToolServerOptions {
218
- /** The rows to serve. MUST be non-empty (an empty memory is never served). */
219
- items: readonly MemoryItem[];
220
- /** Server display name surfaced via `initialize`. Default 'agent-memory'. */
221
- serverName?: string;
222
- /** Server version surfaced via `initialize`. Default '0'. */
223
- serverVersion?: string;
224
- /** Default result count for `memory_search`. Default 5. */
225
- defaultK?: number;
226
- /** Append one JSONL row per `memory_search` (the retrieval-holdout seam). */
227
- logPath?: string;
145
+ //#region src/mcp/tool-server.d.ts
146
+ /** @experimental */
147
+ interface StdioToolServerOptions {
148
+ /** Server display name surfaced via `initialize`. */
149
+ serverName: string;
150
+ /** Server version surfaced via `initialize`. */
151
+ serverVersion: string;
152
+ /** The tools to serve. Duplicate names throw — a silent shadow would hide a tool. */
153
+ tools: readonly McpToolDescriptor[];
228
154
  }
229
- /**
230
- * Build the memory MCP server: `memory_search` (lexical top-k over the rows)
231
- * and `memory_get` (one row by id) on the generic stdio JSON-RPC core.
232
- */
233
- declare function createMemoryToolServer(opts: CreateMemoryToolServerOptions): StdioToolServer;
234
- /** Coerce an untrusted JSON array into validated `MemoryItem` rows. */
235
- declare function parseMemoryItems(value: unknown, source: string): MemoryItem[];
236
- /** Read a memory store file: a JSON array, or JSONL (one `MemoryItem` per line). */
237
- declare function readMemoryItemsFile(path: string): MemoryItem[];
238
- /** What the memory bin resolved from its environment. */
239
- interface ResolvedMemoryEnv {
240
- items: MemoryItem[];
241
- serverName?: string;
242
- logPath?: string;
155
+ /** @experimental */
156
+ interface StdioToolServer {
157
+ /** Tools currently registered, keyed by name. */
158
+ readonly tools: ReadonlyMap<string, McpToolDescriptor>;
159
+ /** Handle a single parsed JSON-RPC message. Returns the response object (or `null` for notifications). */
160
+ handle(message: JsonRpcMessage): Promise<JsonRpcResponse | null>;
161
+ /** Drive the server on a stdio-shaped transport until `stop()` is called. */
162
+ serve(transport?: McpTransport): Promise<void>;
163
+ /** Stop a `serve` call. Subsequent requests are rejected. */
164
+ stop(): void;
243
165
  }
244
- /**
245
- * Resolve the bin's memory from `AGENT_MEMORY_FILE` (durable store) and/or
246
- * `AGENT_MEMORY_ITEMS` (inline JSON rows; wins on id collision). Zero rows is
247
- * a boot FAILURE, matching the fail-closed materialization discipline.
248
- */
249
- declare function resolveMemoryFromEnv(env: Record<string, string | undefined>): ResolvedMemoryEnv;
166
+ /** Build the generic stdio JSON-RPC tool server. */
167
+ declare function createStdioToolServer(options: StdioToolServerOptions): StdioToolServer;
250
168
  //#endregion
251
169
  //#region src/mcp/tools/coordination-manager.d.ts
252
170
  /** Build the driver's MCP tools over a live scope. */
253
171
  declare function createCoordinationTools(opts: CoordinationToolsOptions): CoordinationTools;
254
172
  //#endregion
255
- //#region src/mcp/tools/delegate-feedback.d.ts
256
- /** MCP tool name for the `delegate_feedback` feedback-recording tool. @stable */
257
- declare const DELEGATE_FEEDBACK_TOOL_NAME = "delegate_feedback";
258
- /** Human-readable description of the `delegate_feedback` MCP tool, injected into the tool manifest. @stable */
259
- declare const DELEGATE_FEEDBACK_DESCRIPTION: string;
260
- /** JSON Schema for `delegate_feedback` tool arguments (`refersTo`, `rating`, `by`, optional fields). @stable */
261
- declare const DELEGATE_FEEDBACK_INPUT_SCHEMA: {
262
- readonly type: "object";
263
- readonly properties: {
264
- readonly refersTo: {
265
- readonly type: "object";
266
- readonly properties: {
267
- readonly kind: {
268
- readonly type: "string";
269
- readonly enum: readonly ["delegation", "artifact", "outcome"];
270
- };
271
- readonly ref: {
272
- readonly type: "string";
273
- };
274
- };
275
- readonly required: readonly ["kind", "ref"];
276
- readonly additionalProperties: false;
277
- };
278
- readonly rating: {
279
- readonly type: "object";
280
- readonly properties: {
281
- readonly score: {
282
- readonly type: "number";
283
- readonly minimum: 0;
284
- readonly maximum: 1;
285
- };
286
- readonly label: {
287
- readonly type: "string";
288
- readonly enum: readonly ["good", "bad", "neutral", "mixed"];
289
- };
290
- readonly notes: {
291
- readonly type: "string";
292
- };
293
- };
294
- readonly required: readonly ["score", "notes"];
295
- readonly additionalProperties: false;
296
- };
297
- readonly by: {
298
- readonly type: "string";
299
- readonly enum: readonly ["agent", "user", "downstream-judge"];
300
- };
301
- readonly capturedAt: {
302
- readonly type: "string";
303
- };
304
- readonly namespace: {
305
- readonly type: "string";
306
- };
307
- };
308
- readonly required: readonly ["refersTo", "rating", "by"];
309
- readonly additionalProperties: false;
310
- };
311
- /** Parse and validate raw MCP tool input into typed `DelegateFeedbackArgs`; throws `TypeError` on bad input. @stable */
312
- declare function validateDelegateFeedbackArgs(raw: unknown): DelegateFeedbackArgs;
313
- /** @stable */
314
- interface DelegateFeedbackHandlerOptions {
315
- queue: DelegationTaskQueue;
316
- store: FeedbackStore;
317
- generateId?: () => string;
318
- now?: () => string;
319
- }
320
- /** Build the MCP tool handler that persists feedback events and attaches them to delegation records. @stable */
321
- declare function createDelegateFeedbackHandler(options: DelegateFeedbackHandlerOptions): (raw: unknown) => Promise<DelegateFeedbackResult>;
322
- //#endregion
323
- //#region src/mcp/tools/delegate-ui-audit.d.ts
324
- /** MCP tool name for the `delegate_ui_audit` async kickoff tool. @experimental */
325
- declare const DELEGATE_UI_AUDIT_TOOL_NAME = "delegate_ui_audit";
326
- /** Human-readable description of the `delegate_ui_audit` MCP tool, injected into the tool manifest. @experimental */
327
- declare const DELEGATE_UI_AUDIT_DESCRIPTION: string;
328
- /** JSON Schema for `delegate_ui_audit` tool arguments (`workspaceDir`, `routes`, optional config). @experimental */
329
- declare const DELEGATE_UI_AUDIT_INPUT_SCHEMA: {
330
- readonly type: "object";
331
- readonly properties: {
332
- readonly workspaceDir: {
333
- readonly type: "string";
334
- readonly description: "Absolute path for the audit workspace.";
335
- };
336
- readonly routes: {
337
- readonly type: "array";
338
- readonly items: {
339
- readonly type: "object";
340
- readonly properties: {
341
- readonly name: {
342
- readonly type: "string";
343
- readonly description: "Stable route name (used in screenshot filenames).";
344
- };
345
- readonly url: {
346
- readonly type: "string";
347
- readonly description: "Fully-qualified URL.";
348
- };
349
- readonly viewports: {
350
- readonly type: "array";
351
- readonly items: {
352
- readonly type: "object";
353
- readonly properties: {
354
- readonly width: {
355
- readonly type: "integer";
356
- readonly minimum: 1;
357
- };
358
- readonly height: {
359
- readonly type: "integer";
360
- readonly minimum: 1;
361
- };
362
- };
363
- readonly required: readonly ["width", "height"];
364
- readonly additionalProperties: false;
365
- };
366
- readonly description: "Viewports to capture at. Default [{1280, 800}].";
367
- };
368
- readonly fullPage: {
369
- readonly type: "boolean";
370
- };
371
- readonly waitFor: {
372
- readonly type: "string";
373
- readonly description: "CSS selector to wait for before capturing.";
374
- };
375
- };
376
- readonly required: readonly ["name", "url"];
377
- readonly additionalProperties: false;
378
- };
379
- readonly minItems: 1;
380
- };
381
- readonly namespace: {
382
- readonly type: "string";
383
- readonly description: "Multi-tenant scope.";
384
- };
385
- readonly config: {
386
- readonly type: "object";
387
- readonly properties: {
388
- readonly lenses: {
389
- readonly type: "array";
390
- readonly items: {
391
- readonly type: "string";
392
- readonly enum: readonly UiLens[];
393
- };
394
- readonly description: "Lenses to iterate. Default: every lens except \"other\".";
395
- };
396
- readonly maxIterations: {
397
- readonly type: "integer";
398
- readonly minimum: 1;
399
- };
400
- readonly maxConcurrency: {
401
- readonly type: "integer";
402
- readonly minimum: 1;
403
- };
404
- readonly productContext: {
405
- readonly type: "string";
406
- };
407
- };
408
- readonly additionalProperties: false;
409
- };
410
- };
411
- readonly required: readonly ["workspaceDir", "routes"];
412
- readonly additionalProperties: false;
413
- };
414
- /** Parse and validate raw MCP tool input into typed `DelegateUiAuditArgs`; throws `TypeError` on bad input. @experimental */
415
- declare function validateDelegateUiAuditArgs(raw: unknown): DelegateUiAuditArgs;
416
- /** @experimental */
417
- interface DelegateUiAuditHandlerOptions {
418
- queue: DelegationTaskQueue;
419
- delegate: UiAuditorDelegate;
420
- estimateDurationMs?: (args: DelegateUiAuditArgs) => number;
421
- }
422
- /** Build the MCP tool handler that validates input, deduplicates via idempotency key, and enqueues a UI audit. @experimental */
423
- declare function createDelegateUiAuditHandler(options: DelegateUiAuditHandlerOptions): (raw: unknown) => Promise<DelegateUiAuditResult>;
424
- //#endregion
425
- //#region src/mcp/tools/delegation-history.d.ts
426
- /** MCP tool name for the `delegation_history` read-past-delegations tool. @stable */
427
- declare const DELEGATION_HISTORY_TOOL_NAME = "delegation_history";
428
- /** Human-readable description of the `delegation_history` MCP tool, injected into the tool manifest. @stable */
429
- declare const DELEGATION_HISTORY_DESCRIPTION: string;
430
- /** JSON Schema for `delegation_history` tool arguments (optional `namespace`, `profile`, `since`, `limit`). @stable */
431
- declare const DELEGATION_HISTORY_INPUT_SCHEMA: {
432
- readonly type: "object";
433
- readonly properties: {
434
- readonly namespace: {
435
- readonly type: "string";
436
- };
437
- readonly profile: {
438
- readonly type: "string";
439
- readonly enum: readonly ["coder", "researcher", "ui-auditor"];
440
- };
441
- readonly since: {
442
- readonly type: "string";
443
- readonly description: "ISO datetime — earliest startedAt to include.";
444
- };
445
- readonly limit: {
446
- readonly type: "integer";
447
- readonly minimum: 1;
448
- readonly maximum: 500;
449
- };
450
- };
451
- readonly additionalProperties: false;
452
- };
453
- /** Parse and validate raw MCP tool input into typed `DelegationHistoryArgs`; throws `TypeError` on bad input. @stable */
454
- declare function validateDelegationHistoryArgs(raw: unknown): DelegationHistoryArgs;
455
- /** @stable */
456
- interface DelegationHistoryHandlerOptions {
457
- queue: DelegationTaskQueue;
458
- }
459
- /** Build the MCP tool handler that reads filtered past delegations from a `DelegationTaskQueue`. @stable */
460
- declare function createDelegationHistoryHandler(options: DelegationHistoryHandlerOptions): (raw: unknown) => Promise<DelegationHistoryResult>;
461
- //#endregion
462
- //#region src/mcp/tools/delegation-status.d.ts
463
- /** MCP tool name for the `delegation_status` synchronous-poll tool. @stable */
464
- declare const DELEGATION_STATUS_TOOL_NAME = "delegation_status";
465
- /** Human-readable description of the `delegation_status` MCP tool, injected into the tool manifest. @stable */
466
- declare const DELEGATION_STATUS_DESCRIPTION: string;
467
- /** JSON Schema for `delegation_status` tool arguments (`taskId` + optional `includeTrace`). @stable */
468
- declare const DELEGATION_STATUS_INPUT_SCHEMA: {
469
- readonly type: "object";
470
- readonly properties: {
471
- readonly taskId: {
472
- readonly type: "string";
473
- readonly description: "Returned by delegate_ui_audit.";
474
- };
475
- readonly includeTrace: {
476
- readonly type: "boolean";
477
- readonly description: "Also return the journaled loop-trace span tree for this delegation. Default false.";
478
- };
479
- };
480
- readonly required: readonly ["taskId"];
481
- readonly additionalProperties: false;
482
- };
483
- /** Parse and validate raw MCP tool input into typed `DelegationStatusArgs`; throws `TypeError` on bad input. @stable */
484
- declare function validateDelegationStatusArgs(raw: unknown): DelegationStatusArgs;
485
- /** @stable */
486
- interface DelegationStatusHandlerOptions {
487
- queue: DelegationTaskQueue;
488
- }
489
- /** Build the MCP tool handler that polls a `DelegationTaskQueue` for task status. @stable */
490
- declare function createDelegationStatusHandler(options: DelegationStatusHandlerOptions): (raw: unknown) => Promise<DelegationStatusResult>;
491
- //#endregion
492
- export { ANALYST_DEFINITION_BOUNDS, type AgentMemorySpec, type AnalystAssignmentRecord, type AnalystDefinitionIssue, type AnalystFindingEvent, type AnalystKind, type AnalystRegistry, type AnalystRunContext, type AnalystToolGroupName, type AuthoredAnalystDefinition, type AuthoredAnalystLimits, type AuthorizeDownMessage, type AuthorizedDownMessage, type AwaitWakeInput, type CappedDelegationTrace, type ChildQuestionInbox, type CoderDelegate, type CoderOutput, type CoderReview, type CoderReviewer, CodexExecutionDiagnosticError, type CodexExecutionEvidence, type CodexExecutionFailureDiagnostic, type CodexExecutionPolicy, type CodexTokenUsage, type ContinuationInstruction, type CoordinationEvent, type CoordinationTools, type CoordinationToolsOptions, type CreateHubIntegrationToolServerOptions, type CreateKbGateOptions, type CreateMemoryToolServerOptions, type CreateWorktreeOptions, DEFAULT_LOCAL_HARNESS, DELEGATE_DESCRIPTION, DELEGATE_FEEDBACK_DESCRIPTION, DELEGATE_FEEDBACK_INPUT_SCHEMA, DELEGATE_FEEDBACK_TOOL_NAME, DELEGATE_INPUT_SCHEMA, DELEGATE_TOOL_NAME, DELEGATE_UI_AUDIT_DESCRIPTION, DELEGATE_UI_AUDIT_INPUT_SCHEMA, DELEGATE_UI_AUDIT_TOOL_NAME, DELEGATION_HISTORY_DESCRIPTION, DELEGATION_HISTORY_INPUT_SCHEMA, DELEGATION_HISTORY_TOOL_NAME, DELEGATION_STATUS_DESCRIPTION, DELEGATION_STATUS_INPUT_SCHEMA, DELEGATION_STATUS_TOOL_NAME, DELEGATION_TRACE_MAX_BYTES, DELEGATION_TRACE_MAX_SPANS, type DefinedAnalystRecord, type DelegateArgs, type DelegateCodeArgs, type DelegateCodeConfig, type DelegateCodeResult, type DelegateError, type DelegateFeedbackArgs, type DelegateFeedbackHandlerOptions, type DelegateFeedbackResult, type DelegateHandlerOptions, type DelegateResearchArgs, type DelegateResearchConfig, type DelegateResearchResult, type DelegateResult, type DelegateRunCtx, type DelegateUiAuditArgs, type DelegateUiAuditConfig, type DelegateUiAuditHandlerOptions, type DelegateUiAuditResult, type DelegateUiAuditRoute, type DelegationArgs, type DelegationError, type DelegationExecutor, type DelegationFeedbackSnapshot, type DelegationHistoryArgs, type DelegationHistoryEntry, type DelegationHistoryHandlerOptions, type DelegationHistoryResult, DelegationPersistenceError, type DelegationProfile, type DelegationProgress, type DelegationRecord, type DelegationResultPayload, type DelegationResumeContext, type DelegationResumeDriver, type DelegationResumeTick, type DelegationRunContext, DelegationStateCorruptError, type DelegationStatus, type DelegationStatusArgs, type DelegationStatusHandlerOptions, type DelegationStatusResult, type DelegationStore, DelegationTaskQueue, type DelegationTaskQueueOptions, type DelegationTraceCaps, type DelegationTraceCollector, type DelegationTraceSpan, type DetachedSessionDelegateOptions, type DetachedSessionRefParts, type DetachedTurn, type DetachedTurnResumeDriverOptions, type DetachedWinnerSelection, type DiffOptions, type DiffResult, type DownMessageAuthorizationInput, type DownMessageDeliveryAttempt, type DownMessageDeliveryOutcome, type DownMessageEvent, type DriveTurnCapableBox, type DriveTurnTick, type EscalateQuestion, type EventAcknowledgement, type FactCandidate, type FactJudge, type FactJudgeVerdict, type FeedbackEvent, type FeedbackRating, type FeedbackRefersTo, type FeedbackStore, FileDelegationStore, type FileDelegationStoreOptions, type FleetHandle, type FleetWorkspaceExecutorOptions, type GitRunner, type GraphSubtaskPreparation, type GraphSubtasks, HUB_DATA_PROVIDER_KINDS, type HubIntegrationClient, type HubIntegrationToolsOptions, InMemoryDelegationStore, InMemoryFeedbackStore, type InProcessExecutorDescribePlacement, type InProcessExecutorOptions, type JsonRpcMessage, type JsonRpcResponse, type KbGateResult, LOCAL_HARNESSES, type LeadMessage, type LocalHarness, type LocalHarnessResult, MEMORY_FILE_ENV, MEMORY_ITEMS_ENV, MEMORY_LOG_ENV, MEMORY_NAME_ENV, type MakeWorkerAgent, type ManagerReentryState, type ManagerWake, type McpServer, type McpServerOptions, type McpToolAnnotations, type McpToolDescriptor, type McpTransport, type MemoryItem, type PeerAuditAccess, type Question, type QuestionDecision, type QuestionEscalationOutcome, type QuestionEscalationRecord, type QuestionEscalationTarget, type QuestionLevel, type QuestionOption, type QuestionPolicy, type QuestionRecord, type QuestionUrgency, type RemoveWorktreeOptions, type ResearchOutputShape, type ResearchSource, type ResolveSpawnResourcePathsResult, type ResolvedMemoryEnv, type ResolvedSpawnResourcePath, type RunDetachedTurnOptions, type RunLocalHarnessOptions, SPAWN_RESOURCE_PATH_MAX_BYTES, SUPPORTED_PROTOCOL_VERSIONS, type SettleDetachedCoderTurnOptions, type SettledWorker, type SiblingSandboxExecutorOptions, type SourcedHarness, type SpawnResourceBytes, type SpawnResourceRead, type SpawnResourceReader, type StdioToolServer, type StdioToolServerOptions, type SubmitInput, type SubmitOutput, type ToolOutcomeEvent, type TraceContext, type UiAuditLensFilter, type UiAuditorDelegate, type UiAuditorDelegationOutput, type WorkerSpawnContext, type WorkerWatchOptions, type WorktreeHandle, analystToolGroupNames, buildDelegationTraceSpans, capDelegationTrace, captureWorktreeDiff, coderTaskFromArgs, collidesWithHarnessNativeTool, composeLoopTraceEmitters, createCoordinationTools, createDelegateFeedbackHandler, createDelegateHandler, createDelegateUiAuditHandler, createDelegationHistoryHandler, createDelegationStatusHandler, createDelegationTraceCollector, createDetachedTurnResumeDriver, createFleetWorkspaceExecutor, createHubIntegrationToolServer, createInProcessExecutor, createInProcessTransport, createKbGate, createMcpServer, createMemoryToolServer, createPropagatingTraceEmitter, createSiblingSandboxExecutor, createStdioToolServer, createWorktree, delegationProfiles, detachedSessionDelegate, detachedTurnEvents, downMessageRefusalReasons, environmentReader, eventToSnapshot, formatDetachedSessionRef, harnessNativeToolNames, harnessNativeTools, harnessSupportsReasoningEffort, hashIdempotencyInput, hostDirectoryReader, hubIntegrationTools, localHarnessExecutable, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, mergeTraceEnv, parseAuthoredAnalystDefinition, parseCodexTokenUsage, parseDetachedSessionRef, parseMemoryItems, questionEscalationTargets, readMemoryItemsFile, readTraceContextFromEnv, removeWorktree, resolveMemoryFromEnv, resolveSpawnResourcePaths, runDetachedTurn, settleDetachedCoderTurn, sourcedHarnesses, traceContextToEnv, validateDelegateArgs, validateDelegateFeedbackArgs, validateDelegateUiAuditArgs, validateDelegationHistoryArgs, validateDelegationStatusArgs };
173
+ export { type AnalystRegistry, type AwaitWakeInput, type CheckRead, type CoderDelegate, type CoderOutput, type CoderReview, type CoderReviewer, type CoderTask, type CoordinationEvent, type CoordinationStats, type CoordinationTools, type CoordinationToolsOptions, type CreateKbGateOptions, type DelegateCodeArgs, type DelegateCodeConfig, type DelegateError, type DelegateHandlerOptions, type DelegateResearchArgs, type DelegateResearchConfig, type DelegateResult, type DelegateRunCtx, type DelegateUiAuditArgs, type DelegateUiAuditConfig, type DelegateUiAuditRoute, type DelegationArgs, type DelegationError, type DelegationExecutor, type DelegationFeedbackSnapshot, type DelegationHistoryArgs, type DelegationHistoryEntry, type DelegationPersistenceError, type DelegationProgress, type DelegationRecord, type DelegationResultPayload, type DelegationResumeContext, type DelegationResumeDriver, type DelegationResumeTick, type DelegationRunContext, type DelegationStatus, type DelegationStatusResult, type DelegationStore, DelegationTaskQueue, type DelegationTaskQueueOptions, type DelegationTraceSpan, type DetachedSessionDelegateOptions, type DetachedTurn, type DetachedWinnerSelection, type FactCandidate, type FactJudge, type FactJudgeVerdict, type FeedbackEvent, type FeedbackRating, type FeedbackRefersTo, type FeedbackStore, FileDelegationStore, type FileDelegationStoreOptions, type FleetHandle, type FleetWorkspaceExecutorOptions, type InProcessExecutorOptions, type JsonRpcMessage, type JsonRpcResponse, type KbGateResult, LOCAL_HARNESSES, type LocalHarness, type MakeWorkerAgent, type ManagerWake, type McpServer, type McpServerOptions, type McpToolAnnotations, type McpToolDescriptor, type McpTransport, type Question, type QuestionLevel, type QuestionOption, type QuestionUrgency, type ResearchOutputShape, type ResolveSpawnResourcePathsResult, type ResolvedSpawnResourcePath, type RunDetachedTurnOptions, type RunLocalHarnessOptions, type SiblingSandboxExecutorOptions, type SpawnRefusalCause, type SpawnResourceBytes, type SpawnResourceRead, type SpawnResourceReader, type StdioToolServer, type StdioToolServerOptions, type SubmitInput, type SubmitOutput, type TraceContext, type UiAuditLensFilter, type UiAuditorDelegate, type UiAuditorDelegationOutput, type WorkerSpawnContext, collidesWithHarnessNativeTool, composeLoopTraceEmitters, createCoordinationTools, createDelegateHandler, createFleetWorkspaceExecutor, createInProcessExecutor, createKbGate, createMcpServer, createPropagatingTraceEmitter, createSiblingSandboxExecutor, createStdioToolServer, detachedSessionDelegate, environmentReader, harnessNativeToolNames, readTraceContextFromEnv, resolveSpawnResourcePaths, runDetachedTurn };
493
174
  //# sourceMappingURL=index.d.ts.map