@tangle-network/agent-runtime 0.338.0 → 0.340.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 (144) hide show
  1. package/dist/{activation-kbkAuSmY.js → activation-D2PVljaw.js} +5 -18
  2. package/dist/{activation-kbkAuSmY.js.map → activation-D2PVljaw.js.map} +1 -1
  3. package/dist/{activation-CsbNax2X.d.ts → activation-DGDl4wwI.d.ts} +4 -24
  4. package/dist/agent.d.ts +4 -18
  5. package/dist/agent.js +3 -21
  6. package/dist/agent.js.map +1 -1
  7. package/dist/analyst-loop.d.ts +2 -2
  8. package/dist/{bundle-DM60AI2B.js → bundle-DNUq-OPW.js} +2 -2
  9. package/dist/{bundle-DM60AI2B.js.map → bundle-DNUq-OPW.js.map} +1 -1
  10. package/dist/candidate-execution/index.d.ts +4 -101
  11. package/dist/candidate-execution/index.js +10 -395
  12. package/dist/candidate-execution/index.js.map +1 -1
  13. package/dist/{delegate-Se1YZKMb.js → delegate-CtJIS-tp.js} +2 -2
  14. package/dist/{delegate-Se1YZKMb.js.map → delegate-CtJIS-tp.js.map} +1 -1
  15. package/dist/{driver-control-acknowledgers-T2a1Ouay.js → driver-control-acknowledgers-MTrs8HAF.js} +15 -11
  16. package/dist/driver-control-acknowledgers-MTrs8HAF.js.map +1 -0
  17. package/dist/{durable-file-B_eJr6Mb.js → durable-file-gNI9ILAn.js} +1 -3
  18. package/dist/durable-file-gNI9ILAn.js.map +1 -0
  19. package/dist/durable.d.ts +3 -35
  20. package/dist/durable.js +10 -10
  21. package/dist/durable.js.map +1 -1
  22. package/dist/{graph-CY0wH838.js → graph-DfWqp_1e.js} +4 -4
  23. package/dist/graph-DfWqp_1e.js.map +1 -0
  24. package/dist/{graph-registry-By0tUj4S.js → graph-registry-BnO64cn8.js} +3 -3
  25. package/dist/{graph-registry-By0tUj4S.js.map → graph-registry-BnO64cn8.js.map} +1 -1
  26. package/dist/{improve-CWGBT13K.js → improve-CKRVQqzt.js} +8 -35
  27. package/dist/improve-CKRVQqzt.js.map +1 -0
  28. package/dist/{improvement-adapter-D5gwwoXQ.d.ts → improvement-adapter-sIthWkcN.d.ts} +3 -21
  29. package/dist/index.d.ts +10 -215
  30. package/dist/index.js +91 -302
  31. package/dist/index.js.map +1 -1
  32. package/dist/intelligence.d.ts +11 -143
  33. package/dist/intelligence.js +7 -81
  34. package/dist/intelligence.js.map +1 -1
  35. package/dist/{jsonl-file-DBv31uPi.js → jsonl-file-C9Kde_0Z.js} +2 -2
  36. package/dist/{jsonl-file-DBv31uPi.js.map → jsonl-file-C9Kde_0Z.js.map} +1 -1
  37. package/dist/kernel.d.ts +4 -3
  38. package/dist/kernel.js +12 -14
  39. package/dist/loop-runner-C4EWEcXf.d.ts +32 -0
  40. package/dist/loop-runner-DNWbTcVm.js +59 -0
  41. package/dist/loop-runner-DNWbTcVm.js.map +1 -0
  42. package/dist/loop-runner-bin.d.ts +32 -2
  43. package/dist/loop-runner-bin.js +93 -1
  44. package/dist/loop-runner-bin.js.map +1 -0
  45. package/dist/mcp/bin.js +3 -3
  46. package/dist/mcp/index.d.ts +99 -418
  47. package/dist/mcp/index.js +121 -203
  48. package/dist/mcp/index.js.map +1 -1
  49. package/dist/mcp/memory-bin.js +231 -1
  50. package/dist/mcp/memory-bin.js.map +1 -1
  51. package/dist/model-policy-CyCUwHed.js.map +1 -1
  52. package/dist/placement.d.ts +2 -33
  53. package/dist/placement.js +1 -35
  54. package/dist/placement.js.map +1 -1
  55. package/dist/platform.d.ts +188 -1
  56. package/dist/platform.js +129 -1
  57. package/dist/platform.js.map +1 -1
  58. package/dist/{prepare-Bt0IouPq.js → prepare-FzJoS68l.js} +8 -160
  59. package/dist/prepare-FzJoS68l.js.map +1 -0
  60. package/dist/{profile-Do-5xO_D.js → profile-DToH0XEs.js} +2 -2
  61. package/dist/profile-DToH0XEs.js.map +1 -0
  62. package/dist/profile-materialization-bPm0gGLO.d.ts +49 -0
  63. package/dist/profiles.d.ts +2 -2
  64. package/dist/profiles.js +3 -40
  65. package/dist/profiles.js.map +1 -1
  66. package/dist/{protected-model-port-DGxQ8_YM.d.ts → protected-model-port-DVVh-hEk.d.ts} +3 -33
  67. package/dist/protected-redaction-DFCeo4vg.js.map +1 -1
  68. package/dist/{provision-supervisor-0jMufp4h.js → provision-supervisor-DqvWXmAE.js} +6 -6
  69. package/dist/{provision-supervisor-0jMufp4h.js.map → provision-supervisor-DqvWXmAE.js.map} +1 -1
  70. package/dist/{run-cancellation-BoW5Sg9Y.js → run-cancellation-C9oL62sW.js} +3 -7
  71. package/dist/{run-cancellation-BoW5Sg9Y.js.map → run-cancellation-C9oL62sW.js.map} +1 -1
  72. package/dist/{runtime-D37zRSs7.js → runtime-C55Zgo1R.js} +2531 -2889
  73. package/dist/runtime-C55Zgo1R.js.map +1 -0
  74. package/dist/{runtime-hooks-Bj6wJHlH.d.ts → runtime-hooks-nsqxSUFL.d.ts} +2 -6
  75. package/dist/{sandbox-profile-compat-xSoVtdWw.js → sandbox-profile-compat-DRr3JwDx.js} +2 -4
  76. package/dist/sandbox-profile-compat-DRr3JwDx.js.map +1 -0
  77. package/dist/{search-executor-DmgUm5p7.js → search-executor-ChOlRBgg.js} +3 -3
  78. package/dist/search-executor-ChOlRBgg.js.map +1 -0
  79. package/dist/{server-DQHJszfk.js → server-DkVBSN_S.js} +362 -67
  80. package/dist/server-DkVBSN_S.js.map +1 -0
  81. package/dist/{structural-rollout-DAvIE8mw.js → structural-rollout-C1LEk_zq.js} +80 -80
  82. package/dist/structural-rollout-C1LEk_zq.js.map +1 -0
  83. package/dist/{substrate-B0TYNrXn.js → substrate-CGDFTSRh.js} +2 -9
  84. package/dist/substrate-CGDFTSRh.js.map +1 -0
  85. package/dist/{supervise-WuPAwfPh.js → supervise-CaUAxZZP.js} +92 -75
  86. package/dist/supervise-CaUAxZZP.js.map +1 -0
  87. package/dist/{supervisor-CPG1I9UN.js → supervisor-VXuN2OHT.js} +205 -319
  88. package/dist/supervisor-VXuN2OHT.js.map +1 -0
  89. package/dist/testing.d.ts +2 -2
  90. package/dist/testing.js +13 -13
  91. package/dist/testing.js.map +1 -1
  92. package/dist/tool-loop.d.ts +1 -1
  93. package/dist/{tool-server-Dqer2M4_.js → tool-server-XV4aJwoQ.js} +2 -2
  94. package/dist/tool-server-XV4aJwoQ.js.map +1 -0
  95. package/dist/top-snapshot-CbZE1JsU.js +502 -0
  96. package/dist/top-snapshot-CbZE1JsU.js.map +1 -0
  97. package/dist/tui/bin.js +711 -1
  98. package/dist/tui/bin.js.map +1 -1
  99. package/dist/tui/index.d.ts +2 -70
  100. package/dist/tui/index.js +3 -3
  101. package/dist/{types-zWfqDjeL.d.ts → types-Cwrea-bU.d.ts} +2 -17
  102. package/dist/{types-CrNWif8-.d.ts → types-DZ6L0Bv3.d.ts} +765 -2152
  103. package/dist/workspace-store/index.d.ts +1 -107
  104. package/dist/workspace-store/index.js +1 -415
  105. package/dist/workspace-store/index.js.map +1 -1
  106. package/dist/{workspace-streams-BZZds1Fw.d.ts → workspace-streams-BiS4ABah.d.ts} +3 -18
  107. package/package.json +1 -1
  108. package/skills/agent-graphs/references/authoring.md +3 -2
  109. package/dist/coder-yhVWbdWc.js +0 -40
  110. package/dist/coder-yhVWbdWc.js.map +0 -1
  111. package/dist/delegation-status-CF4D0NZ_.js +0 -358
  112. package/dist/delegation-status-CF4D0NZ_.js.map +0 -1
  113. package/dist/driver-control-acknowledgers-T2a1Ouay.js.map +0 -1
  114. package/dist/durable-file-B_eJr6Mb.js.map +0 -1
  115. package/dist/graph-CY0wH838.js.map +0 -1
  116. package/dist/improve-CWGBT13K.js.map +0 -1
  117. package/dist/integrations-6xttbPi9.d.ts +0 -190
  118. package/dist/integrations-dFi-ALk7.js +0 -132
  119. package/dist/integrations-dFi-ALk7.js.map +0 -1
  120. package/dist/kb-gate-C8z2juK8.d.ts +0 -80
  121. package/dist/kb-gate-DpaSwXVx.js +0 -80
  122. package/dist/kb-gate-DpaSwXVx.js.map +0 -1
  123. package/dist/loop-runner-bin-CFnrAHpl.d.ts +0 -164
  124. package/dist/loop-runner-bin-CdPlhy9g.js +0 -246
  125. package/dist/loop-runner-bin-CdPlhy9g.js.map +0 -1
  126. package/dist/memory-server-DXQ8IxGR.js +0 -234
  127. package/dist/memory-server-DXQ8IxGR.js.map +0 -1
  128. package/dist/openai-tools-DoQ32vpe.js +0 -44
  129. package/dist/openai-tools-DoQ32vpe.js.map +0 -1
  130. package/dist/openai-tools-zh2I_uD7.d.ts +0 -24
  131. package/dist/prepare-Bt0IouPq.js.map +0 -1
  132. package/dist/profile-Do-5xO_D.js.map +0 -1
  133. package/dist/profile-materialization-BnoEf1co.d.ts +0 -96
  134. package/dist/runtime-D37zRSs7.js.map +0 -1
  135. package/dist/sandbox-profile-compat-xSoVtdWw.js.map +0 -1
  136. package/dist/search-executor-DmgUm5p7.js.map +0 -1
  137. package/dist/server-DQHJszfk.js.map +0 -1
  138. package/dist/structural-rollout-DAvIE8mw.js.map +0 -1
  139. package/dist/substrate-B0TYNrXn.js.map +0 -1
  140. package/dist/supervise-WuPAwfPh.js.map +0 -1
  141. package/dist/supervisor-CPG1I9UN.js.map +0 -1
  142. package/dist/tool-server-Dqer2M4_.js.map +0 -1
  143. package/dist/top-app-C55Wa7uy.js +0 -1214
  144. package/dist/top-app-C55Wa7uy.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
