@tangle-network/agent-runtime 0.109.1 → 0.109.2
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 +1 -1
- package/dist/agent.js +1 -1
- package/dist/{index-Cn5TtHUG.d.ts → index-BwY61sh3.d.ts} +2 -2
- package/dist/{index-bXiMVrUv.d.ts → index-CFJ_1m1U.d.ts} +6 -5
- package/dist/{index-Bur6uUF4.d.ts → index-HsQm1Rrr.d.ts} +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/{loop-runner-bin-V4EN9aNT.js → loop-runner-bin-C35m19w0.js} +2 -2
- package/dist/{loop-runner-bin-V4EN9aNT.js.map → loop-runner-bin-C35m19w0.js.map} +1 -1
- package/dist/{loop-runner-bin-CSzrWlgE.d.ts → loop-runner-bin-DUQF0bYz.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{runtime-BVMyqgct.js → runtime-dpJZmZtt.js} +12 -13
- package/dist/runtime-dpJZmZtt.js.map +1 -0
- package/dist/testing.js +7 -7
- package/package.json +4 -4
- package/dist/runtime-BVMyqgct.js.map +0 -1
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-DnNGJ5Gz.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-CFJ_1m1U.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-
|
|
2
|
+
import "./runtime-dpJZmZtt.js";
|
|
3
3
|
import { r as mapSandboxEvent } from "./sandbox-events-DeI5xX8P.js";
|
|
4
4
|
import { Rt as createSandboxForSpec } from "./supervise-DyPmmhJ6.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as Budget, ut as SupervisedResult } from "./environment-provider-CMqSAp-O.js";
|
|
2
|
-
import { Rc as DeliverableSpec, ac as ExecutorConfig, ct as SupervisorProfile, j as SuperviseOptions } from "./index-
|
|
2
|
+
import { Rc as DeliverableSpec, ac as ExecutorConfig, ct as SupervisorProfile, j as SuperviseOptions } from "./index-CFJ_1m1U.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-
|
|
140
|
+
//# sourceMappingURL=index-BwY61sh3.d.ts.map
|
|
@@ -4866,15 +4866,16 @@ interface PromotionVerdict {
|
|
|
4866
4866
|
mode: 'superiority' | 'non-inferiority';
|
|
4867
4867
|
/** Paired tasks that carried both strategies' cells. */
|
|
4868
4868
|
n: number;
|
|
4869
|
-
/** Paired (candidate − incumbent) lift across the holdout tasks.
|
|
4869
|
+
/** Paired (candidate − incumbent) lift across the holdout tasks. `low` and `high`
|
|
4870
|
+
* are the bounds that carried the decision; `mean` and `median` are diagnostics. */
|
|
4870
4871
|
lift: {
|
|
4871
4872
|
mean: number;
|
|
4872
4873
|
median: number;
|
|
4873
4874
|
low: number;
|
|
4874
4875
|
high: number;
|
|
4875
4876
|
};
|
|
4876
|
-
/** non-inferiority mode: paired (incumbent − candidate) cost
|
|
4877
|
-
*
|
|
4877
|
+
/** non-inferiority mode: paired (incumbent − candidate) cost savings per task (usd).
|
|
4878
|
+
* Positive means the candidate is cheaper; `low` and `high` carried the decision. */
|
|
4878
4879
|
costSavings?: {
|
|
4879
4880
|
mean: number;
|
|
4880
4881
|
median: number;
|
|
@@ -4891,7 +4892,7 @@ interface PromotionVerdict {
|
|
|
4891
4892
|
high: number;
|
|
4892
4893
|
};
|
|
4893
4894
|
}
|
|
4894
|
-
/** Statistical promotion decision over a holdout benchmark
|
|
4895
|
+
/** Statistical promotion decision over a holdout benchmark using the outcome-appropriate interval selected by `heldoutSignificance`. */
|
|
4895
4896
|
declare function promotionGate(opts: PromotionGateOptions): PromotionVerdict;
|
|
4896
4897
|
//#endregion
|
|
4897
4898
|
//#region src/runtime/resolve-sandbox-client.d.ts
|
|
@@ -7370,4 +7371,4 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
|
|
|
7370
7371
|
}): Promise<WorkspaceRun<T>>;
|
|
7371
7372
|
//#endregion
|
|
7372
7373
|
export { effectiveConcurrency as $, RenderCorpusToInstructionsOptions as $a, DetachedWinnerSelection as $c, LoopOptionsForDispatch as $i, DelegationStatus as $l, ApplyContinuation as $n, PairwiseVerdict as $o, fanout as $r, createDelegateHandler as $s, authoredWorker as $t, ValidationError as $u, createSupervisor as A, CombinatorShape as Aa, DiffOptions as Ac, AgenticTool as Ai, SubmitInput as Al, CollectedAgentTurn as An, LeaderboardBenchmarkAdapter as Ao, mapSandboxEvent as Ar, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as As, sampleFromSettled as At, DELEGATION_TRACE_MAX_BYTES as Au, createFileRunContext as B, FanoutSynthesis as Ba, JsonRpcMessage as Bc, StrategyResult as Bi, DelegateResearchResult as Bl, EvolutionGeneration as Bn, CompletionPolicy as Bo, PromotionGateOptions as Br, SettledWorker as Bs, CoordinationLog as Bt, DelegationStateCorruptError as Bu, failuresAnalyst as C, Observation as Ca, piExecutor as Cc, Environment as Ci, DelegationRecord as Cl, resolveEntrySymbol as Cn, RunPersonifiedOptions as Co, SandboxLineage as Cr, WaterfallSpan as Cs, StopRule as Ct, buildLoopOtelSpans as Cu, worktreeFanout as D, observe as Da, WorktreeHarnessResult as Dc, AgenticRunResult as Di, DelegationRunContext as Dl, visibleCheckScore as Dn, DefinedLeaderboard as Do, SandboxToolPartState as Dr, CoordinationEvent as Ds, createProgressTracker as Dt, exportEvalRuns as Du, WorktreeFanoutOptions as E, defaultAnalystInstruction as Ea, WorktreeCommandResult as Ec, AgenticOptions as Ei, DelegationResumeTick as El, structuralRollout as En, ShapeRegistry as Eo, createSandboxLineage as Er, AnalystRegistry as Es, anyOf as Et, createOtelExporter as Eu, createScope as F, EqualKOnCost as Fa, captureWorktreeDiff as Fc, ShotSpec as Fi, DelegateCodeResult as Fl, ChampionPolicy as Fn, LeaderboardScore as Fo, probeSandboxCapabilities as Fr, QuestionLevel as Fs, bestDelivered as Ft, buildDelegationTraceSpans as Fu, WorktreePatchArtifact as G, LoopUntilState as Ga, FeedbackStore as Gc, defineStrategy as Gi, DelegationError as Gl, pickChampion as Gn, stopSentinel as Go, builtinShapes as Gr, createInProcessTransport as Gs, ReservationTicket as Gt, AgentEvalError$1 as Gu, PatchDeliverableOptions as H, FlatWidenGate as Ha, McpToolDescriptor$1 as Hc, SurfaceScore as Hi, DelegateUiAuditConfig as Hl, ReproductionCheck as Hn, completionAuthorizes as Ho, promotionGate as Hr, createCoordinationTools as Hs, PriorCoordination as Ht, FileDelegationStore as Hu, settledToIteration as I, EqualKOnCostOptions as Ia, createWorktree as Ic, Strategy as Ii, DelegateFeedbackArgs as Il, EvolutionArchiveNode as In, LeaderboardSpec as Io, AcquireOptions as Ir, QuestionOption as Is, collectDelivered as It, capDelegationTrace as Iu, ConcurrencyCaps as J, PanelSpec as Ja, CoderDelegate as Jc, runAgentic as Ji, DelegationHistoryEntry as Jl, AuthorStrategyOptions as Jn, Interval as Jo, definePersona as Jr, DELEGATE_INPUT_SCHEMA as Js, AuthoredProfile as Jt, ConfigError as Ju, createWorktreeCliExecutor as K, Panel as Ka, InMemoryFeedbackStore as Kc, depthStrategy as Ki, DelegationFeedbackSnapshot as Kl, runStrategyEvolution as Kn, AxisScoresOf as Ko, createShapeRegistry as Kr, createMcpServer as Ks, createBudgetPool as Kt, AgentEvalErrorCode as Ku, InMemoryRunContext as L, EqualKVerdict as La, removeWorktree as Lc, StrategyArtifacts as Li, DelegateFeedbackResult as Ll, EvolutionAuthor as Ln, defineLeaderboard as Lo, acquireSandbox as Lr, QuestionPolicy as Ls, pickBestDelivered as Lt, composeLoopTraceEmitters as Lu, supervise as M, CorpusFilter as Ma, GitRunner as Mc, CorpusReadbackOptions as Mi, hashIdempotencyInput as Ml, collectAgentTurn as Mn, LeaderboardIterationInfo as Mo, sumSandboxUsage as Mr, MakeWorkerAgent as Ms, FinalizeContext as Mt, DelegationTraceCaps as Mu, workerFromBackend as N, CorpusRecord as Na, RemoveWorktreeOptions as Nc, RunAgenticOptions as Ni, DelegateCodeArgs as Nl, streamAgentTurn as Nn, LeaderboardRunContext as No, CriuCapableClient as Nr, Question as Ns, FinalizerSettled as Nt, DelegationTraceCollector as Nu, TrajectoryAnalysis as O, renderReport as Oa, WorktreeProfileMaterializationReceipt as Oc, AgenticSurface as Oi, DelegationTaskQueue as Ol, AgentTurnBackend as On, LeaderboardBenchScore as Oo, createSandboxToolPartState as Or, CoordinationTools as Os, noProgressFor as Ot, loopEventToOtelSpan as Ou, ScopeArgs as P, EqualKArm as Pa, WorktreeHandle as Pc, ShotPersona as Pi, DelegateCodeConfig as Pl, ChampionPick as Pn, LeaderboardScenario as Po, SandboxCapabilities as Pr, QuestionDecision as Ps, SupervisorFinalizer as Pt, DelegationTraceSpan as Pu, RollingDispatchOptions as Q, RenderCorpusToInstructions as Qa, DetachedSessionDelegateOptions as Qc, LoopDispatchOptions as Qi, DelegationResultPayload as Ql, strategyAuthorContract as Qn, PairwiseOptions as Qo, renderCorpusToInstructions as Qr, DelegateResult as Qs, assessAuthoredProfile as Qt, RuntimeRunStateError as Qu, InMemoryRunContextOptions as R, Fanout as Ra, DeliverableSpec as Rc, StrategyCtx as Ri, DelegateResearchArgs as Rl, EvolutionBandInfo as Rn, CompletionAnalyst as Ro, ResolveSandboxClientOptions as Rr, QuestionRecord as Rs, runFinalizer as Rt, createDelegationTraceCollector as Ru, SurfaceWorkerOut as S, harvestCorpus as Sa, PiSeam as Sc, BenchmarkTaskRow as Si, DelegationArgs as Sl, officialChecksFromMeta as Sn, RunPersonified as So, ForkCapableBox as Sr, WaterfallReport as Ss, StopDecision as St, RuntimeEventOtelOptions as Su, AuthoredHarness as T, ObserveOptions as Ta, WorktreeCheckRunner as Tc, runBenchmark as Ti, DelegationResumeDriver as Tl, selectBestIndex as Tn, ShapeContext as To, SessionCapableBox as Tr, AnalystFindingEvent as Ts, allWorkersStalled as Tt, buildRuntimeEventOtelSpans as Tu, patchDelivered as U, LoopUntil as Ua, McpTransport as Uc, adaptiveRefine as Ui, DelegateUiAuditResult as Ul, StrategyEvolutionConfig as Un, deterministicCompletion as Uo, equalKOnCost as Ur, McpServer as Us, BudgetPool as Ut, FileDelegationStoreOptions as Uu, createInMemoryRunContext as V, FanoutWinnerSelector as Va, JsonRpcResponse as Vc, StrategyShotResult as Vi, DelegateUiAuditArgs as Vl, EvolutionReport as Vn, CompletionVerdict as Vo, PromotionVerdict as Vr, WorkerWatchOptions as Vs, FileCoordinationLog as Vt, DelegationStore as Vu, WorktreeCliExecutorOptions as W, LoopUntilSpec as Wa, FeedbackEvent as Wc, breadthStrategy as Wi, DelegateUiAuditRoute as Wl, discriminatingMeans as Wn, sentinelCompletion as Wo, trajectoryReport as Wr, McpServerOptions as Ws, BudgetReadout as Wt, InMemoryDelegationStore as Wu, DispatchStopReason as X, Pipeline as Xa, CoderReviewer as Xc, sampleThenRefine as Xi, DelegationProfile as Xl, assertStrategyContract as Xn, LeaderboardOptions as Xo, FileCorpus as Xr, DelegateArgs as Xs, ProfileRichnessThresholds as Xt, NotFoundError as Xu, DispatchReport as Y, PanelVerdict as Ya, CoderReview as Yc, sample as Yi, DelegationHistoryResult as Yl, AuthoredStrategy as Yn, Leaderboard as Yo, runPersonified as Yr, DELEGATE_TOOL_NAME as Ys, ProfileRichness as Yt, JudgeError as Yu, DispatchUnit 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, VerifierEnvironmentOptions as _, InProcessSandboxClientOptions as _a, createSteerableSandboxSession as _c, replaySpawnTree as _d, BenchmarkCell as _i, createDetachedTurnResumeDriver as _l, composeCheckSources as _n, LoopShape as _o, SandboxRun as _r, areaUnderCurve as _s, PlateauOptions as _t, LoopSpanNode as _u, SandboxInstance$1 as a, runAgentRounds as aa, ExecutorConfig as ac, PublishOptions as ad, verify as ai, DelegationExecutor as al, CheckRunContext as an, TrajectoryReport as ao, LocalMcpMaterialization as ar, renderLeaderboardMarkdown as as, delegate as at, ResearchSource as au, SuperviseSurfaceResult as b, HarvestFailure as ba, createInbox as bc, BenchmarkReport as bi, parseDetachedSessionRef as bl, filterAuthoredAsserts as bn, PersonaContext as bo, openSandboxRun as br, renderAnytimeTable as bs, ProgressTrackerOptions as bt, OtelExporter as bu, GitWorkspaceOptions as c, localSandboxClient as ca, RouterToolsSeam as cc, defaultToolDetectors as cd, RegistryAnalyzeProjection as ci, SiblingSandboxExecutorOptions as cl, CheckSourceCtx as cn, Verify as co, McpToolDescriptor as cr, AuditIntentInput as cs, SupervisorProfile as ct, TraceContext as cu, WorkspaceCommit as d, mcpSecretEnvMetadataKey as da, createExecutor as dc, FileSpawnJournal as dd, createScopeAnalyst as di, DetachedSessionRefParts as dl, StructuralRolloutMessage as dn, WidenDecision as do, connectStdioMcp as dr, auditIntent as ds, serveCoordinationMcp as dt, traceContextToEnv as du, loopCampaignDispatch as ea, validateDelegateArgs as ec, CoderOutput as ed, flatWidenGate as ei, SettleDetachedCoderTurnOptions as el, defaultProfileRichnessThresholds as en, ScopeAnalyst as eo, DumbDriverOptions as er, ProfileKeyOf as es, freeSlots as et, DelegationStatusArgs as eu, WorkspaceRun as f, resolveSecretEnv as fa, createExecutorRegistry as fc, InMemoryResultBlobStore as fd, registryScopeAnalyst as fi, DetachedTurn as fl, StructuralRolloutPolicy as fn, WidenLineage as fo, materializeLocalMcp as fr, defaultAuditorInstruction as fs, DriverAgentOptions as ft, EvalRunEvent as fu, runInWorkspace as g, InProcessPromptCtx as ga, SteerableSandboxSession as gc, pendingWaits as gd, sanitizeMcpToolSchema as gi, RunDetachedTurnOptions as gl, compareCheckOutcomes as gn, DefinePersonaInput as go, OpenSandboxRunPromptOptions as gr, anytimeReport as gs, NoProgressForOptions as gt, INTELLIGENCE_WIRE_VERSION as gu, localShell as h, InProcessOnPrompt as ha, SteerableSandboxArgs as hc, materializeTreeView as hd, createMcpEnvironment as hi, DriveTurnTick as hl, canDisplace as hn, DefinePersona as ho, OpenSandboxRunOptions as hr, AnytimeTaskCurve as hs, AllWorkersStalledOptions as ht, EvalRunsExportResult as hu, SandboxEvent$1 as i, defaultSelectWinner as ia, CliWorktreeSeam as ic, EventBus as id, selectValidWinner as ii, settleDetachedCoderTurn as il, CheckOutcome as in, TrajectoryNode as io, naiveDriver as ir, renderLeaderboardHtml as is, defaultDelegateBudget as it, ResearchOutputShape as iu, SuperviseOptions as j, Corpus as ja, DiffResult as jc, ArtifactHandle as ji, SubmitOutput as jl, StreamAgentTurnOptions as jn, LeaderboardFlagSpec as jo, mapSandboxToolEvent as jr, DownMessageEvent as js, DeliveredOutput as jt, DELEGATION_TRACE_MAX_SPANS as ju, analyzeTrace as k, AssertTraceDerivedFindings as ka, CreateWorktreeOptions as kc, AgenticTask as ki, DelegationTaskQueueOptions as kl, AgentTurnUsage as kn, LeaderboardBenchTask as ko, extractLlmCallEvent as kr, CoordinationToolsOptions as ks, plateau as kt, CappedDelegationTrace as ku, Shell as l, KeyProvider as la, SandboxSeam as lc, watchTrace as ld, assertTraceDerivedFindings as li, createFleetWorkspaceExecutor as ll, RepairStop as ln, VerifySpec as lo, StdioMcpConnection as lr, AuditIntentOptions as ls, supervisorAgent as lt, createPropagatingTraceEmitter as lu, jjWorkspace as m, inlineSandboxClient as ma, SandboxSteeringOptions as mc, contentAddress as md, McpEnvironmentOptions as mi, DriveTurnCapableBox as ml, VisibleCheck as mn, WinnerStrategy as mo, OpenSandboxRunBeforeStartContext as mr, AnytimeStrategySummary as ms, finalizeBestDelivered as mt, EvalRunsExportConfig as mu, AnalystFinding$1 as n, RunAgentRoundsOptions as na, CliSeam as nc, BusRecord as nd, panel as ni, coderTaskFromArgs as nl, supervisorInstructions as nn, ScopeWidenGate as no, SteeringDecision as nr, leaderboard as ns, rollingDispatch as nt, FeedbackRating as nu, computeFindingId$1 as o, runLoop as oa, ProviderSeam as oc, createEventBus as od, widen as oi, FleetHandle as ol, CheckRunner as on, TrajectoryReportFn as oo, MaterializeLocalMcpOptions as or, renderLeaderboardSvg as os, DriveHarness as ot, UiAuditLensFilter as ou, gitWorkspace as p, secretEnvOfMcpServer as pa, DEFAULT_SANDBOX_STEERING_MAX_TURNS as pc, InMemorySpawnJournal as pd, McpEndpoint as pi, DetachedTurnResumeDriverOptions as pl, StructuralRolloutResult as pn, WidenSpec as po, Deliverable as pr, AnytimeReport as ps, driverAgent as pt, EvalRunGeneration as pu, assertModelAllowed as q, PanelJudge as qa, eventToSnapshot as qc, refine as qi, DelegationHistoryArgs as ql, selectChampion as qn, GroupOf as qo, registerShape as qr, DELEGATE_DESCRIPTION as qs, spendFromUsageEvents as qt, BackendTransportError as qu, CreateSandboxOptions$1 as r, RunLoopOptions as ra, CliWorktreeBridgeSeam as rc, BusStats as rd, pipeline as ri, detachedSessionDelegate as rl, CheckExecChannel as rn, SteerContext as ro, dumbDriver as rr, pairwiseSignificance as rs, DelegateOptions as rt, FeedbackRefersTo as ru, makeFinding$1 as s, LocalSandboxClientOptions as sa, RouterSeam as sc, WatchTraceOptions as sd, CreateScopeAnalystOptions as si, FleetWorkspaceExecutorOptions as sl, CheckSource as sn, TrajectoryReportOptions as so, McpSpawnFault as sr, renderPairwiseMarkdown as ss, SupervisorAgentDeps as st, UiAuditorDelegationOutput as su, AgentProfile$2 as t, loopDispatch as ta, BridgeSeam as tc, BusEvent as td, loopUntil as ti, UiAuditorDelegate as tl, profileRichnessFinding as tn, ScopeAnalyzeInput as to, NaiveDriverOptions as tr, ScoreOf as ts, queueOf as tt, DelegationStatusResult as tu, Workspace as u, envKeyProvider as ua, cliWorktreeExecutor as uc, FileResultBlobStore as ud, buildSteerContext as ui, createSiblingSandboxExecutor as ul, StructuralRolloutConfig as un, Widen as uo, StdioMcpServerSpec as ur, IntentAudit as us, CoordinationMcpHandle as ut, readTraceContextFromEnv as uu, createVerifierEnvironment as v, inProcessSandboxClient as va, Inbox as vc, BenchmarkConfig as vi, detachedTurnEvents as vl, defaultExtractCandidate as vn, Outcome as vo, SandboxRunAbortError as vr, bestSoFar as vs, ProgressSample as vt, OtelAttribute as vu, superviseSurface as w, ObserveInput as wa, piSeamKey as wc, printBenchmarkReport as wi, DelegationResumeContext as wl, sandboxCheckRunner as wn, ShapeBudget as wo, SandboxLineageHandle as wr, createWaterfallCollector as ws, allOf as wt, buildLoopSpanNodes as wu, SurfaceWorkerConfig as x, HarvestReport as xa, PI_RUNTIME as xc, BenchmarkStrategySummary as xi, runDetachedTurn as xl, modelAuthoredChecks as xn, PersonaExecutors as xo, CheckpointCapableBox as xr, WaterfallCollector as xs, ProgressView as xt, OtelSpan as xu, SuperviseSurfaceOptions as y, HarvestCorpusOptions as ya, InboxMessage as yc, BenchmarkLift as yi, formatDetachedSessionRef as yl, defaultStructuralRolloutPolicy as yn, Persona as yo, TurnResult as yr, plateauLength as ys, ProgressTracker as yt, OtelExportConfig as yu, RunContext as z, FanoutOptions as za, gateOnDeliverable as zc, StrategyMessage as zi, DelegateResearchConfig as zl, EvolutionCandidate as zn, CompletionEvidence as zo, resolveSandboxClient as zr, QuestionUrgency as zs, runTree as zt, DelegationPersistenceError as zu };
|
|
7373
|
-
//# sourceMappingURL=index-
|
|
7374
|
+
//# sourceMappingURL=index-CFJ_1m1U.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 "./types-DnNGJ5Gz.js";
|
|
5
|
-
import { Ju as ConfigError, fn as StructuralRolloutPolicy } from "./index-
|
|
5
|
+
import { Ju as ConfigError, fn as StructuralRolloutPolicy } from "./index-CFJ_1m1U.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-BkasKlyd.js";
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./loop-runner-bin-
|
|
10
|
+
import "./index-BwY61sh3.js";
|
|
11
|
+
import "./loop-runner-bin-DUQF0bYz.js";
|
|
12
12
|
import "./openai-tools-B68JaOCx.js";
|
|
13
13
|
import { 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, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
|
|
14
14
|
import { GepaOptimizationMethodConfig, SkillOptOptimizationMethodConfig } from "@tangle-network/agent-eval/campaign";
|
|
@@ -541,4 +541,4 @@ declare function readinessServerSentEvent(report: KnowledgeReadinessReport, opti
|
|
|
541
541
|
declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
|
|
542
542
|
//#endregion
|
|
543
543
|
export { McpServeSpec as $, resolveRouterBaseUrl as A, RawTraceDistillerOptions as B, DEFAULT_ROUTER_BASE_URL as C, cleanModelId as D, RouterEnv as E, parseRolloutPolicy as F, strategyAuthorMethod as G, buildDriverSystem as H, serializeRolloutPolicy as I, OfficialOptimizerUnavailableError as J, OfficialGepaOptions as K, structuralRolloutPolicyFromProfile as L, ROLLOUT_POLICY_EXTENSION as M, applyRolloutPolicyToProfile as N, getModels as O, normalizeRolloutPolicy as P, officialSkillOpt as Q, ReflectiveGeneratorOptions as R, ChatModelValidation as S, ResolvedChatModel as T, optimizerMethod as U, rawTraceDistiller as V, researchDriverNote as W, OfficialSkillOptOptions as X, OfficialSensitiveCandidateInput as Y, officialGepa as Z, AgentBackendKind as _, ControlStep$1 as a, mcpBuildPrompt as at, decideKnowledgeReadiness as b, KnowledgeRequirement$1 as c, createIterableBackend as ct, readinessServerSentEvent as d, mcpServeVerifier as et, runtimeStreamServerSentEvent as f, runAgentTaskStream as g, runAgentTask as h, ControlRunResult$1 as i, findingLines as it, validateChatModelId as j, resolveChatModel as k, RunRecord$1 as l, createOpenAICompatibleBackend as lt, applyRunRecordDefaults as m, ControlDecision$1 as n, driverLoopGenerator as nt, DataAcquisitionPlan$1 as o, toolBuildPrompt as ot, InMemoryRuntimeSessionStore as p, OfficialOptimizerContextOptions as q, ControlEvalResult$1 as r, BuildPromptFindingsInput as rt, KnowledgeReadinessReport$1 as s, BackendRetryPolicy as st, ControlBudget$1 as t, DriverLoopGeneratorOptions as tt, ServerSentEventOptions as u, createSandboxPromptBackend as ut, ResolveAgentBackendOptions as v, ModelInfo as w, ChatModelCandidate as x, resolveAgentBackend as y, reflectiveGenerator as z };
|
|
544
|
-
//# sourceMappingURL=index-
|
|
544
|
+
//# sourceMappingURL=index-HsQm1Rrr.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import { _ as RunAgentTaskOptions, a as AgentKnowledgeProvider, b as RuntimeSess
|
|
|
2
2
|
import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, f as notifyRuntimeDecisionPoint, i as RuntimeHookContext, l as RuntimeHooks, n as RuntimeDecisionKind, o as RuntimeHookEvent, p as notifyRuntimeHookEvent, r as RuntimeDecisionPoint, s as RuntimeHookPhase, t as RuntimeDecisionEvidenceRef, u as composeRuntimeHooks } from "./runtime-hooks-sbRpjStq.js";
|
|
3
3
|
import { A as RuntimeRunCompleteInput, F as RuntimeRunRow, I as RuntimeRunStatus, L as startRuntimeRun, M as RuntimeRunHandle, N as RuntimeRunOptions, P as RuntimeRunPersistenceAdapter, j as RuntimeRunCost, m as LoopResult, r as Driver } from "./types-DnNGJ5Gz.js";
|
|
4
4
|
import { B as Executor, L as AgentSpec, R as Budget, U as ExecutorRegistry, dt as Supervisor, lt as Spend, nt as Scope, rt as Settled, ut as SupervisedResult } from "./environment-provider-CMqSAp-O.js";
|
|
5
|
-
import { $u as ValidationError, Cu as buildLoopOtelSpans, Ds as CoordinationEvent, Du as exportEvalRuns, Es as AnalystRegistry, Eu as createOtelExporter, Gu as AgentEvalError, Ju as ConfigError, Ku as AgentEvalErrorCode, Mt as FinalizeContext, Ou as loopEventToOtelSpan, Pt as SupervisorFinalizer, Qu as RuntimeRunStateError, Su as RuntimeEventOtelOptions, Tc as WorktreeCheckRunner, Tu as buildRuntimeEventOtelSpans, Xu as NotFoundError, Yu as JudgeError, Zu as PlannerError, _u as LoopSpanNode, bu as OtelExporter, fu as EvalRunEvent, gu as INTELLIGENCE_WIRE_VERSION, hu as EvalRunsExportResult, mu as EvalRunsExportConfig, pu as EvalRunGeneration, qu as BackendTransportError, vu as OtelAttribute, wu as buildLoopSpanNodes, xu as OtelSpan, yu as OtelExportConfig } from "./index-
|
|
5
|
+
import { $u as ValidationError, Cu as buildLoopOtelSpans, Ds as CoordinationEvent, Du as exportEvalRuns, Es as AnalystRegistry, Eu as createOtelExporter, Gu as AgentEvalError, Ju as ConfigError, Ku as AgentEvalErrorCode, Mt as FinalizeContext, Ou as loopEventToOtelSpan, Pt as SupervisorFinalizer, Qu as RuntimeRunStateError, Su as RuntimeEventOtelOptions, Tc as WorktreeCheckRunner, Tu as buildRuntimeEventOtelSpans, Xu as NotFoundError, Yu as JudgeError, Zu as PlannerError, _u as LoopSpanNode, bu as OtelExporter, fu as EvalRunEvent, gu as INTELLIGENCE_WIRE_VERSION, hu as EvalRunsExportResult, mu as EvalRunsExportConfig, pu as EvalRunGeneration, qu as BackendTransportError, vu as OtelAttribute, wu as buildLoopSpanNodes, xu as OtelSpan, yu as OtelExportConfig } from "./index-CFJ_1m1U.js";
|
|
6
6
|
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";
|
|
7
7
|
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";
|
|
8
8
|
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";
|
|
9
9
|
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";
|
|
10
10
|
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";
|
|
11
|
-
import { $ as McpServeSpec, A as resolveRouterBaseUrl, B as RawTraceDistillerOptions, C as DEFAULT_ROUTER_BASE_URL, D as cleanModelId, E as RouterEnv, F as parseRolloutPolicy, G as strategyAuthorMethod, H as buildDriverSystem, I as serializeRolloutPolicy, J as OfficialOptimizerUnavailableError, K as OfficialGepaOptions, L as structuralRolloutPolicyFromProfile, M as ROLLOUT_POLICY_EXTENSION, N as applyRolloutPolicyToProfile, O as getModels, P as normalizeRolloutPolicy, Q as officialSkillOpt, R as ReflectiveGeneratorOptions, S as ChatModelValidation, T as ResolvedChatModel, U as optimizerMethod, V as rawTraceDistiller, W as researchDriverNote, X as OfficialSkillOptOptions, Y as OfficialSensitiveCandidateInput, Z as officialGepa, _ as AgentBackendKind, a as ControlStep, at as mcpBuildPrompt, b as decideKnowledgeReadiness, c as KnowledgeRequirement, ct as createIterableBackend, d as readinessServerSentEvent, et as mcpServeVerifier, f as runtimeStreamServerSentEvent, g as runAgentTaskStream, h as runAgentTask, i as ControlRunResult, it as findingLines, j as validateChatModelId, k as resolveChatModel, l as RunRecord, lt as createOpenAICompatibleBackend, m as applyRunRecordDefaults, n as ControlDecision, nt as driverLoopGenerator, o as DataAcquisitionPlan, ot as toolBuildPrompt, p as InMemoryRuntimeSessionStore, q as OfficialOptimizerContextOptions, r as ControlEvalResult, rt as BuildPromptFindingsInput, s as KnowledgeReadinessReport, st as BackendRetryPolicy, t as ControlBudget, tt as DriverLoopGeneratorOptions, u as ServerSentEventOptions, ut as createSandboxPromptBackend, v as ResolveAgentBackendOptions, w as ModelInfo, x as ChatModelCandidate, y as resolveAgentBackend, z as reflectiveGenerator } from "./index-
|
|
11
|
+
import { $ as McpServeSpec, A as resolveRouterBaseUrl, B as RawTraceDistillerOptions, C as DEFAULT_ROUTER_BASE_URL, D as cleanModelId, E as RouterEnv, F as parseRolloutPolicy, G as strategyAuthorMethod, H as buildDriverSystem, I as serializeRolloutPolicy, J as OfficialOptimizerUnavailableError, K as OfficialGepaOptions, L as structuralRolloutPolicyFromProfile, M as ROLLOUT_POLICY_EXTENSION, N as applyRolloutPolicyToProfile, O as getModels, P as normalizeRolloutPolicy, Q as officialSkillOpt, R as ReflectiveGeneratorOptions, S as ChatModelValidation, T as ResolvedChatModel, U as optimizerMethod, V as rawTraceDistiller, W as researchDriverNote, X as OfficialSkillOptOptions, Y as OfficialSensitiveCandidateInput, Z as officialGepa, _ as AgentBackendKind, a as ControlStep, at as mcpBuildPrompt, b as decideKnowledgeReadiness, c as KnowledgeRequirement, ct as createIterableBackend, d as readinessServerSentEvent, et as mcpServeVerifier, f as runtimeStreamServerSentEvent, g as runAgentTaskStream, h as runAgentTask, i as ControlRunResult, it as findingLines, j as validateChatModelId, k as resolveChatModel, l as RunRecord, lt as createOpenAICompatibleBackend, m as applyRunRecordDefaults, n as ControlDecision, nt as driverLoopGenerator, o as DataAcquisitionPlan, ot as toolBuildPrompt, p as InMemoryRuntimeSessionStore, q as OfficialOptimizerContextOptions, r as ControlEvalResult, rt as BuildPromptFindingsInput, s as KnowledgeReadinessReport, st as BackendRetryPolicy, t as ControlBudget, tt as DriverLoopGeneratorOptions, u as ServerSentEventOptions, ut as createSandboxPromptBackend, v as ResolveAgentBackendOptions, w as ModelInfo, x as ChatModelCandidate, y as resolveAgentBackend, z as reflectiveGenerator } from "./index-HsQm1Rrr.js";
|
|
12
12
|
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-BkasKlyd.js";
|
|
13
|
-
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-
|
|
14
|
-
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-
|
|
13
|
+
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-BwY61sh3.js";
|
|
14
|
+
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-DUQF0bYz.js";
|
|
15
15
|
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-B68JaOCx.js";
|
|
16
16
|
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 AgentSpec, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AnalystRegistry, type AuthSource, type BackendCallPolicy, type BackendErrorDetail, type BackendRetryPolicy, BackendTransportError, type Budget, 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 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 CoordinationEvent, 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 Driver, type DriverLoopGeneratorOptions, type EvalRunEvent, type EvalRunGeneration, type EvalRunsExportConfig, type EvalRunsExportResult, type ExactProcessCandidateExecutorOptions, type ExecutePreparedAgentCandidateOptions, type Executor, type ExecutorRegistry, FORWARD_HEADERS, FileAgentCandidateExecutionClaimStore, type FileAgentCandidateExecutionClaimStoreOptions, FileConversationJournal, type FinalizeContext, 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, type LoopResult, 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 RunConversationOptions, type RunDelegatedLoopOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunRecord, 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 Scope, type ServerSentEventOptions, type Settled, type Spend, type SqlAdapter, SqlConversationJournal, type SupervisedKnowledgeUpdateInput, type SupervisedKnowledgeUpdateOptions, type SupervisedKnowledgeUpdateResult, type SupervisedKnowledgeUpdater, type SupervisedResult, type Supervisor, type SupervisorFinalizer, 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, disposePreparedAgentCandidateExecution, driverLoopGenerator, exactProcessProviderAsCandidateExecutor, executePreparedAgentCandidate, exportEvalRuns, findingLines, formatSupervisedKnowledgeTask, getModels, improve, 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, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, sealAgentCandidateBundle, serializeRolloutPolicy, sleep, slugifySpeaker, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, toolBuildPrompt, turnId, validateChatModelId, verifyAgentCandidateBundle, worktreeLoopRunner };
|
package/dist/index.js
CHANGED
|
@@ -9,11 +9,11 @@ import { P as runLocalHarness, T as runBrainLoop } from "./supervisor-sTJC9psT.j
|
|
|
9
9
|
import { D as researchDriverNote, E as optimizerMethod, O as strategyAuthorMethod, T as buildDriverSystem } from "./structural-rollout-ASQLr4-v.js";
|
|
10
10
|
import { A as improve, B as agenticGenerator, F as normalizeRolloutPolicy, G as summarizeFindings, H as defaultBuildPrompt, I as parseRolloutPolicy, K as worktreeChangedPaths, L as serializeRolloutPolicy, M as rawTraceDistiller, N as ROLLOUT_POLICY_EXTENSION, P as applyRolloutPolicyToProfile, R as structuralRolloutPolicyFromProfile, U as rawTraceEvidenceProblem, V as commandVerifier, W as requiresRawTraceEvidence, j as withMethodRuntimeControls, z as AGENTIC_PROFILE_RESOURCE_ROOT } from "./improvement-cycle-9O4iVFOA.js";
|
|
11
11
|
import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-C7iJOWm3.js";
|
|
12
|
-
import { bt as connectStdioMcp, yt as McpSpawnFault } from "./runtime-
|
|
12
|
+
import { bt as connectStdioMcp, yt as McpSpawnFault } from "./runtime-dpJZmZtt.js";
|
|
13
13
|
import { n as defaultRedactorIdentityMaterial, r as resolveRedactor, t as defaultRedactor } from "./redact-D-u-rrcn.js";
|
|
14
14
|
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-1a38bcUT.js";
|
|
15
15
|
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";
|
|
16
|
-
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-
|
|
16
|
+
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-C35m19w0.js";
|
|
17
17
|
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-DT9FH2_t.js";
|
|
18
18
|
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";
|
|
19
19
|
import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
|
package/dist/kernel.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-DnNGJ5Gz.js";
|
|
2
2
|
import { $ as RootHandle, A as providerAsSandboxClient, At as SessionTraceBox, B as Executor, Bt as ScopeProgressInput, C as ProviderAsSandboxClientOptions, Ct as createWaitProbes, D as WorkspaceRequest, Dt as validateWaitSpec, E as SandboxClientProviderOptions, Et as timerAt, F as createTangleSandboxExactProcessProvider, Ft as sandboxSessionTraceSource, G as Handle, H as ExecutorFactory, Ht as createActivityLog, I as Agent, It as ActivityLog, J as NodeStatus, K as NodeId, L as AgentSpec, Lt as ActivityNote, M as sandboxClientAsProvider, Mt as TraceSource, N as CreateTangleSandboxExactProcessProviderOptions, Nt as createPushTraceSource, O as createAgentEnvironmentProviderRegistry, Ot as waitUntil, P as SandboxControlClient, Pt as decodeToolPart, Q as ResumedWork, R as Budget, Rt as DEFAULT_STALL_AFTER_MS, S as PlacementInfo, St as WaitSpec, T as ResourceRequest, Tt as pollFor, U as ExecutorRegistry, Ut as readWorkerProgress, V as ExecutorContext, Vt as WorkerProgress, W as ExecutorResult, X as ResultBlobStore, Y as Restart, Z as ResumedKeyState, _ as CheckpointRequest, _t as PendingWait, a as AgentEnvironmentProviderRef, at as SpawnJournal, b as ExecResult, bt as WaitProbeRegistry, c as AgentEnvironmentStatus, ct as SpawnRejection, d as AgentSession, dt as Supervisor, et as RootSignal, f as AgentSessionRef, ft as SupervisorOpts, g as CheckpointRef, gt as WidenGate, h as AgentTurnResult, ht as WaitOpts, i as AgentEnvironmentProvider, it as SpawnEvent, j as resolveAgentEnvironmentProvider, jt as ToolStepInput, k as providerAsExecutor, kt as SessionMessageLike, l as AgentEnvironmentSummary, lt as Spend, m as AgentTurnInput, mt as UsageEvent, n as AgentEnvironmentCapabilities, nt as Scope, o as AgentEnvironmentProviderRegistry, ot as SpawnOpts, p as AgentSessionStatus, pt as TreeView, q as NodeSnapshot, r as AgentEnvironmentEvent, rt as Settled, s as AgentEnvironmentQuery, st as SpawnPrior, t as AgentEnvironment, tt as Runtime, u as AgentProfileRef, ut as SupervisedResult, v as CreateAgentEnvironmentInput, vt as WaitOutcome, w as ProviderExecutorOptions, wt as isWaitOutcome, x as ForkRequest, xt as WaitRejection, y as ExecRequest, yt as WaitProbe, zt as ExecutorProgress } from "./environment-provider-CMqSAp-O.js";
|
|
3
|
-
import { $ as effectiveConcurrency, $a as RenderCorpusToInstructionsOptions, $i as LoopOptionsForDispatch, $n as ApplyContinuation, $o as PairwiseVerdict, $r as fanout, $t as authoredWorker, A as createSupervisor, Aa as CombinatorShape, Ai as AgenticTool, An as CollectedAgentTurn, Ao as LeaderboardBenchmarkAdapter, Ar as mapSandboxEvent, As as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, At as sampleFromSettled, B as createFileRunContext, Ba as FanoutSynthesis, Bi as StrategyResult, Bn as EvolutionGeneration, Bo as CompletionPolicy, Br as PromotionGateOptions, Bt as CoordinationLog, C as failuresAnalyst, Ca as Observation, Cc as piExecutor, Ci as Environment, Cn as resolveEntrySymbol, Co as RunPersonifiedOptions, Cr as SandboxLineage, Cs as WaterfallSpan, Ct as StopRule, D as worktreeFanout, Da as observe, Dc as WorktreeHarnessResult, Di as AgenticRunResult, Dn as visibleCheckScore, Do as DefinedLeaderboard, Dr as SandboxToolPartState, Ds as CoordinationEvent, Dt as createProgressTracker, E as WorktreeFanoutOptions, Ea as defaultAnalystInstruction, Ec as WorktreeCommandResult, Ei as AgenticOptions, En as structuralRollout, Eo as ShapeRegistry, Er as createSandboxLineage, Es as AnalystRegistry, Et as anyOf, F as createScope, Fa as EqualKOnCost, Fi as ShotSpec, Fn as ChampionPolicy, Fo as LeaderboardScore, Fr as probeSandboxCapabilities, Ft as bestDelivered, G as WorktreePatchArtifact, Ga as LoopUntilState, Gi as defineStrategy, Gn as pickChampion, Go as stopSentinel, Gr as builtinShapes, Gt as ReservationTicket, H as PatchDeliverableOptions, Ha as FlatWidenGate, Hi as SurfaceScore, Hn as ReproductionCheck, Ho as completionAuthorizes, Hr as promotionGate, Ht as PriorCoordination, I as settledToIteration, Ia as EqualKOnCostOptions, Ii as Strategy, In as EvolutionArchiveNode, Io as LeaderboardSpec, Ir as AcquireOptions, It as collectDelivered, J as ConcurrencyCaps, Ja as PanelSpec, Ji as runAgentic, Jn as AuthorStrategyOptions, Jo as Interval, Jr as definePersona, Jt as AuthoredProfile, K as createWorktreeCliExecutor, Ka as Panel, Ki as depthStrategy, Kn as runStrategyEvolution, Ko as AxisScoresOf, Kr as createShapeRegistry, Kt as createBudgetPool, L as InMemoryRunContext, La as EqualKVerdict, Li as StrategyArtifacts, Ln as EvolutionAuthor, Lo as defineLeaderboard, Lr as acquireSandbox, Lt as pickBestDelivered, M as supervise, Ma as CorpusFilter, Mi as CorpusReadbackOptions, Mn as collectAgentTurn, Mo as LeaderboardIterationInfo, Mr as sumSandboxUsage, Ms as MakeWorkerAgent, Mt as FinalizeContext, N as workerFromBackend, Na as CorpusRecord, Ni as RunAgenticOptions, Nn as streamAgentTurn, No as LeaderboardRunContext, Nr as CriuCapableClient, Nt as FinalizerSettled, O as TrajectoryAnalysis, Oa as renderReport, Oc as WorktreeProfileMaterializationReceipt, Oi as AgenticSurface, On as AgentTurnBackend, Oo as LeaderboardBenchScore, Or as createSandboxToolPartState, Ot as noProgressFor, P as ScopeArgs, Pa as EqualKArm, Pi as ShotPersona, Pn as ChampionPick, Po as LeaderboardScenario, Pr as SandboxCapabilities, Pt as SupervisorFinalizer, Q as RollingDispatchOptions, Qa as RenderCorpusToInstructions, Qi as LoopDispatchOptions, Qn as strategyAuthorContract, Qo as PairwiseOptions, Qr as renderCorpusToInstructions, Qt as assessAuthoredProfile, R as InMemoryRunContextOptions, Ra as Fanout, Rc as DeliverableSpec, Ri as StrategyCtx, Rn as EvolutionBandInfo, Ro as CompletionAnalyst, Rr as ResolveSandboxClientOptions, Rt as runFinalizer, S as SurfaceWorkerOut, Sa as harvestCorpus, Sc as PiSeam, Si as BenchmarkTaskRow, Sn as officialChecksFromMeta, So as RunPersonified, Sr as ForkCapableBox, Ss as WaterfallReport, St as StopDecision, T as AuthoredHarness, Ta as ObserveOptions, Tc as WorktreeCheckRunner, Ti as runBenchmark, Tn as selectBestIndex, To as ShapeContext, Tr as SessionCapableBox, Ts as AnalystFindingEvent, Tt as allWorkersStalled, U as patchDelivered, Ua as LoopUntil, Ui as adaptiveRefine, Un as StrategyEvolutionConfig, Uo as deterministicCompletion, Ur as equalKOnCost, Ut as BudgetPool, V as createInMemoryRunContext, Va as FanoutWinnerSelector, Vi as StrategyShotResult, Vn as EvolutionReport, Vo as CompletionVerdict, Vr as PromotionVerdict, Vt as FileCoordinationLog, W as WorktreeCliExecutorOptions, Wa as LoopUntilSpec, Wi as breadthStrategy, Wn as discriminatingMeans, Wo as sentinelCompletion, Wr as trajectoryReport, Wt as BudgetReadout, X as DispatchStopReason, Xa as Pipeline, Xi as sampleThenRefine, Xn as assertStrategyContract, Xo as LeaderboardOptions, Xr as FileCorpus, Xt as ProfileRichnessThresholds, Y as DispatchReport, Ya as PanelVerdict, Yi as sample, Yn as AuthoredStrategy, Yo as Leaderboard, Yr as runPersonified, Yt as ProfileRichness, Z as DispatchUnit, Za as PipelineStage, Zi as LoopCampaignDispatchOptions, Zn as authorStrategy, Zo as LeaderboardRow, Zr as InMemoryCorpus, Zt as asAuthoredProfile, _ as VerifierEnvironmentOptions, _a as InProcessSandboxClientOptions, _c as createSteerableSandboxSession, _d as replaySpawnTree, _i as BenchmarkCell, _n as composeCheckSources, _o as LoopShape, _r as SandboxRun, _s as areaUnderCurve, _t as PlateauOptions, a as SandboxInstance, aa as runAgentRounds, ac as ExecutorConfig, ad as PublishOptions, ai as verify, an as CheckRunContext, ao as TrajectoryReport, ar as LocalMcpMaterialization, as as renderLeaderboardMarkdown, at as delegate, b as SuperviseSurfaceResult, ba as HarvestFailure, bc as createInbox, bi as BenchmarkReport, bn as filterAuthoredAsserts, bo as PersonaContext, br as openSandboxRun, bs as renderAnytimeTable, bt as ProgressTrackerOptions, c as GitWorkspaceOptions, ca as localSandboxClient, cc as RouterToolsSeam, cd as defaultToolDetectors, ci as RegistryAnalyzeProjection, cn as CheckSourceCtx, co as Verify, cr as McpToolDescriptor, cs as AuditIntentInput, ct as SupervisorProfile, d as WorkspaceCommit, da as mcpSecretEnvMetadataKey, dc as createExecutor, dd as FileSpawnJournal, di as createScopeAnalyst, dn as StructuralRolloutMessage, do as WidenDecision, dr as connectStdioMcp, ds as auditIntent, dt as serveCoordinationMcp, ea as loopCampaignDispatch, ei as flatWidenGate, en as defaultProfileRichnessThresholds, eo as ScopeAnalyst, er as DumbDriverOptions, es as ProfileKeyOf, et as freeSlots, f as WorkspaceRun, fa as resolveSecretEnv, fc as createExecutorRegistry, fd as InMemoryResultBlobStore, fi as registryScopeAnalyst, fn as StructuralRolloutPolicy, fo as WidenLineage, fr as materializeLocalMcp, fs as defaultAuditorInstruction, ft as DriverAgentOptions, g as runInWorkspace, ga as InProcessPromptCtx, gc as SteerableSandboxSession, gd as pendingWaits, gi as sanitizeMcpToolSchema, gn as compareCheckOutcomes, go as DefinePersonaInput, gr as OpenSandboxRunPromptOptions, gs as anytimeReport, gt as NoProgressForOptions, h as localShell, ha as InProcessOnPrompt, hc as SteerableSandboxArgs, hd as materializeTreeView, hi as createMcpEnvironment, hn as canDisplace, ho as DefinePersona, hr as OpenSandboxRunOptions, hs as AnytimeTaskCurve, ht as AllWorkersStalledOptions, i as SandboxEvent, ia as defaultSelectWinner, ic as CliWorktreeSeam, id as EventBus, ii as selectValidWinner, in as CheckOutcome, io as TrajectoryNode, ir as naiveDriver, is as renderLeaderboardHtml, it as defaultDelegateBudget, j as SuperviseOptions, ja as Corpus, ji as ArtifactHandle, jn as StreamAgentTurnOptions, jo as LeaderboardFlagSpec, jr as mapSandboxToolEvent, js as DownMessageEvent, jt as DeliveredOutput, k as analyzeTrace, ka as AssertTraceDerivedFindings, ki as AgenticTask, kn as AgentTurnUsage, ko as LeaderboardBenchTask, kr as extractLlmCallEvent, kt as plateau, l as Shell, la as KeyProvider, lc as SandboxSeam, ld as watchTrace, li as assertTraceDerivedFindings, ln as RepairStop, lo as VerifySpec, lr as StdioMcpConnection, ls as AuditIntentOptions, lt as supervisorAgent, m as jjWorkspace, ma as inlineSandboxClient, mc as SandboxSteeringOptions, md as contentAddress, mi as McpEnvironmentOptions, mn as VisibleCheck, mo as WinnerStrategy, mr as OpenSandboxRunBeforeStartContext, ms as AnytimeStrategySummary, mt as finalizeBestDelivered, n as AnalystFinding, na as RunAgentRoundsOptions, nc as CliSeam, nd as BusRecord, ni as panel, nn as supervisorInstructions, no as ScopeWidenGate, nr as SteeringDecision, ns as leaderboard, nt as rollingDispatch, o as computeFindingId, oa as runLoop, oc as ProviderSeam, od as createEventBus, oi as widen, on as CheckRunner, oo as TrajectoryReportFn, or as MaterializeLocalMcpOptions, os as renderLeaderboardSvg, ot as DriveHarness, p as gitWorkspace, pa as secretEnvOfMcpServer, pc as DEFAULT_SANDBOX_STEERING_MAX_TURNS, pd as InMemorySpawnJournal, pi as McpEndpoint, pn as StructuralRolloutResult, po as WidenSpec, pr as Deliverable, ps as AnytimeReport, pt as driverAgent, q as assertModelAllowed, qa as PanelJudge, qi as refine, qn as selectChampion, qo as GroupOf, qr as registerShape, qt as spendFromUsageEvents, r as CreateSandboxOptions, ra as RunLoopOptions, rc as CliWorktreeBridgeSeam, rd as BusStats, ri as pipeline, rn as CheckExecChannel, ro as SteerContext, rr as dumbDriver, rs as pairwiseSignificance, rt as DelegateOptions, s as makeFinding, sa as LocalSandboxClientOptions, sc as RouterSeam, sd as WatchTraceOptions, si as CreateScopeAnalystOptions, sn as CheckSource, so as TrajectoryReportOptions, sr as McpSpawnFault, ss as renderPairwiseMarkdown, st as SupervisorAgentDeps, t as AgentProfile, ta as loopDispatch, tc as BridgeSeam, td as BusEvent, ti as loopUntil, tn as profileRichnessFinding, to as ScopeAnalyzeInput, tr as NaiveDriverOptions, ts as ScoreOf, tt as queueOf, u as Workspace, ua as envKeyProvider, uc as cliWorktreeExecutor, ud as FileResultBlobStore, ui as buildSteerContext, un as StructuralRolloutConfig, uo as Widen, ur as StdioMcpServerSpec, us as IntentAudit, ut as CoordinationMcpHandle, v as createVerifierEnvironment, va as inProcessSandboxClient, vc as Inbox, vi as BenchmarkConfig, vn as defaultExtractCandidate, vo as Outcome, vr as SandboxRunAbortError, vs as bestSoFar, vt as ProgressSample, w as superviseSurface, wa as ObserveInput, wc as piSeamKey, wi as printBenchmarkReport, wn as sandboxCheckRunner, wo as ShapeBudget, wr as SandboxLineageHandle, ws as createWaterfallCollector, wt as allOf, x as SurfaceWorkerConfig, xa as HarvestReport, xc as PI_RUNTIME, xi as BenchmarkStrategySummary, xn as modelAuthoredChecks, xo as PersonaExecutors, xr as CheckpointCapableBox, xs as WaterfallCollector, xt as ProgressView, y as SuperviseSurfaceOptions, ya as HarvestCorpusOptions, yc as InboxMessage, yi as BenchmarkLift, yn as defaultStructuralRolloutPolicy, yo as Persona, yr as TurnResult, ys as plateauLength, yt as ProgressTracker, z as RunContext, za as FanoutOptions, zc as gateOnDeliverable, zi as StrategyMessage, zn as EvolutionCandidate, zo as CompletionEvidence, zr as resolveSandboxClient, zt as runTree } from "./index-bXiMVrUv.js";
|
|
3
|
+
import { $ as effectiveConcurrency, $a as RenderCorpusToInstructionsOptions, $i as LoopOptionsForDispatch, $n as ApplyContinuation, $o as PairwiseVerdict, $r as fanout, $t as authoredWorker, A as createSupervisor, Aa as CombinatorShape, Ai as AgenticTool, An as CollectedAgentTurn, Ao as LeaderboardBenchmarkAdapter, Ar as mapSandboxEvent, As as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, At as sampleFromSettled, B as createFileRunContext, Ba as FanoutSynthesis, Bi as StrategyResult, Bn as EvolutionGeneration, Bo as CompletionPolicy, Br as PromotionGateOptions, Bt as CoordinationLog, C as failuresAnalyst, Ca as Observation, Cc as piExecutor, Ci as Environment, Cn as resolveEntrySymbol, Co as RunPersonifiedOptions, Cr as SandboxLineage, Cs as WaterfallSpan, Ct as StopRule, D as worktreeFanout, Da as observe, Dc as WorktreeHarnessResult, Di as AgenticRunResult, Dn as visibleCheckScore, Do as DefinedLeaderboard, Dr as SandboxToolPartState, Ds as CoordinationEvent, Dt as createProgressTracker, E as WorktreeFanoutOptions, Ea as defaultAnalystInstruction, Ec as WorktreeCommandResult, Ei as AgenticOptions, En as structuralRollout, Eo as ShapeRegistry, Er as createSandboxLineage, Es as AnalystRegistry, Et as anyOf, F as createScope, Fa as EqualKOnCost, Fi as ShotSpec, Fn as ChampionPolicy, Fo as LeaderboardScore, Fr as probeSandboxCapabilities, Ft as bestDelivered, G as WorktreePatchArtifact, Ga as LoopUntilState, Gi as defineStrategy, Gn as pickChampion, Go as stopSentinel, Gr as builtinShapes, Gt as ReservationTicket, H as PatchDeliverableOptions, Ha as FlatWidenGate, Hi as SurfaceScore, Hn as ReproductionCheck, Ho as completionAuthorizes, Hr as promotionGate, Ht as PriorCoordination, I as settledToIteration, Ia as EqualKOnCostOptions, Ii as Strategy, In as EvolutionArchiveNode, Io as LeaderboardSpec, Ir as AcquireOptions, It as collectDelivered, J as ConcurrencyCaps, Ja as PanelSpec, Ji as runAgentic, Jn as AuthorStrategyOptions, Jo as Interval, Jr as definePersona, Jt as AuthoredProfile, K as createWorktreeCliExecutor, Ka as Panel, Ki as depthStrategy, Kn as runStrategyEvolution, Ko as AxisScoresOf, Kr as createShapeRegistry, Kt as createBudgetPool, L as InMemoryRunContext, La as EqualKVerdict, Li as StrategyArtifacts, Ln as EvolutionAuthor, Lo as defineLeaderboard, Lr as acquireSandbox, Lt as pickBestDelivered, M as supervise, Ma as CorpusFilter, Mi as CorpusReadbackOptions, Mn as collectAgentTurn, Mo as LeaderboardIterationInfo, Mr as sumSandboxUsage, Ms as MakeWorkerAgent, Mt as FinalizeContext, N as workerFromBackend, Na as CorpusRecord, Ni as RunAgenticOptions, Nn as streamAgentTurn, No as LeaderboardRunContext, Nr as CriuCapableClient, Nt as FinalizerSettled, O as TrajectoryAnalysis, Oa as renderReport, Oc as WorktreeProfileMaterializationReceipt, Oi as AgenticSurface, On as AgentTurnBackend, Oo as LeaderboardBenchScore, Or as createSandboxToolPartState, Ot as noProgressFor, P as ScopeArgs, Pa as EqualKArm, Pi as ShotPersona, Pn as ChampionPick, Po as LeaderboardScenario, Pr as SandboxCapabilities, Pt as SupervisorFinalizer, Q as RollingDispatchOptions, Qa as RenderCorpusToInstructions, Qi as LoopDispatchOptions, Qn as strategyAuthorContract, Qo as PairwiseOptions, Qr as renderCorpusToInstructions, Qt as assessAuthoredProfile, R as InMemoryRunContextOptions, Ra as Fanout, Rc as DeliverableSpec, Ri as StrategyCtx, Rn as EvolutionBandInfo, Ro as CompletionAnalyst, Rr as ResolveSandboxClientOptions, Rt as runFinalizer, S as SurfaceWorkerOut, Sa as harvestCorpus, Sc as PiSeam, Si as BenchmarkTaskRow, Sn as officialChecksFromMeta, So as RunPersonified, Sr as ForkCapableBox, Ss as WaterfallReport, St as StopDecision, T as AuthoredHarness, Ta as ObserveOptions, Tc as WorktreeCheckRunner, Ti as runBenchmark, Tn as selectBestIndex, To as ShapeContext, Tr as SessionCapableBox, Ts as AnalystFindingEvent, Tt as allWorkersStalled, U as patchDelivered, Ua as LoopUntil, Ui as adaptiveRefine, Un as StrategyEvolutionConfig, Uo as deterministicCompletion, Ur as equalKOnCost, Ut as BudgetPool, V as createInMemoryRunContext, Va as FanoutWinnerSelector, Vi as StrategyShotResult, Vn as EvolutionReport, Vo as CompletionVerdict, Vr as PromotionVerdict, Vt as FileCoordinationLog, W as WorktreeCliExecutorOptions, Wa as LoopUntilSpec, Wi as breadthStrategy, Wn as discriminatingMeans, Wo as sentinelCompletion, Wr as trajectoryReport, Wt as BudgetReadout, X as DispatchStopReason, Xa as Pipeline, Xi as sampleThenRefine, Xn as assertStrategyContract, Xo as LeaderboardOptions, Xr as FileCorpus, Xt as ProfileRichnessThresholds, Y as DispatchReport, Ya as PanelVerdict, Yi as sample, Yn as AuthoredStrategy, Yo as Leaderboard, Yr as runPersonified, Yt as ProfileRichness, Z as DispatchUnit, Za as PipelineStage, Zi as LoopCampaignDispatchOptions, Zn as authorStrategy, Zo as LeaderboardRow, Zr as InMemoryCorpus, Zt as asAuthoredProfile, _ as VerifierEnvironmentOptions, _a as InProcessSandboxClientOptions, _c as createSteerableSandboxSession, _d as replaySpawnTree, _i as BenchmarkCell, _n as composeCheckSources, _o as LoopShape, _r as SandboxRun, _s as areaUnderCurve, _t as PlateauOptions, a as SandboxInstance, aa as runAgentRounds, ac as ExecutorConfig, ad as PublishOptions, ai as verify, an as CheckRunContext, ao as TrajectoryReport, ar as LocalMcpMaterialization, as as renderLeaderboardMarkdown, at as delegate, b as SuperviseSurfaceResult, ba as HarvestFailure, bc as createInbox, bi as BenchmarkReport, bn as filterAuthoredAsserts, bo as PersonaContext, br as openSandboxRun, bs as renderAnytimeTable, bt as ProgressTrackerOptions, c as GitWorkspaceOptions, ca as localSandboxClient, cc as RouterToolsSeam, cd as defaultToolDetectors, ci as RegistryAnalyzeProjection, cn as CheckSourceCtx, co as Verify, cr as McpToolDescriptor, cs as AuditIntentInput, ct as SupervisorProfile, d as WorkspaceCommit, da as mcpSecretEnvMetadataKey, dc as createExecutor, dd as FileSpawnJournal, di as createScopeAnalyst, dn as StructuralRolloutMessage, do as WidenDecision, dr as connectStdioMcp, ds as auditIntent, dt as serveCoordinationMcp, ea as loopCampaignDispatch, ei as flatWidenGate, en as defaultProfileRichnessThresholds, eo as ScopeAnalyst, er as DumbDriverOptions, es as ProfileKeyOf, et as freeSlots, f as WorkspaceRun, fa as resolveSecretEnv, fc as createExecutorRegistry, fd as InMemoryResultBlobStore, fi as registryScopeAnalyst, fn as StructuralRolloutPolicy, fo as WidenLineage, fr as materializeLocalMcp, fs as defaultAuditorInstruction, ft as DriverAgentOptions, g as runInWorkspace, ga as InProcessPromptCtx, gc as SteerableSandboxSession, gd as pendingWaits, gi as sanitizeMcpToolSchema, gn as compareCheckOutcomes, go as DefinePersonaInput, gr as OpenSandboxRunPromptOptions, gs as anytimeReport, gt as NoProgressForOptions, h as localShell, ha as InProcessOnPrompt, hc as SteerableSandboxArgs, hd as materializeTreeView, hi as createMcpEnvironment, hn as canDisplace, ho as DefinePersona, hr as OpenSandboxRunOptions, hs as AnytimeTaskCurve, ht as AllWorkersStalledOptions, i as SandboxEvent, ia as defaultSelectWinner, ic as CliWorktreeSeam, id as EventBus, ii as selectValidWinner, in as CheckOutcome, io as TrajectoryNode, ir as naiveDriver, is as renderLeaderboardHtml, it as defaultDelegateBudget, j as SuperviseOptions, ja as Corpus, ji as ArtifactHandle, jn as StreamAgentTurnOptions, jo as LeaderboardFlagSpec, jr as mapSandboxToolEvent, js as DownMessageEvent, jt as DeliveredOutput, k as analyzeTrace, ka as AssertTraceDerivedFindings, ki as AgenticTask, kn as AgentTurnUsage, ko as LeaderboardBenchTask, kr as extractLlmCallEvent, kt as plateau, l as Shell, la as KeyProvider, lc as SandboxSeam, ld as watchTrace, li as assertTraceDerivedFindings, ln as RepairStop, lo as VerifySpec, lr as StdioMcpConnection, ls as AuditIntentOptions, lt as supervisorAgent, m as jjWorkspace, ma as inlineSandboxClient, mc as SandboxSteeringOptions, md as contentAddress, mi as McpEnvironmentOptions, mn as VisibleCheck, mo as WinnerStrategy, mr as OpenSandboxRunBeforeStartContext, ms as AnytimeStrategySummary, mt as finalizeBestDelivered, n as AnalystFinding, na as RunAgentRoundsOptions, nc as CliSeam, nd as BusRecord, ni as panel, nn as supervisorInstructions, no as ScopeWidenGate, nr as SteeringDecision, ns as leaderboard, nt as rollingDispatch, o as computeFindingId, oa as runLoop, oc as ProviderSeam, od as createEventBus, oi as widen, on as CheckRunner, oo as TrajectoryReportFn, or as MaterializeLocalMcpOptions, os as renderLeaderboardSvg, ot as DriveHarness, p as gitWorkspace, pa as secretEnvOfMcpServer, pc as DEFAULT_SANDBOX_STEERING_MAX_TURNS, pd as InMemorySpawnJournal, pi as McpEndpoint, pn as StructuralRolloutResult, po as WidenSpec, pr as Deliverable, ps as AnytimeReport, pt as driverAgent, q as assertModelAllowed, qa as PanelJudge, qi as refine, qn as selectChampion, qo as GroupOf, qr as registerShape, qt as spendFromUsageEvents, r as CreateSandboxOptions, ra as RunLoopOptions, rc as CliWorktreeBridgeSeam, rd as BusStats, ri as pipeline, rn as CheckExecChannel, ro as SteerContext, rr as dumbDriver, rs as pairwiseSignificance, rt as DelegateOptions, s as makeFinding, sa as LocalSandboxClientOptions, sc as RouterSeam, sd as WatchTraceOptions, si as CreateScopeAnalystOptions, sn as CheckSource, so as TrajectoryReportOptions, sr as McpSpawnFault, ss as renderPairwiseMarkdown, st as SupervisorAgentDeps, t as AgentProfile, ta as loopDispatch, tc as BridgeSeam, td as BusEvent, ti as loopUntil, tn as profileRichnessFinding, to as ScopeAnalyzeInput, tr as NaiveDriverOptions, ts as ScoreOf, tt as queueOf, u as Workspace, ua as envKeyProvider, uc as cliWorktreeExecutor, ud as FileResultBlobStore, ui as buildSteerContext, un as StructuralRolloutConfig, uo as Widen, ur as StdioMcpServerSpec, us as IntentAudit, ut as CoordinationMcpHandle, v as createVerifierEnvironment, va as inProcessSandboxClient, vc as Inbox, vi as BenchmarkConfig, vn as defaultExtractCandidate, vo as Outcome, vr as SandboxRunAbortError, vs as bestSoFar, vt as ProgressSample, w as superviseSurface, wa as ObserveInput, wc as piSeamKey, wi as printBenchmarkReport, wn as sandboxCheckRunner, wo as ShapeBudget, wr as SandboxLineageHandle, ws as createWaterfallCollector, wt as allOf, x as SurfaceWorkerConfig, xa as HarvestReport, xc as PI_RUNTIME, xi as BenchmarkStrategySummary, xn as modelAuthoredChecks, xo as PersonaExecutors, xr as CheckpointCapableBox, xs as WaterfallCollector, xt as ProgressView, y as SuperviseSurfaceOptions, ya as HarvestCorpusOptions, yc as InboxMessage, yi as BenchmarkLift, yn as defaultStructuralRolloutPolicy, yo as Persona, yr as TurnResult, ys as plateauLength, yt as ProgressTracker, z as RunContext, za as FanoutOptions, zc as gateOnDeliverable, zi as StrategyMessage, zn as EvolutionCandidate, zo as CompletionEvidence, zr as resolveSandboxClient, zt as runTree } from "./index-CFJ_1m1U.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 CoordinationLog, 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 DeliveredOutput, 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, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, type FinalizeContext, type FinalizerSettled, 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 PriorCoordination, 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 ResumedKeyState, 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 SpawnPrior, type SpawnRejection, 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 SupervisorFinalizer, 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, bestDelivered, bestSoFar, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cliWorktreeExecutor, collectAgentTurn, collectDelivered, 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, pickBestDelivered, 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, runFinalizer, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, runTree, 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/kernel.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 routerChatWithUsage, S as routerChatWithTools, _ as waitUntil, a as runFinalizer, b as readWorkerProgress, c as spendFromUsageEvents, d as settledToIteration, f as createWaitProbes, g as validateWaitSpec, h as timerAt, i as pickBestDelivered, m as pollFor, n as bestDelivered, o as runTree, p as isWaitOutcome, r as collectDelivered, s as createBudgetPool, t as createSupervisor, u as createScope, v as DEFAULT_STALL_AFTER_MS, w as routerToolLoop, x as routerBrain, y as createActivityLog } from "./supervisor-sTJC9psT.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-ASQLr4-v.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-
|
|
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-dpJZmZtt.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 FileCoordinationLog, Ht as createSandboxLineage, I as authoredWorker, It as sandboxSessionTraceSource, Kt as assertModelAllowed, 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, qt as gateOnDeliverable, 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-DyPmmhJ6.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";
|
package/dist/knowledge.d.ts
CHANGED
|
@@ -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-
|
|
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-BwY61sh3.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-
|
|
2
|
+
import { M as runPersonified, d as worktreeFanout, j as definePersona } from "./runtime-dpJZmZtt.js";
|
|
3
3
|
import { t as runAnalystLoop } from "./analyst-loop-C8cGThTW.js";
|
|
4
4
|
import { Dt as createExecutorRegistry } from "./supervise-DyPmmhJ6.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-
|
|
268
|
+
//# sourceMappingURL=loop-runner-bin-C35m19w0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-runner-bin-V4EN9aNT.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
|
+
{"version":3,"file":"loop-runner-bin-C35m19w0.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,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-CMqSAp-O.js";
|
|
3
|
-
import { E as WorktreeFanoutOptions, G as WorktreePatchArtifact, T as AuthoredHarness, mo as WinnerStrategy } from "./index-
|
|
3
|
+
import { E as WorktreeFanoutOptions, G as WorktreePatchArtifact, T as AuthoredHarness, mo as WinnerStrategy } from "./index-CFJ_1m1U.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-
|
|
162
|
+
//# sourceMappingURL=loop-runner-bin-DUQF0bYz.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-
|
|
1
|
+
import { i as runLoopRunnerCli, n as LoopRunnerCliResult, r as parseLoopRunnerArgv, t as LoopRunnerCliArgs } from "./loop-runner-bin-DUQF0bYz.js";
|
|
2
2
|
export { LoopRunnerCliArgs, LoopRunnerCliResult, parseLoopRunnerArgv, runLoopRunnerCli };
|
package/dist/loop-runner-bin.js
CHANGED
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as SandboxClient, h as LoopSandboxPlacement } from "../types-DnNGJ5Gz.js";
|
|
2
|
-
import { $c as DetachedWinnerSelection, $l as DelegationStatus, $s as createDelegateHandler, Ac as DiffOptions, Al as SubmitInput, As as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, Au as DELEGATION_TRACE_MAX_BYTES, Bc as JsonRpcMessage, Bl as DelegateResearchResult, Bs as SettledWorker, Bu as DelegationStateCorruptError, Cl as DelegationRecord, Dl as DelegationRunContext, Ds as CoordinationEvent, El as DelegationResumeTick, Es as AnalystRegistry, Fc as captureWorktreeDiff, Fl as DelegateCodeResult, Fs as QuestionLevel, Fu as buildDelegationTraceSpans, Gc as FeedbackStore, Gl as DelegationError, Gs as createInProcessTransport, Hc as McpToolDescriptor, Hl as DelegateUiAuditConfig, Hs as createCoordinationTools, Hu as FileDelegationStore, Ic as createWorktree, Il as DelegateFeedbackArgs, Is as QuestionOption, Iu as capDelegationTrace, Jc as CoderDelegate, Jl as DelegationHistoryEntry, Js as DELEGATE_INPUT_SCHEMA, Kc as InMemoryFeedbackStore, Kl as DelegationFeedbackSnapshot, Ks as createMcpServer, Lc as removeWorktree, Ll as DelegateFeedbackResult, Ls as QuestionPolicy, Lu as composeLoopTraceEmitters, Mc as GitRunner, Ml as hashIdempotencyInput, Ms as MakeWorkerAgent, Mu as DelegationTraceCaps, Nc as RemoveWorktreeOptions, Nl as DelegateCodeArgs, Ns as Question, Nu as DelegationTraceCollector, Ol as DelegationTaskQueue, Os as CoordinationTools, Pc as WorktreeHandle, Pl as DelegateCodeConfig, Ps as QuestionDecision, Pu as DelegationTraceSpan, Qc as DetachedSessionDelegateOptions, Ql as DelegationResultPayload, Qs as DelegateResult, Rl as DelegateResearchArgs, Rs as QuestionRecord, Ru as createDelegationTraceCollector, Sl as DelegationArgs, Tl as DelegationResumeDriver, Ts as AnalystFindingEvent, Uc as McpTransport, Ul as DelegateUiAuditResult, Us as McpServer, Uu as FileDelegationStoreOptions, Vc as JsonRpcResponse, Vl as DelegateUiAuditArgs, Vs as WorkerWatchOptions, Vu as DelegationStore, Wc as FeedbackEvent, Wl as DelegateUiAuditRoute, Ws as McpServerOptions, Wu as InMemoryDelegationStore, Xc as CoderReviewer, Xl as DelegationProfile, Xs as DelegateArgs, Yc as CoderReview, Yl as DelegationHistoryResult, Ys as DELEGATE_TOOL_NAME, Zc as DelegateRunCtx, Zl as DelegationProgress, Zs as DelegateHandlerOptions, _l as createDetachedTurnResumeDriver, al as DelegationExecutor, au as ResearchSource, bl as parseDetachedSessionRef, cl as SiblingSandboxExecutorOptions, cu as TraceContext, dl as DetachedSessionRefParts, du as traceContextToEnv, ec as validateDelegateArgs, ed as CoderOutput, el as SettleDetachedCoderTurnOptions, eu as DelegationStatusArgs, fl as DetachedTurn, gl as RunDetachedTurnOptions, hl as DriveTurnTick, il as settleDetachedCoderTurn, iu as ResearchOutputShape, jc as DiffResult, jl as SubmitOutput, js as DownMessageEvent, ju as DELEGATION_TRACE_MAX_SPANS, kc as CreateWorktreeOptions, kl as DelegationTaskQueueOptions, ks as CoordinationToolsOptions, ku as CappedDelegationTrace, ll as createFleetWorkspaceExecutor, lu as createPropagatingTraceEmitter, ml as DriveTurnCapableBox, nl as coderTaskFromArgs, nu as FeedbackRating, ol as FleetHandle, ou as UiAuditLensFilter, pl as DetachedTurnResumeDriverOptions, qc as eventToSnapshot, ql as DelegationHistoryArgs, qs as DELEGATE_DESCRIPTION, rl as detachedSessionDelegate, ru as FeedbackRefersTo, sl as FleetWorkspaceExecutorOptions, su as UiAuditorDelegationOutput, tl as UiAuditorDelegate, tu as DelegationStatusResult, ul as createSiblingSandboxExecutor, uu as readTraceContextFromEnv, vl as detachedTurnEvents, wl as DelegationResumeContext, xl as runDetachedTurn, yl as formatDetachedSessionRef, zl as DelegateResearchConfig, zs as QuestionUrgency, zu as DelegationPersistenceError } from "../index-
|
|
2
|
+
import { $c as DetachedWinnerSelection, $l as DelegationStatus, $s as createDelegateHandler, Ac as DiffOptions, Al as SubmitInput, As as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, Au as DELEGATION_TRACE_MAX_BYTES, Bc as JsonRpcMessage, Bl as DelegateResearchResult, Bs as SettledWorker, Bu as DelegationStateCorruptError, Cl as DelegationRecord, Dl as DelegationRunContext, Ds as CoordinationEvent, El as DelegationResumeTick, Es as AnalystRegistry, Fc as captureWorktreeDiff, Fl as DelegateCodeResult, Fs as QuestionLevel, Fu as buildDelegationTraceSpans, Gc as FeedbackStore, Gl as DelegationError, Gs as createInProcessTransport, Hc as McpToolDescriptor, Hl as DelegateUiAuditConfig, Hs as createCoordinationTools, Hu as FileDelegationStore, Ic as createWorktree, Il as DelegateFeedbackArgs, Is as QuestionOption, Iu as capDelegationTrace, Jc as CoderDelegate, Jl as DelegationHistoryEntry, Js as DELEGATE_INPUT_SCHEMA, Kc as InMemoryFeedbackStore, Kl as DelegationFeedbackSnapshot, Ks as createMcpServer, Lc as removeWorktree, Ll as DelegateFeedbackResult, Ls as QuestionPolicy, Lu as composeLoopTraceEmitters, Mc as GitRunner, Ml as hashIdempotencyInput, Ms as MakeWorkerAgent, Mu as DelegationTraceCaps, Nc as RemoveWorktreeOptions, Nl as DelegateCodeArgs, Ns as Question, Nu as DelegationTraceCollector, Ol as DelegationTaskQueue, Os as CoordinationTools, Pc as WorktreeHandle, Pl as DelegateCodeConfig, Ps as QuestionDecision, Pu as DelegationTraceSpan, Qc as DetachedSessionDelegateOptions, Ql as DelegationResultPayload, Qs as DelegateResult, Rl as DelegateResearchArgs, Rs as QuestionRecord, Ru as createDelegationTraceCollector, Sl as DelegationArgs, Tl as DelegationResumeDriver, Ts as AnalystFindingEvent, Uc as McpTransport, Ul as DelegateUiAuditResult, Us as McpServer, Uu as FileDelegationStoreOptions, Vc as JsonRpcResponse, Vl as DelegateUiAuditArgs, Vs as WorkerWatchOptions, Vu as DelegationStore, Wc as FeedbackEvent, Wl as DelegateUiAuditRoute, Ws as McpServerOptions, Wu as InMemoryDelegationStore, Xc as CoderReviewer, Xl as DelegationProfile, Xs as DelegateArgs, Yc as CoderReview, Yl as DelegationHistoryResult, Ys as DELEGATE_TOOL_NAME, Zc as DelegateRunCtx, Zl as DelegationProgress, Zs as DelegateHandlerOptions, _l as createDetachedTurnResumeDriver, al as DelegationExecutor, au as ResearchSource, bl as parseDetachedSessionRef, cl as SiblingSandboxExecutorOptions, cu as TraceContext, dl as DetachedSessionRefParts, du as traceContextToEnv, ec as validateDelegateArgs, ed as CoderOutput, el as SettleDetachedCoderTurnOptions, eu as DelegationStatusArgs, fl as DetachedTurn, gl as RunDetachedTurnOptions, hl as DriveTurnTick, il as settleDetachedCoderTurn, iu as ResearchOutputShape, jc as DiffResult, jl as SubmitOutput, js as DownMessageEvent, ju as DELEGATION_TRACE_MAX_SPANS, kc as CreateWorktreeOptions, kl as DelegationTaskQueueOptions, ks as CoordinationToolsOptions, ku as CappedDelegationTrace, ll as createFleetWorkspaceExecutor, lu as createPropagatingTraceEmitter, ml as DriveTurnCapableBox, nl as coderTaskFromArgs, nu as FeedbackRating, ol as FleetHandle, ou as UiAuditLensFilter, pl as DetachedTurnResumeDriverOptions, qc as eventToSnapshot, ql as DelegationHistoryArgs, qs as DELEGATE_DESCRIPTION, rl as detachedSessionDelegate, ru as FeedbackRefersTo, sl as FleetWorkspaceExecutorOptions, su as UiAuditorDelegationOutput, tl as UiAuditorDelegate, tu as DelegationStatusResult, ul as createSiblingSandboxExecutor, uu as readTraceContextFromEnv, vl as detachedTurnEvents, wl as DelegationResumeContext, xl as runDetachedTurn, yl as formatDetachedSessionRef, zl as DelegateResearchConfig, zs as QuestionUrgency, zu as DelegationPersistenceError } from "../index-CFJ_1m1U.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 createWorktree, F as CodexExecutionDiagnosticError, N as parseCodexTokenUsage, O as runWorktreeHarness, P as runLocalHarness, j as removeWorktree, k as captureWorktreeDiff } from "../supervisor-sTJC9psT.js";
|
|
4
|
-
import { W as selectValidWinner, m as runCoderChecks, q as assertTraceDerivedFindings } from "../runtime-
|
|
4
|
+
import { W as selectValidWinner, m as runCoderChecks, q as assertTraceDerivedFindings } from "../runtime-dpJZmZtt.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-DyPmmhJ6.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 { lt as createOpenAICompatibleBackend } from "../index-
|
|
2
|
+
import { lt as createOpenAICompatibleBackend } from "../index-HsQm1Rrr.js";
|
|
3
3
|
import { RunRecord } from "@tangle-network/agent-eval";
|
|
4
4
|
//#region src/primeintellect/types.d.ts
|
|
5
5
|
type PrimeIntellectSplit = 'train' | 'eval';
|