@tangle-network/agent-runtime 0.323.0 → 0.325.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 (89) hide show
  1. package/dist/{activation-DpipXGti.js → activation--9-iyGR8.js} +3 -3
  2. package/dist/{activation-DpipXGti.js.map → activation--9-iyGR8.js.map} +1 -1
  3. package/dist/{activation-D4hHi27J.d.ts → activation-Q3CJgiCu.d.ts} +2 -2
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{bundle-Cw-QdGmH.js → bundle-BJJmfEsw.js} +2 -2
  7. package/dist/{bundle-Cw-QdGmH.js.map → bundle-BJJmfEsw.js.map} +1 -1
  8. package/dist/candidate-execution/index.js +5 -5
  9. package/dist/{coordination-driver-COSL19sL.js → coordination-driver-DkkUVe9g.js} +271 -156
  10. package/dist/coordination-driver-DkkUVe9g.js.map +1 -0
  11. package/dist/{delegate-silSKPSB.js → delegate-BDsaIl2K.js} +2 -2
  12. package/dist/{delegate-silSKPSB.js.map → delegate-BDsaIl2K.js.map} +1 -1
  13. package/dist/{durable-file-DWQA4ooo.js → durable-file-B_eJr6Mb.js} +40 -8
  14. package/dist/durable-file-B_eJr6Mb.js.map +1 -0
  15. package/dist/durable.d.ts +2 -2
  16. package/dist/durable.js +70 -40
  17. package/dist/durable.js.map +1 -1
  18. package/dist/graph-Cuz6Ubzd.js +348 -0
  19. package/dist/graph-Cuz6Ubzd.js.map +1 -0
  20. package/dist/{graph-registry-BuJbzTzF.js → graph-registry-DAI6KNXB.js} +19 -34
  21. package/dist/graph-registry-DAI6KNXB.js.map +1 -0
  22. package/dist/{improvement-cycle-BeN9wahG.js → improvement-cycle-B5Z8cHKx.js} +10 -10
  23. package/dist/{improvement-cycle-BeN9wahG.js.map → improvement-cycle-B5Z8cHKx.js.map} +1 -1
  24. package/dist/index.d.ts +7 -7
  25. package/dist/index.js +18 -15
  26. package/dist/index.js.map +1 -1
  27. package/dist/intelligence.d.ts +3 -3
  28. package/dist/intelligence.js +7 -7
  29. package/dist/jsonl-file-DBv31uPi.js +206 -0
  30. package/dist/jsonl-file-DBv31uPi.js.map +1 -0
  31. package/dist/kernel.d.ts +2 -2
  32. package/dist/kernel.js +13 -13
  33. package/dist/{loop-runner-bin-DkhIbFBp.js → loop-runner-bin-C16VR9cI.js} +3 -3
  34. package/dist/{loop-runner-bin-DkhIbFBp.js.map → loop-runner-bin-C16VR9cI.js.map} +1 -1
  35. package/dist/{loop-runner-bin-Bsux_MGx.d.ts → loop-runner-bin-Co7JKSwi.d.ts} +2 -2
  36. package/dist/loop-runner-bin.d.ts +1 -1
  37. package/dist/loop-runner-bin.js +1 -1
  38. package/dist/mcp/bin.js +3 -3
  39. package/dist/mcp/index.d.ts +3 -3
  40. package/dist/mcp/index.js +6 -6
  41. package/dist/{model-policy-CNe257pB.js → model-policy-CyCUwHed.js} +2 -2
  42. package/dist/model-policy-CyCUwHed.js.map +1 -0
  43. package/dist/{openai-tools-e02ABKl0.d.ts → openai-tools-CbgZrQJ_.d.ts} +2 -2
  44. package/dist/{prepare-CFQLx9e3.js → prepare-DpavgJT8.js} +4 -4
  45. package/dist/{prepare-CFQLx9e3.js.map → prepare-DpavgJT8.js.map} +1 -1
  46. package/dist/{profile-BTbpdL9h.js → profile-ZS7_KLwK.js} +2 -2
  47. package/dist/{profile-BTbpdL9h.js.map → profile-ZS7_KLwK.js.map} +1 -1
  48. package/dist/profiles.d.ts +1 -1
  49. package/dist/profiles.js +1 -1
  50. package/dist/{protected-model-port-f1N2f0Uq.js → protected-model-port-BLyyfL3l.js} +4 -4
  51. package/dist/{protected-model-port-f1N2f0Uq.js.map → protected-model-port-BLyyfL3l.js.map} +1 -1
  52. package/dist/{protected-redaction-DylCC_ot.js → protected-redaction-DFCeo4vg.js} +2 -2
  53. package/dist/{protected-redaction-DylCC_ot.js.map → protected-redaction-DFCeo4vg.js.map} +1 -1
  54. package/dist/{provision-supervisor-DdWu6mqu.js → provision-supervisor-4BoHpGFJ.js} +7 -7
  55. package/dist/{provision-supervisor-DdWu6mqu.js.map → provision-supervisor-4BoHpGFJ.js.map} +1 -1
  56. package/dist/{run-layout-DSCWdbX2.js → run-layout-Cu8H7aeh.js} +2 -2
  57. package/dist/{run-layout-DSCWdbX2.js.map → run-layout-Cu8H7aeh.js.map} +1 -1
  58. package/dist/{runtime-DhPIc7XV.js → runtime-B9X_U-aV.js} +84 -80
  59. package/dist/runtime-B9X_U-aV.js.map +1 -0
  60. package/dist/{search-executor-BS-WJpti.js → search-executor-C-b4NaFl.js} +13 -5
  61. package/dist/search-executor-C-b4NaFl.js.map +1 -0
  62. package/dist/{server-CEDOUOdz.js → server-CcHaXgUT.js} +4 -4
  63. package/dist/{server-CEDOUOdz.js.map → server-CcHaXgUT.js.map} +1 -1
  64. package/dist/{supervise-CwWI7kIk.js → supervise-BlaB4CeL.js} +739 -22
  65. package/dist/supervise-BlaB4CeL.js.map +1 -0
  66. package/dist/{supervisor-CSKkm-e1.js → supervisor-fq4JGynd.js} +10940 -10787
  67. package/dist/supervisor-fq4JGynd.js.map +1 -0
  68. package/dist/testing.d.ts +1 -1
  69. package/dist/testing.js +14 -14
  70. package/dist/{top-app-DaiR4LXM.js → top-app-BaMw1W2z.js} +2 -2
  71. package/dist/{top-app-DaiR4LXM.js.map → top-app-BaMw1W2z.js.map} +1 -1
  72. package/dist/tui/bin.js +1 -1
  73. package/dist/tui/index.d.ts +1 -1
  74. package/dist/tui/index.js +2 -2
  75. package/dist/{index-7h7-L6Tk.d.ts → types-5r334mcg.d.ts} +17425 -17267
  76. package/dist/{workspace-streams-DFAhW7hF.js → workspace-streams-CcoARX4v.js} +2 -2
  77. package/dist/{workspace-streams-DFAhW7hF.js.map → workspace-streams-CcoARX4v.js.map} +1 -1
  78. package/package.json +3 -3
  79. package/skills/profile-authoring/SKILL.md +1 -1
  80. package/dist/coordination-driver-COSL19sL.js.map +0 -1
  81. package/dist/durable-file-DWQA4ooo.js.map +0 -1
  82. package/dist/graph-DbQ-BXKr.js +0 -805
  83. package/dist/graph-DbQ-BXKr.js.map +0 -1
  84. package/dist/graph-registry-BuJbzTzF.js.map +0 -1
  85. package/dist/model-policy-CNe257pB.js.map +0 -1
  86. package/dist/runtime-DhPIc7XV.js.map +0 -1
  87. package/dist/search-executor-BS-WJpti.js.map +0 -1
  88. package/dist/supervise-CwWI7kIk.js.map +0 -1
  89. package/dist/supervisor-CSKkm-e1.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { $l as SupervisorProfile, $x as sanitizeRuntimeStreamEvent, AT as AgentKnowledgeProvider, Ax as OtelSpan, BC as PlannerError, BT as OpenAIChatTool, Bx as padTraceId, DT as AgentBackendContext, Dx as OtelExportConfig, ET as AgentAdapter, Ex as OtelAttribute, FC as AgentEvalErrorCode, FT as AgentTaskSpec, Fx as createOpenInferenceFileExporter, GC as RuntimeRunStateError, GT as RuntimeSession, Gx as RuntimeStreamEventSummary, HC as RetainedInteractiveBindingError, HT as RunAgentTaskOptions, Hx as RuntimeEventCollector, IC as BackendTransportError, IT as AgentTaskStatus, Ix as createOtelExporter, Jx as SanitizedKnowledgeRequirement, KC as ValidationError, KT as RuntimeSessionStore, Kx as RuntimeTelemetryOptions, LC as ConfigError, LT as BackendErrorDetail, Lx as generateSpanId, MT as AgentRuntimeEventSink, Mx as buildLoopOtelSpans, NT as AgentTaskContext, Ng as ExecutorConfig, Nx as buildLoopSpanNodes, OT as AgentBackendInput, Ox as OtelExportStats, PC as AgentEvalError, PT as AgentTaskRunResult, Px as buildRuntimeEventOtelSpans, Qx as sanitizeKnowledgeReadinessReport, RC as JudgeError, RT as KnowledgeReadinessDecision, Rf as Budget, Rx as loopEventToOtelSpan, ST as startRuntimeRun, Tx as LoopSpanNode, UC as RetainedRunAdmissionError, UT as RunAgentTaskStreamOptions, Ux as RuntimeStreamEventCollector, VC as RetainedInteractiveAdmissionError, VT as OpenAIChatToolChoice, Vx as toOtelAttributes, WC as RetainedRunDispatchBindingError, WT as RuntimeCanonicalStreamEvent, Wp as SupervisedResult, Wx as RuntimeStreamEventSink, Xx as createRuntimeStreamEventCollector, Yf as ExecutorFactory, Yv as WorktreeCheckRunner, Yx as createRuntimeEventCollector, Zx as sanitizeAgentRuntimeEvent, _T as RuntimeRunHandle, _f as D1DatabaseLike, bT as RuntimeRunRow, bc as IsolatedCheckResult, bf as d1ToSqlAdapter, gT as RuntimeRunCost, hT as RuntimeRunCompleteInput, jC as Redactor, jT as AgentRuntimeEvent, jx as RuntimeEventOtelOptions, kT as AgentExecutionBackend, kr as StructuralRolloutPolicy, kx as OtelExporter, qT as RuntimeStreamEvent, qx as SanitizedKnowledgeReadinessReport, rC as DeliverableSpec, sl as SuperviseOptions, vT as RuntimeRunOptions, vc as IsolatedCheckBoxEvidence, vf as D1StmtLike, xT as RuntimeRunStatus, yT as RuntimeRunPersistenceAdapter, yf as SqlAdapter, zC as NotFoundError, zT as OpenAIChatResponseFormat, zx as padSpanId } from "./index-7h7-L6Tk.js";
