@tangle-network/agent-runtime 0.337.2 → 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 (155) hide show
  1. package/dist/{activation-DRHM55Oo.d.ts → activation-CJIIl_Ey.d.ts} +90 -22
  2. package/dist/activation-CVSFxis9.js +876 -0
  3. package/dist/activation-CVSFxis9.js.map +1 -0
  4. package/dist/agent.d.ts +4 -4
  5. package/dist/agent.js +4 -7
  6. package/dist/agent.js.map +1 -1
  7. package/dist/{bundle-BPGjESee.js → bundle-DVOhBTic.js} +2 -2
  8. package/dist/{bundle-BPGjESee.js.map → bundle-DVOhBTic.js.map} +1 -1
  9. package/dist/candidate-execution/index.d.ts +4 -63
  10. package/dist/candidate-execution/index.js +6 -146
  11. package/dist/candidate-execution/index.js.map +1 -1
  12. package/dist/content-digest-sBTLujlK.js +9 -0
  13. package/dist/content-digest-sBTLujlK.js.map +1 -0
  14. package/dist/{delegate-B-T_ZB50.js → delegate-CCWE_AkU.js} +2 -2
  15. package/dist/{delegate-B-T_ZB50.js.map → delegate-CCWE_AkU.js.map} +1 -1
  16. package/dist/{coordination-driver-BHkFVqIq.js → driver-control-acknowledgers-C53ggdJ6.js} +4520 -4442
  17. package/dist/driver-control-acknowledgers-C53ggdJ6.js.map +1 -0
  18. package/dist/{durable-file-B_eJr6Mb.js → durable-file-gNI9ILAn.js} +1 -3
  19. package/dist/durable-file-gNI9ILAn.js.map +1 -0
  20. package/dist/durable.d.ts +3 -35
  21. package/dist/durable.js +225 -229
  22. package/dist/durable.js.map +1 -1
  23. package/dist/{graph-C4RFlWAJ.js → graph-CI9JXKqO.js} +65 -18
  24. package/dist/graph-CI9JXKqO.js.map +1 -0
  25. package/dist/{graph-registry-DAI6KNXB.js → graph-registry-BnO64cn8.js} +18 -17
  26. package/dist/graph-registry-BnO64cn8.js.map +1 -0
  27. package/dist/{improvement-cycle-D1I4hQvf.js → improve-BOXTLWJ3.js} +76 -1248
  28. package/dist/improve-BOXTLWJ3.js.map +1 -0
  29. package/dist/{improvement-adapter-D5gwwoXQ.d.ts → improvement-adapter-HUt_-cWA.d.ts} +2 -20
  30. package/dist/index.d.ts +10 -207
  31. package/dist/index.js +91 -305
  32. package/dist/index.js.map +1 -1
  33. package/dist/intelligence.d.ts +10 -229
  34. package/dist/intelligence.js +506 -88
  35. package/dist/intelligence.js.map +1 -1
  36. package/dist/{jsonl-file-DBv31uPi.js → jsonl-file-C9Kde_0Z.js} +2 -2
  37. package/dist/{jsonl-file-DBv31uPi.js.map → jsonl-file-C9Kde_0Z.js.map} +1 -1
  38. package/dist/kernel.d.ts +4 -3
  39. package/dist/kernel.js +12 -13
  40. package/dist/loop-runner-CWzG1bH4.d.ts +32 -0
  41. package/dist/loop-runner-bin.d.ts +32 -2
  42. package/dist/loop-runner-bin.js +93 -1
  43. package/dist/loop-runner-bin.js.map +1 -0
  44. package/dist/loop-runner-pmPIHFVY.js +59 -0
  45. package/dist/loop-runner-pmPIHFVY.js.map +1 -0
  46. package/dist/mcp/bin.js +3 -3
  47. package/dist/mcp/bin.js.map +1 -1
  48. package/dist/mcp/index.d.ts +101 -416
  49. package/dist/mcp/index.js +122 -206
  50. package/dist/mcp/index.js.map +1 -1
  51. package/dist/mcp/memory-bin.js +231 -1
  52. package/dist/mcp/memory-bin.js.map +1 -1
  53. package/dist/model-policy-CyCUwHed.js.map +1 -1
  54. package/dist/placement.d.ts +2 -9
  55. package/dist/placement.js +1 -1
  56. package/dist/placement.js.map +1 -1
  57. package/dist/platform.d.ts +194 -2
  58. package/dist/platform.js +145 -9
  59. package/dist/platform.js.map +1 -1
  60. package/dist/{prepare-CER-ZkPp.js → prepare-bXkvPMJA.js} +1213 -710
  61. package/dist/prepare-bXkvPMJA.js.map +1 -0
  62. package/dist/{profile-gNUsHNIJ.js → profile-Dpei_Sq0.js} +89 -3
  63. package/dist/profile-Dpei_Sq0.js.map +1 -0
  64. package/dist/{profile-materialization-BnoEf1co.d.ts → profile-materialization-B1wm2SPT.d.ts} +3 -5
  65. package/dist/profiles.d.ts +2 -2
  66. package/dist/profiles.js +4 -43
  67. package/dist/profiles.js.map +1 -1
  68. package/dist/{protected-model-port-BhpQRTw-.d.ts → protected-model-port-BGgpy2r9.d.ts} +4 -30
  69. package/dist/protected-redaction-DFCeo4vg.js.map +1 -1
  70. package/dist/{provision-supervisor-DGegCUH4.js → provision-supervisor-CJ6Zz6dz.js} +13 -10
  71. package/dist/provision-supervisor-CJ6Zz6dz.js.map +1 -0
  72. package/dist/record-value-B6bwJxLa.js +12 -0
  73. package/dist/record-value-B6bwJxLa.js.map +1 -0
  74. package/dist/{run-layout-Cu8H7aeh.js → run-cancellation-C9oL62sW.js} +175 -100
  75. package/dist/run-cancellation-C9oL62sW.js.map +1 -0
  76. package/dist/{runtime-BOGpotnH.js → runtime-B2fjL9Oi.js} +2639 -3187
  77. package/dist/runtime-B2fjL9Oi.js.map +1 -0
  78. package/dist/{runtime-hooks-Bj6wJHlH.d.ts → runtime-hooks-nsqxSUFL.d.ts} +2 -6
  79. package/dist/{sandbox-profile-compat-QTkLe1Z6.js → sandbox-profile-compat-BzVBFqrz.js} +690 -699
  80. package/dist/sandbox-profile-compat-BzVBFqrz.js.map +1 -0
  81. package/dist/search-executor-zMumiak_.js +1916 -0
  82. package/dist/search-executor-zMumiak_.js.map +1 -0
  83. package/dist/{server-hZWM-G8w.js → server-_4voDNrl.js} +362 -67
  84. package/dist/server-_4voDNrl.js.map +1 -0
  85. package/dist/{search-executor-Cm1WZmL-.js → structural-rollout-DpLCXzaL.js} +1680 -3403
  86. package/dist/structural-rollout-DpLCXzaL.js.map +1 -0
  87. package/dist/{substrate-B0TYNrXn.js → substrate-CGDFTSRh.js} +2 -9
  88. package/dist/substrate-CGDFTSRh.js.map +1 -0
  89. package/dist/{supervise-CvAKVfue.js → supervise-qAwXmPtD.js} +7768 -5360
  90. package/dist/supervise-qAwXmPtD.js.map +1 -0
  91. package/dist/{supervisor-Rz8AGpYb.js → supervisor-DHrUJhEZ.js} +26301 -26964
  92. package/dist/supervisor-DHrUJhEZ.js.map +1 -0
  93. package/dist/testing.d.ts +227 -2
  94. package/dist/testing.js +13 -14
  95. package/dist/testing.js.map +1 -1
  96. package/dist/tool-loop.d.ts +1 -1
  97. package/dist/{tool-server-Dqer2M4_.js → tool-server-XV4aJwoQ.js} +2 -2
  98. package/dist/tool-server-XV4aJwoQ.js.map +1 -0
  99. package/dist/top-snapshot-CbZE1JsU.js +502 -0
  100. package/dist/top-snapshot-CbZE1JsU.js.map +1 -0
  101. package/dist/tui/bin.js +711 -1
  102. package/dist/tui/bin.js.map +1 -1
  103. package/dist/tui/index.d.ts +5 -71
  104. package/dist/tui/index.js +3 -3
  105. package/dist/{types-Dl5L4r8Z.d.ts → types-CaOXqRTq.d.ts} +16230 -17376
  106. package/dist/workspace-store/index.d.ts +2 -27
  107. package/dist/workspace-store/index.js +2 -2
  108. package/dist/workspace-store/index.js.map +1 -1
  109. package/dist/{workspace-streams-JLjh5DC6.d.ts → workspace-streams-BiS4ABah.d.ts} +19 -32
  110. package/package.json +2 -2
  111. package/skills/agent-graphs/SKILL.md +10 -3
  112. package/skills/agent-graphs/references/authoring.md +18 -0
  113. package/skills/profile-authoring/SKILL.md +3 -3
  114. package/skills/supervise/SKILL.md +2 -2
  115. package/dist/activation-BDP6Eivv.js +0 -234
  116. package/dist/activation-BDP6Eivv.js.map +0 -1
  117. package/dist/coder-yhVWbdWc.js +0 -40
  118. package/dist/coder-yhVWbdWc.js.map +0 -1
  119. package/dist/coordination-driver-BHkFVqIq.js.map +0 -1
  120. package/dist/delegation-status-CF4D0NZ_.js +0 -358
  121. package/dist/delegation-status-CF4D0NZ_.js.map +0 -1
  122. package/dist/durable-file-B_eJr6Mb.js.map +0 -1
  123. package/dist/graph-C4RFlWAJ.js.map +0 -1
  124. package/dist/graph-registry-DAI6KNXB.js.map +0 -1
  125. package/dist/improvement-cycle-D1I4hQvf.js.map +0 -1
  126. package/dist/integrations-DopfCC2a.d.ts +0 -190
  127. package/dist/integrations-dFi-ALk7.js +0 -132
  128. package/dist/integrations-dFi-ALk7.js.map +0 -1
  129. package/dist/kb-gate-C8z2juK8.d.ts +0 -80
  130. package/dist/kb-gate-DpaSwXVx.js +0 -80
  131. package/dist/kb-gate-DpaSwXVx.js.map +0 -1
  132. package/dist/loop-runner-bin-DOuBIJ2O.d.ts +0 -164
  133. package/dist/loop-runner-bin-Dv5QvYDH.js +0 -246
  134. package/dist/loop-runner-bin-Dv5QvYDH.js.map +0 -1
  135. package/dist/memory-server-DXQ8IxGR.js +0 -234
  136. package/dist/memory-server-DXQ8IxGR.js.map +0 -1
  137. package/dist/openai-tools-DoQ32vpe.js +0 -44
  138. package/dist/openai-tools-DoQ32vpe.js.map +0 -1
  139. package/dist/openai-tools-Oxk4KQrY.d.ts +0 -24
  140. package/dist/prepare-CER-ZkPp.js.map +0 -1
  141. package/dist/profile-gNUsHNIJ.js.map +0 -1
  142. package/dist/protected-model-port-BuRsviSL.js +0 -766
  143. package/dist/protected-model-port-BuRsviSL.js.map +0 -1
  144. package/dist/provision-supervisor-DGegCUH4.js.map +0 -1
  145. package/dist/run-layout-Cu8H7aeh.js.map +0 -1
  146. package/dist/runtime-BOGpotnH.js.map +0 -1
  147. package/dist/sandbox-profile-compat-QTkLe1Z6.js.map +0 -1
  148. package/dist/search-executor-Cm1WZmL-.js.map +0 -1
  149. package/dist/server-hZWM-G8w.js.map +0 -1
  150. package/dist/substrate-B0TYNrXn.js.map +0 -1
  151. package/dist/supervise-CvAKVfue.js.map +0 -1
  152. package/dist/supervisor-Rz8AGpYb.js.map +0 -1
  153. package/dist/tool-server-Dqer2M4_.js.map +0 -1
  154. package/dist/top-app-BaMw1W2z.js +0 -1212
  155. package/dist/top-app-BaMw1W2z.js.map +0 -1
