@tangle-network/agent-runtime 0.107.4 → 0.107.5

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.
package/dist/agent.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { x as RuntimeStreamEvent } from "./types-C9j4qg6l.js";
2
2
  import { a as createSurfaceImprovementProposer, c as SurfaceValidationIssue, d as validateSurfaces, i as SurfaceImprovementEdit, l as renderSurfaceIssues, n as DraftPatchInput, o as AgentSurfaces, r as DraftPatchOutput, s as ResolvedSurface, t as CreateSurfaceImprovementProposerOptions, u as resolveSubjectPath } from "./improvement-adapter-BaAdfJKT.js";
3
3
  import { E as SandboxClient, t as AgentRunSpec, w as OutputAdapter } from "./types-BevOjfTY.js";
4
- import "./index-CeawCSEg.js";
4
+ import "./index-B3wAV1SJ.js";
5
5
  import { TraceAnalystKindSpec } from "@tangle-network/agent-eval";
6
6
  import { AgentProfile as AgentProfile$1, AgentProfileFileMount, AgentProfileMcpServer } from "@tangle-network/agent-interface";
7
7
  import { SandboxEvent } from "@tangle-network/sandbox";
package/dist/agent.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { u as ValidationError } from "./errors-DEAvWQPy.js";
2
- import "./runtime-5zM5XxLr.js";
2
+ import "./runtime-M_GIzIwe.js";
3
3
  import { r as mapSandboxEvent } from "./sandbox-events-DeI5xX8P.js";
4
4
  import { Rt as createSandboxForSpec } from "./supervise-BiRutHS9.js";
5
5
  import { createHash } from "node:crypto";
@@ -4,7 +4,7 @@ import { C as MountRecorder, D as SelectionReceipt, E as SandboxClient, K as Run
4
4
  import { B as Executor, H as ExecutorFactory, I as Agent, It as ExecutorProgress, K as NodeId, L as AgentSpec, Q as RootHandle, R as Budget, Rt as WorkerProgress, U as ExecutorRegistry, X as ResultBlobStore, _t as WaitProbeRegistry, at as SpawnOpts, ct as Supervisor, dt as UsageEvent, et as Runtime, i as AgentEnvironmentProvider, it as SpawnJournal, kt as TraceSource, mt as PendingWait, nt as Settled, o as AgentEnvironmentProviderRegistry, ot as Spend, rt as SpawnEvent, st as SupervisedResult, tt as Scope, ut as TreeView, w as ProviderExecutorOptions, z as DefaultVerdict } from "./environment-provider-IUGU3epE.js";
5
5
  import { o as UiLens, r as UiFinding, s as CoderTask } from "./substrate-BcnuSHXm.js";
6
6
  import { D as RuntimeTelemetryOptions, c as runLocalHarness, d as RouterConfig, i as LocalHarness, m as ToolSpec, n as CodexExecutionPolicy, r as CodexTokenUsage, x as ToolLoopCompactionOptions, y as ToolLoopChat } from "./local-harness-Dh8PJ0ot.js";
7
- import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, AgentProfile, AnalystFinding, AnalystFinding as AnalystFinding$1, AnalystFinding as AnalystFinding$2, AnalystRunInputs, ChatClient, ConfigError, DetectorSignal, HarnessType, JudgeError, MaximumCharge, NotFoundError, RunRecord, StreamingDetector, ToolSpan, ValidationError, buildTrajectory, computeFindingId as computeFindingId$1, makeFinding as makeFinding$1 } from "@tangle-network/agent-eval";
7
+ import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, AgentProfile, AnalystFinding, AnalystFinding as AnalystFinding$1, AnalystFinding as AnalystFinding$2, AnalystRunInputs, ChatClient, ConfigError, DetectorSignal, HarnessType, JudgeError, MaximumCharge, NotFoundError, RankTestMethod, RunRecord, StreamingDetector, ToolSpan, ValidationError, buildTrajectory, computeFindingId as computeFindingId$1, makeFinding as makeFinding$1 } from "@tangle-network/agent-eval";
8
8
  import { DispatchFn, JudgeConfig, ProfileDispatchFn, RunProfileMatrixOptions, RunProfileMatrixResult, Scenario } from "@tangle-network/agent-eval/campaign";
9
9
  import { AgentProfile as AgentProfile$1, AgentProfile as AgentProfile$2, AgentProfile as AgentProfile$3, AgentProfileMcpServer, AgentProfileSecurityPolicy } from "@tangle-network/agent-interface";
10
10
  import { WorkspacePlanReceipt } from "@tangle-network/agent-profile-materialize";
@@ -2842,9 +2842,17 @@ interface PairwiseVerdict {
2842
2842
  readonly delta: number;
2843
2843
  readonly ciLow: number;
2844
2844
  readonly ciHigh: number;
2845
- /** Paired-test p-value (before correction). */
2845
+ /** Non-zero paired differences used by the signed-rank test. */
2846
+ readonly nonZeroPairs: number;
2847
+ /** How the signed-rank p-value was computed. */
2848
+ readonly testMethod: RankTestMethod;
2849
+ /** Smallest p-value attainable by this paired design. */
2850
+ readonly pFloor: number;
2851
+ /** Raw two-sided signed-rank p-value. */
2846
2852
  readonly p: number;
2847
- /** BH-significant across ALL pairs AND above the `minPairs` power floor. */
2853
+ /** Benjamini-Hochberg adjusted q-value across every profile pair. */
2854
+ readonly q: number;
2855
+ /** BH-significant and above the `minPairs` observation floor. */
2848
2856
  readonly significant: boolean;
2849
2857
  }
2850
2858
  interface PairwiseOptions {
@@ -7221,4 +7229,4 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
7221
7229
  }): Promise<WorkspaceRun<T>>;
7222
7230
  //#endregion
7223
7231
  export { effectiveConcurrency as $, WidenDecision as $a, DetachedSessionRefParts as $c, mcpSecretEnvMetadataKey as $i, traceContextToEnv as $l, connectStdioMcp as $n, auditIntent as $o, createScopeAnalyst as $r, createExecutor as $s, StructuralRolloutMessage as $t, FileSpawnJournal as $u, createSupervisor as A, FlatWidenGate as Aa, McpToolDescriptor$1 as Ac, SurfaceScore as Ai, DelegateUiAuditConfig as Al, ReproductionCheck as An, completionAuthorizes as Ao, promotionGate as Ar, createCoordinationTools as As, sampleFromSettled as At, FileDelegationStore as Au, createFileRunContext as B, RenderCorpusToInstructions as Ba, DetachedSessionDelegateOptions as Bc, LoopDispatchOptions as Bi, DelegationResultPayload as Bl, strategyAuthorContract as Bn, PairwiseOptions as Bo, renderCorpusToInstructions as Br, DelegateResult as Bs, assessAuthoredProfile as Bt, RuntimeRunStateError as Bu, failuresAnalyst as C, EqualKOnCost as Ca, captureWorktreeDiff as Cc, ShotSpec as Ci, DelegateCodeResult as Cl, ChampionPolicy as Cn, LeaderboardScore as Co, probeSandboxCapabilities as Cr, QuestionLevel as Cs, StopRule as Ct, buildDelegationTraceSpans as Cu, worktreeFanout as D, FanoutOptions as Da, gateOnDeliverable as Dc, StrategyMessage as Di, DelegateResearchConfig as Dl, EvolutionCandidate as Dn, CompletionEvidence as Do, resolveSandboxClient as Dr, QuestionUrgency as Ds, createProgressTracker as Dt, DelegationPersistenceError as Du, WorktreeFanoutOptions as E, Fanout as Ea, DeliverableSpec as Ec, StrategyCtx as Ei, DelegateResearchArgs as El, EvolutionBandInfo as En, CompletionAnalyst as Eo, ResolveSandboxClientOptions as Er, QuestionRecord as Es, anyOf as Et, createDelegationTraceCollector as Eu, createScope as F, PanelJudge as Fa, eventToSnapshot as Fc, refine as Fi, DelegationHistoryArgs as Fl, selectChampion as Fn, GroupOf as Fo, registerShape as Fr, DELEGATE_DESCRIPTION as Fs, spendFromUsageEvents as Ft, BackendTransportError as Fu, WorktreePatchArtifact as G, SteerContext as Ga, detachedSessionDelegate as Gc, RunLoopOptions as Gi, FeedbackRefersTo as Gl, dumbDriver as Gn, pairwiseSignificance as Go, pipeline as Gr, CliWorktreeBridgeSeam as Gs, CheckExecChannel as Gt, BusStats as Gu, PatchDeliverableOptions as H, ScopeAnalyst as Ha, SettleDetachedCoderTurnOptions as Hc, loopCampaignDispatch as Hi, DelegationStatusArgs as Hl, DumbDriverOptions as Hn, ProfileKeyOf as Ho, flatWidenGate as Hr, validateDelegateArgs as Hs, defaultProfileRichnessThresholds as Ht, CoderOutput as Hu, settledToIteration as I, PanelSpec as Ia, CoderDelegate as Ic, runAgentic as Ii, DelegationHistoryEntry as Il, AuthorStrategyOptions as In, Interval as Io, definePersona as Ir, DELEGATE_INPUT_SCHEMA as Is, AuthoredProfile as It, ConfigError as Iu, ConcurrencyCaps as J, TrajectoryReportFn as Ja, FleetHandle as Jc, runLoop as Ji, UiAuditLensFilter as Jl, MaterializeLocalMcpOptions as Jn, renderLeaderboardSvg as Jo, widen as Jr, ProviderSeam as Js, CheckRunner as Jt, createEventBus as Ju, createWorktreeCliExecutor as K, TrajectoryNode as Ka, settleDetachedCoderTurn as Kc, defaultSelectWinner as Ki, ResearchOutputShape as Kl, naiveDriver as Kn, renderLeaderboardHtml as Ko, selectValidWinner as Kr, CliWorktreeSeam as Ks, CheckOutcome as Kt, EventBus as Ku, InMemoryRunContext as L, PanelVerdict as La, CoderReview as Lc, sample as Li, DelegationHistoryResult as Ll, AuthoredStrategy as Ln, Leaderboard as Lo, runPersonified as Lr, DELEGATE_TOOL_NAME as Ls, ProfileRichness as Lt, JudgeError as Lu, supervise as M, LoopUntilSpec as Ma, FeedbackEvent as Mc, breadthStrategy as Mi, DelegateUiAuditRoute as Ml, discriminatingMeans as Mn, sentinelCompletion as Mo, trajectoryReport as Mr, McpServerOptions as Ms, BudgetReadout as Mt, InMemoryDelegationStore as Mu, workerFromBackend as N, LoopUntilState as Na, FeedbackStore as Nc, defineStrategy as Ni, DelegationError as Nl, pickChampion as Nn, stopSentinel as No, builtinShapes as Nr, createInProcessTransport as Ns, ReservationTicket as Nt, AgentEvalError$1 as Nu, TrajectoryAnalysis as O, FanoutSynthesis as Oa, JsonRpcMessage as Oc, StrategyResult as Oi, DelegateResearchResult as Ol, EvolutionGeneration as On, CompletionPolicy as Oo, PromotionGateOptions as Or, SettledWorker as Os, noProgressFor as Ot, DelegationStateCorruptError as Ou, ScopeArgs as P, Panel as Pa, InMemoryFeedbackStore as Pc, depthStrategy as Pi, DelegationFeedbackSnapshot as Pl, runStrategyEvolution as Pn, AxisScoresOf as Po, createShapeRegistry as Pr, createMcpServer as Ps, createBudgetPool as Pt, AgentEvalErrorCode as Pu, RollingDispatchOptions as Q, Widen as Qa, createSiblingSandboxExecutor as Qc, envKeyProvider as Qi, readTraceContextFromEnv as Ql, StdioMcpServerSpec as Qn, IntentAudit as Qo, buildSteerContext as Qr, cliWorktreeExecutor as Qs, StructuralRolloutConfig as Qt, FileResultBlobStore as Qu, InMemoryRunContextOptions as R, Pipeline as Ra, CoderReviewer as Rc, sampleThenRefine as Ri, DelegationProfile as Rl, assertStrategyContract as Rn, LeaderboardOptions as Ro, FileCorpus as Rr, DelegateArgs as Rs, ProfileRichnessThresholds as Rt, NotFoundError as Ru, SurfaceWorkerOut as S, EqualKArm as Sa, WorktreeHandle as Sc, ShotPersona as Si, DelegateCodeConfig as Sl, ChampionPick as Sn, LeaderboardScenario as So, SandboxCapabilities as Sr, QuestionDecision as Ss, StopDecision as St, DelegationTraceSpan as Su, AuthoredHarness as T, EqualKVerdict as Ta, removeWorktree as Tc, StrategyArtifacts as Ti, DelegateFeedbackResult as Tl, EvolutionAuthor as Tn, defineLeaderboard as To, acquireSandbox as Tr, QuestionPolicy as Ts, allWorkersStalled as Tt, composeLoopTraceEmitters as Tu, patchDelivered as U, ScopeAnalyzeInput as Ua, UiAuditorDelegate as Uc, loopDispatch as Ui, DelegationStatusResult as Ul, NaiveDriverOptions as Un, ScoreOf as Uo, loopUntil as Ur, BridgeSeam as Us, profileRichnessFinding as Ut, BusEvent as Uu, createInMemoryRunContext as V, RenderCorpusToInstructionsOptions as Va, DetachedWinnerSelection as Vc, LoopOptionsForDispatch as Vi, DelegationStatus as Vl, ApplyContinuation as Vn, PairwiseVerdict as Vo, fanout as Vr, createDelegateHandler as Vs, authoredWorker as Vt, ValidationError as Vu, WorktreeCliExecutorOptions as W, ScopeWidenGate as Wa, coderTaskFromArgs as Wc, RunAgentRoundsOptions as Wi, FeedbackRating as Wl, SteeringDecision as Wn, leaderboard as Wo, panel as Wr, CliSeam as Ws, supervisorInstructions as Wt, BusRecord as Wu, DispatchStopReason as X, Verify as Xa, SiblingSandboxExecutorOptions as Xc, localSandboxClient as Xi, TraceContext as Xl, McpToolDescriptor as Xn, AuditIntentInput as Xo, RegistryAnalyzeProjection as Xr, RouterToolsSeam as Xs, CheckSourceCtx as Xt, defaultToolDetectors as Xu, DispatchReport as Y, TrajectoryReportOptions as Ya, FleetWorkspaceExecutorOptions as Yc, LocalSandboxClientOptions as Yi, UiAuditorDelegationOutput as Yl, McpSpawnFault as Yn, renderPairwiseMarkdown as Yo, CreateScopeAnalystOptions as Yr, RouterSeam as Ys, CheckSource as Yt, WatchTraceOptions as Yu, DispatchUnit as Z, VerifySpec as Za, createFleetWorkspaceExecutor as Zc, KeyProvider as Zi, createPropagatingTraceEmitter as Zl, StdioMcpConnection as Zn, AuditIntentOptions as Zo, assertTraceDerivedFindings as Zr, SandboxSeam as Zs, RepairStop as Zt, watchTrace as Zu, VerifierEnvironmentOptions as _, AssertTraceDerivedFindings as _a, CreateWorktreeOptions as _c, AgenticTask as _i, DelegationTaskQueueOptions as _l, AgentTurnUsage as _n, LeaderboardBenchTask as _o, extractLlmCallEvent as _r, CoordinationToolsOptions as _s, PlateauOptions as _t, CappedDelegationTrace as _u, SandboxInstance$1 as a, InProcessSandboxClientOptions as aa, createSteerableSandboxSession as ac, replaySpawnTree as ad, BenchmarkCell as ai, createDetachedTurnResumeDriver as al, composeCheckSources as an, LoopShape as ao, SandboxRun as ar, areaUnderCurve as as, delegate as at, LoopSpanNode as au, SuperviseSurfaceResult as b, CorpusFilter as ba, GitRunner as bc, CorpusReadbackOptions as bi, hashIdempotencyInput as bl, collectAgentTurn as bn, LeaderboardIterationInfo as bo, sumSandboxUsage as br, MakeWorkerAgent as bs, ProgressTrackerOptions as bt, DelegationTraceCaps as bu, GitWorkspaceOptions as c, HarvestFailure as ca, createInbox as cc, BenchmarkReport as ci, parseDetachedSessionRef as cl, filterAuthoredAsserts as cn, PersonaContext as co, openSandboxRun as cr, renderAnytimeTable as cs, SupervisorProfile as ct, OtelExporter as cu, WorkspaceCommit as d, Observation as da, piExecutor as dc, Environment as di, DelegationRecord as dl, resolveEntrySymbol as dn, RunPersonifiedOptions as do, SandboxLineage as dr, WaterfallSpan as ds, serveCoordinationMcp as dt, buildLoopOtelSpans as du, resolveSecretEnv as ea, createExecutorRegistry as ec, InMemoryResultBlobStore as ed, registryScopeAnalyst as ei, DetachedTurn as el, StructuralRolloutPolicy as en, WidenLineage as eo, materializeLocalMcp as er, defaultAuditorInstruction as es, freeSlots as et, EvalRunEvent as eu, WorkspaceRun as f, ObserveInput as fa, piSeamKey as fc, printBenchmarkReport as fi, DelegationResumeContext as fl, sandboxCheckRunner as fn, ShapeBudget as fo, SandboxLineageHandle as fr, createWaterfallCollector as fs, DriverAgentOptions as ft, buildLoopSpanNodes as fu, runInWorkspace as g, renderReport as ga, WorktreeProfileMaterializationReceipt as gc, AgenticSurface as gi, DelegationTaskQueue as gl, AgentTurnBackend as gn, LeaderboardBenchScore as go, createSandboxToolPartState as gr, CoordinationTools as gs, NoProgressForOptions as gt, loopEventToOtelSpan as gu, localShell as h, observe as ha, WorktreeHarnessResult as hc, AgenticRunResult as hi, DelegationRunContext as hl, visibleCheckScore as hn, DefinedLeaderboard as ho, SandboxToolPartState as hr, CoordinationEvent as hs, AllWorkersStalledOptions as ht, exportEvalRuns as hu, SandboxEvent$1 as i, InProcessPromptCtx as ia, SteerableSandboxSession as ic, pendingWaits as id, sanitizeMcpToolSchema as ii, RunDetachedTurnOptions as il, compareCheckOutcomes as in, DefinePersonaInput as io, OpenSandboxRunPromptOptions as ir, anytimeReport as is, defaultDelegateBudget as it, INTELLIGENCE_WIRE_VERSION as iu, SuperviseOptions as j, LoopUntil as ja, McpTransport as jc, adaptiveRefine as ji, DelegateUiAuditResult as jl, StrategyEvolutionConfig as jn, deterministicCompletion as jo, equalKOnCost as jr, McpServer as js, BudgetPool as jt, FileDelegationStoreOptions as ju, analyzeTrace as k, FanoutWinnerSelector as ka, JsonRpcResponse as kc, StrategyShotResult as ki, DelegateUiAuditArgs as kl, EvolutionReport as kn, CompletionVerdict as ko, PromotionVerdict as kr, WorkerWatchOptions as ks, plateau as kt, DelegationStore as ku, Shell as l, HarvestReport as la, PI_RUNTIME as lc, BenchmarkStrategySummary as li, runDetachedTurn as ll, modelAuthoredChecks as ln, PersonaExecutors as lo, CheckpointCapableBox as lr, WaterfallCollector as ls, supervisorAgent as lt, OtelSpan as lu, jjWorkspace as m, defaultAnalystInstruction as ma, WorktreeCommandResult as mc, AgenticOptions as mi, DelegationResumeTick as ml, structuralRollout as mn, ShapeRegistry as mo, createSandboxLineage as mr, AnalystRegistry as ms, finalizeBestDelivered as mt, createOtelExporter as mu, AnalystFinding$1 as n, inlineSandboxClient as na, SandboxSteeringOptions as nc, contentAddress as nd, McpEnvironmentOptions as ni, DriveTurnCapableBox as nl, VisibleCheck as nn, WinnerStrategy as no, OpenSandboxRunBeforeStartContext as nr, AnytimeStrategySummary as ns, rollingDispatch as nt, EvalRunsExportConfig as nu, computeFindingId$1 as o, inProcessSandboxClient as oa, Inbox as oc, BenchmarkConfig as oi, detachedTurnEvents as ol, defaultExtractCandidate as on, Outcome as oo, SandboxRunAbortError as or, bestSoFar as os, DriveHarness as ot, OtelAttribute as ou, gitWorkspace as p, ObserveOptions as pa, WorktreeCheckRunner as pc, runBenchmark as pi, DelegationResumeDriver as pl, selectBestIndex as pn, ShapeContext as po, SessionCapableBox as pr, AnalystFindingEvent as ps, driverAgent as pt, buildRuntimeEventOtelSpans as pu, assertModelAllowed as q, TrajectoryReport as qa, DelegationExecutor as qc, runAgentRounds as qi, ResearchSource as ql, LocalMcpMaterialization as qn, renderLeaderboardMarkdown as qo, verify as qr, ExecutorConfig as qs, CheckRunContext as qt, PublishOptions as qu, CreateSandboxOptions$1 as r, InProcessOnPrompt as ra, SteerableSandboxArgs as rc, materializeTreeView as rd, createMcpEnvironment as ri, DriveTurnTick as rl, canDisplace as rn, DefinePersona as ro, OpenSandboxRunOptions as rr, AnytimeTaskCurve as rs, DelegateOptions as rt, EvalRunsExportResult as ru, makeFinding$1 as s, HarvestCorpusOptions as sa, InboxMessage as sc, BenchmarkLift as si, formatDetachedSessionRef as sl, defaultStructuralRolloutPolicy as sn, Persona as so, TurnResult as sr, plateauLength as ss, SupervisorAgentDeps as st, OtelExportConfig as su, AgentProfile$2 as t, secretEnvOfMcpServer as ta, DEFAULT_SANDBOX_STEERING_MAX_TURNS as tc, InMemorySpawnJournal as td, McpEndpoint as ti, DetachedTurnResumeDriverOptions as tl, StructuralRolloutResult as tn, WidenSpec as to, Deliverable as tr, AnytimeReport as ts, queueOf as tt, EvalRunGeneration as tu, Workspace as u, harvestCorpus as ua, PiSeam as uc, BenchmarkTaskRow as ui, DelegationArgs as ul, officialChecksFromMeta as un, RunPersonified as uo, ForkCapableBox as ur, WaterfallReport as us, CoordinationMcpHandle as ut, RuntimeEventOtelOptions as uu, createVerifierEnvironment as v, CombinatorShape as va, DiffOptions as vc, AgenticTool as vi, SubmitInput as vl, CollectedAgentTurn as vn, LeaderboardBenchmarkAdapter as vo, mapSandboxEvent as vr, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as vs, ProgressSample as vt, DELEGATION_TRACE_MAX_BYTES as vu, superviseSurface as w, EqualKOnCostOptions as wa, createWorktree as wc, Strategy as wi, DelegateFeedbackArgs as wl, EvolutionArchiveNode as wn, LeaderboardSpec as wo, AcquireOptions as wr, QuestionOption as ws, allOf as wt, capDelegationTrace as wu, SurfaceWorkerConfig as x, CorpusRecord as xa, RemoveWorktreeOptions as xc, RunAgenticOptions as xi, DelegateCodeArgs as xl, streamAgentTurn as xn, LeaderboardRunContext as xo, CriuCapableClient as xr, Question as xs, ProgressView as xt, DelegationTraceCollector as xu, SuperviseSurfaceOptions as y, Corpus as ya, DiffResult as yc, ArtifactHandle as yi, SubmitOutput as yl, StreamAgentTurnOptions as yn, LeaderboardFlagSpec as yo, mapSandboxToolEvent as yr, DownMessageEvent as ys, ProgressTracker as yt, DELEGATION_TRACE_MAX_SPANS as yu, RunContext as z, PipelineStage as za, DelegateRunCtx as zc, LoopCampaignDispatchOptions as zi, DelegationProgress as zl, authorStrategy as zn, LeaderboardRow as zo, InMemoryCorpus as zr, DelegateHandlerOptions as zs, asAuthoredProfile as zt, PlannerError as zu };