1
+ import { a as ImprovementProposalSource } from "./types-Cwrea-bU.js";
2
2
  import { AnalystFinding, FindingSubject } from "@tangle-network/agent-eval";
3
3
  //#region src/agent/surfaces.d.ts
4
4
  /**
@@ -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-sIthWkcN.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,17 +1,16 @@
1
- import { $T as startRuntimeRun, AC as BackendTransportError, Ab as createOtelExporter, BC as ValidationError, Bb as RuntimeTelemetryOptions, C as RuntimeFailureCause, Cb as OtelExporter, D as runtimeFailureCause, Db as buildLoopSpanNodes, E as RuntimeFailureOwner, Eb as buildLoopOtelSpans, F as Budget, FC as RetainedInteractiveAdmissionError, Fb as toOtelAttributes, Ga as StructuralRolloutPolicy, Gb as sanitizeAgentRuntimeEvent, Hb as SanitizedKnowledgeRequirement, IC as RetainedInteractiveBindingError, Ib as RuntimeEventCollector, JT as RuntimeRunHandle, KT as RuntimeRunCompleteInput, Kb as sanitizeKnowledgeReadinessReport, LC as RetainedRunAdmissionError, Lb as RuntimeStreamEventCollector, Ld as SuperviseOptions, MC as JudgeError, Mb as loopEventToOtelSpan, NC as NotFoundError, Nb as padSpanId, O as settlementFailureCause, OC as AgentEvalError, Ob as buildRuntimeEventOtelSpans, PC as PlannerError, Pb as padTraceId, QT as RuntimeRunStatus, RC as RetainedRunDispatchBindingError, Rb as RuntimeStreamEventSink, S as RuntimeStreamEvent, Sb as OtelExportStats, Sh as ExecutorConfig, T as RuntimeFailureContext, TC as Redactor, Tb as RuntimeEventOtelOptions, UC as ExecutorFactory, Ub as createRuntimeEventCollector, Vb as SanitizedKnowledgeReadinessReport, Wb as createRuntimeStreamEventCollector, XT as RuntimeRunPersistenceAdapter, YT as RuntimeRunOptions, Yb as WorktreeCheckRunner, ZT as RuntimeRunRow, _ as RunAgentTaskOptions, a as AgentKnowledgeProvider, b as RuntimeSession, bb as OtelAttribute, c as AgentTaskContext, cC as D1StmtLike, d as AgentTaskStatus, f as BackendErrorDetail, g as OpenAIChatToolChoice, h as OpenAIChatTool, i as AgentExecutionBackend, jC as ConfigError, jb as generateSpanId, ju as IsolatedCheckResult, kC as AgentEvalErrorCode, kb as createOpenInferenceFileExporter, kp as SupervisorProfile, ku as IsolatedCheckBoxEvidence, l as AgentTaskRunResult, lC as SqlAdapter, m as OpenAIChatResponseFormat, n as AgentBackendContext, o as AgentRuntimeEvent, p as KnowledgeReadinessDecision, qT as RuntimeRunCost, qb as sanitizeRuntimeStreamEvent, r as AgentBackendInput, s as AgentRuntimeEventSink, sC as D1DatabaseLike, st as SupervisedResult, t as AgentAdapter, ty as DeliverableSpec, u as AgentTaskSpec, uC as d1ToSqlAdapter, v as RunAgentTaskStreamOptions, w as RuntimeFailureCode, wb as OtelSpan, x as RuntimeSessionStore, xb as OtelExportConfig, y as RuntimeCanonicalStreamEvent, yb as LoopSpanNode, zC as RuntimeRunStateError, zb as RuntimeStreamEventSummary } from "./types-CrNWif8-.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-BZZds1Fw.js";
4
- import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
5
- import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
6
- import { $ as ImproveCandidateValidationInput, $t as Verifier, At as ImprovementCodeCandidate, B as searchMethod, Bt as SharedBoxSearchLane, Ct as ImproveSearchIdentity, Dt as ImproveSkillsOptions, Et as ImproveSearchResult, Ft as SearchEnvironmentFault, G as ControlledTrainingCommand, Gt as subscriptionLane, H as SearchImprovementDecision, Ht as isSearchEnvironmentFault, It as SearchLane, J as ProfileTrainer, Jt as AgenticGeneratorExecutorForWorktree, K as ImproveTrainingOptions, Kt as DeepReadonly, Lt as SearchLaneKind, Mt as SearchDispatchContext, Nt as SearchPromotion, Ot as ImproveSurface, Pt as SearchCellContext, Q as createCommandProfileTrainer, Qt as AgenticGeneratorShotReceipt, R as improve, Rt as SearchLaneOptions, St as ImproveSearchAgent, Tt as ImproveSearchOptions, U as decideSearchImprovement, Ut as routerLane, V as DecideSearchImprovementOptions, Vt as dedicatedLane, W as CheckpointServingPort, Wt as sharedBoxLane, X as TrainingBoundaryResult, Xt as AgenticGeneratorShotDisposition, Y as ProfileTrainerRequest, Yt as AgenticGeneratorOptions, Z as TrainingDatasetDocument, Zt as AgenticGeneratorShotExecution, _t as ImproveProfileComponents, at as ImproveCost, bt as ImproveRuntimeCodeGeneratorOptions, ct as ImproveMethodContext, dt as ImproveMethodOptions, en as VerifyResult, et as ImproveCandidateValidator, ft as ImproveMethodResult, gt as ImproveProfileAgent, ht as ImproveOptions, i as AgentImprovementActivationTransition, in as CandidateGenerator, it as ImproveCodeRunOptions, jt as ImprovementProfileCandidate, kt as ImprovementCandidate, lt as ImproveMethodFactory, mt as ImproveOptimizationRunOptions, n as AgentImprovementActivationResultStore, nn as commandVerifier, nt as ImproveCodeOptions, ot as ImproveCustomCodeGeneratorOptions, pt as ImproveMethodSource, q as ImproveTrainingResult, qt as ReadonlyAgentProfile, rn as defaultBuildPrompt, rt as ImproveCodeResult, st as ImproveLineage, t as AgentImprovementActivationReconciliation, tn as agenticGenerator, tt as ImproveCodeBaseOptions, ut as ImproveMethodLineage, vt as ImproveProfileSurface, wt as ImproveSearchMethod, xt as ImproveScenarioPartitions, yt as ImproveResult, z as SearchMethodOptions, zt as SearchTraceOptions } from "./activation-CsbNax2X.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-CFnrAHpl.js";
8
- import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-zh2I_uD7.js";
1
+ import { A_ as OtelSpan, B_ as RuntimeTelemetryOptions, C as RuntimeFailureCause, D_ as OtelExportConfig, E_ as OtelAttribute, F_ as padTraceId, G_ as sanitizeKnowledgeReadinessReport, H_ as SanitizedKnowledgeRequirement, I_ as RuntimeEventCollector, Ju as SuperviseOptions, Kl as IsolatedCheckResult, L_ as RuntimeStreamEventCollector, M as Budget, M_ as createOtelExporter, N_ as loopEventToOtelSpan, O_ as OtelExportStats, P_ as padSpanId, Qy as Redactor, R_ as RuntimeStreamEventSink, S as RuntimeStreamEvent, T as RuntimeFailureOwner, U_ as createRuntimeEventCollector, V_ as SanitizedKnowledgeReadinessReport, W_ as createRuntimeStreamEventCollector, Wl as IsolatedCheckBoxEvidence, _ as RunAgentTaskOptions, a as AgentKnowledgeProvider, ab as NotFoundError, b as RuntimeSession, c as AgentTaskContext, d as AgentTaskStatus, dS as RuntimeRunHandle, eb as AgentEvalError, fS as RuntimeRunOptions, g as OpenAIChatToolChoice, gS as startRuntimeRun, h as OpenAIChatTool, hS as RuntimeRunStatus, i as AgentExecutionBackend, ib as JudgeError, it as SupervisedResult, j_ as buildLoopOtelSpans, jp as ExecutorConfig, k_ as OtelExporter, l as AgentTaskRunResult, lS as RuntimeRunCompleteInput, lb as ExecutorFactory, m as OpenAIChatResponseFormat, mS as RuntimeRunRow, n as AgentBackendContext, nb as BackendTransportError, o as AgentRuntimeEvent, ob as ValidationError, p as KnowledgeReadinessDecision, pS as RuntimeRunPersistenceAdapter, r as AgentBackendInput, rb as ConfigError, s as AgentRuntimeEventSink, t as AgentAdapter, tb as AgentEvalErrorCode, u as AgentTaskSpec, uS as RuntimeRunCost, v as RunAgentTaskStreamOptions, w as RuntimeFailureCode, x as RuntimeSessionStore, y as RuntimeCanonicalStreamEvent, yf as SupervisorProfile, z_ as RuntimeStreamEventSummary } from "./types-DZ6L0Bv3.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
+ import { a as ImprovementProposalSource } from "./types-Cwrea-bU.js";
5
+ import { i as SurfaceImprovementEdit } from "./improvement-adapter-sIthWkcN.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-DGDl4wwI.js";
7
+ import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-C4EWEcXf.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: {
@@ -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. */
@@ -1027,14 +830,6 @@ declare function decideKnowledgeReadiness(report: KnowledgeReadinessReport$1, op
1027
830
  }): KnowledgeReadinessDecision;