2
- import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
3
- import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
1
+ import { $S as generateSpanId, Ad as IsolatedCheckBoxEvidence, C as RuntimeFailureCause, CT as RuntimeRunHandle, Cw as RetainedRunDispatchBindingError, D as runtimeFailureCause, DT as RuntimeRunStatus, E as RuntimeFailureOwner, ET as RuntimeRunRow, GS as OtelExporter, HS as OtelAttribute, Ih as ExecutorConfig, J as ExecutorFactory, JC as SqlAdapter, JS as buildLoopOtelSpans, KC as D1DatabaseLike, KS as OtelSpan, L as Budget, Md as IsolatedCheckResult, O as settlementFailureCause, OT as startRuntimeRun, Pf as SuperviseOptions, Po as StructuralRolloutPolicy, QS as createOtelExporter, S as RuntimeStreamEvent, ST as RuntimeRunCost, Sw as RetainedRunAdmissionError, T as RuntimeFailureContext, TT as RuntimeRunPersistenceAdapter, Tw as ValidationError, US as OtelExportConfig, Ut as SupervisedResult, VS as LoopSpanNode, WS as OtelExportStats, Wp as SupervisorProfile, XS as buildRuntimeEventOtelSpans, YC as d1ToSqlAdapter, YS as buildLoopSpanNodes, ZS as createOpenInferenceFileExporter, _ as RunAgentTaskOptions, _C as WorktreeCheckRunner, _w as JudgeError, a as AgentKnowledgeProvider, aC as RuntimeStreamEventCollector, b as RuntimeSession, bw as RetainedInteractiveAdmissionError, c as AgentTaskContext, cC as RuntimeTelemetryOptions, cv as DeliverableSpec, d as AgentTaskStatus, dC as createRuntimeEventCollector, eC as loopEventToOtelSpan, f as BackendErrorDetail, fC as createRuntimeStreamEventCollector, g as OpenAIChatToolChoice, gw as ConfigError, h as OpenAIChatTool, hC as sanitizeRuntimeStreamEvent, hw as BackendTransportError, i as AgentExecutionBackend, iC as RuntimeEventCollector, l as AgentTaskRunResult, lC as SanitizedKnowledgeReadinessReport, m as OpenAIChatResponseFormat, mC as sanitizeKnowledgeReadinessReport, mw as AgentEvalErrorCode, n as AgentBackendContext, nC as padTraceId, o as AgentRuntimeEvent, oC as RuntimeStreamEventSink, p as KnowledgeReadinessDecision, pC as sanitizeAgentRuntimeEvent, pw as AgentEvalError, qC as D1StmtLike, qS as RuntimeEventOtelOptions, r as AgentBackendInput, rC as toOtelAttributes, s as AgentRuntimeEventSink, sC as RuntimeStreamEventSummary, t as AgentAdapter, tC as padSpanId, u as AgentTaskSpec, uC as SanitizedKnowledgeRequirement, uw as Redactor, v as RunAgentTaskStreamOptions, vw as NotFoundError, w as RuntimeFailureCode, wT as RuntimeRunOptions, ww as RuntimeRunStateError, x as RuntimeSessionStore, xT as RuntimeRunCompleteInput, xw as RetainedInteractiveBindingError, y as RuntimeCanonicalStreamEvent, yw as PlannerError } from "./types-5r334mcg.js";
4
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";
5
3
  import { P as AgentCandidateOutputArtifactPort } from "./workspace-streams-U6_UfOXu.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-D4hHi27J.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-Bsux_MGx.js";
