@tangle-network/agent-runtime 10.0.21 → 10.0.23

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 (46) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{activation-B0arteLE.d.ts → activation-DOzkzTrl.d.ts} +22 -4
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +1 -1
  5. package/dist/{delegate-AfWnrUWf.js → delegate-DCZPcYy8.js} +2 -2
  6. package/dist/{delegate-AfWnrUWf.js.map → delegate-DCZPcYy8.js.map} +1 -1
  7. package/dist/{driver-control-acknowledgers-CgeEYeHA.js → driver-control-acknowledgers-CgGt3NcX.js} +2 -2
  8. package/dist/driver-control-acknowledgers-CgGt3NcX.js.map +1 -0
  9. package/dist/durable.d.ts +1 -1
  10. package/dist/durable.js +2 -2
  11. package/dist/{graph-hVouinKw.js → graph-B3pBmvnf.js} +3 -3
  12. package/dist/{graph-hVouinKw.js.map → graph-B3pBmvnf.js.map} +1 -1
  13. package/dist/{improve-BjKhfQ_b.js → improve-DhOOHHRz.js} +185 -59
  14. package/dist/improve-DhOOHHRz.js.map +1 -0
  15. package/dist/index.d.ts +4 -4
  16. package/dist/index.js +37 -24
  17. package/dist/index.js.map +1 -1
  18. package/dist/intelligence.d.ts +2 -2
  19. package/dist/intelligence.js +1 -1
  20. package/dist/kernel.d.ts +1 -1
  21. package/dist/kernel.js +6 -6
  22. package/dist/{loop-runner-BFC781pC.d.ts → loop-runner-CcXKPnMR.d.ts} +2 -2
  23. package/dist/{loop-runner-BVTcuWZk.js → loop-runner-L594gDYR.js} +2 -2
  24. package/dist/{loop-runner-BVTcuWZk.js.map → loop-runner-L594gDYR.js.map} +1 -1
  25. package/dist/loop-runner-bin.d.ts +1 -1
  26. package/dist/loop-runner-bin.js +1 -1
  27. package/dist/mcp/bin.js +2 -2
  28. package/dist/mcp/index.d.ts +1 -1
  29. package/dist/mcp/index.js +3 -3
  30. package/dist/profiles.d.ts +1 -1
  31. package/dist/{provision-supervisor-KXJqdixT.js → provision-supervisor-Be-6HBsX.js} +2 -2
  32. package/dist/{provision-supervisor-KXJqdixT.js.map → provision-supervisor-Be-6HBsX.js.map} +1 -1
  33. package/dist/{runtime-CFjS-eQV.js → runtime-Dfwc9cjt.js} +6 -6
  34. package/dist/{runtime-CFjS-eQV.js.map → runtime-Dfwc9cjt.js.map} +1 -1
  35. package/dist/{server-D87su_-4.js → server-RCsa_gyH.js} +2 -2
  36. package/dist/{server-D87su_-4.js.map → server-RCsa_gyH.js.map} +1 -1
  37. package/dist/{supervise-CQfJyuLL.js → supervise-037R-zl1.js} +2 -2
  38. package/dist/{supervise-CQfJyuLL.js.map → supervise-037R-zl1.js.map} +1 -1
  39. package/dist/testing.d.ts +1 -1
  40. package/dist/testing.js +10 -10
  41. package/dist/tui/index.d.ts +1 -1
  42. package/dist/tui/index.js +1 -1
  43. package/dist/{types-YXZL7Wxi.d.ts → types-Pi5uCS88.d.ts} +33 -33
  44. package/package.json +1 -1
  45. package/dist/driver-control-acknowledgers-CgeEYeHA.js.map +0 -1
  46. package/dist/improve-BjKhfQ_b.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { $y as SanitizedKnowledgeRequirement, AS as AgentEvalError, By as OtelExportConfig, C as RuntimeFailureCause, Cw as RuntimeRunRow, Da as ExecutorFactory, E as Budget, FS as NotFoundError, Gy as createOtelExporter, Hy as OtelExporter, IS as ValidationError, Jy as RuntimeStreamEventCollector, Ky as loopEventToOtelSpan, Lh as ExecutorConfig, MS as BackendTransportError, NS as ConfigError, OS as Redactor, PS as JudgeError, Qy as SanitizedKnowledgeReadinessReport, S as RuntimeStreamEvent, Sw as RuntimeRunPersistenceAdapter, T as RuntimeFailureOwner, Tm as SupervisorProfile, Tw as startRuntimeRun, Uy as OtelSpan, Vy as OtelExportStats, Wy as buildLoopOtelSpans, Xf as IsolatedCheckResult, Xy as RuntimeStreamEventSummary, Yy as RuntimeStreamEventSink, Zy as RuntimeTelemetryOptions, _ as RunAgentTaskOptions, _f as SuperviseOptions, a as AgentKnowledgeProvider, b as RuntimeSession, bw as RuntimeRunHandle, c as AgentTaskContext, d as AgentTaskStatus, eb as createRuntimeEventCollector, g as OpenAIChatToolChoice, h as OpenAIChatTool, i as AgentExecutionBackend, jS as AgentEvalErrorCode, l as AgentTaskRunResult, m as OpenAIChatResponseFormat, n as AgentBackendContext, nb as sanitizeKnowledgeReadinessReport, o as AgentRuntimeEvent, oi as DeepReadonly, p as KnowledgeReadinessDecision, qf as IsolatedCheckBoxEvidence, qy as RuntimeEventCollector, r as AgentBackendInput, s as AgentRuntimeEventSink, si as ReadonlyAgentProfile, t as AgentAdapter, tb as createRuntimeStreamEventCollector, u as AgentTaskSpec, v as RunAgentTaskStreamOptions, vw as RuntimeRunCompleteInput, w as RuntimeFailureCode, wa as SupervisedResult, ww as RuntimeRunStatus, x as RuntimeSessionStore, xw as RuntimeRunOptions, y as RuntimeCanonicalStreamEvent, yw as RuntimeRunCost, zy as OtelAttribute } from "./types-YXZL7Wxi.js";