@@ -64,24 +64,6 @@ interface ResolvedSurface {
64
64
  /** The substrate's intent: edit an existing file or create a new one. */
65
65
  intent: 'edit-existing' | 'create-new';
66
66
  }
67
- /**
68
- * Resolve a parsed `FindingSubject` to the file path the substrate
69
- * should edit (or create) on disk.
70
- *
71
- * Returns `null` when:
72
- * - the subject targets a surface the agent didn't declare
73
- * (e.g. `rag:*` when `surfaces.rag` is undefined), OR
74
- * - the subject is a `cluster` (failure-mode emits these as evidence,
75
- * not actionable mutations — they don't route to a file).
76
- *
77
- * Returns a `ResolvedSurface` with `intent: 'create-new'` when the
78
- * subject names a path that doesn't yet exist (e.g. a new wiki page).
79
- * The caller chooses whether to honour the create — for tightly-managed
80
- * surfaces like `systemPrompt` it's usually a contract violation
81
- * (the analyst named a section that doesn't exist); for `knowledge`
82
- * it's the whole point.
83
- */
84
- declare function resolveSubjectPath(subject: FindingSubject, surfaces: AgentSurfaces, repoRoot: string): ResolvedSurface | null;
85
67
  /**
86
68
  * Validate that every declared surface exists on disk under `repoRoot`.
87
69
  *
@@ -162,5 +144,5 @@ interface DraftPatchOutput {
162
144
  /** Resolve each finding to a real surface and draft a detached patch candidate. */
163
145
  declare function createSurfaceImprovementProposer(opts: CreateSurfaceImprovementProposerOptions): ImprovementProposalSource<SurfaceImprovementEdit>;
164
146
  //#endregion