8
- import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-e02ABKl0.js";
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-Q3CJgiCu.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-Co7JKSwi.js";
8
+ import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-CbgZrQJ_.js";
9
9
  import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
10
10
  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
11
  import { ZodType } from "zod";
@@ -1077,5 +1077,5 @@ declare function readinessServerSentEvent(report: KnowledgeReadinessReport$1, op
1077
1077
  /** Serialize a `RuntimeStreamEvent` as a Server-Sent Event string. @stable */
1078
1078
  declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
1079
1079
  //#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 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, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, searchMethod, serializeRolloutPolicy, sharedBoxLane, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, subscriptionLane, toOtelAttributes, toolBuildPrompt, validateChatModelId, worktreeLoopRunner };
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 };
1081
1081
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
- import { Br as ROUTER_PRICE_SOURCE, Jr as buildLoopOtelSpans, Kr as defaultRedactorIdentityMaterial, Oa as providerMessageText, Qr as createOtelExporter, Rr as priceTokens, Xr as buildRuntimeEventOtelSpans, Yr as buildLoopSpanNodes, Zr as createOpenInferenceFileExporter, aa as executableAgentProfileSnapshot, ai as createRuntimeEventCollector, ci as sanitizeKnowledgeReadinessReport, ei as generateSpanId, ii as toOtelAttributes, li as sanitizeRuntimeStreamEvent, ni as padSpanId, oi as createRuntimeStreamEventCollector, qr as resolveRedactor, ri as padTraceId, si as sanitizeAgentRuntimeEvent, ti as loopEventToOtelSpan, zr as routerTokenPrice } from "./supervisor-CSKkm-e1.js";
1
+ import { Ai as settlementFailureCause, Ca as defaultRedactorIdentityMaterial, Ci as executableAgentProfileSnapshot, Cr as createRuntimeEventCollector, Da as providerMessageText, Dr as sanitizeRuntimeStreamEvent, Er as sanitizeKnowledgeReadinessReport, Sr as toOtelAttributes, Tr as sanitizeAgentRuntimeEvent, ar as priceTokens, br as padSpanId, fr as buildLoopOtelSpans, gr as createOtelExporter, hr as createOpenInferenceFileExporter, ki as runtimeFailureCause, mr as buildRuntimeEventOtelSpans, or as routerTokenPrice, pr as buildLoopSpanNodes, sr as ROUTER_PRICE_SOURCE, vr as generateSpanId, wa as resolveRedactor, wr as createRuntimeStreamEventCollector, xr as padTraceId, yr as loopEventToOtelSpan } from "./supervisor-fq4JGynd.js";
2
2
  import { a as JudgeError, c as RetainedInteractiveAdmissionError, d as RetainedRunDispatchBindingError, f as RuntimeRunStateError, i as ConfigError, l as RetainedInteractiveBindingError, m as ValidationError, o as NotFoundError, r as BackendTransportError, s as PlannerError, t as AgentEvalError, u as RetainedRunAdmissionError } from "./errors-DodWX-cb.js";