2
- import { $ as ImproveCodeBaseOptions, 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 AgenticGeneratorShotExecution, H as decideSearchImprovement, Ht as AgenticGeneratorExecutorForWorktree, It as SearchTraceOptions, J as ProfileTrainerRequest, Jt as VerifyResult, K as ImproveTrainingResult, Kt as AgenticGeneratorShotReceipt, L as improve, Lt as SharedBoxSearchLane, Mt as SearchEnvironmentFault, Nt as SearchLane, Ot as ImprovementProfileCandidate, Pt as SearchLaneKind, Q as ImproveCandidateValidator, R as SearchMethodOptions, Rt as dedicatedLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as AgenticGeneratorOptions, V as SearchImprovementDecision, Vt as subscriptionLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorShotDisposition, X as createCommandProfileTrainer, Xt as commandVerifier, Y as TrainingBoundaryResult, Yt as agenticGenerator, Z as ImproveCandidateValidationInput, Zt as CandidateGenerator, 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 Verifier, 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-B0arteLE.js";
1
+ import { $f as IsolatedCheckResult, $y as SanitizedKnowledgeRequirement, AS as AgentEvalError, Aa as ExecutorFactory, By as OtelExportConfig, C as RuntimeFailureCause, Cw as RuntimeRunRow, Da as SupervisedResult, E as Budget, FS as NotFoundError, Gy as createOtelExporter, Hy as OtelExporter, IS as ValidationError, Jy as RuntimeStreamEventCollector, Ky as loopEventToOtelSpan, Lh as ExecutorConfig, MS as BackendTransportError, NS as ConfigError, OS as Redactor, PS as JudgeError, Qy as SanitizedKnowledgeReadinessReport, S as RuntimeStreamEvent, Sw as RuntimeRunPersistenceAdapter, T as RuntimeFailureOwner, Tm as SupervisorProfile, Tw as startRuntimeRun, Uy as OtelSpan, Vy as OtelExportStats, Wy as buildLoopOtelSpans, Xf as IsolatedCheckBoxEvidence, Xy as RuntimeStreamEventSummary, Yy as RuntimeStreamEventSink, Zy as RuntimeTelemetryOptions, _ as RunAgentTaskOptions, a as AgentKnowledgeProvider, b as RuntimeSession, bf as SuperviseOptions, bw as RuntimeRunHandle, c as AgentTaskContext, d as AgentTaskStatus, eb as createRuntimeEventCollector, g as OpenAIChatToolChoice, h as OpenAIChatTool, i as AgentExecutionBackend, jS as AgentEvalErrorCode, l as AgentTaskRunResult, li as DeepReadonly, m as OpenAIChatResponseFormat, n as AgentBackendContext, nb as sanitizeKnowledgeReadinessReport, o as AgentRuntimeEvent, p as KnowledgeReadinessDecision, qy as RuntimeEventCollector, r as AgentBackendInput, s as AgentRuntimeEventSink, t as AgentAdapter, tb as createRuntimeStreamEventCollector, u as AgentTaskSpec, ui as ReadonlyAgentProfile, v as RunAgentTaskStreamOptions, vw as RuntimeRunCompleteInput, w as RuntimeFailureCode, ww as RuntimeRunStatus, x as RuntimeSessionStore, xw as RuntimeRunOptions, y as RuntimeCanonicalStreamEvent, yw as RuntimeRunCost, zy as OtelAttribute } from "./types-Pi5uCS88.js";
2
+ import { $ as ImproveCodeBaseOptions, At as SearchPromotion, B as DecideSearchImprovementOptions, Bt as routerLane, Ct as ImproveSearchOptions, Dt as ImprovementCodeCandidate, Et as ImproveSurface, Ft as SearchLaneKind, G as ImproveTrainingOptions, Gt as AgenticGeneratorShotDisposition, H as decideSearchImprovement, Ht as subscriptionLane, It as SearchLaneOptions, J as ProfileTrainerRequest, Jt as Verifier, K as ImproveTrainingResult, Kt as AgenticGeneratorShotExecution, L as improve, Lt as SearchTraceOptions, Mt as SearchCellContext, Nt as SearchEnvironmentFault, Ot as ImprovementProfileCandidate, Pt as SearchLane, Q as ImproveCandidateValidator, Qt as CandidateGenerator, R as SearchMethodOptions, Rt as SharedBoxSearchLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as AgenticGeneratorExecutorForWorktree, V as SearchImprovementDecision, Vt as sharedBoxLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorOptions, X as createCommandProfileTrainer, Xt as agenticGenerator, Y as TrainingBoundaryResult, Yt as VerifyResult, Z as ImproveCandidateValidationInput, Zt as commandVerifier, 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 SearchImprovementMemoryOptions, kt as SearchDispatchContext, lt as ImproveMethodOptions, mt as ImproveProfileAgent, n as AgentImprovementActivationResultStore, nt as ImproveCodeRunOptions, ot as ImproveMethodContext, q as ProfileTrainer, qt as AgenticGeneratorShotReceipt, 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 dedicatedLane } from "./activation-DOzkzTrl.js";
3
3
  import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5GRU1eY.js";
4
4
  import { a as ImprovementProposalSource } from "./types-qsqfyQoY.js";
5
5
  import { T as AgentCandidateOutputArtifactPort } from "./workspace-archive-DS9E9tUr.js";
6
- import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-BFC781pC.js";
6
+ import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-CcXKPnMR.js";
7
7
  import { a as RuntimeHookContext, c as RuntimeHookPhase, d as composeRuntimeHooks, f as defineRuntimeHooks, i as RuntimeExecutionAdmittedPayload, l as RuntimeHookTarget, o as RuntimeHookErrorContext, s as RuntimeHookEvent, u as RuntimeHooks } from "./runtime-hooks-DPghSHV7.js";
8
8
  import { toW3CSpanId as padSpanId, toW3CTraceId as padTraceId } from "@tangle-network/agent-trace-contract";
9
9
  import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
@@ -857,5 +857,5 @@ interface ServerSentEventOptions {
857
857
  export declare function readinessServerSentEvent(report: KnowledgeReadinessReport$1, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
858
858
  /** Serialize a `RuntimeStreamEvent` as a Server-Sent Event string. @stable */
859
859
  export declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
860
- 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, 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, 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, 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 RuntimeExecutionAdmittedPayload, 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 SupervisedKnowledgeUpdateOptions, type TokenWork, type TrainingBoundaryResult, type TurnOrder, ValidationError, type Verifier, type VerifyResult, agenticGenerator, auditLoopRunner, buildLoopOtelSpans, commandVerifier, composeRuntimeHooks, createCommandProfileTrainer, createOtelExporter, createRuntimeEventCollector, createRuntimeStreamEventCollector, decideSearchImprovement, dedicatedLane, defineRuntimeHooks, improve, loopEventToOtelSpan, padSpanId, padTraceId, routerLane, sanitizeKnowledgeReadinessReport, searchMethod, sharedBoxLane, startRuntimeRun, subscriptionLane };
860
+ 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, 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, 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, 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 RuntimeExecutionAdmittedPayload, 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 SearchImprovementMemoryOptions, type SearchLane, type SearchLaneKind, type SearchLaneOptions, type SearchMethodOptions, type SearchPromotion, type SearchTraceOptions, type ServerSentEventOptions, type SharedBoxSearchLane, type SupervisedKnowledgeUpdateOptions, type TokenWork, type TrainingBoundaryResult, type TurnOrder, ValidationError, type Verifier, type VerifyResult, agenticGenerator, auditLoopRunner, buildLoopOtelSpans, commandVerifier, composeRuntimeHooks, createCommandProfileTrainer, createOtelExporter, createRuntimeEventCollector, createRuntimeStreamEventCollector, decideSearchImprovement, dedicatedLane, defineRuntimeHooks, improve, loopEventToOtelSpan, padSpanId, padTraceId, routerLane, sanitizeKnowledgeReadinessReport, searchMethod, sharedBoxLane, startRuntimeRun, subscriptionLane };
861
861
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -2,19 +2,19 @@ import { B as InMemoryRuntimeSessionStore, C as optimizerMethod, H as nowIso, I
2
2
  import { a as JudgeError, f as RuntimeRunStateError, i as ConfigError, m as ValidationError, o as NotFoundError, r as BackendTransportError, t as AgentEvalError } from "./errors-DG8yufqX.js";
3
3
  import { Mi as providerMessageText, Zn as createOtelExporter, _i as executableAgentProfileSnapshot, er as loopEventToOtelSpan, ir as sanitizeRuntimeStreamEvent, nr as createRuntimeStreamEventCollector, qn as buildLoopOtelSpans, rr as sanitizeKnowledgeReadinessReport, tr as createRuntimeEventCollector } from "./supervisor-accounting-DlDUl58C.js";
4
4
  import { v as sleep } from "./util-qsH5cC9S.js";
5
- import { c as assertNoCallerArtifactDescriptor, d as agenticGenerator, f as commandVerifier, h as isUsageAmount, i as assertCandidateValidator, l as withMethodRuntimeControls, m as createRuntimeUsageTotals, n as createCommandProfileTrainer, o as parseExecutionRef, p as addRuntimeUsage, r as searchMethod, s as privateValuePaths, t as improve } from "./improve-BjKhfQ_b.js";
5
+ import { c as assertNoCallerArtifactDescriptor, d as agenticGenerator, f as commandVerifier, h as isUsageAmount, i as assertCandidateValidator, l as withMethodRuntimeControls, m as createRuntimeUsageTotals, n as createCommandProfileTrainer, o as parseExecutionRef, p as addRuntimeUsage, r as searchMethod, s as privateValuePaths, t as improve } from "./improve-DhOOHHRz.js";
6
6
  import { _ as embeddedCandidateArtifact, a as captureMaterializedWorkspace, m as canonicalCandidateDigest$1, p as canonicalCandidateBytes$1, t as persistCandidateOutputArtifact, v as immutableCandidateValue, y as omitTopLevelDigest } from "./output-artifacts-AqkZ8lO2.js";
7
7
  import { m as resolveRedactor, p as defaultRedactorIdentityMaterial } from "./snapshot-BKLziJ5K.js";
8
8
  import { n as createAgentImprovementActivationResult } from "./activation-D_J9qCzU.js";
9
9
  import { t as sealAgentCandidateBundle } from "./bundle-9NLb1WO3.js";
10
10
  import { m as captureAgentCandidateWorkspaceFiles } from "./workspace-streams-C7PGLAUd.js";
11
11
  import { t as assertExecutableAgentProfile } from "./model-policy-DFuhCC0-.js";
12
- import { t as supervise } from "./supervise-CQfJyuLL.js";
13
- import { n as auditLoopRunner } from "./loop-runner-BVTcuWZk.js";
12
+ import { t as supervise } from "./supervise-037R-zl1.js";
13
+ import { n as auditLoopRunner } from "./loop-runner-L594gDYR.js";
14
14
  import { l as sharedBoxLane, o as routerLane, r as dedicatedLane, t as SearchEnvironmentFault, u as subscriptionLane, y as decideSearchImprovement } from "./search-executor-DnWnh4kj.js";
15
15
  import { dt as priceTokens, ft as ROUTER_PRICE_SOURCE } from "./supervisor-DL4hO7UW.js";
16
16
  import { i as runtimeFailureCause } from "./tool-server-n4XYpCok.js";
17
- import { a as isolatedCheckBoxEvidenceSchema, o as isolatedCheckResultSchema } from "./graph-hVouinKw.js";
17
+ import { a as isolatedCheckBoxEvidenceSchema, o as isolatedCheckResultSchema } from "./graph-B3pBmvnf.js";
18
18
  import { n as defineRuntimeHooks, t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
19
19
  import { toW3CSpanId as padSpanId, toW3CTraceId as padTraceId } from "@tangle-network/agent-trace-contract";
20
20
  import { agentCandidateKnowledgeSchema, agentProfileSchema, canonicalAgentProfileDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
@@ -1498,6 +1498,7 @@ function reflectiveProfileProposer(options) {
1498
1498
  trainCells: parent.nodeId && ctx.train ? [...ctx.train.scoredCells(parent.nodeId)] : []
1499
1499
  }));
1500
1500
  const shape = surfaceShape(ctx.currentSurface);
1501
+ const limit = ctx.populationSize ?? 1;
1501
1502
  const sections = [];
1502
1503
  for (const [index, parent] of parents.entries()) {
1503
1504
  const evidence = await evidenceOf(parent);
@@ -1513,7 +1514,7 @@ function reflectiveProfileProposer(options) {
1513
1514
  "",
1514
1515
  options.frame.trim(),
1515
1516
  "",
1516
- outputContract(shape, maxSurfaceChars)
1517
+ outputContract(shape, maxSurfaceChars, limit)
1517
1518
  ].join("\n");
1518
1519
  const user = [
1519
1520
  OPERATOR[ctx.operator ?? "improve"],
@@ -1564,8 +1565,7 @@ function reflectiveProfileProposer(options) {
1564
1565
  }
1565
1566
  });
1566
1567
  if (!paid.succeeded) throw paid.error;
1567
- const proposal = parseProposal(paid.value.content, shape, maxSurfaceChars);
1568
- return proposal === null ? [] : [proposal];
1568
+ return parseProposals(paid.value.content, shape, maxSurfaceChars, limit);
1569
1569
  }
1570
1570
  };
