@tangle-network/agent-runtime 0.235.0 → 0.235.1

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 (53) hide show
  1. package/dist/{activation-BqEP6ExG.d.ts → activation-Bhtf60o1.d.ts} +2 -2
  2. package/dist/{activation-BJakmnI1.js → activation-CdEMY3fE.js} +2 -2
  3. package/dist/{activation-BJakmnI1.js.map → activation-CdEMY3fE.js.map} +1 -1
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-mujMubUb.js → coordination-driver-BdvDqtr6.js} +2 -2
  7. package/dist/{coordination-driver-mujMubUb.js.map → coordination-driver-BdvDqtr6.js.map} +1 -1
  8. package/dist/{delegate-BqN82j4Z.js → delegate-CLqwO3XJ.js} +2 -2
  9. package/dist/{delegate-BqN82j4Z.js.map → delegate-CLqwO3XJ.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +2 -2
  12. package/dist/{graph-B-Sbq3QW.js → graph-_7GsEHCW.js} +3 -3
  13. package/dist/{graph-B-Sbq3QW.js.map → graph-_7GsEHCW.js.map} +1 -1
  14. package/dist/{improvement-cycle-DpX5QVx0.js → improvement-cycle-h7MPWCa8.js} +3 -3
  15. package/dist/{improvement-cycle-DpX5QVx0.js.map → improvement-cycle-h7MPWCa8.js.map} +1 -1
  16. package/dist/{index-DgFsQnzq.d.ts → index-BjXc69fl.d.ts} +4 -4
  17. package/dist/index.d.ts +6 -6
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence.d.ts +3 -3
  20. package/dist/intelligence.js +3 -3
  21. package/dist/kernel.d.ts +3 -3
  22. package/dist/kernel.js +8 -8
  23. package/dist/{loop-runner-bin-3H3Iq9iY.d.ts → loop-runner-bin-D25C7bpo.d.ts} +3 -3
  24. package/dist/{loop-runner-bin-Dyc1IS0f.js → loop-runner-bin-nhOzvSwt.js} +3 -3
  25. package/dist/{loop-runner-bin-Dyc1IS0f.js.map → loop-runner-bin-nhOzvSwt.js.map} +1 -1
  26. package/dist/loop-runner-bin.d.ts +1 -1
  27. package/dist/loop-runner-bin.js +1 -1
  28. package/dist/mcp/bin.js +3 -3
  29. package/dist/mcp/index.d.ts +5 -5
  30. package/dist/mcp/index.js +4 -4
  31. package/dist/{openai-tools-CoAfqfko.d.ts → openai-tools-C1KOogww.d.ts} +2 -2
  32. package/dist/profiles.d.ts +2 -2
  33. package/dist/{provision-supervisor-Wh8JAo-o.js → provision-supervisor-Bq_c8ktm.js} +3 -3
  34. package/dist/{provision-supervisor-Wh8JAo-o.js.map → provision-supervisor-Bq_c8ktm.js.map} +1 -1
  35. package/dist/{runtime-Dffe3FZC.js → runtime-yyb6Y9E7.js} +8 -8
  36. package/dist/{runtime-Dffe3FZC.js.map → runtime-yyb6Y9E7.js.map} +1 -1
  37. package/dist/{server-BdKJxqUd.js → server-CEhC75Si.js} +3 -3
  38. package/dist/{server-BdKJxqUd.js.map → server-CEhC75Si.js.map} +1 -1
  39. package/dist/{stream-agent-turn-r1mtjn0i.d.ts → stream-agent-turn-Bh-WPrfq.d.ts} +2 -2
  40. package/dist/{structural-rollout-BLTQRy-B.js → structural-rollout-CVjwxyUY.js} +2 -2
  41. package/dist/{structural-rollout-BLTQRy-B.js.map → structural-rollout-CVjwxyUY.js.map} +1 -1
  42. package/dist/{substrate-BfNaAM8h.d.ts → substrate-BqKme48t.d.ts} +2 -2
  43. package/dist/{supervise-DMiJQB2_.js → supervise-hlZ9YD3l.js} +3 -3
  44. package/dist/{supervise-DMiJQB2_.js.map → supervise-hlZ9YD3l.js.map} +1 -1
  45. package/dist/{supervisor-CBtuIoqP.js → supervisor-DWiZ2Wgx.js} +2 -2
  46. package/dist/supervisor-DWiZ2Wgx.js.map +1 -0
  47. package/dist/testing.d.ts +2 -2
  48. package/dist/testing.js +12 -12
  49. package/dist/tui/index.d.ts +1 -1
  50. package/dist/tui/index.js +1 -1
  51. package/dist/{types-BxjpKpb-.d.ts → types-DGhYyHOA.d.ts} +6 -4
  52. package/package.json +1 -1
  53. package/dist/supervisor-CBtuIoqP.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { $r as LoopResult, A as NodeId, Bn as RecoverRetainedInteractiveRunOptions, Br as AgentRunSpec, Dr as StartRetainedRunInEnvironmentOptions, F as ProviderModelExecutionEvidence, Gn as StartRetainedInteractiveRunOptions, H as RootHandle, Hr as Driver, In as WorkerProgress, J as Scope, K as RootStreamReceipt, Lt as OtelExportConfig, N as ProfileMaterializationReceipt, Nr as LeakedReservation, O as NoWinnerError, Or as StartRetainedRunOptions, Pn as ExecutorProgress, Q as SpawnOpts, R as ResultBlobStore, Rt as OtelExporter, Tn as TraceSource, Tt as TraceContext, Un as RetainedInteractiveRunHandle, Ur as ExecCtx, Wr as Iteration, X as SpawnEvent, Xr as LoopLineageOptions, Y as Settled, Z as SpawnJournal, _t as WorkerTraceEvidence, ai as LoopTraceEvent, ar as ReconnectRetainedRunOptions, at as SupervisedResult, b as ExecutorRegistry, ci as MountRecorder, cr as RecoverRetainedRunResult, di as SandboxClient, fi as SelectionReceipt, g as ExecutorFactory, gt as WorkerInteractiveUnavailableReason, ht as WorkerInteractiveSession, i as Budget, ii as LoopTraceEmitter, it as SteerableRootHandle, j as NodeSnapshot, k as NodeExecutionIdentity, kn as RetainedChildRecovery, kr as BudgetPool, l as ExecutionBindingReceipt, li as OutputAdapter, lr as RetainedInteractiveAdmission, lt as TreeView, mi as Validator, n as AgentExecutionRef, o as BudgetViolation, oi as LoopWinner, or as RecoverRetainedRunIntentOptions, ot as Supervisor, pn as WaitProbeRegistry, pr as RetainedRunAdmission, q as Runtime, r as AgentSpec, rt as SpendGap, s as DefaultVerdict, si as MountManifestEntry, sr as RecoverRetainedRunOptions, t as Agent, tt as Spend, u as Executor, un as PendingWait, ut as UnconfirmedTeardown, vr as RetainedRunEffect, w as FleetYield, x as ExecutorResult, xr as RetainedRunHandle, yt as WorkerTraceResolver, z as ResumedKeyState, zn as ReconnectRetainedInteractiveRunOptions } from "./types-BxjpKpb-.js";
1
+ import { $r as LoopResult, A as NodeId, Bn as RecoverRetainedInteractiveRunOptions, Br as AgentRunSpec, Dr as StartRetainedRunInEnvironmentOptions, F as ProviderModelExecutionEvidence, Gn as StartRetainedInteractiveRunOptions, H as RootHandle, Hr as Driver, In as WorkerProgress, J as Scope, K as RootStreamReceipt, Lt as OtelExportConfig, N as ProfileMaterializationReceipt, Nr as LeakedReservation, O as NoWinnerError, Or as StartRetainedRunOptions, Pn as ExecutorProgress, Q as SpawnOpts, R as ResultBlobStore, Rt as OtelExporter, Tn as TraceSource, Tt as TraceContext, Un as RetainedInteractiveRunHandle, Ur as ExecCtx, Wr as Iteration, X as SpawnEvent, Xr as LoopLineageOptions, Y as Settled, Z as SpawnJournal, _t as WorkerTraceEvidence, ai as LoopTraceEvent, ar as ReconnectRetainedRunOptions, at as SupervisedResult, b as ExecutorRegistry, ci as MountRecorder, cr as RecoverRetainedRunResult, di as SandboxClient, fi as SelectionReceipt, g as ExecutorFactory, gt as WorkerInteractiveUnavailableReason, ht as WorkerInteractiveSession, i as Budget, ii as LoopTraceEmitter, it as SteerableRootHandle, j as NodeSnapshot, k as NodeExecutionIdentity, kn as RetainedChildRecovery, kr as BudgetPool, l as ExecutionBindingReceipt, li as OutputAdapter, lr as RetainedInteractiveAdmission, lt as TreeView, mi as Validator, n as AgentExecutionRef, o as BudgetViolation, oi as LoopWinner, or as RecoverRetainedRunIntentOptions, ot as Supervisor, pn as WaitProbeRegistry, pr as RetainedRunAdmission, q as Runtime, r as AgentSpec, rt as SpendGap, s as DefaultVerdict, si as MountManifestEntry, sr as RecoverRetainedRunOptions, t as Agent, tt as Spend, u as Executor, un as PendingWait, ut as UnconfirmedTeardown, vr as RetainedRunEffect, w as FleetYield, x as ExecutorResult, xr as RetainedRunHandle, yt as WorkerTraceResolver, z as ResumedKeyState, zn as ReconnectRetainedInteractiveRunOptions } from "./types-DGhYyHOA.js";
2
2
  import { n as AnalystRegistryLike } from "./types-zWfqDjeL.js";
3
3
  import { l as RuntimeHooks } from "./runtime-hooks-Bj6wJHlH.js";
4
- import { $n as McpTransport, $t as WorktreeCheckRunner, Cn as runLocalHarness, D as Inbox, Dn as ToolLoopChat, In as PeerMailEvent, P as KeyProvider, Qn as McpToolDescriptor$1, Qt as InPlaceHarnessResult, Rn as PeerMailLimits, Tn as ToolSpec, Un as PeerMailbox, Xn as JsonRpcMessage, Zn as JsonRpcResponse, er as Redactor, f as ExecutorConfig, h as RouterToolsSeam, kn as ToolLoopCompactionOptions, on as GitRunner, tn as WorktreeHarnessResult, wn as RouterTransportConfig, yt as AgentEnvironmentProviderRegistry } from "./stream-agent-turn-r1mtjn0i.js";
5
- import { _ as CoderTask, d as ResearchSource, o as UiLens, r as UiFinding } from "./substrate-BfNaAM8h.js";
4
+ import { $n as McpTransport, $t as WorktreeCheckRunner, Cn as runLocalHarness, D as Inbox, Dn as ToolLoopChat, In as PeerMailEvent, P as KeyProvider, Qn as McpToolDescriptor$1, Qt as InPlaceHarnessResult, Rn as PeerMailLimits, Tn as ToolSpec, Un as PeerMailbox, Xn as JsonRpcMessage, Zn as JsonRpcResponse, er as Redactor, f as ExecutorConfig, h as RouterToolsSeam, kn as ToolLoopCompactionOptions, on as GitRunner, tn as WorktreeHarnessResult, wn as RouterTransportConfig, yt as AgentEnvironmentProviderRegistry } from "./stream-agent-turn-Bh-WPrfq.js";
5
+ import { _ as CoderTask, d as ResearchSource, o as UiLens, r as UiFinding } from "./substrate-BqKme48t.js";
6
6
  import { AGENT_PROFILE_MATERIALIZATION_AXES, AgentInteractiveSessionControlClaim, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStatus, AgentProfile, AgentProfile as AgentProfile$2, AgentProfile as AgentProfile$3, AgentProfilePrompt, AgentProfileSecurityPolicy, CanonicalAgentProfileMaterializationAxis, Sha256Digest, profileMaterializationAxes as profileMaterializationAxes$1 } from "@tangle-network/agent-interface";
7
7
  import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, AgentProfile as AgentProfile$1, AnalystFinding, AnalystFinding as AnalystFinding$1, AnalystFinding as AnalystFinding$2, AnalystRunInputs, ChatClient, ConfigError, CustomTokenPricing, DetectorSignal, HarnessType as HarnessType$1, JudgeError, MaximumCharge, NotFoundError, ProposalFinding, RankTestMethod, RegistryRunOpts, RunRecord, StreamingDetector, ToolSpan, TraceAnalysisEngine, TraceAnalysisStore, ValidationError, buildTrajectory, computeFindingId as computeFindingId$1, makeFinding as makeFinding$1 } from "@tangle-network/agent-eval";
8
8
  import { AgentRunOutcome } from "@tangle-network/sandbox/runtime";