1028
831
  //#endregion
1029
832
  //#region src/run.d.ts
1030
- /** Stamp cross-cutting defaults onto adapter-projected RunRecords without
1031
- * overriding anything the adapter set explicitly:
1032
- * - `scenarioId` — the run's scenario, when the record omits one.
1033
- * - `failureClass` — the control layer's failure classification promoted
1034
- * onto the canonical cross-agent key, but ONLY when it's a real taxonomy
1035
- * class. This is what lets the substrate aggregate failures across every
1036
- * agent in one vocabulary instead of per-agent ad-hoc strings. */
1037
- declare function applyRunRecordDefaults(records: RunRecord$1[], scenarioId: string, controlFailureClass: string | undefined): RunRecord$1[];
1038
833
  /**
1039
834
  * Single-shot task lifecycle for adapter-driven tasks: readiness-gated, emits the runtime lifecycle event vocabulary, session-store pluggable.
1040
835
  *
@@ -1077,5 +872,5 @@ declare function readinessServerSentEvent(report: KnowledgeReadinessReport$1, op
1077
872
  /** Serialize a `RuntimeStreamEvent` as a Server-Sent Event string. @stable */
1078
873
  declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
1079
874
  //#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 };
875
+ 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, 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, 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, sanitizeKnowledgeReadinessReport, searchMethod, sharedBoxLane, startRuntimeRun, subscriptionLane, validateChatModelId };
1081
876
  //# sourceMappingURL=index.d.ts.map