1571
1571
  }
@@ -1591,15 +1591,16 @@ function renderSurface(surface) {
1591
1591
  "\"\"\""
1592
1592
  ].join("\n")).join("\n");
1593
1593
  }
1594
- function outputContract(shape, maxChars) {
1595
- return [
1596
- "OUTPUT. Reply with one JSON object and nothing else:",
1597
- `{"label": "<at most 8 words naming the change>", "hypothesis": "<the dominant failure mode, the mechanism, and the predicted effect on the score>", ${shape.kind === "text" ? "\"surface\": \"<the complete new text>\"" : `"surface": { ${shape.names.map((name) => `"${name}": "<its complete new text>"`).join(", ")} }`}}`,
1598
- shape.kind === "text" ? `The surface must stand alone, at most ${maxChars} characters: the agent sees nothing else from you.` : `Return every component, each complete, at most ${maxChars} characters in all: the agent sees nothing else from you.`
1599
- ].join("\n");
1594
+ function outputContract(shape, maxChars, limit) {
1595
+ const candidate = `{"label": "<at most 8 words naming the change>", "hypothesis": "<the dominant failure mode, the mechanism, and the predicted effect on the score>", ${shape.kind === "text" ? "\"surface\": \"<the complete new text>\"" : `"surface": { ${shape.names.map((name) => `"${name}": "<its complete new text>"`).join(", ")} }`}}`;
1596
+ return [...limit === 1 ? ["OUTPUT. Reply with one JSON object and nothing else:", candidate] : [
1597
+ `OUTPUT. Reply with one JSON object containing up to ${limit} distinct candidates and nothing else:`,
1598
+ `{"candidates": [${candidate}]}`,
1599
+ "Try different mechanisms that can be evaluated independently. Each candidate replaces the parent on its own."
1600
+ ], shape.kind === "text" ? `The surface must stand alone, at most ${maxChars} characters: the agent sees nothing else from you.` : `Return every component, each complete, at most ${maxChars} characters in all: the agent sees nothing else from you.`].join("\n");
1600
1601
  }
1601
- /** The proposal in a reply: the whole reply as JSON, else its outermost {...} span. */
1602
- function parseProposal(content, shape, maxChars) {
1602
+ /** The whole JSON reply, else its outermost object (for example in a code fence). */
1603
+ function parseProposals(content, shape, maxChars, limit) {
1603
1604
  const start = content.indexOf("{");
1604
1605
  const end = content.lastIndexOf("}");
1605
1606
  for (const text of [content, start >= 0 && end > start ? content.slice(start, end + 1) : ""]) {
@@ -1610,16 +1611,28 @@ function parseProposal(content, shape, maxChars) {
1610
1611
  continue;
1611
1612
  }
1612
1613
  if (typeof value !== "object" || value === null) continue;
1613
- const { label, hypothesis, surface } = value;
1614
- const parsed = surfaceOf(surface, shape, maxChars);
1615
- if (parsed === null) continue;
1616
- return {
1617
- surface: parsed,
1618
- label: String(label ?? "").slice(0, 80),
1619
- rationale: String(hypothesis ?? "").slice(0, 4e3)
1620
- };
1614
+ const record = value;
1615
+ const candidates = limit > 1 && Array.isArray(record.candidates) ? record.candidates : [record];
1616
+ const proposals = [];
1617
+ const seen = /* @__PURE__ */ new Set();
1618
+ for (const candidate of candidates) {
1619
+ if (typeof candidate !== "object" || candidate === null) continue;
1620
+ const { label, hypothesis, surface } = candidate;
1621
+ const parsed = surfaceOf(surface, shape, maxChars);
1622
+ if (parsed === null) continue;
1623
+ const key = JSON.stringify(parsed);
1624
+ if (seen.has(key)) continue;
1625
+ seen.add(key);
1626
+ proposals.push({
1627
+ surface: parsed,
1628
+ label: String(label ?? "").slice(0, 80),
1629
+ rationale: String(hypothesis ?? "").slice(0, 4e3)
1630
+ });
1631
+ if (proposals.length >= limit) break;
1632
+ }
1633
+ return proposals;
1621
1634
  }
1622
- return null;
1635
+ return [];
1623
1636
  }
1624
1637
  function surfaceOf(value, shape, maxChars) {
1625
1638
  if (shape.kind === "text") return typeof value === "string" && value.trim() && value.length <= maxChars ? value : null;