@@ -9698,4 +9698,4 @@ interface VerifierEnvironmentOptions {
9698
9698
  declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
9699
9699
  //#endregion
9700
9700
  export { WorkspaceRun as $, SuperviseTestOptions as $a, FanoutOptions as $c, CoderDelegate as $d, DelegationHistoryEntry as $f, registryScopeAnalyst as $i, CompletionEvidence as $l, RepairStop as $n, legacySupervisorRunsRoot as $o, ExecutorResultMapping as $p, openSandboxRun as $r, DriverAttemptRecord as $s, runGraphWithTestBrain as $t, CoordinationEvent as $u, worktreeFanout as A, adaptiveRefine as Aa, HarvestCorpusOptions as Ac, canonicalFindingEvent as Ad, DelegationResumeDriver as Af, equalKOnCost as Ai, DefinePersonaInput as Al, profileMaterializationAxes$1 as Am, unsafeInProcessRunner as An, supervisorAgentWithTestBrain as Ao, AgentEvalErrorCode as Ap, runStrategyEvolution as Ar, ProgressView as As, createWorktreeCliExecutor as At, anytimeReport as Au, VERIFY_TAIL_CHARS as B, LoopOptionsForDispatch as Ba, defaultAnalystInstruction as Bc, DELEGATE_DESCRIPTION as Bd, DelegateCodeResult as Bf, fanout as Bi, ShapeRegistry as Bl, ProfileRichness as Bn, CoordinationOwnerId as Bo, RuntimeRunStateError as Bp, McpSpawnFault as Br, SupervisorSpanAttributes as Bs, createInPlaceCliExecutor as Bt, AnalystDefinitionIssue as Bu, SurfaceWorkerConfig as C, Strategy as Ca, IsolatedCheckResult as Cc, SpawnPreflightContext as Cd, detachedTurnEvents as Cf, PromotionGateOptions as Ci, VerifySpec as Cl, ProfileMaterializationContract as Cm, delegate as Cn, SupervisorNodeContextSeed as Co, DelegationPersistenceError as Cp, EvolutionCandidate as Cr, writeWorkerSteer as Cs, ProvisionedSupervisor as Ct, AuditIntentOptions as Cu, superviseSurface as D, StrategyResult as Da, InProcessPromptCtx as Dc, WorkerSpawnContext as Dd, DelegationArgs as Df, profileOptimizerModelCall as Di, WidenSpec as Dl, controlProfileMaterialization as Dm, CodeModeOptions as Dn, assertCoordinationBinding as Do, FileDelegationStoreOptions as Dp, StrategyEvolutionConfig as Dr, ProgressSample as Ds, patchDelivered as Dt, AnytimeReport as Du, failuresAnalyst as E, StrategyMessage as Ea, InProcessOnPrompt as Ec, WorkerResumeContext as Ed, runDetachedTurn as Ef, profileChatClient as Ei, WidenLineage as El, assertProfileMaterialization as Em, finalizeBestDelivered as En, SupervisorToolInvocationContext as Eo, FileDelegationStore as Ep, ReproductionCheck as Er, PlateauOptions as Es, PatchDeliverableOptions as Et, defaultAuditorInstruction as Eu, readWorkerInteractiveBinding as F, runAgentic as Fa, Observation as Fc, questionEscalationTargets as Fd, SubmitInput as Ff, definePersona as Fi, PersonaExecutors as Fl, renderProfileMaterializationIssues as Fm, ChatWorkerSeamOptions as Fn, serveCoordinationMcp as Fo, PlannerError as Fp, authorStrategy as Fr, anyOf as Fs, workerFromInteractiveProvider as Ft, WaterfallCollector as Fu, CopyOptions as G, superviseDispatch as Ga, Corpus as Gc, DelegateHandlerOptions as Gd, DelegateResearchResult as Gf, selectValidWinner as Gi, LeaderboardFlagSpec as Gl, profileRichnessFinding as Gn, WorkerCancelRequest as Go, BusStats as Gp, materializeLocalMcp as Gr, DeliveredOutput as Gs, GraphEdgeCapError as Gt, AnalystToolGroupName as Gu, closingWorkerNote as H, SuperviseOptionsForDispatch as Ha, renderReport as Hc, DELEGATE_TOOL_NAME as Hd, DelegateFeedbackResult as Hf, loopUntil as Hi, LeaderboardBenchScore as Hl, asAuthoredProfile as Hn, PriorCoordination as Ho, CoderOutput as Hp, StdioMcpConnection as Hr, SupervisorSpanOutcome as Hs, EdgeDeliveryOutcome as Ht, AnalystKind as Hu, workerInteractiveBindingFile as I, sample as Ia, ObservationAnalysis as Ic, McpServer as Id, SubmitOutput as If, runPersonified as Ii, RunPersonified as Il, sandboxActProfileMaterialization as Im, chatTransportExecutor as In, CoordinationHttpAudit as Io, RetainedInteractiveAdmissionError as Ip, strategyAuthorContract as Ir, createProgressTracker as Is, WorkerInteractiveAdmission as It, WaterfallReport as Iu, withUntrackedArtifacts as J, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as Ja, EqualKArm as Jc, validateDelegateArgs as Jd, DelegateUiAuditResult as Jf, CreateScopeAnalystOptions as Ji, LeaderboardScenario as Jl, CheckOutcome as Jn, WorkerSteerRequest as Jo, createEventBus as Jp, OpenSandboxRunOptions as Jr, SupervisorFinalizer as Js, RunGraphOptions as Jt, AuthoredAnalystLimits as Ju, UntrackedCopyStats as K, AuthorizedSpawn as Ka, CorpusFilter as Kc, DelegateResult as Kd, DelegateUiAuditArgs as Kf, verify as Ki, LeaderboardIterationInfo as Kl, supervisorInstructions as Kn, WorkerCancellation as Ko, EventBus as Kp, Deliverable as Kr, FinalizeContext as Ks, GraphNode as Kt, AnalyzeOnSettleRoute as Ku, workerInteractiveBindingsDir as L, sampleThenRefine as La, ObservationError as Lc, McpServerOptions as Ld, hashIdempotencyInput as Lf, FileCorpus as Li, RunPersonifiedOptions as Ll, validateProfileMaterialization as Lm, chatWorkerSeam as Ln, CoordinationHttpOptions as Lo, RetainedInteractiveBindingError as Lp, strategyAuthorSystemPrompt as Lr, noProgressFor as Ls, readWorkerInteractiveAdmissions as Lt, WaterfallSpan as Lu, WorkerInteractiveBinding as M, defineStrategy as Ma, HarvestFailure as Mc, downMessageRefusalReasons as Md, DelegationRunContext as Mf, builtinShapes as Mi, Outcome as Ml, promptModelProfileMaterialization as Mm, ChatSessionStore as Mn, CoordinationMcpHandle as Mo, ConfigError as Mp, AuthorStrategyOptions as Mr, StopRule as Ms, InteractiveWorkerKeyInput as Mt, bestSoFar as Mu, WorkerInteractiveProviderSource as N, depthStrategy as Na, HarvestReport as Nc, normalizeAnalyzeOnSettle as Nd, DelegationTaskQueue as Nf, createShapeRegistry as Ni, Persona as Nl, promptOnlyProfileMaterialization as Nm, ChatTransportExecutorOptions as Nn, CoordinationPublicAddress as No, JudgeError as Np, AuthoredStrategy as Nr, allOf as Ns, InteractiveWorkerOptions as Nt, plateauLength as Nu, AuthoredHarness as O, StrategyShotResult as Oa, InProcessSandboxClientOptions as Oc, WorkerWatchOptions as Od, DelegationRecord as Of, assertModelAllowed as Oi, WinnerStrategy as Ol, defineProfileMaterializationContract as Om, CodeModeRunner as On, resolveSupervisorProfile as Oo, InMemoryDelegationStore as Op, discriminatingMeans as Or, ProgressTracker as Os, WorktreeCliExecutorOptions as Ot, AnytimeStrategySummary as Ou, attachWorker as P, refine as Pa, harvestCorpus as Pc, parseAuthoredAnalystDefinition as Pd, DelegationTaskQueueOptions as Pf, registerShape as Pi, PersonaContext as Pl, promptResourceProfileMaterialization as Pm, ChatTransportTool as Pn, CoordinationTransportOptions as Po, NotFoundError as Pp, assertStrategyContract as Pr, allWorkersStalled as Ps, InteractiveWorkerResult as Pt, renderAnytimeTable as Pu, WorkspaceCommit as Q, SuperviseRegistryTable as Qa, Fanout as Qc, eventToSnapshot as Qd, DelegationHistoryArgs as Qf, createScopeAnalyst as Qi, CompletionAnalyst as Ql, CheckSourceCtx as Qn, legacySupervisorRunDir as Qo, DeliverableSpec as Qp, TurnResult as Qr, runFinalizer as Qs, runGraph as Qt, ContinuityMode as Qu, EVIDENCE_MAX_CHARS as R, LoopCampaignDispatchOptions as Ra, ObserveInput as Rc, createInProcessTransport as Rd, DelegateCodeArgs as Rf, InMemoryCorpus as Ri, ShapeBudget as Rl, worktreeCliProfileMaterialization as Rm, createChatSessionStore as Rn, CoordinationDeliveryEvidence as Ro, RetainedRunAdmissionError as Rp, LocalMcpMaterialization as Rr, plateau as Rs, workerInteractiveAdmissionFile as Rt, createWaterfallCollector as Ru, SuperviseSurfaceResult as S, ShotSpec as Sa, IsolatedCheckOptions as Sc, SpawnPreflight as Sd, createDetachedTurnResumeDriver as Sf, resolveSandboxClient as Si, Verify as Sl, KnownAgentProfileMaterializationAxis as Sm, defaultDelegateBudget as Sn, SupervisorNodeContext as So, createDelegationTraceCollector as Sp, EvolutionBandInfo as Sr, workerSteersDir as Ss, ProvisionSupervisorRequest as St, AuditIntentInput as Su, analystsFromRegistry as T, StrategyCtx as Ta, inlineSandboxClient as Tc, SpawnRefusalCause as Td, parseDetachedSessionRef as Tf, promotionGate as Ti, WidenDecision as Tl, ValidateProfileMaterializationOptions as Tm, driverAgent as Tn, SupervisorToolDescriptor as To, DelegationStore as Tp, EvolutionReport as Tr, NoProgressForOptions as Ts, provisionSupervisor as Tt, auditIntent as Tu, composeWorkerEvidence as U, loopCampaignDispatch as Ua, AssertTraceDerivedFindings as Uc, DelegateArgs as Ud, DelegateResearchArgs as Uf, panel as Ui, LeaderboardBenchTask as Ul, assessAuthoredProfile as Un, RunCancelRequest as Uo, BusEvent as Up, StdioMcpServerSpec as Ur, SupervisorSpanRecorder as Us, EdgeTraversal as Ut, AnalystLensOutput as Uu, WorkerEvidenceInput as V, SuperviseDispatchOptions as Va, observe as Vc, DELEGATE_INPUT_SCHEMA as Vd, DelegateFeedbackArgs as Vf, flatWidenGate as Vi, DefinedLeaderboard as Vl, ProfileRichnessThresholds as Vn, FileCoordinationLog as Vo, ValidationError as Vp, McpToolDescriptor as Vr, SupervisorSpanOptions as Vs, AgentGraph as Vt, AnalystFindingEvent as Vu, settledWorkerOut as W, loopDispatch as Wa, CombinatorShape as Wc, DelegateError as Wd, DelegateResearchConfig as Wf, pipeline as Wi, LeaderboardBenchmarkAdapter as Wl, defaultProfileRichnessThresholds as Wn, RunCancellation as Wo, BusRecord as Wp, connectStdioMcp as Wr, createSupervisorSpanRecorder as Ws, GraphEdge as Wt, AnalystRegistry$1 as Wu, Shell as X, SuperviseOptions as Xa, EqualKOnCostOptions as Xc, FeedbackStore as Xd, DelegationError as Xf, assertTraceDerivedFindings as Xi, LeaderboardSpec as Xl, CheckRunner as Xn, cancelRun as Xo, defaultToolDetectors as Xp, SandboxRun as Xr, collectDelivered as Xs, TraversalContinuity as Xt, AuthorizedDownMessage as Xu, GitWorkspaceOptions as Y, DeliverableResolutionInput as Ya, EqualKOnCost as Yc, FeedbackEvent as Yd, DelegateUiAuditRoute as Yf, RegistryAnalyzeProjection as Yi, LeaderboardScore as Yl, CheckRunContext as Yn, WriteWorkerSteerOptions as Yo, WatchTraceOptions as Yp, OpenSandboxRunPromptOptions as Yr, bestDelivered as Ys, RunGraphTestOptions as Yt, AuthorizeDownMessage as Yu, Workspace as Z, SuperviseRegistry as Za, EqualKVerdict as Zc, InMemoryFeedbackStore as Zd, DelegationFeedbackSnapshot as Zf, buildSteerContext as Zi, defineLeaderboard as Zl, CheckSource as Zn, cancelWorker as Zo, watchTrace as Zp, SandboxRunAbortError as Zr, pickBestDelivered as Zs, defaultEdgeTraversalCap as Zt, ContinuationInstruction as Zu, boxSurfaceReader as _, AgenticTask as _a, defaultSelectWinner as _c, QuestionOption as _d, DetachedTurn as _f, claimRetainedInteractiveControl as _i, SteerContext as _l, AGENT_PROFILE_MATERIALIZATION_AXES as _m, effectiveConcurrency as _n, ResolveDriveHarness as _o, DelegationTraceCollector as _p, visibleCheckScore as _r, workerInboxFileFromEventDir as _s, InMemoryRunContextOptions as _t, pairwiseSignificance as _u, SandboxInstance$1 as a, BenchmarkCell as aa, DriverReentry as ac, DownMessageAuthorizationInput as ad, SettleDetachedCoderTurnOptions as af, SessionCapableBox as ai, LoopUntilState as al, InMemorySpawnJournal as am, delegatesWorkerBriefPrompt as an, WorkerSpawnRetryHooks as ao, DelegationStatusArgs as ap, canDisplace as ar, readWorkerSteerRequests as as, analyzeTrace as at, stopSentinel as au, AnalystAuthoring as b, CorpusReadbackOptions as ba, LocalSandboxClientOptions as bc, QuestionUrgency as bd, DriveTurnTick as bf, startRetainedInteractiveRun as bi, TrajectoryReportFn as bl, CanonicalAgentProfileMaterializationAxis as bm, rollingDispatch as bn, SupervisorAgentDeps as bo, capDelegationTrace as bp, EvolutionArchiveNode as br, workerSteerRequestFile as bs, createInMemoryRunContext as bt, renderLeaderboardSvg as bu, VerifierEnvironmentOptions as c, BenchmarkReport as ca, DriverRetryPolicy as cc, DownMessageEvent as cd, detachedSessionDelegate as cf, SandboxCapabilities as ci, PanelSpec as cl, SpawnForestInDoubtNode as cm, formatPromptHandle as cn, resolveWorkerSpawnRetry as co, FeedbackRefersTo as cp, defaultExtractCandidate as cr, safeWorkerFile as cs, captureWorkerTraceEvidence as ct, Interval as cu, HarvestSurfaceDiffsOptions as d, Environment as da, OnUnmetContract as dc, Question as dd, FleetHandle as df, acquireSandbox as di, PipelineStage as dl, SpawnForestTree as dm, promptHandle as dn, CoordinationBinding as do, UiAuditorDelegationOutput as dp, modelAuthoredChecks as dr, supervisorWorkersDir as ds, createRootHandle as dt, LeaderboardRow as du, observationFromRegistry as ea, DriverAttemptStop as ec, CoordinationStats as ed, CoderReview as ef, BranchCapableBox as ei, FanoutSynthesis as el, gateOnDeliverable as em, PromptHandle as en, supervise as eo, DelegationHistoryResult as ep, StructuralRolloutConfig as er, readRunCancelRequest as es, gitWorkspace as et, CompletionPolicy as eu, SurfaceDiff as f, printBenchmarkReport as fa, classifyDriverFailure as fc, QuestionDecision as fd, FleetWorkspaceExecutorOptions as ff, reconnectRetainedRun as fi, RenderCorpusToInstructions as fl, loadSpawnForest as fm, ConcurrencyCaps as fn, CoordinationToolFace as fo, delegationProfiles as fp, officialChecksFromMeta as fr, workerCancelRequestsFile as fs, createSupervisor as ft, PairwiseOptions as fu, WatchedSurface as g, AgenticSurface as ga, TerminalDecision as gc, QuestionLevel as gd, DetachedSessionRefParts as gf, ClaimRetainedInteractiveControlOptions as gi, ScopeWidenGate as gl, contentAddress as gm, RollingDispatchOptions as gn, ObserveSupervisorNodeEvent as go, DelegationTraceCaps as gp, structuralRollout as gr, workerInboxFile as gs, InMemoryRunContext as gt, leaderboard as gu, SurfaceReader as h, AgenticRunResult as ha, TERMINAL_DECISIONS as hc, QuestionEscalationTarget as hd, createSiblingSandboxExecutor as hf, startRetainedRunInEnvironment as hi, ScopeAnalyzeInput as hl, replaySpawnTree as hm, DispatchUnit as hn, DriveHarnessOwnerContext as ho, DELEGATION_TRACE_MAX_SPANS as hp, selectBestIndex as hr, workerControlLogFile as hs, settledToIteration as ht, ScoreOf as hu, SandboxEvent$1 as i, sanitizeMcpToolSchema as ia, DriverProgressMark as ic, DefinedAnalystRecord as id, DetachedWinnerSelection as if, SandboxLineageHandle as ii, LoopUntilSpec as il, InMemoryResultBlobStore as im, createPromptRegistry as in, WorkerSpawnRetryAttempt as io, DelegationStatus as ip, VisibleCheck as ir, readWorkerSteerAcknowledgement as is, TrajectoryAnalysis as it, sentinelCompletion as iu, AttachWorkerOptions as j, breadthStrategy as ja, HarvestError as jc, createCoordinationTools as jd, DelegationResumeTick as jf, trajectoryReport as ji, LoopShape as jl, promptControlProfileMaterialization as jm, ChatCompletionsTransport as jn, CoordinationAuthentication as jo, BackendTransportError as jp, selectChampion as jr, StopDecision as js, InteractiveWorkerEnvironment as jt, areaUnderCurve as ju, WorktreeFanoutOptions as k, SurfaceScore as ka, inProcessSandboxClient as kc, analystToolGroupNames as kd, DelegationResumeContext as kf, assertProfileModelsAllowed as ki, DefinePersona as kl, fullProfileMaterialization as km, codeModeSupervisorTools as kn, supervisorAgent as ko, AgentEvalError$1 as kp, pickChampion as kr, ProgressTrackerOptions as ks, WorktreePatchArtifact as kt, AnytimeTaskCurve as ku, createVerifierEnvironment as l, BenchmarkStrategySummary as la, DriverUnmetContractContext as lc, EscalateQuestion as ld, settleDetachedCoderTurn as lf, probeSandboxCapabilities as li, PanelVerdict as ll, SpawnForestMissingTree as lm, kernelPromptRegistry as ln, retryPreSpawnRefusals as lo, ResearchOutputShape as lp, defaultStructuralRolloutPolicy as lr, supervisorRunDir as ls, parseWorkerToolTraceArtifact as lt, Leaderboard as lu, SurfaceReadOutcome as m, AgenticOptions as ma, RunAgentRoundsOptions as mc, QuestionEscalationRecord as md, createFleetWorkspaceExecutor as mf, startRetainedRun as mi, ScopeAnalyst as ml, pendingWaits as mm, DispatchStopReason as mn, DriveHarness as mo, DELEGATION_TRACE_MAX_BYTES as mp, sandboxCheckRunner as mr, workerCancellationsDir as ms, createScope as mt, ProfileKeyOf as mu, AnalystFinding$1 as n, McpEnvironmentOptions as na, DriverBudgetReadout as nc, CoordinationToolsOptions as nd, DelegateRunCtx as nf, ForkCapableBox as ni, FlatWidenGate as nl, FileResultBlobStore as nm, RegisteredPrompt as nn, workerFromBackend as no, DelegationProgress as np, StructuralRolloutPolicy as nr, readWorkerCancelRequests as ns, localShell as nt, completionAuthorizes as nu, computeFindingId$1 as o, BenchmarkConfig as oa, DriverRepromptPolicy as oc, DownMessageDeliveryAttempt as od, UiAuditorDelegate as of, createSandboxLineage as oi, Panel as ol, SpawnForest as om, dumbContinuationFailPrompt as on, WorkerSpawnRetryPolicy as oo, DelegationStatusResult as op, compareCheckOutcomes as or, runCancelRequestFile as os, WORKER_TOOL_TRACE_SCHEMA_VERSION as ot, AxisScoresOf as ou, SurfaceReadBox as p, runBenchmark as pa, defaultUnmetContractSteer as pc, QuestionEscalationOutcome as pd, SiblingSandboxExecutorOptions as pf, recoverRetainedRun as pi, RenderCorpusToInstructionsOptions as pl, materializeTreeView as pm, DispatchReport as pn, CoordinationVerbs as po, CappedDelegationTrace as pp, resolveEntrySymbol as pr, workerCancellationFile as ps, ScopeArgs as pt, PairwiseVerdict as pu, copyUntrackedIntoClone as q, AuthorizedSpawnContext as qa, CorpusRecord as qc, createDelegateHandler as qd, DelegateUiAuditConfig as qf, widen as qi, LeaderboardRunContext as ql, CheckExecChannel as qn, WorkerSteerAcknowledgement as qo, PublishOptions as qp, OpenSandboxRunBeforeStartContext as qr, FinalizerSettled as qs, GraphResult as qt, AuthoredAnalystDefinition as qu, CreateSandboxOptions$1 as r, createMcpEnvironment as ra, DriverContractState as rc, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as rd, DetachedSessionDelegateOptions as rf, SandboxLineage as ri, LoopUntil as rl, FileSpawnJournal as rm, analyzesFindingsReportPrompt as rn, ResolvedWorkerSpawnRetry as ro, DelegationResultPayload as rp, StructuralRolloutResult as rr, readWorkerCancellation as rs, runInWorkspace as rt, deterministicCompletion as ru, makeFinding$1 as s, BenchmarkLift as sa, DriverRepromptRefusal as sc, DownMessageDeliveryOutcome as sd, coderTaskFromArgs as sf, CriuCapableClient as si, PanelJudge as sl, SpawnForestEvent as sm, dumbContinuationPassPrompt as sn, isPreSpawnExecutorFailure as so, FeedbackRating as sp, composeCheckSources as sr, runCancellationFile as ss, WorkerToolTraceArtifact as st, GroupOf as su, AgentProfile$2 as t, McpEndpoint as ta, DriverAttemptsExhaustedError as tc, CoordinationTools as td, CoderReviewer as tf, CheckpointCapableBox as ti, FanoutWinnerSelector as tl, mapExecutorResult as tm, PromptRegistry as tn, superviseWithTestBrain as to, DelegationProfile as tp, StructuralRolloutMessage as tr, readRunCancellation as ts, jjWorkspace as tt, CompletionVerdict as tu, BoxSurfaceReaderOptions as u, BenchmarkTaskRow as ua, DriverUnmetContractDecision as uc, MakeWorkerAgent as ud, DelegationExecutor as uf, AcquireOptions as ui, Pipeline as ul, SpawnForestNode as um, naiveContinuationPrompt as un, withWorkerSpawnRetry as uo, UiAuditLensFilter as up, filterAuthoredAsserts as ur, supervisorRunsRoot as us, workerTraceAnalysisStore as ut, LeaderboardOptions as uu, fsSurfaceReader as v, AgenticTool as va, isTerminalDecision as vc, QuestionPolicy as vd, DetachedTurnResumeDriverOptions as vf, reconnectRetainedInteractiveRun as vi, TrajectoryNode as vl, AgentProfileMaterializationAxis as vm, freeSlots as vn, ResolveSupervisorTools as vo, DelegationTraceSpan as vp, ChampionPick as vr, workerSteerAcknowledgementFile as vs, RunContext as vt, renderLeaderboardHtml as vu, SurfaceWorkerOut as w, StrategyArtifacts as wa, runIsolatedCheck as wc, SpawnRefusal as wd, formatDetachedSessionRef as wf, PromotionVerdict as wi, Widen as wl, ProfileMaterializationIssue as wm, DriverAgentOptions as wn, SupervisorProfile as wo, DelegationStateCorruptError as wp, EvolutionGeneration as wr, AllWorkersStalledOptions as ws, SupervisorCleanupReceipt as wt, IntentAudit as wu, SuperviseSurfaceOptions as x, RunAgenticOptions as xa, localSandboxClient as xc, SettledWorker as xd, RunDetachedTurnOptions as xf, ResolveSandboxClientOptions as xi, TrajectoryReportOptions as xl, DefineProfileMaterializationContractOptions as xm, DelegateOptions as xn, SupervisorAgentTestDeps as xo, composeLoopTraceEmitters as xp, EvolutionAuthor as xr, workerSteerRequestsDir as xs, ProvisionSupervisorConnection as xt, renderPairwiseMarkdown as xu, harvestSurfaceDiffs as y, ArtifactHandle as ya, runAgentRounds as yc, QuestionRecord as yd, DriveTurnCapableBox as yf, recoverRetainedInteractiveRun as yi, TrajectoryReport as yl, AssertProfileMaterializationOptions as ym, queueOf as yn, ResolvedSupervisorProfile as yo, buildDelegationTraceSpans as yp, ChampionPolicy as yr, workerSteerAcknowledgementsDir as ys, createFileRunContext as yt, renderLeaderboardMarkdown as yu, NOTE_MAX_CHARS as z, LoopDispatchOptions as za, ObserveOptions as zc, createMcpServer as zd, DelegateCodeConfig as zf, renderCorpusToInstructions as zi, ShapeContext as zl, AuthoredProfile as zn, CoordinationLog as zo, RetainedRunDispatchBindingError as zp, MaterializeLocalMcpOptions as zr, sampleFromSettled as zs, InPlaceCliExecutorOptions as zt, ANALYST_DEFINITION_BOUNDS as zu };
9701
- //# sourceMappingURL=index-DgFsQnzq.d.ts.map
9701
+ //# sourceMappingURL=index-BjXc69fl.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { $t as RuntimeStreamEventCollector, Ai as AgentTaskContext, At as EvalRunEvent, Bi as RunAgentTaskStreamOptions, Bt as RuntimeEventOtelOptions, Ci as AgentAdapter, Di as AgentKnowledgeProvider, Ei as AgentExecutionBackend, Fi as KnowledgeReadinessDecision, Ft as LoopSpanNode, Gt as createOtelExporter, Hi as RuntimeSession, Ht as buildLoopSpanNodes, Ii as OpenAIChatResponseFormat, It as OtelAttribute, Jt as loopEventToOtelSpan, Kt as exportEvalRuns, Li as OpenAIChatTool, Lt as OtelExportConfig, Mi as AgentTaskSpec, Mt as EvalRunsExportConfig, Ni as AgentTaskStatus, Nt as EvalRunsExportResult, Oi as AgentRuntimeEvent, Pi as BackendErrorDetail, Pt as INTELLIGENCE_WIRE_VERSION, Qt as RuntimeEventCollector, Ri as OpenAIChatToolChoice, Rt as OtelExporter, Si as startRuntimeRun, Ti as AgentBackendInput, Ui as RuntimeSessionStore, Ut as buildRuntimeEventOtelSpans, Vi as RuntimeCanonicalStreamEvent, Vt as buildLoopOtelSpans, Wi as RuntimeStreamEvent, Wt as createOpenInferenceFileExporter, Xt as padTraceId, Yt as padSpanId, Zt as toOtelAttributes, _i as RuntimeRunHandle, an as createRuntimeEventCollector, at as SupervisedResult, bi as RuntimeRunRow, cn as sanitizeKnowledgeReadinessReport, en as RuntimeStreamEventSink, g as ExecutorFactory, gi as RuntimeRunCost, hi as RuntimeRunCompleteInput, i as Budget, in as SanitizedKnowledgeRequirement, ji as AgentTaskRunResult, jt as EvalRunGeneration, ki as AgentRuntimeEventSink, ln as sanitizeRuntimeStreamEvent, nn as RuntimeTelemetryOptions, on as createRuntimeStreamEventCollector, qt as generateSpanId, rn as SanitizedKnowledgeReadinessReport, sn as sanitizeAgentRuntimeEvent, tn as RuntimeStreamEventSummary, vi as RuntimeRunOptions, wi as AgentBackendContext, xi as RuntimeRunStatus, yi as RuntimeRunPersistenceAdapter, zi as RunAgentTaskOptions, zt as OtelSpan } from "./types-BxjpKpb-.js";
1
+ import { $t as RuntimeStreamEventCollector, Ai as AgentTaskContext, At as EvalRunEvent, Bi as RunAgentTaskStreamOptions, Bt as RuntimeEventOtelOptions, Ci as AgentAdapter, Di as AgentKnowledgeProvider, Ei as AgentExecutionBackend, Fi as KnowledgeReadinessDecision, Ft as LoopSpanNode, Gt as createOtelExporter, Hi as RuntimeSession, Ht as buildLoopSpanNodes, Ii as OpenAIChatResponseFormat, It as OtelAttribute, Jt as loopEventToOtelSpan, Kt as exportEvalRuns, Li as OpenAIChatTool, Lt as OtelExportConfig, Mi as AgentTaskSpec, Mt as EvalRunsExportConfig, Ni as AgentTaskStatus, Nt as EvalRunsExportResult, Oi as AgentRuntimeEvent, Pi as BackendErrorDetail, Pt as INTELLIGENCE_WIRE_VERSION, Qt as RuntimeEventCollector, Ri as OpenAIChatToolChoice, Rt as OtelExporter, Si as startRuntimeRun, Ti as AgentBackendInput, Ui as RuntimeSessionStore, Ut as buildRuntimeEventOtelSpans, Vi as RuntimeCanonicalStreamEvent, Vt as buildLoopOtelSpans, Wi as RuntimeStreamEvent, Wt as createOpenInferenceFileExporter, Xt as padTraceId, Yt as padSpanId, Zt as toOtelAttributes, _i as RuntimeRunHandle, an as createRuntimeEventCollector, at as SupervisedResult, bi as RuntimeRunRow, cn as sanitizeKnowledgeReadinessReport, en as RuntimeStreamEventSink, g as ExecutorFactory, gi as RuntimeRunCost, hi as RuntimeRunCompleteInput, i as Budget, in as SanitizedKnowledgeRequirement, ji as AgentTaskRunResult, jt as EvalRunGeneration, ki as AgentRuntimeEventSink, ln as sanitizeRuntimeStreamEvent, nn as RuntimeTelemetryOptions, on as createRuntimeStreamEventCollector, qt as generateSpanId, rn as SanitizedKnowledgeReadinessReport, sn as sanitizeAgentRuntimeEvent, tn as RuntimeStreamEventSummary, vi as RuntimeRunOptions, wi as AgentBackendContext, xi as RuntimeRunStatus, yi as RuntimeRunPersistenceAdapter, zi as RunAgentTaskOptions, zt as OtelSpan } from "./types-DGhYyHOA.js";
2
2
  import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
3
3
  import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
4
- import { Ap as AgentEvalErrorCode, Bp as RuntimeRunStateError, Fp as PlannerError, Ip as RetainedInteractiveAdmissionError, Lp as RetainedInteractiveBindingError, Mp as ConfigError, Np as JudgeError, Pp as NotFoundError, Qp as DeliverableSpec, Rp as RetainedRunAdmissionError, Vp as ValidationError, Xa as SuperviseOptions, jp as BackendTransportError, kp as AgentEvalError, nr as StructuralRolloutPolicy, wo as SupervisorProfile, zp as RetainedRunDispatchBindingError } from "./index-DgFsQnzq.js";
4
+ import { Ap as AgentEvalErrorCode, Bp as RuntimeRunStateError, Fp as PlannerError, Ip as RetainedInteractiveAdmissionError, Lp as RetainedInteractiveBindingError, Mp as ConfigError, Np as JudgeError, Pp as NotFoundError, Qp as DeliverableSpec, Rp as RetainedRunAdmissionError, Vp as ValidationError, Xa as SuperviseOptions, jp as BackendTransportError, kp as AgentEvalError, nr as StructuralRolloutPolicy, wo as SupervisorProfile, zp as RetainedRunDispatchBindingError } from "./index-BjXc69fl.js";
5
5
  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";
6
- import { $t as WorktreeCheckRunner, er as Redactor, f as ExecutorConfig } from "./stream-agent-turn-r1mtjn0i.js";
6
+ import { $t as WorktreeCheckRunner, er as Redactor, f as ExecutorConfig } from "./stream-agent-turn-Bh-WPrfq.js";
7
7
  import { y as AgentCandidateOutputArtifactPort } from "./types-CuXu5zuS.js";
8
- import { $ as ImprovementProfilePopulationLineageNode, A as ImproveMethodResult, B as ImproveSkillsOptions, C as ImproveCost, D as ImproveMethodFactory, E as ImproveMethodContext, F as ImproveProfileComponents, G as ImprovementProfileCandidate, H as ImprovementCandidate, I as ImproveProfileSurface, J as ImprovementProfileCandidatePopulationUnavailable, K as ImprovementProfileCandidatePopulation, L as ImproveResult, M as ImproveOptimizationRunOptions, N as ImproveOptions, O as ImproveMethodLineage, P as ImproveProfileAgent, Q as ImprovementProfilePopulationLineage, R as ImproveRuntimeCodeGeneratorOptions, S as ImproveCodeRunOptions, T as ImproveLineage, U as ImprovementCodeCandidate, V as ImproveSurface, W as ImprovementMaterializedProfilePopulationCandidate, X as ImprovementProfilePopulationCandidate, Y as ImprovementProfilePopulationArtifactSource, Z as ImprovementProfilePopulationCandidateSource, _ as ImproveCandidateValidationInput, at as AgenticGeneratorOptions, b as ImproveCodeOptions, ct as AgenticGeneratorShotReceipt, dt as agenticGenerator, et as ImprovementProfilePopulationObservationSource, ft as commandVerifier, g as improve, i as AgentImprovementActivationTransition, it as AgenticGeneratorExecutorForWorktree, j as ImproveMethodSource, k as ImproveMethodOptions, lt as Verifier, mt as CandidateGenerator, n as AgentImprovementActivationResultStore, nt as DeepReadonly, ot as AgenticGeneratorShotDisposition, pt as defaultBuildPrompt, q as ImprovementProfileCandidatePopulationAvailable, rt as ReadonlyAgentProfile, st as AgenticGeneratorShotExecution, t as AgentImprovementActivationReconciliation, tt as ImprovementRefusedProfilePopulationCandidate, ut as VerifyResult, v as ImproveCandidateValidator, w as ImproveCustomCodeGeneratorOptions, x as ImproveCodeResult, y as ImproveCodeBaseOptions, z as ImproveScenarioPartitions } from "./activation-BqEP6ExG.js";
9
- 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-3H3Iq9iY.js";
10
- import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-CoAfqfko.js";
8
+ import { $ as ImprovementProfilePopulationLineageNode, A as ImproveMethodResult, B as ImproveSkillsOptions, C as ImproveCost, D as ImproveMethodFactory, E as ImproveMethodContext, F as ImproveProfileComponents, G as ImprovementProfileCandidate, H as ImprovementCandidate, I as ImproveProfileSurface, J as ImprovementProfileCandidatePopulationUnavailable, K as ImprovementProfileCandidatePopulation, L as ImproveResult, M as ImproveOptimizationRunOptions, N as ImproveOptions, O as ImproveMethodLineage, P as ImproveProfileAgent, Q as ImprovementProfilePopulationLineage, R as ImproveRuntimeCodeGeneratorOptions, S as ImproveCodeRunOptions, T as ImproveLineage, U as ImprovementCodeCandidate, V as ImproveSurface, W as ImprovementMaterializedProfilePopulationCandidate, X as ImprovementProfilePopulationCandidate, Y as ImprovementProfilePopulationArtifactSource, Z as ImprovementProfilePopulationCandidateSource, _ as ImproveCandidateValidationInput, at as AgenticGeneratorOptions, b as ImproveCodeOptions, ct as AgenticGeneratorShotReceipt, dt as agenticGenerator, et as ImprovementProfilePopulationObservationSource, ft as commandVerifier, g as improve, i as AgentImprovementActivationTransition, it as AgenticGeneratorExecutorForWorktree, j as ImproveMethodSource, k as ImproveMethodOptions, lt as Verifier, mt as CandidateGenerator, n as AgentImprovementActivationResultStore, nt as DeepReadonly, ot as AgenticGeneratorShotDisposition, pt as defaultBuildPrompt, q as ImprovementProfileCandidatePopulationAvailable, rt as ReadonlyAgentProfile, st as AgenticGeneratorShotExecution, t as AgentImprovementActivationReconciliation, tt as ImprovementRefusedProfilePopulationCandidate, ut as VerifyResult, v as ImproveCandidateValidator, w as ImproveCustomCodeGeneratorOptions, x as ImproveCodeResult, y as ImproveCodeBaseOptions, z as ImproveScenarioPartitions } from "./activation-Bhtf60o1.js";
9
+ 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-D25C7bpo.js";
10
+ import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-C1KOogww.js";
11
11
  import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
12
12
  import { AgentProfile as AgentProfile$1, ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, MaximumCharge, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
13
13
  import { GepaOptimizationMethodConfig, ProfileDispatchFn, Scenario, SkillOptOptimizationMethodConfig } from "@tangle-network/agent-eval/campaign";
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { $i as providerMessageText, $n as buildRuntimeEventOtelSpans, Bn as defaultRedactorIdentityMaterial, Hr as parseCommittedJsonLines, Qn as buildLoopSpanNodes, Ur as prepareJsonlAppend, Vn as resolveRedactor, Vr as isNoEntError, Wr as writeAllBytes, Xn as INTELLIGENCE_WIRE_VERSION, Zn as buildLoopOtelSpans, ar as loopEventToOtelSpan, cr as toOtelAttributes, dr as sanitizeAgentRuntimeEvent, er as createOpenInferenceFileExporter, fr as sanitizeKnowledgeReadinessReport, ir as generateSpanId, li as executableAgentProfileSnapshot, lr as createRuntimeEventCollector, nr as exportEvalRuns, or as padSpanId, pr as sanitizeRuntimeStreamEvent, sr as padTraceId, tr as createOtelExporter, ur as createRuntimeStreamEventCollector, zn as defaultRedactor } from "./supervisor-CBtuIoqP.js";
1
+ import { $i as providerMessageText, $n as buildRuntimeEventOtelSpans, Bn as defaultRedactorIdentityMaterial, Hr as parseCommittedJsonLines, Qn as buildLoopSpanNodes, Ur as prepareJsonlAppend, Vn as resolveRedactor, Vr as isNoEntError, Wr as writeAllBytes, Xn as INTELLIGENCE_WIRE_VERSION, Zn as buildLoopOtelSpans, ar as loopEventToOtelSpan, cr as toOtelAttributes, dr as sanitizeAgentRuntimeEvent, er as createOpenInferenceFileExporter, fr as sanitizeKnowledgeReadinessReport, ir as generateSpanId, li as executableAgentProfileSnapshot, lr as createRuntimeEventCollector, nr as exportEvalRuns, or as padSpanId, pr as sanitizeRuntimeStreamEvent, sr as padTraceId, tr as createOtelExporter, ur as createRuntimeStreamEventCollector, zn as defaultRedactor } from "./supervisor-DWiZ2Wgx.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 { F as InMemoryRuntimeSessionStore, I as newRuntimeSession, L as nowIso, M as createIterableBackend, N as createSandboxPromptBackend, O as optimizerMethod, P as normalizeBackendStreamEvent, R as startOrResumeRuntimeSession, j as streamAgentTurn, k as strategyAuthorMethod, z as touchSession } from "./structural-rollout-BLTQRy-B.js";
3
+ import { F as InMemoryRuntimeSessionStore, I as newRuntimeSession, L as nowIso, M as createIterableBackend, N as createSandboxPromptBackend, O as optimizerMethod, P as normalizeBackendStreamEvent, R as startOrResumeRuntimeSession, j as streamAgentTurn, k as strategyAuthorMethod, z as touchSession } from "./structural-rollout-CVjwxyUY.js";
4
4
  import { t as assertExecutableAgentProfile } from "./model-policy-BbSCSak0.js";
5
- import { Lt as McpSpawnFault, Rt as connectStdioMcp } from "./runtime-Dffe3FZC.js";
5
+ import { Lt as McpSpawnFault, Rt as connectStdioMcp } from "./runtime-yyb6Y9E7.js";
6
6
  import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
7
- import { B as ROLLOUT_POLICY_EXTENSION, G as structuralRolloutPolicyFromProfile, H as normalizeRolloutPolicy, J as defaultBuildPrompt, K as agenticGenerator, L as improve, R as withMethodRuntimeControls, U as parseRolloutPolicy, V as applyRolloutPolicyToProfile, W as serializeRolloutPolicy, q as commandVerifier, z as rawTraceDistiller } from "./improvement-cycle-DpX5QVx0.js";
7
+ import { B as ROLLOUT_POLICY_EXTENSION, G as structuralRolloutPolicyFromProfile, H as normalizeRolloutPolicy, J as defaultBuildPrompt, K as agenticGenerator, L as improve, R as withMethodRuntimeControls, U as parseRolloutPolicy, V as applyRolloutPolicyToProfile, W as serializeRolloutPolicy, q as commandVerifier, z as rawTraceDistiller } from "./improvement-cycle-h7MPWCa8.js";
8
8
  import { a as canonicalCandidateBytes, d as omitTopLevelDigest, l as embeddedCandidateArtifact, o as canonicalCandidateDigest$1, u as immutableCandidateValue } from "./protected-redaction-wGo44k2K.js";
9
9
  import { d as persistCandidateOutputArtifact } from "./prepare-Dc30WRB0.js";
10
- import { t as createAgentImprovementActivationResult } from "./activation-BJakmnI1.js";
10
+ import { t as createAgentImprovementActivationResult } from "./activation-CdEMY3fE.js";
11
11
  import { i as sealAgentCandidateBundle, t as captureAgentCandidateWorkspace } from "./workspace-archive-CBX0hwL_.js";
12
- import { n as supervise } from "./supervise-DMiJQB2_.js";
13
- 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-Dyc1IS0f.js";
12
+ import { n as supervise } from "./supervise-hlZ9YD3l.js";
13
+ 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-nhOzvSwt.js";
14
14
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-DoQ32vpe.js";
15
15
  import { agentCandidateKnowledgeSchema, agentProfileSchema, canonicalAgentProfileDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
16
16
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
@@ -1,9 +1,9 @@
1
- import { Wi as RuntimeStreamEvent, ai as LoopTraceEvent, nn as RuntimeTelemetryOptions } from "./types-BxjpKpb-.js";
1
+ import { Wi as RuntimeStreamEvent, ai as LoopTraceEvent, nn as RuntimeTelemetryOptions } from "./types-DGhYyHOA.js";
2
2
  import { d as RunAnalystLoopOpts, f as RunAnalystLoopResult } from "./types-zWfqDjeL.js";
3
- import { Tn as ToolSpec, er as Redactor, nr as resolveRedactor, tr as defaultRedactor, vt as AgentEnvironmentProviderRef, yt as AgentEnvironmentProviderRegistry } from "./stream-agent-turn-r1mtjn0i.js";
3
+ import { Tn as ToolSpec, er as Redactor, nr as resolveRedactor, tr as defaultRedactor, vt as AgentEnvironmentProviderRef, yt as AgentEnvironmentProviderRegistry } from "./stream-agent-turn-Bh-WPrfq.js";
4
4
  import { D as AgentCandidateRunFinalization, O as AgentCandidateTaskExecution, a as AgentCandidateExecutionPorts, c as AgentCandidateExecutorPort, r as AgentCandidateBenchmarkGraderPort, y as AgentCandidateOutputArtifactPort } from "./types-CuXu5zuS.js";
5
5
  import { T as AgentCandidateExecutionClaimStore, _ as PrepareAgentCandidateExecutionOptions, o as CreateProtectedAgentCandidateModelPortOptions, p as parseAgentCandidateProfileActivation, y as ExecutePreparedAgentCandidateOptions } from "./protected-model-port-BlLP8ja6.js";
6
- import { A as ImproveMethodResult, L as ImproveResult, N as ImproveOptions, a as AgentImprovementActivationTransitionInput, c as CreateAgentImprovementActivationResultOptions, d as ProfileImprovementActivationTransitionInput, f as SealedCandidateActivationTransitionInput, h as verifyAgentImprovementActivationResult, i as AgentImprovementActivationTransition, k as ImproveMethodOptions, l as ExecuteAgentImprovementActivationInput, m as executeAgentImprovementActivation, n as AgentImprovementActivationResultStore, o as AgentProfileImprovementActivationOperation, p as createAgentImprovementActivationResult, r as AgentImprovementActivationTargetPlan, s as AgentProfileImprovementActivationTargetPlan, t as AgentImprovementActivationReconciliation, u as ExecuteAgentImprovementActivationOptions, z as ImproveScenarioPartitions } from "./activation-BqEP6ExG.js";
6
+ import { A as ImproveMethodResult, L as ImproveResult, N as ImproveOptions, a as AgentImprovementActivationTransitionInput, c as CreateAgentImprovementActivationResultOptions, d as ProfileImprovementActivationTransitionInput, f as SealedCandidateActivationTransitionInput, h as verifyAgentImprovementActivationResult, i as AgentImprovementActivationTransition, k as ImproveMethodOptions, l as ExecuteAgentImprovementActivationInput, m as executeAgentImprovementActivation, n as AgentImprovementActivationResultStore, o as AgentProfileImprovementActivationOperation, p as createAgentImprovementActivationResult, r as AgentImprovementActivationTargetPlan, s as AgentProfileImprovementActivationTargetPlan, t as AgentImprovementActivationReconciliation, u as ExecuteAgentImprovementActivationOptions, z as ImproveScenarioPartitions } from "./activation-Bhtf60o1.js";
7
7
  import { AgentCandidateBenchmarkCellRef, AgentCandidateBundle, AgentCandidateEvaluationPolicy, AgentCandidateExperiment, AgentCandidateExperimentMaterial, AgentCandidateExperimentMeasurement, AgentCandidateLineage, AgentCandidateProfileActivation as CandidateProfileMaterialization, AgentImprovementActivation, AgentImprovementActivation as AgentImprovementActivation$1, AgentImprovementActivationIntent, AgentImprovementActivationIntent as AgentImprovementActivationIntent$1, AgentImprovementActivationOutcome, AgentImprovementActivationResult, AgentImprovementActivationTarget, AgentImprovementActivationTargetState, AgentImprovementActivationTargetTransition, AgentImprovementEvaluation, AgentImprovementEvaluation as AgentImprovementEvaluation$1, AgentImprovementMeasuredComparison, AgentImprovementMeasuredComparison as AgentImprovementMeasuredComparison$1, AgentImprovementProposal, AgentImprovementProposal as AgentImprovementProposal$1, AgentImprovementReview, AgentImprovementReview as AgentImprovementReview$1, AgentImprovementReviewDecision, AgentImprovementReviewDecision as AgentImprovementReviewDecision$1, AgentImprovementSource, AgentImprovementSurface, AgentProfile, AgentProfileDiff, AgentProfileImprovementChange, AgentProfileImprovementExecutionRef, AgentProfileImprovementExperiment, AgentProfileImprovementMeasuredComparison, AgentProfileImprovementMeasurement, AgentProfileImprovementRunReceipt, AgentProfileImprovementTaskMaterial, AgentProfileMcpServer, CandidateExecutionEvidence, CandidateExecutionEvidence as CandidateExecutionEvidence$1, Sha256Digest } from "@tangle-network/agent-interface";
8
8
  import { CostLedgerHandle, TraceStore } from "@tangle-network/agent-eval";
9
9
  import { ProposalFinding as ProposalFinding$1 } from "@tangle-network/agent-eval/analyst";
@@ -1,8 +1,8 @@
1
- import { $n as buildRuntimeEventOtelSpans, Cn as resolveAgentEnvironmentProvider, Vn as resolveRedactor, Zn as buildLoopOtelSpans, rr as flatOtelSpan, tr as createOtelExporter, zn as defaultRedactor } from "./supervisor-CBtuIoqP.js";
2
- import { C as optimizationActivationReceiptFromMetadata, D as agentImprovementProfileSurfaceDigest, E as agentImprovementProfileDiffs, F as isAgentImprovementProfileSurface, I as isAgentProfileMeasuredSurface, N as assertProfileImprovementTargetsShareIdentity, O as agentImprovementProfileSurfaceInput, P as buildAgentImprovementActivationTargets, S as createOptimizationActivationReceipt, T as AGENT_PROFILE_MEASURED_SURFACES, _ as profilePolicyWithBudget, a as executeAgentCandidateExperimentCell, b as profileTaskScenarioIdentity, d as verifyAgentImprovementActivation, f as verifyAgentImprovementProposal, g as profileImprovementMetadata, h as createProfileImprovementCostLedger, i as createAgentImprovementProposal, j as agentImprovementTargetProfileDiffs, l as reviewAgentImprovementProposal, m as verifyCandidateExecutionEvidence, n as createAgentImprovementActivation, o as proposeAgentImprovement, p as verifyAgentImprovementReview, r as createAgentImprovementMeasuredComparison, s as proposeAgentProfileImprovement, t as AgentCandidateExperimentCellExecutionError, u as runAgentCandidateExperiment, v as profilePreparationAccounting, w as AGENT_IMPROVEMENT_PROFILE_SURFACES, x as sealProfileImprovementBenchmark, y as profileStateDigest$1 } from "./improvement-cycle-DpX5QVx0.js";
1
+ import { $n as buildRuntimeEventOtelSpans, Cn as resolveAgentEnvironmentProvider, Vn as resolveRedactor, Zn as buildLoopOtelSpans, rr as flatOtelSpan, tr as createOtelExporter, zn as defaultRedactor } from "./supervisor-DWiZ2Wgx.js";
2
+ import { C as optimizationActivationReceiptFromMetadata, D as agentImprovementProfileSurfaceDigest, E as agentImprovementProfileDiffs, F as isAgentImprovementProfileSurface, I as isAgentProfileMeasuredSurface, N as assertProfileImprovementTargetsShareIdentity, O as agentImprovementProfileSurfaceInput, P as buildAgentImprovementActivationTargets, S as createOptimizationActivationReceipt, T as AGENT_PROFILE_MEASURED_SURFACES, _ as profilePolicyWithBudget, a as executeAgentCandidateExperimentCell, b as profileTaskScenarioIdentity, d as verifyAgentImprovementActivation, f as verifyAgentImprovementProposal, g as profileImprovementMetadata, h as createProfileImprovementCostLedger, i as createAgentImprovementProposal, j as agentImprovementTargetProfileDiffs, l as reviewAgentImprovementProposal, m as verifyCandidateExecutionEvidence, n as createAgentImprovementActivation, o as proposeAgentImprovement, p as verifyAgentImprovementReview, r as createAgentImprovementMeasuredComparison, s as proposeAgentProfileImprovement, t as AgentCandidateExperimentCellExecutionError, u as runAgentCandidateExperiment, v as profilePreparationAccounting, w as AGENT_IMPROVEMENT_PROFILE_SURFACES, x as sealProfileImprovementBenchmark, y as profileStateDigest$1 } from "./improvement-cycle-h7MPWCa8.js";
3
3
  import { o as canonicalCandidateDigest$1, u as immutableCandidateValue } from "./protected-redaction-wGo44k2K.js";
4
4
  import { A as omitUndefinedObjectFields, M as parseExactAgentProfile, a as AGENT_CANDIDATE_EXECUTION_SUPPORT, j as parseAgentCandidateProfileActivation, w as applyExactAgentProfileDiff } from "./prepare-Dc30WRB0.js";
5
- import { n as executeAgentImprovementActivation, r as verifyAgentImprovementActivationResult, t as createAgentImprovementActivationResult } from "./activation-BJakmnI1.js";
5
+ import { n as executeAgentImprovementActivation, r as verifyAgentImprovementActivationResult, t as createAgentImprovementActivationResult } from "./activation-CdEMY3fE.js";
6
6
  import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-D5gDcnrH.js";
7
7
  import { agentImprovementSourceSchema, agentProfileImprovementArmSchema, applyAgentProfileDiff } from "@tangle-network/agent-interface";
8
8
  import { contentHash } from "@tangle-network/agent-eval";
package/dist/kernel.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as SpawnPrior, $n as captureHarnessTranscript, $r as LoopResult, A as NodeId, An as RetainedPendingCause, Ar as BudgetPoolRestore, B as ResumedWork, Bn as RecoverRetainedInteractiveRunOptions, Br as AgentRunSpec, C as ExecutorToolCall, Cn as SessionTraceBox, Cr as RetainedRunReplayPoint, Ct as workerTraceHeaders, D as MaterializedModelIdentity, Dn as decodeToolPart, Dr as StartRetainedRunInEnvironmentOptions, E as MaterializedExecutionIdentity, En as createPushTraceSource, Er as RetainedRunTurnInput, F as ProviderModelExecutionEvidence, Fn as ScopeProgressInput, Fr as ReservationRejection, G as RootSignal, Gn as StartRetainedInteractiveRunOptions, Gr as LoopDecisionPayload, Gt as createOtelExporter, H as RootHandle, Hn as RetainedInteractiveEnvironmentInput, Hr as Driver, I as ResourceLimit, In as WorkerProgress, Ir as ReservationStage, J as Scope, Jn as HarnessTranscriptEvidence, Jr as LoopIterationEndedPayload, K as RootStreamReceipt, Kn as HarnessTranscriptArtifact, Kr as LoopEndedPayload, L as ResourceSpend, Ln as createActivityLog, Lr as ReservationTicket, M as NodeStatus, Mn as ActivityNote, Mr as BudgetReconcileFault, N as ProfileMaterializationReceipt, Nn as DEFAULT_STALL_AFTER_MS, Nr as LeakedReservation, O as NoWinnerError, On as sandboxSessionTraceSource, Or as StartRetainedRunOptions, P as ProviderModelAttemptEvidence, Pn as ExecutorProgress, Pr as ReservationHolder, Q as SpawnOpts, Qn as ReadableEnvironment, Qr as LoopPlanPayload, R as ResultBlobStore, Rn as readWorkerProgress, Rr as createBudgetPool, S as ExecutorTeardownWarning, Sn as SessionMessageLike, Sr as RetainedRunIntentAdmission, St as workerTraceEnv, T as Handle, Tn as TraceSource, Tr as RetainedRunStartMaterial, U as RootMaterialization, Un as RetainedInteractiveRunHandle, Ur as ExecCtx, V as RetainedExecutionState, Vn as RetainedInteractiveAdmissionHook, Vr as DefaultVerdict, W as RootProviderModelEvidence, Wn as RetainedInteractiveStartMaterial, Wr as Iteration, Wt as createOpenInferenceFileExporter, X as SpawnEvent, Xn as HarnessTranscriptUnavailable, Xr as LoopLineageOptions, Y as Settled, Yn as HarnessTranscriptFile, Yr as LoopIterationStartedPayload, Z as SpawnJournal, Zn as HarnessTranscriptUnavailableReason, Zr as LoopPlanDescription, _ as ExecutorMaterialization, _n as isWaitOutcome, _r as RetainedRunDispatchedAdmission, _t as WorkerTraceEvidence, a as BudgetOverspend, ai as LoopTraceEvent, ar as ReconnectRetainedRunOptions, at as SupervisedResult, b as ExecutorRegistry, bn as validateWaitSpec, br as RetainedRunEventOptions, bt as WorkerTraceSeamCarrier, c as EnvironmentTeardownReceipt, ci as MountRecorder, cr as RecoverRetainedRunResult, ct as TokenUsageProvenance, d as ExecutorAccounting, di as SandboxClient, dn as WaitOutcome, dr as RetainedInteractiveIntentAdmission, dt as UnknownMaterializationReason, ei as LoopSandboxPlacement, er as harnessTranscriptArtifact, et as SpawnRejection, f as ExecutorCancellation, fi as SelectionReceipt, fn as WaitProbe, fr as RetainedInteractiveStartedAdmission, ft as UsageEvent, g as ExecutorFactory, gn as createWaitProbes, gr as RetainedRunCancellation, gt as WorkerInteractiveUnavailableReason, h as ExecutorExecutionBinding, hn as WaitSpec, hr as RetainedRunCancelOptions, ht as WorkerInteractiveSession, i as Budget, ii as LoopTraceEmitter, ir as NativeContextContinuationInput, it as SteerableRootHandle, j as NodeSnapshot, jn as ActivityLog, jr as BudgetReadout, k as NodeExecutionIdentity, kr as BudgetPool, l as ExecutionBindingReceipt, li as OutputAdapter, lr as RetainedInteractiveAdmission, lt as TreeView, m as ExecutorContext, mi as Validator, mn as WaitRejection, mr as RetainedRunAdmissionHook, mt as WidenGate, n as AgentExecutionRef, ni as LoopTeardownFailedPayload, nr as NativeContextContinuationExecution, nt as SpendChannel, o as BudgetViolation, oi as LoopWinner, or as RecoverRetainedRunIntentOptions, ot as Supervisor, p as ExecutorCancellationRequest, pi as ValidationCtx, pn as WaitProbeRegistry, pr as RetainedRunAdmission, pt as WaitOpts, q as Runtime, qn as HarnessTranscriptCapture, qr as LoopIterationDispatchPayload, r as AgentSpec, ri as LoopTokenUsage, rr as NativeContextContinuationHandle, rt as SpendGap, si as MountManifestEntry, sr as RecoverRetainedRunOptions, st as SupervisorOpts, t as Agent, ti as LoopStartedPayload, tr as persistHarnessTranscript, tt as Spend, u as Executor, ui as RunProvenance, un as PendingWait, ur as RetainedInteractiveEnvironmentAdmission, ut as UnconfirmedTeardown, v as ExecutorNodeContext, vn as pollFor, vr as RetainedRunEffect, vt as WorkerTraceUnavailableReason, w as FleetYield, wn as ToolStepInput, wr as RetainedRunSnapshot, wt as workerTraceSeamKey, x as ExecutorResult, xn as waitUntil, xr as RetainedRunHandle, xt as readWorkerTraceContext, y as ExecutorProgressEvent, yn as timerAt, yr as RetainedRunEnvironmentAdmission, yt as WorkerTraceResolver, z as ResumedKeyState, zn as ReconnectRetainedInteractiveRunOptions, zr as spendFromUsageEvents } from "./types-BxjpKpb-.js";
2
- import { $ as WorkspaceRun, $c as FanoutOptions, $i as registryScopeAnalyst, $l as CompletionEvidence, $n as RepairStop, $o as legacySupervisorRunsRoot, $p as ExecutorResultMapping, $r as openSandboxRun, $s as DriverAttemptRecord, $u as CoordinationEvent, A as worktreeFanout, Aa as adaptiveRefine, Ac as HarvestCorpusOptions, Ad as canonicalFindingEvent, Ai as equalKOnCost, Al as DefinePersonaInput, An as unsafeInProcessRunner, Ar as runStrategyEvolution, As as ProgressView, At as createWorktreeCliExecutor, Au as anytimeReport, B as VERIFY_TAIL_CHARS, Ba as LoopOptionsForDispatch, Bc as defaultAnalystInstruction, Bi as fanout, Bl as ShapeRegistry, Bn as ProfileRichness, Bo as CoordinationOwnerId, Br as McpSpawnFault, Bs as SupervisorSpanAttributes, Bt as createInPlaceCliExecutor, C as SurfaceWorkerConfig, Ca as Strategy, Cc as IsolatedCheckResult, Cd as SpawnPreflightContext, Ci as PromotionGateOptions, Cl as VerifySpec, Cn as delegate, Co as SupervisorNodeContextSeed, Cr as EvolutionCandidate, Cs as writeWorkerSteer, Ct as ProvisionedSupervisor, Cu as AuditIntentOptions, D as superviseSurface, Da as StrategyResult, Dc as InProcessPromptCtx, Dd as WorkerSpawnContext, Di as profileOptimizerModelCall, Dl as WidenSpec, Dn as CodeModeOptions, Do as assertCoordinationBinding, Dr as StrategyEvolutionConfig, Ds as ProgressSample, Dt as patchDelivered, Du as AnytimeReport, E as failuresAnalyst, Ea as StrategyMessage, Ec as InProcessOnPrompt, Ed as WorkerResumeContext, Ei as profileChatClient, El as WidenLineage, En as finalizeBestDelivered, Eo as SupervisorToolInvocationContext, Er as ReproductionCheck, Es as PlateauOptions, Et as PatchDeliverableOptions, Eu as defaultAuditorInstruction, F as readWorkerInteractiveBinding, Fa as runAgentic, Fc as Observation, Fi as definePersona, Fl as PersonaExecutors, Fn as ChatWorkerSeamOptions, Fo as serveCoordinationMcp, Fr as authorStrategy, Fs as anyOf, Ft as workerFromInteractiveProvider, Fu as WaterfallCollector, G as CopyOptions, Ga as superviseDispatch, Gc as Corpus, Gi as selectValidWinner, Gl as LeaderboardFlagSpec, Gn as profileRichnessFinding, Go as WorkerCancelRequest, Gp as BusStats, Gr as materializeLocalMcp, Gs as DeliveredOutput, Gt as GraphEdgeCapError, H as closingWorkerNote, Ha as SuperviseOptionsForDispatch, Hc as renderReport, Hi as loopUntil, Hl as LeaderboardBenchScore, Hn as asAuthoredProfile, Ho as PriorCoordination, Hr as StdioMcpConnection, Hs as SupervisorSpanOutcome, Ht as EdgeDeliveryOutcome, Hu as AnalystKind, I as workerInteractiveBindingFile, Ia as sample, Ic as ObservationAnalysis, Ii as runPersonified, Il as RunPersonified, In as chatTransportExecutor, Io as CoordinationHttpAudit, Ir as strategyAuthorContract, Is as createProgressTracker, It as WorkerInteractiveAdmission, Iu as WaterfallReport, J as withUntrackedArtifacts, Ja as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, Jc as EqualKArm, Ji as CreateScopeAnalystOptions, Jl as LeaderboardScenario, Jn as CheckOutcome, Jo as WorkerSteerRequest, Jp as createEventBus, Jr as OpenSandboxRunOptions, Js as SupervisorFinalizer, Jt as RunGraphOptions, Ju as AuthoredAnalystLimits, K as UntrackedCopyStats, Ka as AuthorizedSpawn, Kc as CorpusFilter, Ki as verify, Kl as LeaderboardIterationInfo, Kn as supervisorInstructions, Ko as WorkerCancellation, Kp as EventBus, Kr as Deliverable, Ks as FinalizeContext, Kt as GraphNode, Ku as AnalyzeOnSettleRoute, L as workerInteractiveBindingsDir, La as sampleThenRefine, Lc as ObservationError, Li as FileCorpus, Ll as RunPersonifiedOptions, Ln as chatWorkerSeam, Lo as CoordinationHttpOptions, Lr as strategyAuthorSystemPrompt, Ls as noProgressFor, Lt as readWorkerInteractiveAdmissions, Lu as WaterfallSpan, M as WorkerInteractiveBinding, Ma as defineStrategy, Mc as HarvestFailure, Mi as builtinShapes, Ml as Outcome, Mn as ChatSessionStore, Mo as CoordinationMcpHandle, Mr as AuthorStrategyOptions, Ms as StopRule, Mt as InteractiveWorkerKeyInput, Mu as bestSoFar, N as WorkerInteractiveProviderSource, Na as depthStrategy, Nc as HarvestReport, Nd as normalizeAnalyzeOnSettle, Ni as createShapeRegistry, Nl as Persona, Nn as ChatTransportExecutorOptions, No as CoordinationPublicAddress, Nr as AuthoredStrategy, Ns as allOf, Nt as InteractiveWorkerOptions, Nu as plateauLength, O as AuthoredHarness, Oa as StrategyShotResult, Oc as InProcessSandboxClientOptions, Od as WorkerWatchOptions, Oi as assertModelAllowed, Ol as WinnerStrategy, On as CodeModeRunner, Oo as resolveSupervisorProfile, Or as discriminatingMeans, Os as ProgressTracker, Ot as WorktreeCliExecutorOptions, Ou as AnytimeStrategySummary, P as attachWorker, Pa as refine, Pc as harvestCorpus, Pi as registerShape, Pl as PersonaContext, Pn as ChatTransportTool, Po as CoordinationTransportOptions, Pr as assertStrategyContract, Ps as allWorkersStalled, Pt as InteractiveWorkerResult, Pu as renderAnytimeTable, Q as WorkspaceCommit, Qa as SuperviseRegistryTable, Qc as Fanout, Qi as createScopeAnalyst, Ql as CompletionAnalyst, Qn as CheckSourceCtx, Qo as legacySupervisorRunDir, Qp as DeliverableSpec, Qr as TurnResult, Qs as runFinalizer, Qt as runGraph, Qu as ContinuityMode, R as EVIDENCE_MAX_CHARS, Ra as LoopCampaignDispatchOptions, Rc as ObserveInput, Ri as InMemoryCorpus, Rl as ShapeBudget, Rn as createChatSessionStore, Ro as CoordinationDeliveryEvidence, Rr as LocalMcpMaterialization, Rs as plateau, Rt as workerInteractiveAdmissionFile, Ru as createWaterfallCollector, S as SuperviseSurfaceResult, Sa as ShotSpec, Sc as IsolatedCheckOptions, Sd as SpawnPreflight, Si as resolveSandboxClient, Sl as Verify, Sn as defaultDelegateBudget, So as SupervisorNodeContext, Sr as EvolutionBandInfo, Ss as workerSteersDir, St as ProvisionSupervisorRequest, Su as AuditIntentInput, T as analystsFromRegistry, Ta as StrategyCtx, Tc as inlineSandboxClient, Td as SpawnRefusalCause, Ti as promotionGate, Tl as WidenDecision, To as SupervisorToolDescriptor, Tr as EvolutionReport, Ts as NoProgressForOptions, Tt as provisionSupervisor, Tu as auditIntent, U as composeWorkerEvidence, Ua as loopCampaignDispatch, Uc as AssertTraceDerivedFindings, Ui as panel, Ul as LeaderboardBenchTask, Un as assessAuthoredProfile, Uo as RunCancelRequest, Up as BusEvent, Ur as StdioMcpServerSpec, Us as SupervisorSpanRecorder, Ut as EdgeTraversal, Uu as AnalystLensOutput, V as WorkerEvidenceInput, Va as SuperviseDispatchOptions, Vc as observe, Vi as flatWidenGate, Vl as DefinedLeaderboard, Vn as ProfileRichnessThresholds, Vo as FileCoordinationLog, Vr as McpToolDescriptor, Vs as SupervisorSpanOptions, Vt as AgentGraph, Vu as AnalystFindingEvent, W as settledWorkerOut, Wa as loopDispatch, Wc as CombinatorShape, Wi as pipeline, Wl as LeaderboardBenchmarkAdapter, Wn as defaultProfileRichnessThresholds, Wo as RunCancellation, Wp as BusRecord, Wr as connectStdioMcp, Ws as createSupervisorSpanRecorder, Wt as GraphEdge, Wu as AnalystRegistry, X as Shell, Xa as SuperviseOptions, Xc as EqualKOnCostOptions, Xi as assertTraceDerivedFindings, Xl as LeaderboardSpec, Xn as CheckRunner, Xo as cancelRun, Xp as defaultToolDetectors, Xr as SandboxRun, Xs as collectDelivered, Xt as TraversalContinuity, Xu as AuthorizedDownMessage, Y as GitWorkspaceOptions, Ya as DeliverableResolutionInput, Yc as EqualKOnCost, Yi as RegistryAnalyzeProjection, Yl as LeaderboardScore, Yn as CheckRunContext, Yo as WriteWorkerSteerOptions, Yp as WatchTraceOptions, Yr as OpenSandboxRunPromptOptions, Ys as bestDelivered, Yu as AuthorizeDownMessage, Z as Workspace, Za as SuperviseRegistry, Zc as EqualKVerdict, Zi as buildSteerContext, Zl as defineLeaderboard, Zn as CheckSource, Zo as cancelWorker, Zp as watchTrace, Zr as SandboxRunAbortError, Zs as pickBestDelivered, Zt as defaultEdgeTraversalCap, Zu as ContinuationInstruction, _ as boxSurfaceReader, _a as AgenticTask, _c as defaultSelectWinner, _i as claimRetainedInteractiveControl, _l as SteerContext, _n as effectiveConcurrency, _o as ResolveDriveHarness, _r as visibleCheckScore, _s as workerInboxFileFromEventDir, _t as InMemoryRunContextOptions, _u as pairwiseSignificance, a as SandboxInstance, aa as BenchmarkCell, ac as DriverReentry, ad as DownMessageAuthorizationInput, ai as SessionCapableBox, al as LoopUntilState, am as InMemorySpawnJournal, an as delegatesWorkerBriefPrompt, ao as WorkerSpawnRetryHooks, ar as canDisplace, as as readWorkerSteerRequests, at as analyzeTrace, au as stopSentinel, b as AnalystAuthoring, ba as CorpusReadbackOptions, bc as LocalSandboxClientOptions, bi as startRetainedInteractiveRun, bl as TrajectoryReportFn, bn as rollingDispatch, bo as SupervisorAgentDeps, br as EvolutionArchiveNode, bs as workerSteerRequestFile, bt as createInMemoryRunContext, bu as renderLeaderboardSvg, c as VerifierEnvironmentOptions, ca as BenchmarkReport, cc as DriverRetryPolicy, cd as DownMessageEvent, ci as SandboxCapabilities, cl as PanelSpec, cm as SpawnForestInDoubtNode, cn as formatPromptHandle, co as resolveWorkerSpawnRetry, cr as defaultExtractCandidate, cs as safeWorkerFile, ct as captureWorkerTraceEvidence, cu as Interval, d as HarvestSurfaceDiffsOptions, da as Environment, dc as OnUnmetContract, di as acquireSandbox, dl as PipelineStage, dm as SpawnForestTree, dn as promptHandle, do as CoordinationBinding, dr as modelAuthoredChecks, ds as supervisorWorkersDir, dt as createRootHandle, du as LeaderboardRow, ea as observationFromRegistry, ec as DriverAttemptStop, ed as CoordinationStats, ei as BranchCapableBox, el as FanoutSynthesis, em as gateOnDeliverable, en as PromptHandle, eo as supervise, er as StructuralRolloutConfig, es as readRunCancelRequest, et as gitWorkspace, eu as CompletionPolicy, f as SurfaceDiff, fa as printBenchmarkReport, fc as classifyDriverFailure, fi as reconnectRetainedRun, fl as RenderCorpusToInstructions, fm as loadSpawnForest, fn as ConcurrencyCaps, fo as CoordinationToolFace, fr as officialChecksFromMeta, fs as workerCancelRequestsFile, ft as createSupervisor, fu as PairwiseOptions, g as WatchedSurface, ga as AgenticSurface, gc as TerminalDecision, gi as ClaimRetainedInteractiveControlOptions, gl as ScopeWidenGate, gm as contentAddress, gn as RollingDispatchOptions, go as ObserveSupervisorNodeEvent, gr as structuralRollout, gs as workerInboxFile, gt as InMemoryRunContext, gu as leaderboard, h as SurfaceReader, ha as AgenticRunResult, hc as TERMINAL_DECISIONS, hi as startRetainedRunInEnvironment, hl as ScopeAnalyzeInput, hm as replaySpawnTree, hn as DispatchUnit, ho as DriveHarnessOwnerContext, hr as selectBestIndex, hs as workerControlLogFile, ht as settledToIteration, hu as ScoreOf, i as SandboxEvent, ia as sanitizeMcpToolSchema, ic as DriverProgressMark, id as DefinedAnalystRecord, ii as SandboxLineageHandle, il as LoopUntilSpec, im as InMemoryResultBlobStore, in as createPromptRegistry, io as WorkerSpawnRetryAttempt, ir as VisibleCheck, is as readWorkerSteerAcknowledgement, it as TrajectoryAnalysis, iu as sentinelCompletion, j as AttachWorkerOptions, ja as breadthStrategy, jc as HarvestError, ji as trajectoryReport, jl as LoopShape, jn as ChatCompletionsTransport, jo as CoordinationAuthentication, jr as selectChampion, js as StopDecision, jt as InteractiveWorkerEnvironment, ju as areaUnderCurve, k as WorktreeFanoutOptions, ka as SurfaceScore, kc as inProcessSandboxClient, ki as assertProfileModelsAllowed, kl as DefinePersona, kn as codeModeSupervisorTools, ko as supervisorAgent, kr as pickChampion, ks as ProgressTrackerOptions, kt as WorktreePatchArtifact, ku as AnytimeTaskCurve, l as createVerifierEnvironment, la as BenchmarkStrategySummary, lc as DriverUnmetContractContext, ld as EscalateQuestion, li as probeSandboxCapabilities, ll as PanelVerdict, lm as SpawnForestMissingTree, ln as kernelPromptRegistry, lo as retryPreSpawnRefusals, lr as defaultStructuralRolloutPolicy, ls as supervisorRunDir, lt as parseWorkerToolTraceArtifact, lu as Leaderboard, m as SurfaceReadOutcome, ma as AgenticOptions, mc as RunAgentRoundsOptions, md as QuestionEscalationRecord, mi as startRetainedRun, ml as ScopeAnalyst, mm as pendingWaits, mn as DispatchStopReason, mo as DriveHarness, mr as sandboxCheckRunner, ms as workerCancellationsDir, mt as createScope, mu as ProfileKeyOf, n as AnalystFinding, na as McpEnvironmentOptions, nc as DriverBudgetReadout, ni as ForkCapableBox, nl as FlatWidenGate, nm as FileResultBlobStore, nn as RegisteredPrompt, no as workerFromBackend, nr as StructuralRolloutPolicy, ns as readWorkerCancelRequests, nt as localShell, nu as completionAuthorizes, o as computeFindingId, oa as BenchmarkConfig, oc as DriverRepromptPolicy, od as DownMessageDeliveryAttempt, oi as createSandboxLineage, ol as Panel, om as SpawnForest, on as dumbContinuationFailPrompt, oo as WorkerSpawnRetryPolicy, or as compareCheckOutcomes, os as runCancelRequestFile, ot as WORKER_TOOL_TRACE_SCHEMA_VERSION, ou as AxisScoresOf, p as SurfaceReadBox, pa as runBenchmark, pc as defaultUnmetContractSteer, pd as QuestionEscalationOutcome, pi as recoverRetainedRun, pl as RenderCorpusToInstructionsOptions, pm as materializeTreeView, pn as DispatchReport, po as CoordinationVerbs, pr as resolveEntrySymbol, ps as workerCancellationFile, pt as ScopeArgs, pu as PairwiseVerdict, q as copyUntrackedIntoClone, qa as AuthorizedSpawnContext, qc as CorpusRecord, qi as widen, ql as LeaderboardRunContext, qn as CheckExecChannel, qo as WorkerSteerAcknowledgement, qp as PublishOptions, qr as OpenSandboxRunBeforeStartContext, qs as FinalizerSettled, qt as GraphResult, qu as AuthoredAnalystDefinition, r as CreateSandboxOptions, ra as createMcpEnvironment, rc as DriverContractState, rd as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, ri as SandboxLineage, rl as LoopUntil, rm as FileSpawnJournal, rn as analyzesFindingsReportPrompt, ro as ResolvedWorkerSpawnRetry, rr as StructuralRolloutResult, rs as readWorkerCancellation, rt as runInWorkspace, ru as deterministicCompletion, s as makeFinding, sa as BenchmarkLift, sc as DriverRepromptRefusal, sd as DownMessageDeliveryOutcome, si as CriuCapableClient, sl as PanelJudge, sm as SpawnForestEvent, sn as dumbContinuationPassPrompt, so as isPreSpawnExecutorFailure, sr as composeCheckSources, ss as runCancellationFile, st as WorkerToolTraceArtifact, su as GroupOf, t as AgentProfile, ta as McpEndpoint, tc as DriverAttemptsExhaustedError, ti as CheckpointCapableBox, tl as FanoutWinnerSelector, tm as mapExecutorResult, tn as PromptRegistry, tr as StructuralRolloutMessage, ts as readRunCancellation, tt as jjWorkspace, tu as CompletionVerdict, u as BoxSurfaceReaderOptions, ua as BenchmarkTaskRow, uc as DriverUnmetContractDecision, ud as MakeWorkerAgent, ui as AcquireOptions, ul as Pipeline, um as SpawnForestNode, un as naiveContinuationPrompt, uo as withWorkerSpawnRetry, ur as filterAuthoredAsserts, us as supervisorRunsRoot, ut as workerTraceAnalysisStore, uu as LeaderboardOptions, v as fsSurfaceReader, va as AgenticTool, vc as isTerminalDecision, vi as reconnectRetainedInteractiveRun, vl as TrajectoryNode, vn as freeSlots, vo as ResolveSupervisorTools, vr as ChampionPick, vs as workerSteerAcknowledgementFile, vt as RunContext, vu as renderLeaderboardHtml, w as SurfaceWorkerOut, wa as StrategyArtifacts, wc as runIsolatedCheck, wd as SpawnRefusal, wi as PromotionVerdict, wl as Widen, wo as SupervisorProfile, wr as EvolutionGeneration, ws as AllWorkersStalledOptions, wt as SupervisorCleanupReceipt, wu as IntentAudit, x as SuperviseSurfaceOptions, xa as RunAgenticOptions, xc as localSandboxClient, xi as ResolveSandboxClientOptions, xl as TrajectoryReportOptions, xn as DelegateOptions, xr as EvolutionAuthor, xs as workerSteerRequestsDir, xt as ProvisionSupervisorConnection, xu as renderPairwiseMarkdown, y as harvestSurfaceDiffs, ya as ArtifactHandle, yc as runAgentRounds, yi as recoverRetainedInteractiveRun, yl as TrajectoryReport, yn as queueOf, yo as ResolvedSupervisorProfile, yr as ChampionPolicy, ys as workerSteerAcknowledgementsDir, yt as createFileRunContext, yu as renderLeaderboardMarkdown, z as NOTE_MAX_CHARS, za as LoopDispatchOptions, zc as ObserveOptions, zi as renderCorpusToInstructions, zl as ShapeContext, zn as AuthoredProfile, zo as CoordinationLog, zr as MaterializeLocalMcpOptions, zs as sampleFromSettled, zt as InPlaceCliExecutorOptions } from "./index-DgFsQnzq.js";
3
- import { $ as decodeHarnessUsage, $t as WorktreeCheckRunner, A as createInbox, An as ToolLoopMessageRecord, At as CreateAgentEnvironmentInput, B as secretEnvOfMcpServer, Bn as PeerMailReadout, Bt as ResourceRequest, C as SteerableSandboxArgs, Ct as AgentProfileRef, D as Inbox, Dn as ToolLoopChat, Dt as AgentTurnResult, E as AuthorityInboxMessage, En as ToolLoopCallContext, Et as AgentSessionStatus, F as ResolvedMcpServerLaunch, Fn as PeerMailEnvelope, Ft as PlacementInfo, G as CodexRolloutStoreRef, Gn as claimsAuthority, Gt as providerAsSandboxClient, H as CodexRolloutIdentity, Hn as PeerMailSendInput, Ht as WorkspaceRequest, I as envKeyProvider, In as PeerMailEvent, It as ProviderAsSandboxClientOptions, J as addHarnessUsage, Jn as peerMailTools, Jt as CreateTangleSandboxExactProcessProviderOptions, K as CodexRolloutTurn, Kn as createPeerMailbox, Kt as resolveAgentEnvironmentProvider, L as mcpSecretEnvMetadataKey, Ln as PeerMailKind, Lt as ProviderExecutorOptions, M as BridgeModelCredential, Mn as AUTHORITY_MARKERS, Mt as ExecRequest, N as BridgeSeam, Nn as DEFAULT_PEER_MAIL_LIMITS, Nt as ExecResult, O as InboxMessage, On as ToolLoopCompaction, Ot as CheckpointRef, P as KeyProvider, Pn as PEER_MAIL_WIRE_KEY, Pt as ForkRequest, Q as HarnessUsage, Qt as InPlaceHarnessResult, R as resolveMcpServerLaunch, Rn as PeerMailLimits, Rt as ProviderLeafOut, S as SandboxSteeringOptions, St as AgentEnvironmentSummary, T as createSteerableSandboxSession, Tn as ToolSpec, Tt as AgentSessionRef, U as CodexRolloutSession, Un as PeerMailbox, Ut as createAgentEnvironmentProviderRegistry, V as CodexForkBoundary, Vn as PeerMailRefusal, Vt as SandboxClientProviderOptions, W as CodexRolloutStoreReader, Wn as PeerMailboxOptions, Wt as providerAsExecutor, X as harnessUsageIsEmpty, Xt as createTangleSandboxExactProcessProvider, Y as createCodexRolloutStoreReader, Yn as peerMailVerbNames, Yt as SandboxControlClient, Z as readCodexRolloutSession, Zt as ProviderPlacement, _ as cliInPlaceExecutor, _t as AgentEnvironmentProvider, a as StreamAgentTurnOptions, at as assertSandboxServedModel, b as createExecutorRegistry, bt as AgentEnvironmentQuery, c as CliInPlaceSeam, ct as extractLlmCallEvent, d as CliWorktreeSeam, dt as sandboxEventServedBackend, en as WorktreeCommandResult, et as SandboxLeafOut, f as ExecutorConfig, ft as sandboxProgressEvents, g as SandboxSeam, gt as AgentEnvironmentEvent, h as RouterToolsSeam, ht as AgentEnvironmentCapabilities, i as CollectedAgentTurn, it as SandboxUsageLedger, j as BridgeHarnessStore, jn as ToolLoopToolCall, jt as DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS, k as PeerInboxMessage, kn as ToolLoopCompactionOptions, kt as CheckpointRequest, l as CliSeam, lt as mapSandboxEvent, m as RouterSeam, mt as AgentEnvironment, n as AgentTurnInput, nn as WorktreeProfileMaterializationReceipt, nt as SandboxServedBackend, o as collectAgentTurn, ot as createSandboxToolPartState, p as ProviderSeam, pt as sumSandboxUsage, q as CodexStoreDelta, qn as isPeerMailEnvelope, qt as sandboxClientAsProvider, r as AgentTurnUsage, rt as SandboxToolPartState, s as streamAgentTurn, st as createSandboxUsageLedger, t as AgentTurnBackend, tn as WorktreeHarnessResult, tt as SandboxOutputMarker, u as CliWorktreeBridgeSeam, ut as mapSandboxToolEvent, v as cliWorktreeExecutor, vt as AgentEnvironmentProviderRef, w as SteerableSandboxSession, wn as RouterTransportConfig, wt as AgentSession, x as DEFAULT_SANDBOX_STEERING_MAX_TURNS, xt as AgentEnvironmentStatus, y as createExecutor, yt as AgentEnvironmentProviderRegistry, z as resolveSecretEnv, zn as PeerMailOutcome, zt as ProviderPromptOptions } from "./stream-agent-turn-r1mtjn0i.js";
1
+ import { $ as SpawnPrior, $n as captureHarnessTranscript, $r as LoopResult, A as NodeId, An as RetainedPendingCause, Ar as BudgetPoolRestore, B as ResumedWork, Bn as RecoverRetainedInteractiveRunOptions, Br as AgentRunSpec, C as ExecutorToolCall, Cn as SessionTraceBox, Cr as RetainedRunReplayPoint, Ct as workerTraceHeaders, D as MaterializedModelIdentity, Dn as decodeToolPart, Dr as StartRetainedRunInEnvironmentOptions, E as MaterializedExecutionIdentity, En as createPushTraceSource, Er as RetainedRunTurnInput, F as ProviderModelExecutionEvidence, Fn as ScopeProgressInput, Fr as ReservationRejection, G as RootSignal, Gn as StartRetainedInteractiveRunOptions, Gr as LoopDecisionPayload, Gt as createOtelExporter, H as RootHandle, Hn as RetainedInteractiveEnvironmentInput, Hr as Driver, I as ResourceLimit, In as WorkerProgress, Ir as ReservationStage, J as Scope, Jn as HarnessTranscriptEvidence, Jr as LoopIterationEndedPayload, K as RootStreamReceipt, Kn as HarnessTranscriptArtifact, Kr as LoopEndedPayload, L as ResourceSpend, Ln as createActivityLog, Lr as ReservationTicket, M as NodeStatus, Mn as ActivityNote, Mr as BudgetReconcileFault, N as ProfileMaterializationReceipt, Nn as DEFAULT_STALL_AFTER_MS, Nr as LeakedReservation, O as NoWinnerError, On as sandboxSessionTraceSource, Or as StartRetainedRunOptions, P as ProviderModelAttemptEvidence, Pn as ExecutorProgress, Pr as ReservationHolder, Q as SpawnOpts, Qn as ReadableEnvironment, Qr as LoopPlanPayload, R as ResultBlobStore, Rn as readWorkerProgress, Rr as createBudgetPool, S as ExecutorTeardownWarning, Sn as SessionMessageLike, Sr as RetainedRunIntentAdmission, St as workerTraceEnv, T as Handle, Tn as TraceSource, Tr as RetainedRunStartMaterial, U as RootMaterialization, Un as RetainedInteractiveRunHandle, Ur as ExecCtx, V as RetainedExecutionState, Vn as RetainedInteractiveAdmissionHook, Vr as DefaultVerdict, W as RootProviderModelEvidence, Wn as RetainedInteractiveStartMaterial, Wr as Iteration, Wt as createOpenInferenceFileExporter, X as SpawnEvent, Xn as HarnessTranscriptUnavailable, Xr as LoopLineageOptions, Y as Settled, Yn as HarnessTranscriptFile, Yr as LoopIterationStartedPayload, Z as SpawnJournal, Zn as HarnessTranscriptUnavailableReason, Zr as LoopPlanDescription, _ as ExecutorMaterialization, _n as isWaitOutcome, _r as RetainedRunDispatchedAdmission, _t as WorkerTraceEvidence, a as BudgetOverspend, ai as LoopTraceEvent, ar as ReconnectRetainedRunOptions, at as SupervisedResult, b as ExecutorRegistry, bn as validateWaitSpec, br as RetainedRunEventOptions, bt as WorkerTraceSeamCarrier, c as EnvironmentTeardownReceipt, ci as MountRecorder, cr as RecoverRetainedRunResult, ct as TokenUsageProvenance, d as ExecutorAccounting, di as SandboxClient, dn as WaitOutcome, dr as RetainedInteractiveIntentAdmission, dt as UnknownMaterializationReason, ei as LoopSandboxPlacement, er as harnessTranscriptArtifact, et as SpawnRejection, f as ExecutorCancellation, fi as SelectionReceipt, fn as WaitProbe, fr as RetainedInteractiveStartedAdmission, ft as UsageEvent, g as ExecutorFactory, gn as createWaitProbes, gr as RetainedRunCancellation, gt as WorkerInteractiveUnavailableReason, h as ExecutorExecutionBinding, hn as WaitSpec, hr as RetainedRunCancelOptions, ht as WorkerInteractiveSession, i as Budget, ii as LoopTraceEmitter, ir as NativeContextContinuationInput, it as SteerableRootHandle, j as NodeSnapshot, jn as ActivityLog, jr as BudgetReadout, k as NodeExecutionIdentity, kr as BudgetPool, l as ExecutionBindingReceipt, li as OutputAdapter, lr as RetainedInteractiveAdmission, lt as TreeView, m as ExecutorContext, mi as Validator, mn as WaitRejection, mr as RetainedRunAdmissionHook, mt as WidenGate, n as AgentExecutionRef, ni as LoopTeardownFailedPayload, nr as NativeContextContinuationExecution, nt as SpendChannel, o as BudgetViolation, oi as LoopWinner, or as RecoverRetainedRunIntentOptions, ot as Supervisor, p as ExecutorCancellationRequest, pi as ValidationCtx, pn as WaitProbeRegistry, pr as RetainedRunAdmission, pt as WaitOpts, q as Runtime, qn as HarnessTranscriptCapture, qr as LoopIterationDispatchPayload, r as AgentSpec, ri as LoopTokenUsage, rr as NativeContextContinuationHandle, rt as SpendGap, si as MountManifestEntry, sr as RecoverRetainedRunOptions, st as SupervisorOpts, t as Agent, ti as LoopStartedPayload, tr as persistHarnessTranscript, tt as Spend, u as Executor, ui as RunProvenance, un as PendingWait, ur as RetainedInteractiveEnvironmentAdmission, ut as UnconfirmedTeardown, v as ExecutorNodeContext, vn as pollFor, vr as RetainedRunEffect, vt as WorkerTraceUnavailableReason, w as FleetYield, wn as ToolStepInput, wr as RetainedRunSnapshot, wt as workerTraceSeamKey, x as ExecutorResult, xn as waitUntil, xr as RetainedRunHandle, xt as readWorkerTraceContext, y as ExecutorProgressEvent, yn as timerAt, yr as RetainedRunEnvironmentAdmission, yt as WorkerTraceResolver, z as ResumedKeyState, zn as ReconnectRetainedInteractiveRunOptions, zr as spendFromUsageEvents } from "./types-DGhYyHOA.js";
2
+ import { $ as WorkspaceRun, $c as FanoutOptions, $i as registryScopeAnalyst, $l as CompletionEvidence, $n as RepairStop, $o as legacySupervisorRunsRoot, $p as ExecutorResultMapping, $r as openSandboxRun, $s as DriverAttemptRecord, $u as CoordinationEvent, A as worktreeFanout, Aa as adaptiveRefine, Ac as HarvestCorpusOptions, Ad as canonicalFindingEvent, Ai as equalKOnCost, Al as DefinePersonaInput, An as unsafeInProcessRunner, Ar as runStrategyEvolution, As as ProgressView, At as createWorktreeCliExecutor, Au as anytimeReport, B as VERIFY_TAIL_CHARS, Ba as LoopOptionsForDispatch, Bc as defaultAnalystInstruction, Bi as fanout, Bl as ShapeRegistry, Bn as ProfileRichness, Bo as CoordinationOwnerId, Br as McpSpawnFault, Bs as SupervisorSpanAttributes, Bt as createInPlaceCliExecutor, C as SurfaceWorkerConfig, Ca as Strategy, Cc as IsolatedCheckResult, Cd as SpawnPreflightContext, Ci as PromotionGateOptions, Cl as VerifySpec, Cn as delegate, Co as SupervisorNodeContextSeed, Cr as EvolutionCandidate, Cs as writeWorkerSteer, Ct as ProvisionedSupervisor, Cu as AuditIntentOptions, D as superviseSurface, Da as StrategyResult, Dc as InProcessPromptCtx, Dd as WorkerSpawnContext, Di as profileOptimizerModelCall, Dl as WidenSpec, Dn as CodeModeOptions, Do as assertCoordinationBinding, Dr as StrategyEvolutionConfig, Ds as ProgressSample, Dt as patchDelivered, Du as AnytimeReport, E as failuresAnalyst, Ea as StrategyMessage, Ec as InProcessOnPrompt, Ed as WorkerResumeContext, Ei as profileChatClient, El as WidenLineage, En as finalizeBestDelivered, Eo as SupervisorToolInvocationContext, Er as ReproductionCheck, Es as PlateauOptions, Et as PatchDeliverableOptions, Eu as defaultAuditorInstruction, F as readWorkerInteractiveBinding, Fa as runAgentic, Fc as Observation, Fi as definePersona, Fl as PersonaExecutors, Fn as ChatWorkerSeamOptions, Fo as serveCoordinationMcp, Fr as authorStrategy, Fs as anyOf, Ft as workerFromInteractiveProvider, Fu as WaterfallCollector, G as CopyOptions, Ga as superviseDispatch, Gc as Corpus, Gi as selectValidWinner, Gl as LeaderboardFlagSpec, Gn as profileRichnessFinding, Go as WorkerCancelRequest, Gp as BusStats, Gr as materializeLocalMcp, Gs as DeliveredOutput, Gt as GraphEdgeCapError, H as closingWorkerNote, Ha as SuperviseOptionsForDispatch, Hc as renderReport, Hi as loopUntil, Hl as LeaderboardBenchScore, Hn as asAuthoredProfile, Ho as PriorCoordination, Hr as StdioMcpConnection, Hs as SupervisorSpanOutcome, Ht as EdgeDeliveryOutcome, Hu as AnalystKind, I as workerInteractiveBindingFile, Ia as sample, Ic as ObservationAnalysis, Ii as runPersonified, Il as RunPersonified, In as chatTransportExecutor, Io as CoordinationHttpAudit, Ir as strategyAuthorContract, Is as createProgressTracker, It as WorkerInteractiveAdmission, Iu as WaterfallReport, J as withUntrackedArtifacts, Ja as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, Jc as EqualKArm, Ji as CreateScopeAnalystOptions, Jl as LeaderboardScenario, Jn as CheckOutcome, Jo as WorkerSteerRequest, Jp as createEventBus, Jr as OpenSandboxRunOptions, Js as SupervisorFinalizer, Jt as RunGraphOptions, Ju as AuthoredAnalystLimits, K as UntrackedCopyStats, Ka as AuthorizedSpawn, Kc as CorpusFilter, Ki as verify, Kl as LeaderboardIterationInfo, Kn as supervisorInstructions, Ko as WorkerCancellation, Kp as EventBus, Kr as Deliverable, Ks as FinalizeContext, Kt as GraphNode, Ku as AnalyzeOnSettleRoute, L as workerInteractiveBindingsDir, La as sampleThenRefine, Lc as ObservationError, Li as FileCorpus, Ll as RunPersonifiedOptions, Ln as chatWorkerSeam, Lo as CoordinationHttpOptions, Lr as strategyAuthorSystemPrompt, Ls as noProgressFor, Lt as readWorkerInteractiveAdmissions, Lu as WaterfallSpan, M as WorkerInteractiveBinding, Ma as defineStrategy, Mc as HarvestFailure, Mi as builtinShapes, Ml as Outcome, Mn as ChatSessionStore, Mo as CoordinationMcpHandle, Mr as AuthorStrategyOptions, Ms as StopRule, Mt as InteractiveWorkerKeyInput, Mu as bestSoFar, N as WorkerInteractiveProviderSource, Na as depthStrategy, Nc as HarvestReport, Nd as normalizeAnalyzeOnSettle, Ni as createShapeRegistry, Nl as Persona, Nn as ChatTransportExecutorOptions, No as CoordinationPublicAddress, Nr as AuthoredStrategy, Ns as allOf, Nt as InteractiveWorkerOptions, Nu as plateauLength, O as AuthoredHarness, Oa as StrategyShotResult, Oc as InProcessSandboxClientOptions, Od as WorkerWatchOptions, Oi as assertModelAllowed, Ol as WinnerStrategy, On as CodeModeRunner, Oo as resolveSupervisorProfile, Or as discriminatingMeans, Os as ProgressTracker, Ot as WorktreeCliExecutorOptions, Ou as AnytimeStrategySummary, P as attachWorker, Pa as refine, Pc as harvestCorpus, Pi as registerShape, Pl as PersonaContext, Pn as ChatTransportTool, Po as CoordinationTransportOptions, Pr as assertStrategyContract, Ps as allWorkersStalled, Pt as InteractiveWorkerResult, Pu as renderAnytimeTable, Q as WorkspaceCommit, Qa as SuperviseRegistryTable, Qc as Fanout, Qi as createScopeAnalyst, Ql as CompletionAnalyst, Qn as CheckSourceCtx, Qo as legacySupervisorRunDir, Qp as DeliverableSpec, Qr as TurnResult, Qs as runFinalizer, Qt as runGraph, Qu as ContinuityMode, R as EVIDENCE_MAX_CHARS, Ra as LoopCampaignDispatchOptions, Rc as ObserveInput, Ri as InMemoryCorpus, Rl as ShapeBudget, Rn as createChatSessionStore, Ro as CoordinationDeliveryEvidence, Rr as LocalMcpMaterialization, Rs as plateau, Rt as workerInteractiveAdmissionFile, Ru as createWaterfallCollector, S as SuperviseSurfaceResult, Sa as ShotSpec, Sc as IsolatedCheckOptions, Sd as SpawnPreflight, Si as resolveSandboxClient, Sl as Verify, Sn as defaultDelegateBudget, So as SupervisorNodeContext, Sr as EvolutionBandInfo, Ss as workerSteersDir, St as ProvisionSupervisorRequest, Su as AuditIntentInput, T as analystsFromRegistry, Ta as StrategyCtx, Tc as inlineSandboxClient, Td as SpawnRefusalCause, Ti as promotionGate, Tl as WidenDecision, To as SupervisorToolDescriptor, Tr as EvolutionReport, Ts as NoProgressForOptions, Tt as provisionSupervisor, Tu as auditIntent, U as composeWorkerEvidence, Ua as loopCampaignDispatch, Uc as AssertTraceDerivedFindings, Ui as panel, Ul as LeaderboardBenchTask, Un as assessAuthoredProfile, Uo as RunCancelRequest, Up as BusEvent, Ur as StdioMcpServerSpec, Us as SupervisorSpanRecorder, Ut as EdgeTraversal, Uu as AnalystLensOutput, V as WorkerEvidenceInput, Va as SuperviseDispatchOptions, Vc as observe, Vi as flatWidenGate, Vl as DefinedLeaderboard, Vn as ProfileRichnessThresholds, Vo as FileCoordinationLog, Vr as McpToolDescriptor, Vs as SupervisorSpanOptions, Vt as AgentGraph, Vu as AnalystFindingEvent, W as settledWorkerOut, Wa as loopDispatch, Wc as CombinatorShape, Wi as pipeline, Wl as LeaderboardBenchmarkAdapter, Wn as defaultProfileRichnessThresholds, Wo as RunCancellation, Wp as BusRecord, Wr as connectStdioMcp, Ws as createSupervisorSpanRecorder, Wt as GraphEdge, Wu as AnalystRegistry, X as Shell, Xa as SuperviseOptions, Xc as EqualKOnCostOptions, Xi as assertTraceDerivedFindings, Xl as LeaderboardSpec, Xn as CheckRunner, Xo as cancelRun, Xp as defaultToolDetectors, Xr as SandboxRun, Xs as collectDelivered, Xt as TraversalContinuity, Xu as AuthorizedDownMessage, Y as GitWorkspaceOptions, Ya as DeliverableResolutionInput, Yc as EqualKOnCost, Yi as RegistryAnalyzeProjection, Yl as LeaderboardScore, Yn as CheckRunContext, Yo as WriteWorkerSteerOptions, Yp as WatchTraceOptions, Yr as OpenSandboxRunPromptOptions, Ys as bestDelivered, Yu as AuthorizeDownMessage, Z as Workspace, Za as SuperviseRegistry, Zc as EqualKVerdict, Zi as buildSteerContext, Zl as defineLeaderboard, Zn as CheckSource, Zo as cancelWorker, Zp as watchTrace, Zr as SandboxRunAbortError, Zs as pickBestDelivered, Zt as defaultEdgeTraversalCap, Zu as ContinuationInstruction, _ as boxSurfaceReader, _a as AgenticTask, _c as defaultSelectWinner, _i as claimRetainedInteractiveControl, _l as SteerContext, _n as effectiveConcurrency, _o as ResolveDriveHarness, _r as visibleCheckScore, _s as workerInboxFileFromEventDir, _t as InMemoryRunContextOptions, _u as pairwiseSignificance, a as SandboxInstance, aa as BenchmarkCell, ac as DriverReentry, ad as DownMessageAuthorizationInput, ai as SessionCapableBox, al as LoopUntilState, am as InMemorySpawnJournal, an as delegatesWorkerBriefPrompt, ao as WorkerSpawnRetryHooks, ar as canDisplace, as as readWorkerSteerRequests, at as analyzeTrace, au as stopSentinel, b as AnalystAuthoring, ba as CorpusReadbackOptions, bc as LocalSandboxClientOptions, bi as startRetainedInteractiveRun, bl as TrajectoryReportFn, bn as rollingDispatch, bo as SupervisorAgentDeps, br as EvolutionArchiveNode, bs as workerSteerRequestFile, bt as createInMemoryRunContext, bu as renderLeaderboardSvg, c as VerifierEnvironmentOptions, ca as BenchmarkReport, cc as DriverRetryPolicy, cd as DownMessageEvent, ci as SandboxCapabilities, cl as PanelSpec, cm as SpawnForestInDoubtNode, cn as formatPromptHandle, co as resolveWorkerSpawnRetry, cr as defaultExtractCandidate, cs as safeWorkerFile, ct as captureWorkerTraceEvidence, cu as Interval, d as HarvestSurfaceDiffsOptions, da as Environment, dc as OnUnmetContract, di as acquireSandbox, dl as PipelineStage, dm as SpawnForestTree, dn as promptHandle, do as CoordinationBinding, dr as modelAuthoredChecks, ds as supervisorWorkersDir, dt as createRootHandle, du as LeaderboardRow, ea as observationFromRegistry, ec as DriverAttemptStop, ed as CoordinationStats, ei as BranchCapableBox, el as FanoutSynthesis, em as gateOnDeliverable, en as PromptHandle, eo as supervise, er as StructuralRolloutConfig, es as readRunCancelRequest, et as gitWorkspace, eu as CompletionPolicy, f as SurfaceDiff, fa as printBenchmarkReport, fc as classifyDriverFailure, fi as reconnectRetainedRun, fl as RenderCorpusToInstructions, fm as loadSpawnForest, fn as ConcurrencyCaps, fo as CoordinationToolFace, fr as officialChecksFromMeta, fs as workerCancelRequestsFile, ft as createSupervisor, fu as PairwiseOptions, g as WatchedSurface, ga as AgenticSurface, gc as TerminalDecision, gi as ClaimRetainedInteractiveControlOptions, gl as ScopeWidenGate, gm as contentAddress, gn as RollingDispatchOptions, go as ObserveSupervisorNodeEvent, gr as structuralRollout, gs as workerInboxFile, gt as InMemoryRunContext, gu as leaderboard, h as SurfaceReader, ha as AgenticRunResult, hc as TERMINAL_DECISIONS, hi as startRetainedRunInEnvironment, hl as ScopeAnalyzeInput, hm as replaySpawnTree, hn as DispatchUnit, ho as DriveHarnessOwnerContext, hr as selectBestIndex, hs as workerControlLogFile, ht as settledToIteration, hu as ScoreOf, i as SandboxEvent, ia as sanitizeMcpToolSchema, ic as DriverProgressMark, id as DefinedAnalystRecord, ii as SandboxLineageHandle, il as LoopUntilSpec, im as InMemoryResultBlobStore, in as createPromptRegistry, io as WorkerSpawnRetryAttempt, ir as VisibleCheck, is as readWorkerSteerAcknowledgement, it as TrajectoryAnalysis, iu as sentinelCompletion, j as AttachWorkerOptions, ja as breadthStrategy, jc as HarvestError, ji as trajectoryReport, jl as LoopShape, jn as ChatCompletionsTransport, jo as CoordinationAuthentication, jr as selectChampion, js as StopDecision, jt as InteractiveWorkerEnvironment, ju as areaUnderCurve, k as WorktreeFanoutOptions, ka as SurfaceScore, kc as inProcessSandboxClient, ki as assertProfileModelsAllowed, kl as DefinePersona, kn as codeModeSupervisorTools, ko as supervisorAgent, kr as pickChampion, ks as ProgressTrackerOptions, kt as WorktreePatchArtifact, ku as AnytimeTaskCurve, l as createVerifierEnvironment, la as BenchmarkStrategySummary, lc as DriverUnmetContractContext, ld as EscalateQuestion, li as probeSandboxCapabilities, ll as PanelVerdict, lm as SpawnForestMissingTree, ln as kernelPromptRegistry, lo as retryPreSpawnRefusals, lr as defaultStructuralRolloutPolicy, ls as supervisorRunDir, lt as parseWorkerToolTraceArtifact, lu as Leaderboard, m as SurfaceReadOutcome, ma as AgenticOptions, mc as RunAgentRoundsOptions, md as QuestionEscalationRecord, mi as startRetainedRun, ml as ScopeAnalyst, mm as pendingWaits, mn as DispatchStopReason, mo as DriveHarness, mr as sandboxCheckRunner, ms as workerCancellationsDir, mt as createScope, mu as ProfileKeyOf, n as AnalystFinding, na as McpEnvironmentOptions, nc as DriverBudgetReadout, ni as ForkCapableBox, nl as FlatWidenGate, nm as FileResultBlobStore, nn as RegisteredPrompt, no as workerFromBackend, nr as StructuralRolloutPolicy, ns as readWorkerCancelRequests, nt as localShell, nu as completionAuthorizes, o as computeFindingId, oa as BenchmarkConfig, oc as DriverRepromptPolicy, od as DownMessageDeliveryAttempt, oi as createSandboxLineage, ol as Panel, om as SpawnForest, on as dumbContinuationFailPrompt, oo as WorkerSpawnRetryPolicy, or as compareCheckOutcomes, os as runCancelRequestFile, ot as WORKER_TOOL_TRACE_SCHEMA_VERSION, ou as AxisScoresOf, p as SurfaceReadBox, pa as runBenchmark, pc as defaultUnmetContractSteer, pd as QuestionEscalationOutcome, pi as recoverRetainedRun, pl as RenderCorpusToInstructionsOptions, pm as materializeTreeView, pn as DispatchReport, po as CoordinationVerbs, pr as resolveEntrySymbol, ps as workerCancellationFile, pt as ScopeArgs, pu as PairwiseVerdict, q as copyUntrackedIntoClone, qa as AuthorizedSpawnContext, qc as CorpusRecord, qi as widen, ql as LeaderboardRunContext, qn as CheckExecChannel, qo as WorkerSteerAcknowledgement, qp as PublishOptions, qr as OpenSandboxRunBeforeStartContext, qs as FinalizerSettled, qt as GraphResult, qu as AuthoredAnalystDefinition, r as CreateSandboxOptions, ra as createMcpEnvironment, rc as DriverContractState, rd as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, ri as SandboxLineage, rl as LoopUntil, rm as FileSpawnJournal, rn as analyzesFindingsReportPrompt, ro as ResolvedWorkerSpawnRetry, rr as StructuralRolloutResult, rs as readWorkerCancellation, rt as runInWorkspace, ru as deterministicCompletion, s as makeFinding, sa as BenchmarkLift, sc as DriverRepromptRefusal, sd as DownMessageDeliveryOutcome, si as CriuCapableClient, sl as PanelJudge, sm as SpawnForestEvent, sn as dumbContinuationPassPrompt, so as isPreSpawnExecutorFailure, sr as composeCheckSources, ss as runCancellationFile, st as WorkerToolTraceArtifact, su as GroupOf, t as AgentProfile, ta as McpEndpoint, tc as DriverAttemptsExhaustedError, ti as CheckpointCapableBox, tl as FanoutWinnerSelector, tm as mapExecutorResult, tn as PromptRegistry, tr as StructuralRolloutMessage, ts as readRunCancellation, tt as jjWorkspace, tu as CompletionVerdict, u as BoxSurfaceReaderOptions, ua as BenchmarkTaskRow, uc as DriverUnmetContractDecision, ud as MakeWorkerAgent, ui as AcquireOptions, ul as Pipeline, um as SpawnForestNode, un as naiveContinuationPrompt, uo as withWorkerSpawnRetry, ur as filterAuthoredAsserts, us as supervisorRunsRoot, ut as workerTraceAnalysisStore, uu as LeaderboardOptions, v as fsSurfaceReader, va as AgenticTool, vc as isTerminalDecision, vi as reconnectRetainedInteractiveRun, vl as TrajectoryNode, vn as freeSlots, vo as ResolveSupervisorTools, vr as ChampionPick, vs as workerSteerAcknowledgementFile, vt as RunContext, vu as renderLeaderboardHtml, w as SurfaceWorkerOut, wa as StrategyArtifacts, wc as runIsolatedCheck, wd as SpawnRefusal, wi as PromotionVerdict, wl as Widen, wo as SupervisorProfile, wr as EvolutionGeneration, ws as AllWorkersStalledOptions, wt as SupervisorCleanupReceipt, wu as IntentAudit, x as SuperviseSurfaceOptions, xa as RunAgenticOptions, xc as localSandboxClient, xi as ResolveSandboxClientOptions, xl as TrajectoryReportOptions, xn as DelegateOptions, xr as EvolutionAuthor, xs as workerSteerRequestsDir, xt as ProvisionSupervisorConnection, xu as renderPairwiseMarkdown, y as harvestSurfaceDiffs, ya as ArtifactHandle, yc as runAgentRounds, yi as recoverRetainedInteractiveRun, yl as TrajectoryReport, yn as queueOf, yo as ResolvedSupervisorProfile, yr as ChampionPolicy, ys as workerSteerAcknowledgementsDir, yt as createFileRunContext, yu as renderLeaderboardMarkdown, z as NOTE_MAX_CHARS, za as LoopDispatchOptions, zc as ObserveOptions, zi as renderCorpusToInstructions, zl as ShapeContext, zn as AuthoredProfile, zo as CoordinationLog, zr as MaterializeLocalMcpOptions, zs as sampleFromSettled, zt as InPlaceCliExecutorOptions } from "./index-BjXc69fl.js";
3
+ import { $ as decodeHarnessUsage, $t as WorktreeCheckRunner, A as createInbox, An as ToolLoopMessageRecord, At as CreateAgentEnvironmentInput, B as secretEnvOfMcpServer, Bn as PeerMailReadout, Bt as ResourceRequest, C as SteerableSandboxArgs, Ct as AgentProfileRef, D as Inbox, Dn as ToolLoopChat, Dt as AgentTurnResult, E as AuthorityInboxMessage, En as ToolLoopCallContext, Et as AgentSessionStatus, F as ResolvedMcpServerLaunch, Fn as PeerMailEnvelope, Ft as PlacementInfo, G as CodexRolloutStoreRef, Gn as claimsAuthority, Gt as providerAsSandboxClient, H as CodexRolloutIdentity, Hn as PeerMailSendInput, Ht as WorkspaceRequest, I as envKeyProvider, In as PeerMailEvent, It as ProviderAsSandboxClientOptions, J as addHarnessUsage, Jn as peerMailTools, Jt as CreateTangleSandboxExactProcessProviderOptions, K as CodexRolloutTurn, Kn as createPeerMailbox, Kt as resolveAgentEnvironmentProvider, L as mcpSecretEnvMetadataKey, Ln as PeerMailKind, Lt as ProviderExecutorOptions, M as BridgeModelCredential, Mn as AUTHORITY_MARKERS, Mt as ExecRequest, N as BridgeSeam, Nn as DEFAULT_PEER_MAIL_LIMITS, Nt as ExecResult, O as InboxMessage, On as ToolLoopCompaction, Ot as CheckpointRef, P as KeyProvider, Pn as PEER_MAIL_WIRE_KEY, Pt as ForkRequest, Q as HarnessUsage, Qt as InPlaceHarnessResult, R as resolveMcpServerLaunch, Rn as PeerMailLimits, Rt as ProviderLeafOut, S as SandboxSteeringOptions, St as AgentEnvironmentSummary, T as createSteerableSandboxSession, Tn as ToolSpec, Tt as AgentSessionRef, U as CodexRolloutSession, Un as PeerMailbox, Ut as createAgentEnvironmentProviderRegistry, V as CodexForkBoundary, Vn as PeerMailRefusal, Vt as SandboxClientProviderOptions, W as CodexRolloutStoreReader, Wn as PeerMailboxOptions, Wt as providerAsExecutor, X as harnessUsageIsEmpty, Xt as createTangleSandboxExactProcessProvider, Y as createCodexRolloutStoreReader, Yn as peerMailVerbNames, Yt as SandboxControlClient, Z as readCodexRolloutSession, Zt as ProviderPlacement, _ as cliInPlaceExecutor, _t as AgentEnvironmentProvider, a as StreamAgentTurnOptions, at as assertSandboxServedModel, b as createExecutorRegistry, bt as AgentEnvironmentQuery, c as CliInPlaceSeam, ct as extractLlmCallEvent, d as CliWorktreeSeam, dt as sandboxEventServedBackend, en as WorktreeCommandResult, et as SandboxLeafOut, f as ExecutorConfig, ft as sandboxProgressEvents, g as SandboxSeam, gt as AgentEnvironmentEvent, h as RouterToolsSeam, ht as AgentEnvironmentCapabilities, i as CollectedAgentTurn, it as SandboxUsageLedger, j as BridgeHarnessStore, jn as ToolLoopToolCall, jt as DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS, k as PeerInboxMessage, kn as ToolLoopCompactionOptions, kt as CheckpointRequest, l as CliSeam, lt as mapSandboxEvent, m as RouterSeam, mt as AgentEnvironment, n as AgentTurnInput, nn as WorktreeProfileMaterializationReceipt, nt as SandboxServedBackend, o as collectAgentTurn, ot as createSandboxToolPartState, p as ProviderSeam, pt as sumSandboxUsage, q as CodexStoreDelta, qn as isPeerMailEnvelope, qt as sandboxClientAsProvider, r as AgentTurnUsage, rt as SandboxToolPartState, s as streamAgentTurn, st as createSandboxUsageLedger, t as AgentTurnBackend, tn as WorktreeHarnessResult, tt as SandboxOutputMarker, u as CliWorktreeBridgeSeam, ut as mapSandboxToolEvent, v as cliWorktreeExecutor, vt as AgentEnvironmentProviderRef, w as SteerableSandboxSession, wn as RouterTransportConfig, wt as AgentSession, x as DEFAULT_SANDBOX_STEERING_MAX_TURNS, xt as AgentEnvironmentStatus, y as createExecutor, yt as AgentEnvironmentProviderRegistry, z as resolveSecretEnv, zn as PeerMailOutcome, zt as ProviderPromptOptions } from "./stream-agent-turn-Bh-WPrfq.js";
4
4
  export { AUTHORITY_MARKERS, type AcquireOptions, type ActivityLog, type ActivityNote, type Agent, type AgentEnvironment, type AgentEnvironmentCapabilities, type AgentEnvironmentEvent, type AgentEnvironmentProvider, type AgentEnvironmentProviderRef, type AgentEnvironmentProviderRegistry, type AgentEnvironmentQuery, type AgentEnvironmentStatus, type AgentEnvironmentSummary, type AgentExecutionRef, type AgentGraph, type AgentProfile, type AgentProfileRef, type AgentRunSpec, type AgentSession, type AgentSessionRef, type AgentSessionStatus, type AgentSpec, type AgentTurnBackend, type AgentTurnInput, type AgentTurnResult, type AgentTurnUsage, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, type AllWorkersStalledOptions, type AnalystAuthoring, type AnalystFinding, type AnalystFindingEvent, type AnalystKind, type AnalystLensOutput, type AnalystRegistry, type AnalyzeOnSettleRoute, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ArtifactHandle, type AssertTraceDerivedFindings, type AttachWorkerOptions, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredAnalystDefinition, type AuthoredAnalystLimits, type AuthoredHarness, type AuthoredProfile, type AuthoredStrategy, type AuthorityInboxMessage, type AuthorizeDownMessage, type AuthorizedDownMessage, type AuthorizedSpawn, type AuthorizedSpawnContext, type AxisScoresOf, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, type BoxSurfaceReaderOptions, type BranchCapableBox, type BridgeHarnessStore, type BridgeModelCredential, type BridgeSeam, type Budget, type BudgetOverspend, type BudgetPool, type BudgetPoolRestore, type BudgetReadout, BudgetReconcileFault, type BudgetViolation, type BusEvent, type BusRecord, type BusStats, type ChampionPick, type ChampionPolicy, type ChatCompletionsTransport, type ChatSessionStore, type ChatTransportExecutorOptions, type ChatTransportTool, type ChatWorkerSeamOptions, type CheckExecChannel, type CheckOutcome, type CheckRunContext, type CheckRunner, type CheckSource, type CheckSourceCtx, type CheckpointCapableBox, type CheckpointRef, type CheckpointRequest, type ClaimRetainedInteractiveControlOptions, type CliInPlaceSeam, type CliSeam, type CliWorktreeBridgeSeam, type CliWorktreeSeam, type CodeModeOptions, type CodeModeRunner, type CodexForkBoundary, type CodexRolloutIdentity, type CodexRolloutSession, type CodexRolloutStoreReader, type CodexRolloutStoreRef, type CodexRolloutTurn, type CodexStoreDelta, type CollectedAgentTurn, type CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, type ContinuationInstruction, type ContinuityMode, type CoordinationAuthentication, type CoordinationBinding, type CoordinationDeliveryEvidence, type CoordinationEvent, type CoordinationHttpAudit, type CoordinationHttpOptions, type CoordinationLog, type CoordinationMcpHandle, type CoordinationOwnerId, type CoordinationPublicAddress, type CoordinationStats, type CoordinationToolFace, type CoordinationTransportOptions, type CoordinationVerbs, type CopyOptions, type Corpus, type CorpusFilter, type CorpusReadbackOptions, type CorpusRecord, type CreateAgentEnvironmentInput, type CreateSandboxOptions, type CreateScopeAnalystOptions, type CreateTangleSandboxExactProcessProviderOptions, type CriuCapableClient, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, DEFAULT_AWAIT_EVENT_TIMEOUT_MS, DEFAULT_PEER_MAIL_LIMITS, DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_STALL_AFTER_MS, type DefaultVerdict, type DefinePersona, type DefinePersonaInput, type DefinedAnalystRecord, type DefinedLeaderboard, type DelegateOptions, type Deliverable, type DeliverableResolutionInput, type DeliverableSpec, type DeliveredOutput, type DispatchReport, type DispatchStopReason, type DispatchUnit, type DownMessageAuthorizationInput, type DownMessageDeliveryAttempt, type DownMessageDeliveryOutcome, type DownMessageEvent, type DriveHarness, type DriveHarnessOwnerContext, type Driver, type DriverAttemptRecord, type DriverAttemptStop, DriverAttemptsExhaustedError, type DriverBudgetReadout, type DriverContractState, type DriverProgressMark, type DriverReentry, type DriverRepromptPolicy, type DriverRepromptRefusal, type DriverRetryPolicy, type DriverUnmetContractContext, type DriverUnmetContractDecision, EVIDENCE_MAX_CHARS, type EdgeDeliveryOutcome, type EdgeTraversal, type Environment, type EnvironmentTeardownReceipt, type EqualKArm, type EqualKOnCost, type EqualKOnCostOptions, type EqualKVerdict, type EscalateQuestion, type EventBus, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, type ExecCtx, type ExecRequest, type ExecResult, type ExecutionBindingReceipt, type Executor, type ExecutorAccounting, type ExecutorCancellation, type ExecutorCancellationRequest, type ExecutorConfig, type ExecutorContext, type ExecutorExecutionBinding, type ExecutorFactory, type ExecutorMaterialization, type ExecutorNodeContext, type ExecutorProgress, type ExecutorProgressEvent, type ExecutorRegistry, type ExecutorResult, type ExecutorResultMapping, type ExecutorTeardownWarning, type ExecutorToolCall, type Fanout, type FanoutOptions, type FanoutSynthesis, type FanoutWinnerSelector, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, type FinalizeContext, type FinalizerSettled, type FlatWidenGate, type FleetYield, type ForkCapableBox, type ForkRequest, type GitWorkspaceOptions, type GraphEdge, GraphEdgeCapError, type GraphNode, type GraphResult, type GroupOf, type Handle, type HarnessTranscriptArtifact, type HarnessTranscriptCapture, type HarnessTranscriptEvidence, type HarnessTranscriptFile, type HarnessTranscriptUnavailable, type HarnessTranscriptUnavailableReason, type HarnessUsage, type HarvestCorpusOptions, HarvestError, type HarvestFailure, type HarvestReport, type HarvestSurfaceDiffsOptions, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InPlaceCliExecutorOptions, type InPlaceHarnessResult, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, type InteractiveWorkerEnvironment, type InteractiveWorkerKeyInput, type InteractiveWorkerOptions, type InteractiveWorkerResult, type Interval, type IsolatedCheckOptions, type IsolatedCheckResult, type Iteration, type KeyProvider, type Leaderboard, type LeaderboardBenchScore, type LeaderboardBenchTask, type LeaderboardBenchmarkAdapter, type LeaderboardFlagSpec, type LeaderboardIterationInfo, type LeaderboardOptions, type LeaderboardRow, type LeaderboardRunContext, type LeaderboardScenario, type LeaderboardScore, type LeaderboardSpec, type LeakedReservation, type LocalMcpMaterialization, type LocalSandboxClientOptions, type LoopCampaignDispatchOptions, type LoopDecisionPayload, type LoopDispatchOptions, type LoopEndedPayload, type LoopIterationDispatchPayload, type LoopIterationEndedPayload, type LoopIterationStartedPayload, type LoopLineageOptions, type LoopOptionsForDispatch, type LoopPlanDescription, type LoopPlanPayload, type LoopResult, type LoopSandboxPlacement, type LoopShape, type LoopStartedPayload, type LoopTeardownFailedPayload, type LoopTokenUsage, type LoopTraceEmitter, type LoopTraceEvent, type LoopUntil, type LoopUntilSpec, type LoopUntilState, type LoopWinner, type MakeWorkerAgent, type MaterializeLocalMcpOptions, type MaterializedExecutionIdentity, type MaterializedModelIdentity, type McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, type MountManifestEntry, type MountRecorder, NOTE_MAX_CHARS, type NativeContextContinuationExecution, type NativeContextContinuationHandle, type NativeContextContinuationInput, type NoProgressForOptions, type NoWinnerError, type NodeExecutionIdentity, type NodeId, type NodeSnapshot, type NodeStatus, type Observation, type ObservationAnalysis, ObservationError, type ObserveInput, type ObserveOptions, type ObserveSupervisorNodeEvent, type OnUnmetContract, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, type Outcome, type OutputAdapter, PEER_MAIL_WIRE_KEY, type PairwiseOptions, type PairwiseVerdict, type Panel, type PanelJudge, type PanelSpec, type PanelVerdict, type PatchDeliverableOptions, type PeerInboxMessage, type PeerMailEnvelope, type PeerMailEvent, type PeerMailKind, type PeerMailLimits, type PeerMailOutcome, type PeerMailReadout, type PeerMailRefusal, type PeerMailSendInput, type PeerMailbox, type PeerMailboxOptions, type PendingWait, type Persona, type PersonaContext, type PersonaExecutors, type Pipeline, type PipelineStage, type PlacementInfo, type PlateauOptions, type PriorCoordination, type ProfileKeyOf, type ProfileMaterializationReceipt, type ProfileRichness, type ProfileRichnessThresholds, type ProgressSample, type ProgressTracker, type ProgressTrackerOptions, type ProgressView, type PromotionGateOptions, type PromotionVerdict, type PromptHandle, type PromptRegistry, type ProviderAsSandboxClientOptions, type ProviderExecutorOptions, type ProviderLeafOut, type ProviderModelAttemptEvidence, type ProviderModelExecutionEvidence, type ProviderPlacement, type ProviderPromptOptions, type ProviderSeam, type ProvisionSupervisorConnection, type ProvisionSupervisorRequest, type ProvisionedSupervisor, type PublishOptions, type QuestionEscalationOutcome, type QuestionEscalationRecord, type ReadableEnvironment, type ReconnectRetainedInteractiveRunOptions, type ReconnectRetainedRunOptions, type RecoverRetainedInteractiveRunOptions, type RecoverRetainedRunIntentOptions, type RecoverRetainedRunOptions, type RecoverRetainedRunResult, type RegisteredPrompt, type RegistryAnalyzeProjection, type RenderCorpusToInstructions, type RenderCorpusToInstructionsOptions, type RepairStop, type ReproductionCheck, type ReservationHolder, type ReservationRejection, type ReservationStage, type ReservationTicket, type ResolveDriveHarness, type ResolveSandboxClientOptions, type ResolveSupervisorTools, type ResolvedMcpServerLaunch, type ResolvedSupervisorProfile, type ResolvedWorkerSpawnRetry, type ResourceLimit, type ResourceRequest, type ResourceSpend, type ResultBlobStore, type ResumedKeyState, type ResumedWork, type RetainedExecutionState, type RetainedInteractiveAdmission, type RetainedInteractiveAdmissionHook, type RetainedInteractiveEnvironmentAdmission, type RetainedInteractiveEnvironmentInput, type RetainedInteractiveIntentAdmission, type RetainedInteractiveRunHandle, type RetainedInteractiveStartMaterial, type RetainedInteractiveStartedAdmission, type RetainedPendingCause, type RetainedRunAdmission, type RetainedRunAdmissionHook, type RetainedRunCancelOptions, type RetainedRunCancellation, type RetainedRunDispatchedAdmission, type RetainedRunEffect, type RetainedRunEnvironmentAdmission, type RetainedRunEventOptions, type RetainedRunHandle, type RetainedRunIntentAdmission, type RetainedRunReplayPoint, type RetainedRunSnapshot, type RetainedRunStartMaterial, type RetainedRunTurnInput, type RollingDispatchOptions, type RootHandle, type RootMaterialization, type RootProviderModelEvidence, type RootSignal, type RootStreamReceipt, type RouterSeam, type RouterToolsSeam, type RouterTransportConfig, type RunAgentRoundsOptions, type RunAgenticOptions, type RunCancelRequest, type RunCancellation, type RunContext, type RunGraphOptions, type RunPersonified, type RunPersonifiedOptions, type RunProvenance, type Runtime, type SandboxCapabilities, type SandboxClient, type SandboxClientProviderOptions, type SandboxControlClient, type SandboxEvent, type SandboxInstance, type SandboxLeafOut, type SandboxLineage, type SandboxLineageHandle, type SandboxOutputMarker, type SandboxRun, SandboxRunAbortError, type SandboxSeam, type SandboxServedBackend, type SandboxSteeringOptions, type SandboxToolPartState, type SandboxUsageLedger, type Scope, type ScopeAnalyst, type ScopeAnalyzeInput, type ScopeArgs, type ScopeProgressInput, type ScopeWidenGate, type ScoreOf, type SelectionReceipt, type SessionCapableBox, type SessionMessageLike, type SessionTraceBox, type Settled, type ShapeBudget, type ShapeContext, type ShapeRegistry, type Shell, type ShotSpec, type SpawnEvent, type SpawnForest, type SpawnForestEvent, type SpawnForestInDoubtNode, type SpawnForestMissingTree, type SpawnForestNode, type SpawnForestTree, type SpawnJournal, type SpawnOpts, type SpawnPreflight, type SpawnPreflightContext, type SpawnPrior, type SpawnRefusal, type SpawnRefusalCause, type SpawnRejection, type Spend, type SpendChannel, type SpendGap, type StartRetainedInteractiveRunOptions, type StartRetainedRunInEnvironmentOptions, type StartRetainedRunOptions, type StdioMcpConnection, type StdioMcpServerSpec, type SteerContext, type SteerableRootHandle, type SteerableSandboxArgs, type SteerableSandboxSession, type StopDecision, type StopRule, type Strategy, type StrategyArtifacts, type StrategyCtx, type StrategyEvolutionConfig, type StrategyMessage, type StrategyResult, type StrategyShotResult, type StreamAgentTurnOptions, type StructuralRolloutConfig, type StructuralRolloutMessage, type StructuralRolloutPolicy, type StructuralRolloutResult, type SuperviseDispatchOptions, type SuperviseOptions, type SuperviseOptionsForDispatch, type SuperviseRegistry, type SuperviseRegistryTable, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, type SupervisedResult, type Supervisor, type SupervisorAgentDeps, type SupervisorCleanupReceipt, type SupervisorFinalizer, type SupervisorNodeContext, type SupervisorNodeContextSeed, type SupervisorOpts, type SupervisorProfile, type SupervisorSpanAttributes, type SupervisorSpanOptions, type SupervisorSpanOutcome, type SupervisorSpanRecorder, type SupervisorToolDescriptor, type SupervisorToolInvocationContext, type SurfaceDiff, type SurfaceReadBox, type SurfaceReadOutcome, type SurfaceReader, type SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, TERMINAL_DECISIONS, type TerminalDecision, type TokenUsageProvenance, type ToolLoopCallContext, type ToolLoopChat, type ToolLoopCompaction, type ToolLoopCompactionOptions, type ToolLoopMessageRecord, type ToolLoopToolCall, type ToolSpec, type ToolStepInput, type TraceSource, type TrajectoryAnalysis, type TrajectoryNode, type TrajectoryReport, type TrajectoryReportFn, type TrajectoryReportOptions, type TraversalContinuity, type TreeView, type TurnResult, type UnconfirmedTeardown, type UnknownMaterializationReason, type UntrackedCopyStats, type UsageEvent, VERIFY_TAIL_CHARS, type ValidationCtx, type Validator, type VerifierEnvironmentOptions, type Verify, type VerifySpec, type VisibleCheck, WORKER_TOOL_TRACE_SCHEMA_VERSION, type WaitOpts, type WaitOutcome, type WaitProbe, type WaitProbeRegistry, type WaitRejection, type WaitSpec, type WatchTraceOptions, type WatchedSurface, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, type Widen, type WidenDecision, type WidenGate, type WidenLineage, type WidenSpec, type WinnerStrategy, type WorkerCancelRequest, type WorkerCancellation, type WorkerEvidenceInput, type WorkerInteractiveAdmission, type WorkerInteractiveBinding, type WorkerInteractiveProviderSource, type WorkerInteractiveSession, type WorkerInteractiveUnavailableReason, type WorkerProgress, type WorkerResumeContext, type WorkerSpawnContext, type WorkerSpawnRetryAttempt, type WorkerSpawnRetryHooks, type WorkerSpawnRetryPolicy, type WorkerSteerAcknowledgement, type WorkerSteerRequest, type WorkerToolTraceArtifact, type WorkerTraceEvidence, type WorkerTraceResolver, type WorkerTraceSeamCarrier, type WorkerTraceUnavailableReason, type WorkerWatchOptions, type Workspace, type WorkspaceCommit, type WorkspaceRequest, type WorkspaceRun, type WorktreeCheckRunner, type WorktreeCliExecutorOptions, type WorktreeCommandResult, type WorktreeFanoutOptions, type WorktreeHarnessResult, type WorktreePatchArtifact, type WorktreeProfileMaterializationReceipt, type WriteWorkerSteerOptions, acquireSandbox, adaptiveRefine, addHarnessUsage, allOf, allWorkersStalled, analystsFromRegistry, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertCoordinationBinding, assertModelAllowed, assertProfileModelsAllowed, assertSandboxServedModel, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, attachWorker, auditIntent, authorStrategy, bestDelivered, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cancelRun, cancelWorker, canonicalFindingEvent, captureHarnessTranscript, captureWorkerTraceEvidence, chatTransportExecutor, chatWorkerSeam, claimRetainedInteractiveControl, claimsAuthority, classifyDriverFailure, cliInPlaceExecutor, cliWorktreeExecutor, closingWorkerNote, codeModeSupervisorTools, collectAgentTurn, collectDelivered, compareCheckOutcomes, completionAuthorizes, composeCheckSources, composeWorkerEvidence, computeFindingId, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createCodexRolloutStoreReader, createEventBus, createExecutor, createExecutorRegistry, createFileRunContext, createInMemoryRunContext, createInPlaceCliExecutor, createInbox, createMcpEnvironment, createOpenInferenceFileExporter, createOtelExporter, createPeerMailbox, createProgressTracker, createPromptRegistry, createPushTraceSource, createRootHandle, createSandboxLineage, createSandboxToolPartState, createSandboxUsageLedger, createScope, createScopeAnalyst, createShapeRegistry, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createTangleSandboxExactProcessProvider, createVerifierEnvironment, createWaitProbes, createWaterfallCollector, createWorktreeCliExecutor, decodeHarnessUsage, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defaultUnmetContractSteer, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, discriminatingMeans, dumbContinuationFailPrompt, dumbContinuationPassPrompt, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, finalizeBestDelivered, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, harnessTranscriptArtifact, harnessUsageIsEmpty, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isPeerMailEnvelope, isPreSpawnExecutorFailure, isTerminalDecision, isWaitOutcome, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, legacySupervisorRunsRoot, loadSpawnForest, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, normalizeAnalyzeOnSettle, observationFromRegistry, observe, officialChecksFromMeta, openSandboxRun, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, patchDelivered, peerMailTools, peerMailVerbNames, pendingWaits, persistHarnessTranscript, pickBestDelivered, pickChampion, pipeline, plateau, plateauLength, pollFor, printBenchmarkReport, probeSandboxCapabilities, profileChatClient, profileOptimizerModelCall, profileRichnessFinding, promotionGate, promptHandle, providerAsExecutor, providerAsSandboxClient, provisionSupervisor, queueOf, readCodexRolloutSession, readRunCancelRequest, readRunCancellation, readWorkerCancelRequests, readWorkerCancellation, readWorkerInteractiveAdmissions, readWorkerInteractiveBinding, readWorkerProgress, readWorkerSteerAcknowledgement, readWorkerSteerRequests, readWorkerTraceContext, reconnectRetainedInteractiveRun, reconnectRetainedRun, recoverRetainedInteractiveRun, recoverRetainedRun, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, resolveSupervisorProfile, resolveWorkerSpawnRetry, retryPreSpawnRefusals, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runCancelRequestFile, runCancellationFile, runFinalizer, runGraph, runInWorkspace, runIsolatedCheck, runPersonified, runStrategyEvolution, safeWorkerFile, sample, sampleFromSettled, sampleThenRefine, sandboxCheckRunner, sandboxClientAsProvider, sandboxEventServedBackend, sandboxProgressEvents, sandboxSessionTraceSource, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectBestIndex, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, settledWorkerOut, spendFromUsageEvents, startRetainedInteractiveRun, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, strategyAuthorContract, strategyAuthorSystemPrompt, streamAgentTurn, structuralRollout, sumSandboxUsage, supervise, superviseDispatch, superviseSurface, supervisorAgent, supervisorInstructions, supervisorRunDir, supervisorRunsRoot, supervisorWorkersDir, timerAt, trajectoryReport, unsafeInProcessRunner, validateWaitSpec, verify, visibleCheckScore, waitUntil, watchTrace, widen, withUntrackedArtifacts, withWorkerSpawnRetry, workerCancelRequestsFile, workerCancellationFile, workerCancellationsDir, workerControlLogFile, workerFromBackend, workerFromInteractiveProvider, workerInboxFile, workerInboxFileFromEventDir, workerInteractiveAdmissionFile, workerInteractiveBindingFile, workerInteractiveBindingsDir, workerSteerAcknowledgementFile, workerSteerAcknowledgementsDir, workerSteerRequestFile, workerSteerRequestsDir, workerSteersDir, workerTraceAnalysisStore, workerTraceEnv, workerTraceHeaders, workerTraceSeamKey, worktreeFanout, writeWorkerSteer };
package/dist/kernel.js CHANGED
@@ -1,11 +1,11 @@
1
- import { $t as addHarnessUsage, A as waitUntil, B as attachWorker, Bt as createInbox, Cn as resolveAgentEnvironmentProvider, Ct as workerTraceAnalysisStore, D as pollFor, Dn as sandboxSessionTraceSource, E as isWaitOutcome, Ei as sumSandboxUsage, En as decodeToolPart, Et as createBudgetPool, Fn as recoverRetainedRun, Ft as workerTraceSeamKey, G as recoverRetainedInteractiveRun, Gi as decodeHarnessUsage, Gn as contentAddress, Gt as createPeerMailbox, H as workerInteractiveBindingFile, Hn as captureHarnessTranscript, Ht as DEFAULT_PEER_MAIL_LIMITS, In as startRetainedRun, Jt as peerMailVerbNames, K as startRetainedInteractiveRun, Kt as isPeerMailEnvelope, Ln as startRetainedRunInEnvironment, Lt as DEFAULT_STALL_AFTER_MS, Mt as readWorkerTraceContext, Nt as workerTraceEnv, O as timerAt, Pn as reconnectRetainedRun, Pt as workerTraceHeaders, Q as rollingDispatch, R as readWorkerInteractiveAdmissions, Rt as createActivityLog, Si as mapSandboxToolEvent, Sn as providerAsSandboxClient, St as parseWorkerToolTraceArtifact, T as createWaitProbes, Ti as sandboxProgressEvents, Tn as createPushTraceSource, U as workerInteractiveBindingsDir, Un as harnessTranscriptArtifact, Ut as PEER_MAIL_WIRE_KEY, V as readWorkerInteractiveBinding, Vt as AUTHORITY_MARKERS, W as reconnectRetainedInteractiveRun, Wn as persistHarnessTranscript, Wt as claimsAuthority, X as freeSlots, Y as effectiveConcurrency, Z as queueOf, _ as createScope, _i as createSandboxToolPartState, _t as pendingWaits, a as pickBestDelivered, an as TERMINAL_DECISIONS, bn as createAgentEnvironmentProviderRegistry, bt as captureWorkerTraceEvidence, c as DriverAttemptsExhaustedError, cn as isTerminalDecision, ct as createSteerableSandboxSession, dn as probeSandboxCapabilities, dt as FileSpawnJournal, en as createCodexRolloutStoreReader, er as createOpenInferenceFileExporter, fn as acquireSandbox, ft as InMemoryResultBlobStore, gt as materializeTreeView, hi as assertSandboxServedModel, ht as loadSpawnForest, i as collectDelivered, it as createExecutorRegistry, k as validateWaitSpec, kt as spendFromUsageEvents, l as classifyDriverFailure, ln as runAgentRounds, lt as createInPlaceCliExecutor, n as createSupervisor, nn as readCodexRolloutSession, nt as cliWorktreeExecutor, o as runFinalizer, ot as createWorktreeCliExecutor, pt as InMemorySpawnJournal, qt as peerMailTools, r as bestDelivered, rt as createExecutor, sn as defaultSelectWinner, st as DEFAULT_SANDBOX_STEERING_MAX_TURNS, t as createRootHandle, tn as harnessUsageIsEmpty, tr as createOtelExporter, tt as cliInPlaceExecutor, u as defaultUnmetContractSteer, un as createSandboxLineage, ut as FileResultBlobStore, vi as createSandboxUsageLedger, vt as replaySpawnTree, w as settledToIteration, wi as sandboxEventServedBackend, wn as sandboxClientAsProvider, wt as BudgetReconcileFault, xi as mapSandboxEvent, xn as providerAsExecutor, yi as extractLlmCallEvent, yn as DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS, yt as WORKER_TOOL_TRACE_SCHEMA_VERSION, z as workerInteractiveAdmissionFile, zt as readWorkerProgress } from "./supervisor-CBtuIoqP.js";
2
- import { A as collectAgentTurn, C as defaultAnalystInstruction, D as profileOptimizerModelCall, E as profileChatClient, S as ObservationError, T as renderReport, _ as depthStrategy, a as defaultStructuralRolloutPolicy, b as sample, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as defineStrategy, h as breadthStrategy, i as defaultExtractCandidate, j as streamAgentTurn, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, v as refine, w as observe, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-BLTQRy-B.js";
1
+ import { $t as addHarnessUsage, A as waitUntil, B as attachWorker, Bt as createInbox, Cn as resolveAgentEnvironmentProvider, Ct as workerTraceAnalysisStore, D as pollFor, Dn as sandboxSessionTraceSource, E as isWaitOutcome, Ei as sumSandboxUsage, En as decodeToolPart, Et as createBudgetPool, Fn as recoverRetainedRun, Ft as workerTraceSeamKey, G as recoverRetainedInteractiveRun, Gi as decodeHarnessUsage, Gn as contentAddress, Gt as createPeerMailbox, H as workerInteractiveBindingFile, Hn as captureHarnessTranscript, Ht as DEFAULT_PEER_MAIL_LIMITS, In as startRetainedRun, Jt as peerMailVerbNames, K as startRetainedInteractiveRun, Kt as isPeerMailEnvelope, Ln as startRetainedRunInEnvironment, Lt as DEFAULT_STALL_AFTER_MS, Mt as readWorkerTraceContext, Nt as workerTraceEnv, O as timerAt, Pn as reconnectRetainedRun, Pt as workerTraceHeaders, Q as rollingDispatch, R as readWorkerInteractiveAdmissions, Rt as createActivityLog, Si as mapSandboxToolEvent, Sn as providerAsSandboxClient, St as parseWorkerToolTraceArtifact, T as createWaitProbes, Ti as sandboxProgressEvents, Tn as createPushTraceSource, U as workerInteractiveBindingsDir, Un as harnessTranscriptArtifact, Ut as PEER_MAIL_WIRE_KEY, V as readWorkerInteractiveBinding, Vt as AUTHORITY_MARKERS, W as reconnectRetainedInteractiveRun, Wn as persistHarnessTranscript, Wt as claimsAuthority, X as freeSlots, Y as effectiveConcurrency, Z as queueOf, _ as createScope, _i as createSandboxToolPartState, _t as pendingWaits, a as pickBestDelivered, an as TERMINAL_DECISIONS, bn as createAgentEnvironmentProviderRegistry, bt as captureWorkerTraceEvidence, c as DriverAttemptsExhaustedError, cn as isTerminalDecision, ct as createSteerableSandboxSession, dn as probeSandboxCapabilities, dt as FileSpawnJournal, en as createCodexRolloutStoreReader, er as createOpenInferenceFileExporter, fn as acquireSandbox, ft as InMemoryResultBlobStore, gt as materializeTreeView, hi as assertSandboxServedModel, ht as loadSpawnForest, i as collectDelivered, it as createExecutorRegistry, k as validateWaitSpec, kt as spendFromUsageEvents, l as classifyDriverFailure, ln as runAgentRounds, lt as createInPlaceCliExecutor, n as createSupervisor, nn as readCodexRolloutSession, nt as cliWorktreeExecutor, o as runFinalizer, ot as createWorktreeCliExecutor, pt as InMemorySpawnJournal, qt as peerMailTools, r as bestDelivered, rt as createExecutor, sn as defaultSelectWinner, st as DEFAULT_SANDBOX_STEERING_MAX_TURNS, t as createRootHandle, tn as harnessUsageIsEmpty, tr as createOtelExporter, tt as cliInPlaceExecutor, u as defaultUnmetContractSteer, un as createSandboxLineage, ut as FileResultBlobStore, vi as createSandboxUsageLedger, vt as replaySpawnTree, w as settledToIteration, wi as sandboxEventServedBackend, wn as sandboxClientAsProvider, wt as BudgetReconcileFault, xi as mapSandboxEvent, xn as providerAsExecutor, yi as extractLlmCallEvent, yn as DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS, yt as WORKER_TOOL_TRACE_SCHEMA_VERSION, z as workerInteractiveAdmissionFile, zt as readWorkerProgress } from "./supervisor-DWiZ2Wgx.js";
2
+ import { A as collectAgentTurn, C as defaultAnalystInstruction, D as profileOptimizerModelCall, E as profileChatClient, S as ObservationError, T as renderReport, _ as depthStrategy, a as defaultStructuralRolloutPolicy, b as sample, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as defineStrategy, h as breadthStrategy, i as defaultExtractCandidate, j as streamAgentTurn, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, v as refine, w as observe, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-CVjwxyUY.js";
3
3
  import { n as assertModelAllowed, r as assertProfileModelsAllowed } from "./model-policy-BbSCSak0.js";
4
- import { $ as InMemoryCorpus, A as chatWorkerSeam, At as pairwiseSignificance, B as SandboxRunAbortError, Bt as createMcpEnvironment, C as withUntrackedArtifacts, Ct as loopDispatch, D as codeModeSupervisorTools, Dt as sentinelCompletion, Et as deterministicCompletion, F as selectChampion, Ft as auditIntent, G as equalKOnCost, Gt as resolveSecretEnv, H as printBenchmarkReport, Ht as envKeyProvider, I as assertStrategyContract, It as defaultAuditorInstruction, J as runPersonified, K as trajectoryReport, Kt as secretEnvOfMcpServer, L as authorStrategy, Lt as McpSpawnFault, M as discriminatingMeans, Mt as renderLeaderboardMarkdown, N as pickChampion, Nt as renderLeaderboardSvg, O as unsafeInProcessRunner, Ot as stopSentinel, P as runStrategyEvolution, Pt as renderPairwiseMarkdown, Q as FileCorpus, R as strategyAuthorContract, Rt as connectStdioMcp, S as copyUntrackedIntoClone, St as loopCampaignDispatch, T as patchDelivered, Tt as completionAuthorizes, U as runBenchmark, Ut as mcpSecretEnvMetadataKey, V as openSandboxRun, Vt as sanitizeMcpToolSchema, W as promotionGate, Wt as resolveMcpServerLaunch, X as createShapeRegistry, Y as builtinShapes, Z as registerShape, _ as NOTE_MAX_CHARS, _t as harvestCorpus, a as localShell, at as pipeline, b as composeWorkerEvidence, bt as localSandboxClient, c as createVerifierEnvironment, ct as widen, d as harvestSurfaceDiffs, dt as createScopeAnalyst, et as renderCorpusToInstructions, f as analystsFromRegistry, ft as registryScopeAnalyst, g as EVIDENCE_MAX_CHARS, gt as HarvestError, h as worktreeFanout, ht as inProcessSandboxClient, i as jjWorkspace, it as panel, j as createChatSessionStore, jt as renderLeaderboardHtml, k as chatTransportExecutor, kt as leaderboard, l as boxSurfaceReader, lt as assertTraceDerivedFindings, m as superviseSurface, mt as runIsolatedCheck, n as makeFinding, nt as flatWidenGate, o as runInWorkspace, ot as selectValidWinner, p as failuresAnalyst, pt as observationFromRegistry, q as definePersona, qt as createTangleSandboxExactProcessProvider, r as gitWorkspace, rt as loopUntil, s as createWaterfallCollector, st as verify, t as computeFindingId, tt as fanout, u as fsSurfaceReader, ut as buildSteerContext, v as VERIFY_TAIL_CHARS, vt as defineLeaderboard, w as analyzeTrace, wt as superviseDispatch, x as settledWorkerOut, xt as inlineSandboxClient, y as closingWorkerNote, yt as resolveSandboxClient, z as strategyAuthorSystemPrompt, zt as materializeLocalMcp } from "./runtime-Dffe3FZC.js";
5
- import { _ as createSupervisorSpanRecorder, a as isPreSpawnExecutorFailure, b as mapExecutorResult, c as withWorkerSpawnRetry, d as resolveSupervisorProfile, f as supervisorAgent, i as workerFromBackend, l as assertCoordinationBinding, n as supervise, o as resolveWorkerSpawnRetry, s as retryPreSpawnRefusals, t as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, v as serveCoordinationMcp, y as gateOnDeliverable } from "./supervise-DMiJQB2_.js";
6
- import { A as normalizeAnalyzeOnSettle, E as canonicalFindingEvent, F as watchTrace, N as createEventBus, P as defaultToolDetectors, _ as renderAnytimeTable, a as allOf, b as FileCoordinationLog, c as createProgressTracker, f as sampleFromSettled, g as plateauLength, h as bestSoFar, i as finalizeBestDelivered, l as noProgressFor, m as areaUnderCurve, o as allWorkersStalled, p as anytimeReport, s as anyOf, u as plateau, v as createFileRunContext, w as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, y as createInMemoryRunContext } from "./coordination-driver-mujMubUb.js";
4
+ import { $ as InMemoryCorpus, A as chatWorkerSeam, At as pairwiseSignificance, B as SandboxRunAbortError, Bt as createMcpEnvironment, C as withUntrackedArtifacts, Ct as loopDispatch, D as codeModeSupervisorTools, Dt as sentinelCompletion, Et as deterministicCompletion, F as selectChampion, Ft as auditIntent, G as equalKOnCost, Gt as resolveSecretEnv, H as printBenchmarkReport, Ht as envKeyProvider, I as assertStrategyContract, It as defaultAuditorInstruction, J as runPersonified, K as trajectoryReport, Kt as secretEnvOfMcpServer, L as authorStrategy, Lt as McpSpawnFault, M as discriminatingMeans, Mt as renderLeaderboardMarkdown, N as pickChampion, Nt as renderLeaderboardSvg, O as unsafeInProcessRunner, Ot as stopSentinel, P as runStrategyEvolution, Pt as renderPairwiseMarkdown, Q as FileCorpus, R as strategyAuthorContract, Rt as connectStdioMcp, S as copyUntrackedIntoClone, St as loopCampaignDispatch, T as patchDelivered, Tt as completionAuthorizes, U as runBenchmark, Ut as mcpSecretEnvMetadataKey, V as openSandboxRun, Vt as sanitizeMcpToolSchema, W as promotionGate, Wt as resolveMcpServerLaunch, X as createShapeRegistry, Y as builtinShapes, Z as registerShape, _ as NOTE_MAX_CHARS, _t as harvestCorpus, a as localShell, at as pipeline, b as composeWorkerEvidence, bt as localSandboxClient, c as createVerifierEnvironment, ct as widen, d as harvestSurfaceDiffs, dt as createScopeAnalyst, et as renderCorpusToInstructions, f as analystsFromRegistry, ft as registryScopeAnalyst, g as EVIDENCE_MAX_CHARS, gt as HarvestError, h as worktreeFanout, ht as inProcessSandboxClient, i as jjWorkspace, it as panel, j as createChatSessionStore, jt as renderLeaderboardHtml, k as chatTransportExecutor, kt as leaderboard, l as boxSurfaceReader, lt as assertTraceDerivedFindings, m as superviseSurface, mt as runIsolatedCheck, n as makeFinding, nt as flatWidenGate, o as runInWorkspace, ot as selectValidWinner, p as failuresAnalyst, pt as observationFromRegistry, q as definePersona, qt as createTangleSandboxExactProcessProvider, r as gitWorkspace, rt as loopUntil, s as createWaterfallCollector, st as verify, t as computeFindingId, tt as fanout, u as fsSurfaceReader, ut as buildSteerContext, v as VERIFY_TAIL_CHARS, vt as defineLeaderboard, w as analyzeTrace, wt as superviseDispatch, x as settledWorkerOut, xt as inlineSandboxClient, y as closingWorkerNote, yt as resolveSandboxClient, z as strategyAuthorSystemPrompt, zt as materializeLocalMcp } from "./runtime-yyb6Y9E7.js";
5
+ import { _ as createSupervisorSpanRecorder, a as isPreSpawnExecutorFailure, b as mapExecutorResult, c as withWorkerSpawnRetry, d as resolveSupervisorProfile, f as supervisorAgent, i as workerFromBackend, l as assertCoordinationBinding, n as supervise, o as resolveWorkerSpawnRetry, s as retryPreSpawnRefusals, t as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, v as serveCoordinationMcp, y as gateOnDeliverable } from "./supervise-hlZ9YD3l.js";
6
+ import { A as normalizeAnalyzeOnSettle, E as canonicalFindingEvent, F as watchTrace, N as createEventBus, P as defaultToolDetectors, _ as renderAnytimeTable, a as allOf, b as FileCoordinationLog, c as createProgressTracker, f as sampleFromSettled, g as plateauLength, h as bestSoFar, i as finalizeBestDelivered, l as noProgressFor, m as areaUnderCurve, o as allWorkersStalled, p as anytimeReport, s as anyOf, u as plateau, v as createFileRunContext, w as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, y as createInMemoryRunContext } from "./coordination-driver-BdvDqtr6.js";
7
7
  import { C as workerInboxFileFromEventDir, D as workerSteerRequestsDir, E as workerSteerRequestFile, O as workerSteersDir, S as workerInboxFile, T as workerSteerAcknowledgementsDir, _ as supervisorWorkersDir, a as legacySupervisorRunsRoot, b as workerCancellationsDir, c as readWorkerCancelRequests, d as readWorkerSteerRequests, f as runCancelRequestFile, g as supervisorRunsRoot, h as supervisorRunDir, i as legacySupervisorRunDir, j as writeWorkerSteer, l as readWorkerCancellation, m as safeWorkerFile, n as cancelWorker, o as readRunCancelRequest, p as runCancellationFile, s as readRunCancellation, t as cancelRun, u as readWorkerSteerAcknowledgement, v as workerCancelRequestsFile, w as workerSteerAcknowledgementFile, x as workerControlLogFile, y as workerCancellationFile } from "./run-layout-hZREkcfu.js";
8
- import { n as workerFromInteractiveProvider, r as claimRetainedInteractiveControl, t as provisionSupervisor } from "./provision-supervisor-Wh8JAo-o.js";
9
- import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-BqN82j4Z.js";
10
- import { a as analyzesFindingsReportPrompt, c as dumbContinuationFailPrompt, d as kernelPromptRegistry, f as naiveContinuationPrompt, l as dumbContinuationPassPrompt, n as defaultEdgeTraversalCap, o as createPromptRegistry, p as promptHandle, r as runGraph, s as delegatesWorkerBriefPrompt, t as GraphEdgeCapError, u as formatPromptHandle } from "./graph-B-Sbq3QW.js";
8
+ import { n as workerFromInteractiveProvider, r as claimRetainedInteractiveControl, t as provisionSupervisor } from "./provision-supervisor-Bq_c8ktm.js";
9
+ import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-CLqwO3XJ.js";
10
+ import { a as analyzesFindingsReportPrompt, c as dumbContinuationFailPrompt, d as kernelPromptRegistry, f as naiveContinuationPrompt, l as dumbContinuationPassPrompt, n as defaultEdgeTraversalCap, o as createPromptRegistry, p as promptHandle, r as runGraph, s as delegatesWorkerBriefPrompt, t as GraphEdgeCapError, u as formatPromptHandle } from "./graph-_7GsEHCW.js";
11
11
  export { AUTHORITY_MARKERS, BudgetReconcileFault, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, DEFAULT_AWAIT_EVENT_TIMEOUT_MS, DEFAULT_PEER_MAIL_LIMITS, DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_STALL_AFTER_MS, DriverAttemptsExhaustedError, EVIDENCE_MAX_CHARS, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, GraphEdgeCapError, HarvestError, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, McpSpawnFault, NOTE_MAX_CHARS, ObservationError, PEER_MAIL_WIRE_KEY, SandboxRunAbortError, TERMINAL_DECISIONS, VERIFY_TAIL_CHARS, WORKER_TOOL_TRACE_SCHEMA_VERSION, acquireSandbox, adaptiveRefine, addHarnessUsage, allOf, allWorkersStalled, analystsFromRegistry, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertCoordinationBinding, assertModelAllowed, assertProfileModelsAllowed, assertSandboxServedModel, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, attachWorker, auditIntent, authorStrategy, bestDelivered, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cancelRun, cancelWorker, canonicalFindingEvent, captureHarnessTranscript, captureWorkerTraceEvidence, chatTransportExecutor, chatWorkerSeam, claimRetainedInteractiveControl, claimsAuthority, classifyDriverFailure, cliInPlaceExecutor, cliWorktreeExecutor, closingWorkerNote, codeModeSupervisorTools, collectAgentTurn, collectDelivered, compareCheckOutcomes, completionAuthorizes, composeCheckSources, composeWorkerEvidence, computeFindingId, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createCodexRolloutStoreReader, createEventBus, createExecutor, createExecutorRegistry, createFileRunContext, createInMemoryRunContext, createInPlaceCliExecutor, createInbox, createMcpEnvironment, createOpenInferenceFileExporter, createOtelExporter, createPeerMailbox, createProgressTracker, createPromptRegistry, createPushTraceSource, createRootHandle, createSandboxLineage, createSandboxToolPartState, createSandboxUsageLedger, createScope, createScopeAnalyst, createShapeRegistry, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createTangleSandboxExactProcessProvider, createVerifierEnvironment, createWaitProbes, createWaterfallCollector, createWorktreeCliExecutor, decodeHarnessUsage, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defaultUnmetContractSteer, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, discriminatingMeans, dumbContinuationFailPrompt, dumbContinuationPassPrompt, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, finalizeBestDelivered, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, harnessTranscriptArtifact, harnessUsageIsEmpty, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isPeerMailEnvelope, isPreSpawnExecutorFailure, isTerminalDecision, isWaitOutcome, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, legacySupervisorRunsRoot, loadSpawnForest, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, normalizeAnalyzeOnSettle, observationFromRegistry, observe, officialChecksFromMeta, openSandboxRun, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, patchDelivered, peerMailTools, peerMailVerbNames, pendingWaits, persistHarnessTranscript, pickBestDelivered, pickChampion, pipeline, plateau, plateauLength, pollFor, printBenchmarkReport, probeSandboxCapabilities, profileChatClient, profileOptimizerModelCall, profileRichnessFinding, promotionGate, promptHandle, providerAsExecutor, providerAsSandboxClient, provisionSupervisor, queueOf, readCodexRolloutSession, readRunCancelRequest, readRunCancellation, readWorkerCancelRequests, readWorkerCancellation, readWorkerInteractiveAdmissions, readWorkerInteractiveBinding, readWorkerProgress, readWorkerSteerAcknowledgement, readWorkerSteerRequests, readWorkerTraceContext, reconnectRetainedInteractiveRun, reconnectRetainedRun, recoverRetainedInteractiveRun, recoverRetainedRun, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, resolveSupervisorProfile, resolveWorkerSpawnRetry, retryPreSpawnRefusals, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runCancelRequestFile, runCancellationFile, runFinalizer, runGraph, runInWorkspace, runIsolatedCheck, runPersonified, runStrategyEvolution, safeWorkerFile, sample, sampleFromSettled, sampleThenRefine, sandboxCheckRunner, sandboxClientAsProvider, sandboxEventServedBackend, sandboxProgressEvents, sandboxSessionTraceSource, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectBestIndex, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, settledWorkerOut, spendFromUsageEvents, startRetainedInteractiveRun, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, strategyAuthorContract, strategyAuthorSystemPrompt, streamAgentTurn, structuralRollout, sumSandboxUsage, supervise, superviseDispatch, superviseSurface, supervisorAgent, supervisorInstructions, supervisorRunDir, supervisorRunsRoot, supervisorWorkersDir, timerAt, trajectoryReport, unsafeInProcessRunner, validateWaitSpec, verify, visibleCheckScore, waitUntil, watchTrace, widen, withUntrackedArtifacts, withWorkerSpawnRetry, workerCancelRequestsFile, workerCancellationFile, workerCancellationsDir, workerControlLogFile, workerFromBackend, workerFromInteractiveProvider, workerInboxFile, workerInboxFileFromEventDir, workerInteractiveAdmissionFile, workerInteractiveBindingFile, workerInteractiveBindingsDir, workerSteerAcknowledgementFile, workerSteerAcknowledgementsDir, workerSteerRequestFile, workerSteerRequestsDir, workerSteersDir, workerTraceAnalysisStore, workerTraceEnv, workerTraceHeaders, workerTraceSeamKey, worktreeFanout, writeWorkerSteer };
@@ -1,6 +1,6 @@
1
- import { i as Budget } from "./types-BxjpKpb-.js";
1
+ import { i as Budget } from "./types-DGhYyHOA.js";
2
2
  import { d as RunAnalystLoopOpts, f as RunAnalystLoopResult } from "./types-zWfqDjeL.js";
3
- import { O as AuthoredHarness, Ol as WinnerStrategy, k as WorktreeFanoutOptions, kt as WorktreePatchArtifact } from "./index-DgFsQnzq.js";
3
+ import { O as AuthoredHarness, Ol as WinnerStrategy, k as WorktreeFanoutOptions, kt as WorktreePatchArtifact } from "./index-BjXc69fl.js";
4
4
  import { n as FactCandidate, t as CreateKbGateOptions } from "./kb-gate-C8z2juK8.js";
5
5
  import { AgentProfile } from "@tangle-network/agent-interface";
6
6
  //#region src/loop-runner.d.ts
@@ -162,4 +162,4 @@ declare function parseLoopRunnerArgv(argv: string[]): {
162
162
  };
163
163
  //#endregion
164
164
  export { researchLoopRunner as _, DELEGATED_LOOP_MODES as a, DelegatedLoopResult as c, ResearchLoopRunnerOptions as d, RunDelegatedLoopOptions as f, isDelegatedLoopMode as g, auditLoopRunner as h, runLoopRunnerCli as i, DelegatedLoopRunner as l, WorktreeLoopRunnerOptions as m, LoopRunnerCliResult as n, DelegatedLoopMode as o, VetoedFact as p, parseLoopRunnerArgv as r, DelegatedLoopRegistry as s, LoopRunnerCliArgs as t, ResearchLoopResult as u, runDelegatedLoop as v, worktreeLoopRunner as y };
165
- //# sourceMappingURL=loop-runner-bin-3H3Iq9iY.d.ts.map
165
+ //# sourceMappingURL=loop-runner-bin-D25C7bpo.d.ts.map
@@ -1,6 +1,6 @@
1
- import { it as createExecutorRegistry } from "./supervisor-CBtuIoqP.js";
1
+ import { it as createExecutorRegistry } from "./supervisor-DWiZ2Wgx.js";
2
2
  import { i as ConfigError } from "./errors-DodWX-cb.js";
3
- import { J as runPersonified, h as worktreeFanout, q as definePersona } from "./runtime-Dffe3FZC.js";
3
+ import { J as runPersonified, h as worktreeFanout, q as definePersona } from "./runtime-yyb6Y9E7.js";
4
4
  import { t as runAnalystLoop } from "./analyst-loop-DZw5QWT9.js";
5
5
  import { t as createKbGate } from "./kb-gate-DpaSwXVx.js";
6
6
  //#region src/loop-runner.ts
@@ -243,4 +243,4 @@ if (invokedScript && /loop-runner-bin\.(js|ts|mjs)$/.test(invokedScript)) main()
243
243
  //#endregion
244
244
  export { isDelegatedLoopMode as a, worktreeLoopRunner as c, auditLoopRunner as i, runLoopRunnerCli as n, researchLoopRunner as o, DELEGATED_LOOP_MODES as r, runDelegatedLoop as s, parseLoopRunnerArgv as t };
245
245
 
246
- //# sourceMappingURL=loop-runner-bin-Dyc1IS0f.js.map
246
+ //# sourceMappingURL=loop-runner-bin-nhOzvSwt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loop-runner-bin-Dyc1IS0f.js","names":[],"sources":["../src/loop-runner.ts","../src/loop-runner-bin.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a {@link DelegatedLoopResult}. */\nexport type DelegatedLoopRunner<T = unknown> = (signal: AbortSignal) => Promise<T>\n\n/** @experimental Mode → configured runner. Partial: only register the modes a\n * given product/routine actually uses. */\nexport type DelegatedLoopRegistry = Partial<Record<DelegatedLoopMode, DelegatedLoopRunner>>\n\n/** @experimental Uniform result — never throws from a registered runner; a\n * thrown engine becomes `{ ok: false, error }` so a routine can record + move on. */\nexport interface DelegatedLoopResult<T = unknown> {\n mode: DelegatedLoopMode\n ok: boolean\n output?: T\n error?: string\n durationMs: number\n}\n\n/** @experimental */\nexport interface RunDelegatedLoopOptions {\n signal?: AbortSignal\n /** Clock override for deterministic tests. */\n now?: () => number\n}\n\n/**\n *\n * Dispatch a configured loop by mode. Fails loud (throws `ConfigError`) when no\n * runner is registered for the mode — a routine pointed at an unwired mode is a\n * config bug, not a silent no-op. A runner that throws is captured as\n * `{ ok: false }` so unattended runs record the failure rather than crash.\n *\n * @experimental\n */\nexport async function runDelegatedLoop<T = unknown>(\n mode: DelegatedLoopMode,\n registry: DelegatedLoopRegistry,\n options: RunDelegatedLoopOptions = {},\n): Promise<DelegatedLoopResult<T>> {\n const runner = registry[mode] as DelegatedLoopRunner<T> | undefined\n if (!runner) {\n throw new ConfigError(\n `runDelegatedLoop: no runner registered for mode '${mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n )\n }\n const now = options.now ?? Date.now\n const signal = options.signal ?? new AbortController().signal\n const start = now()\n try {\n const output = await runner(signal)\n return { mode, ok: true, output, durationMs: now() - start }\n } catch (err) {\n return {\n mode,\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n durationMs: now() - start,\n }\n }\n}\n\n/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */\nexport interface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\nexport interface ResearchLoopResult {\n /** Facts that passed the fail-closed gate — safe to write to the KB. */\n accepted: FactCandidate[]\n /** Facts the gate vetoed in the final round — escalate, do not silently drop. */\n vetoed: VetoedFact[]\n /** Research rounds actually run. */\n rounds: number\n}\n\n/** @experimental Options for the default `research` runner. */\nexport interface ResearchLoopRunnerOptions {\n /**\n * The research engine (the consumer's web/doc searcher + extractor). Called\n * each round with the prior round's vetoes so it can re-research the gaps.\n * Returns fact candidates carrying their grounding (`verbatimPassage` +\n * `sourceText`).\n */\n research: (round: number, vetoed: VetoedFact[]) => Promise<FactCandidate[]>\n /** Gate config (extra judges, self-artifact kinds, …). The floor is always on. */\n gate?: CreateKbGateOptions\n /** Max research rounds (correct-on-veto remediation). Default 1. */\n maxRounds?: number\n}\n\n/**\n * `research` mode — research-in-a-loop with valid-only KB growth.\n *\n * Each round: research → gate every candidate (fail-closed; passage MUST be in\n * the source) → accept the clean ones → re-research the vetoed ones next round,\n * up to `maxRounds`. Vetoed facts in the final round are RETURNED (escalate,\n * never silently dropped) so the caller audits vs retries.\n *\n * @experimental\n */\nexport function researchLoopRunner(\n o: ResearchLoopRunnerOptions,\n): DelegatedLoopRunner<ResearchLoopResult> {\n const gate = createKbGate(o.gate)\n const maxRounds = Math.max(1, Math.trunc(o.maxRounds ?? 1))\n return async (signal) => {\n const accepted: FactCandidate[] = []\n let vetoed: VetoedFact[] = []\n let rounds = 0\n for (let round = 0; round < maxRounds; round += 1) {\n if (signal.aborted) break\n rounds += 1\n const candidates = await o.research(round, vetoed)\n if (candidates.length === 0) break\n vetoed = []\n for (const c of candidates) {\n const v = await gate(c)\n if (v.accepted) accepted.push(c)\n else vetoed.push({ candidate: c, vetoedBy: v.vetoedBy, reason: v.reason })\n }\n if (vetoed.length === 0) break\n }\n return { accepted, vetoed, rounds }\n }\n}\n\n/**\n * `audit` mode — analyst loop over captured trace/run data.\n *\n * @experimental\n */\nexport function auditLoopRunner<TProposal = unknown, TEdit = unknown>(\n options: RunAnalystLoopOpts,\n): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>> {\n return async () => runAnalystLoop<TProposal, TEdit>(options)\n}\n","#!/usr/bin/env node\n/**\n *\n * `agent-runtime-loop` — the schedulable entrypoint for the configured\n * delegated loop-runner. A cron job / routine / Makefile target invokes:\n *\n * agent-runtime-loop --mode research --config ./loops.config.js\n *\n * The config module wires the registry (with full access to env / creds —\n * which is why the deps live there, not in this generic bin). It must default-\n * export a `DelegatedLoopRegistry`, or a `() => DelegatedLoopRegistry | Promise<…>`.\n * The bin runs the selected mode, prints the `DelegatedLoopResult` as JSON, and\n * exits 0 on `ok`, 1 on a recorded failure, 2 on a usage/config error.\n *\n * @experimental\n */\n\nimport {\n DELEGATED_LOOP_MODES,\n type DelegatedLoopMode,\n type DelegatedLoopRegistry,\n type DelegatedLoopResult,\n isDelegatedLoopMode,\n runDelegatedLoop,\n} from './loop-runner'\n\n/** @experimental Parsed CLI invocation. */\nexport interface LoopRunnerCliArgs {\n mode: string\n /** Loads the registry — the bin wires this from `--config`; tests inject a stub. */\n loadRegistry: () => Promise<DelegatedLoopRegistry> | DelegatedLoopRegistry\n now?: () => number\n}\n\n/** @experimental */\nexport interface LoopRunnerCliResult {\n exitCode: number\n result?: DelegatedLoopResult\n error?: string\n}\n\n/**\n *\n * Pure CLI core (no process / argv / IO) so it's unit-testable: validate the\n * mode, load the registry, dispatch, map to an exit code (0 ok / 1 failed /\n * 2 usage). Exported for embedding in custom runners + tests.\n *\n * @experimental\n */\nexport async function runLoopRunnerCli(args: LoopRunnerCliArgs): Promise<LoopRunnerCliResult> {\n if (!isDelegatedLoopMode(args.mode)) {\n return {\n exitCode: 2,\n error: `unknown mode '${args.mode}' (expected one of: ${DELEGATED_LOOP_MODES.join(', ')})`,\n }\n }\n let registry: DelegatedLoopRegistry\n try {\n registry = await args.loadRegistry()\n } catch (err) {\n return { exitCode: 2, error: `failed to load registry: ${errMsg(err)}` }\n }\n if (!registry[args.mode]) {\n return {\n exitCode: 2,\n error: `config registers no runner for mode '${args.mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n }\n }\n // runDelegatedLoop throws only on a missing runner (guarded above); a failing\n // engine is captured as { ok: false } → exit 1, not a crash.\n const result = await runDelegatedLoop(args.mode as DelegatedLoopMode, registry, {\n ...(args.now ? { now: args.now } : {}),\n })\n return { exitCode: result.ok ? 0 : 1, result }\n}\n\n/** Parse `--mode X --config Y` from an argv tail (`process.argv.slice(2)`). */\nexport function parseLoopRunnerArgv(argv: string[]): { mode?: string; config?: string } {\n const out: { mode?: string; config?: string } = {}\n for (let i = 0; i < argv.length; i += 1) {\n const a = argv[i]\n if (a === '--mode') out.mode = argv[++i]\n else if (a === '--config') out.config = argv[++i]\n else if (a?.startsWith('--mode=')) out.mode = a.slice('--mode='.length)\n else if (a?.startsWith('--config=')) out.config = a.slice('--config='.length)\n }\n return out\n}\n\n/** Normalize a config module's default export → a registry. */\nfunction resolveRegistry(mod: unknown): DelegatedLoopRegistry {\n const def = (mod as { default?: unknown })?.default ?? mod\n const value = typeof def === 'function' ? (def as () => unknown)() : def\n return value as DelegatedLoopRegistry\n}\n\nfunction errMsg(err: unknown): string {\n return err instanceof Error ? err.message : String(err)\n}\n\n/** The argv → IO → exit shell. Kept thin; logic lives in `runLoopRunnerCli`. */\nasync function main(): Promise<void> {\n const { mode, config } = parseLoopRunnerArgv(process.argv.slice(2))\n if (!mode || !config) {\n process.stderr.write(\n 'usage: agent-runtime-loop --mode <mode> --config <module>\\n' +\n ` modes: ${DELEGATED_LOOP_MODES.join(' | ')}\\n` +\n ' config: a JS/TS module default-exporting a DelegatedLoopRegistry (or a factory)\\n',\n )\n process.exit(2)\n }\n const { pathToFileURL } = await import('node:url')\n const { resolve } = await import('node:path')\n const cli = await runLoopRunnerCli({\n mode,\n loadRegistry: async () => resolveRegistry(await import(pathToFileURL(resolve(config)).href)),\n })\n process.stdout.write(`${JSON.stringify(cli.result ?? { error: cli.error }, null, 2)}\\n`)\n if (cli.error) process.stderr.write(`${cli.error}\\n`)\n process.exit(cli.exitCode)\n}\n\n// Run only when executed as the bin — never when imported for the testable\n// core, and never when bundled into a runtime that has no `process.argv`\n// (e.g. Cloudflare Workers, where `process` is a shim without `argv`). Reading\n// `process.argv[1]` directly would throw at module load there; `process.argv?.`\n// keeps the guard a no-op instead of crashing the Worker on startup.\nconst invokedScript = typeof process !== 'undefined' ? process.argv?.[1] : undefined\nif (invokedScript && /loop-runner-bin\\.(js|ts|mjs)$/.test(invokedScript)) {\n void main()\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"loop-runner-bin-nhOzvSwt.js","names":[],"sources":["../src/loop-runner.ts","../src/loop-runner-bin.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a {@link DelegatedLoopResult}. */\nexport type DelegatedLoopRunner<T = unknown> = (signal: AbortSignal) => Promise<T>\n\n/** @experimental Mode → configured runner. Partial: only register the modes a\n * given product/routine actually uses. */\nexport type DelegatedLoopRegistry = Partial<Record<DelegatedLoopMode, DelegatedLoopRunner>>\n\n/** @experimental Uniform result — never throws from a registered runner; a\n * thrown engine becomes `{ ok: false, error }` so a routine can record + move on. */\nexport interface DelegatedLoopResult<T = unknown> {\n mode: DelegatedLoopMode\n ok: boolean\n output?: T\n error?: string\n durationMs: number\n}\n\n/** @experimental */\nexport interface RunDelegatedLoopOptions {\n signal?: AbortSignal\n /** Clock override for deterministic tests. */\n now?: () => number\n}\n\n/**\n *\n * Dispatch a configured loop by mode. Fails loud (throws `ConfigError`) when no\n * runner is registered for the mode — a routine pointed at an unwired mode is a\n * config bug, not a silent no-op. A runner that throws is captured as\n * `{ ok: false }` so unattended runs record the failure rather than crash.\n *\n * @experimental\n */\nexport async function runDelegatedLoop<T = unknown>(\n mode: DelegatedLoopMode,\n registry: DelegatedLoopRegistry,\n options: RunDelegatedLoopOptions = {},\n): Promise<DelegatedLoopResult<T>> {\n const runner = registry[mode] as DelegatedLoopRunner<T> | undefined\n if (!runner) {\n throw new ConfigError(\n `runDelegatedLoop: no runner registered for mode '${mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n )\n }\n const now = options.now ?? Date.now\n const signal = options.signal ?? new AbortController().signal\n const start = now()\n try {\n const output = await runner(signal)\n return { mode, ok: true, output, durationMs: now() - start }\n } catch (err) {\n return {\n mode,\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n durationMs: now() - start,\n }\n }\n}\n\n/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */\nexport interface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\nexport interface ResearchLoopResult {\n /** Facts that passed the fail-closed gate — safe to write to the KB. */\n accepted: FactCandidate[]\n /** Facts the gate vetoed in the final round — escalate, do not silently drop. */\n vetoed: VetoedFact[]\n /** Research rounds actually run. */\n rounds: number\n}\n\n/** @experimental Options for the default `research` runner. */\nexport interface ResearchLoopRunnerOptions {\n /**\n * The research engine (the consumer's web/doc searcher + extractor). Called\n * each round with the prior round's vetoes so it can re-research the gaps.\n * Returns fact candidates carrying their grounding (`verbatimPassage` +\n * `sourceText`).\n */\n research: (round: number, vetoed: VetoedFact[]) => Promise<FactCandidate[]>\n /** Gate config (extra judges, self-artifact kinds, …). The floor is always on. */\n gate?: CreateKbGateOptions\n /** Max research rounds (correct-on-veto remediation). Default 1. */\n maxRounds?: number\n}\n\n/**\n * `research` mode — research-in-a-loop with valid-only KB growth.\n *\n * Each round: research → gate every candidate (fail-closed; passage MUST be in\n * the source) → accept the clean ones → re-research the vetoed ones next round,\n * up to `maxRounds`. Vetoed facts in the final round are RETURNED (escalate,\n * never silently dropped) so the caller audits vs retries.\n *\n * @experimental\n */\nexport function researchLoopRunner(\n o: ResearchLoopRunnerOptions,\n): DelegatedLoopRunner<ResearchLoopResult> {\n const gate = createKbGate(o.gate)\n const maxRounds = Math.max(1, Math.trunc(o.maxRounds ?? 1))\n return async (signal) => {\n const accepted: FactCandidate[] = []\n let vetoed: VetoedFact[] = []\n let rounds = 0\n for (let round = 0; round < maxRounds; round += 1) {\n if (signal.aborted) break\n rounds += 1\n const candidates = await o.research(round, vetoed)\n if (candidates.length === 0) break\n vetoed = []\n for (const c of candidates) {\n const v = await gate(c)\n if (v.accepted) accepted.push(c)\n else vetoed.push({ candidate: c, vetoedBy: v.vetoedBy, reason: v.reason })\n }\n if (vetoed.length === 0) break\n }\n return { accepted, vetoed, rounds }\n }\n}\n\n/**\n * `audit` mode — analyst loop over captured trace/run data.\n *\n * @experimental\n */\nexport function auditLoopRunner<TProposal = unknown, TEdit = unknown>(\n options: RunAnalystLoopOpts,\n): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>> {\n return async () => runAnalystLoop<TProposal, TEdit>(options)\n}\n","#!/usr/bin/env node\n/**\n *\n * `agent-runtime-loop` — the schedulable entrypoint for the configured\n * delegated loop-runner. A cron job / routine / Makefile target invokes:\n *\n * agent-runtime-loop --mode research --config ./loops.config.js\n *\n * The config module wires the registry (with full access to env / creds —\n * which is why the deps live there, not in this generic bin). It must default-\n * export a `DelegatedLoopRegistry`, or a `() => DelegatedLoopRegistry | Promise<…>`.\n * The bin runs the selected mode, prints the `DelegatedLoopResult` as JSON, and\n * exits 0 on `ok`, 1 on a recorded failure, 2 on a usage/config error.\n *\n * @experimental\n */\n\nimport {\n DELEGATED_LOOP_MODES,\n type DelegatedLoopMode,\n type DelegatedLoopRegistry,\n type DelegatedLoopResult,\n isDelegatedLoopMode,\n runDelegatedLoop,\n} from './loop-runner'\n\n/** @experimental Parsed CLI invocation. */\nexport interface LoopRunnerCliArgs {\n mode: string\n /** Loads the registry — the bin wires this from `--config`; tests inject a stub. */\n loadRegistry: () => Promise<DelegatedLoopRegistry> | DelegatedLoopRegistry\n now?: () => number\n}\n\n/** @experimental */\nexport interface LoopRunnerCliResult {\n exitCode: number\n result?: DelegatedLoopResult\n error?: string\n}\n\n/**\n *\n * Pure CLI core (no process / argv / IO) so it's unit-testable: validate the\n * mode, load the registry, dispatch, map to an exit code (0 ok / 1 failed /\n * 2 usage). Exported for embedding in custom runners + tests.\n *\n * @experimental\n */\nexport async function runLoopRunnerCli(args: LoopRunnerCliArgs): Promise<LoopRunnerCliResult> {\n if (!isDelegatedLoopMode(args.mode)) {\n return {\n exitCode: 2,\n error: `unknown mode '${args.mode}' (expected one of: ${DELEGATED_LOOP_MODES.join(', ')})`,\n }\n }\n let registry: DelegatedLoopRegistry\n try {\n registry = await args.loadRegistry()\n } catch (err) {\n return { exitCode: 2, error: `failed to load registry: ${errMsg(err)}` }\n }\n if (!registry[args.mode]) {\n return {\n exitCode: 2,\n error: `config registers no runner for mode '${args.mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n }\n }\n // runDelegatedLoop throws only on a missing runner (guarded above); a failing\n // engine is captured as { ok: false } → exit 1, not a crash.\n const result = await runDelegatedLoop(args.mode as DelegatedLoopMode, registry, {\n ...(args.now ? { now: args.now } : {}),\n })\n return { exitCode: result.ok ? 0 : 1, result }\n}\n\n/** Parse `--mode X --config Y` from an argv tail (`process.argv.slice(2)`). */\nexport function parseLoopRunnerArgv(argv: string[]): { mode?: string; config?: string } {\n const out: { mode?: string; config?: string } = {}\n for (let i = 0; i < argv.length; i += 1) {\n const a = argv[i]\n if (a === '--mode') out.mode = argv[++i]\n else if (a === '--config') out.config = argv[++i]\n else if (a?.startsWith('--mode=')) out.mode = a.slice('--mode='.length)\n else if (a?.startsWith('--config=')) out.config = a.slice('--config='.length)\n }\n return out\n}\n\n/** Normalize a config module's default export → a registry. */\nfunction resolveRegistry(mod: unknown): DelegatedLoopRegistry {\n const def = (mod as { default?: unknown })?.default ?? mod\n const value = typeof def === 'function' ? (def as () => unknown)() : def\n return value as DelegatedLoopRegistry\n}\n\nfunction errMsg(err: unknown): string {\n return err instanceof Error ? err.message : String(err)\n}\n\n/** The argv → IO → exit shell. Kept thin; logic lives in `runLoopRunnerCli`. */\nasync function main(): Promise<void> {\n const { mode, config } = parseLoopRunnerArgv(process.argv.slice(2))\n if (!mode || !config) {\n process.stderr.write(\n 'usage: agent-runtime-loop --mode <mode> --config <module>\\n' +\n ` modes: ${DELEGATED_LOOP_MODES.join(' | ')}\\n` +\n ' config: a JS/TS module default-exporting a DelegatedLoopRegistry (or a factory)\\n',\n )\n process.exit(2)\n }\n const { pathToFileURL } = await import('node:url')\n const { resolve } = await import('node:path')\n const cli = await runLoopRunnerCli({\n mode,\n loadRegistry: async () => resolveRegistry(await import(pathToFileURL(resolve(config)).href)),\n })\n process.stdout.write(`${JSON.stringify(cli.result ?? { error: cli.error }, null, 2)}\\n`)\n if (cli.error) process.stderr.write(`${cli.error}\\n`)\n process.exit(cli.exitCode)\n}\n\n// Run only when executed as the bin — never when imported for the testable\n// core, and never when bundled into a runtime that has no `process.argv`\n// (e.g. Cloudflare Workers, where `process` is a shim without `argv`). Reading\n// `process.argv[1]` directly would throw at module load there; `process.argv?.`\n// keeps the guard a no-op instead of crashing the Worker on startup.\nconst invokedScript = typeof process !== 'undefined' ? process.argv?.[1] : undefined\nif (invokedScript && /loop-runner-bin\\.(js|ts|mjs)$/.test(invokedScript)) {\n void main()\n}\n"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import { i as runLoopRunnerCli, n as LoopRunnerCliResult, r as parseLoopRunnerArgv, t as LoopRunnerCliArgs } from "./loop-runner-bin-3H3Iq9iY.js";
1
+ import { i as runLoopRunnerCli, n as LoopRunnerCliResult, r as parseLoopRunnerArgv, t as LoopRunnerCliArgs } from "./loop-runner-bin-D25C7bpo.js";
2
2
  export { LoopRunnerCliArgs, LoopRunnerCliResult, parseLoopRunnerArgv, runLoopRunnerCli };