3
- import { $ as createIterableBackend, Q as streamAgentTurn, X as strategyAuthorMethod, Y as optimizerMethod, at as startOrResumeRuntimeSession, et as createSandboxPromptBackend, i as isSearchEnvironmentFault, it as nowIso, l as sharedBoxLane, nt as InMemoryRuntimeSessionStore, o as routerLane, ot as touchSession, r as dedicatedLane, rt as newRuntimeSession, t as SearchEnvironmentFault, tt as normalizeBackendStreamEvent, u as subscriptionLane, y as decideSearchImprovement } from "./search-executor-BS-WJpti.js";
4
- import { I as embeddedCandidateArtifact, L as immutableCandidateValue, M as canonicalCandidateBytes$1, N as canonicalCandidateDigest$1, R as omitTopLevelDigest, f as persistCandidateOutputArtifact, s as captureAgentCandidateWorkspace } from "./workspace-streams-DFAhW7hF.js";
5
- import { t as assertExecutableAgentProfile } from "./model-policy-CNe257pB.js";
6
- import { a as createRuntimeUsageTotals, i as addRuntimeUsage, o as isUsageAmount, t as createAgentImprovementActivationResult } from "./activation-DpipXGti.js";
7
- import { $t as McpSpawnFault, en as connectStdioMcp } from "./runtime-DhPIc7XV.js";
3
+ import { $ as createIterableBackend, Q as streamAgentTurn, X as strategyAuthorMethod, Y as optimizerMethod, at as startOrResumeRuntimeSession, et as createSandboxPromptBackend, i as isSearchEnvironmentFault, it as nowIso, l as sharedBoxLane, nt as InMemoryRuntimeSessionStore, o as routerLane, ot as touchSession, r as dedicatedLane, rt as newRuntimeSession, t as SearchEnvironmentFault, tt as normalizeBackendStreamEvent, u as subscriptionLane, y as decideSearchImprovement } from "./search-executor-C-b4NaFl.js";
4
+ import { I as embeddedCandidateArtifact, L as immutableCandidateValue, M as canonicalCandidateBytes$1, N as canonicalCandidateDigest$1, R as omitTopLevelDigest, f as persistCandidateOutputArtifact, s as captureAgentCandidateWorkspace } from "./workspace-streams-CcoARX4v.js";
5
+ import { t as assertExecutableAgentProfile } from "./model-policy-CyCUwHed.js";
6
+ import { a as createRuntimeUsageTotals, i as addRuntimeUsage, o as isUsageAmount, t as createAgentImprovementActivationResult } from "./activation--9-iyGR8.js";
7
+ import { $t as McpSpawnFault, en as connectStdioMcp } from "./runtime-B9X_U-aV.js";
8
8
  import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