165
- export { createSurfaceImprovementProposer as a, SurfaceValidationIssue as c, validateSurfaces as d, SurfaceImprovementEdit as i, renderSurfaceIssues as l, DraftPatchInput as n, AgentSurfaces as o, DraftPatchOutput as r, ResolvedSurface as s, CreateSurfaceImprovementProposerOptions as t, resolveSubjectPath as u };
166
- //# sourceMappingURL=improvement-adapter-D5gwwoXQ.d.ts.map
147
+ export { createSurfaceImprovementProposer as a, SurfaceValidationIssue as c, SurfaceImprovementEdit as i, renderSurfaceIssues as l, DraftPatchInput as n, AgentSurfaces as o, DraftPatchOutput as r, ResolvedSurface as s, CreateSurfaceImprovementProposerOptions as t, validateSurfaces as u };
148
+ //# sourceMappingURL=improvement-adapter-HUt_-cWA.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,17 +1,16 @@
1
- import { AC as WorktreeCheckRunner, Aw as JudgeError, BT as RuntimeRunStatus, Bd as IsolatedCheckBoxEvidence, C as RuntimeFailureCause, CC as SanitizedKnowledgeRequirement, Cw as Redactor, D as runtimeFailureCause, DC as sanitizeKnowledgeReadinessReport, Dw as AgentEvalErrorCode, E as RuntimeFailureOwner, EC as sanitizeAgentRuntimeEvent, Ew as AgentEvalError, FT as RuntimeRunCost, Fw as RetainedRunAdmissionError, Gf as SuperviseOptions, Hd as IsolatedCheckResult, IT as RuntimeRunHandle, Iw as RetainedRunDispatchBindingError, J as ExecutorFactory, Jh as ExecutorConfig, L as Budget, LT as RuntimeRunOptions, Lw as RuntimeRunStateError, Mw as PlannerError, Nw as RetainedInteractiveAdmissionError, O as settlementFailureCause, OC as sanitizeRuntimeStreamEvent, Ow as BackendTransportError, PT as RuntimeRunCompleteInput, Pw as RetainedInteractiveBindingError, RT as RuntimeRunPersistenceAdapter, Rw as ValidationError, S as RuntimeStreamEvent, SC as SanitizedKnowledgeReadinessReport, T as RuntimeFailureContext, TC as createRuntimeStreamEventCollector, VT as startRuntimeRun, Wo as StructuralRolloutPolicy, _ as RunAgentTaskOptions, _C as RuntimeEventCollector, a as AgentKnowledgeProvider, aC as OtelSpan, aw as D1DatabaseLike, b as RuntimeSession, bC as RuntimeStreamEventSummary, bv as DeliverableSpec, c as AgentTaskContext, cC as buildLoopSpanNodes, cw as d1ToSqlAdapter, d as AgentTaskStatus, dC as createOtelExporter, eC as LoopSpanNode, f as BackendErrorDetail, fC as generateSpanId, g as OpenAIChatToolChoice, gC as toOtelAttributes, h as OpenAIChatTool, hC as padTraceId, i as AgentExecutionBackend, iC as OtelExporter, jw as NotFoundError, kw as ConfigError, l as AgentTaskRunResult, lC as buildRuntimeEventOtelSpans, m as OpenAIChatResponseFormat, mC as padSpanId, n as AgentBackendContext, nC as OtelExportConfig, nm as SupervisorProfile, o as AgentRuntimeEvent, oC as RuntimeEventOtelOptions, ow as D1StmtLike, p as KnowledgeReadinessDecision, pC as loopEventToOtelSpan, qt as SupervisedResult, r as AgentBackendInput, rC as OtelExportStats, s as AgentRuntimeEventSink, sC as buildLoopOtelSpans, sw as SqlAdapter, t as AgentAdapter, tC as OtelAttribute, u as AgentTaskSpec, uC as createOpenInferenceFileExporter, v as RunAgentTaskStreamOptions, vC as RuntimeStreamEventCollector, w as RuntimeFailureCode, wC as createRuntimeEventCollector, x as RuntimeSessionStore, xC as RuntimeTelemetryOptions, y as RuntimeCanonicalStreamEvent, yC as RuntimeStreamEventSink, zT as RuntimeRunRow } from "./types-Dl5L4r8Z.js";
2
- import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, f as notifyRuntimeDecisionPoint, i as RuntimeHookContext, l as RuntimeHooks, n as RuntimeDecisionKind, o as RuntimeHookEvent, p as notifyRuntimeHookEvent, r as RuntimeDecisionPoint, s as RuntimeHookPhase, t as RuntimeDecisionEvidenceRef, u as composeRuntimeHooks } from "./runtime-hooks-Bj6wJHlH.js";
3
- import { P as AgentCandidateOutputArtifactPort } from "./workspace-streams-JLjh5DC6.js";
1
+ import { A_ as OtelExporter, B_ as RuntimeStreamEventSummary, C as RuntimeFailureCause, CS as startRuntimeRun, D_ as OtelAttribute, F_ as padSpanId, G_ as createRuntimeStreamEventCollector, H_ as SanitizedKnowledgeReadinessReport, I_ as padTraceId, J_ as sanitizeRuntimeStreamEvent, Ju as SuperviseOptions, K_ as sanitizeAgentRuntimeEvent, Kl as IsolatedCheckResult, L_ as RuntimeEventCollector, M as Budget, M_ as buildLoopOtelSpans, N_ as createOtelExporter, O_ as OtelExportConfig, P_ as loopEventToOtelSpan, R_ as RuntimeStreamEventCollector, S as RuntimeStreamEvent, SS as RuntimeRunStatus, T as RuntimeFailureOwner, U_ as SanitizedKnowledgeRequirement, V_ as RuntimeTelemetryOptions, W_ as createRuntimeEventCollector, Wl as IsolatedCheckBoxEvidence, _ as RunAgentTaskOptions, _S as RuntimeRunCost, a as AgentKnowledgeProvider, ab as BackendTransportError, b as RuntimeSession, bS as RuntimeRunPersistenceAdapter, c as AgentTaskContext, cb as NotFoundError, d as AgentTaskStatus, g as OpenAIChatToolChoice, gS as RuntimeRunCompleteInput, h as OpenAIChatTool, i as AgentExecutionBackend, ib as AgentEvalErrorCode, it as SupervisedResult, j_ as OtelSpan, jp as ExecutorConfig, k_ as OtelExportStats, l as AgentTaskRunResult, lb as RuntimeRunStateError, m as OpenAIChatResponseFormat, n as AgentBackendContext, o as AgentRuntimeEvent, ob as ConfigError, p as KnowledgeReadinessDecision, pb as ExecutorFactory, q_ as sanitizeKnowledgeReadinessReport, r as AgentBackendInput, rb as AgentEvalError, s as AgentRuntimeEventSink, sb as JudgeError, t as AgentAdapter, tb as Redactor, u as AgentTaskSpec, ub as ValidationError, v as RunAgentTaskStreamOptions, vS as RuntimeRunHandle, w as RuntimeFailureCode, x as RuntimeSessionStore, xS as RuntimeRunRow, y as RuntimeCanonicalStreamEvent, yS as RuntimeRunOptions, yf as SupervisorProfile, z_ as RuntimeStreamEventSink } from "./types-CaOXqRTq.js";
2
+ import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, i as RuntimeHookContext, l as RuntimeHooks, o as RuntimeHookEvent, s as RuntimeHookPhase, u as composeRuntimeHooks } from "./runtime-hooks-nsqxSUFL.js";
3
+ import { N as AgentCandidateOutputArtifactPort } from "./workspace-streams-BiS4ABah.js";
4
4
  import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