7224
- //# sourceMappingURL=index-CeawCSEg.d.ts.map
7232
+ //# sourceMappingURL=index-B3wAV1SJ.d.ts.map
@@ -2,13 +2,13 @@ import { _ as RunAgentTaskOptions, b as RuntimeSessionStore, g as OpenAIChatTool
2
2
  import { i as SurfaceImprovementEdit } from "./improvement-adapter-BaAdfJKT.js";
3
3
  import { o as ImprovementProposalSource } from "./types-CfGKhIuj.js";
4
4
  import { K as RuntimeHooks } from "./types-BevOjfTY.js";
5
- import { Iu as ConfigError, en as StructuralRolloutPolicy } from "./index-CeawCSEg.js";
5
+ import { Iu as ConfigError, en as StructuralRolloutPolicy } from "./index-B3wAV1SJ.js";
6
6
  import { D as RuntimeTelemetryOptions, c as runLocalHarness, i as LocalHarness, y as ToolLoopChat } from "./local-harness-Dh8PJ0ot.js";
7
7
  import "./index-C-FYUuFG.js";
8
8
  import "./index-Efjb3nrQ.js";
9
9
  import { H as CandidateGenerator, L as Verifier, a as ImproveCandidateValidationInput, j as ReadonlyAgentProfile, p as ImproveMethodFactory, t as Redactor } from "./redact-C5xOm8cu.js";
10
- import "./index-jmFVBIHo.js";
11
- import "./loop-runner-bin-BbYG9CeA.js";
10
+ import "./index-D2g5qCwg.js";
11
+ import "./loop-runner-bin-Dw9_OZfu.js";
12
12
  import "./openai-tools-B68JaOCx.js";
13
13
  import { AnalystFinding, ControlBudget as ControlBudget$1, ControlDecision as ControlDecision$1, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult as ControlRunResult$1, ControlStep as ControlStep$1, DataAcquisitionPlan as DataAcquisitionPlan$1, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement as KnowledgeRequirement$1, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
14
14
  import { GepaOptimizationMethodConfig, SkillOptOptimizationMethodConfig } from "@tangle-network/agent-eval/campaign";
@@ -835,4 +835,4 @@ interface StreamToolLoopOptions<Raw> {
835
835
  declare function streamToolLoop<Raw>(opts: StreamToolLoopOptions<Raw>): AsyncGenerator<StreamToolLoopYield<Raw>, void, unknown>;
836
836
  //#endregion
837
837
  export { rawTraceDistiller as $, ResolveAgentBackendOptions as A, handleChatTurn as At, getModels as B, readinessServerSentEvent as C, deriveExecutionId as Ct, runAgentTask as D, ChatTurnProducer as Dt, applyRunRecordDefaults as E, ChatTurnIdentity as Et, DEFAULT_ROUTER_BASE_URL as F, applyRolloutPolicyToProfile as G, resolveRouterBaseUrl as H, ModelInfo as I, serializeRolloutPolicy as J, normalizeRolloutPolicy as K, ResolvedChatModel as L, decideKnowledgeReadiness as M, createIterableBackend as Mt, ChatModelCandidate as N, createOpenAICompatibleBackend as Nt, runAgentTaskStream as O, ChatTurnResult as Ot, ChatModelValidation as P, createSandboxPromptBackend as Pt, RawTraceDistillerOptions as Q, RouterEnv as R, ServerSentEventOptions as S, toolBuildPrompt as St, InMemoryRuntimeSessionStore as T, ChatTurnHooks as Tt, validateChatModelId as U, resolveChatModel as V, ROLLOUT_POLICY_EXTENSION as W, ReflectiveGeneratorOptions as X, structuralRolloutPolicyFromProfile as Y, reflectiveGenerator as Z, ToolLoopMessage as _, DriverLoopGeneratorOptions as _t, ControlStep$1 as a, OfficialOptimizerContextOptions as at, runToolLoop as b, findingLines as bt, KnowledgeRequirement$1 as c, OfficialSkillOptOptions as ct, StreamToolLoopOptions as d, McpServeSpec as dt, buildDriverSystem as et, StreamToolLoopYield as f, mcpServeVerifier as ft, ToolLoopEvent as g, toAnalystFindings as gt, ToolLoopCall as h, isAnalystFinding as ht, ControlRunResult$1 as i, OfficialGepaOptions as it, resolveAgentBackend as j, BackendRetryPolicy as jt, AgentBackendKind as k, RunChatTurnInput as kt, RunRecord$1 as l, officialGepa as lt, ToolLoopAssistantToolCall as m, ToAnalystFindingsOptions as mt, ControlDecision$1 as n, researchDriverNote as nt, DataAcquisitionPlan$1 as o, OfficialOptimizerUnavailableError as ot, ToolCallOutcome as p, LIFTED_FINDING_ANALYST_ID as pt, parseRolloutPolicy as q, ControlEvalResult$1 as r, strategyAuthorMethod as rt, KnowledgeReadinessReport$1 as s, OfficialSensitiveCandidateInput as st, ControlBudget$1 as t, optimizerMethod as tt, RunToolLoopOptions as u, officialSkillOpt as ut, ToolLoopResult as v, driverLoopGenerator as vt, runtimeStreamServerSentEvent as w, ChatStreamEvent as wt, streamToolLoop as x, mcpBuildPrompt as xt, ToolLoopStopReason as y, BuildPromptFindingsInput as yt, cleanModelId as z };
838
- //# sourceMappingURL=index-D6MwUzvB.d.ts.map
838
+ //# sourceMappingURL=index-BbB5mmK0.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { R as Budget, st as SupervisedResult } from "./environment-provider-IUGU3epE.js";
2
- import { Ec as DeliverableSpec, ct as SupervisorProfile, j as SuperviseOptions, qs as ExecutorConfig } from "./index-CeawCSEg.js";
2
+ import { Ec as DeliverableSpec, ct as SupervisorProfile, j as SuperviseOptions, qs as ExecutorConfig } from "./index-B3wAV1SJ.js";
3
3
  import { y as AgentCandidateOutputArtifactPort } from "./types-BaIpb0XT.js";
4
4
  import { i as AgentImprovementActivationTransition, n as AgentImprovementActivationResultStore, t as AgentImprovementActivationReconciliation } from "./activation-DyWB0K6E.js";
5
5
  import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge } from "@tangle-network/agent-interface";
@@ -137,4 +137,4 @@ declare function runKnowledgeImprovementJob(options: RunKnowledgeImprovementJobO
137
137
  declare function buildKnowledgeImprovementExperimentBundles(bundle: AgentCandidateBundle, knowledge: KnowledgeImprovementCandidatePair): KnowledgeImprovementExperimentBundles;
138
138
  //#endregion
139
139
  export { KnowledgeImprovementActivationExecutor as C, CreateKnowledgeImprovementActivationExecutorOptions as S, SupervisedKnowledgeUpdater as _, KnowledgeImprovementJobResult as a, knowledgeReadinessDeliverable as b, createAgentKnowledgeReadinessCheck as c, KnowledgeReadinessCheckInput as d, KnowledgeReadinessCheckResult as f, SupervisedKnowledgeUpdateResult as g, SupervisedKnowledgeUpdateOptions as h, KnowledgeImprovementJobMeasurement as i, runKnowledgeImprovementJob as l, SupervisedKnowledgeUpdateInput as m, KnowledgeImprovementCandidatePair as n, RunKnowledgeImprovementJobOptions as o, RESEARCH_SUPERVISOR_SYSTEM_PROMPT as p, KnowledgeImprovementExperimentBundles as r, buildKnowledgeImprovementExperimentBundles as s, AgentKnowledgeReadinessCheckOptions as t, KnowledgeReadinessCheck as u, createSupervisedKnowledgeUpdater as v, createKnowledgeImprovementActivationExecutor as w, runSupervisedKnowledgeUpdate as x, formatSupervisedKnowledgeTask as y };
140
- //# sourceMappingURL=index-jmFVBIHo.d.ts.map
140
+ //# sourceMappingURL=index-D2g5qCwg.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { _ as RunAgentTaskOptions, a as AgentKnowledgeProvider, b as RuntimeSessionStore, c as AgentTaskContext, d as AgentTaskStatus, f as BackendErrorDetail, g as OpenAIChatToolChoice, h as OpenAIChatTool, i as AgentExecutionBackend, l as AgentTaskRunResult, m as OpenAIChatResponseFormat, n as AgentBackendContext, o as AgentRuntimeEvent, p as KnowledgeReadinessDecision, r as AgentBackendInput, s as AgentRuntimeEventSink, t as AgentAdapter, u as AgentTaskSpec, v as RunAgentTaskStreamOptions, x as RuntimeStreamEvent, y as RuntimeSession } from "./types-C9j4qg6l.js";
2
2
  import { A as RuntimeRunCompleteInput, B as RuntimeDecisionPoint, F as RuntimeRunRow, G as RuntimeHookTarget, H as RuntimeHookErrorContext, I as RuntimeRunStatus, J as defineRuntimeHooks, K as RuntimeHooks, L as startRuntimeRun, M as RuntimeRunHandle, N as RuntimeRunOptions, P as RuntimeRunPersistenceAdapter, R as RuntimeDecisionEvidenceRef, U as RuntimeHookEvent, V as RuntimeHookContext, W as RuntimeHookPhase, X as notifyRuntimeHookEvent, Y as notifyRuntimeDecisionPoint, j as RuntimeRunCost, q as composeRuntimeHooks, z as RuntimeDecisionKind } from "./types-BevOjfTY.js";
3
- import { Bu as RuntimeRunStateError, Fu as BackendTransportError, Iu as ConfigError, Lu as JudgeError, Nu as AgentEvalError, Pu as AgentEvalErrorCode, Ru as NotFoundError, Vu as ValidationError, au as LoopSpanNode, cu as OtelExporter, du as buildLoopOtelSpans, eu as EvalRunEvent, fu as buildLoopSpanNodes, gu as loopEventToOtelSpan, hu as exportEvalRuns, iu as INTELLIGENCE_WIRE_VERSION, lu as OtelSpan, mu as createOtelExporter, nu as EvalRunsExportConfig, ou as OtelAttribute, pc as WorktreeCheckRunner, pu as buildRuntimeEventOtelSpans, ru as EvalRunsExportResult, su as OtelExportConfig, tu as EvalRunGeneration, uu as RuntimeEventOtelOptions, zu as PlannerError } from "./index-CeawCSEg.js";
3
+ import { Bu as RuntimeRunStateError, Fu as BackendTransportError, Iu as ConfigError, Lu as JudgeError, Nu as AgentEvalError, Pu as AgentEvalErrorCode, Ru as NotFoundError, Vu as ValidationError, au as LoopSpanNode, cu as OtelExporter, du as buildLoopOtelSpans, eu as EvalRunEvent, fu as buildLoopSpanNodes, gu as loopEventToOtelSpan, hu as exportEvalRuns, iu as INTELLIGENCE_WIRE_VERSION, lu as OtelSpan, mu as createOtelExporter, nu as EvalRunsExportConfig, ou as OtelAttribute, pc as WorktreeCheckRunner, pu as buildRuntimeEventOtelSpans, ru as EvalRunsExportResult, su as OtelExportConfig, tu as EvalRunGeneration, uu as RuntimeEventOtelOptions, zu as PlannerError } from "./index-B3wAV1SJ.js";
4
4
  import { A as createRuntimeEventCollector, C as RuntimeEventCollector, D as RuntimeTelemetryOptions, E as RuntimeStreamEventSummary, M as sanitizeAgentRuntimeEvent, N as sanitizeKnowledgeReadinessReport, O as SanitizedKnowledgeReadinessReport, P as sanitizeRuntimeStreamEvent, T as RuntimeStreamEventSink, j as createRuntimeStreamEventCollector, k as SanitizedKnowledgeRequirement, w as RuntimeStreamEventCollector } from "./local-harness-Dh8PJ0ot.js";
5
5
  import { C as AgentCandidateCodeSurfaceSource, D as AgentCandidateBundleInput, E as buildAgentCandidateBundle, O as sealAgentCandidateBundle, S as AgentCandidateCodeSource, T as BuildAgentCandidateBundleInput, _ as exactProcessProviderAsCandidateExecutor, a as captureAgentCandidateWorkspace, b as FileAgentCandidateExecutionClaimStore, c as AGENT_CANDIDATE_EXECUTION_SUPPORT, d as recoverExpiredAgentCandidateExecution, f as persistCandidateOutputArtifact, g as ExactProcessCandidateExecutorOptions, h as candidateKnowledgeExecutionPaths, i as CreateAgentCandidateWorkspacePortOptions, l as verifyAgentCandidateBundle, m as CANDIDATE_KNOWLEDGE_ROOT_ENV, n as CaptureAgentCandidateWorkspaceOptions, o as captureAgentCandidateWorkspaceFiles, p as CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, r as CapturedAgentCandidateWorkspace, s as createAgentCandidateWorkspacePort, t as AgentCandidateWorkspaceArchiveLimits, u as RecoverExpiredAgentCandidateOptions, v as DisposePreparedAgentCandidateOptions, w as AgentCandidateProfileSource, x as FileAgentCandidateExecutionClaimStoreOptions, y as disposePreparedAgentCandidateExecution } from "./index-C-FYUuFG.js";
6
6
  import { A as AgentCandidateExecutionTerminalRecord, C as AgentCandidateExecutionFailureClass, D as AgentCandidateExecutionPhaseResult, E as AgentCandidateExecutionPhase, F as candidateExecutionClaim, I as AgentCandidatePreparationEvidence, M as AgentCandidateRetryRejection, N as InMemoryAgentCandidateExecutionClaimStore, O as AgentCandidateExecutionRecoveryEvidence, P as InMemoryAgentCandidateExecutionClaimStoreOptions, S as AgentCandidateExecutionCleanupHandles, T as AgentCandidateExecutionLease, _ as AgentCandidateExecutionAttemptRecord, a as AgentCandidateModelGrantSettleInput, b as AgentCandidateExecutionClaimResult, c as applyExactAgentProfileDiff, d as parseExactAgentProfile, f as parseExactAgentProfileDiff, g as executePreparedAgentCandidate, h as ExecutePreparedAgentCandidateOptions, i as AgentCandidateModelGrantReserveInput, j as AgentCandidateExecutionTerminalResult, k as AgentCandidateExecutionStageResult, l as assertCandidateProfileBinding, m as prepareAgentCandidateExecution, n as AgentCandidateModelGrantClient, o as CreateProtectedAgentCandidateModelPortOptions, p as PrepareAgentCandidateExecutionOptions, r as AgentCandidateModelGrantReservation, s as createProtectedAgentCandidateModelPort, t as AgentCandidateModelGrantActivateInput, v as AgentCandidateExecutionAttemptRef, w as AgentCandidateExecutionFinishResult, x as AgentCandidateExecutionClaimStore, y as AgentCandidateExecutionClaim } from "./protected-model-port-BP6Z4eau.js";
7
7
  import { A as CANDIDATE_TRACE_ENV, B as VerifiedAgentCandidate, C as AgentCandidateProtectedModelSettlement, D as AgentCandidateTaskExecution, E as AgentCandidateRunFinalization, F as PreparedAgentCandidateInstruction, I as PreparedAgentCandidateKnowledge, L as PreparedAgentCandidateLaunch, M as CanonicalCandidateDocument, N as PersistedTaskOutcomeEvidence, O as AgentCandidateVerificationPorts, P as PreparedAgentCandidateExecution, R as PreparedAgentCandidateTrace, S as AgentCandidateProtectedModelReservation, T as AgentCandidateRepositoryPort, V as VerifiedAgentCandidateTaskOutcome, _ as AgentCandidateModelLimits, a as AgentCandidateExecutionPorts, b as AgentCandidateOutputPurpose, c as AgentCandidateExecutorPort, d as AgentCandidateExecutorStopRequest, f as AgentCandidateExecutorTaskOutcomeCapture, g as AgentCandidateMemoryResetResult, h as AgentCandidateMemoryPort, i as AgentCandidateContainerPort, j as CANDIDATE_TRACE_TAGS, k as AgentCandidateWorkspacePort, l as AgentCandidateExecutorProfileFile, m as AgentCandidateExecutorWorkspaceInput, n as AgentCandidateBenchmarkGraderIdentity, o as AgentCandidateExecutorFinalCapture, p as AgentCandidateExecutorWorkspaceFile, r as AgentCandidateBenchmarkGraderPort, s as AgentCandidateExecutorMemoryCapture, t as AgentCandidateArtifactPort, u as AgentCandidateExecutorRequest, v as AgentCandidateModelPort, w as AgentCandidateProtectedRunCapture, x as AgentCandidateProtectedModelActivation, y as AgentCandidateOutputArtifactPort, z as ResolvedAgentCandidateContainer } from "./types-BaIpb0XT.js";
8
8
  import { $ as sleep, A as RunConversationOptions, B as buildForwardHeaders, C as ConversationResult, D as HaltPredicate, E as HaltContext, F as InMemoryConversationJournal, G as CircuitBreakerState, H as readDepth, I as DEFAULT_MAX_DEPTH, J as RetryBackoff, K as CircuitOpenError, L as FORWARD_HEADERS, M as ConversationJournal, N as ConversationJournalEntry, O as HaltReason, P as FileConversationJournal, Q as makePerAttemptSignal, R as ForwardHeaderName, S as ConversationPolicy, T as ConversationTurn, U as BackendCallPolicy, V as isDepthExceeded, W as CircuitBreakerConfig, X as computeBackoff, Y as RetryableErrorPredicate, Z as defaultIsRetryable, _ as createConversationBackend, a as RunPersonaConfig, b as ConversationDriveState, c as runPersonaDispatch, d as D1DatabaseLike, f as D1StmtLike, g as defineConversation, h as d1ToSqlAdapter, i as PersonaDriver, j as TurnOrder, k as HaltSignal, l as runConversation, m as SqlConversationJournal, n as turnId, o as RunPersonaConversationOptions, p as SqlAdapter, q as DeadlineExceededError, r as PersonaConversationResult, s as runPersonaConversation, t as slugifySpeaker, u as runConversationStream, v as AuthSource, w as ConversationStreamEvent, x as ConversationParticipant, y as Conversation, z as PropagatedHeaders } from "./index-Efjb3nrQ.js";
9
- import { $ as rawTraceDistiller, A as ResolveAgentBackendOptions, At as handleChatTurn, B as getModels, C as readinessServerSentEvent, Ct as deriveExecutionId, D as runAgentTask, Dt as ChatTurnProducer, E as applyRunRecordDefaults, Et as ChatTurnIdentity, F as DEFAULT_ROUTER_BASE_URL, G as applyRolloutPolicyToProfile, H as resolveRouterBaseUrl, I as ModelInfo, J as serializeRolloutPolicy, K as normalizeRolloutPolicy, L as ResolvedChatModel, M as decideKnowledgeReadiness, Mt as createIterableBackend, N as ChatModelCandidate, Nt as createOpenAICompatibleBackend, O as runAgentTaskStream, Ot as ChatTurnResult, P as ChatModelValidation, Pt as createSandboxPromptBackend, Q as RawTraceDistillerOptions, R as RouterEnv, S as ServerSentEventOptions, St as toolBuildPrompt, T as InMemoryRuntimeSessionStore, Tt as ChatTurnHooks, U as validateChatModelId, V as resolveChatModel, W as ROLLOUT_POLICY_EXTENSION, X as ReflectiveGeneratorOptions, Y as structuralRolloutPolicyFromProfile, Z as reflectiveGenerator, _ as ToolLoopMessage, _t as DriverLoopGeneratorOptions, a as ControlStep, at as OfficialOptimizerContextOptions, b as runToolLoop, bt as findingLines, c as KnowledgeRequirement, ct as OfficialSkillOptOptions, d as StreamToolLoopOptions, dt as McpServeSpec, et as buildDriverSystem, f as StreamToolLoopYield, ft as mcpServeVerifier, g as ToolLoopEvent, gt as toAnalystFindings, h as ToolLoopCall, ht as isAnalystFinding, i as ControlRunResult, it as OfficialGepaOptions, j as resolveAgentBackend, jt as BackendRetryPolicy, k as AgentBackendKind, kt as RunChatTurnInput, l as RunRecord, lt as officialGepa, m as ToolLoopAssistantToolCall, mt as ToAnalystFindingsOptions, n as ControlDecision, nt as researchDriverNote, o as DataAcquisitionPlan, ot as OfficialOptimizerUnavailableError, p as ToolCallOutcome, pt as LIFTED_FINDING_ANALYST_ID, q as parseRolloutPolicy, r as ControlEvalResult, rt as strategyAuthorMethod, s as KnowledgeReadinessReport, st as OfficialSensitiveCandidateInput, t as ControlBudget, tt as optimizerMethod, u as RunToolLoopOptions, ut as officialSkillOpt, v as ToolLoopResult, vt as driverLoopGenerator, w as runtimeStreamServerSentEvent, wt as ChatStreamEvent, x as streamToolLoop, xt as mcpBuildPrompt, y as ToolLoopStopReason, yt as BuildPromptFindingsInput, z as cleanModelId } from "./index-D6MwUzvB.js";
9
+ import { $ as rawTraceDistiller, A as ResolveAgentBackendOptions, At as handleChatTurn, B as getModels, C as readinessServerSentEvent, Ct as deriveExecutionId, D as runAgentTask, Dt as ChatTurnProducer, E as applyRunRecordDefaults, Et as ChatTurnIdentity, F as DEFAULT_ROUTER_BASE_URL, G as applyRolloutPolicyToProfile, H as resolveRouterBaseUrl, I as ModelInfo, J as serializeRolloutPolicy, K as normalizeRolloutPolicy, L as ResolvedChatModel, M as decideKnowledgeReadiness, Mt as createIterableBackend, N as ChatModelCandidate, Nt as createOpenAICompatibleBackend, O as runAgentTaskStream, Ot as ChatTurnResult, P as ChatModelValidation, Pt as createSandboxPromptBackend, Q as RawTraceDistillerOptions, R as RouterEnv, S as ServerSentEventOptions, St as toolBuildPrompt, T as InMemoryRuntimeSessionStore, Tt as ChatTurnHooks, U as validateChatModelId, V as resolveChatModel, W as ROLLOUT_POLICY_EXTENSION, X as ReflectiveGeneratorOptions, Y as structuralRolloutPolicyFromProfile, Z as reflectiveGenerator, _ as ToolLoopMessage, _t as DriverLoopGeneratorOptions, a as ControlStep, at as OfficialOptimizerContextOptions, b as runToolLoop, bt as findingLines, c as KnowledgeRequirement, ct as OfficialSkillOptOptions, d as StreamToolLoopOptions, dt as McpServeSpec, et as buildDriverSystem, f as StreamToolLoopYield, ft as mcpServeVerifier, g as ToolLoopEvent, gt as toAnalystFindings, h as ToolLoopCall, ht as isAnalystFinding, i as ControlRunResult, it as OfficialGepaOptions, j as resolveAgentBackend, jt as BackendRetryPolicy, k as AgentBackendKind, kt as RunChatTurnInput, l as RunRecord, lt as officialGepa, m as ToolLoopAssistantToolCall, mt as ToAnalystFindingsOptions, n as ControlDecision, nt as researchDriverNote, o as DataAcquisitionPlan, ot as OfficialOptimizerUnavailableError, p as ToolCallOutcome, pt as LIFTED_FINDING_ANALYST_ID, q as parseRolloutPolicy, r as ControlEvalResult, rt as strategyAuthorMethod, s as KnowledgeReadinessReport, st as OfficialSensitiveCandidateInput, t as ControlBudget, tt as optimizerMethod, u as RunToolLoopOptions, ut as officialSkillOpt, v as ToolLoopResult, vt as driverLoopGenerator, w as runtimeStreamServerSentEvent, wt as ChatStreamEvent, x as streamToolLoop, xt as mcpBuildPrompt, y as ToolLoopStopReason, yt as BuildPromptFindingsInput, z as cleanModelId } from "./index-BbB5mmK0.js";
10
10
  import { A as DeepReadonly, B as commandVerifier, C as ImproveResult, D as ImprovementCandidate, E as ImproveSurface, F as AgenticGeneratorShotExecution, H as CandidateGenerator, I as AgenticGeneratorShotReceipt, L as Verifier, M as AGENTIC_PROFILE_RESOURCE_ROOT, N as AgenticGeneratorOptions, O as ImprovementCodeCandidate, P as AgenticGeneratorShotDisposition, R as VerifyResult, S as ImproveProfileSurface, T as ImproveSkillsOptions, V as defaultBuildPrompt, _ as ImproveMethodSource, a as ImproveCandidateValidationInput, b as ImproveProfileAgent, c as ImproveCodeResult, d as ImproveLineage, f as ImproveMethodContext, g as ImproveMethodResult, h as ImproveMethodOptions, i as improve, j as ReadonlyAgentProfile, k as ImprovementProfileCandidate, l as ImproveCodeRunOptions, m as ImproveMethodLineage, o as ImproveCandidateValidator, p as ImproveMethodFactory, s as ImproveCodeOptions, u as ImproveCost, v as ImproveOptimizationRunOptions, w as ImproveScenarioPartitions, x as ImproveProfileComponents, y as ImproveOptions, z as agenticGenerator } from "./redact-C5xOm8cu.js";
11
- import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-jmFVBIHo.js";
12
- 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-BbYG9CeA.js";
11
+ import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-D2g5qCwg.js";
12
+ 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-Dw9_OZfu.js";
13
13
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-B68JaOCx.js";
14
14
  export { AGENTIC_PROFILE_RESOURCE_ROOT, AGENT_CANDIDATE_EXECUTION_SUPPORT, type AgentAdapter, type AgentBackendContext, type AgentBackendInput, type AgentBackendKind, type AgentCandidateArtifactPort, type AgentCandidateBenchmarkGraderIdentity, type AgentCandidateBenchmarkGraderPort, type AgentCandidateBundleInput, type AgentCandidateCodeSource, type AgentCandidateCodeSurfaceSource, type AgentCandidateContainerPort, type AgentCandidateExecutionAttemptRecord, type AgentCandidateExecutionAttemptRef, type AgentCandidateExecutionClaim, type AgentCandidateExecutionClaimResult, type AgentCandidateExecutionClaimStore, type AgentCandidateExecutionCleanupHandles, type AgentCandidateExecutionFailureClass, type AgentCandidateExecutionFinishResult, type AgentCandidateExecutionLease, type AgentCandidateExecutionPhase, type AgentCandidateExecutionPhaseResult, type AgentCandidateExecutionPorts, type AgentCandidateExecutionRecoveryEvidence, type AgentCandidateExecutionStageResult, type AgentCandidateExecutionTerminalRecord, type AgentCandidateExecutionTerminalResult, type AgentCandidateExecutorFinalCapture, type AgentCandidateExecutorMemoryCapture, type AgentCandidateExecutorPort, type AgentCandidateExecutorProfileFile, type AgentCandidateExecutorRequest, type AgentCandidateExecutorStopRequest, type AgentCandidateExecutorTaskOutcomeCapture, type AgentCandidateExecutorWorkspaceFile, type AgentCandidateExecutorWorkspaceInput, type AgentCandidateMemoryPort, type AgentCandidateMemoryResetResult, type AgentCandidateModelGrantActivateInput, type AgentCandidateModelGrantClient, type AgentCandidateModelGrantReservation, type AgentCandidateModelGrantReserveInput, type AgentCandidateModelGrantSettleInput, type AgentCandidateModelLimits, type AgentCandidateModelPort, type AgentCandidateOutputArtifactPort, type AgentCandidateOutputPurpose, type AgentCandidatePreparationEvidence, type AgentCandidateProfileSource, type AgentCandidateProtectedModelActivation, type AgentCandidateProtectedModelReservation, type AgentCandidateProtectedModelSettlement, type AgentCandidateProtectedRunCapture, type AgentCandidateRepositoryPort, type AgentCandidateRetryRejection, type AgentCandidateRunFinalization, type AgentCandidateTaskExecution, type AgentCandidateVerificationPorts, type AgentCandidateWorkspaceArchiveLimits, type AgentCandidateWorkspacePort, AgentEvalError, type AgentEvalErrorCode, type AgentExecutionBackend, type AgentKnowledgeProvider, type AgentKnowledgeReadinessCheckOptions, type AgentRuntimeEvent, type AgentRuntimeEventSink, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AuthSource, type BackendCallPolicy, type BackendErrorDetail, type BackendRetryPolicy, BackendTransportError, type BuildAgentCandidateBundleInput, type BuildPromptFindingsInput, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, CANDIDATE_KNOWLEDGE_ROOT_ENV, CANDIDATE_TRACE_ENV, CANDIDATE_TRACE_TAGS, type CandidateGenerator, type CanonicalCandidateDocument, type CaptureAgentCandidateWorkspaceOptions, type CapturedAgentCandidateWorkspace, type ChatModelCandidate, type ChatModelValidation, type ChatStreamEvent, type ChatTurnHooks, type ChatTurnIdentity, type ChatTurnProducer, type ChatTurnResult, type CircuitBreakerConfig, CircuitBreakerState, CircuitOpenError, ConfigError, type ControlBudget, type ControlDecision, type ControlEvalResult, type ControlRunResult, type ControlStep, type Conversation, type ConversationDriveState, type ConversationJournal, type ConversationJournalEntry, type ConversationParticipant, type ConversationPolicy, type ConversationResult, type ConversationStreamEvent, type ConversationTurn, type CreateAgentCandidateWorkspacePortOptions, type CreateKnowledgeImprovementActivationExecutorOptions, type CreateProtectedAgentCandidateModelPortOptions, type D1DatabaseLike, type D1StmtLike, DEFAULT_MAX_DEPTH, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, type DataAcquisitionPlan, DeadlineExceededError, type DeepReadonly, type DelegatedLoopMode, type DelegatedLoopRegistry, type DelegatedLoopResult, type DelegatedLoopRunner, type DisposePreparedAgentCandidateOptions, type DriverLoopGeneratorOptions, type EvalRunEvent, type EvalRunGeneration, type EvalRunsExportConfig, type EvalRunsExportResult, type ExactProcessCandidateExecutorOptions, type ExecutePreparedAgentCandidateOptions, FORWARD_HEADERS, FileAgentCandidateExecutionClaimStore, type FileAgentCandidateExecutionClaimStoreOptions, FileConversationJournal, type ForwardHeaderName, type HaltContext, type HaltPredicate, type HaltReason, type HaltSignal, INTELLIGENCE_WIRE_VERSION, type ImproveCandidateValidationInput, type ImproveCandidateValidator, type ImproveCodeOptions, type ImproveCodeResult, type ImproveCodeRunOptions, type ImproveCost, type ImproveLineage, type ImproveMethodContext, type ImproveMethodFactory, type ImproveMethodLineage, type ImproveMethodOptions, type ImproveMethodResult, type ImproveMethodSource, type ImproveOptimizationRunOptions, type ImproveOptions, type ImproveProfileAgent, type ImproveProfileComponents, type ImproveProfileSurface, type ImproveResult, type ImproveScenarioPartitions, type ImproveSkillsOptions, type ImproveSurface, type ImprovementCandidate, type ImprovementCodeCandidate, type ImprovementProfileCandidate, InMemoryAgentCandidateExecutionClaimStore, type InMemoryAgentCandidateExecutionClaimStoreOptions, InMemoryConversationJournal, InMemoryRuntimeSessionStore, JudgeError, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, type KnowledgeReadinessDecision, type KnowledgeReadinessReport, type KnowledgeRequirement, LIFTED_FINDING_ANALYST_ID, type LoopRunnerCliArgs, type LoopRunnerCliResult, type LoopSpanNode, type McpServeSpec, type ModelInfo, NotFoundError, type OfficialGepaOptions, type OfficialOptimizerContextOptions, OfficialOptimizerUnavailableError, type OfficialSensitiveCandidateInput, type OfficialSkillOptOptions, type OpenAIChatResponseFormat, type OpenAIChatTool, type OpenAIChatToolChoice, type OtelAttribute, type OtelExportConfig, type OtelExporter, type OtelSpan, type PersistedTaskOutcomeEvidence, type PersonaConversationResult, type PersonaDriver, PlannerError, type PrepareAgentCandidateExecutionOptions, type PreparedAgentCandidateExecution, type PreparedAgentCandidateInstruction, type PreparedAgentCandidateKnowledge, type PreparedAgentCandidateLaunch, type PreparedAgentCandidateTrace, type PropagatedHeaders, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, type RawTraceDistillerOptions, type ReadonlyAgentProfile, type RecoverExpiredAgentCandidateOptions, type ReflectiveGeneratorOptions, type ResearchLoopResult, type ResearchLoopRunnerOptions, type ResolveAgentBackendOptions, type ResolvedAgentCandidateContainer, type ResolvedChatModel, type RetryBackoff, type RetryableErrorPredicate, type RouterEnv, type RunAgentTaskOptions, type RunAgentTaskStreamOptions, type RunChatTurnInput, type RunConversationOptions, type RunDelegatedLoopOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunRecord, type RunToolLoopOptions, type RuntimeDecisionEvidenceRef, type RuntimeDecisionKind, type RuntimeDecisionPoint, type RuntimeEventCollector, type RuntimeEventOtelOptions, type RuntimeHookContext, type RuntimeHookErrorContext, type RuntimeHookEvent, type RuntimeHookPhase, type RuntimeHookTarget, type RuntimeHooks, type RuntimeRunCompleteInput, type RuntimeRunCost, type RuntimeRunHandle, type RuntimeRunOptions, type RuntimeRunPersistenceAdapter, type RuntimeRunRow, RuntimeRunStateError, type RuntimeRunStatus, type RuntimeSession, type RuntimeSessionStore, type RuntimeStreamEvent, type RuntimeStreamEventCollector, type RuntimeStreamEventSink, type RuntimeStreamEventSummary, type RuntimeTelemetryOptions, type SanitizedKnowledgeReadinessReport, type SanitizedKnowledgeRequirement, type ServerSentEventOptions, type SqlAdapter, SqlConversationJournal, type StreamToolLoopOptions, type StreamToolLoopYield, type SupervisedKnowledgeUpdateInput, type SupervisedKnowledgeUpdateOptions, type SupervisedKnowledgeUpdateResult, type SupervisedKnowledgeUpdater, type ToAnalystFindingsOptions, type ToolCallOutcome, type ToolLoopAssistantToolCall, type ToolLoopCall, type ToolLoopEvent, type ToolLoopMessage, type ToolLoopResult, type ToolLoopStopReason, type TurnOrder, ValidationError, type VerifiedAgentCandidate, type VerifiedAgentCandidateTaskOutcome, type Verifier, type VerifyResult, type VetoedFact, type WorktreeCheckRunner, type WorktreeLoopRunnerOptions, agenticGenerator, applyExactAgentProfileDiff, applyRolloutPolicyToProfile, applyRunRecordDefaults, assertCandidateProfileBinding, auditLoopRunner, buildAgentCandidateBundle, buildDriverSystem, buildForwardHeaders, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, buildLoopSpanNodes, buildRuntimeEventOtelSpans, candidateExecutionClaim, candidateKnowledgeExecutionPaths, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, cleanModelId, commandVerifier, composeRuntimeHooks, computeBackoff, createAgentCandidateWorkspacePort, createAgentKnowledgeReadinessCheck, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOpenAICompatibleBackend, createOtelExporter, createProtectedAgentCandidateModelPort, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, createSupervisedKnowledgeUpdater, d1ToSqlAdapter, decideKnowledgeReadiness, defaultBuildPrompt, defaultIsRetryable, defineConversation, defineRuntimeHooks, deriveExecutionId, disposePreparedAgentCandidateExecution, driverLoopGenerator, exactProcessProviderAsCandidateExecutor, executePreparedAgentCandidate, exportEvalRuns, findingLines, formatSupervisedKnowledgeTask, getModels, handleChatTurn, improve, isAnalystFinding, isDelegatedLoopMode, isDepthExceeded, knowledgeReadinessDeliverable, loopEventToOtelSpan, makePerAttemptSignal, mcpBuildPrompt, mcpServeVerifier, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, normalizeRolloutPolicy, notifyRuntimeDecisionPoint, notifyRuntimeHookEvent, officialGepa, officialSkillOpt, optimizerMethod, parseExactAgentProfile, parseExactAgentProfileDiff, parseLoopRunnerArgv, parseRolloutPolicy, persistCandidateOutputArtifact, prepareAgentCandidateExecution, rawTraceDistiller, readDepth, readinessServerSentEvent, recoverExpiredAgentCandidateExecution, reflectiveGenerator, researchDriverNote, researchLoopRunner, resolveAgentBackend, resolveChatModel, resolveRouterBaseUrl, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runDelegatedLoop, runKnowledgeImprovementJob, runLoopRunnerCli, runPersonaConversation, runPersonaDispatch, runSupervisedKnowledgeUpdate, runToolLoop, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, sealAgentCandidateBundle, serializeRolloutPolicy, sleep, slugifySpeaker, startRuntimeRun, strategyAuthorMethod, streamToolLoop, structuralRolloutPolicyFromProfile, toAnalystFindings, toolBuildPrompt, turnId, validateChatModelId, verifyAgentCandidateBundle, worktreeLoopRunner };
package/dist/index.js CHANGED
@@ -8,11 +8,11 @@ import { C as makePerAttemptSignal, S as defaultIsRetryable, _ as readDepth, a a
8
8
  import { N as runLocalHarness, _ as defineRuntimeHooks, g as composeRuntimeHooks, v as notifyRuntimeDecisionPoint, w as runBrainLoop, y as notifyRuntimeHookEvent } from "./supervisor-DTKhF-RV.js";
9
9
  import { D as researchDriverNote, E as optimizerMethod, O as strategyAuthorMethod, T as buildDriverSystem } from "./structural-rollout-IXUEplky.js";
10
10
  import { A as improve, B as isAnalystFinding, F as normalizeRolloutPolicy, G as defaultBuildPrompt, H as AGENTIC_PROFILE_RESOURCE_ROOT, I as parseRolloutPolicy, J as summarizeFindings, K as rawTraceEvidenceProblem, L as serializeRolloutPolicy, M as rawTraceDistiller, N as ROLLOUT_POLICY_EXTENSION, P as applyRolloutPolicyToProfile, R as structuralRolloutPolicyFromProfile, U as agenticGenerator, V as toAnalystFindings, W as commandVerifier, Y as worktreeChangedPaths, j as withMethodRuntimeControls, q as requiresRawTraceEvidence, z as LIFTED_FINDING_ANALYST_ID } from "./improvement-cycle-Ulvvbg5p.js";
11
- import { bt as connectStdioMcp, yt as McpSpawnFault } from "./runtime-5zM5XxLr.js";
11
+ import { bt as connectStdioMcp, yt as McpSpawnFault } from "./runtime-M_GIzIwe.js";
12
12
  import { n as defaultRedactorIdentityMaterial, r as resolveRedactor, t as defaultRedactor } from "./redact-D-u-rrcn.js";
13
13
  import { a as createSupervisedKnowledgeUpdater, c as runSupervisedKnowledgeUpdate, i as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, l as createKnowledgeImprovementActivationExecutor, n as createAgentKnowledgeReadinessCheck, o as formatSupervisedKnowledgeTask, r as runKnowledgeImprovementJob, s as knowledgeReadinessDeliverable, t as buildKnowledgeImprovementExperimentBundles } from "./knowledge-Dizh_AtL.js";
14
14
  import { a as createOtelExporter, c as loopEventToOtelSpan, d as sanitizeAgentRuntimeEvent, f as sanitizeKnowledgeReadinessReport, i as buildRuntimeEventOtelSpans, l as createRuntimeEventCollector, n as buildLoopOtelSpans, o as exportEvalRuns, p as sanitizeRuntimeStreamEvent, r as buildLoopSpanNodes, t as INTELLIGENCE_WIRE_VERSION, u as createRuntimeStreamEventCollector } from "./otel-export-D34IQW1C.js";
15
- 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-CvdKZkE4.js";
15
+ 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-BHELvjdO.js";
16
16
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-CKLy1C7M.js";
17
17
  import { a as resolveRouterBaseUrl, i as resolveChatModel, n as cleanModelId, o as validateChatModelId, r as getModels, t as DEFAULT_ROUTER_BASE_URL } from "./model-resolution-Btd9iIKV.js";
18
18
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
@@ -1,2 +1,2 @@
1
- import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-jmFVBIHo.js";
1
+ import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-D2g5qCwg.js";
2
2
  export { type AgentKnowledgeReadinessCheckOptions, type CreateKnowledgeImprovementActivationExecutorOptions, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, type RunKnowledgeImprovementJobOptions, type SupervisedKnowledgeUpdateInput, type SupervisedKnowledgeUpdateOptions, type SupervisedKnowledgeUpdateResult, type SupervisedKnowledgeUpdater, buildKnowledgeImprovementExperimentBundles, createAgentKnowledgeReadinessCheck, createKnowledgeImprovementActivationExecutor, createSupervisedKnowledgeUpdater, formatSupervisedKnowledgeTask, knowledgeReadinessDeliverable, runKnowledgeImprovementJob, runSupervisedKnowledgeUpdate };
@@ -1,5 +1,5 @@
1
1
  import { i as ConfigError } from "./errors-DEAvWQPy.js";
2
- import { M as runPersonified, d as worktreeFanout, j as definePersona } from "./runtime-5zM5XxLr.js";
2
+ import { M as runPersonified, d as worktreeFanout, j as definePersona } from "./runtime-M_GIzIwe.js";
3
3
  import { t as runAnalystLoop } from "./analyst-loop-C8cGThTW.js";
4
4
  import { Dt as createExecutorRegistry } from "./supervise-BiRutHS9.js";
5
5
  import { t as createKbGate } from "./kb-gate-DpaSwXVx.js";
@@ -265,4 +265,4 @@ if (invokedScript && /loop-runner-bin\.(js|ts|mjs)$/.test(invokedScript)) main()
265
265
  //#endregion
266
266
  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 };
267
267
 
268
- //# sourceMappingURL=loop-runner-bin-CvdKZkE4.js.map
268
+ //# sourceMappingURL=loop-runner-bin-BHELvjdO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loop-runner-bin-CvdKZkE4.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 { 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 /** 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: { name: 'worktree-coder' }, 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-BHELvjdO.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 { 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 /** 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: { name: 'worktree-coder' }, 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,uBAAuB;CAAC;CAAQ;CAAU;CAAY;CAAS;AAAc;;AAM1F,SAAgB,oBAAoB,OAA4C;CAC9E,OAAO,OAAO,UAAU,YAAa,qBAA2C,SAAS,KAAK;AAChG;;;;;;;;;;AAoCA,eAAsB,iBACpB,MACA,UACA,UAAmC,CAAC,GACH;CACjC,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,QACH,MAAM,IAAI,YACR,oDAAoD,KAAK,iBACvD,OAAO,KAAK,QAAQ,CAAC,CAAC,KAAK,IAAI,KAAK,OACrC,EACH;CAEF,MAAM,MAAM,QAAQ,OAAO,KAAK;CAChC,MAAM,SAAS,QAAQ,UAAU,IAAI,gBAAgB,CAAC,CAAC;CACvD,MAAM,QAAQ,IAAI;CAClB,IAAI;EAEF,OAAO;GAAE;GAAM,IAAI;GAAM,QAAA,MADJ,OAAO,MAAM;GACD,YAAY,IAAI,IAAI;EAAM;CAC7D,SAAS,KAAK;EACZ,OAAO;GACL;GACA,IAAI;GACJ,OAAO,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;GACtD,YAAY,IAAI,IAAI;EACtB;CACF;AACF;;;;;;;;;;;;;;;AA4CA,SAAgB,mBACd,SAC4C;CAC5C,MAAM,QAAQ,eAAuB;EACnC,UAAU,QAAQ;EAClB,YAAY,QAAQ;EACpB,WAAW,QAAQ;EACnB,GAAI,QAAQ,YAAY,KAAA,IAAY,EAAE,SAAS,QAAQ,QAAQ,IAAI,CAAC;EACpE,GAAI,QAAQ,iBAAiB,KAAA,IAAY,EAAE,cAAc,QAAQ,aAAa,IAAI,CAAC;EACnF,GAAI,QAAQ,YAAY,KAAA,IAAY,EAAE,SAAS,QAAQ,QAAQ,IAAI,CAAC;EACpE,GAAI,QAAQ,iBAAiB,KAAA,IAAY,EAAE,cAAc,QAAQ,aAAa,IAAI,CAAC;EACnF,GAAI,QAAQ,mBAAmB,KAAA,IAAY,EAAE,gBAAgB,QAAQ,eAAe,IAAI,CAAC;EACzF,GAAI,QAAQ,mBAAmB,KAAA,IAAY,EAAE,gBAAgB,QAAQ,eAAe,IAAI,CAAC;EACzF,GAAI,QAAQ,SAAS,EAAE,QAAQ,QAAQ,OAAO,IAAI,CAAC;EACnD,GAAI,QAAQ,aAAa,EAAE,YAAY,QAAQ,WAAW,IAAI,CAAC;EAC/D,GAAI,QAAQ,aAAa,EAAE,YAAY,QAAQ,WAAW,IAAI,CAAC;CACjE,CAAC;CAGD,MAAM,UAAU,cAAqC;EACnD,MAAM;EACN,MAAM;GAAE,SAAS,EAAE,MAAM,iBAAiB;GAAG,SAAS;EAAK;EAC3D,WAAW;EACX,SAAS,EAAE,MAAM,QAAQ;EACzB,WAAW,EAAE,UAAU,uBAAuB,EAAE;CAClD,CAAC;CACD,OAAO,OAAO,WAAW;EACvB,MAAM,SAAS,MAAM,eAA8C;GACjE;GACA;GACA,MAAM,QAAQ;GACd,QAAQ,QAAQ;GAChB;EACF,CAAC;EACD,IAAI,OAAO,SAAS,YAAY,OAAO,IAAI,SAAS,QAAQ;GAC1D,MAAM,WACJ,OAAO,SAAS,YAAY,OAAO,IAAI,SAAS,YAC5C,OAAO,IAAI,SAAS,KAAK,IAAI,IAC7B,sBAAsB,OAAO;GACnC,MAAM,IAAI,MAAM,2CAA2C,SAAS,EAAE;EACxE;EACA,OAAO,OAAO,IAAI;CACpB;AACF;;;;;;;;;;;AA4CA,SAAgB,mBACd,GACyC;CACzC,MAAM,OAAO,aAAa,EAAE,IAAI;CAChC,MAAM,YAAY,KAAK,IAAI,GAAG,KAAK,MAAM,EAAE,aAAa,CAAC,CAAC;CAC1D,OAAO,OAAO,WAAW;EACvB,MAAM,WAA4B,CAAC;EACnC,IAAI,SAAuB,CAAC;EAC5B,IAAI,SAAS;EACb,KAAK,IAAI,QAAQ,GAAG,QAAQ,WAAW,SAAS,GAAG;GACjD,IAAI,OAAO,SAAS;GACpB,UAAU;GACV,MAAM,aAAa,MAAM,EAAE,SAAS,OAAO,MAAM;GACjD,IAAI,WAAW,WAAW,GAAG;GAC7B,SAAS,CAAC;GACV,KAAK,MAAM,KAAK,YAAY;IAC1B,MAAM,IAAI,MAAM,KAAK,CAAC;IACtB,IAAI,EAAE,UAAU,SAAS,KAAK,CAAC;SAC1B,OAAO,KAAK;KAAE,WAAW;KAAG,UAAU,EAAE;KAAU,QAAQ,EAAE;IAAO,CAAC;GAC3E;GACA,IAAI,OAAO,WAAW,GAAG;EAC3B;EACA,OAAO;GAAE;GAAU;GAAQ;EAAO;CACpC;AACF;;;;;;AAOA,SAAgB,gBACd,SAC6D;CAC7D,OAAO,YAAY,eAAiC,OAAO;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;ACpOA,eAAsB,iBAAiB,MAAuD;CAC5F,IAAI,CAAC,oBAAoB,KAAK,IAAI,GAChC,OAAO;EACL,UAAU;EACV,OAAO,iBAAiB,KAAK,KAAK,sBAAsB,qBAAqB,KAAK,IAAI,EAAE;CAC1F;CAEF,IAAI;CACJ,IAAI;EACF,WAAW,MAAM,KAAK,aAAa;CACrC,SAAS,KAAK;EACZ,OAAO;GAAE,UAAU;GAAG,OAAO,4BAA4B,OAAO,GAAG;EAAI;CACzE;CACA,IAAI,CAAC,SAAS,KAAK,OACjB,OAAO;EACL,UAAU;EACV,OAAO,wCAAwC,KAAK,KAAK,iBACvD,OAAO,KAAK,QAAQ,CAAC,CAAC,KAAK,IAAI,KAAK,OACrC;CACH;CAIF,MAAM,SAAS,MAAM,iBAAiB,KAAK,MAA2B,UAAU,EAC9E,GAAI,KAAK,MAAM,EAAE,KAAK,KAAK,IAAI,IAAI,CAAC,EACtC,CAAC;CACD,OAAO;EAAE,UAAU,OAAO,KAAK,IAAI;EAAG;CAAO;AAC/C;;AAGA,SAAgB,oBAAoB,MAAoD;CACtF,MAAM,MAA0C,CAAC;CACjD,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK,GAAG;EACvC,MAAM,IAAI,KAAK;EACf,IAAI,MAAM,UAAU,IAAI,OAAO,KAAK,EAAE;OACjC,IAAI,MAAM,YAAY,IAAI,SAAS,KAAK,EAAE;OAC1C,IAAI,GAAG,WAAW,SAAS,GAAG,IAAI,OAAO,EAAE,MAAM,CAAgB;OACjE,IAAI,GAAG,WAAW,WAAW,GAAG,IAAI,SAAS,EAAE,MAAM,CAAkB;CAC9E;CACA,OAAO;AACT;;AAGA,SAAS,gBAAgB,KAAqC;CAC5D,MAAM,MAAO,KAA+B,WAAW;CAEvD,OADc,OAAO,QAAQ,aAAc,IAAsB,IAAI;AAEvE;AAEA,SAAS,OAAO,KAAsB;CACpC,OAAO,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;AACxD;;AAGA,eAAe,OAAsB;CACnC,MAAM,EAAE,MAAM,WAAW,oBAAoB,QAAQ,KAAK,MAAM,CAAC,CAAC;CAClE,IAAI,CAAC,QAAQ,CAAC,QAAQ;EACpB,QAAQ,OAAO,MACb;WACc,qBAAqB,KAAK,KAAK,EAAE;CAEjD;EACA,QAAQ,KAAK,CAAC;CAChB;CACA,MAAM,EAAE,kBAAkB,MAAM,OAAO;CACvC,MAAM,EAAE,YAAY,MAAM,OAAO;CACjC,MAAM,MAAM,MAAM,iBAAiB;EACjC;EACA,cAAc,YAAY,gBAAgB,MAAM,OAAO,cAAc,QAAQ,MAAM,CAAC,CAAC,CAAC,KAAK;CAC7F,CAAC;CACD,QAAQ,OAAO,MAAM,GAAG,KAAK,UAAU,IAAI,UAAU,EAAE,OAAO,IAAI,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG;CACvF,IAAI,IAAI,OAAO,QAAQ,OAAO,MAAM,GAAG,IAAI,MAAM,GAAG;CACpD,QAAQ,KAAK,IAAI,QAAQ;AAC3B;AAOA,MAAM,gBAAgB,OAAO,YAAY,cAAc,QAAQ,OAAO,KAAK,KAAA;AAC3E,IAAI,iBAAiB,gCAAgC,KAAK,aAAa,GACrE,KAAU"}
@@ -1,6 +1,6 @@
1
1
  import { d as RunAnalystLoopOpts, f as RunAnalystLoopResult } from "./types-CfGKhIuj.js";
2
2
  import { R as Budget } from "./environment-provider-IUGU3epE.js";
3
- import { E as WorktreeFanoutOptions, G as WorktreePatchArtifact, T as AuthoredHarness, no as WinnerStrategy } from "./index-CeawCSEg.js";
3
+ import { E as WorktreeFanoutOptions, G as WorktreePatchArtifact, T as AuthoredHarness, no as WinnerStrategy } from "./index-B3wAV1SJ.js";
4
4
  import { n as FactCandidate, t as CreateKbGateOptions } from "./kb-gate-C8z2juK8.js";
5
5
  //#region src/loop-runner.d.ts
6
6
  /** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */
@@ -159,4 +159,4 @@ declare function parseLoopRunnerArgv(argv: string[]): {
159
159
  };
160
160
  //#endregion
161
161
  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 };
162
- //# sourceMappingURL=loop-runner-bin-BbYG9CeA.d.ts.map
162
+ //# sourceMappingURL=loop-runner-bin-Dw9_OZfu.d.ts.map
@@ -1,2 +1,2 @@
1
- import { i as runLoopRunnerCli, n as LoopRunnerCliResult, r as parseLoopRunnerArgv, t as LoopRunnerCliArgs } from "./loop-runner-bin-BbYG9CeA.js";
1
+ import { i as runLoopRunnerCli, n as LoopRunnerCliResult, r as parseLoopRunnerArgv, t as LoopRunnerCliArgs } from "./loop-runner-bin-Dw9_OZfu.js";
2
2
  export { LoopRunnerCliArgs, LoopRunnerCliResult, parseLoopRunnerArgv, runLoopRunnerCli };
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { n as runLoopRunnerCli, t as parseLoopRunnerArgv } from "./loop-runner-bin-CvdKZkE4.js";
2
+ import { n as runLoopRunnerCli, t as parseLoopRunnerArgv } from "./loop-runner-bin-BHELvjdO.js";
3
3
  export { parseLoopRunnerArgv, runLoopRunnerCli };
package/dist/loops.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { C as MountRecorder, D as SelectionReceipt, E as SandboxClient, O as ValidationCtx, S as MountManifestEntry, T as RunProvenance, _ as LoopTeardownFailedPayload, a as Iteration, b as LoopTraceEvent, c as LoopIterationDispatchPayload, d as LoopLineageOptions, f as LoopPlanDescription, g as LoopStartedPayload, h as LoopSandboxPlacement, i as ExecCtx, k as Validator, l as LoopIterationEndedPayload, m as LoopResult, n as DefaultVerdict, o as LoopDecisionPayload, p as LoopPlanPayload, r as Driver, s as LoopEndedPayload, t as AgentRunSpec, u as LoopIterationStartedPayload, v as LoopTokenUsage, w as OutputAdapter, x as LoopWinner, y as LoopTraceEmitter } from "./types-BevOjfTY.js";
2
2
  import { $ as RootSignal, A as providerAsSandboxClient, At as createPushTraceSource, B as Executor, Bt as readWorkerProgress, C as ProviderAsSandboxClientOptions, Ct as timerAt, D as WorkspaceRequest, Dt as SessionTraceBox, E as SandboxClientProviderOptions, Et as SessionMessageLike, F as createTangleSandboxExactProcessProvider, Ft as DEFAULT_STALL_AFTER_MS, G as Handle, H as ExecutorFactory, I as Agent, It as ExecutorProgress, J as NodeStatus, K as NodeId, L as AgentSpec, Lt as ScopeProgressInput, M as sandboxClientAsProvider, Mt as sandboxSessionTraceSource, N as CreateTangleSandboxExactProcessProviderOptions, Nt as ActivityLog, O as createAgentEnvironmentProviderRegistry, Ot as ToolStepInput, P as SandboxControlClient, Pt as ActivityNote, Q as RootHandle, R as Budget, Rt as WorkerProgress, S as PlacementInfo, St as pollFor, T as ResourceRequest, Tt as waitUntil, U as ExecutorRegistry, V as ExecutorContext, W as ExecutorResult, X as ResultBlobStore, Y as Restart, Z as ResumedWork, _ as CheckpointRequest, _t as WaitProbeRegistry, a as AgentEnvironmentProviderRef, at as SpawnOpts, b as ExecResult, bt as createWaitProbes, c as AgentEnvironmentStatus, ct as Supervisor, d as AgentSession, dt as UsageEvent, et as Runtime, f as AgentSessionRef, ft as WaitOpts, g as CheckpointRef, gt as WaitProbe, h as AgentTurnResult, ht as WaitOutcome, i as AgentEnvironmentProvider, it as SpawnJournal, j as resolveAgentEnvironmentProvider, jt as decodeToolPart, k as providerAsExecutor, kt as TraceSource, l as AgentEnvironmentSummary, lt as SupervisorOpts, m as AgentTurnInput, mt as PendingWait, n as AgentEnvironmentCapabilities, nt as Settled, o as AgentEnvironmentProviderRegistry, ot as Spend, p as AgentSessionStatus, pt as WidenGate, q as NodeSnapshot, r as AgentEnvironmentEvent, rt as SpawnEvent, s as AgentEnvironmentQuery, st as SupervisedResult, t as AgentEnvironment, tt as Scope, u as AgentProfileRef, ut as TreeView, v as CreateAgentEnvironmentInput, vt as WaitRejection, w as ProviderExecutorOptions, wt as validateWaitSpec, x as ForkRequest, xt as isWaitOutcome, y as ExecRequest, yt as WaitSpec, zt as createActivityLog } from "./environment-provider-IUGU3epE.js";
3
- import { $ as effectiveConcurrency, $a as WidenDecision, $i as mcpSecretEnvMetadataKey, $n as connectStdioMcp, $o as auditIntent, $r as createScopeAnalyst, $s as createExecutor, $t as StructuralRolloutMessage, $u as FileSpawnJournal, A as createSupervisor, Aa as FlatWidenGate, Ai as SurfaceScore, An as ReproductionCheck, Ao as completionAuthorizes, Ar as promotionGate, At as sampleFromSettled, B as createFileRunContext, Ba as RenderCorpusToInstructions, Bi as LoopDispatchOptions, Bn as strategyAuthorContract, Bo as PairwiseOptions, Br as renderCorpusToInstructions, Bt as assessAuthoredProfile, C as failuresAnalyst, Ca as EqualKOnCost, Ci as ShotSpec, Cn as ChampionPolicy, Co as LeaderboardScore, Cr as probeSandboxCapabilities, Ct as StopRule, D as worktreeFanout, Da as FanoutOptions, Dc as gateOnDeliverable, Di as StrategyMessage, Dn as EvolutionCandidate, Do as CompletionEvidence, Dr as resolveSandboxClient, Dt as createProgressTracker, E as WorktreeFanoutOptions, Ea as Fanout, Ec as DeliverableSpec, Ei as StrategyCtx, En as EvolutionBandInfo, Eo as CompletionAnalyst, Er as ResolveSandboxClientOptions, Et as anyOf, F as createScope, Fa as PanelJudge, Fi as refine, Fn as selectChampion, Fo as GroupOf, Fr as registerShape, Ft as spendFromUsageEvents, G as WorktreePatchArtifact, Ga as SteerContext, Gi as RunLoopOptions, Gn as dumbDriver, Go as pairwiseSignificance, Gr as pipeline, Gs as CliWorktreeBridgeSeam, Gt as CheckExecChannel, Gu as BusStats, H as PatchDeliverableOptions, Ha as ScopeAnalyst, Hi as loopCampaignDispatch, Hn as DumbDriverOptions, Ho as ProfileKeyOf, Hr as flatWidenGate, Ht as defaultProfileRichnessThresholds, I as settledToIteration, Ia as PanelSpec, Ii as runAgentic, In as AuthorStrategyOptions, Io as Interval, Ir as definePersona, It as AuthoredProfile, J as ConcurrencyCaps, Ja as TrajectoryReportFn, Ji as runLoop, Jn as MaterializeLocalMcpOptions, Jo as renderLeaderboardSvg, Jr as widen, Js as ProviderSeam, Jt as CheckRunner, Ju as createEventBus, K as createWorktreeCliExecutor, Ka as TrajectoryNode, Ki as defaultSelectWinner, Kn as naiveDriver, Ko as renderLeaderboardHtml, Kr as selectValidWinner, Ks as CliWorktreeSeam, Kt as CheckOutcome, Ku as EventBus, L as InMemoryRunContext, La as PanelVerdict, Li as sample, Ln as AuthoredStrategy, Lo as Leaderboard, Lr as runPersonified, Lt as ProfileRichness, M as supervise, Ma as LoopUntilSpec, Mi as breadthStrategy, Mn as discriminatingMeans, Mo as sentinelCompletion, Mr as trajectoryReport, Mt as BudgetReadout, N as workerFromBackend, Na as LoopUntilState, Ni as defineStrategy, Nn as pickChampion, No as stopSentinel, Nr as builtinShapes, Nt as ReservationTicket, O as TrajectoryAnalysis, Oa as FanoutSynthesis, Oi as StrategyResult, On as EvolutionGeneration, Oo as CompletionPolicy, Or as PromotionGateOptions, Ot as noProgressFor, P as ScopeArgs, Pa as Panel, Pi as depthStrategy, Pn as runStrategyEvolution, Po as AxisScoresOf, Pr as createShapeRegistry, Pt as createBudgetPool, Q as RollingDispatchOptions, Qa as Widen, Qi as envKeyProvider, Qn as StdioMcpServerSpec, Qo as IntentAudit, Qr as buildSteerContext, Qs as cliWorktreeExecutor, Qt as StructuralRolloutConfig, Qu as FileResultBlobStore, R as InMemoryRunContextOptions, Ra as Pipeline, Ri as sampleThenRefine, Rn as assertStrategyContract, Ro as LeaderboardOptions, Rr as FileCorpus, Rt as ProfileRichnessThresholds, S as SurfaceWorkerOut, Sa as EqualKArm, Si as ShotPersona, Sn as ChampionPick, So as LeaderboardScenario, Sr as SandboxCapabilities, St as StopDecision, T as AuthoredHarness, Ta as EqualKVerdict, Ti as StrategyArtifacts, Tn as EvolutionAuthor, To as defineLeaderboard, Tr as acquireSandbox, Tt as allWorkersStalled, U as patchDelivered, Ua as ScopeAnalyzeInput, Ui as loopDispatch, Un as NaiveDriverOptions, Uo as ScoreOf, Ur as loopUntil, Us as BridgeSeam, Ut as profileRichnessFinding, Uu as BusEvent, V as createInMemoryRunContext, Va as RenderCorpusToInstructionsOptions, Vi as LoopOptionsForDispatch, Vn as ApplyContinuation, Vo as PairwiseVerdict, Vr as fanout, Vt as authoredWorker, W as WorktreeCliExecutorOptions, Wa as ScopeWidenGate, Wi as RunAgentRoundsOptions, Wn as SteeringDecision, Wo as leaderboard, Wr as panel, Ws as CliSeam, Wt as supervisorInstructions, Wu as BusRecord, X as DispatchStopReason, Xa as Verify, Xi as localSandboxClient, Xn as McpToolDescriptor, Xo as AuditIntentInput, Xr as RegistryAnalyzeProjection, Xs as RouterToolsSeam, Xt as CheckSourceCtx, Xu as defaultToolDetectors, Y as DispatchReport, Ya as TrajectoryReportOptions, Yi as LocalSandboxClientOptions, Yn as McpSpawnFault, Yo as renderPairwiseMarkdown, Yr as CreateScopeAnalystOptions, Ys as RouterSeam, Yt as CheckSource, Yu as WatchTraceOptions, Z as DispatchUnit, Za as VerifySpec, Zi as KeyProvider, Zn as StdioMcpConnection, Zo as AuditIntentOptions, Zr as assertTraceDerivedFindings, Zs as SandboxSeam, Zt as RepairStop, Zu as watchTrace, _ as VerifierEnvironmentOptions, _a as AssertTraceDerivedFindings, _i as AgenticTask, _n as AgentTurnUsage, _o as LeaderboardBenchTask, _r as extractLlmCallEvent, _t as PlateauOptions, a as SandboxInstance, aa as InProcessSandboxClientOptions, ac as createSteerableSandboxSession, ad as replaySpawnTree, ai as BenchmarkCell, an as composeCheckSources, ao as LoopShape, ar as SandboxRun, as as areaUnderCurve, at as delegate, b as SuperviseSurfaceResult, ba as CorpusFilter, bi as CorpusReadbackOptions, bn as collectAgentTurn, bo as LeaderboardIterationInfo, br as sumSandboxUsage, bs as MakeWorkerAgent, bt as ProgressTrackerOptions, c as GitWorkspaceOptions, ca as HarvestFailure, cc as createInbox, ci as BenchmarkReport, cn as filterAuthoredAsserts, co as PersonaContext, cr as openSandboxRun, cs as renderAnytimeTable, ct as SupervisorProfile, d as WorkspaceCommit, da as Observation, dc as piExecutor, di as Environment, dn as resolveEntrySymbol, do as RunPersonifiedOptions, dr as SandboxLineage, ds as WaterfallSpan, dt as serveCoordinationMcp, ea as resolveSecretEnv, ec as createExecutorRegistry, ed as InMemoryResultBlobStore, ei as registryScopeAnalyst, en as StructuralRolloutPolicy, eo as WidenLineage, er as materializeLocalMcp, es as defaultAuditorInstruction, et as freeSlots, f as WorkspaceRun, fa as ObserveInput, fc as piSeamKey, fi as printBenchmarkReport, fn as sandboxCheckRunner, fo as ShapeBudget, fr as SandboxLineageHandle, fs as createWaterfallCollector, ft as DriverAgentOptions, g as runInWorkspace, ga as renderReport, gc as WorktreeProfileMaterializationReceipt, gi as AgenticSurface, gn as AgentTurnBackend, go as LeaderboardBenchScore, gr as createSandboxToolPartState, gt as NoProgressForOptions, h as localShell, ha as observe, hc as WorktreeHarnessResult, hi as AgenticRunResult, hn as visibleCheckScore, ho as DefinedLeaderboard, hr as SandboxToolPartState, hs as CoordinationEvent, ht as AllWorkersStalledOptions, i as SandboxEvent, ia as InProcessPromptCtx, ic as SteerableSandboxSession, id as pendingWaits, ii as sanitizeMcpToolSchema, in as compareCheckOutcomes, io as DefinePersonaInput, ir as OpenSandboxRunPromptOptions, is as anytimeReport, it as defaultDelegateBudget, j as SuperviseOptions, ja as LoopUntil, ji as adaptiveRefine, jn as StrategyEvolutionConfig, jo as deterministicCompletion, jr as equalKOnCost, jt as BudgetPool, k as analyzeTrace, ka as FanoutWinnerSelector, ki as StrategyShotResult, kn as EvolutionReport, ko as CompletionVerdict, kr as PromotionVerdict, kt as plateau, l as Shell, la as HarvestReport, lc as PI_RUNTIME, li as BenchmarkStrategySummary, ln as modelAuthoredChecks, lo as PersonaExecutors, lr as CheckpointCapableBox, ls as WaterfallCollector, lt as supervisorAgent, m as jjWorkspace, ma as defaultAnalystInstruction, mc as WorktreeCommandResult, mi as AgenticOptions, mn as structuralRollout, mo as ShapeRegistry, mr as createSandboxLineage, ms as AnalystRegistry, mt as finalizeBestDelivered, n as AnalystFinding, na as inlineSandboxClient, nc as SandboxSteeringOptions, nd as contentAddress, ni as McpEnvironmentOptions, nn as VisibleCheck, no as WinnerStrategy, nr as OpenSandboxRunBeforeStartContext, ns as AnytimeStrategySummary, nt as rollingDispatch, o as computeFindingId, oa as inProcessSandboxClient, oc as Inbox, oi as BenchmarkConfig, on as defaultExtractCandidate, oo as Outcome, or as SandboxRunAbortError, os as bestSoFar, ot as DriveHarness, p as gitWorkspace, pa as ObserveOptions, pc as WorktreeCheckRunner, pi as runBenchmark, pn as selectBestIndex, po as ShapeContext, pr as SessionCapableBox, ps as AnalystFindingEvent, pt as driverAgent, q as assertModelAllowed, qa as TrajectoryReport, qi as runAgentRounds, qn as LocalMcpMaterialization, qo as renderLeaderboardMarkdown, qr as verify, qs as ExecutorConfig, qt as CheckRunContext, qu as PublishOptions, r as CreateSandboxOptions, ra as InProcessOnPrompt, rc as SteerableSandboxArgs, rd as materializeTreeView, ri as createMcpEnvironment, rn as canDisplace, ro as DefinePersona, rr as OpenSandboxRunOptions, rs as AnytimeTaskCurve, rt as DelegateOptions, s as makeFinding, sa as HarvestCorpusOptions, sc as InboxMessage, si as BenchmarkLift, sn as defaultStructuralRolloutPolicy, so as Persona, sr as TurnResult, ss as plateauLength, st as SupervisorAgentDeps, t as AgentProfile, ta as secretEnvOfMcpServer, tc as DEFAULT_SANDBOX_STEERING_MAX_TURNS, td as InMemorySpawnJournal, ti as McpEndpoint, tn as StructuralRolloutResult, to as WidenSpec, tr as Deliverable, ts as AnytimeReport, tt as queueOf, u as Workspace, ua as harvestCorpus, uc as PiSeam, ui as BenchmarkTaskRow, un as officialChecksFromMeta, uo as RunPersonified, ur as ForkCapableBox, us as WaterfallReport, ut as CoordinationMcpHandle, v as createVerifierEnvironment, va as CombinatorShape, vi as AgenticTool, vn as CollectedAgentTurn, vo as LeaderboardBenchmarkAdapter, vr as mapSandboxEvent, vs as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, vt as ProgressSample, w as superviseSurface, wa as EqualKOnCostOptions, wi as Strategy, wn as EvolutionArchiveNode, wo as LeaderboardSpec, wr as AcquireOptions, wt as allOf, x as SurfaceWorkerConfig, xa as CorpusRecord, xi as RunAgenticOptions, xn as streamAgentTurn, xo as LeaderboardRunContext, xr as CriuCapableClient, xt as ProgressView, y as SuperviseSurfaceOptions, ya as Corpus, yi as ArtifactHandle, yn as StreamAgentTurnOptions, yo as LeaderboardFlagSpec, yr as mapSandboxToolEvent, ys as DownMessageEvent, yt as ProgressTracker, z as RunContext, za as PipelineStage, zi as LoopCampaignDispatchOptions, zn as authorStrategy, zo as LeaderboardRow, zr as InMemoryCorpus, zt as asAuthoredProfile } from "./index-CeawCSEg.js";
3
+ import { $ as effectiveConcurrency, $a as WidenDecision, $i as mcpSecretEnvMetadataKey, $n as connectStdioMcp, $o as auditIntent, $r as createScopeAnalyst, $s as createExecutor, $t as StructuralRolloutMessage, $u as FileSpawnJournal, A as createSupervisor, Aa as FlatWidenGate, Ai as SurfaceScore, An as ReproductionCheck, Ao as completionAuthorizes, Ar as promotionGate, At as sampleFromSettled, B as createFileRunContext, Ba as RenderCorpusToInstructions, Bi as LoopDispatchOptions, Bn as strategyAuthorContract, Bo as PairwiseOptions, Br as renderCorpusToInstructions, Bt as assessAuthoredProfile, C as failuresAnalyst, Ca as EqualKOnCost, Ci as ShotSpec, Cn as ChampionPolicy, Co as LeaderboardScore, Cr as probeSandboxCapabilities, Ct as StopRule, D as worktreeFanout, Da as FanoutOptions, Dc as gateOnDeliverable, Di as StrategyMessage, Dn as EvolutionCandidate, Do as CompletionEvidence, Dr as resolveSandboxClient, Dt as createProgressTracker, E as WorktreeFanoutOptions, Ea as Fanout, Ec as DeliverableSpec, Ei as StrategyCtx, En as EvolutionBandInfo, Eo as CompletionAnalyst, Er as ResolveSandboxClientOptions, Et as anyOf, F as createScope, Fa as PanelJudge, Fi as refine, Fn as selectChampion, Fo as GroupOf, Fr as registerShape, Ft as spendFromUsageEvents, G as WorktreePatchArtifact, Ga as SteerContext, Gi as RunLoopOptions, Gn as dumbDriver, Go as pairwiseSignificance, Gr as pipeline, Gs as CliWorktreeBridgeSeam, Gt as CheckExecChannel, Gu as BusStats, H as PatchDeliverableOptions, Ha as ScopeAnalyst, Hi as loopCampaignDispatch, Hn as DumbDriverOptions, Ho as ProfileKeyOf, Hr as flatWidenGate, Ht as defaultProfileRichnessThresholds, I as settledToIteration, Ia as PanelSpec, Ii as runAgentic, In as AuthorStrategyOptions, Io as Interval, Ir as definePersona, It as AuthoredProfile, J as ConcurrencyCaps, Ja as TrajectoryReportFn, Ji as runLoop, Jn as MaterializeLocalMcpOptions, Jo as renderLeaderboardSvg, Jr as widen, Js as ProviderSeam, Jt as CheckRunner, Ju as createEventBus, K as createWorktreeCliExecutor, Ka as TrajectoryNode, Ki as defaultSelectWinner, Kn as naiveDriver, Ko as renderLeaderboardHtml, Kr as selectValidWinner, Ks as CliWorktreeSeam, Kt as CheckOutcome, Ku as EventBus, L as InMemoryRunContext, La as PanelVerdict, Li as sample, Ln as AuthoredStrategy, Lo as Leaderboard, Lr as runPersonified, Lt as ProfileRichness, M as supervise, Ma as LoopUntilSpec, Mi as breadthStrategy, Mn as discriminatingMeans, Mo as sentinelCompletion, Mr as trajectoryReport, Mt as BudgetReadout, N as workerFromBackend, Na as LoopUntilState, Ni as defineStrategy, Nn as pickChampion, No as stopSentinel, Nr as builtinShapes, Nt as ReservationTicket, O as TrajectoryAnalysis, Oa as FanoutSynthesis, Oi as StrategyResult, On as EvolutionGeneration, Oo as CompletionPolicy, Or as PromotionGateOptions, Ot as noProgressFor, P as ScopeArgs, Pa as Panel, Pi as depthStrategy, Pn as runStrategyEvolution, Po as AxisScoresOf, Pr as createShapeRegistry, Pt as createBudgetPool, Q as RollingDispatchOptions, Qa as Widen, Qi as envKeyProvider, Qn as StdioMcpServerSpec, Qo as IntentAudit, Qr as buildSteerContext, Qs as cliWorktreeExecutor, Qt as StructuralRolloutConfig, Qu as FileResultBlobStore, R as InMemoryRunContextOptions, Ra as Pipeline, Ri as sampleThenRefine, Rn as assertStrategyContract, Ro as LeaderboardOptions, Rr as FileCorpus, Rt as ProfileRichnessThresholds, S as SurfaceWorkerOut, Sa as EqualKArm, Si as ShotPersona, Sn as ChampionPick, So as LeaderboardScenario, Sr as SandboxCapabilities, St as StopDecision, T as AuthoredHarness, Ta as EqualKVerdict, Ti as StrategyArtifacts, Tn as EvolutionAuthor, To as defineLeaderboard, Tr as acquireSandbox, Tt as allWorkersStalled, U as patchDelivered, Ua as ScopeAnalyzeInput, Ui as loopDispatch, Un as NaiveDriverOptions, Uo as ScoreOf, Ur as loopUntil, Us as BridgeSeam, Ut as profileRichnessFinding, Uu as BusEvent, V as createInMemoryRunContext, Va as RenderCorpusToInstructionsOptions, Vi as LoopOptionsForDispatch, Vn as ApplyContinuation, Vo as PairwiseVerdict, Vr as fanout, Vt as authoredWorker, W as WorktreeCliExecutorOptions, Wa as ScopeWidenGate, Wi as RunAgentRoundsOptions, Wn as SteeringDecision, Wo as leaderboard, Wr as panel, Ws as CliSeam, Wt as supervisorInstructions, Wu as BusRecord, X as DispatchStopReason, Xa as Verify, Xi as localSandboxClient, Xn as McpToolDescriptor, Xo as AuditIntentInput, Xr as RegistryAnalyzeProjection, Xs as RouterToolsSeam, Xt as CheckSourceCtx, Xu as defaultToolDetectors, Y as DispatchReport, Ya as TrajectoryReportOptions, Yi as LocalSandboxClientOptions, Yn as McpSpawnFault, Yo as renderPairwiseMarkdown, Yr as CreateScopeAnalystOptions, Ys as RouterSeam, Yt as CheckSource, Yu as WatchTraceOptions, Z as DispatchUnit, Za as VerifySpec, Zi as KeyProvider, Zn as StdioMcpConnection, Zo as AuditIntentOptions, Zr as assertTraceDerivedFindings, Zs as SandboxSeam, Zt as RepairStop, Zu as watchTrace, _ as VerifierEnvironmentOptions, _a as AssertTraceDerivedFindings, _i as AgenticTask, _n as AgentTurnUsage, _o as LeaderboardBenchTask, _r as extractLlmCallEvent, _t as PlateauOptions, a as SandboxInstance, aa as InProcessSandboxClientOptions, ac as createSteerableSandboxSession, ad as replaySpawnTree, ai as BenchmarkCell, an as composeCheckSources, ao as LoopShape, ar as SandboxRun, as as areaUnderCurve, at as delegate, b as SuperviseSurfaceResult, ba as CorpusFilter, bi as CorpusReadbackOptions, bn as collectAgentTurn, bo as LeaderboardIterationInfo, br as sumSandboxUsage, bs as MakeWorkerAgent, bt as ProgressTrackerOptions, c as GitWorkspaceOptions, ca as HarvestFailure, cc as createInbox, ci as BenchmarkReport, cn as filterAuthoredAsserts, co as PersonaContext, cr as openSandboxRun, cs as renderAnytimeTable, ct as SupervisorProfile, d as WorkspaceCommit, da as Observation, dc as piExecutor, di as Environment, dn as resolveEntrySymbol, do as RunPersonifiedOptions, dr as SandboxLineage, ds as WaterfallSpan, dt as serveCoordinationMcp, ea as resolveSecretEnv, ec as createExecutorRegistry, ed as InMemoryResultBlobStore, ei as registryScopeAnalyst, en as StructuralRolloutPolicy, eo as WidenLineage, er as materializeLocalMcp, es as defaultAuditorInstruction, et as freeSlots, f as WorkspaceRun, fa as ObserveInput, fc as piSeamKey, fi as printBenchmarkReport, fn as sandboxCheckRunner, fo as ShapeBudget, fr as SandboxLineageHandle, fs as createWaterfallCollector, ft as DriverAgentOptions, g as runInWorkspace, ga as renderReport, gc as WorktreeProfileMaterializationReceipt, gi as AgenticSurface, gn as AgentTurnBackend, go as LeaderboardBenchScore, gr as createSandboxToolPartState, gt as NoProgressForOptions, h as localShell, ha as observe, hc as WorktreeHarnessResult, hi as AgenticRunResult, hn as visibleCheckScore, ho as DefinedLeaderboard, hr as SandboxToolPartState, hs as CoordinationEvent, ht as AllWorkersStalledOptions, i as SandboxEvent, ia as InProcessPromptCtx, ic as SteerableSandboxSession, id as pendingWaits, ii as sanitizeMcpToolSchema, in as compareCheckOutcomes, io as DefinePersonaInput, ir as OpenSandboxRunPromptOptions, is as anytimeReport, it as defaultDelegateBudget, j as SuperviseOptions, ja as LoopUntil, ji as adaptiveRefine, jn as StrategyEvolutionConfig, jo as deterministicCompletion, jr as equalKOnCost, jt as BudgetPool, k as analyzeTrace, ka as FanoutWinnerSelector, ki as StrategyShotResult, kn as EvolutionReport, ko as CompletionVerdict, kr as PromotionVerdict, kt as plateau, l as Shell, la as HarvestReport, lc as PI_RUNTIME, li as BenchmarkStrategySummary, ln as modelAuthoredChecks, lo as PersonaExecutors, lr as CheckpointCapableBox, ls as WaterfallCollector, lt as supervisorAgent, m as jjWorkspace, ma as defaultAnalystInstruction, mc as WorktreeCommandResult, mi as AgenticOptions, mn as structuralRollout, mo as ShapeRegistry, mr as createSandboxLineage, ms as AnalystRegistry, mt as finalizeBestDelivered, n as AnalystFinding, na as inlineSandboxClient, nc as SandboxSteeringOptions, nd as contentAddress, ni as McpEnvironmentOptions, nn as VisibleCheck, no as WinnerStrategy, nr as OpenSandboxRunBeforeStartContext, ns as AnytimeStrategySummary, nt as rollingDispatch, o as computeFindingId, oa as inProcessSandboxClient, oc as Inbox, oi as BenchmarkConfig, on as defaultExtractCandidate, oo as Outcome, or as SandboxRunAbortError, os as bestSoFar, ot as DriveHarness, p as gitWorkspace, pa as ObserveOptions, pc as WorktreeCheckRunner, pi as runBenchmark, pn as selectBestIndex, po as ShapeContext, pr as SessionCapableBox, ps as AnalystFindingEvent, pt as driverAgent, q as assertModelAllowed, qa as TrajectoryReport, qi as runAgentRounds, qn as LocalMcpMaterialization, qo as renderLeaderboardMarkdown, qr as verify, qs as ExecutorConfig, qt as CheckRunContext, qu as PublishOptions, r as CreateSandboxOptions, ra as InProcessOnPrompt, rc as SteerableSandboxArgs, rd as materializeTreeView, ri as createMcpEnvironment, rn as canDisplace, ro as DefinePersona, rr as OpenSandboxRunOptions, rs as AnytimeTaskCurve, rt as DelegateOptions, s as makeFinding, sa as HarvestCorpusOptions, sc as InboxMessage, si as BenchmarkLift, sn as defaultStructuralRolloutPolicy, so as Persona, sr as TurnResult, ss as plateauLength, st as SupervisorAgentDeps, t as AgentProfile, ta as secretEnvOfMcpServer, tc as DEFAULT_SANDBOX_STEERING_MAX_TURNS, td as InMemorySpawnJournal, ti as McpEndpoint, tn as StructuralRolloutResult, to as WidenSpec, tr as Deliverable, ts as AnytimeReport, tt as queueOf, u as Workspace, ua as harvestCorpus, uc as PiSeam, ui as BenchmarkTaskRow, un as officialChecksFromMeta, uo as RunPersonified, ur as ForkCapableBox, us as WaterfallReport, ut as CoordinationMcpHandle, v as createVerifierEnvironment, va as CombinatorShape, vi as AgenticTool, vn as CollectedAgentTurn, vo as LeaderboardBenchmarkAdapter, vr as mapSandboxEvent, vs as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, vt as ProgressSample, w as superviseSurface, wa as EqualKOnCostOptions, wi as Strategy, wn as EvolutionArchiveNode, wo as LeaderboardSpec, wr as AcquireOptions, wt as allOf, x as SurfaceWorkerConfig, xa as CorpusRecord, xi as RunAgenticOptions, xn as streamAgentTurn, xo as LeaderboardRunContext, xr as CriuCapableClient, xt as ProgressView, y as SuperviseSurfaceOptions, ya as Corpus, yi as ArtifactHandle, yn as StreamAgentTurnOptions, yo as LeaderboardFlagSpec, yr as mapSandboxToolEvent, ys as DownMessageEvent, yt as ProgressTracker, z as RunContext, za as PipelineStage, zi as LoopCampaignDispatchOptions, zn as authorStrategy, zo as LeaderboardRow, zr as InMemoryCorpus, zt as asAuthoredProfile } from "./index-B3wAV1SJ.js";
4
4
  import { S as ToolLoopMessageRecord, _ as routerChatWithUsage, b as ToolLoopCompaction, d as RouterConfig, f as RouterToolCall, g as routerChatWithTools, h as routerBrain, l as RouterChatResult, m as ToolSpec, p as RouterToolLoopResult, u as RouterChatToolsResult, v as routerToolLoop, x as ToolLoopCompactionOptions, y as ToolLoopChat } from "./local-harness-Dh8PJ0ot.js";
5
5
  export { 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 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 AnalystFinding, type AnalystFindingEvent, type AnalystRegistry, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, type ArtifactHandle, type AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredHarness, type AuthoredProfile, type AuthoredStrategy, type AxisScoresOf, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, type BridgeSeam, type Budget, type BudgetPool, type BudgetReadout, type BusEvent, type BusRecord, type BusStats, type ChampionPick, type ChampionPolicy, type CheckExecChannel, type CheckOutcome, type CheckRunContext, type CheckRunner, type CheckSource, type CheckSourceCtx, type CheckpointCapableBox, type CheckpointRef, type CheckpointRequest, type CliSeam, type CliWorktreeBridgeSeam, type CliWorktreeSeam, type CollectedAgentTurn, type CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, type CoordinationEvent, type CoordinationMcpHandle, type Corpus, type CorpusFilter, type CorpusReadbackOptions, type CorpusRecord, type CreateAgentEnvironmentInput, type CreateSandboxOptions, type CreateScopeAnalystOptions, type CreateTangleSandboxExactProcessProviderOptions, type CriuCapableClient, DEFAULT_AWAIT_EVENT_TIMEOUT_MS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_STALL_AFTER_MS, type DefaultVerdict, type DefinePersona, type DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, type DeliverableSpec, type DispatchReport, type DispatchStopReason, type DispatchUnit, type DownMessageEvent, type DriveHarness, type Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, type EqualKArm, type EqualKOnCost, type EqualKOnCostOptions, type EqualKVerdict, type EventBus, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, type ExecCtx, type ExecRequest, type ExecResult, type Executor, type ExecutorConfig, type ExecutorContext, type ExecutorFactory, type ExecutorProgress, type ExecutorRegistry, type ExecutorResult, type Fanout, type FanoutOptions, type FanoutSynthesis, type FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, type FlatWidenGate, type ForkCapableBox, type ForkRequest, type GitWorkspaceOptions, type GroupOf, type Handle, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, type Interval, 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 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 McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, type MountManifestEntry, type MountRecorder, type NaiveDriverOptions, type NoProgressForOptions, type NodeId, type NodeSnapshot, type NodeStatus, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, type Outcome, type OutputAdapter, PI_RUNTIME, type PairwiseOptions, type PairwiseVerdict, type Panel, type PanelJudge, type PanelSpec, type PanelVerdict, type PatchDeliverableOptions, type PendingWait, type Persona, type PersonaContext, type PersonaExecutors, type PiSeam, type Pipeline, type PipelineStage, type PlacementInfo, type PlateauOptions, type ProfileKeyOf, type ProfileRichness, type ProfileRichnessThresholds, type ProgressSample, type ProgressTracker, type ProgressTrackerOptions, type ProgressView, type PromotionGateOptions, type PromotionVerdict, type ProviderAsSandboxClientOptions, type ProviderExecutorOptions, type ProviderSeam, type PublishOptions, type RegistryAnalyzeProjection, type RenderCorpusToInstructions, type RenderCorpusToInstructionsOptions, type RepairStop, type ReproductionCheck, type ReservationTicket, type ResolveSandboxClientOptions, type ResourceRequest, type Restart, type ResultBlobStore, type ResumedWork, type RollingDispatchOptions, type RootHandle, type RootSignal, type RouterChatResult, type RouterChatToolsResult, type RouterConfig, type RouterSeam, type RouterToolCall, type RouterToolLoopResult, type RouterToolsSeam, type RunAgentRoundsOptions, type RunAgenticOptions, type RunContext, type RunLoopOptions, type RunPersonified, type RunPersonifiedOptions, type RunProvenance, type Runtime, type SandboxCapabilities, type SandboxClient, type SandboxClientProviderOptions, type SandboxControlClient, type SandboxEvent, type SandboxInstance, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, type SandboxSeam, type SandboxSteeringOptions, type SandboxToolPartState, 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 ShotPersona, type ShotSpec, type SpawnEvent, type SpawnJournal, type SpawnOpts, type Spend, type StdioMcpConnection, type StdioMcpServerSpec, type SteerContext, type SteerableSandboxArgs, type SteerableSandboxSession, type SteeringDecision, 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 SuperviseOptions, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, type SupervisedResult, type Supervisor, type SupervisorAgentDeps, type SupervisorOpts, type SupervisorProfile, type SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, type ToolLoopChat, type ToolLoopCompaction, type ToolLoopCompactionOptions, type ToolLoopMessageRecord, type ToolSpec, type ToolStepInput, type TraceSource, type TrajectoryAnalysis, type TrajectoryNode, type TrajectoryReport, type TrajectoryReportFn, type TrajectoryReportOptions, type TreeView, type TurnResult, type UsageEvent, type ValidationCtx, type Validator, type VerifierEnvironmentOptions, type Verify, type VerifySpec, type VisibleCheck, type WaitOpts, type WaitOutcome, type WaitProbe, type WaitProbeRegistry, type WaitRejection, type WaitSpec, type WatchTraceOptions, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, type Widen, type WidenDecision, type WidenGate, type WidenLineage, type WidenSpec, type WinnerStrategy, type WorkerProgress, type Workspace, type WorkspaceCommit, type WorkspaceRequest, type WorkspaceRun, type WorktreeCheckRunner, type WorktreeCliExecutorOptions, type WorktreeCommandResult, type WorktreeFanoutOptions, type WorktreeHarnessResult, type WorktreePatchArtifact, type WorktreeProfileMaterializationReceipt, acquireSandbox, adaptiveRefine, allOf, allWorkersStalled, analyzeTrace, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, bestSoFar, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cliWorktreeExecutor, collectAgentTurn, compareCheckOutcomes, completionAuthorizes, composeCheckSources, computeFindingId, connectStdioMcp, contentAddress, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createEventBus, createExecutor, createExecutorRegistry, createFileRunContext, createInMemoryRunContext, createInbox, createMcpEnvironment, createProgressTracker, createPushTraceSource, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSteerableSandboxSession, createSupervisor, createTangleSandboxExactProcessProvider, createVerifierEnvironment, createWaitProbes, createWaterfallCollector, createWorktreeCliExecutor, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defineLeaderboard, definePersona, defineStrategy, delegate, depthStrategy, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, finalizeBestDelivered, flatWidenGate, freeSlots, gateOnDeliverable, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, isWaitOutcome, jjWorkspace, leaderboard, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveDriver, noProgressFor, observe, officialChecksFromMeta, openSandboxRun, pairwiseSignificance, panel, patchDelivered, pendingWaits, piExecutor, piSeamKey, pickChampion, pipeline, plateau, plateauLength, pollFor, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, providerAsExecutor, providerAsSandboxClient, queueOf, readWorkerProgress, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveSandboxClient, resolveSecretEnv, rollingDispatch, routerBrain, routerChatWithTools, routerChatWithUsage, routerToolLoop, runAgentRounds, runAgentic, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sample, sampleFromSettled, sampleThenRefine, sandboxCheckRunner, sandboxClientAsProvider, sandboxSessionTraceSource, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectBestIndex, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, streamAgentTurn, structuralRollout, sumSandboxUsage, supervise, superviseSurface, supervisorAgent, supervisorInstructions, timerAt, trajectoryReport, validateWaitSpec, verify, visibleCheckScore, waitUntil, watchTrace, widen, workerFromBackend, worktreeFanout };
package/dist/loops.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as contentAddress, c as replaySpawnTree, i as InMemorySpawnJournal, n as FileSpawnJournal, o as materializeTreeView, r as InMemoryResultBlobStore, s as pendingWaits, t as FileResultBlobStore } from "./spawn-journal-CwPvKUTa.js";
2
2
  import { C as routerToolLoop, S as routerChatWithUsage, a as createScope, b as routerBrain, c as isWaitOutcome, d as validateWaitSpec, f as waitUntil, h as readWorkerProgress, l as pollFor, m as createActivityLog, n as createBudgetPool, o as settledToIteration, p as DEFAULT_STALL_AFTER_MS, r as spendFromUsageEvents, s as createWaitProbes, t as createSupervisor, u as timerAt, x as routerChatWithTools } from "./supervisor-DTKhF-RV.js";
3
3
  import { C as observe, S as defaultAnalystInstruction, _ 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, 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 renderReport, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-IXUEplky.js";
4
- import { $ as defineLeaderboard, A as trajectoryReport, B as flatWidenGate, C as strategyAuthorContract, Ct as sanitizeMcpToolSchema, D as runBenchmark, Dt as secretEnvOfMcpServer, E as printBenchmarkReport, Et as resolveSecretEnv, F as registerShape, G as verify, H as panel, I as FileCorpus, J as buildSteerContext, K as widen, L as InMemoryCorpus, M as runPersonified, N as builtinShapes, O as promotionGate, P as createShapeRegistry, Q as harvestCorpus, R as renderCorpusToInstructions, S as authorStrategy, St as createMcpEnvironment, T as openSandboxRun, Tt as mcpSecretEnvMetadataKey, U as pipeline, V as loopUntil, W as selectValidWinner, X as registryScopeAnalyst, Y as createScopeAnalyst, Z as inProcessSandboxClient, _ as discriminatingMeans, _t as auditIntent, a as localShell, at as loopCampaignDispatch, b as selectChampion, bt as connectStdioMcp, c as createVerifierEnvironment, ct as deterministicCompletion, d as worktreeFanout, dt as leaderboard, et as dumbDriver, f as analyzeTrace, ft as pairwiseSignificance, g as streamAgentTurn, gt as renderPairwiseMarkdown, h as collectAgentTurn, ht as renderLeaderboardSvg, i as jjWorkspace, it as inlineSandboxClient, j as definePersona, k as equalKOnCost, l as failuresAnalyst, lt as sentinelCompletion, mt as renderLeaderboardMarkdown, n as makeFinding, nt as resolveSandboxClient, o as runInWorkspace, ot as loopDispatch, p as patchDelivered, pt as renderLeaderboardHtml, q as assertTraceDerivedFindings, r as gitWorkspace, rt as localSandboxClient, s as createWaterfallCollector, st as completionAuthorizes, t as computeFindingId, tt as naiveDriver, u as superviseSurface, ut as stopSentinel, v as pickChampion, vt as defaultAuditorInstruction, w as SandboxRunAbortError, wt as envKeyProvider, x as assertStrategyContract, xt as materializeLocalMcp, y as runStrategyEvolution, yt as McpSpawnFault, z as fanout } from "./runtime-5zM5XxLr.js";
4
+ import { $ as defineLeaderboard, A as trajectoryReport, B as flatWidenGate, C as strategyAuthorContract, Ct as sanitizeMcpToolSchema, D as runBenchmark, Dt as secretEnvOfMcpServer, E as printBenchmarkReport, Et as resolveSecretEnv, F as registerShape, G as verify, H as panel, I as FileCorpus, J as buildSteerContext, K as widen, L as InMemoryCorpus, M as runPersonified, N as builtinShapes, O as promotionGate, P as createShapeRegistry, Q as harvestCorpus, R as renderCorpusToInstructions, S as authorStrategy, St as createMcpEnvironment, T as openSandboxRun, Tt as mcpSecretEnvMetadataKey, U as pipeline, V as loopUntil, W as selectValidWinner, X as registryScopeAnalyst, Y as createScopeAnalyst, Z as inProcessSandboxClient, _ as discriminatingMeans, _t as auditIntent, a as localShell, at as loopCampaignDispatch, b as selectChampion, bt as connectStdioMcp, c as createVerifierEnvironment, ct as deterministicCompletion, d as worktreeFanout, dt as leaderboard, et as dumbDriver, f as analyzeTrace, ft as pairwiseSignificance, g as streamAgentTurn, gt as renderPairwiseMarkdown, h as collectAgentTurn, ht as renderLeaderboardSvg, i as jjWorkspace, it as inlineSandboxClient, j as definePersona, k as equalKOnCost, l as failuresAnalyst, lt as sentinelCompletion, mt as renderLeaderboardMarkdown, n as makeFinding, nt as resolveSandboxClient, o as runInWorkspace, ot as loopDispatch, p as patchDelivered, pt as renderLeaderboardHtml, q as assertTraceDerivedFindings, r as gitWorkspace, rt as localSandboxClient, s as createWaterfallCollector, st as completionAuthorizes, t as computeFindingId, tt as naiveDriver, u as superviseSurface, ut as stopSentinel, v as pickChampion, vt as defaultAuditorInstruction, w as SandboxRunAbortError, wt as envKeyProvider, x as assertStrategyContract, xt as materializeLocalMcp, y as runStrategyEvolution, yt as McpSpawnFault, z as fanout } from "./runtime-M_GIzIwe.js";
5
5
  import { i as mapSandboxToolEvent, n as extractLlmCallEvent, o as sumSandboxUsage, r as mapSandboxEvent, t as createSandboxToolPartState } from "./sandbox-events-DeI5xX8P.js";
6
6
  import { At as createSteerableSandboxSession, Bt as runAgentRounds, Ct as createFileRunContext, Dt as createExecutorRegistry, Et as createExecutor, F as assessAuthoredProfile, Ft as decodeToolPart, Gt as assertModelAllowed, Ht as createSandboxLineage, I as authoredWorker, It as sandboxSessionTraceSource, Kt as gateOnDeliverable, L as defaultProfileRichnessThresholds, Lt as createInbox, M as defaultDelegateBudget, Mt as piExecutor, N as delegate, Nt as piSeamKey, Ot as createWorktreeCliExecutor, P as asAuthoredProfile, Pt as createPushTraceSource, R as profileRichnessFinding, St as watchTrace, Tt as cliWorktreeExecutor, Ut as probeSandboxCapabilities, Vt as runLoop, Wt as acquireSandbox, _t as effectiveConcurrency, at as createProgressTracker, bt as rollingDispatch, ct as sampleFromSettled, dt as bestSoFar, et as driverAgent, ft as plateauLength, gt as createEventBus, i as serveCoordinationMcp, it as anyOf, jt as PI_RUNTIME, kt as DEFAULT_SANDBOX_STEERING_MAX_TURNS, lt as anytimeReport, mt as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, n as workerFromBackend, nt as allOf, ot as noProgressFor, pt as renderAnytimeTable, r as supervisorAgent, rt as allWorkersStalled, st as plateau, t as supervise, tt as finalizeBestDelivered, ut as areaUnderCurve, vt as freeSlots, wt as createInMemoryRunContext, xt as defaultToolDetectors, yt as queueOf, z as supervisorInstructions, zt as defaultSelectWinner } from "./supervise-BiRutHS9.js";
7
7
  import { a as sandboxClientAsProvider, i as resolveAgentEnvironmentProvider, n as providerAsExecutor, o as createTangleSandboxExactProcessProvider, r as providerAsSandboxClient, t as createAgentEnvironmentProviderRegistry } from "./environment-provider-CfLUmKmf.js";
@@ -1,5 +1,5 @@
1
1
  import { E as SandboxClient, h as LoopSandboxPlacement } from "../types-BevOjfTY.js";
2
- import { $c as DetachedSessionRefParts, $l as traceContextToEnv, Ac as McpToolDescriptor, Al as DelegateUiAuditConfig, As as createCoordinationTools, Au as FileDelegationStore, Bc as DetachedSessionDelegateOptions, Bl as DelegationResultPayload, Bs as DelegateResult, Cc as captureWorktreeDiff, Cl as DelegateCodeResult, Cs as QuestionLevel, Cu as buildDelegationTraceSpans, Dl as DelegateResearchConfig, Ds as QuestionUrgency, Du as DelegationPersistenceError, El as DelegateResearchArgs, Es as QuestionRecord, Eu as createDelegationTraceCollector, Fc as eventToSnapshot, Fl as DelegationHistoryArgs, Fs as DELEGATE_DESCRIPTION, Gc as detachedSessionDelegate, Gl as FeedbackRefersTo, Hc as SettleDetachedCoderTurnOptions, Hl as DelegationStatusArgs, Hs as validateDelegateArgs, Hu as CoderOutput, Ic as CoderDelegate, Il as DelegationHistoryEntry, Is as DELEGATE_INPUT_SCHEMA, Jc as FleetHandle, Jl as UiAuditLensFilter, Kc as settleDetachedCoderTurn, Kl as ResearchOutputShape, Lc as CoderReview, Ll as DelegationHistoryResult, Ls as DELEGATE_TOOL_NAME, Mc as FeedbackEvent, Ml as DelegateUiAuditRoute, Ms as McpServerOptions, Mu as InMemoryDelegationStore, Nc as FeedbackStore, Nl as DelegationError, Ns as createInProcessTransport, Oc as JsonRpcMessage, Ol as DelegateResearchResult, Os as SettledWorker, Ou as DelegationStateCorruptError, Pc as InMemoryFeedbackStore, Pl as DelegationFeedbackSnapshot, Ps as createMcpServer, Qc as createSiblingSandboxExecutor, Ql as readTraceContextFromEnv, Rc as CoderReviewer, Rl as DelegationProfile, Rs as DelegateArgs, Sc as WorktreeHandle, Sl as DelegateCodeConfig, Ss as QuestionDecision, Su as DelegationTraceSpan, Tc as removeWorktree, Tl as DelegateFeedbackResult, Ts as QuestionPolicy, Tu as composeLoopTraceEmitters, Uc as UiAuditorDelegate, Ul as DelegationStatusResult, Vc as DetachedWinnerSelection, Vl as DelegationStatus, Vs as createDelegateHandler, Wc as coderTaskFromArgs, Wl as FeedbackRating, Xc as SiblingSandboxExecutorOptions, Xl as TraceContext, Yc as FleetWorkspaceExecutorOptions, Yl as UiAuditorDelegationOutput, Zc as createFleetWorkspaceExecutor, Zl as createPropagatingTraceEmitter, _c as CreateWorktreeOptions, _l as DelegationTaskQueueOptions, _s as CoordinationToolsOptions, _u as CappedDelegationTrace, al as createDetachedTurnResumeDriver, bc as GitRunner, bl as hashIdempotencyInput, bs as MakeWorkerAgent, bu as DelegationTraceCaps, cl as parseDetachedSessionRef, dl as DelegationRecord, el as DetachedTurn, fl as DelegationResumeContext, gl as DelegationTaskQueue, gs as CoordinationTools, hl as DelegationRunContext, hs as CoordinationEvent, il as RunDetachedTurnOptions, jc as McpTransport, jl as DelegateUiAuditResult, js as McpServer, ju as FileDelegationStoreOptions, kc as JsonRpcResponse, kl as DelegateUiAuditArgs, ks as WorkerWatchOptions, ku as DelegationStore, ll as runDetachedTurn, ml as DelegationResumeTick, ms as AnalystRegistry, nl as DriveTurnCapableBox, ol as detachedTurnEvents, pl as DelegationResumeDriver, ps as AnalystFindingEvent, qc as DelegationExecutor, ql as ResearchSource, rl as DriveTurnTick, sl as formatDetachedSessionRef, tl as DetachedTurnResumeDriverOptions, ul as DelegationArgs, vc as DiffOptions, vl as SubmitInput, vs as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, vu as DELEGATION_TRACE_MAX_BYTES, wc as createWorktree, wl as DelegateFeedbackArgs, ws as QuestionOption, wu as capDelegationTrace, xc as RemoveWorktreeOptions, xl as DelegateCodeArgs, xs as Question, xu as DelegationTraceCollector, yc as DiffResult, yl as SubmitOutput, ys as DownMessageEvent, yu as DELEGATION_TRACE_MAX_SPANS, zc as DelegateRunCtx, zl as DelegationProgress, zs as DelegateHandlerOptions } from "../index-CeawCSEg.js";
2
+ import { $c as DetachedSessionRefParts, $l as traceContextToEnv, Ac as McpToolDescriptor, Al as DelegateUiAuditConfig, As as createCoordinationTools, Au as FileDelegationStore, Bc as DetachedSessionDelegateOptions, Bl as DelegationResultPayload, Bs as DelegateResult, Cc as captureWorktreeDiff, Cl as DelegateCodeResult, Cs as QuestionLevel, Cu as buildDelegationTraceSpans, Dl as DelegateResearchConfig, Ds as QuestionUrgency, Du as DelegationPersistenceError, El as DelegateResearchArgs, Es as QuestionRecord, Eu as createDelegationTraceCollector, Fc as eventToSnapshot, Fl as DelegationHistoryArgs, Fs as DELEGATE_DESCRIPTION, Gc as detachedSessionDelegate, Gl as FeedbackRefersTo, Hc as SettleDetachedCoderTurnOptions, Hl as DelegationStatusArgs, Hs as validateDelegateArgs, Hu as CoderOutput, Ic as CoderDelegate, Il as DelegationHistoryEntry, Is as DELEGATE_INPUT_SCHEMA, Jc as FleetHandle, Jl as UiAuditLensFilter, Kc as settleDetachedCoderTurn, Kl as ResearchOutputShape, Lc as CoderReview, Ll as DelegationHistoryResult, Ls as DELEGATE_TOOL_NAME, Mc as FeedbackEvent, Ml as DelegateUiAuditRoute, Ms as McpServerOptions, Mu as InMemoryDelegationStore, Nc as FeedbackStore, Nl as DelegationError, Ns as createInProcessTransport, Oc as JsonRpcMessage, Ol as DelegateResearchResult, Os as SettledWorker, Ou as DelegationStateCorruptError, Pc as InMemoryFeedbackStore, Pl as DelegationFeedbackSnapshot, Ps as createMcpServer, Qc as createSiblingSandboxExecutor, Ql as readTraceContextFromEnv, Rc as CoderReviewer, Rl as DelegationProfile, Rs as DelegateArgs, Sc as WorktreeHandle, Sl as DelegateCodeConfig, Ss as QuestionDecision, Su as DelegationTraceSpan, Tc as removeWorktree, Tl as DelegateFeedbackResult, Ts as QuestionPolicy, Tu as composeLoopTraceEmitters, Uc as UiAuditorDelegate, Ul as DelegationStatusResult, Vc as DetachedWinnerSelection, Vl as DelegationStatus, Vs as createDelegateHandler, Wc as coderTaskFromArgs, Wl as FeedbackRating, Xc as SiblingSandboxExecutorOptions, Xl as TraceContext, Yc as FleetWorkspaceExecutorOptions, Yl as UiAuditorDelegationOutput, Zc as createFleetWorkspaceExecutor, Zl as createPropagatingTraceEmitter, _c as CreateWorktreeOptions, _l as DelegationTaskQueueOptions, _s as CoordinationToolsOptions, _u as CappedDelegationTrace, al as createDetachedTurnResumeDriver, bc as GitRunner, bl as hashIdempotencyInput, bs as MakeWorkerAgent, bu as DelegationTraceCaps, cl as parseDetachedSessionRef, dl as DelegationRecord, el as DetachedTurn, fl as DelegationResumeContext, gl as DelegationTaskQueue, gs as CoordinationTools, hl as DelegationRunContext, hs as CoordinationEvent, il as RunDetachedTurnOptions, jc as McpTransport, jl as DelegateUiAuditResult, js as McpServer, ju as FileDelegationStoreOptions, kc as JsonRpcResponse, kl as DelegateUiAuditArgs, ks as WorkerWatchOptions, ku as DelegationStore, ll as runDetachedTurn, ml as DelegationResumeTick, ms as AnalystRegistry, nl as DriveTurnCapableBox, ol as detachedTurnEvents, pl as DelegationResumeDriver, ps as AnalystFindingEvent, qc as DelegationExecutor, ql as ResearchSource, rl as DriveTurnTick, sl as formatDetachedSessionRef, tl as DetachedTurnResumeDriverOptions, ul as DelegationArgs, vc as DiffOptions, vl as SubmitInput, vs as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, vu as DELEGATION_TRACE_MAX_BYTES, wc as createWorktree, wl as DelegateFeedbackArgs, ws as QuestionOption, wu as capDelegationTrace, xc as RemoveWorktreeOptions, xl as DelegateCodeArgs, xs as Question, xu as DelegationTraceCollector, yc as DiffResult, yl as SubmitOutput, ys as DownMessageEvent, yu as DELEGATION_TRACE_MAX_SPANS, zc as DelegateRunCtx, zl as DelegationProgress, zs as DelegateHandlerOptions } from "../index-B3wAV1SJ.js";
3
3
  import { o as UiLens } from "../substrate-BcnuSHXm.js";
4
4
  import { a as LocalHarnessResult, c as runLocalHarness, i as LocalHarness, n as CodexExecutionPolicy, o as RunLocalHarnessOptions, r as CodexTokenUsage, s as parseCodexTokenUsage, t as CodexExecutionEvidence } from "../local-harness-Dh8PJ0ot.js";
5
5
  import { a as KbGateResult, i as FactJudgeVerdict, n as FactCandidate, o as createKbGate, r as FactJudge, t as CreateKbGateOptions } from "../kb-gate-C8z2juK8.js";
package/dist/mcp/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { u as ValidationError } from "../errors-DEAvWQPy.js";
2
2
  import { l as throwAbort, n as deleteBoxSafe, s as sleep, u as throwIfAborted } from "../util-MVgdwuIS.js";
3
3
  import { A as removeWorktree, D as runWorktreeHarness, M as parseCodexTokenUsage, N as runLocalHarness, O as captureWorktreeDiff, P as CodexExecutionDiagnosticError, k as createWorktree } from "../supervisor-DTKhF-RV.js";
4
- import { W as selectValidWinner, m as runCoderChecks, q as assertTraceDerivedFindings } from "../runtime-5zM5XxLr.js";
4
+ import { W as selectValidWinner, m as runCoderChecks, q as assertTraceDerivedFindings } from "../runtime-M_GIzIwe.js";
5
5
  import { $ as eventToSnapshot, A as createDelegateHandler, B as DelegationTaskQueue, Bt as runAgentRounds, C as DELEGATE_FEEDBACK_INPUT_SCHEMA, D as DELEGATE_DESCRIPTION, E as validateDelegateFeedbackArgs, G as capDelegationTrace, H as DELEGATION_TRACE_MAX_BYTES, J as DelegationPersistenceError, K as composeLoopTraceEmitters, O as DELEGATE_INPUT_SCHEMA, Q as InMemoryFeedbackStore, Rt as createSandboxForSpec, S as DELEGATE_FEEDBACK_DESCRIPTION, T as createDelegateFeedbackHandler, U as DELEGATION_TRACE_MAX_SPANS, V as hashIdempotencyInput, W as buildDelegationTraceSpans, X as FileDelegationStore, Y as DelegationStateCorruptError, Z as InMemoryDelegationStore, _ as DELEGATE_UI_AUDIT_DESCRIPTION, a as createInProcessTransport, b as createDelegateUiAuditHandler, c as DELEGATION_STATUS_INPUT_SCHEMA, d as validateDelegationStatusArgs, f as DELEGATION_HISTORY_DESCRIPTION, g as validateDelegationHistoryArgs, h as createDelegationHistoryHandler, ht as createCoordinationTools, j as validateDelegateArgs, k as DELEGATE_TOOL_NAME, l as DELEGATION_STATUS_TOOL_NAME, m as DELEGATION_HISTORY_TOOL_NAME, mt as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, o as createMcpServer, p as DELEGATION_HISTORY_INPUT_SCHEMA, q as createDelegationTraceCollector, s as DELEGATION_STATUS_DESCRIPTION, u as createDelegationStatusHandler, v as DELEGATE_UI_AUDIT_INPUT_SCHEMA, w as DELEGATE_FEEDBACK_TOOL_NAME, x as validateDelegateUiAuditArgs, y as DELEGATE_UI_AUDIT_TOOL_NAME } from "../supervise-BiRutHS9.js";
6
6
  import { t as createStdioToolServer } from "../tool-server-RcWgLIsL.js";
7
7
  import { t as createKbGate } from "../kb-gate-DpaSwXVx.js";
@@ -1,5 +1,5 @@
1
1
  import { i as AgentExecutionBackend, r as AgentBackendInput } from "../types-C9j4qg6l.js";
2
- import { Nt as createOpenAICompatibleBackend } from "../index-D6MwUzvB.js";
2
+ import { Nt as createOpenAICompatibleBackend } from "../index-BbB5mmK0.js";
3
3
  import { RunRecord } from "@tangle-network/agent-eval";
4
4
  //#region src/primeintellect/types.d.ts
5
5
  type PrimeIntellectSplit = 'train' | 'eval';