9
- import { $ as commandVerifier, B as assertCandidateValidator, G as rawTraceDistiller, H as parseExecutionRef, J as normalizeRolloutPolicy, K as ROLLOUT_POLICY_EXTENSION, L as improve, Q as agenticGenerator, R as createCommandProfileTrainer, U as privateValuePaths, W as withMethodRuntimeControls, X as serializeRolloutPolicy, Y as parseRolloutPolicy, Z as structuralRolloutPolicyFromProfile, et as defaultBuildPrompt, q as applyRolloutPolicyToProfile, z as searchMethod } from "./improvement-cycle-BeN9wahG.js";
10
- import { t as sealAgentCandidateBundle } from "./bundle-Cw-QdGmH.js";
11
- import { r as supervise } from "./supervise-CwWI7kIk.js";
12
- import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-DkhIbFBp.js";
9
+ import { $ as commandVerifier, B as assertCandidateValidator, G as rawTraceDistiller, H as parseExecutionRef, J as normalizeRolloutPolicy, K as ROLLOUT_POLICY_EXTENSION, L as improve, Q as agenticGenerator, R as createCommandProfileTrainer, U as privateValuePaths, W as withMethodRuntimeControls, X as serializeRolloutPolicy, Y as parseRolloutPolicy, Z as structuralRolloutPolicyFromProfile, et as defaultBuildPrompt, q as applyRolloutPolicyToProfile, z as searchMethod } from "./improvement-cycle-B5Z8cHKx.js";
10
+ import { t as sealAgentCandidateBundle } from "./bundle-BJJmfEsw.js";
11
+ import { r as supervise } from "./supervise-BlaB4CeL.js";
12
+ import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-C16VR9cI.js";
13
13
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-DoQ32vpe.js";
14
14
  import { agentCandidateKnowledgeSchema, agentCandidateWorkspaceManifestMaterialSchema, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
15
15
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
16
+ import { z } from "zod";
16
17
  import { createHash } from "node:crypto";
17
- import { spawnSync } from "node:child_process";
18
18
  import { readFileSync, realpathSync } from "node:fs";
19
19
  import { isAbsolute, relative, resolve, sep } from "node:path";
20
+ import { spawnSync } from "node:child_process";
20
21
  import { realpath } from "node:fs/promises";
21
- import { z } from "zod";
22
22
  import { gepaOptimizationMethod, skillOptOptimizationMethod } from "@tangle-network/agent-eval/campaign";
23
23
  import { evaluateKnowledgeBaseReadiness, fromAgentCandidateKnowledgeRef, improveKnowledgeBase, knowledgeImprovementCandidateRef, loadKnowledgeImprovementActivationResult, normalizeKnowledgeStateScope, promoteKnowledgeCandidate, restoreKnowledgeCandidateBaseline, toAgentCandidateKnowledgeRef, withKnowledgeImprovementComparison } from "@tangle-network/agent-knowledge";
24
24
  //#region src/runtime/profile-execution-backend.ts
@@ -2730,6 +2730,7 @@ async function* runAgentTaskStream(options) {
2730
2730
  kind: "backend",
2731
2731
  message: combinedMessage
2732
2732
  };
2733
+ const failure = runtimeFailureCause(err, { signal: options.signal });
2733
2734
  const backendError = streamEvent({
2734
2735
  type: "backend_error",
2735
2736
  task,
@@ -2737,7 +2738,8 @@ async function* runAgentTaskStream(options) {
2737
2738
  backend: options.backend.kind,
2738
2739
  message: combinedMessage,
2739
2740
  recoverable: !options.signal?.aborted,
2740
- error: errorDetail
2741
+ error: errorDetail,
2742
+ failure
2741
2743
  });
2742
2744
  await store?.appendEvent?.(session.id, backendError);
2743
2745
  yield backendError;
@@ -2757,7 +2759,8 @@ async function* runAgentTaskStream(options) {
2757
2759
  status,
2758
2760
  reason: message,
2759
2761
  text: finalText || void 0,
2760
- error: errorDetail
2762
+ error: errorDetail,
2763
+ failure
2761
2764
  });
2762
2765
  await store?.appendEvent?.(session.id, final);
2763
2766
  yield final;
@@ -3086,6 +3089,6 @@ function stripNewlines(value) {
3086
3089
  return value.replace(/[\r\n]/g, " ");
3087
3090
  }
3088
3091
  //#endregion
3089
- export { AgentEvalError, BackendTransportError, ConfigError, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, InMemoryRuntimeSessionStore, JudgeError, NotFoundError, OfficialOptimizerUnavailableError, PROMPT_INSTRUCTION_COMPONENT_PREFIX, PlannerError, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, ROUTER_PRICE_SOURCE, RetainedInteractiveAdmissionError, RetainedInteractiveBindingError, RetainedRunAdmissionError, RetainedRunDispatchBindingError, RuntimeRunStateError, SearchEnvironmentFault, ValidationError, 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, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, searchMethod, serializeRolloutPolicy, sharedBoxLane, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, subscriptionLane, toOtelAttributes, toolBuildPrompt, validateChatModelId, worktreeLoopRunner };
3092
+ export { AgentEvalError, BackendTransportError, ConfigError, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, InMemoryRuntimeSessionStore, JudgeError, NotFoundError, OfficialOptimizerUnavailableError, PROMPT_INSTRUCTION_COMPONENT_PREFIX, PlannerError, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, ROUTER_PRICE_SOURCE, RetainedInteractiveAdmissionError, RetainedInteractiveBindingError, RetainedRunAdmissionError, RetainedRunDispatchBindingError, RuntimeRunStateError, SearchEnvironmentFault, ValidationError, 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 };
3090
3093
 
3091
3094
  //# sourceMappingURL=index.js.map