@tangle-network/agent-runtime 0.343.4 → 0.344.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activation-NJiV0MHb.d.ts → activation-CGtGr0qu.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/intelligence.d.ts +2 -2
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +1 -1
- package/dist/{loop-runner-CyUoVMkv.js → loop-runner-BM509Zmp.js} +2 -2
- package/dist/{loop-runner-CyUoVMkv.js.map → loop-runner-BM509Zmp.js.map} +1 -1
- package/dist/{loop-runner-D56Rpd2z.d.ts → loop-runner-DsVqEv8O.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/profiles.d.ts +1 -1
- package/dist/{runtime-CefFtXC2.js → runtime-B_93oWEv.js} +12 -7
- package/dist/{runtime-CefFtXC2.js.map → runtime-B_93oWEv.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +8 -8
- package/dist/tui/index.d.ts +1 -1
- package/dist/{types-D0ZRqIJh.d.ts → types-DztCeYd6.d.ts} +11 -3
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ba as AgentTurnUsage, Mp as ExecutorConfig, O_ as OtelExportConfig, Ud as BudgetPool, Va as CollectedAgentTurn, dd as WorkerSlots, nm as SharedBoxPlacementOptions, tm as SharedBoxPlacement } from "./types-
|
|
1
|
+
import { Ba as AgentTurnUsage, Mp as ExecutorConfig, O_ as OtelExportConfig, Ud as BudgetPool, Va as CollectedAgentTurn, dd as WorkerSlots, nm as SharedBoxPlacementOptions, tm as SharedBoxPlacement } from "./types-DztCeYd6.js";
|
|
2
2
|
import { AgentCandidateBundle, AgentCandidateExperiment, AgentImprovementActivation, AgentImprovementActivationIntent, AgentImprovementActivationOutcome, AgentImprovementActivationResult, AgentImprovementActivationTarget, AgentImprovementEvaluation, AgentImprovementProposal, AgentImprovementReview, AgentImprovementReviewDecision, AgentImprovementSurface, AgentProfile, AgentProfileDiff, AgentProfileImprovementChange, AgentProfileImprovementExecutionRef, AgentProfileImprovementExperiment, AgentTrainingReceipt, HarnessType, ReasoningEffort, Sha256Digest } from "@tangle-network/agent-interface";
|
|
3
3
|
import { CostLedgerHandle, CostReceiptInput, MaximumCharge, PairedPromotionDecision, PendingCostCallView, ProposalFinding, RunRecord } from "@tangle-network/agent-eval";
|
|
4
4
|
import { ProposalFinding as ProposalFinding$1 } from "@tangle-network/agent-eval/analyst";
|
|
@@ -1081,4 +1081,4 @@ declare function verifyAgentImprovementActivation(input: {
|
|
|
1081
1081
|
}): AgentImprovementActivation;
|
|
1082
1082
|
//#endregion
|
|
1083
1083
|
export { ImproveCodeBaseOptions as $, CandidateGenerator as $t, AgentProfileMeasuredSurface as A, SearchPromotion as At, DecideSearchImprovementOptions as B, sharedBoxLane as Bt, verifyAgentImprovementProposal as C, ImproveSearchOptions as Ct, AgentImprovementActivationTargetIdentity as D, ImprovementCodeCandidate as Dt, AGENT_PROFILE_MEASURED_SURFACES as E, ImproveSurface as Et, isAgentImprovementProfileSurface as F, SearchLaneOptions as Ft, ImproveTrainingOptions as G, AgenticGeneratorOptions as Gt, decideSearchImprovement as H, DeepReadonly as Ht, isAgentProfileMeasuredSurface as I, SearchTraceOptions as It, ProfileTrainerRequest as J, AgenticGeneratorShotReceipt as Jt, ImproveTrainingResult as K, AgenticGeneratorShotDisposition as Kt, improve as L, SharedBoxSearchLane as Lt, agentImprovementProfileSurfaceDigest as M, SearchEnvironmentFault as Mt, agentImprovementProfileSurfaceInput as N, SearchLane$1 as Nt, AgentImprovementProfileSurface as O, ImprovementProfileCandidate as Ot, agentImprovementTargetProfileDiffs as P, SearchLaneKind as Pt, ImproveCandidateValidator as Q, commandVerifier as Qt, SearchMethodOptions as R, dedicatedLane as Rt, verifyAgentImprovementActivationResult as S, ImproveSearchMethod as St, AGENT_IMPROVEMENT_PROFILE_SURFACES as T, ImproveSkillsOptions as Tt, CheckpointServingPort as U, ReadonlyAgentProfile as Ut, SearchImprovementDecision as V, subscriptionLane as Vt, ControlledTrainingCommand as W, AgenticGeneratorExecutorForWorktree as Wt, createCommandProfileTrainer as X, VerifyResult as Xt, TrainingBoundaryResult as Y, Verifier as Yt, ImproveCandidateValidationInput as Z, agenticGenerator as Zt, createAgentImprovementActivationResult as _, ImproveResult as _t, AgentImprovementActivationTransitionInput as a, ImproveLineage as at, reviewAgentImprovementProposal as b, ImproveSearchAgent as bt, CreateAgentImprovementActivationOptions as c, ImproveMethodLineage as ct, ExecuteAgentImprovementActivationInput as d, ImproveMethodSource as dt, ImproveCodeOptions as et, ExecuteAgentImprovementActivationOptions as f, ImproveOptimizationRunOptions as ft, createAgentImprovementActivation as g, ImproveProfileSurface as gt, SealedCandidateActivationTransitionInput as h, ImproveProfileComponents as ht, AgentImprovementActivationTransition as i, ImproveCustomCodeGeneratorOptions as it, agentImprovementProfileDiffs as j, SearchCellContext as jt, AgentImprovementTargetProfileDiffOptions as k, SearchDispatchContext as kt, CreateAgentImprovementActivationResultOptions as l, ImproveMethodOptions as lt, ReviewAgentImprovementInput as m, ImproveProfileAgent as mt, AgentImprovementActivationResultStore as n, ImproveCodeRunOptions as nt, AgentProfileImprovementActivationOperation as o, ImproveMethodContext as ot, ProfileImprovementActivationTransitionInput as p, ImproveOptions as pt, ProfileTrainer as q, AgenticGeneratorShotExecution as qt, AgentImprovementActivationTargetPlan as r, ImproveCost as rt, AgentProfileImprovementActivationTargetPlan as s, ImproveMethodFactory as st, AgentImprovementActivationReconciliation as t, ImproveCodeResult as tt, CreateAgentImprovementProposalOptions as u, ImproveMethodResult as ut, createAgentImprovementProposal as v, ImproveRuntimeCodeGeneratorOptions as vt, verifyAgentImprovementReview as w, ImproveSearchResult as wt, verifyAgentImprovementActivation as x, ImproveSearchIdentity as xt, executeAgentImprovementActivation as y, ImproveScenarioPartitions as yt, searchMethod as z, routerLane as zt };
|
|
1084
|
-
//# sourceMappingURL=activation-
|
|
1084
|
+
//# sourceMappingURL=activation-CGtGr0qu.d.ts.map
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fx as AgentRunSpec, S as RuntimeStreamEvent, iS as OutputAdapter, oS as SandboxClient } from "./types-
|
|
1
|
+
import { Fx as AgentRunSpec, S as RuntimeStreamEvent, iS as OutputAdapter, oS as SandboxClient } from "./types-DztCeYd6.js";
|
|
2
2
|
import { a as ProfileMaterializationContract, c as assertProfileMaterializes, n as AssertProfileMaterializationOptions, o as ProfileMaterializationIssue, r as DefineProfileMaterializationContractOptions, s as ValidateProfileMaterializationOptions, t as AgentProfileMaterializationAxis } from "./profile-materialization-bPm0gGLO.js";
|
|
3
3
|
import { a as createSurfaceImprovementProposer, c as SurfaceValidationIssue, i as SurfaceImprovementEdit, l as renderSurfaceIssues, n as DraftPatchInput, o as AgentSurfaces, r as DraftPatchOutput, s as ResolvedSurface, t as CreateSurfaceImprovementProposerOptions, u as validateSurfaces } from "./improvement-adapter-sIthWkcN.js";
|
|
4
4
|
import { AgentProfile, AgentProfileFileMount, AgentProfileMcpServer } from "@tangle-network/agent-interface";
|
package/dist/agent.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as sha256 } from "./durable-file-DLcrzrjL.js";
|
|
2
2
|
import { Gi as mapSandboxEvent, Gr as sandboxActProfileMaterialization, Ir as assertProfileMaterialization, Lr as assertProfileMaterializes, jt as createSandboxForSpec } from "./supervisor-D3M9ab1v.js";
|
|
3
|
-
import "./runtime-
|
|
3
|
+
import "./runtime-B_93oWEv.js";
|
|
4
4
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
5
5
|
import { isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
6
6
|
import { parseFindingSubject } from "@tangle-network/agent-eval/analyst";
|
package/dist/durable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $l as PursuitVersions, Cu as FileObserverJournal, D as RetainedPendingCause, Dd as SelectSeat, Du as observerRecordDigest, Eu as ObserverRecordKind, Gf as CoordinationAuthentication, Hd as DeadlineCheckIn, Jf as CoordinationReadAccess, Jl as JudgedPursuitVersion, Km as ToolLoopCompactionOptions, Mv as DownMessageAuthorizationInput, Qf as CoordinationRejectReason, Ql as PursuitVersionStop, Rv as MapOnSettleRoute, Su as projectPursuit, Td as SeatSelectionInput, Tu as ObserverRecord, V as NodeId, Xl as NextPursuitVersionInput, Yf as CoordinationTransportOptions, Yl as NextPursuitVersion, Zf as CoordinationHttpAudit, Zl as PursuitVersionChain, _u as PursuitNodeUsage, au as SupervisePursuitError, bu as PursuitRunTotals, cd as AuthorizedSpawnContext, cu as superviseGraphPursuit, dd as WorkerSlots, df as ResolveDriveHarness, du as PursuitObserverDelivery, eu as SettledPursuitVersion, fu as PursuitCostProvenance, gu as PursuitNodeTiming, gv as EscalateQuestion, hu as PursuitNodeProjection, it as SupervisedResult, iu as SuperviseGraphPursuitOptions, jv as ContinuityMode, kv as AuthorizedDownMessage, lf as DriveHarnessOwnerContext, lu as supervisePursuit, mu as PursuitNodePlatform, nd as RUN_FORK_CORRELATION_KEYS, nf as readRootStream, nu as VersionVerdict, ou as SupervisePursuitOptions, ov as WorkerWatchOptions, pu as PursuitNodeCost, qf as CoordinationPublicAddress, rf as readRootStreamReceipt, rt as RootStreamReceipt, ru as assertPursuitVersions, sd as AuthorizedSpawn, su as SupervisedPursuitResult, td as PursuitFork, tf as RootStreamRecord, tu as VersionJudge, uu as RunReopen, vu as PursuitProjection, wd as SeatSelection, wu as ObserverJournal, wy as AnalyzeOnSettleRoute, xu as PursuitStatus, yf as ManagerWakePolicy, yu as PursuitRunProjection, yv as QuestionEscalationOutcome } from "./types-
|
|
1
|
+
import { $l as PursuitVersions, Cu as FileObserverJournal, D as RetainedPendingCause, Dd as SelectSeat, Du as observerRecordDigest, Eu as ObserverRecordKind, Gf as CoordinationAuthentication, Hd as DeadlineCheckIn, Jf as CoordinationReadAccess, Jl as JudgedPursuitVersion, Km as ToolLoopCompactionOptions, Mv as DownMessageAuthorizationInput, Qf as CoordinationRejectReason, Ql as PursuitVersionStop, Rv as MapOnSettleRoute, Su as projectPursuit, Td as SeatSelectionInput, Tu as ObserverRecord, V as NodeId, Xl as NextPursuitVersionInput, Yf as CoordinationTransportOptions, Yl as NextPursuitVersion, Zf as CoordinationHttpAudit, Zl as PursuitVersionChain, _u as PursuitNodeUsage, au as SupervisePursuitError, bu as PursuitRunTotals, cd as AuthorizedSpawnContext, cu as superviseGraphPursuit, dd as WorkerSlots, df as ResolveDriveHarness, du as PursuitObserverDelivery, eu as SettledPursuitVersion, fu as PursuitCostProvenance, gu as PursuitNodeTiming, gv as EscalateQuestion, hu as PursuitNodeProjection, it as SupervisedResult, iu as SuperviseGraphPursuitOptions, jv as ContinuityMode, kv as AuthorizedDownMessage, lf as DriveHarnessOwnerContext, lu as supervisePursuit, mu as PursuitNodePlatform, nd as RUN_FORK_CORRELATION_KEYS, nf as readRootStream, nu as VersionVerdict, ou as SupervisePursuitOptions, ov as WorkerWatchOptions, pu as PursuitNodeCost, qf as CoordinationPublicAddress, rf as readRootStreamReceipt, rt as RootStreamReceipt, ru as assertPursuitVersions, sd as AuthorizedSpawn, su as SupervisedPursuitResult, td as PursuitFork, tf as RootStreamRecord, tu as VersionJudge, uu as RunReopen, vu as PursuitProjection, wd as SeatSelection, wu as ObserverJournal, wy as AnalyzeOnSettleRoute, xu as PursuitStatus, yf as ManagerWakePolicy, yu as PursuitRunProjection, yv as QuestionEscalationOutcome } from "./types-DztCeYd6.js";
|
|
2
2
|
import { n as RuntimeDecisionKind, r as RuntimeDecisionPoint, t as RuntimeDecisionEvidenceRef } from "./runtime-hooks-nsqxSUFL.js";
|
|
3
3
|
import { LockIdentity } from "@tangle-network/agent-eval/lock-holder";
|
|
4
4
|
//#region src/durable/chat-engine.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $y as Redactor, A_ as OtelExporter, B_ as RuntimeStreamEventSummary, C as RuntimeFailureCause, D_ as OtelAttribute, F_ as padSpanId, G_ as createRuntimeStreamEventCollector, H_ as SanitizedKnowledgeReadinessReport, I_ as padTraceId, K_ as sanitizeKnowledgeReadinessReport, Kl as IsolatedCheckResult, L_ as RuntimeEventCollector, M as Budget, M_ as buildLoopOtelSpans, Mp as ExecutorConfig, N_ as createOtelExporter, O_ as OtelExportConfig, P_ as loopEventToOtelSpan, R_ as RuntimeStreamEventCollector, S as RuntimeStreamEvent, T as RuntimeFailureOwner, U_ as SanitizedKnowledgeRequirement, V_ as RuntimeTelemetryOptions, W_ as createRuntimeEventCollector, Wl as IsolatedCheckBoxEvidence, _ as RunAgentTaskOptions, _S as startRuntimeRun, a as AgentKnowledgeProvider, ab as JudgeError, b as RuntimeSession, bf as SupervisorProfile, c as AgentTaskContext, d as AgentTaskStatus, dS as RuntimeRunCost, fS as RuntimeRunHandle, g as OpenAIChatToolChoice, gS as RuntimeRunStatus, h as OpenAIChatTool, hS as RuntimeRunRow, i as AgentExecutionBackend, ib as ConfigError, it as SupervisedResult, j_ as OtelSpan, k_ as OtelExportStats, l as AgentTaskRunResult, ld as SuperviseOptions, m as OpenAIChatResponseFormat, mS as RuntimeRunPersistenceAdapter, n as AgentBackendContext, nb as AgentEvalErrorCode, o as AgentRuntimeEvent, ob as NotFoundError, p as KnowledgeReadinessDecision, pS as RuntimeRunOptions, r as AgentBackendInput, rb as BackendTransportError, s as AgentRuntimeEventSink, sb as ValidationError, t as AgentAdapter, tb as AgentEvalError, u as AgentTaskSpec, uS as RuntimeRunCompleteInput, ub as ExecutorFactory, v as RunAgentTaskStreamOptions, w as RuntimeFailureCode, x as RuntimeSessionStore, y as RuntimeCanonicalStreamEvent, z_ as RuntimeStreamEventSink } from "./types-
|
|
1
|
+
import { $y as Redactor, A_ as OtelExporter, B_ as RuntimeStreamEventSummary, C as RuntimeFailureCause, D_ as OtelAttribute, F_ as padSpanId, G_ as createRuntimeStreamEventCollector, H_ as SanitizedKnowledgeReadinessReport, I_ as padTraceId, K_ as sanitizeKnowledgeReadinessReport, Kl as IsolatedCheckResult, L_ as RuntimeEventCollector, M as Budget, M_ as buildLoopOtelSpans, Mp as ExecutorConfig, N_ as createOtelExporter, O_ as OtelExportConfig, P_ as loopEventToOtelSpan, R_ as RuntimeStreamEventCollector, S as RuntimeStreamEvent, T as RuntimeFailureOwner, U_ as SanitizedKnowledgeRequirement, V_ as RuntimeTelemetryOptions, W_ as createRuntimeEventCollector, Wl as IsolatedCheckBoxEvidence, _ as RunAgentTaskOptions, _S as startRuntimeRun, a as AgentKnowledgeProvider, ab as JudgeError, b as RuntimeSession, bf as SupervisorProfile, c as AgentTaskContext, d as AgentTaskStatus, dS as RuntimeRunCost, fS as RuntimeRunHandle, g as OpenAIChatToolChoice, gS as RuntimeRunStatus, h as OpenAIChatTool, hS as RuntimeRunRow, i as AgentExecutionBackend, ib as ConfigError, it as SupervisedResult, j_ as OtelSpan, k_ as OtelExportStats, l as AgentTaskRunResult, ld as SuperviseOptions, m as OpenAIChatResponseFormat, mS as RuntimeRunPersistenceAdapter, n as AgentBackendContext, nb as AgentEvalErrorCode, o as AgentRuntimeEvent, ob as NotFoundError, p as KnowledgeReadinessDecision, pS as RuntimeRunOptions, r as AgentBackendInput, rb as BackendTransportError, s as AgentRuntimeEventSink, sb as ValidationError, t as AgentAdapter, tb as AgentEvalError, u as AgentTaskSpec, uS as RuntimeRunCompleteInput, ub as ExecutorFactory, v as RunAgentTaskStreamOptions, w as RuntimeFailureCode, x as RuntimeSessionStore, y as RuntimeCanonicalStreamEvent, z_ as RuntimeStreamEventSink } from "./types-DztCeYd6.js";
|
|
2
2
|
import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, i as RuntimeHookContext, l as RuntimeHooks, o as RuntimeHookEvent, s as RuntimeHookPhase, u as composeRuntimeHooks } from "./runtime-hooks-nsqxSUFL.js";
|
|
3
3
|
import { N as AgentCandidateOutputArtifactPort } from "./workspace-streams-BiS4ABah.js";
|
|
4
4
|
import { a as ImprovementProposalSource } from "./types-Cwrea-bU.js";
|
|
5
5
|
import { i as SurfaceImprovementEdit } from "./improvement-adapter-sIthWkcN.js";
|
|
6
|
-
import { $ as ImproveCodeBaseOptions, $t as CandidateGenerator, At as SearchPromotion, B as DecideSearchImprovementOptions, Bt as sharedBoxLane, Ct as ImproveSearchOptions, Dt as ImprovementCodeCandidate, Et as ImproveSurface, Ft as SearchLaneOptions, G as ImproveTrainingOptions, Gt as AgenticGeneratorOptions, H as decideSearchImprovement, Ht as DeepReadonly, It as SearchTraceOptions, J as ProfileTrainerRequest, Jt as AgenticGeneratorShotReceipt, K as ImproveTrainingResult, Kt as AgenticGeneratorShotDisposition, L as improve, Lt as SharedBoxSearchLane, Mt as SearchEnvironmentFault, Nt as SearchLane, Ot as ImprovementProfileCandidate, Pt as SearchLaneKind, Q as ImproveCandidateValidator, Qt as commandVerifier, R as SearchMethodOptions, Rt as dedicatedLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as ReadonlyAgentProfile, V as SearchImprovementDecision, Vt as subscriptionLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorExecutorForWorktree, X as createCommandProfileTrainer, Xt as VerifyResult, Y as TrainingBoundaryResult, Yt as Verifier, Z as ImproveCandidateValidationInput, Zt as agenticGenerator, at as ImproveLineage, bt as ImproveSearchAgent, ct as ImproveMethodLineage, dt as ImproveMethodSource, et as ImproveCodeOptions, ft as ImproveOptimizationRunOptions, gt as ImproveProfileSurface, ht as ImproveProfileComponents, i as AgentImprovementActivationTransition, it as ImproveCustomCodeGeneratorOptions, jt as SearchCellContext, kt as SearchDispatchContext, lt as ImproveMethodOptions, mt as ImproveProfileAgent, n as AgentImprovementActivationResultStore, nt as ImproveCodeRunOptions, ot as ImproveMethodContext, q as ProfileTrainer, qt as AgenticGeneratorShotExecution, rt as ImproveCost, st as ImproveMethodFactory, t as AgentImprovementActivationReconciliation, tt as ImproveCodeResult, ut as ImproveMethodResult, vt as ImproveRuntimeCodeGeneratorOptions, wt as ImproveSearchResult, xt as ImproveSearchIdentity, yt as ImproveScenarioPartitions, z as searchMethod, zt as routerLane } from "./activation-
|
|
7
|
-
import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-
|
|
6
|
+
import { $ as ImproveCodeBaseOptions, $t as CandidateGenerator, At as SearchPromotion, B as DecideSearchImprovementOptions, Bt as sharedBoxLane, Ct as ImproveSearchOptions, Dt as ImprovementCodeCandidate, Et as ImproveSurface, Ft as SearchLaneOptions, G as ImproveTrainingOptions, Gt as AgenticGeneratorOptions, H as decideSearchImprovement, Ht as DeepReadonly, It as SearchTraceOptions, J as ProfileTrainerRequest, Jt as AgenticGeneratorShotReceipt, K as ImproveTrainingResult, Kt as AgenticGeneratorShotDisposition, L as improve, Lt as SharedBoxSearchLane, Mt as SearchEnvironmentFault, Nt as SearchLane, Ot as ImprovementProfileCandidate, Pt as SearchLaneKind, Q as ImproveCandidateValidator, Qt as commandVerifier, R as SearchMethodOptions, Rt as dedicatedLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as ReadonlyAgentProfile, V as SearchImprovementDecision, Vt as subscriptionLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorExecutorForWorktree, X as createCommandProfileTrainer, Xt as VerifyResult, Y as TrainingBoundaryResult, Yt as Verifier, Z as ImproveCandidateValidationInput, Zt as agenticGenerator, at as ImproveLineage, bt as ImproveSearchAgent, ct as ImproveMethodLineage, dt as ImproveMethodSource, et as ImproveCodeOptions, ft as ImproveOptimizationRunOptions, gt as ImproveProfileSurface, ht as ImproveProfileComponents, i as AgentImprovementActivationTransition, it as ImproveCustomCodeGeneratorOptions, jt as SearchCellContext, kt as SearchDispatchContext, lt as ImproveMethodOptions, mt as ImproveProfileAgent, n as AgentImprovementActivationResultStore, nt as ImproveCodeRunOptions, ot as ImproveMethodContext, q as ProfileTrainer, qt as AgenticGeneratorShotExecution, rt as ImproveCost, st as ImproveMethodFactory, t as AgentImprovementActivationReconciliation, tt as ImproveCodeResult, ut as ImproveMethodResult, vt as ImproveRuntimeCodeGeneratorOptions, wt as ImproveSearchResult, xt as ImproveSearchIdentity, yt as ImproveScenarioPartitions, z as searchMethod, zt as routerLane } from "./activation-CGtGr0qu.js";
|
|
7
|
+
import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-DsVqEv8O.js";
|
|
8
8
|
import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentProfile as AgentProfile$1, ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, CustomTokenPricing, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, MaximumCharge, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
|
|
10
10
|
import { ZodType } from "zod";
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { n as createAgentImprovementActivationResult } from "./activation-C5rFWX
|
|
|
9
9
|
import { l as sharedBoxLane, o as routerLane, r as dedicatedLane, t as SearchEnvironmentFault, u as subscriptionLane, y as decideSearchImprovement } from "./search-executor-t05_9Wwk.js";
|
|
10
10
|
import { t as sealAgentCandidateBundle } from "./bundle-DKQtOO9d.js";
|
|
11
11
|
import { t as supervise } from "./supervise-BuVVC7Bl.js";
|
|
12
|
-
import { n as auditLoopRunner } from "./loop-runner-
|
|
12
|
+
import { n as auditLoopRunner } from "./loop-runner-BM509Zmp.js";
|
|
13
13
|
import { agentCandidateKnowledgeSchema, agentCandidateWorkspaceManifestMaterialSchema, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
14
14
|
import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
|
|
15
15
|
import { z } from "zod";
|
package/dist/intelligence.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $y as Redactor, S as RuntimeStreamEvent, V_ as RuntimeTelemetryOptions, eS as LoopTraceEvent, eb as defaultRedactor, k_ as OtelExportStats, lm as AgentEnvironmentProviderRef, um as AgentEnvironmentProviderRegistry } from "./types-
|
|
1
|
+
import { $y as Redactor, S as RuntimeStreamEvent, V_ as RuntimeTelemetryOptions, eS as LoopTraceEvent, eb as defaultRedactor, k_ as OtelExportStats, lm as AgentEnvironmentProviderRef, um as AgentEnvironmentProviderRegistry } from "./types-DztCeYd6.js";
|
|
2
2
|
import { H as AgentCandidateTaskExecution, N as AgentCandidateOutputArtifactPort, S as AgentCandidateExecutorPort, _ as AgentCandidateBenchmarkGraderPort, y as AgentCandidateExecutionPorts } from "./workspace-streams-BiS4ABah.js";
|
|
3
3
|
import { d as RunAnalystLoopResult, u as RunAnalystLoopOpts } from "./types-Cwrea-bU.js";
|
|
4
4
|
import { b as AgentCandidateExecutionClaimStore, f as PrepareAgentCandidateExecutionOptions, i as CreateProtectedAgentCandidateModelPortOptions, m as ExecutePreparedAgentCandidateOptions, u as parseAgentCandidateProfileActivation } from "./protected-model-port-DVVh-hEk.js";
|
|
5
|
-
import { A as AgentProfileMeasuredSurface, C as verifyAgentImprovementProposal, D as AgentImprovementActivationTargetIdentity, E as AGENT_PROFILE_MEASURED_SURFACES, F as isAgentImprovementProfileSurface, I as isAgentProfileMeasuredSurface, M as agentImprovementProfileSurfaceDigest, N as agentImprovementProfileSurfaceInput, O as AgentImprovementProfileSurface, P as agentImprovementTargetProfileDiffs, S as verifyAgentImprovementActivationResult, T as AGENT_IMPROVEMENT_PROFILE_SURFACES, _ as createAgentImprovementActivationResult, _t as ImproveResult, a as AgentImprovementActivationTransitionInput, b as reviewAgentImprovementProposal, c as CreateAgentImprovementActivationOptions, d as ExecuteAgentImprovementActivationInput, f as ExecuteAgentImprovementActivationOptions, g as createAgentImprovementActivation, h as SealedCandidateActivationTransitionInput, j as agentImprovementProfileDiffs, k as AgentImprovementTargetProfileDiffOptions, l as CreateAgentImprovementActivationResultOptions, lt as ImproveMethodOptions, m as ReviewAgentImprovementInput, o as AgentProfileImprovementActivationOperation, p as ProfileImprovementActivationTransitionInput, pt as ImproveOptions, r as AgentImprovementActivationTargetPlan, s as AgentProfileImprovementActivationTargetPlan, u as CreateAgentImprovementProposalOptions, ut as ImproveMethodResult, v as createAgentImprovementProposal, w as verifyAgentImprovementReview, x as verifyAgentImprovementActivation, y as executeAgentImprovementActivation, yt as ImproveScenarioPartitions } from "./activation-
|
|
5
|
+
import { A as AgentProfileMeasuredSurface, C as verifyAgentImprovementProposal, D as AgentImprovementActivationTargetIdentity, E as AGENT_PROFILE_MEASURED_SURFACES, F as isAgentImprovementProfileSurface, I as isAgentProfileMeasuredSurface, M as agentImprovementProfileSurfaceDigest, N as agentImprovementProfileSurfaceInput, O as AgentImprovementProfileSurface, P as agentImprovementTargetProfileDiffs, S as verifyAgentImprovementActivationResult, T as AGENT_IMPROVEMENT_PROFILE_SURFACES, _ as createAgentImprovementActivationResult, _t as ImproveResult, a as AgentImprovementActivationTransitionInput, b as reviewAgentImprovementProposal, c as CreateAgentImprovementActivationOptions, d as ExecuteAgentImprovementActivationInput, f as ExecuteAgentImprovementActivationOptions, g as createAgentImprovementActivation, h as SealedCandidateActivationTransitionInput, j as agentImprovementProfileDiffs, k as AgentImprovementTargetProfileDiffOptions, l as CreateAgentImprovementActivationResultOptions, lt as ImproveMethodOptions, m as ReviewAgentImprovementInput, o as AgentProfileImprovementActivationOperation, p as ProfileImprovementActivationTransitionInput, pt as ImproveOptions, r as AgentImprovementActivationTargetPlan, s as AgentProfileImprovementActivationTargetPlan, u as CreateAgentImprovementProposalOptions, ut as ImproveMethodResult, v as createAgentImprovementProposal, w as verifyAgentImprovementReview, x as verifyAgentImprovementActivation, y as executeAgentImprovementActivation, yt as ImproveScenarioPartitions } from "./activation-CGtGr0qu.js";
|
|
6
6
|
import { AgentCandidateBenchmarkCellRef, AgentCandidateEvaluationPolicy, AgentCandidateExperiment, AgentCandidateExperimentMaterial, AgentCandidateExperimentMeasurement, AgentCandidateLineage, AgentImprovementActivation, AgentImprovementActivationIntent, AgentImprovementActivationOutcome, AgentImprovementActivationResult, AgentImprovementActivationTargetState, AgentImprovementActivationTargetTransition, AgentImprovementEvaluation, AgentImprovementMeasuredComparison, AgentImprovementProposal, AgentImprovementProposal as AgentImprovementProposal$1, AgentImprovementReview, AgentImprovementReviewDecision, AgentImprovementSource, AgentProfile, AgentProfileDiff, AgentProfileImprovementExecutionRef, AgentProfileImprovementExperiment, AgentProfileImprovementMeasuredComparison, AgentProfileImprovementMeasurement, AgentProfileImprovementRunReceipt, AgentProfileImprovementTaskMaterial, CandidateExecutionEvidence, CandidateExecutionEvidence as CandidateExecutionEvidence$1, Sha256Digest } from "@tangle-network/agent-interface";
|
|
7
7
|
import { CostLedgerHandle, TraceStore } from "@tangle-network/agent-eval";
|
|
8
8
|
import { ProposalFinding as ProposalFinding$1 } from "@tangle-network/agent-eval/analyst";
|
package/dist/kernel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as NoWinnerError, $a as strategyTournament, $b as RecoverRetainedInteractiveRunOptions, $c as TrajectoryNode, $d as ReserveOptions, $g as LeaderboardRow, $i as ChatTransportExecutorOptions, $n as SqlRunContextOptions, $o as createScopeAnalyst, $p as DEFAULT_SHARED_BOX_WORKERS, $r as GraphRunRecord, $s as depthStrategy, $t as createVerifierEnvironment, $u as naiveContinuationPrompt, $v as claimsAuthority, $x as LoopTraceEmitter, A as TraceRootArtifact, AS as RetainedRunAdmissionHook, Aa as filterAuthoredAsserts, Ab as ExecutorTeardownWarning, Ac as AssertTraceDerivedFindings, Ad as InMemoryRunContextOptions, Af as plateau, Ag as CodexRolloutStoreReader, Ai as SpawnJournal, Al as LeaderboardScenario, Am as SandboxOutputMarker, An as settledWorkerOut, Ao as PrivateCasDurableStore, Ar as RemoteWorkerEvents, As as InProcessSandboxClientOptions, At as AgentEnvironmentStatus, Au as EdgeTraversal, Av as ContinuationInstruction, Ax as ProviderWorkspaceRetentionPort, B as Handle, BS as RetainedRunSnapshot, Ba as AgentTurnUsage, Bb as ToolStepInput, Bc as FanoutWinnerSelector, Bd as createSupervisorSpanRecorder, Bf as DeliveredOutput, Bg as CodeModeStore, Bi as SupervisorOpts, Bl as declaredCheckDigest, Bm as RouterTransportConfig, Bn as WorkspaceRun, Bo as renderCorpusToInstructions, Bp as RouterToolsSeam, Br as loadProfile, Bs as materializeLocalMcp, Bt as CreateAgentEnvironmentInput, Bv as MapTraversalEvent, Bx as LoopDecisionPayload, By as SpawnForest, CS as RecoverRetainedRunOptions, C_ as runAgentRounds, Ca as StructuralRolloutResult, Cb as UnknownMaterializationReason, Cc as ObservationAnalysis, Cd as SeatSegment, Cf as PlateauOptions, Cg as completionAuthorizes, Ci as GraphDesignerExtraTools, Cl as DefinedLeaderboard, Cm as ResolvedMcpServerLaunch, Cn as readWorkerInteractiveBinding, Co as recoverRetainedInteractiveRun, Cr as supervisorRunDir, Cs as LocalSandboxClientOptions, Ct as SuperviseProfileEntry, Cx as ProviderNativeCapturePhase, Cy as AnalystRunContext, DS as RetainedInteractiveIntentAdmission, Da as composeCheckSources, Db as ExecutorCancellation, Dc as defaultAnalystInstruction, Df as allWorkersStalled, Dg as CodexForkBoundary, Di as delegate, Dl as LeaderboardFlagSpec, Dm as resolveSecretEnv, Dn as WorkerEvidenceInput, Do as profileChatClient, Dr as RemoteSupervisorAgent, Ds as inlineSandboxClient, Dt as AgentEnvironmentEvent, Dv as questionEscalationTargets, Dx as ProviderWorkspaceCaptureResult, Dy as DefinedAnalystRecord, E as EvidencePendingEvent, ES as RetainedInteractiveEnvironmentAdmission, E_ as SandboxEvidenceRetentionPort, Ea as compareCheckOutcomes, Eb as ExecutorAccounting, Ec as ObserveOptions, Ed as SeatStage, Ef as StopRule, Eg as stopSentinel, Ei as defaultDelegateBudget, El as LeaderboardBenchmarkAdapter, Em as resolveMcpServerLaunch, En as VERIFY_TAIL_CHARS, Eo as resolveSandboxClient, Er as writeWorkerSteer, Es as defaultSelectWinner, Et as AgentEnvironmentCapabilities, Ex as ProviderWorkspaceCaptureReceipt, Ey as AuthoredAnalystLimits, F as ResourceLimit, FS as RetainedRunEnvironmentAdmission, Fa as selectBestIndex, Fb as WorkerInteractiveSession, Fc as EqualKArm, Fd as withRunContext, Ff as readRunCancellation, Fg as createCodexRolloutStoreReader, Fi as RootSegment, Fl as DeclaredCheckPlacement, Fm as SandboxServedBackend, Fn as withUntrackedArtifacts, Fo as trajectoryReport, Fp as CliSeam, Fr as SupervisorCleanupReceipt, Fs as McpListedTool, Ft as AgentSessionStatus, Fu as GraphTopology, Fv as DownMessageEvent, Fx as AgentRunSpec, Fy as CodexExecutionPolicy, G as Settled, Ga as EvolutionAuthor, Gb as DEFAULT_STALL_AFTER_MS, Gc as PanelSpec, Gd as BudgetReadout, Gg as RunCodeModeOptions, Gi as Scope, Gl as IsolatedCheckOptions, Gm as ToolLoopCompaction, Gn as TrajectoryAnalysis, Go as pipeline, Gp as SteerableSandboxSession, Gr as InteractiveWorkerEnvironment, Gs as AgenticTool, Gt as PlacementInfo, Gu as RegisteredPrompt, Gv as PeerMailEvent, Gx as LoopLineageOptions, Gy as SpawnForestTree, H as NodeSnapshot, HS as RetainedRunTurnInput, Ha as StreamAgentTurnOptions, Hb as createPushTraceSource, Hc as LoopUntilState, Hf as FinalizerSettled, Hg as CodeModeToolContext, Hi as ReenteredWorkers, Hl as readDeclaredCheck, Hm as ToolSpec, Hn as jjWorkspace, Ho as flatWidenGate, Hp as DEFAULT_SANDBOX_STEERING_MAX_TURNS, Hr as profileRegistry, Hs as AgenticRunResult, Ht as ExecRequest, Hu as GraphRouteError, Hv as DEFAULT_PEER_MAIL_LIMITS, Hx as LoopIterationDispatchPayload, Hy as SpawnForestInDoubtNode, I as ResourceSpend, IS as RetainedRunEventOptions, Ia as structuralRollout, Ib as WorkerInteractiveUnavailableReason, Ic as EqualKOnCostOptions, Id as SupervisorSpanAttributes, If as ReentryContinuity, Ig as harnessUsageIsEmpty, Ii as RootSegmentEntry, Il as DeclaredCheckStateCapture, Im as SandboxUsageLedger, In as GitWorkspaceOptions, Io as definePersona, Ip as CliWorktreeBridgeSeam, Ir as provisionSupervisor, Is as McpSpawnFault, It as AgentTurnResult, Iu as RunGraphOptions, Iv as WorkerResumeContext, Ix as DefaultVerdict, Iy as SqlRunOwnershipError, J as SpawnRejection, J_ as WorktreeCheckRunner, Ja as StrategyEvolutionConfig, Jb as TeamProgress, Jc as RenderCorpusToInstructionsOptions, Jd as ReservationHolder, Jg as AxisScoresOf, Ji as WorkerEventCursor, Jm as ToolLoopToolCall, Jn as parseWorkerToolTraceArtifact, Jo as widen, Jp as Inbox, Jr as InteractiveWorkerResult, Js as RunAgenticOptions, Jt as SandboxInstance, Ju as delegatesWorkerBriefPrompt, Jv as PeerMailReadout, Jx as LoopResult, Jy as replaySpawnTree, K as SpawnOpts, Ka as EvolutionReport, Kb as ExecutorProgress, Kc as PanelVerdict, Kd as LeakedReservation, Kf as CoordinationMcpHandle, Kg as createCodeModeTools, Ki as UnconfirmedTeardown, Kl as IsolatedCheckResult, Kn as analyzeTrace, Ko as selectValidWinner, Kp as createSteerableSandboxSession, Kr as InteractiveWorkerKeyInput, Ks as ArtifactHandle, Kt as ResourceRequest, Ku as analyzesFindingsReportPrompt, Kv as PeerMailLimits, Kx as LoopPlanDescription, Ky as loadSpawnForest, L as Spend, LS as RetainedRunHandle, La as visibleCheckScore, Lb as WorkerTraceEvidence, Lc as EqualKVerdict, Ld as SupervisorSpanOptions, Lf as ReentryTaskInput, Lg as readCodexRolloutSession, Li as RootSignal, Ll as assertDeclaredCheck, Lm as extractLlmCallEvent, Ln as Shell, Lo as runPersonified, Lp as CliWorktreeSeam, Lr as ProfileRegistryDir, Ls as StdioMcpConnection, Lt as AnalystFinding, Lv as MapItemFailurePolicy, Lx as Driver, Ly as openSqlRunStore, M as Budget, MS as RetainedRunCancellation, Ma as officialChecksFromMeta, Mb as HeldForContinuation, Mc as Corpus, Md as RunContextLease, Mf as RunCancellation, Mg as CodexRolloutTurn, Mi as WorkspaceCheckpointMarker, Ml as LeaderboardSpec, Mm as createSandboxToolPartState, Mn as CopyOptions, Mo as PrivateCasOptions, Mp as ExecutorConfig, Mr as ProvisionSupervisorConnection, Ms as HttpMcpServerSpec, Mt as AgentProfile, Mu as GraphEdgeCapError, Mx as ExecutorToolCall, N as BudgetOverspend, NS as RetainedRunDispatchedAdmission, N_ as createOtelExporter, Na as resolveEntrySymbol, Nb as HeldRelease, Nc as CorpusFilter, Nd as createFileRunContext, Nf as cancelRun, Ng as CodexStoreDelta, Ni as RecursiveReservationPolicy, Nl as defineLeaderboard, Nm as mapSandboxEvent, Nn as UntrackedCopyStats, No as createPrivateCasArtifactPort, Np as createExecutor, Nr as ProvisionSupervisorRequest, Ns as LocalMcpMaterialization, Nt as AgentSession, Nu as GraphNode, Nv as DownMessageDeliveryAttempt, Nx as TokenUsageProvenance, O as TRACE_ROOT_SCHEMA, OS as RetainedInteractiveStartedAdmission, Oa as defaultExtractCandidate, Ob as ExecutorCancellationRequest, Oc as observe, Od as subscriptionUsageLimitSignal, Of as anyOf, Og as CodexRolloutIdentity, Oi as ResultBlobStore, Ol as LeaderboardIterationInfo, Om as secretEnvOfMcpServer, On as closingWorkerNote, Oo as profileOptimizerModelCall, Or as RemoteSupervisorReader, Os as InProcessOnPrompt, Ot as AgentEnvironmentProvider, Ou as AgentGraph, Ox as ProviderWorkspaceEntryMetadata, Oy as CodexExecutionEvidence, P as BudgetViolation, PS as RetainedRunEffect, Pa as sandboxCheckRunner, Pb as Runtime, Pc as CorpusRecord, Pd as createInMemoryRunContext, Pf as readRunCancelRequest, Pg as addHarnessUsage, Pi as RootHandle, Pl as DeclaredCheck, Pm as mapSandboxToolEvent, Pn as copyUntrackedIntoClone, Po as equalKOnCost, Pp as CliInPlaceSeam, Pr as ProvisionedSupervisor, Ps as MaterializeLocalMcpOptions, Pt as AgentSessionRef, Pu as GraphResult, Pv as DownMessageDeliveryOutcome, Px as UsageEvent, Py as CodexTokenUsage, Q as FleetYield, Q_ as GitRunner, Qa as runStrategyEvolution, Qb as ReconnectRetainedInteractiveRunOptions, Qc as SteerContext, Qd as ReservationTicket, Qg as LeaderboardOptions, Qi as ChatSessionStore, Qn as FencedSqlRunContext, Qo as buildSteerContext, Qp as DEFAULT_SHARED_BOX_RESOURCES, Qr as GraphRegistryDir, Qs as breadthStrategy, Qt as VerifierEnvironmentOptions, Qu as kernelPromptRegistry, Qv as PeerMailboxOptions, Qx as LoopTokenUsage, Qy as contentAddress, R as SpendChannel, RS as RetainedRunIntentAdmission, Ra as AgentTurnBackend, Rb as WorkerTraceUnavailableReason, Rc as FanoutOptions, Rd as SupervisorSpanOutcome, Rf as UNPROVEN_CONTINUITY, Rg as HarnessUsage, Ri as SteerableRootHandle, Rl as checkProgramDigest, Rm as sumSandboxUsage, Rn as Workspace, Ro as FileCorpus, Rp as ProviderSeam, Rr as ProfileRunRecord, Rs as StdioMcpServerSpec, Rt as CheckpointRef, Ru as TraversalContinuity, Rx as ExecCtx, Ry as SqlAdapter, SS as RecoverRetainedRunIntentOptions, S_ as RunAgentRoundsOptions, Sa as StructuralRolloutPolicy, Sb as RootMaterialization, Sc as Observation, Sd as SuperviseRegistryTable, Sf as NoProgressForOptions, Sg as CompletionVerdict, Si as DesignerToolsEnv, Sl as providerAsSandboxClient, Sm as KeyProvider, Sn as attachWorker, So as reconnectRetainedInteractiveRun, Sr as safeWorkerFile, Ss as superviseDispatch, Sx as ProviderCheckpointCaptureContext, Sy as AnalystRegistry, TS as RetainedInteractiveAdmission, T_ as SandboxEvidenceReceipt, Ta as canDisplace, Tb as Executor, Tc as ObserveInput, Tf as StopDecision, Tg as sentinelCompletion, Ti as DelegateOptions, Tl as LeaderboardBenchTask, Tm as mcpSecretEnvMetadataKey, Tn as NOTE_MAX_CHARS, To as ResolveSandboxClientOptions, Tr as workerInboxFileFromEventDir, Ts as TerminalDecision, Tt as AgentEnvironment, Tv as QuestionRecord, Tx as ProviderWorkspaceCaptureProvenance, Ty as AuthoredAnalystDefinition, U as NodeStatus, US as StartRetainedRunInEnvironmentOptions, Ua as collectAgentTurn, Ub as ActivityLog, Uc as Panel, Ud as BudgetPool, Uf as SupervisorFinalizer, Ug as CodeModeToolsOptions, Ui as ResumedKeyState, Ul as IsolatedCheckBox, Um as ToolLoopCallContext, Un as localShell, Uo as loopUntil, Up as SandboxSteeringOptions, Ur as profileRunsForName, Us as AgenticSurface, Ut as ExecResult, Uu as PromptHandle, Uv as PEER_MAIL_WIRE_KEY, Ux as LoopIterationEndedPayload, Uy as SpawnForestMissingTree, V as NodeId, VS as RetainedRunStartMaterial, Va as CollectedAgentTurn, Vb as TraceSource, Vc as LoopUntilSpec, Vd as WorkerTraceResolver, Vf as FinalizeContext, Vg as CodeModeTool, Vi as Agent, Vl as declaredCheckJudge, Vm as RouterRouting, Vn as gitWorkspace, Vo as fanout, Vp as SandboxSeam, Vr as pickBestProfile, Vs as AgenticOptions, Vt as CreateSandboxOptions, Vu as defaultEdgeTraversalCap, Vv as AUTHORITY_MARKERS, Vx as LoopEndedPayload, Vy as SpawnForestEvent, W as RetainedExecutionState, WS as StartRetainedRunOptions, Wa as streamAgentTurn, Wb as ActivityNote, Wc as PanelJudge, Wd as BudgetPoolRestore, Wf as bestDelivered, Wg as CodeModeToolset, Wi as ResumedWork, Wl as IsolatedCheckBoxEvidence, Wm as ToolLoopChat, Wn as runInWorkspace, Wo as panel, Wp as SteerableSandboxArgs, Wr as recordProfileRun, Ws as AgenticTask, Wt as ForkRequest, Wu as PromptRegistry, Wv as PeerMailEnvelope, Wx as LoopIterationStartedPayload, Wy as SpawnForestNode, X as SubtreeSummary, X_ as WorktreeHarnessResult, Xa as TournamentCell, Xb as createActivityLog, Xc as ScopeAnalyzeInput, Xd as ReservationShortfall, Xf as serveCoordinationMcp, Xg as Interval, Xi as WorkerEventPage, Xn as createSupervisor, Xo as RegistryAnalyzeProjection, Xp as InboxMessage, Xr as InPlaceCliExecutorOptions, Xs as StrategyShotResult, Xt as computeFindingId, Xu as dumbContinuationPassPrompt, Xv as PeerMailSendInput, Xx as LoopStartedPayload, Xy as InMemoryResultBlobStore, Y as SubtreeResult, Y_ as WorktreeCommandResult, Ya as StrategyTournament, Yb as WorkerProgress, Yc as ScopeAnalyst, Yd as ReservationRejection, Yg as GroupOf, Yi as WorkerEventEntry, Yn as DEFAULT_MAX_DEPTH, Yo as CreateScopeAnalystOptions, Yp as InboxLease, Yr as workerFromInteractiveProvider, Ys as StrategyMessage, Yt as WorkspaceRequest, Yu as dumbContinuationFailPrompt, Yv as PeerMailRefusal, Yx as LoopSandboxPlacement, Yy as FileSpawnJournal, Z as TreeView, Z_ as WorktreeProfileMaterializationReceipt, Za as TournamentRow, Zb as readWorkerProgress, Zc as ScopeWidenGate, Zd as ReservationStage, Zg as Leaderboard, Zi as ChatCompletionsTransport, Zn as createRootHandle, Zo as assertTraceDerivedFindings, Zp as PeerInboxMessage, Zr as createInPlaceCliExecutor, Zs as SurfaceScore, Zt as makeFinding, Zu as formatPromptHandle, Zv as PeerMailbox, Zx as LoopTeardownFailedPayload, Zy as InMemorySpawnJournal, __ as renderAnytimeTable, _a as CheckSource, _b as ExecutorNodeContext, _c as HarvestCorpusOptions, _d as isPreSpawnExecutorFailure, _f as SupervisorToolDescriptor, _g as mapExecutorResult, _i as RollingDispatchOptions, _l as RunPersonifiedOptions, _m as UnavailablePausePolicy, _n as WorktreePatchArtifact, _o as recoverRetainedRun, _r as cancelWorker, _s as LoopOptionsForDispatch, _x as HarnessTranscriptReadOptions, _y as watchTrace, aS as RunProvenance, a_ as pairwiseSignificance, aa as AuthoredProfile, ac as ShotSpec, ai as graphRegistry, al as WidenDecision, am as sharedBoxPlacement, an as SurfaceReader, ao as SandboxRunAbortError, ap as ContinuationEntry, ar as SearchSpecOwnedOption, as as sanitizeMcpToolSchema, at as DriverAttemptRecord, av as ToolOutcomeEvent, ax as HarnessTranscriptArtifact, bS as NativeContextContinuationInput, b_ as WaterfallSpan, ba as StructuralRolloutConfig, bb as NodeExecutionIdentity, bc as HarvestReport, bd as withWorkerSpawnRetry, bf as SupervisorProfile, bg as CompletionEvidence, bi as rollingDispatch, bl as ShapeRegistry, bm as BridgeModelCredential, bn as WorkerInteractiveBinding, bo as ClaimRetainedInteractiveControlOptions, br as readWorkerSteerAcknowledgement, bs as loopCampaignDispatch, bv as QuestionEscalationRecord, bx as resolveHarnessTranscriptCapture, by as AnalystKind, cS as ValidationCtx, c_ as renderLeaderboardSvg, ca as asAuthoredProfile, cb as AgentSpec, cc as StrategyCtx, cf as DriveHarness, ci as loadGraph, cl as WinnerStrategy, cm as sharedWorkerClientName, cn as fsSurfaceReader, co as SandboxLineage, cp as ContinuationPanelResult, cr as searchPresets, cs as BenchmarkLift, ct as DriverFailureClass, cv as GateDecision, cx as HarnessTranscriptFile, d_ as AnytimeStrategySummary, da as profileRichnessFinding, db as ExecutorRegistry, dc as assertStrategyContract, di as recordGraphRun, dl as LoopShape, dm as createAgentEnvironmentProviderRegistry, dn as analystsFromRegistry, do as AcquireOptions, dp as PanelFinding, dr as createScope, ds as BenchmarkTaskRow, dx as ReadableEnvironment, dy as BusStats, eS as LoopTraceEvent, e_ as PairwiseOptions, ea as ChatTransportTool, ec as refine, ed as promptHandle, ef as createBudgetPool, ei as GraphSelection, el as TrajectoryReport, em as SharedBoxCloseReceipt, en as BoxSurfaceReaderOptions, eo as Deliverable, ep as CoordinationLog, er as createFencedSqlRunContext, es as registryScopeAnalyst, et as ProviderModelAttemptEvidence, ev as CoordinationEvent, ex as RetainedInteractiveAdmissionHook, ey as createPeerMailbox, f as BackendErrorDetail, f_ as AnytimeTaskCurve, fa as supervisorInstructions, fb as SpawnModelSubstitution, fc as authorStrategy, fd as createWorkerSlots, ff as ResolveSupervisorTools, fg as CheckUnavailableError, fi as storedGraphDigests, fl as Outcome, fm as resolveAgentEnvironmentProvider, fn as failuresAnalyst, fo as acquireSandbox, fp as VerdictSummary, fr as ScopeArgs, fs as Environment, fv as RouteGate, fx as captureHarnessTranscript, fy as EventBus, g_ as plateauLength, ga as CheckRunner, gb as ExecutorMaterialization, gc as strategyAuthorSystemPrompt, gd as WorkerSpawnRetryPolicy, gf as SupervisorNodeContextSeed, gg as gateOnDeliverable, gi as DispatchUnit, gl as RunPersonified, gm as providerAsExecutor, gn as WorktreeCliExecutorOptions, go as reconnectRetainedRun, gp as DriverRetryPolicy, gr as WriteWorkerSteerOptions, gs as LoopDispatchOptions, gt as MakeWorkerAgent, gx as HarnessTranscriptReadLimits, gy as defaultToolDetectors, h_ as bestSoFar, ha as CheckRunContext, hb as ExecutorExecutionBinding, hc as strategyAuthorContract, hd as WorkerSpawnRetryHooks, hf as SupervisorNodeContext, hg as ExecutorResultMapping, hi as DispatchStopReason, hl as PersonaExecutors, hm as ProviderPromptOptions, hn as worktreeFanout, ho as createS3PrivateCasStore, hp as DriverReentry, hr as WorkerSteerRequest, hs as LoopCampaignDispatchOptions, hx as HarnessTranscriptMetadata, hy as WatchTraceOptions, iS as OutputAdapter, i_ as leaderboard, ia as createChatSessionStore, ic as AuthoredStrategy, id as superviseFleetCapabilities, if as supervisorAgent, ii as graphFromStored, il as Widen, im as SharedWorkerIdentity, in as SurfaceReadOutcome, io as SandboxRun, ip as ContinuationAppend, ir as SearchSpecInputs, is as createMcpEnvironment, it as SupervisedResult, ix as StartRetainedInteractiveRunOptions, j as TraceSummary, jS as RetainedRunCancelOptions, ja as modelAuthoredChecks, jb as HeldEnvironment, jc as CombinatorShape, jd as RunContext, jf as RunCancelRequest, jg as CodexRolloutStoreRef, ji as TraceRootReceipt, jl as LeaderboardScore, jm as SandboxToolPartState, jn as spendFromUsageEvents, jo as PrivateCasOffloadReport, jp as createExecutorRegistry, jr as connectRemoteSupervisor, js as inProcessSandboxClient, jt as AgentEnvironmentSummary, ju as GraphEdge, jx as ExecutorProgressEvent, k as TRACE_SUMMARY_SCHEMA, kS as RetainedRunAdmission, ka as defaultStructuralRolloutPolicy, kb as ExecutorResult, kc as renderReport, kd as InMemoryRunContext, kf as noProgressFor, kg as CodexRolloutSession, ki as SpawnEvent, kl as LeaderboardRunContext, km as SandboxLeafOut, kn as composeWorkerEvidence, ko as PrivateCasArtifactPort, kr as RemoteSupervisorTree, ks as InProcessPromptCtx, kt as AgentEnvironmentQuery, ku as EdgeDeliveryOutcome, kx as ProviderWorkspaceRetentionContext, ky as LocalHarnessResult, lS as Validator, l_ as renderPairwiseMarkdown, la as assessAuthoredProfile, lb as ExecutorContext, lc as StrategyResult, ld as SuperviseOptions, li as lookupGraph, ll as DefinePersona, ln as harvestSurfaceDiffs, lo as SandboxLineageHandle, lp as ContinuationPolicy, lr as searchSpecDigest, ls as BenchmarkReport, lt as DriverRepromptRefusal, lv as GateRequest, lx as HarnessTranscriptUnavailable, ly as BusEvent, m_ as areaUnderCurve, ma as CheckOutcome, mb as ExecutionBindingReceipt, mc as sampleThenRefine, md as WorkerSpawnRetryAttempt, mg as DeliverableSpec, mi as DispatchReport, ml as PersonaContext, mm as ProviderLeafOut, mn as WorktreeFanoutOptions, mo as S3PrivateCasStoreOptions, mp as DriverContractState, mr as WorkerSteerAcknowledgement, ms as runBenchmark, mv as RouteWhen, mx as persistHarnessTranscript, my as createEventBus, nS as MountManifestEntry, n_ as ProfileKeyOf, na as chatTransportExecutor, nc as sample, ni as digestOfGraph, nl as Verify, nm as SharedBoxPlacementOptions, nn as SurfaceDiff, no as OpenSandboxRunOptions, nr as SEARCH_SPEC_CORRELATION_KEY, ns as McpEndpoint, nt as RootProviderModelEvidence, nv as LeadMessage, nx as RetainedInteractiveRunHandle, ny as peerMailTools, oS as SandboxClient, o_ as renderLeaderboardHtml, oa as ProfileRichness, oc as Strategy, od as workerFromBackend, of as CoordinationToolFace, oi as graphRunsFor, ol as WidenLineage, om as ROUTER_CLIENT_HEADER, on as WatchedSurface, oo as TurnResult, op as ContinuationPanel, or as assertSearchSpec, os as BenchmarkCell, ot as DriverAttemptStop, ox as HarnessTranscriptCapture, p_ as anytimeReport, pa as CheckExecChannel, pb as AgentExecutionRef, pc as defineStrategy, pd as ResolvedWorkerSpawnRetry, pf as SupervisorAgentDeps, pg as CheckVerdict, pi as taskShapeDigest, pl as Persona, pm as ProviderExecutorOptions, pn as AuthoredHarness, po as S3PrivateCasStore, pp as admitContinuationPolicy, pr as WorkerCancellation, ps as printBenchmarkReport, pv as RouteMatch, px as harnessTranscriptArtifact, py as PublishOptions, q as SpawnPrior, q_ as InPlaceHarnessResult, qa as EvolutionStrategy, qb as ScopeProgressInput, qc as PipelineStage, qd as ReservationFloor, qg as runCodeMode, qi as WidenGate, ql as runIsolatedCheck, qm as ToolLoopMessageRecord, qn as WorkerToolTraceArtifact, qo as verify, qp as AuthorityInboxMessage, qr as InteractiveWorkerOptions, qs as CorpusReadbackOptions, qt as SandboxEvent, qu as createPromptRegistry, qv as PeerMailOutcome, qx as LoopPlanPayload, qy as FileResultBlobStore, rS as MountRecorder, r_ as ScoreOf, ra as chatWorkerSeam, rc as AuthorStrategyOptions, rd as supervise, ri as graphDigest, rl as VerifySpec, rm as SharedBoxStats, rn as SurfaceReadBox, ro as OpenSandboxRunPromptOptions, rr as SearchSpec, rs as McpEnvironmentOptions, rt as RootStreamReceipt, rv as ManagerReentryState, rx as RetainedInteractiveStartMaterial, ry as peerMailVerbNames, sS as SelectionReceipt, s_ as renderLeaderboardMarkdown, sa as ProfileRichnessThresholds, sc as StrategyArtifacts, sf as CoordinationVerbs, si as listGraphRuns, sl as WidenSpec, sm as sharedBoxRefusal, sn as boxSurfaceReader, so as openSandboxRun, sp as ContinuationPanelInput, sr as compileSearchSpec, ss as BenchmarkConfig, st as DriverContinuationRecord, sx as HarnessTranscriptEvidence, tS as LoopWinner, t_ as PairwiseVerdict, ta as ChatWorkerSeamOptions, tc as runAgentic, ti as StoredGraph, tl as TrajectoryReportOptions, tm as SharedBoxPlacement, tn as HarvestSurfaceDiffsOptions, to as OpenSandboxRunBeforeStartContext, tp as FileCoordinationLog, tr as CompiledSearchSpec, ts as observationFromRegistry, tt as ProviderModelExecutionEvidence, tv as EventAcknowledgement, tx as RetainedInteractiveEnvironmentInput, ty as isPeerMailEnvelope, u_ as AnytimeReport, ua as defaultProfileRichnessThresholds, ub as ExecutorFactory, uc as adaptiveRefine, uf as ObserveSupervisorNodeEvent, ui as pickBestGraph, ul as DefinePersonaInput, um as AgentEnvironmentProviderRegistry, un as AnalystAuthoring, uo as createSandboxLineage, up as ContinuationProfile, ur as settledToIteration, us as BenchmarkStrategySummary, ut as BlockedToolReport, uv as JsonScalar, ux as HarnessTranscriptUnavailableReason, uy as BusRecord, vS as NativeContextContinuationExecution, v_ as WaterfallCollector, va as CheckSourceCtx, vb as MaterializedExecutionIdentity, vc as HarvestError, vd as resolveWorkerSpawnRetry, vf as SupervisorToolInvocationContext, vg as verdictFromJudgeScore, vi as freeSlots, vl as ShapeBudget, vm as ProviderPlacement, vn as createWorktreeCliExecutor, vo as startRetainedRun, vr as legacySupervisorRunDir, vs as SuperviseDispatchOptions, vt as SettledWorker, vv as QuestionDecision, vx as RetainedHarnessTranscriptCapture, vy as AnalystAssignmentRecord, wS as RecoverRetainedRunResult, w_ as SandboxEvidenceContext, wa as VisibleCheck, wb as EnvironmentTeardownReceipt, wc as ObservationError, wf as ProgressView, wg as deterministicCompletion, wi as graphDesignerExtraTools, wl as LeaderboardBenchScore, wm as envKeyProvider, wn as EVIDENCE_MAX_CHARS, wo as startRetainedInteractiveRun, wr as supervisorRunsRoot, ws as TERMINAL_DECISIONS, wt as WorkerSpawnContext, wv as QuestionPolicy, wx as ProviderWorkspaceAttemptProvenance, xS as ReconnectRetainedRunOptions, x_ as createWaterfallCollector, xa as StructuralRolloutMessage, xb as ProfileMaterializationReceipt, xc as harvestCorpus, xd as SuperviseRegistry, xf as AllWorkersStalledOptions, xg as CompletionPolicy, xi as DesignerRunGraphEnv, xl as ProviderAsSandboxClientOptions, xm as BridgeSeam, xn as WorkerInteractiveProviderSource, xo as claimRetainedInteractiveControl, xr as readWorkerSteerRequests, xs as loopDispatch, xv as QuestionEscalationTarget, xx as retainHarnessTranscript, xy as AnalystLensOutput, yS as NativeContextContinuationHandle, y_ as WaterfallReport, ya as RepairStop, yb as MaterializedModelIdentity, yc as HarvestFailure, yd as retryPreSpawnRefusals, yg as CompletionAnalyst, yi as queueOf, yl as ShapeContext, ym as BridgeHarnessStore, yn as AttachWorkerOptions, yo as startRetainedRunInEnvironment, yr as readWorkerCancellation, ys as SuperviseOptionsForDispatch, yx as RetainedHarnessTranscriptDescriptor, yy as AnalystFindingEvent, z as SpendGap, zS as RetainedRunReplayPoint, za as AgentTurnInput, zb as SessionMessageLike, zc as FanoutSynthesis, zd as SupervisorSpanRecorder, zf as composeReentryTask, zg as decodeHarnessUsage, zi as Supervisor, zl as declaredCheckDeliverable, zm as RouterResponseReceipt, zn as WorkspaceCommit, zo as InMemoryCorpus, zp as RouterSeam, zr as bestProfileFor, zs as connectStdioMcp, zt as CheckpointRequest, zu as runGraph, zv as MapSpawnMarker, zx as Iteration, zy as materializeTreeView } from "./types-D0ZRqIJh.js";
|
|
1
|
+
import { $ as NoWinnerError, $a as strategyTournament, $b as RecoverRetainedInteractiveRunOptions, $c as TrajectoryNode, $d as ReserveOptions, $g as LeaderboardRow, $i as ChatTransportExecutorOptions, $n as SqlRunContextOptions, $o as createScopeAnalyst, $p as DEFAULT_SHARED_BOX_WORKERS, $r as GraphRunRecord, $s as depthStrategy, $t as createVerifierEnvironment, $u as naiveContinuationPrompt, $v as claimsAuthority, $x as LoopTraceEmitter, A as TraceRootArtifact, AS as RetainedRunAdmissionHook, Aa as filterAuthoredAsserts, Ab as ExecutorTeardownWarning, Ac as AssertTraceDerivedFindings, Ad as InMemoryRunContextOptions, Af as plateau, Ag as CodexRolloutStoreReader, Ai as SpawnJournal, Al as LeaderboardScenario, Am as SandboxOutputMarker, An as settledWorkerOut, Ao as PrivateCasDurableStore, Ar as RemoteWorkerEvents, As as InProcessSandboxClientOptions, At as AgentEnvironmentStatus, Au as EdgeTraversal, Av as ContinuationInstruction, Ax as ProviderWorkspaceRetentionPort, B as Handle, BS as RetainedRunSnapshot, Ba as AgentTurnUsage, Bb as ToolStepInput, Bc as FanoutWinnerSelector, Bd as createSupervisorSpanRecorder, Bf as DeliveredOutput, Bg as CodeModeStore, Bi as SupervisorOpts, Bl as declaredCheckDigest, Bm as RouterTransportConfig, Bn as WorkspaceRun, Bo as renderCorpusToInstructions, Bp as RouterToolsSeam, Br as loadProfile, Bs as materializeLocalMcp, Bt as CreateAgentEnvironmentInput, Bv as MapTraversalEvent, Bx as LoopDecisionPayload, By as SpawnForest, CS as RecoverRetainedRunOptions, C_ as runAgentRounds, Ca as StructuralRolloutResult, Cb as UnknownMaterializationReason, Cc as ObservationAnalysis, Cd as SeatSegment, Cf as PlateauOptions, Cg as completionAuthorizes, Ci as GraphDesignerExtraTools, Cl as DefinedLeaderboard, Cm as ResolvedMcpServerLaunch, Cn as readWorkerInteractiveBinding, Co as recoverRetainedInteractiveRun, Cr as supervisorRunDir, Cs as LocalSandboxClientOptions, Ct as SuperviseProfileEntry, Cx as ProviderNativeCapturePhase, Cy as AnalystRunContext, DS as RetainedInteractiveIntentAdmission, Da as composeCheckSources, Db as ExecutorCancellation, Dc as defaultAnalystInstruction, Df as allWorkersStalled, Dg as CodexForkBoundary, Di as delegate, Dl as LeaderboardFlagSpec, Dm as resolveSecretEnv, Dn as WorkerEvidenceInput, Do as profileChatClient, Dr as RemoteSupervisorAgent, Ds as inlineSandboxClient, Dt as AgentEnvironmentEvent, Dv as questionEscalationTargets, Dx as ProviderWorkspaceCaptureResult, Dy as DefinedAnalystRecord, E as EvidencePendingEvent, ES as RetainedInteractiveEnvironmentAdmission, E_ as SandboxEvidenceRetentionPort, Ea as compareCheckOutcomes, Eb as ExecutorAccounting, Ec as ObserveOptions, Ed as SeatStage, Ef as StopRule, Eg as stopSentinel, Ei as defaultDelegateBudget, El as LeaderboardBenchmarkAdapter, Em as resolveMcpServerLaunch, En as VERIFY_TAIL_CHARS, Eo as resolveSandboxClient, Er as writeWorkerSteer, Es as defaultSelectWinner, Et as AgentEnvironmentCapabilities, Ex as ProviderWorkspaceCaptureReceipt, Ey as AuthoredAnalystLimits, F as ResourceLimit, FS as RetainedRunEnvironmentAdmission, Fa as selectBestIndex, Fb as WorkerInteractiveSession, Fc as EqualKArm, Fd as withRunContext, Ff as readRunCancellation, Fg as createCodexRolloutStoreReader, Fi as RootSegment, Fl as DeclaredCheckPlacement, Fm as SandboxServedBackend, Fn as withUntrackedArtifacts, Fo as trajectoryReport, Fp as CliSeam, Fr as SupervisorCleanupReceipt, Fs as McpListedTool, Ft as AgentSessionStatus, Fu as GraphTopology, Fv as DownMessageEvent, Fx as AgentRunSpec, Fy as CodexExecutionPolicy, G as Settled, Ga as EvolutionAuthor, Gb as DEFAULT_STALL_AFTER_MS, Gc as PanelSpec, Gd as BudgetReadout, Gg as RunCodeModeOptions, Gi as Scope, Gl as IsolatedCheckOptions, Gm as ToolLoopCompaction, Gn as TrajectoryAnalysis, Go as pipeline, Gp as SteerableSandboxSession, Gr as InteractiveWorkerEnvironment, Gs as AgenticTool, Gt as PlacementInfo, Gu as RegisteredPrompt, Gv as PeerMailEvent, Gx as LoopLineageOptions, Gy as SpawnForestTree, H as NodeSnapshot, HS as RetainedRunTurnInput, Ha as StreamAgentTurnOptions, Hb as createPushTraceSource, Hc as LoopUntilState, Hf as FinalizerSettled, Hg as CodeModeToolContext, Hi as ReenteredWorkers, Hl as readDeclaredCheck, Hm as ToolSpec, Hn as jjWorkspace, Ho as flatWidenGate, Hp as DEFAULT_SANDBOX_STEERING_MAX_TURNS, Hr as profileRegistry, Hs as AgenticRunResult, Ht as ExecRequest, Hu as GraphRouteError, Hv as DEFAULT_PEER_MAIL_LIMITS, Hx as LoopIterationDispatchPayload, Hy as SpawnForestInDoubtNode, I as ResourceSpend, IS as RetainedRunEventOptions, Ia as structuralRollout, Ib as WorkerInteractiveUnavailableReason, Ic as EqualKOnCostOptions, Id as SupervisorSpanAttributes, If as ReentryContinuity, Ig as harnessUsageIsEmpty, Ii as RootSegmentEntry, Il as DeclaredCheckStateCapture, Im as SandboxUsageLedger, In as GitWorkspaceOptions, Io as definePersona, Ip as CliWorktreeBridgeSeam, Ir as provisionSupervisor, Is as McpSpawnFault, It as AgentTurnResult, Iu as RunGraphOptions, Iv as WorkerResumeContext, Ix as DefaultVerdict, Iy as SqlRunOwnershipError, J as SpawnRejection, J_ as WorktreeCheckRunner, Ja as StrategyEvolutionConfig, Jb as TeamProgress, Jc as RenderCorpusToInstructionsOptions, Jd as ReservationHolder, Jg as AxisScoresOf, Ji as WorkerEventCursor, Jm as ToolLoopToolCall, Jn as parseWorkerToolTraceArtifact, Jo as widen, Jp as Inbox, Jr as InteractiveWorkerResult, Js as RunAgenticOptions, Jt as SandboxInstance, Ju as delegatesWorkerBriefPrompt, Jv as PeerMailReadout, Jx as LoopResult, Jy as replaySpawnTree, K as SpawnOpts, Ka as EvolutionReport, Kb as ExecutorProgress, Kc as PanelVerdict, Kd as LeakedReservation, Kf as CoordinationMcpHandle, Kg as createCodeModeTools, Ki as UnconfirmedTeardown, Kl as IsolatedCheckResult, Kn as analyzeTrace, Ko as selectValidWinner, Kp as createSteerableSandboxSession, Kr as InteractiveWorkerKeyInput, Ks as ArtifactHandle, Kt as ResourceRequest, Ku as analyzesFindingsReportPrompt, Kv as PeerMailLimits, Kx as LoopPlanDescription, Ky as loadSpawnForest, L as Spend, LS as RetainedRunHandle, La as visibleCheckScore, Lb as WorkerTraceEvidence, Lc as EqualKVerdict, Ld as SupervisorSpanOptions, Lf as ReentryTaskInput, Lg as readCodexRolloutSession, Li as RootSignal, Ll as assertDeclaredCheck, Lm as extractLlmCallEvent, Ln as Shell, Lo as runPersonified, Lp as CliWorktreeSeam, Lr as ProfileRegistryDir, Ls as StdioMcpConnection, Lt as AnalystFinding, Lv as MapItemFailurePolicy, Lx as Driver, Ly as openSqlRunStore, M as Budget, MS as RetainedRunCancellation, Ma as officialChecksFromMeta, Mb as HeldForContinuation, Mc as Corpus, Md as RunContextLease, Mf as RunCancellation, Mg as CodexRolloutTurn, Mi as WorkspaceCheckpointMarker, Ml as LeaderboardSpec, Mm as createSandboxToolPartState, Mn as CopyOptions, Mo as PrivateCasOptions, Mp as ExecutorConfig, Mr as ProvisionSupervisorConnection, Ms as HttpMcpServerSpec, Mt as AgentProfile, Mu as GraphEdgeCapError, Mx as ExecutorToolCall, N as BudgetOverspend, NS as RetainedRunDispatchedAdmission, N_ as createOtelExporter, Na as resolveEntrySymbol, Nb as HeldRelease, Nc as CorpusFilter, Nd as createFileRunContext, Nf as cancelRun, Ng as CodexStoreDelta, Ni as RecursiveReservationPolicy, Nl as defineLeaderboard, Nm as mapSandboxEvent, Nn as UntrackedCopyStats, No as createPrivateCasArtifactPort, Np as createExecutor, Nr as ProvisionSupervisorRequest, Ns as LocalMcpMaterialization, Nt as AgentSession, Nu as GraphNode, Nv as DownMessageDeliveryAttempt, Nx as TokenUsageProvenance, O as TRACE_ROOT_SCHEMA, OS as RetainedInteractiveStartedAdmission, Oa as defaultExtractCandidate, Ob as ExecutorCancellationRequest, Oc as observe, Od as subscriptionUsageLimitSignal, Of as anyOf, Og as CodexRolloutIdentity, Oi as ResultBlobStore, Ol as LeaderboardIterationInfo, Om as secretEnvOfMcpServer, On as closingWorkerNote, Oo as profileOptimizerModelCall, Or as RemoteSupervisorReader, Os as InProcessOnPrompt, Ot as AgentEnvironmentProvider, Ou as AgentGraph, Ox as ProviderWorkspaceEntryMetadata, Oy as CodexExecutionEvidence, P as BudgetViolation, PS as RetainedRunEffect, Pa as sandboxCheckRunner, Pb as Runtime, Pc as CorpusRecord, Pd as createInMemoryRunContext, Pf as readRunCancelRequest, Pg as addHarnessUsage, Pi as RootHandle, Pl as DeclaredCheck, Pm as mapSandboxToolEvent, Pn as copyUntrackedIntoClone, Po as equalKOnCost, Pp as CliInPlaceSeam, Pr as ProvisionedSupervisor, Ps as MaterializeLocalMcpOptions, Pt as AgentSessionRef, Pu as GraphResult, Pv as DownMessageDeliveryOutcome, Px as UsageEvent, Py as CodexTokenUsage, Q as FleetYield, Q_ as GitRunner, Qa as runStrategyEvolution, Qb as ReconnectRetainedInteractiveRunOptions, Qc as SteerContext, Qd as ReservationTicket, Qg as LeaderboardOptions, Qi as ChatSessionStore, Qn as FencedSqlRunContext, Qo as buildSteerContext, Qp as DEFAULT_SHARED_BOX_RESOURCES, Qr as GraphRegistryDir, Qs as breadthStrategy, Qt as VerifierEnvironmentOptions, Qu as kernelPromptRegistry, Qv as PeerMailboxOptions, Qx as LoopTokenUsage, Qy as contentAddress, R as SpendChannel, RS as RetainedRunIntentAdmission, Ra as AgentTurnBackend, Rb as WorkerTraceUnavailableReason, Rc as FanoutOptions, Rd as SupervisorSpanOutcome, Rf as UNPROVEN_CONTINUITY, Rg as HarnessUsage, Ri as SteerableRootHandle, Rl as checkProgramDigest, Rm as sumSandboxUsage, Rn as Workspace, Ro as FileCorpus, Rp as ProviderSeam, Rr as ProfileRunRecord, Rs as StdioMcpServerSpec, Rt as CheckpointRef, Ru as TraversalContinuity, Rx as ExecCtx, Ry as SqlAdapter, SS as RecoverRetainedRunIntentOptions, S_ as RunAgentRoundsOptions, Sa as StructuralRolloutPolicy, Sb as RootMaterialization, Sc as Observation, Sd as SuperviseRegistryTable, Sf as NoProgressForOptions, Sg as CompletionVerdict, Si as DesignerToolsEnv, Sl as providerAsSandboxClient, Sm as KeyProvider, Sn as attachWorker, So as reconnectRetainedInteractiveRun, Sr as safeWorkerFile, Ss as superviseDispatch, Sx as ProviderCheckpointCaptureContext, Sy as AnalystRegistry, TS as RetainedInteractiveAdmission, T_ as SandboxEvidenceReceipt, Ta as canDisplace, Tb as Executor, Tc as ObserveInput, Tf as StopDecision, Tg as sentinelCompletion, Ti as DelegateOptions, Tl as LeaderboardBenchTask, Tm as mcpSecretEnvMetadataKey, Tn as NOTE_MAX_CHARS, To as ResolveSandboxClientOptions, Tr as workerInboxFileFromEventDir, Ts as TerminalDecision, Tt as AgentEnvironment, Tv as QuestionRecord, Tx as ProviderWorkspaceCaptureProvenance, Ty as AuthoredAnalystDefinition, U as NodeStatus, US as StartRetainedRunInEnvironmentOptions, Ua as collectAgentTurn, Ub as ActivityLog, Uc as Panel, Ud as BudgetPool, Uf as SupervisorFinalizer, Ug as CodeModeToolsOptions, Ui as ResumedKeyState, Ul as IsolatedCheckBox, Um as ToolLoopCallContext, Un as localShell, Uo as loopUntil, Up as SandboxSteeringOptions, Ur as profileRunsForName, Us as AgenticSurface, Ut as ExecResult, Uu as PromptHandle, Uv as PEER_MAIL_WIRE_KEY, Ux as LoopIterationEndedPayload, Uy as SpawnForestMissingTree, V as NodeId, VS as RetainedRunStartMaterial, Va as CollectedAgentTurn, Vb as TraceSource, Vc as LoopUntilSpec, Vd as WorkerTraceResolver, Vf as FinalizeContext, Vg as CodeModeTool, Vi as Agent, Vl as declaredCheckJudge, Vm as RouterRouting, Vn as gitWorkspace, Vo as fanout, Vp as SandboxSeam, Vr as pickBestProfile, Vs as AgenticOptions, Vt as CreateSandboxOptions, Vu as defaultEdgeTraversalCap, Vv as AUTHORITY_MARKERS, Vx as LoopEndedPayload, Vy as SpawnForestEvent, W as RetainedExecutionState, WS as StartRetainedRunOptions, Wa as streamAgentTurn, Wb as ActivityNote, Wc as PanelJudge, Wd as BudgetPoolRestore, Wf as bestDelivered, Wg as CodeModeToolset, Wi as ResumedWork, Wl as IsolatedCheckBoxEvidence, Wm as ToolLoopChat, Wn as runInWorkspace, Wo as panel, Wp as SteerableSandboxArgs, Wr as recordProfileRun, Ws as AgenticTask, Wt as ForkRequest, Wu as PromptRegistry, Wv as PeerMailEnvelope, Wx as LoopIterationStartedPayload, Wy as SpawnForestNode, X as SubtreeSummary, X_ as WorktreeHarnessResult, Xa as TournamentCell, Xb as createActivityLog, Xc as ScopeAnalyzeInput, Xd as ReservationShortfall, Xf as serveCoordinationMcp, Xg as Interval, Xi as WorkerEventPage, Xn as createSupervisor, Xo as RegistryAnalyzeProjection, Xp as InboxMessage, Xr as InPlaceCliExecutorOptions, Xs as StrategyShotResult, Xt as computeFindingId, Xu as dumbContinuationPassPrompt, Xv as PeerMailSendInput, Xx as LoopStartedPayload, Xy as InMemoryResultBlobStore, Y as SubtreeResult, Y_ as WorktreeCommandResult, Ya as StrategyTournament, Yb as WorkerProgress, Yc as ScopeAnalyst, Yd as ReservationRejection, Yg as GroupOf, Yi as WorkerEventEntry, Yn as DEFAULT_MAX_DEPTH, Yo as CreateScopeAnalystOptions, Yp as InboxLease, Yr as workerFromInteractiveProvider, Ys as StrategyMessage, Yt as WorkspaceRequest, Yu as dumbContinuationFailPrompt, Yv as PeerMailRefusal, Yx as LoopSandboxPlacement, Yy as FileSpawnJournal, Z as TreeView, Z_ as WorktreeProfileMaterializationReceipt, Za as TournamentRow, Zb as readWorkerProgress, Zc as ScopeWidenGate, Zd as ReservationStage, Zg as Leaderboard, Zi as ChatCompletionsTransport, Zn as createRootHandle, Zo as assertTraceDerivedFindings, Zp as PeerInboxMessage, Zr as createInPlaceCliExecutor, Zs as SurfaceScore, Zt as makeFinding, Zu as formatPromptHandle, Zv as PeerMailbox, Zx as LoopTeardownFailedPayload, Zy as InMemorySpawnJournal, __ as renderAnytimeTable, _a as CheckSource, _b as ExecutorNodeContext, _c as HarvestCorpusOptions, _d as isPreSpawnExecutorFailure, _f as SupervisorToolDescriptor, _g as mapExecutorResult, _i as RollingDispatchOptions, _l as RunPersonifiedOptions, _m as UnavailablePausePolicy, _n as WorktreePatchArtifact, _o as recoverRetainedRun, _r as cancelWorker, _s as LoopOptionsForDispatch, _x as HarnessTranscriptReadOptions, _y as watchTrace, aS as RunProvenance, a_ as pairwiseSignificance, aa as AuthoredProfile, ac as ShotSpec, ai as graphRegistry, al as WidenDecision, am as sharedBoxPlacement, an as SurfaceReader, ao as SandboxRunAbortError, ap as ContinuationEntry, ar as SearchSpecOwnedOption, as as sanitizeMcpToolSchema, at as DriverAttemptRecord, av as ToolOutcomeEvent, ax as HarnessTranscriptArtifact, bS as NativeContextContinuationInput, b_ as WaterfallSpan, ba as StructuralRolloutConfig, bb as NodeExecutionIdentity, bc as HarvestReport, bd as withWorkerSpawnRetry, bf as SupervisorProfile, bg as CompletionEvidence, bi as rollingDispatch, bl as ShapeRegistry, bm as BridgeModelCredential, bn as WorkerInteractiveBinding, bo as ClaimRetainedInteractiveControlOptions, br as readWorkerSteerAcknowledgement, bs as loopCampaignDispatch, bv as QuestionEscalationRecord, bx as resolveHarnessTranscriptCapture, by as AnalystKind, cS as ValidationCtx, c_ as renderLeaderboardSvg, ca as asAuthoredProfile, cb as AgentSpec, cc as StrategyCtx, cf as DriveHarness, ci as loadGraph, cl as WinnerStrategy, cm as sharedWorkerClientName, cn as fsSurfaceReader, co as SandboxLineage, cp as ContinuationPanelResult, cr as searchPresets, cs as BenchmarkLift, ct as DriverFailureClass, cv as GateDecision, cx as HarnessTranscriptFile, d_ as AnytimeStrategySummary, da as profileRichnessFinding, db as ExecutorRegistry, dc as assertStrategyContract, di as recordGraphRun, dl as LoopShape, dm as createAgentEnvironmentProviderRegistry, dn as analystsFromRegistry, do as AcquireOptions, dp as PanelFinding, dr as createScope, ds as BenchmarkTaskRow, dx as ReadableEnvironment, dy as BusStats, eS as LoopTraceEvent, e_ as PairwiseOptions, ea as ChatTransportTool, ec as refine, ed as promptHandle, ef as createBudgetPool, ei as GraphSelection, el as TrajectoryReport, em as SharedBoxCloseReceipt, en as BoxSurfaceReaderOptions, eo as Deliverable, ep as CoordinationLog, er as createFencedSqlRunContext, es as registryScopeAnalyst, et as ProviderModelAttemptEvidence, ev as CoordinationEvent, ex as RetainedInteractiveAdmissionHook, ey as createPeerMailbox, f as BackendErrorDetail, f_ as AnytimeTaskCurve, fa as supervisorInstructions, fb as SpawnModelSubstitution, fc as authorStrategy, fd as createWorkerSlots, ff as ResolveSupervisorTools, fg as CheckUnavailableError, fi as storedGraphDigests, fl as Outcome, fm as resolveAgentEnvironmentProvider, fn as failuresAnalyst, fo as acquireSandbox, fp as VerdictSummary, fr as ScopeArgs, fs as Environment, fv as RouteGate, fx as captureHarnessTranscript, fy as EventBus, g_ as plateauLength, ga as CheckRunner, gb as ExecutorMaterialization, gc as strategyAuthorSystemPrompt, gd as WorkerSpawnRetryPolicy, gf as SupervisorNodeContextSeed, gg as gateOnDeliverable, gi as DispatchUnit, gl as RunPersonified, gm as providerAsExecutor, gn as WorktreeCliExecutorOptions, go as reconnectRetainedRun, gp as DriverRetryPolicy, gr as WriteWorkerSteerOptions, gs as LoopDispatchOptions, gt as MakeWorkerAgent, gx as HarnessTranscriptReadLimits, gy as defaultToolDetectors, h_ as bestSoFar, ha as CheckRunContext, hb as ExecutorExecutionBinding, hc as strategyAuthorContract, hd as WorkerSpawnRetryHooks, hf as SupervisorNodeContext, hg as ExecutorResultMapping, hi as DispatchStopReason, hl as PersonaExecutors, hm as ProviderPromptOptions, hn as worktreeFanout, ho as createS3PrivateCasStore, hp as DriverReentry, hr as WorkerSteerRequest, hs as LoopCampaignDispatchOptions, hx as HarnessTranscriptMetadata, hy as WatchTraceOptions, iS as OutputAdapter, i_ as leaderboard, ia as createChatSessionStore, ic as AuthoredStrategy, id as superviseFleetCapabilities, if as supervisorAgent, ii as graphFromStored, il as Widen, im as SharedWorkerIdentity, in as SurfaceReadOutcome, io as SandboxRun, ip as ContinuationAppend, ir as SearchSpecInputs, is as createMcpEnvironment, it as SupervisedResult, ix as StartRetainedInteractiveRunOptions, j as TraceSummary, jS as RetainedRunCancelOptions, ja as modelAuthoredChecks, jb as HeldEnvironment, jc as CombinatorShape, jd as RunContext, jf as RunCancelRequest, jg as CodexRolloutStoreRef, ji as TraceRootReceipt, jl as LeaderboardScore, jm as SandboxToolPartState, jn as spendFromUsageEvents, jo as PrivateCasOffloadReport, jp as createExecutorRegistry, jr as connectRemoteSupervisor, js as inProcessSandboxClient, jt as AgentEnvironmentSummary, ju as GraphEdge, jx as ExecutorProgressEvent, k as TRACE_SUMMARY_SCHEMA, kS as RetainedRunAdmission, ka as defaultStructuralRolloutPolicy, kb as ExecutorResult, kc as renderReport, kd as InMemoryRunContext, kf as noProgressFor, kg as CodexRolloutSession, ki as SpawnEvent, kl as LeaderboardRunContext, km as SandboxLeafOut, kn as composeWorkerEvidence, ko as PrivateCasArtifactPort, kr as RemoteSupervisorTree, ks as InProcessPromptCtx, kt as AgentEnvironmentQuery, ku as EdgeDeliveryOutcome, kx as ProviderWorkspaceRetentionContext, ky as LocalHarnessResult, lS as Validator, l_ as renderPairwiseMarkdown, la as assessAuthoredProfile, lb as ExecutorContext, lc as StrategyResult, ld as SuperviseOptions, li as lookupGraph, ll as DefinePersona, ln as harvestSurfaceDiffs, lo as SandboxLineageHandle, lp as ContinuationPolicy, lr as searchSpecDigest, ls as BenchmarkReport, lt as DriverRepromptRefusal, lv as GateRequest, lx as HarnessTranscriptUnavailable, ly as BusEvent, m_ as areaUnderCurve, ma as CheckOutcome, mb as ExecutionBindingReceipt, mc as sampleThenRefine, md as WorkerSpawnRetryAttempt, mg as DeliverableSpec, mi as DispatchReport, ml as PersonaContext, mm as ProviderLeafOut, mn as WorktreeFanoutOptions, mo as S3PrivateCasStoreOptions, mp as DriverContractState, mr as WorkerSteerAcknowledgement, ms as runBenchmark, mv as RouteWhen, mx as persistHarnessTranscript, my as createEventBus, nS as MountManifestEntry, n_ as ProfileKeyOf, na as chatTransportExecutor, nc as sample, ni as digestOfGraph, nl as Verify, nm as SharedBoxPlacementOptions, nn as SurfaceDiff, no as OpenSandboxRunOptions, nr as SEARCH_SPEC_CORRELATION_KEY, ns as McpEndpoint, nt as RootProviderModelEvidence, nv as LeadMessage, nx as RetainedInteractiveRunHandle, ny as peerMailTools, oS as SandboxClient, o_ as renderLeaderboardHtml, oa as ProfileRichness, oc as Strategy, od as workerFromBackend, of as CoordinationToolFace, oi as graphRunsFor, ol as WidenLineage, om as ROUTER_CLIENT_HEADER, on as WatchedSurface, oo as TurnResult, op as ContinuationPanel, or as assertSearchSpec, os as BenchmarkCell, ot as DriverAttemptStop, ox as HarnessTranscriptCapture, p_ as anytimeReport, pa as CheckExecChannel, pb as AgentExecutionRef, pc as defineStrategy, pd as ResolvedWorkerSpawnRetry, pf as SupervisorAgentDeps, pg as CheckVerdict, pi as taskShapeDigest, pl as Persona, pm as ProviderExecutorOptions, pn as AuthoredHarness, po as S3PrivateCasStore, pp as admitContinuationPolicy, pr as WorkerCancellation, ps as printBenchmarkReport, pv as RouteMatch, px as harnessTranscriptArtifact, py as PublishOptions, q as SpawnPrior, q_ as InPlaceHarnessResult, qa as EvolutionStrategy, qb as ScopeProgressInput, qc as PipelineStage, qd as ReservationFloor, qg as runCodeMode, qi as WidenGate, ql as runIsolatedCheck, qm as ToolLoopMessageRecord, qn as WorkerToolTraceArtifact, qo as verify, qp as AuthorityInboxMessage, qr as InteractiveWorkerOptions, qs as CorpusReadbackOptions, qt as SandboxEvent, qu as createPromptRegistry, qv as PeerMailOutcome, qx as LoopPlanPayload, qy as FileResultBlobStore, rS as MountRecorder, r_ as ScoreOf, ra as chatWorkerSeam, rc as AuthorStrategyOptions, rd as supervise, ri as graphDigest, rl as VerifySpec, rm as SharedBoxStats, rn as SurfaceReadBox, ro as OpenSandboxRunPromptOptions, rr as SearchSpec, rs as McpEnvironmentOptions, rt as RootStreamReceipt, rv as ManagerReentryState, rx as RetainedInteractiveStartMaterial, ry as peerMailVerbNames, sS as SelectionReceipt, s_ as renderLeaderboardMarkdown, sa as ProfileRichnessThresholds, sc as StrategyArtifacts, sf as CoordinationVerbs, si as listGraphRuns, sl as WidenSpec, sm as sharedBoxRefusal, sn as boxSurfaceReader, so as openSandboxRun, sp as ContinuationPanelInput, sr as compileSearchSpec, ss as BenchmarkConfig, st as DriverContinuationRecord, sx as HarnessTranscriptEvidence, tS as LoopWinner, t_ as PairwiseVerdict, ta as ChatWorkerSeamOptions, tc as runAgentic, ti as StoredGraph, tl as TrajectoryReportOptions, tm as SharedBoxPlacement, tn as HarvestSurfaceDiffsOptions, to as OpenSandboxRunBeforeStartContext, tp as FileCoordinationLog, tr as CompiledSearchSpec, ts as observationFromRegistry, tt as ProviderModelExecutionEvidence, tv as EventAcknowledgement, tx as RetainedInteractiveEnvironmentInput, ty as isPeerMailEnvelope, u_ as AnytimeReport, ua as defaultProfileRichnessThresholds, ub as ExecutorFactory, uc as adaptiveRefine, uf as ObserveSupervisorNodeEvent, ui as pickBestGraph, ul as DefinePersonaInput, um as AgentEnvironmentProviderRegistry, un as AnalystAuthoring, uo as createSandboxLineage, up as ContinuationProfile, ur as settledToIteration, us as BenchmarkStrategySummary, ut as BlockedToolReport, uv as JsonScalar, ux as HarnessTranscriptUnavailableReason, uy as BusRecord, vS as NativeContextContinuationExecution, v_ as WaterfallCollector, va as CheckSourceCtx, vb as MaterializedExecutionIdentity, vc as HarvestError, vd as resolveWorkerSpawnRetry, vf as SupervisorToolInvocationContext, vg as verdictFromJudgeScore, vi as freeSlots, vl as ShapeBudget, vm as ProviderPlacement, vn as createWorktreeCliExecutor, vo as startRetainedRun, vr as legacySupervisorRunDir, vs as SuperviseDispatchOptions, vt as SettledWorker, vv as QuestionDecision, vx as RetainedHarnessTranscriptCapture, vy as AnalystAssignmentRecord, wS as RecoverRetainedRunResult, w_ as SandboxEvidenceContext, wa as VisibleCheck, wb as EnvironmentTeardownReceipt, wc as ObservationError, wf as ProgressView, wg as deterministicCompletion, wi as graphDesignerExtraTools, wl as LeaderboardBenchScore, wm as envKeyProvider, wn as EVIDENCE_MAX_CHARS, wo as startRetainedInteractiveRun, wr as supervisorRunsRoot, ws as TERMINAL_DECISIONS, wt as WorkerSpawnContext, wv as QuestionPolicy, wx as ProviderWorkspaceAttemptProvenance, xS as ReconnectRetainedRunOptions, x_ as createWaterfallCollector, xa as StructuralRolloutMessage, xb as ProfileMaterializationReceipt, xc as harvestCorpus, xd as SuperviseRegistry, xf as AllWorkersStalledOptions, xg as CompletionPolicy, xi as DesignerRunGraphEnv, xl as ProviderAsSandboxClientOptions, xm as BridgeSeam, xn as WorkerInteractiveProviderSource, xo as claimRetainedInteractiveControl, xr as readWorkerSteerRequests, xs as loopDispatch, xv as QuestionEscalationTarget, xx as retainHarnessTranscript, xy as AnalystLensOutput, yS as NativeContextContinuationHandle, y_ as WaterfallReport, ya as RepairStop, yb as MaterializedModelIdentity, yc as HarvestFailure, yd as retryPreSpawnRefusals, yg as CompletionAnalyst, yi as queueOf, yl as ShapeContext, ym as BridgeHarnessStore, yn as AttachWorkerOptions, yo as startRetainedRunInEnvironment, yr as readWorkerCancellation, ys as SuperviseOptionsForDispatch, yx as RetainedHarnessTranscriptDescriptor, yy as AnalystFindingEvent, z as SpendGap, zS as RetainedRunReplayPoint, za as AgentTurnInput, zb as SessionMessageLike, zc as FanoutSynthesis, zd as SupervisorSpanRecorder, zf as composeReentryTask, zg as decodeHarnessUsage, zi as Supervisor, zl as declaredCheckDeliverable, zm as RouterResponseReceipt, zn as WorkspaceCommit, zo as InMemoryCorpus, zp as RouterSeam, zr as bestProfileFor, zs as connectStdioMcp, zt as CheckpointRequest, zu as runGraph, zv as MapSpawnMarker, zx as Iteration, zy as materializeTreeView } from "./types-DztCeYd6.js";
|
|
2
2
|
import { l as AgentCandidateWorkspaceArchiveLimits } from "./workspace-streams-BiS4ABah.js";
|
|
3
3
|
import { c as assertProfileMaterializes } from "./profile-materialization-bPm0gGLO.js";
|
|
4
4
|
import { i as runTaskQueue, n as TaskQueueOptions, r as TaskQueueSettlement, t as TaskQueueEntry } from "./task-queue-0fKkoweu.js";
|
package/dist/kernel.js
CHANGED
|
@@ -5,7 +5,7 @@ import { _ as sharedWorkerClientName, f as DEFAULT_SHARED_BOX_RESOURCES, g as sh
|
|
|
5
5
|
import { a as createEventBus, f as createFileRunContext, h as FileCoordinationLog, i as watchTrace, m as withRunContext, p as createInMemoryRunContext, r as defaultToolDetectors } from "./coordination-manager-T98ZbsEt.js";
|
|
6
6
|
import { $ as noProgressFor, C as workerFromBackend, D as composeReentryTask, E as UNPROVEN_CONTINUITY, G as dumbContinuationFailPrompt, H as analyzesFindingsReportPrompt, J as kernelPromptRegistry, K as dumbContinuationPassPrompt, N as GraphRouteError, O as serveCoordinationMcp, Q as anyOf, S as taskShapeDigest, U as createPromptRegistry, W as delegatesWorkerBriefPrompt, X as promptHandle, Y as naiveContinuationPrompt, Z as allWorkersStalled, _ as loadGraph, at as renderAnytimeTable, b as recordGraphRun, c as retryPreSpawnRefusals, ct as createSupervisorSpanRecorder, d as graphDigest, et as plateau, f as graphFromStored, g as listGraphRuns, it as plateauLength, l as withWorkerSpawnRetry, m as graphRunsFor, n as superviseFleetCapabilities, nt as areaUnderCurve, o as isPreSpawnExecutorFailure, p as graphRegistry, q as formatPromptHandle, rt as bestSoFar, s as resolveWorkerSpawnRetry, t as supervise, tt as anytimeReport, u as digestOfGraph, v as lookupGraph, w as supervisorAgent, x as storedGraphDigests, y as pickBestGraph, z as defaultEdgeTraversalCap } from "./supervise-BuVVC7Bl.js";
|
|
7
7
|
import { S as workerInboxFileFromEventDir, _ as safeWorkerFile, d as legacySupervisorRunDir, g as readWorkerSteerRequests, h as readWorkerSteerAcknowledgement, i as readRunCancellation, l as cancelWorker, m as readWorkerCancellation, n as cancelRun, r as readRunCancelRequest, v as supervisorRunDir, w as writeWorkerSteer, y as supervisorRunsRoot } from "./run-cancellation-CEDiqfhC.js";
|
|
8
|
-
import { $ as runPersonified, $t as openSqlRunStore, A as searchSpecDigest, At as secretEnvOfMcpServer, B as chatWorkerSeam, Bt as readDeclaredCheck, C as withUntrackedArtifacts, Ct as materializeLocalMcp, D as assertSearchSpec, Dt as mcpSecretEnvMetadataKey, E as SEARCH_SPEC_CORRELATION_KEY, Et as envKeyProvider, F as profileRegistry, Ft as assertDeclaredCheck, G as openSandboxRun, Gt as stopSentinel, H as runStrategyEvolution, Ht as completionAuthorizes, I as profileRunsForName, It as checkProgramDigest, J as runBenchmark, Jt as renderLeaderboardHtml, K as createS3PrivateCasStore, Kt as leaderboard, L as recordProfileRun, Lt as declaredCheckDeliverable, M as bestProfileFor, Mt as loopCampaignDispatch, N as loadProfile, Nt as loopDispatch, O as compileSearchSpec, Ot as resolveMcpServerLaunch, P as pickBestProfile, Pt as superviseDispatch, Q as definePersona, Qt as SqlRunOwnershipError, R as graphDesignerExtraTools, Rt as declaredCheckDigest, S as copyUntrackedIntoClone, St as connectStdioMcp, T as createFencedSqlRunContext, Tt as sanitizeMcpToolSchema, U as strategyTournament, Ut as deterministicCompletion, V as createChatSessionStore, Vt as runIsolatedCheck, W as SandboxRunAbortError, Wt as sentinelCompletion, X as equalKOnCost, Xt as renderLeaderboardSvg, Y as createPrivateCasArtifactPort, Yt as renderLeaderboardMarkdown, Z as trajectoryReport, Zt as renderPairwiseMarkdown, _ as NOTE_MAX_CHARS, _t as HarvestError, a as localShell, at as loopUntil, b as composeWorkerEvidence, bt as resolveSandboxClient, c as createVerifierEnvironment, ct as selectValidWinner, d as harvestSurfaceDiffs, dt as assertTraceDerivedFindings, et as FileCorpus, f as analystsFromRegistry, ft as buildSteerContext, g as EVIDENCE_MAX_CHARS, gt as inProcessSandboxClient, ht as observationFromRegistry, i as jjWorkspace, it as flatWidenGate, j as connectRemoteSupervisor, jt as inlineSandboxClient, k as searchPresets, kt as resolveSecretEnv, l as boxSurfaceReader, lt as verify, m as worktreeFanout, mt as registryScopeAnalyst, n as makeFinding, nt as renderCorpusToInstructions, o as runInWorkspace, ot as panel, p as failuresAnalyst, pt as createScopeAnalyst, q as printBenchmarkReport, qt as pairwiseSignificance, r as gitWorkspace, rt as fanout, s as createWaterfallCollector, st as pipeline, t as computeFindingId, tt as InMemoryCorpus, u as fsSurfaceReader, ut as widen, v as VERIFY_TAIL_CHARS, vt as harvestCorpus, w as analyzeTrace, wt as createMcpEnvironment, x as settledWorkerOut, xt as McpSpawnFault, y as closingWorkerNote, yt as defineLeaderboard, z as chatTransportExecutor, zt as declaredCheckJudge } from "./runtime-
|
|
8
|
+
import { $ as runPersonified, $t as openSqlRunStore, A as searchSpecDigest, At as secretEnvOfMcpServer, B as chatWorkerSeam, Bt as readDeclaredCheck, C as withUntrackedArtifacts, Ct as materializeLocalMcp, D as assertSearchSpec, Dt as mcpSecretEnvMetadataKey, E as SEARCH_SPEC_CORRELATION_KEY, Et as envKeyProvider, F as profileRegistry, Ft as assertDeclaredCheck, G as openSandboxRun, Gt as stopSentinel, H as runStrategyEvolution, Ht as completionAuthorizes, I as profileRunsForName, It as checkProgramDigest, J as runBenchmark, Jt as renderLeaderboardHtml, K as createS3PrivateCasStore, Kt as leaderboard, L as recordProfileRun, Lt as declaredCheckDeliverable, M as bestProfileFor, Mt as loopCampaignDispatch, N as loadProfile, Nt as loopDispatch, O as compileSearchSpec, Ot as resolveMcpServerLaunch, P as pickBestProfile, Pt as superviseDispatch, Q as definePersona, Qt as SqlRunOwnershipError, R as graphDesignerExtraTools, Rt as declaredCheckDigest, S as copyUntrackedIntoClone, St as connectStdioMcp, T as createFencedSqlRunContext, Tt as sanitizeMcpToolSchema, U as strategyTournament, Ut as deterministicCompletion, V as createChatSessionStore, Vt as runIsolatedCheck, W as SandboxRunAbortError, Wt as sentinelCompletion, X as equalKOnCost, Xt as renderLeaderboardSvg, Y as createPrivateCasArtifactPort, Yt as renderLeaderboardMarkdown, Z as trajectoryReport, Zt as renderPairwiseMarkdown, _ as NOTE_MAX_CHARS, _t as HarvestError, a as localShell, at as loopUntil, b as composeWorkerEvidence, bt as resolveSandboxClient, c as createVerifierEnvironment, ct as selectValidWinner, d as harvestSurfaceDiffs, dt as assertTraceDerivedFindings, et as FileCorpus, f as analystsFromRegistry, ft as buildSteerContext, g as EVIDENCE_MAX_CHARS, gt as inProcessSandboxClient, ht as observationFromRegistry, i as jjWorkspace, it as flatWidenGate, j as connectRemoteSupervisor, jt as inlineSandboxClient, k as searchPresets, kt as resolveSecretEnv, l as boxSurfaceReader, lt as verify, m as worktreeFanout, mt as registryScopeAnalyst, n as makeFinding, nt as renderCorpusToInstructions, o as runInWorkspace, ot as panel, p as failuresAnalyst, pt as createScopeAnalyst, q as printBenchmarkReport, qt as pairwiseSignificance, r as gitWorkspace, rt as fanout, s as createWaterfallCollector, st as pipeline, t as computeFindingId, tt as InMemoryCorpus, u as fsSurfaceReader, ut as widen, v as VERIFY_TAIL_CHARS, vt as harvestCorpus, w as analyzeTrace, wt as createMcpEnvironment, x as settledWorkerOut, xt as McpSpawnFault, y as closingWorkerNote, yt as defineLeaderboard, z as chatTransportExecutor, zt as declaredCheckJudge } from "./runtime-B_93oWEv.js";
|
|
9
9
|
import { n as workerFromInteractiveProvider, r as claimRetainedInteractiveControl, t as provisionSupervisor } from "./provision-supervisor-CysVhSqV.js";
|
|
10
10
|
import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-CjdtLf1v.js";
|
|
11
11
|
import { n as runGraph, t as GraphEdgeCapError } from "./graph-kgzTaNMA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as ConfigError } from "./errors-DodWX-cb.js";
|
|
2
2
|
import { t as runAnalystLoop } from "./analyst-loop-DZw5QWT9.js";
|
|
3
|
-
import "./runtime-
|
|
3
|
+
import "./runtime-B_93oWEv.js";
|
|
4
4
|
//#region src/loop-runner.ts
|
|
5
5
|
/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */
|
|
6
6
|
const DELEGATED_LOOP_MODES = [
|
|
@@ -56,4 +56,4 @@ function auditLoopRunner(options) {
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { runDelegatedLoop as i, auditLoopRunner as n, isDelegatedLoopMode as r, DELEGATED_LOOP_MODES as t };
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=loop-runner-
|
|
59
|
+
//# sourceMappingURL=loop-runner-BM509Zmp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-runner-CyUoVMkv.js","names":[],"sources":["../src/loop-runner.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a `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 */\ninterface 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. */\ninterface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\ninterface 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. */\ninterface 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"],"mappings":";;;;;AAyCA,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;;;;;;AAoKA,SAAgB,gBACd,SAC6D;CAC7D,OAAO,YAAY,eAAiC,OAAO;AAC7D"}
|
|
1
|
+
{"version":3,"file":"loop-runner-BM509Zmp.js","names":[],"sources":["../src/loop-runner.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a `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 */\ninterface 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. */\ninterface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\ninterface 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. */\ninterface 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"],"mappings":";;;;;AAyCA,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;;;;;;AAoKA,SAAgB,gBACd,SAC6D;CAC7D,OAAO,YAAY,eAAiC,OAAO;AAC7D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./types-
|
|
1
|
+
import "./types-DztCeYd6.js";
|
|
2
2
|
import { d as RunAnalystLoopResult, u as RunAnalystLoopOpts } from "./types-Cwrea-bU.js";
|
|
3
3
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
4
4
|
//#region src/loop-runner.d.ts
|
|
@@ -29,4 +29,4 @@ interface DelegatedLoopResult<T = unknown> {
|
|
|
29
29
|
declare function auditLoopRunner<TProposal = unknown, TEdit = unknown>(options: RunAnalystLoopOpts): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { auditLoopRunner as i, DelegatedLoopResult as n, DelegatedLoopRunner as r, DelegatedLoopRegistry as t };
|
|
32
|
-
//# sourceMappingURL=loop-runner-
|
|
32
|
+
//# sourceMappingURL=loop-runner-DsVqEv8O.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as DelegatedLoopResult, t as DelegatedLoopRegistry } from "./loop-runner-
|
|
1
|
+
import { n as DelegatedLoopResult, t as DelegatedLoopRegistry } from "./loop-runner-DsVqEv8O.js";
|
|
2
2
|
//#region src/loop-runner-bin.d.ts
|
|
3
3
|
/** @experimental Parsed CLI invocation. */
|
|
4
4
|
interface LoopRunnerCliArgs {
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as runDelegatedLoop, r as isDelegatedLoopMode, t as DELEGATED_LOOP_MODES } from "./loop-runner-
|
|
2
|
+
import { i as runDelegatedLoop, r as isDelegatedLoopMode, t as DELEGATED_LOOP_MODES } from "./loop-runner-BM509Zmp.js";
|
|
3
3
|
//#region src/loop-runner-bin.ts
|
|
4
4
|
/**
|
|
5
5
|
*
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $_ as AwaitWakeInput, $m as CoderReviewer, Ah as DelegateUiAuditRoute, Ap as createDelegateHandler, Ay as RunLocalHarnessOptions, Bh as FeedbackRefersTo, Ch as SubmitOutput, Cp as resolveSpawnResourcePaths, Cv as QuestionOption, Dh as DelegateResearchConfig, Dp as DelegateError, Eh as DelegateResearchArgs, Ep as createMcpServer, Ev as QuestionUrgency, Fh as DelegationProgress, Hh as UiAuditLensFilter, Ih as DelegationResultPayload, Lh as DelegationStatus, Mh as DelegationFeedbackSnapshot, My as LOCAL_HARNESSES, Nh as DelegationHistoryArgs, Ny as LocalHarness, Oh as DelegateUiAuditArgs, Op as DelegateHandlerOptions, Ph as DelegationHistoryEntry, Q_ as GitRunner, Qm as CoderReview, Rh as DelegationStatusResult, Sh as SubmitInput, Sp as environmentReader, St as SpawnRefusalCause, Sv as QuestionLevel, Sy as AnalystRegistry, Th as DelegateCodeConfig, Tp as McpServerOptions, Uh as UiAuditorDelegationOutput, Vh as ResearchOutputShape, Xm as FeedbackStore, Ym as FeedbackEvent, Zm as CoderDelegate, _h as DelegationResumeDriver, _p as ResolveSpawnResourcePathsResult, _v as Question, ag as composeLoopTraceEmitters, ah as DelegationExecutor, ay as JsonRpcResponse, bh as DelegationTaskQueue, bp as SpawnResourceRead, cg as FileDelegationStore, ch as SiblingSandboxExecutorOptions, cy as McpTransport, dg as CoderTask, dh as DetachedTurn, dt as CoordinationStats, eh as DelegateRunCtx, ev as CoordinationEvent, fh as RunDetachedTurnOptions, ft as CoordinationTools, gh as DelegationResumeContext, gt as MakeWorkerAgent, hh as DelegationRecord, ig as DelegationTraceSpan, ih as detachedSessionDelegate, iv as ManagerWake, iy as JsonRpcMessage, jh as DelegationError, jy as runLocalHarness, kh as DelegateUiAuditConfig, kp as DelegateResult, lg as FileDelegationStoreOptions, lh as createFleetWorkspaceExecutor, mh as DelegationArgs, ng as createPropagatingTraceEmitter, nh as DetachedWinnerSelection, og as DelegationPersistenceError, oh as FleetHandle, oy as McpToolAnnotations, ph as runDetachedTurn, pt as CoordinationToolsOptions, rg as readTraceContextFromEnv, rh as UiAuditorDelegate, rp as CheckRead, sg as DelegationStore, sh as FleetWorkspaceExecutorOptions, sy as McpToolDescriptor, tg as TraceContext, th as DetachedSessionDelegateOptions, ug as CoderOutput, uh as createSiblingSandboxExecutor, vh as DelegationResumeTick, vp as ResolvedSpawnResourcePath, wh as DelegateCodeArgs, wp as McpServer, wt as WorkerSpawnContext, xh as DelegationTaskQueueOptions, xp as SpawnResourceReader, yh as DelegationRunContext, yp as SpawnResourceBytes, zh as FeedbackRating } from "../types-
|
|
1
|
+
import { $_ as AwaitWakeInput, $m as CoderReviewer, Ah as DelegateUiAuditRoute, Ap as createDelegateHandler, Ay as RunLocalHarnessOptions, Bh as FeedbackRefersTo, Ch as SubmitOutput, Cp as resolveSpawnResourcePaths, Cv as QuestionOption, Dh as DelegateResearchConfig, Dp as DelegateError, Eh as DelegateResearchArgs, Ep as createMcpServer, Ev as QuestionUrgency, Fh as DelegationProgress, Hh as UiAuditLensFilter, Ih as DelegationResultPayload, Lh as DelegationStatus, Mh as DelegationFeedbackSnapshot, My as LOCAL_HARNESSES, Nh as DelegationHistoryArgs, Ny as LocalHarness, Oh as DelegateUiAuditArgs, Op as DelegateHandlerOptions, Ph as DelegationHistoryEntry, Q_ as GitRunner, Qm as CoderReview, Rh as DelegationStatusResult, Sh as SubmitInput, Sp as environmentReader, St as SpawnRefusalCause, Sv as QuestionLevel, Sy as AnalystRegistry, Th as DelegateCodeConfig, Tp as McpServerOptions, Uh as UiAuditorDelegationOutput, Vh as ResearchOutputShape, Xm as FeedbackStore, Ym as FeedbackEvent, Zm as CoderDelegate, _h as DelegationResumeDriver, _p as ResolveSpawnResourcePathsResult, _v as Question, ag as composeLoopTraceEmitters, ah as DelegationExecutor, ay as JsonRpcResponse, bh as DelegationTaskQueue, bp as SpawnResourceRead, cg as FileDelegationStore, ch as SiblingSandboxExecutorOptions, cy as McpTransport, dg as CoderTask, dh as DetachedTurn, dt as CoordinationStats, eh as DelegateRunCtx, ev as CoordinationEvent, fh as RunDetachedTurnOptions, ft as CoordinationTools, gh as DelegationResumeContext, gt as MakeWorkerAgent, hh as DelegationRecord, ig as DelegationTraceSpan, ih as detachedSessionDelegate, iv as ManagerWake, iy as JsonRpcMessage, jh as DelegationError, jy as runLocalHarness, kh as DelegateUiAuditConfig, kp as DelegateResult, lg as FileDelegationStoreOptions, lh as createFleetWorkspaceExecutor, mh as DelegationArgs, ng as createPropagatingTraceEmitter, nh as DetachedWinnerSelection, og as DelegationPersistenceError, oh as FleetHandle, oy as McpToolAnnotations, ph as runDetachedTurn, pt as CoordinationToolsOptions, rg as readTraceContextFromEnv, rh as UiAuditorDelegate, rp as CheckRead, sg as DelegationStore, sh as FleetWorkspaceExecutorOptions, sy as McpToolDescriptor, tg as TraceContext, th as DetachedSessionDelegateOptions, ug as CoderOutput, uh as createSiblingSandboxExecutor, vh as DelegationResumeTick, vp as ResolvedSpawnResourcePath, wh as DelegateCodeArgs, wp as McpServer, wt as WorkerSpawnContext, xh as DelegationTaskQueueOptions, xp as SpawnResourceReader, yh as DelegationRunContext, yp as SpawnResourceBytes, zh as FeedbackRating } from "../types-DztCeYd6.js";
|
|
2
2
|
import { HarnessType } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/mcp/kb-gate.d.ts
|
|
4
4
|
/**
|
package/dist/mcp/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Y as deleteBoxSafe, lt as throwIfAborted, ot as sleep } from "../sandbo
|
|
|
4
4
|
import { t as assertExecutableAgentProfile } from "../model-policy-CyCUwHed.js";
|
|
5
5
|
import { t as createCoordinationTools } from "../coordination-manager-T98ZbsEt.js";
|
|
6
6
|
import { n as createStdioToolServer } from "../tool-server-XV4aJwoQ.js";
|
|
7
|
-
import { ct as selectValidWinner, h as runCoderChecks } from "../runtime-
|
|
7
|
+
import { ct as selectValidWinner, h as runCoderChecks } from "../runtime-B_93oWEv.js";
|
|
8
8
|
import { a as composeLoopTraceEmitters, i as FileDelegationStore, n as createDelegateHandler, r as DelegationTaskQueue, t as createMcpServer } from "../server-DjrVWzH2.js";
|
|
9
9
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
10
10
|
import { isRecord } from "@tangle-network/agent-core";
|
package/dist/profiles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $h as ResearcherProfileOptions, Gh as UiFindingScreenshot, Jh as KnowledgeItem, Kh as UiFindingSeverity, Qh as ResearchTask, Wh as UiFinding, Xh as ResearchOutput, Yh as KnowledgeUpdate, Zh as ResearchSource, eg as researcherProfile, qh as UiLens } from "./types-
|
|
1
|
+
import { $h as ResearcherProfileOptions, Gh as UiFindingScreenshot, Jh as KnowledgeItem, Kh as UiFindingSeverity, Qh as ResearchTask, Wh as UiFinding, Xh as ResearchOutput, Yh as KnowledgeUpdate, Zh as ResearchSource, eg as researcherProfile, qh as UiLens } from "./types-DztCeYd6.js";
|
|
2
2
|
import { SandboxEvent } from "@tangle-network/sandbox";
|
|
3
3
|
//#region src/profiles/ui-auditor/lens-prompts.d.ts
|
|
4
4
|
/** Cross-lens rules injected into every UI audit iteration: finding quality standards and scope limits. @experimental */
|
|
@@ -8898,10 +8898,14 @@ function createWaterfallCollector() {
|
|
|
8898
8898
|
if (typeof p.score === "number") span.score = p.score;
|
|
8899
8899
|
}
|
|
8900
8900
|
};
|
|
8901
|
-
const report = () => {
|
|
8902
|
-
const
|
|
8901
|
+
const report = (opts) => {
|
|
8902
|
+
const observedAtMs = opts?.nowMs ?? Date.now();
|
|
8903
|
+
const all = [...spans.values()].map((span) => ({
|
|
8904
|
+
...span,
|
|
8905
|
+
tokens: { ...span.tokens }
|
|
8906
|
+
})).sort((a, b) => a.startMs - b.startMs);
|
|
8903
8907
|
const start = all[0]?.startMs ?? 0;
|
|
8904
|
-
const end = Math.max(start, ...all.map((s) => s.endMs ?? s.startMs));
|
|
8908
|
+
const end = Math.max(start, ...all.map((s) => s.endMs ?? Math.max(s.startMs, observedAtMs)));
|
|
8905
8909
|
const byKind = {};
|
|
8906
8910
|
let totalUsd = 0;
|
|
8907
8911
|
const totalTokens = {
|
|
@@ -8927,13 +8931,14 @@ function createWaterfallCollector() {
|
|
|
8927
8931
|
byKind[kind] = k;
|
|
8928
8932
|
}
|
|
8929
8933
|
k.count += 1;
|
|
8930
|
-
k.ms += (s.endMs ?? s.startMs) - s.startMs;
|
|
8934
|
+
k.ms += (s.endMs ?? Math.max(s.startMs, observedAtMs)) - s.startMs;
|
|
8931
8935
|
k.usd += s.usd;
|
|
8932
8936
|
k.tokens.input += s.tokens.input;
|
|
8933
8937
|
k.tokens.output += s.tokens.output;
|
|
8934
8938
|
}
|
|
8935
8939
|
return {
|
|
8936
8940
|
spans: all,
|
|
8941
|
+
observedAtMs,
|
|
8937
8942
|
totalMs: end - start,
|
|
8938
8943
|
totalUsd,
|
|
8939
8944
|
totalTokens,
|
|
@@ -8941,7 +8946,7 @@ function createWaterfallCollector() {
|
|
|
8941
8946
|
};
|
|
8942
8947
|
};
|
|
8943
8948
|
const render = (opts) => {
|
|
8944
|
-
const { spans: all, totalMs, totalUsd, byKind } = report();
|
|
8949
|
+
const { spans: all, observedAtMs, totalMs, totalUsd, byKind } = report(opts);
|
|
8945
8950
|
if (all.length === 0) return "(no spans observed)";
|
|
8946
8951
|
const width = opts?.width ?? 48;
|
|
8947
8952
|
const maxRows = opts?.maxRows ?? 60;
|
|
@@ -8951,7 +8956,7 @@ function createWaterfallCollector() {
|
|
|
8951
8956
|
const labelWidth = Math.min(24, Math.max(...all.map((s) => s.label.length)) + 1);
|
|
8952
8957
|
for (const s of all.slice(0, maxRows)) {
|
|
8953
8958
|
const offset = Math.round((s.startMs - start) * scale);
|
|
8954
|
-
const dur = (s.endMs ?? s.startMs) - s.startMs;
|
|
8959
|
+
const dur = (s.endMs ?? Math.max(s.startMs, observedAtMs)) - s.startMs;
|
|
8955
8960
|
const len = Math.max(1, Math.round(dur * scale));
|
|
8956
8961
|
const bar = `${" ".repeat(Math.min(offset, width))}${(s.status === "down" ? "░" : "█").repeat(Math.max(1, Math.min(len, width - Math.min(offset, width) + 1)))}`;
|
|
8957
8962
|
const mark = s.status === "down" ? " DOWN" : s.score !== void 0 ? ` ${(s.score * 100).toFixed(0)}%` : "";
|
|
@@ -9195,4 +9200,4 @@ function tail(s) {
|
|
|
9195
9200
|
//#endregion
|
|
9196
9201
|
export { runPersonified as $, openSqlRunStore as $t, searchSpecDigest as A, secretEnvOfMcpServer as At, chatWorkerSeam as B, readDeclaredCheck as Bt, withUntrackedArtifacts as C, materializeLocalMcp as Ct, assertSearchSpec as D, mcpSecretEnvMetadataKey as Dt, SEARCH_SPEC_CORRELATION_KEY as E, envKeyProvider as Et, profileRegistry as F, assertDeclaredCheck as Ft, openSandboxRun as G, stopSentinel as Gt, runStrategyEvolution as H, completionAuthorizes as Ht, profileRunsForName as I, checkProgramDigest as It, runBenchmark as J, renderLeaderboardHtml as Jt, createS3PrivateCasStore as K, leaderboard as Kt, recordProfileRun as L, declaredCheckDeliverable as Lt, bestProfileFor as M, loopCampaignDispatch as Mt, loadProfile as N, loopDispatch as Nt, compileSearchSpec as O, resolveMcpServerLaunch as Ot, pickBestProfile as P, superviseDispatch as Pt, definePersona as Q, SqlRunOwnershipError as Qt, graphDesignerExtraTools as R, declaredCheckDigest as Rt, copyUntrackedIntoClone as S, connectStdioMcp as St, createFencedSqlRunContext as T, sanitizeMcpToolSchema as Tt, strategyTournament as U, deterministicCompletion as Ut, createChatSessionStore as V, runIsolatedCheck as Vt, SandboxRunAbortError as W, sentinelCompletion as Wt, equalKOnCost as X, renderLeaderboardSvg as Xt, createPrivateCasArtifactPort as Y, renderLeaderboardMarkdown as Yt, trajectoryReport as Z, renderPairwiseMarkdown as Zt, NOTE_MAX_CHARS as _, HarvestError as _t, localShell as a, loopUntil as at, composeWorkerEvidence as b, resolveSandboxClient as bt, createVerifierEnvironment as c, selectValidWinner as ct, harvestSurfaceDiffs as d, assertTraceDerivedFindings as dt, FileCorpus as et, analystsFromRegistry as f, buildSteerContext as ft, EVIDENCE_MAX_CHARS as g, inProcessSandboxClient as gt, runCoderChecks as h, observationFromRegistry as ht, jjWorkspace as i, flatWidenGate as it, connectRemoteSupervisor as j, inlineSandboxClient as jt, searchPresets as k, resolveSecretEnv as kt, boxSurfaceReader as l, verify as lt, worktreeFanout as m, registryScopeAnalyst as mt, makeFinding$1 as n, renderCorpusToInstructions as nt, runInWorkspace as o, panel as ot, failuresAnalyst as p, createScopeAnalyst as pt, printBenchmarkReport as q, pairwiseSignificance as qt, gitWorkspace as r, fanout as rt, createWaterfallCollector as s, pipeline as st, computeFindingId$1 as t, InMemoryCorpus as tt, fsSurfaceReader as u, widen as ut, VERIFY_TAIL_CHARS as v, harvestCorpus as vt, analyzeTrace as w, createMcpEnvironment as wt, settledWorkerOut as x, McpSpawnFault as xt, closingWorkerNote as y, defineLeaderboard as yt, chatTransportExecutor as z, declaredCheckJudge as zt };
|
|
9197
9202
|
|
|
9198
|
-
//# sourceMappingURL=runtime-
|
|
9203
|
+
//# sourceMappingURL=runtime-B_93oWEv.js.map
|