5
- import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
6
- import { $ as ImproveScenarioPartitions, A as createCommandProfileTrainer, At as AgenticGeneratorShotReceipt, B as ImproveMethodContext, C as ControlledTrainingCommand, Ct as subscriptionLane, D as ProfileTrainerRequest, Dt as AgenticGeneratorOptions, E as ProfileTrainer, Et as AgenticGeneratorExecutorForWorktree, F as ImproveCodeResult, Ft as defaultBuildPrompt, G as ImproveMethodSource, H as ImproveMethodLineage, I as ImproveCodeRunOptions, It as CandidateGenerator, J as ImproveProfileAgent, K as ImproveOptimizationRunOptions, L as ImproveCost, M as ImproveCandidateValidator, Mt as VerifyResult, N as ImproveCodeBaseOptions, Nt as agenticGenerator, O as TrainingBoundaryResult, Ot as AgenticGeneratorShotDisposition, P as ImproveCodeOptions, Pt as commandVerifier, Q as ImproveRuntimeCodeGeneratorOptions, R as ImproveCustomCodeGeneratorOptions, S as CheckpointServingPort, St as sharedBoxLane, T as ImproveTrainingResult, Tt as ReadonlyAgentProfile, U as ImproveMethodOptions, V as ImproveMethodFactory, W as ImproveMethodResult, X as ImproveProfileSurface, Y as ImproveProfileComponents, Z as ImproveResult, _ as SearchMethodOptions, _t as SearchTraceOptions, at as ImproveSkillsOptions, b as SearchImprovementDecision, bt as isSearchEnvironmentFault, ct as ImprovementCodeCandidate, dt as SearchPromotion, et as ImproveSearchAgent, ft as SearchCellContext, g as improve, gt as SearchLaneOptions, ht as SearchLaneKind, i as AgentImprovementActivationTransition, it as ImproveSearchResult, j as ImproveCandidateValidationInput, jt as Verifier, k as TrainingDatasetDocument, kt as AgenticGeneratorShotExecution, lt as ImprovementProfileCandidate, mt as SearchLane, n as AgentImprovementActivationResultStore, nt as ImproveSearchMethod, ot as ImproveSurface, pt as SearchEnvironmentFault, q as ImproveOptions, rt as ImproveSearchOptions, st as ImprovementCandidate, t as AgentImprovementActivationReconciliation, tt as ImproveSearchIdentity, ut as SearchDispatchContext, v as searchMethod, vt as SharedBoxSearchLane, w as ImproveTrainingOptions, wt as DeepReadonly, x as decideSearchImprovement, xt as routerLane, y as DecideSearchImprovementOptions, yt as dedicatedLane, z as ImproveLineage } from "./activation-DRHM55Oo.js";
7
- import { _ as researchLoopRunner, a as DELEGATED_LOOP_MODES, c as DelegatedLoopResult, d as ResearchLoopRunnerOptions, f as RunDelegatedLoopOptions, g as isDelegatedLoopMode, h as auditLoopRunner, i as runLoopRunnerCli, l as DelegatedLoopRunner, m as WorktreeLoopRunnerOptions, n as LoopRunnerCliResult, o as DelegatedLoopMode, p as VetoedFact, r as parseLoopRunnerArgv, s as DelegatedLoopRegistry, t as LoopRunnerCliArgs, u as ResearchLoopResult, v as runDelegatedLoop, y as worktreeLoopRunner } from "./loop-runner-bin-DOuBIJ2O.js";
8
- import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-Oxk4KQrY.js";
5
+ import { i as SurfaceImprovementEdit } from "./improvement-adapter-HUt_-cWA.js";
6
+ import { $ as ImproveCodeBaseOptions, $t as CandidateGenerator, At as SearchPromotion, B as DecideSearchImprovementOptions, Bt as sharedBoxLane, Ct as ImproveSearchOptions, Dt as ImprovementCodeCandidate, Et as ImproveSurface, Ft as SearchLaneOptions, G as ImproveTrainingOptions, Gt as AgenticGeneratorOptions, H as decideSearchImprovement, Ht as DeepReadonly, It as SearchTraceOptions, J as ProfileTrainerRequest, Jt as AgenticGeneratorShotReceipt, K as ImproveTrainingResult, Kt as AgenticGeneratorShotDisposition, L as improve, Lt as SharedBoxSearchLane, Mt as SearchEnvironmentFault, Nt as SearchLane, Ot as ImprovementProfileCandidate, Pt as SearchLaneKind, Q as ImproveCandidateValidator, Qt as commandVerifier, R as SearchMethodOptions, Rt as dedicatedLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as ReadonlyAgentProfile, V as SearchImprovementDecision, Vt as subscriptionLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorExecutorForWorktree, X as createCommandProfileTrainer, Xt as VerifyResult, Y as TrainingBoundaryResult, Yt as Verifier, Z as ImproveCandidateValidationInput, Zt as agenticGenerator, at as ImproveLineage, bt as ImproveSearchAgent, ct as ImproveMethodLineage, dt as ImproveMethodSource, et as ImproveCodeOptions, ft as ImproveOptimizationRunOptions, gt as ImproveProfileSurface, ht as ImproveProfileComponents, i as AgentImprovementActivationTransition, it as ImproveCustomCodeGeneratorOptions, jt as SearchCellContext, kt as SearchDispatchContext, lt as ImproveMethodOptions, mt as ImproveProfileAgent, n as AgentImprovementActivationResultStore, nt as ImproveCodeRunOptions, ot as ImproveMethodContext, q as ProfileTrainer, qt as AgenticGeneratorShotExecution, rt as ImproveCost, st as ImproveMethodFactory, t as AgentImprovementActivationReconciliation, tt as ImproveCodeResult, ut as ImproveMethodResult, vt as ImproveRuntimeCodeGeneratorOptions, wt as ImproveSearchResult, xt as ImproveSearchIdentity, yt as ImproveScenarioPartitions, z as searchMethod, zt as routerLane } from "./activation-CJIIl_Ey.js";
7
+ import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-CWzG1bH4.js";
9
8
  import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
