@tangle-network/agent-runtime 0.71.1 → 0.73.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/README.md +8 -8
- package/dist/agent.d.ts +27 -17
- package/dist/agent.js +21 -9
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/analyst-loop.js +3 -2
- package/dist/{chunk-4KGQHS7U.js → chunk-7ODB76J5.js} +2 -18
- package/dist/chunk-7ODB76J5.js.map +1 -0
- package/dist/chunk-HPYWEFVY.js +4039 -0
- package/dist/chunk-HPYWEFVY.js.map +1 -0
- package/dist/{chunk-P5OKDSLB.js → chunk-IODKUOBA.js} +5 -3
- package/dist/{chunk-P5OKDSLB.js.map → chunk-IODKUOBA.js.map} +1 -1
- package/dist/chunk-NBV35BR6.js +68 -0
- package/dist/chunk-NBV35BR6.js.map +1 -0
- package/dist/{chunk-5ISW5JUF.js → chunk-NCH4XUZ7.js} +2004 -6551
- package/dist/chunk-NCH4XUZ7.js.map +1 -0
- package/dist/chunk-PBE35ULD.js +52 -0
- package/dist/chunk-PBE35ULD.js.map +1 -0
- package/dist/{chunk-VLF5RHEQ.js → chunk-T2HVQVB4.js} +1 -66
- package/dist/chunk-T2HVQVB4.js.map +1 -0
- package/dist/{chunk-K3RM4MPM.js → chunk-U56XGKVY.js} +9 -24
- package/dist/chunk-U56XGKVY.js.map +1 -0
- package/dist/chunk-UZ5SODU7.js +29 -0
- package/dist/chunk-UZ5SODU7.js.map +1 -0
- package/dist/{delegates-CsXJPZDH.d.ts → coordination-DU0saWeg.d.ts} +875 -1099
- package/dist/index.d.ts +7 -8
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +1 -1
- package/dist/lifecycle.d.ts +281 -0
- package/dist/lifecycle.js +174 -0
- package/dist/lifecycle.js.map +1 -0
- package/dist/{loop-runner-bin-DLM_bVQO.d.ts → loop-runner-bin-eD3m0rHW.d.ts} +10 -27
- package/dist/loop-runner-bin.d.ts +5 -6
- package/dist/loop-runner-bin.js +6 -6
- package/dist/loops.d.ts +47 -10
- package/dist/loops.js +47 -42
- package/dist/mcp/bin.js +17 -329
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +10 -190
- package/dist/mcp/index.js +949 -47
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-kdCS-T12.d.ts → openai-tools-CBurv8Cu.d.ts} +11 -13
- package/dist/otel-export-BKmNwiCb.d.ts +180 -0
- package/dist/profiles.d.ts +3 -3
- package/dist/profiles.js +1 -5
- package/dist/profiles.js.map +1 -1
- package/dist/{substrate-BoRXgvka.d.ts → substrate-rNj6TDc3.d.ts} +7 -23
- package/dist/{types-CdnEAE3U.d.ts → types-JufmXF2a.d.ts} +80 -1
- package/dist/worktree-DaxOvw-C.d.ts +702 -0
- package/dist/{worktree-fanout-CK2ypmEm.d.ts → worktree-fanout-DIffZohV.d.ts} +15 -5
- package/package.json +6 -1
- package/dist/chunk-4KGQHS7U.js.map +0 -1
- package/dist/chunk-5ISW5JUF.js.map +0 -1
- package/dist/chunk-74UAWZXE.js +0 -278
- package/dist/chunk-74UAWZXE.js.map +0 -1
- package/dist/chunk-DVQGYDN5.js +0 -59
- package/dist/chunk-DVQGYDN5.js.map +0 -1
- package/dist/chunk-INXDNX2W.js +0 -475
- package/dist/chunk-INXDNX2W.js.map +0 -1
- package/dist/chunk-K3RM4MPM.js.map +0 -1
- package/dist/chunk-VLF5RHEQ.js.map +0 -1
- package/dist/chunk-XRYEZPR6.js +0 -88
- package/dist/chunk-XRYEZPR6.js.map +0 -1
- package/dist/coordination-BPQmuwv8.d.ts +0 -666
- package/dist/delegation-profile-Bvfro2m1.d.ts +0 -99
package/dist/loops.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { ChatClient, AnalystFinding, AgentProfile, AnalystRunInputs, ToolSpan, S
|
|
|
2
2
|
export { AnalystFinding, DefaultVerdict, computeFindingId, makeFinding } from '@tangle-network/agent-eval';
|
|
3
3
|
import { SandboxInstance, CreateSandboxOptions, SandboxEvent } from '@tangle-network/sandbox';
|
|
4
4
|
export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
9
|
-
import { b as RuntimeHooks, I as Iteration, S as SandboxClient, U as Driver, A as AgentRunSpec, a as OutputAdapter, V as Validator, E as ExecCtx, W as LoopWinner, X as LoopLineageOptions, Y as LoopResult,
|
|
10
|
-
export {
|
|
11
|
-
import { C as CorpusRecord, c as Corpus, O as Outcome, S as ScopeAnalyzeInput, d as AssertTraceDerivedFindings, e as SteerContext, f as ScopeAnalyst, F as FanoutOptions, g as CombinatorShape, h as ScopeWidenGate, L as LoopUntilSpec, P as PanelSpec, i as PipelineStage, W as WinnerStrategy, j as FanoutWinnerSelector, V as VerifySpec, k as WidenSpec, l as CorpusFilter, R as RenderCorpusToInstructionsOptions, D as DefinePersonaInput, m as Persona, n as RunPersonifiedOptions, o as ShapeRegistry, p as LoopShape, E as EqualKArm, q as EqualKOnCostOptions, r as EqualKVerdict, T as TrajectoryReportOptions, s as TrajectoryReport } from './worktree-fanout-
|
|
12
|
-
export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a3 as WorktreeCommandResult, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a4 as createWorktreeCliExecutor, a5 as patchDelivered, a6 as worktreeFanout } from './worktree-fanout-
|
|
5
|
+
import { h as ResultBlobStore, S as SpawnJournal, N as NodeId, q as SpawnEvent, p as ExecutorFactory, g as Agent, B as Budget, m as Scope, k as Settled, j as SupervisedResult, o as DeliverableSpec, l as Spend, U as UsageEvent, E as ExecutorRegistry, s as Supervisor } from './worktree-DaxOvw-C.js';
|
|
6
|
+
export { A as AgentSpec, n as Executor, t as ExecutorContext, u as ExecutorResult, v as SupervisorOpts, T as TreeView, w as WidenGate, x as gateOnDeliverable } from './worktree-DaxOvw-C.js';
|
|
7
|
+
import { ak as MakeWorkerAgent, o as CoordinationTools, A as AnalystRegistry, n as CoordinationEvent, ar as QuestionPolicy, a$ as ExecutorConfig } from './coordination-DU0saWeg.js';
|
|
8
|
+
export { b0 as BusEvent, b1 as BusRecord, b2 as BusStats, b3 as EventBus, b4 as PublishOptions, b5 as cliWorktreeExecutor, b6 as createEventBus, b7 as createExecutor, b8 as createExecutorRegistry } from './coordination-DU0saWeg.js';
|
|
9
|
+
import { b as RuntimeHooks, I as Iteration, S as SandboxClient, U as Driver, A as AgentRunSpec, a as OutputAdapter, V as Validator, E as ExecCtx, W as LoopWinner, X as LoopLineageOptions, Y as LoopResult, L as LoopTokenUsage, R as RuntimeStreamEvent, Z as MountRecorder } from './types-JufmXF2a.js';
|
|
10
|
+
export { _ as LoopDecisionPayload, $ as LoopEndedPayload, a0 as LoopIterationDispatchPayload, a1 as LoopIterationEndedPayload, a2 as LoopIterationStartedPayload, a3 as LoopPlanDescription, a4 as LoopPlanPayload, d as LoopSandboxPlacement, a5 as LoopStartedPayload, a6 as LoopTeardownFailedPayload, e as LoopTraceEmitter, c as LoopTraceEvent, a7 as MountManifestEntry, a8 as RunProvenance, a9 as SelectionReceipt, aa as ValidationCtx } from './types-JufmXF2a.js';
|
|
11
|
+
import { C as CorpusRecord, c as Corpus, O as Outcome, S as ScopeAnalyzeInput, d as AssertTraceDerivedFindings, e as SteerContext, f as ScopeAnalyst, F as FanoutOptions, g as CombinatorShape, h as ScopeWidenGate, L as LoopUntilSpec, P as PanelSpec, i as PipelineStage, W as WinnerStrategy, j as FanoutWinnerSelector, V as VerifySpec, k as WidenSpec, l as CorpusFilter, R as RenderCorpusToInstructionsOptions, D as DefinePersonaInput, m as Persona, n as RunPersonifiedOptions, o as ShapeRegistry, p as LoopShape, E as EqualKArm, q as EqualKOnCostOptions, r as EqualKVerdict, T as TrajectoryReportOptions, s as TrajectoryReport } from './worktree-fanout-DIffZohV.js';
|
|
12
|
+
export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a3 as WorktreeCommandResult, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a4 as createWorktreeCliExecutor, a5 as patchDelivered, a6 as worktreeFanout } from './worktree-fanout-DIffZohV.js';
|
|
13
13
|
import { Scenario, ProfileDispatchFn } from '@tangle-network/agent-eval/campaign';
|
|
14
14
|
import { b as AnalystRegistryLike } from './types-BC3bZpH0.js';
|
|
15
15
|
import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
|
|
@@ -17,7 +17,8 @@ import { R as RouterConfig, a as ToolLoopChat } from './router-client-C7kp_ECN.j
|
|
|
17
17
|
export { b as RouterChatResult, c as RouterChatToolsResult, d as RouterToolCall, e as RouterToolLoopResult, T as ToolSpec, r as routerBrain, f as routerChatWithTools, g as routerChatWithUsage, h as routerToolLoop } from './router-client-C7kp_ECN.js';
|
|
18
18
|
import { stuckLoopView, toolWasteView } from '@tangle-network/agent-eval/pipelines';
|
|
19
19
|
import 'node:child_process';
|
|
20
|
-
import './substrate-
|
|
20
|
+
import './substrate-rNj6TDc3.js';
|
|
21
|
+
import './otel-export-BKmNwiCb.js';
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* @experimental
|
|
@@ -1721,6 +1722,10 @@ interface SandboxLineage {
|
|
|
1721
1722
|
declare function createSandboxLineage(client: SandboxClient, capabilities: SandboxCapabilities, options?: {
|
|
1722
1723
|
maxConcurrency?: number;
|
|
1723
1724
|
streaming?: 'sse' | 'poll';
|
|
1725
|
+
/** Run provenance recorder forwarded to every `prepareBox` the lineage runs
|
|
1726
|
+
* (fresh start, continue, and fork branches). Absent ⇒ mounts go unrecorded
|
|
1727
|
+
* (a no-op recorder stands in so the ctx shape is always satisfied). */
|
|
1728
|
+
recordMount?: MountRecorder;
|
|
1724
1729
|
}): SandboxLineage;
|
|
1725
1730
|
/**
|
|
1726
1731
|
* Loop-side widening of the box's optional checkpoint method. The
|
|
@@ -1815,6 +1820,24 @@ interface TurnResult<Out> {
|
|
|
1815
1820
|
events: SandboxEvent[];
|
|
1816
1821
|
readError?: string;
|
|
1817
1822
|
}
|
|
1823
|
+
/**
|
|
1824
|
+
* @experimental
|
|
1825
|
+
* Thrown when a turn is aborted/timed-out mid-settle. Carries the events drained
|
|
1826
|
+
* BEFORE the abort fired (and any in-progress `readError`) so an aborted run is
|
|
1827
|
+
* DIAGNOSABLE — the caller can tell never-started (`events: []`) from looped
|
|
1828
|
+
* (many events, no terminal `result`) from produced-nothing-then-cancelled.
|
|
1829
|
+
*
|
|
1830
|
+
* `name === 'AbortError'`, so existing `err.name === 'AbortError'` callers (the
|
|
1831
|
+
* loop kernel, scope, supervise runtime) keep matching it unchanged.
|
|
1832
|
+
*/
|
|
1833
|
+
declare class SandboxRunAbortError extends Error {
|
|
1834
|
+
readonly name = "AbortError";
|
|
1835
|
+
/** Events drained from the stream before the abort interrupted the turn. */
|
|
1836
|
+
readonly events: SandboxEvent[];
|
|
1837
|
+
/** The last artifact read error, if the abort fired during the retry loop. */
|
|
1838
|
+
readonly readError?: string;
|
|
1839
|
+
constructor(events: SandboxEvent[], readError?: string);
|
|
1840
|
+
}
|
|
1818
1841
|
/** @experimental A live run over ONE persistent artifact (box + session). Close it
|
|
1819
1842
|
* when done — `close()` tears the box down. */
|
|
1820
1843
|
interface SandboxRun<Out> {
|
|
@@ -2348,6 +2371,9 @@ interface DriverAgentOptions {
|
|
|
2348
2371
|
readonly makeWorkerAgent: MakeWorkerAgent;
|
|
2349
2372
|
/** Per-child budget reserved from the conserved pool on each spawn. */
|
|
2350
2373
|
readonly perWorker: Budget;
|
|
2374
|
+
/** Hard cap on simultaneously-LIVE workers — `spawn_agent` fails closed once this many are in
|
|
2375
|
+
* flight (a concurrency fence on top of the conserved-pool fence). Omit/`<= 0` = no cap. */
|
|
2376
|
+
readonly maxLiveWorkers?: number;
|
|
2351
2377
|
/** The driver's stance — a string, or built from the task (the worker-driver prompt /
|
|
2352
2378
|
* the generator). INJECTED so the prompt is a pluggable, optimizable role. */
|
|
2353
2379
|
readonly systemPrompt: string | ((task: unknown) => string);
|
|
@@ -2437,6 +2463,9 @@ declare function serveCoordinationMcp(opts: {
|
|
|
2437
2463
|
blobs: ResultBlobStore;
|
|
2438
2464
|
makeWorkerAgent: MakeWorkerAgent;
|
|
2439
2465
|
perWorker: Budget;
|
|
2466
|
+
/** Hard cap on simultaneously-LIVE workers — `spawn_agent` fails closed once this many are in
|
|
2467
|
+
* flight (a concurrency fence on top of the conserved-pool fence). Omit/`<= 0` = no cap. */
|
|
2468
|
+
maxLiveWorkers?: number;
|
|
2440
2469
|
port?: number;
|
|
2441
2470
|
host?: string;
|
|
2442
2471
|
/** Trace-analyst lenses the driver can run (`run_analyst`) or auto-fire on settle. */
|
|
@@ -2475,6 +2504,10 @@ interface SupervisorAgentDeps {
|
|
|
2475
2504
|
readonly makeWorkerAgent: MakeWorkerAgent;
|
|
2476
2505
|
/** Per-child budget reserved from the conserved pool on each spawn. */
|
|
2477
2506
|
readonly perWorker: Budget;
|
|
2507
|
+
/** Hard cap on simultaneously-LIVE workers across both arms — `spawn_agent` fails closed once
|
|
2508
|
+
* this many are in flight (a concurrency fence on top of the conserved-pool fence; bounds live
|
|
2509
|
+
* boxes/sandboxes, not total work). Omit/`<= 0` = no cap. */
|
|
2510
|
+
readonly maxLiveWorkers?: number;
|
|
2478
2511
|
/** Router substrate for a router-brained supervisor (`harness` null). The profile's model wins. */
|
|
2479
2512
|
readonly router?: RouterConfig;
|
|
2480
2513
|
/** Inject the brain directly (tests / advanced) instead of resolving `routerBrain` from the profile. */
|
|
@@ -2859,6 +2892,10 @@ interface SuperviseOptions {
|
|
|
2859
2892
|
readonly executeExtraTool?: (name: string, args: Record<string, unknown>) => Promise<string | null | undefined>;
|
|
2860
2893
|
/** Per-child budget reserved on each spawn. Defaults to a quarter of the pool's tokens. */
|
|
2861
2894
|
readonly perWorker?: Budget;
|
|
2895
|
+
/** Hard cap on simultaneously-LIVE workers — `spawn_agent` fails closed once this many are in
|
|
2896
|
+
* flight. The conserved pool bounds TOTAL work; this bounds SIMULTANEOUS work (live boxes/
|
|
2897
|
+
* sandboxes a real fleet runs at once). Omit/`<= 0` = no cap (the pool stays the only fence). */
|
|
2898
|
+
readonly maxLiveWorkers?: number;
|
|
2862
2899
|
/** Worker output store. Defaults to in-memory. */
|
|
2863
2900
|
readonly blobs?: ResultBlobStore;
|
|
2864
2901
|
readonly maxDepth?: number;
|
|
@@ -3027,4 +3064,4 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
|
|
|
3027
3064
|
commitOnInvalid?: boolean;
|
|
3028
3065
|
}): Promise<WorkspaceRun<T>>;
|
|
3029
3066
|
|
|
3030
|
-
export { Agent, AgentRunSpec, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DelegateOptions, type Deliverable, DeliverableSpec, type DriveHarness, Driver, type DriverAgentOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, FanoutOptions, FanoutWinnerSelector, FileCorpus, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type Inbox, type InboxMessage, type IntentAudit, Iteration, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, type McpEndpoint, type McpEnvironmentOptions, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunOptions, Outcome, OutputAdapter, PanelSpec, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, ResultBlobStore, RouterConfig, type RunAgenticOptions, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, type SessionTraceBox, Settled, ShapeRegistry, type Shell, type ShotPersona, type ShotSpec, Spend, SteerContext, type Strategy, type StrategyCtx, type StrategyEvolutionConfig, type StrategyResult, type SuperviseOptions, SupervisedResult, Supervisor, type SupervisorAgentDeps, type SupervisorProfile, type SurfaceScore, ToolLoopChat, type TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, type WatchTraceOptions, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, adaptiveRefine, analyzeTrace, anytimeReport, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, breadthStrategy, buildSteerContext, builtinShapes, completionAuthorizes, contentAddress, createBudgetPool, createInMemoryRunContext, createInbox, createMcpEnvironment, createPushTraceSource, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defaultToolDetectors, definePersona, defineStrategy, delegate, depthStrategy, deterministicCompletion, discriminatingMeans, driverAgent, equalKOnCost, extractLlmCallEvent, fanout, finalizeBestDelivered, flatWidenGate, gitWorkspace, harvestCorpus, inlineSandboxClient, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, reportLoopUsage, runAgentic, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sample, sampleThenRefine, sandboxSessionTraceSource, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervise, supervisorAgent, supervisorInstructions, trajectoryReport, verify, watchTrace, widen, workerFromBackend };
|
|
3067
|
+
export { Agent, AgentRunSpec, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DelegateOptions, type Deliverable, DeliverableSpec, type DriveHarness, Driver, type DriverAgentOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, FanoutOptions, FanoutWinnerSelector, FileCorpus, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type Inbox, type InboxMessage, type IntentAudit, Iteration, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, type McpEndpoint, type McpEnvironmentOptions, MountRecorder, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunOptions, Outcome, OutputAdapter, PanelSpec, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, ResultBlobStore, RouterConfig, type RunAgenticOptions, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, type SessionTraceBox, Settled, ShapeRegistry, type Shell, type ShotPersona, type ShotSpec, Spend, SteerContext, type Strategy, type StrategyCtx, type StrategyEvolutionConfig, type StrategyResult, type SuperviseOptions, SupervisedResult, Supervisor, type SupervisorAgentDeps, type SupervisorProfile, type SurfaceScore, ToolLoopChat, type TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, type WatchTraceOptions, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, adaptiveRefine, analyzeTrace, anytimeReport, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, breadthStrategy, buildSteerContext, builtinShapes, completionAuthorizes, contentAddress, createBudgetPool, createInMemoryRunContext, createInbox, createMcpEnvironment, createPushTraceSource, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defaultToolDetectors, definePersona, defineStrategy, delegate, depthStrategy, deterministicCompletion, discriminatingMeans, driverAgent, equalKOnCost, extractLlmCallEvent, fanout, finalizeBestDelivered, flatWidenGate, gitWorkspace, harvestCorpus, inlineSandboxClient, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, reportLoopUsage, runAgentic, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sample, sampleThenRefine, sandboxSessionTraceSource, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervise, supervisorAgent, supervisorInstructions, trajectoryReport, verify, watchTrace, widen, workerFromBackend };
|
package/dist/loops.js
CHANGED
|
@@ -1,62 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FileCorpus,
|
|
3
3
|
InMemoryCorpus,
|
|
4
|
-
|
|
5
|
-
InMemorySpawnJournal,
|
|
6
|
-
acquireSandbox,
|
|
4
|
+
SandboxRunAbortError,
|
|
7
5
|
adaptiveRefine,
|
|
8
6
|
analyzeTrace,
|
|
9
7
|
anytimeReport,
|
|
10
|
-
asAuthoredProfile,
|
|
11
|
-
assertModelAllowed,
|
|
12
8
|
assertStrategyContract,
|
|
13
9
|
assertTraceDerivedFindings,
|
|
14
|
-
assessAuthoredProfile,
|
|
15
10
|
auditIntent,
|
|
16
11
|
authorStrategy,
|
|
17
|
-
authoredWorker,
|
|
18
12
|
breadthStrategy,
|
|
19
13
|
buildSteerContext,
|
|
20
14
|
builtinShapes,
|
|
21
|
-
cliWorktreeExecutor,
|
|
22
15
|
completionAuthorizes,
|
|
23
16
|
computeFindingId,
|
|
24
|
-
contentAddress,
|
|
25
|
-
createBudgetPool,
|
|
26
|
-
createEventBus,
|
|
27
|
-
createExecutor,
|
|
28
|
-
createExecutorRegistry,
|
|
29
|
-
createInMemoryRunContext,
|
|
30
|
-
createInbox,
|
|
31
17
|
createMcpEnvironment,
|
|
32
18
|
createPushTraceSource,
|
|
33
|
-
createSandboxLineage,
|
|
34
|
-
createScope,
|
|
35
19
|
createScopeAnalyst,
|
|
36
20
|
createShapeRegistry,
|
|
37
|
-
createSupervisor,
|
|
38
21
|
createVerifierEnvironment,
|
|
39
22
|
createWaterfallCollector,
|
|
40
|
-
createWorktreeCliExecutor,
|
|
41
23
|
decodeToolPart,
|
|
42
24
|
defaultAnalystInstruction,
|
|
43
25
|
defaultAuditorInstruction,
|
|
44
|
-
defaultDelegateBudget,
|
|
45
|
-
defaultProfileRichnessThresholds,
|
|
46
|
-
defaultSelectWinner,
|
|
47
26
|
defaultToolDetectors,
|
|
48
27
|
definePersona,
|
|
49
28
|
defineStrategy,
|
|
50
|
-
delegate,
|
|
51
29
|
depthStrategy,
|
|
52
30
|
deterministicCompletion,
|
|
53
31
|
discriminatingMeans,
|
|
54
|
-
driverAgent,
|
|
55
32
|
equalKOnCost,
|
|
56
33
|
fanout,
|
|
57
|
-
finalizeBestDelivered,
|
|
58
34
|
flatWidenGate,
|
|
59
|
-
gateOnDeliverable,
|
|
60
35
|
gitWorkspace,
|
|
61
36
|
harvestCorpus,
|
|
62
37
|
inlineSandboxClient,
|
|
@@ -72,8 +47,6 @@ import {
|
|
|
72
47
|
pickChampion,
|
|
73
48
|
pipeline,
|
|
74
49
|
printBenchmarkReport,
|
|
75
|
-
probeSandboxCapabilities,
|
|
76
|
-
profileRichnessFinding,
|
|
77
50
|
promotionGate,
|
|
78
51
|
refine,
|
|
79
52
|
registerShape,
|
|
@@ -82,14 +55,9 @@ import {
|
|
|
82
55
|
renderCorpusToInstructions,
|
|
83
56
|
renderReport,
|
|
84
57
|
reportLoopUsage,
|
|
85
|
-
routerBrain,
|
|
86
|
-
routerChatWithTools,
|
|
87
|
-
routerChatWithUsage,
|
|
88
|
-
routerToolLoop,
|
|
89
58
|
runAgentic,
|
|
90
59
|
runBenchmark,
|
|
91
60
|
runInWorkspace,
|
|
92
|
-
runLoop,
|
|
93
61
|
runPersonified,
|
|
94
62
|
runStrategyEvolution,
|
|
95
63
|
sample,
|
|
@@ -98,26 +66,62 @@ import {
|
|
|
98
66
|
selectChampion,
|
|
99
67
|
selectValidWinner,
|
|
100
68
|
sentinelCompletion,
|
|
101
|
-
serveCoordinationMcp,
|
|
102
|
-
settledToIteration,
|
|
103
|
-
spendFromUsageEvents,
|
|
104
69
|
stopSentinel,
|
|
105
70
|
strategyAuthorContract,
|
|
106
|
-
supervise,
|
|
107
|
-
supervisorAgent,
|
|
108
|
-
supervisorInstructions,
|
|
109
71
|
trajectoryReport,
|
|
110
72
|
verify,
|
|
111
73
|
watchTrace,
|
|
112
74
|
widen,
|
|
113
|
-
workerFromBackend,
|
|
114
75
|
worktreeFanout
|
|
115
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-HPYWEFVY.js";
|
|
77
|
+
import {
|
|
78
|
+
InMemoryResultBlobStore,
|
|
79
|
+
InMemorySpawnJournal,
|
|
80
|
+
acquireSandbox,
|
|
81
|
+
asAuthoredProfile,
|
|
82
|
+
assertModelAllowed,
|
|
83
|
+
assessAuthoredProfile,
|
|
84
|
+
authoredWorker,
|
|
85
|
+
cliWorktreeExecutor,
|
|
86
|
+
contentAddress,
|
|
87
|
+
createBudgetPool,
|
|
88
|
+
createEventBus,
|
|
89
|
+
createExecutor,
|
|
90
|
+
createExecutorRegistry,
|
|
91
|
+
createInMemoryRunContext,
|
|
92
|
+
createInbox,
|
|
93
|
+
createSandboxLineage,
|
|
94
|
+
createScope,
|
|
95
|
+
createSupervisor,
|
|
96
|
+
createWorktreeCliExecutor,
|
|
97
|
+
defaultDelegateBudget,
|
|
98
|
+
defaultProfileRichnessThresholds,
|
|
99
|
+
defaultSelectWinner,
|
|
100
|
+
delegate,
|
|
101
|
+
driverAgent,
|
|
102
|
+
finalizeBestDelivered,
|
|
103
|
+
gateOnDeliverable,
|
|
104
|
+
probeSandboxCapabilities,
|
|
105
|
+
profileRichnessFinding,
|
|
106
|
+
routerBrain,
|
|
107
|
+
routerChatWithTools,
|
|
108
|
+
routerChatWithUsage,
|
|
109
|
+
routerToolLoop,
|
|
110
|
+
runLoop,
|
|
111
|
+
serveCoordinationMcp,
|
|
112
|
+
settledToIteration,
|
|
113
|
+
spendFromUsageEvents,
|
|
114
|
+
supervise,
|
|
115
|
+
supervisorAgent,
|
|
116
|
+
supervisorInstructions,
|
|
117
|
+
workerFromBackend
|
|
118
|
+
} from "./chunk-NCH4XUZ7.js";
|
|
116
119
|
import "./chunk-VMNEQHJR.js";
|
|
117
120
|
import {
|
|
118
121
|
extractLlmCallEvent,
|
|
119
122
|
mapSandboxEvent
|
|
120
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-T2HVQVB4.js";
|
|
124
|
+
import "./chunk-NBV35BR6.js";
|
|
121
125
|
import "./chunk-WIR4HOOJ.js";
|
|
122
126
|
import "./chunk-DGUM43GV.js";
|
|
123
127
|
export {
|
|
@@ -125,6 +129,7 @@ export {
|
|
|
125
129
|
InMemoryCorpus,
|
|
126
130
|
InMemoryResultBlobStore,
|
|
127
131
|
InMemorySpawnJournal,
|
|
132
|
+
SandboxRunAbortError,
|
|
128
133
|
acquireSandbox,
|
|
129
134
|
adaptiveRefine,
|
|
130
135
|
analyzeTrace,
|