10
9
  import { AgentProfile as AgentProfile$1, ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, CustomTokenPricing, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, MaximumCharge, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
11
10
  import { ZodType } from "zod";
12
11
  import { GepaOptimizationMethodConfig, MutableSurface, ProfileDispatchFn, Scenario, SearchScoredCell, SkillOptOptimizationMethodConfig, SurfaceProposer } from "@tangle-network/agent-eval/campaign";
13
- import { MutableSurface as MutableSurface$1, Scenario as Scenario$1, SelfImproveOptions } from "@tangle-network/agent-eval/contract";
14
- import { BuildEvalKnowledgeBundleOptions, KnowledgeBaseQualityOptions, KnowledgeImprovementOptions, KnowledgeImprovementResult, KnowledgeReadinessSpec, PromoteKnowledgeCandidateOptions, RagKnowledgeUpdateResult } from "@tangle-network/agent-knowledge";
12
+ import { Scenario as Scenario$1 } from "@tangle-network/agent-eval/contract";
13
+ import { KnowledgeImprovementOptions, KnowledgeImprovementResult, PromoteKnowledgeCandidateOptions } from "@tangle-network/agent-knowledge";
15
14
  //#region src/backends.d.ts
16
15
  /** Wrap any custom async-iterable stream into a typed `AgentExecutionBackend`. @stable */
17
16
  declare function createIterableBackend<TInput extends AgentBackendInput>(options: {
@@ -282,7 +281,7 @@ interface RunConversationOptions {
282
281
  /**
283
282
  * Inbound depth at the point this driver was invoked. The runner
284
283
  * increments it on every outbound participant call; gateways refuse at
285
- * `DEFAULT_MAX_DEPTH`. Default 0 (origin caller).
284
+ * `DEFAULT_MAX_FORWARD_DEPTH`. Default 0 (origin caller).
286
285
  */
287
286
  inboundDepth?: number;
288
287
  /**
@@ -356,13 +355,6 @@ declare function createConversationBackend(options: {
356
355
  kind?: string;
357
356
  }): AgentExecutionBackend;
358
357
  //#endregion
359
- //#region src/conversation/define-conversation.d.ts
360
- /** Validate and define a conversation before execution. */
361
- declare function defineConversation(input: {
362
- participants: ConversationParticipant[];
363
- policy: ConversationPolicy;
364
- }): Conversation;
365
- //#endregion
366
358
  //#region src/conversation/run-conversation.d.ts
367
359
  /** Run a conversation to completion and return its terminal result. */
368
360
  declare function runConversation(conversation: Conversation, options: RunConversationOptions): Promise<ConversationResult>;
@@ -443,33 +435,6 @@ interface RunPersonaConfig<TScenario extends Scenario, TArtifact> {
443
435
  */
444
436
  declare function runPersonaDispatch<TScenario extends Scenario, TArtifact>(config: RunPersonaConfig<TScenario, TArtifact>): ProfileDispatchFn<TScenario, TArtifact>;
445
437
  //#endregion
446
- //#region src/improvement/build-prompts.d.ts
447
- /** Evidence supplied to a generated tool or MCP build instruction. */
448
- interface BuildPromptFindingsInput {
449
- findings: ReadonlyArray<ProposalFinding>;
450
- }
451
- /** Render findings as the ranked-evidence block every build prompt ends with. */
452
- declare function findingLines(findings: ReadonlyArray<ProposalFinding>): string[];
453
- /** Build the starting instruction for a coder agent tasked with implementing a new tool. */
454
- declare function toolBuildPrompt(args: BuildPromptFindingsInput): string;
455
- /** Build the starting instruction for a coder agent tasked with implementing a new MCP server. */
456
- declare function mcpBuildPrompt(args: BuildPromptFindingsInput): string;
457
- //#endregion
458
- //#region src/improvement/mcp-serve-verifier.d.ts
459
- interface McpServeSpec {
460
- /** Command that starts the built MCP server in the worktree (stdio transport). */
461
- command: string;
462
- args?: string[];
463
- /** Extra env for the server process (merged over `process.env`). */
464
- env?: Record<string, string>;
465
- /** Handshake timeout (ms). Default 30s. */
466
- timeoutMs?: number;
467
- /** Minimum tools the server must expose to pass. Default 1. */
468
- minTools?: number;
469
- }
470
- /** Build a `Verifier` that boots a generated MCP server over stdio and checks it exposes tools. */
471
- declare function mcpServeVerifier(spec: McpServeSpec): Verifier;
472
- //#endregion
473
438
  //#region src/improvement/official-optimizers.d.ts
474
439
  /** Runtime context appended to an official optimizer's own configuration. */
475
440
  interface OfficialOptimizerContextOptions {
@@ -502,11 +467,6 @@ type OfficialSkillOptOptions<TScenario extends {
502
467
  id: string;
503
468
  kind: string;
504
469
  }, TArtifact = unknown> = Omit<SkillOptOptimizationMethodConfig<TScenario, TArtifact>, 'background' | 'evaluationId' | 'searchLedger'> & OfficialOptimizerContextOptions;
505
- /** Missing optional Python dependencies for an official optimizer. */
506
- declare class OfficialOptimizerUnavailableError extends ConfigError {
507
- readonly optimizer: 'gepa' | 'skillopt';
508
- constructor(optimizer: 'gepa' | 'skillopt', cause: unknown);
509
- }
510
470
  /**
511
471
  * Build a complete method backed by GEPA's official Optimize Anything API.
512
472
  *
@@ -544,11 +504,6 @@ declare function officialSkillOpt<TScenario extends {
544
504
  * is the process itself.
545
505
  */
546
506
  declare const optimizerMethod: string;
547
- /**
548
- * The senior authoring process for `authorStrategy` — the same method, shaped
549
- * to the strategy contract (author-blind, conserved budget, one module out).
550
- */
551
- declare const strategyAuthorMethod: string;
552
507
  //#endregion
553
508
  //#region src/improvement/profile-improvement-harness.d.ts
554
509
  type ProfileImprovementHarnessTrainOptions = Omit<ImproveTrainingOptions, 'mode'>;
@@ -596,71 +551,6 @@ interface ProfileImprovementHarness<TScenario extends Scenario$1, TArtifact> {
596
551
  */
597
552
  declare function createProfileImprovementHarness<TScenario extends Scenario$1, TArtifact>(options: CreateProfileImprovementHarnessOptions<TScenario, TArtifact>): ProfileImprovementHarness<TScenario, TArtifact>;
598
553
  //#endregion
599
- //#region src/improvement/prompt-instructions-profile-components.d.ts
600
- /** Stable component-name prefix used for `profile.prompt.instructions`. */
601
- declare const PROMPT_INSTRUCTION_COMPONENT_PREFIX = "prompt.instruction:";
602
- /**
603
- * Canonical `ImproveProfileComponents` mapping for the ordered
604
- * `AgentProfile.prompt.instructions` list.
605
- *
606
- * Use it with `surface: 'agent-profile'` when an optimizer should rewrite the
607
- * exact instruction texts without being allowed to change their count, order,
608
- * labels, or any unrelated profile field:
609
- *
610
- * ```ts
611
- * await improve(profile, {
612
- * surface: 'agent-profile',
613
- * profileComponents: promptInstructionsProfileComponents,
614
- * // method, scenarios, judge, executionRef, agent, ...
615
- * })
616
- * ```
617
- *
618
- * Component names are zero-padded and stable. Runtime's existing component
619
- * materializer requires every candidate to preserve the exact key set and
620
- * verifies that `apply(read(profile))` reproduces the baseline profile. A
621
- * profile with no prompt instructions is refused rather than inventing a
622
- * sentinel instruction that could accidentally ship.
623
- */
624
- declare const promptInstructionsProfileComponents: ImproveProfileComponents;
625
- //#endregion
626
- //#region src/improvement/raw-trace-distiller.d.ts
627
- interface RawTraceDistillerOptions {
628
- /** Anchor the emitted paths at this run root instead of the generation `runDir`
629
- * the loop passes in. Normally unset — each call points at that generation's
630
- * own directory (`input.runDir`). Pass an absolute path when you construct the
631
- * producer ahead of the loop and want a fixed anchor (e.g. a test fixture). */
632
- runDir?: string;
633
- /** Max candidates to surface trace paths for, worst-scoring first. Default 12. */
634
- maxCandidates?: number;
635
- /** Max failing cells to enumerate per candidate before collapsing the rest into
636
- * an "ls the candidate dir" pointer. Default 8. */
637
- maxCellsPerCandidate?: number;
638
- /** Max concrete file paths to list per cell (the agent can always `ls` the dir
639
- * for the rest). Default 24. */
640
- maxFilesPerCell?: number;
641
- /** Findings to fall back to when the generation had NO failing cells, so a
642
- * clean round never wipes the proposer's steering context. Mirrors the default
643
- * distiller's static-seed fallback. Default: a single instruction finding. */
644
- fallbackFindings?: ReadonlyArray<ProposalFinding>;
645
- }
646
- /**
647
- * Build an `analyzeGeneration` producer that feeds the proposer RAW-TRACE
648
- * FILESYSTEM CONTEXT — paths into the prior generation's real run traces plus a
649
- * grep/cat-to-diagnose instruction — instead of a pre-summarized digest.
650
- *
651
- * Drop-in for `analyzeGeneration` on `improve({ surface: 'code' })`:
652
- *
653
- * await improve({
654
- * surface: 'code',
655
- * findings: seedFindings,
656
- * code: { repoRoot, profile, executorForWorktree, buildPrompt },
657
- * runDir: '/abs/run', // MUST be a real path — the traces live here
658
- * analyzeGeneration: rawTraceDistiller(),
659
- * scenarios, judge, agent,
660
- * })
661
- */
662
- declare function rawTraceDistiller<TScenario extends Scenario$1 = Scenario$1, TArtifact = unknown>(options?: RawTraceDistillerOptions): NonNullable<SelfImproveOptions<TScenario, TArtifact>['analyzeGeneration']>;
663
- //#endregion
664
554
  //#region src/improvement/reflective-generator.d.ts
665
555
  interface ReflectiveGeneratorOptions {
666
556
  /** Bind proposal reads and paid calls to this candidate's worktree and account. */
@@ -734,27 +624,6 @@ interface ReflectiveProfileProposerOptions {
734
624
  /** Build the maintained reflective proposer for a profile text surface. */
735
625
  declare function reflectiveProfileProposer(options: ReflectiveProfileProposerOptions): SurfaceProposer<ProposalFinding>;
736
626
  //#endregion
737
- //#region src/improvement/rollout-policy.d.ts
738
- /** The profile extensions namespace the policy persists under. */
739
- declare const ROLLOUT_POLICY_EXTENSION = "structural-rollout";
740
- /** Parse a serialized policy surface. Returns `undefined` for non-strings,
741
- * malformed JSON, or values outside the policy invariants. Unknown fields are
742
- * dropped; supported optional fields are preserved. */
743
- declare function parseRolloutPolicy(surface: MutableSurface$1): StructuralRolloutPolicy | undefined;
744
- /** Normalize an untyped policy bag (a parsed surface or a profile extension) into
745
- * a full `StructuralRolloutPolicy`, defaults merged. Returns `undefined` when any
746
- * present dial violates the policy invariants (mirrors `resolvePolicy`: integer
747
- * k ≥ 1, repairRounds ≥ 0, testgen ≥ 0) — a corrupt config must read as "not
748
- * configured", never as a fabricated recipe. */
749
- declare function normalizeRolloutPolicy(raw: unknown): StructuralRolloutPolicy | undefined;
750
- /** Stable serialization with fixed field order. */
751
- declare function serializeRolloutPolicy(policy: StructuralRolloutPolicy): string;
752
- /** Read the persisted policy off the profile. `undefined` when the profile does
753
- * not opt into structural rollout. */
754
- declare function structuralRolloutPolicyFromProfile(profile: ReadonlyAgentProfile): StructuralRolloutPolicy | undefined;
755
- /** Persist a detached policy under the profile extension without mutating the input. */
756
- declare function applyRolloutPolicyToProfile(profile: ReadonlyAgentProfile, policy: StructuralRolloutPolicy): AgentProfile;
757
- //#endregion
758
627
  //#region src/knowledge/activation.d.ts
759
628
  interface CreateKnowledgeImprovementActivationExecutorOptions extends Omit<PromoteKnowledgeCandidateOptions, 'root' | 'candidate'> {
760
629
  root: string;
@@ -769,8 +638,6 @@ interface KnowledgeImprovementActivationExecutor {
769
638
  declare function createKnowledgeImprovementActivationExecutor(options: CreateKnowledgeImprovementActivationExecutorOptions): KnowledgeImprovementActivationExecutor;
770
639
  //#endregion
771
640
  //#region src/knowledge/supervised-update.d.ts
772
- /** Standing prompt for a supervisor that grows a shared knowledge base through spawned researchers. */
773
- declare const RESEARCH_SUPERVISOR_SYSTEM_PROMPT: string;
774
641
  interface KnowledgeReadinessCheckInput {
775
642
  root: string;
776
643
  goal: string;
@@ -784,46 +651,6 @@ type KnowledgeReadinessCheckResult = boolean | {
784
651
  metadata?: Record<string, unknown>;
785
652
  };
786
653
  type KnowledgeReadinessCheck = (input: KnowledgeReadinessCheckInput) => Promise<KnowledgeReadinessCheckResult> | KnowledgeReadinessCheckResult;
787
- interface SupervisedKnowledgeUpdateInput {
788
- goal?: string;
789
- root?: string;
790
- candidateRoot?: string;
791
- findings?: readonly unknown[];
792
- metadata?: Record<string, unknown>;
793
- }
794
- interface SupervisedKnowledgeUpdateResult {
795
- applied: boolean;
796
- summary: string;
797
- supervised: SupervisedResult<unknown>;
798
- metadata: NonNullable<RagKnowledgeUpdateResult['metadata']>;
799
- }
800
- interface SupervisedKnowledgeUpdateOptions {
801
- root: string;
802
- goal: string;
803
- readiness: KnowledgeReadinessCheck;
804
- readinessSpecs?: readonly unknown[];
805
- readinessTaskId?: string;
806
- readinessOptions?: unknown;
807
- findings?: readonly unknown[];
808
- metadata?: Record<string, unknown>;
809
- budget: Budget;
810
- backend?: ExecutorConfig;
811
- makeWorkerAgent?: SuperviseOptions['makeWorkerAgent'];
812
- /** Caller-owned exact supervisor harness/provider/model identity. */
813
- supervisorProfile: SupervisorProfile;
814
- superviseOptions?: Partial<Omit<SuperviseOptions, 'budget' | 'backend' | 'deliverable' | 'makeWorkerAgent' | 'allowedModels'>>;
815
- allowedModels?: readonly string[];
816
- runSupervised?: (profile: SupervisorProfile, task: unknown, opts: SuperviseOptions) => Promise<SupervisedResult<unknown>>;
817
- }
818
- type SupervisedKnowledgeUpdater = (input: SupervisedKnowledgeUpdateInput) => Promise<SupervisedKnowledgeUpdateResult>;
819
- /** Build the completion check a supervised KB update uses to stop only when the KB is ready. */
820
- declare function knowledgeReadinessDeliverable(options: Pick<SupervisedKnowledgeUpdateOptions, 'root' | 'goal' | 'readiness' | 'readinessSpecs' | 'readinessTaskId' | 'readinessOptions'>): DeliverableSpec<unknown>;
821
- /** Create an `improveKnowledgeBase` update callback backed by runtime supervision. */
822
- declare function createSupervisedKnowledgeUpdater(options: SupervisedKnowledgeUpdateOptions): SupervisedKnowledgeUpdater;
823
- /** Run a runtime supervisor that updates one candidate knowledge base and stops on readiness. */
824
- declare function runSupervisedKnowledgeUpdate(options: SupervisedKnowledgeUpdateOptions): Promise<SupervisedKnowledgeUpdateResult>;
825
- /** Format the supervisor task with the KB root, readiness requirements, current findings, and metadata. */
826
- declare function formatSupervisedKnowledgeTask(options: Pick<SupervisedKnowledgeUpdateOptions, 'root' | 'goal' | 'readinessSpecs' | 'readinessTaskId' | 'findings' | 'metadata'>): string;
827
654
  //#endregion
828
655
  //#region src/knowledge/improvement-job.d.ts
829
656
  interface RunKnowledgeImprovementJobOptions extends Omit<KnowledgeImprovementOptions, 'updateKnowledge'> {
@@ -870,16 +697,6 @@ interface KnowledgeImprovementExperimentBundles {
870
697
  baseline: AgentCandidateBundle;
871
698
  candidate: AgentCandidateBundle;
872
699
  }
873
- interface AgentKnowledgeReadinessCheckOptions {
874
- goal: string;
875
- readinessSpecs?: readonly KnowledgeReadinessSpec[];
876
- readinessTaskId?: string;
877
- readiness?: Omit<BuildEvalKnowledgeBundleOptions, 'taskId' | 'index' | 'specs'>;
878
- strict?: boolean;
879
- kbQuality?: KnowledgeBaseQualityOptions;
880
- }
881
- /** Build the default readiness check backed by `@tangle-network/agent-knowledge` validation and scoring. */
882
- declare function createAgentKnowledgeReadinessCheck(options: AgentKnowledgeReadinessCheckOptions): KnowledgeReadinessCheck;
883
700
  /** Produce a frozen KB candidate while leaving live knowledge content unchanged. */
884
701
  declare function runKnowledgeImprovementJob(options: RunKnowledgeImprovementJobOptions): Promise<KnowledgeImprovementJobResult>;
885
702
  /** Attach both frozen knowledge inputs to one otherwise-identical bundle pair. */
@@ -984,20 +801,6 @@ declare const ROUTER_PRICE_SOURCE: {
984
801
  };
985
802
  //#endregion
986
803
  //#region src/pricing/router-prices.d.ts
987
- /** USD per token. A null cache rate means the Router lists none, so those tokens bill at `input`. */
988
- interface RouterTokenPrice {
989
- readonly provider: string;
990
- readonly input: number;
991
- readonly cachedInput: number | null;
992
- readonly cacheWrite: number | null;
993
- readonly output: number;
994
- }
995
- /**
996
- * The Router's price for a model id as a harness or provider reports it: exact, then without a
997
- * `@snapshot` suffix, then its last path segment (`openai/gpt-6.1-sol` is `gpt-6.1-sol`), each
998
- * as written and lowercased. Undefined when the Router prices no such model.
999
- */
1000
- declare function routerTokenPrice(model: string): RouterTokenPrice | undefined;
1001
804
  interface TokenWork {
1002
805
  readonly model: string;
1003
806
  /** The whole prompt, cache reads and writes included. */
@@ -1077,5 +880,5 @@ declare function readinessServerSentEvent(report: KnowledgeReadinessReport$1, op
1077
880
  /** Serialize a `RuntimeStreamEvent` as a Server-Sent Event string. @stable */
1078
881
  declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
1079
882
  //#endregion
1080
- export { type AgentAdapter, type AgentBackendContext, type AgentBackendInput, AgentEvalError, type AgentEvalErrorCode, type AgentExecutionBackend, type AgentKnowledgeProvider, type AgentKnowledgeReadinessCheckOptions, type AgentRuntimeEvent, type AgentRuntimeEventSink, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorExecutorForWorktree, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AuthSource, type BackendCallPolicy, type BackendErrorDetail, BackendTransportError, type BuildPromptFindingsInput, type CandidateGenerator, type ChatModelCandidate, type ChatModelValidation, type CheckpointServingPort, type CircuitBreakerConfig, ConfigError, type ControlBudget, type ControlDecision, type ControlEvalResult, type ControlRunResult, type ControlStep, type ControlledTrainingCommand, type Conversation, type ConversationDriveState, type ConversationParticipant, type ConversationPolicy, type ConversationResult, type ConversationStreamEvent, type ConversationTurn, type CreateKnowledgeImprovementActivationExecutorOptions, type CreateProfileImprovementHarnessOptions, type D1DatabaseLike, type D1StmtLike, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, type DataAcquisitionPlan, type DecideSearchImprovementOptions, type DeepReadonly, type DelegatedLoopMode, type DelegatedLoopRegistry, type DelegatedLoopResult, type DelegatedLoopRunner, type HaltContext, type HaltPredicate, type HaltReason, type HaltSignal, type ImproveCandidateValidationInput, type ImproveCandidateValidator, type ImproveCodeBaseOptions, type ImproveCodeOptions, type ImproveCodeResult, type ImproveCodeRunOptions, type ImproveCost, type ImproveCustomCodeGeneratorOptions, type ImproveLineage, type ImproveMethodContext, type ImproveMethodFactory, type ImproveMethodLineage, type ImproveMethodOptions, type ImproveMethodResult, type ImproveMethodSource, type ImproveOptimizationRunOptions, type ImproveOptions, type ImproveProfileAgent, type ImproveProfileComponents, type ImproveProfileSurface, type ImproveResult, type ImproveRuntimeCodeGeneratorOptions, type ImproveScenarioPartitions, type ImproveSearchAgent, type ImproveSearchIdentity, type ImproveSearchMethod, type ImproveSearchOptions, type ImproveSearchResult, type ImproveSkillsOptions, type ImproveSurface, type ImproveTrainingOptions, type ImproveTrainingResult, type ImprovementCandidate, type ImprovementCodeCandidate, type ImprovementProfileCandidate, InMemoryRuntimeSessionStore, JudgeError, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, type KnowledgeReadinessDecision, type KnowledgeReadinessReport, type KnowledgeRequirement, type LoopRunnerCliArgs, type LoopRunnerCliResult, type LoopSpanNode, type McpServeSpec, type ModelInfo, NotFoundError, type OfficialGepaOptions, type OfficialOptimizerContextOptions, OfficialOptimizerUnavailableError, type OfficialSensitiveCandidateInput, type OfficialSkillOptOptions, type OpenAIChatResponseFormat, type OpenAIChatTool, type OpenAIChatToolChoice, type OtelAttribute, type OtelExportConfig, type OtelExportStats, type OtelExporter, type OtelSpan, PROMPT_INSTRUCTION_COMPONENT_PREFIX, type PersonaConversationResult, type PersonaDriver, PlannerError, type ProfileImprovementHarness, type ProfileImprovementHarnessRunOptions, type ProfileImprovementHarnessTrainOptions, type ProfileTrainer, type ProfileTrainerRequest, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, ROUTER_PRICE_SOURCE, type RawTraceDistillerOptions, type ReadonlyAgentProfile, type ReflectiveGeneratorOptions, type ReflectiveProfileProposerOptions, type ReflectiveProposerChat, type ReflectiveProposerParent, type ReflectiveProposerReply, type ResearchLoopResult, type ResearchLoopRunnerOptions, type ResolvedChatModel, RetainedInteractiveAdmissionError, RetainedInteractiveBindingError, RetainedRunAdmissionError, RetainedRunDispatchBindingError, type RetryBackoff, type RetryableErrorPredicate, type RouterEnv, type RouterTokenPrice, type RunAgentTaskOptions, type RunAgentTaskStreamOptions, type RunConversationOptions, type RunDelegatedLoopOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunRecord, type RuntimeCanonicalStreamEvent, type RuntimeDecisionEvidenceRef, type RuntimeDecisionKind, type RuntimeDecisionPoint, type RuntimeEventCollector, type RuntimeEventOtelOptions, type RuntimeFailureCause, type RuntimeFailureCode, type RuntimeFailureContext, type RuntimeFailureOwner, type RuntimeHookContext, type RuntimeHookErrorContext, type RuntimeHookEvent, type RuntimeHookPhase, type RuntimeHookTarget, type RuntimeHooks, type RuntimeRunCompleteInput, type RuntimeRunCost, type RuntimeRunHandle, type RuntimeRunOptions, type RuntimeRunPersistenceAdapter, type RuntimeRunRow, RuntimeRunStateError, type RuntimeRunStatus, type RuntimeSession, type RuntimeSessionStore, type RuntimeStreamEvent, type RuntimeStreamEventCollector, type RuntimeStreamEventSink, type RuntimeStreamEventSummary, type RuntimeTelemetryOptions, type SanitizedKnowledgeReadinessReport, type SanitizedKnowledgeRequirement, type SearchCellContext, type SearchDispatchContext, SearchEnvironmentFault, type SearchImprovementDecision, type SearchLane, type SearchLaneKind, type SearchLaneOptions, type SearchMethodOptions, type SearchPromotion, type SearchTraceOptions, type ServerSentEventOptions, type SharedBoxSearchLane, type SqlAdapter, type SupervisedKnowledgeUpdateInput, type SupervisedKnowledgeUpdateOptions, type SupervisedKnowledgeUpdateResult, type SupervisedKnowledgeUpdater, type TokenWork, type TrainingBoundaryResult, type TrainingDatasetDocument, type TurnOrder, ValidationError, type Verifier, type VerifyResult, type VetoedFact, type WorktreeCheckRunner, type WorktreeLoopRunnerOptions, agenticGenerator, applyRolloutPolicyToProfile, applyRunRecordDefaults, auditLoopRunner, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, buildLoopSpanNodes, buildRuntimeEventOtelSpans, cleanModelId, commandVerifier, composeRuntimeHooks, createAgentKnowledgeReadinessCheck, createCommandProfileTrainer, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOpenInferenceFileExporter, createOtelExporter, createProfileExecutionBackend, createProfileImprovementHarness, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, createSupervisedKnowledgeUpdater, d1ToSqlAdapter, decideKnowledgeReadiness, decideSearchImprovement, dedicatedLane, defaultBuildPrompt, defineConversation, defineRuntimeHooks, findingLines, formatSupervisedKnowledgeTask, generateSpanId, getModels, improve, isDelegatedLoopMode, isSearchEnvironmentFault, isolatedCheckBoxEvidenceSchema, isolatedCheckResultSchema, knowledgeReadinessDeliverable, loopEventToOtelSpan, mcpBuildPrompt, mcpServeVerifier, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, normalizeRolloutPolicy, notifyRuntimeDecisionPoint, notifyRuntimeHookEvent, officialGepa, officialSkillOpt, optimizerMethod, padSpanId, padTraceId, parseLoopRunnerArgv, parseRolloutPolicy, priceTokens, promptInstructionsProfileComponents, rawTraceDistiller, readinessServerSentEvent, reflectiveGenerator, reflectiveProfileProposer, researchLoopRunner, resolveChatModel, resolveRouterBaseUrl, routerLane, routerTokenPrice, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runDelegatedLoop, runKnowledgeImprovementJob, runLoopRunnerCli, runPersonaConversation, runPersonaDispatch, runSupervisedKnowledgeUpdate, runtimeFailureCause, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, searchMethod, serializeRolloutPolicy, settlementFailureCause, sharedBoxLane, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, subscriptionLane, toOtelAttributes, toolBuildPrompt, validateChatModelId, worktreeLoopRunner };
883
+ export { type AgentAdapter, type AgentBackendContext, type AgentBackendInput, AgentEvalError, type AgentEvalErrorCode, type AgentExecutionBackend, type AgentImprovementActivationReconciliation, type AgentImprovementActivationResultStore, type AgentImprovementActivationTransition, type AgentKnowledgeProvider, type AgentRuntimeEvent, type AgentRuntimeEventSink, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorExecutorForWorktree, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AuthSource, type BackendCallPolicy, BackendTransportError, type CandidateGenerator, type ChatModelCandidate, type ChatModelValidation, type CheckpointServingPort, type CircuitBreakerConfig, ConfigError, type ControlBudget, type ControlDecision, type ControlEvalResult, type ControlRunResult, type ControlStep, type ControlledTrainingCommand, type Conversation, type ConversationDriveState, type ConversationParticipant, type ConversationPolicy, type ConversationResult, type ConversationStreamEvent, type ConversationTurn, type CreateKnowledgeImprovementActivationExecutorOptions, type CreateProfileImprovementHarnessOptions, DEFAULT_ROUTER_BASE_URL, type DataAcquisitionPlan, type DecideSearchImprovementOptions, type DeepReadonly, type DelegatedLoopRunner, type HaltContext, type HaltPredicate, type HaltReason, type HaltSignal, type ImproveCandidateValidationInput, type ImproveCandidateValidator, type ImproveCodeBaseOptions, type ImproveCodeOptions, type ImproveCodeResult, type ImproveCodeRunOptions, type ImproveCost, type ImproveCustomCodeGeneratorOptions, type ImproveLineage, type ImproveMethodContext, type ImproveMethodFactory, type ImproveMethodLineage, type ImproveMethodOptions, type ImproveMethodResult, type ImproveMethodSource, type ImproveOptimizationRunOptions, type ImproveProfileAgent, type ImproveProfileComponents, type ImproveProfileSurface, type ImproveRuntimeCodeGeneratorOptions, type ImproveScenarioPartitions, type ImproveSearchAgent, type ImproveSearchIdentity, type ImproveSearchMethod, type ImproveSearchOptions, type ImproveSearchResult, type ImproveSkillsOptions, type ImproveSurface, type ImproveTrainingOptions, type ImproveTrainingResult, type ImprovementCodeCandidate, type ImprovementProfileCandidate, InMemoryRuntimeSessionStore, JudgeError, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, type KnowledgeReadinessDecision, type KnowledgeReadinessReport, type KnowledgeRequirement, type ModelInfo, NotFoundError, type OfficialGepaOptions, type OfficialOptimizerContextOptions, type OfficialSensitiveCandidateInput, type OfficialSkillOptOptions, type OpenAIChatResponseFormat, type OpenAIChatTool, type OpenAIChatToolChoice, type OtelAttribute, type OtelExportConfig, type OtelExportStats, type OtelExporter, type OtelSpan, type PersonaConversationResult, type PersonaDriver, type ProfileImprovementHarness, type ProfileImprovementHarnessRunOptions, type ProfileImprovementHarnessTrainOptions, type ProfileTrainer, type ProfileTrainerRequest, ROUTER_PRICE_SOURCE, type ReadonlyAgentProfile, type ReflectiveGeneratorOptions, type ReflectiveProfileProposerOptions, type ReflectiveProposerChat, type ReflectiveProposerParent, type ReflectiveProposerReply, type ResolvedChatModel, type RetryBackoff, type RetryableErrorPredicate, type RouterEnv, type RunAgentTaskOptions, type RunAgentTaskStreamOptions, type RunConversationOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunRecord, type RuntimeCanonicalStreamEvent, type RuntimeEventCollector, type RuntimeFailureCause, type RuntimeFailureCode, type RuntimeFailureOwner, type RuntimeHookContext, type RuntimeHookErrorContext, type RuntimeHookEvent, type RuntimeHookPhase, type RuntimeHookTarget, type RuntimeHooks, type RuntimeRunCompleteInput, type RuntimeRunCost, type RuntimeRunHandle, type RuntimeRunOptions, type RuntimeRunPersistenceAdapter, type RuntimeRunRow, RuntimeRunStateError, type RuntimeRunStatus, type RuntimeSession, type RuntimeSessionStore, type RuntimeStreamEvent, type RuntimeStreamEventCollector, type RuntimeStreamEventSink, type RuntimeStreamEventSummary, type RuntimeTelemetryOptions, type SanitizedKnowledgeReadinessReport, type SanitizedKnowledgeRequirement, type SearchCellContext, type SearchDispatchContext, SearchEnvironmentFault, type SearchImprovementDecision, type SearchLane, type SearchLaneKind, type SearchLaneOptions, type SearchMethodOptions, type SearchPromotion, type SearchTraceOptions, type ServerSentEventOptions, type SharedBoxSearchLane, type TokenWork, type TrainingBoundaryResult, type TurnOrder, ValidationError, type Verifier, type VerifyResult, agenticGenerator, applyRunRecordDefaults, auditLoopRunner, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, cleanModelId, commandVerifier, composeRuntimeHooks, createCommandProfileTrainer, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOtelExporter, createProfileExecutionBackend, createProfileImprovementHarness, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, decideKnowledgeReadiness, decideSearchImprovement, dedicatedLane, defineRuntimeHooks, getModels, improve, isolatedCheckBoxEvidenceSchema, isolatedCheckResultSchema, loopEventToOtelSpan, officialGepa, officialSkillOpt, optimizerMethod, padSpanId, padTraceId, priceTokens, readinessServerSentEvent, reflectiveGenerator, reflectiveProfileProposer, resolveChatModel, resolveRouterBaseUrl, routerLane, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runKnowledgeImprovementJob, runPersonaConversation, runPersonaDispatch, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, searchMethod, sharedBoxLane, startRuntimeRun, subscriptionLane, validateChatModelId };
1081
884
  //# sourceMappingURL=index.d.ts.map