@tangle-network/agent-runtime 0.84.0 → 0.85.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/agent.js +1 -1
- package/dist/{chunk-UJW6EVNY.js → chunk-DLAEEF26.js} +817 -2
- package/dist/chunk-DLAEEF26.js.map +1 -0
- package/dist/{chunk-XBSWWF6A.js → chunk-QSYPMMWS.js} +2 -2
- package/dist/index.js +14 -623
- package/dist/index.js.map +1 -1
- package/dist/loop-runner-bin.js +2 -2
- package/dist/loops.d.ts +132 -2
- package/dist/loops.js +5 -1
- package/dist/mcp/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-UJW6EVNY.js.map +0 -1
- /package/dist/{chunk-XBSWWF6A.js.map → chunk-QSYPMMWS.js.map} +0 -0
package/dist/loop-runner-bin.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
parseLoopRunnerArgv,
|
|
4
4
|
runLoopRunnerCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QSYPMMWS.js";
|
|
6
6
|
import "./chunk-SGKPNBXE.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DLAEEF26.js";
|
|
8
8
|
import "./chunk-XN5TIJGP.js";
|
|
9
9
|
import "./chunk-UD4BHQMI.js";
|
|
10
10
|
import "./chunk-BZF3KQ6G.js";
|
package/dist/loops.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { d as ResultBlobStore, S as SpawnJournal, N as NodeId, j as SpawnEvent,
|
|
|
6
6
|
export { A as AgentSpec, a as Executor, l as ExecutorContext, m as ExecutorResult, R as Runtime, n as SupervisorOpts, T as TreeView, W as WidenGate } from './types-Driepl87.js';
|
|
7
7
|
import { ak as MakeWorkerAgent, A as AnalystRegistry, o as CoordinationTools, n as CoordinationEvent, ar as QuestionPolicy, a$ as ExecutorConfig } from './coordination-CuDLO8wj.js';
|
|
8
8
|
export { b0 as BusEvent, b1 as BusRecord, b2 as BusStats, b3 as EventBus, b4 as ProviderSeam, b5 as PublishOptions, b6 as cliWorktreeExecutor, b7 as createEventBus, b8 as createExecutor, b9 as createExecutorRegistry } from './coordination-CuDLO8wj.js';
|
|
9
|
-
import { R as RuntimeHooks, I as Iteration, S as SandboxClient, W as Driver, A as AgentRunSpec, b as OutputAdapter, V as Validator, E as ExecCtx, X as LoopWinner, Y as LoopLineageOptions, Z as LoopResult, L as LoopTokenUsage, a as RuntimeStreamEvent, _ as MountRecorder } from './types-ESeMOj94.js';
|
|
9
|
+
import { R as RuntimeHooks, I as Iteration, S as SandboxClient, W as Driver, A as AgentRunSpec, b as OutputAdapter, V as Validator, E as ExecCtx, X as LoopWinner, Y as LoopLineageOptions, Z as LoopResult, L as LoopTokenUsage, a as RuntimeStreamEvent, _ as MountRecorder, i as AgentExecutionBackend, o as AgentTaskStatus, B as BackendErrorDetail } from './types-ESeMOj94.js';
|
|
10
10
|
export { $ as LoopDecisionPayload, a0 as LoopEndedPayload, a1 as LoopIterationDispatchPayload, a2 as LoopIterationEndedPayload, a3 as LoopIterationStartedPayload, a4 as LoopPlanDescription, a5 as LoopPlanPayload, d as LoopSandboxPlacement, a6 as LoopStartedPayload, a7 as LoopTeardownFailedPayload, e as LoopTraceEmitter, c as LoopTraceEvent, a8 as MountManifestEntry, a9 as RunProvenance, aa as SelectionReceipt, ab as ValidationCtx } from './types-ESeMOj94.js';
|
|
11
11
|
import { RunProfileMatrixResult, Scenario, ProfileDispatchFn, JudgeConfig, RunProfileMatrixOptions, DispatchFn } from '@tangle-network/agent-eval/campaign';
|
|
12
12
|
export { AgentEnvironmentProviderRef, AgentEnvironmentProviderRegistry, ProviderAsSandboxClientOptions, ProviderExecutorOptions, SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider } from './environment-provider.js';
|
|
@@ -2745,6 +2745,136 @@ declare function selectChampion(report: BenchmarkReport, fieldOrder: string[], p
|
|
|
2745
2745
|
/** Multi-generation strategy search: author candidates from tournament losses, play them against the incumbent at equal budget, promote via `promotionGate` on an untouched holdout slice. */
|
|
2746
2746
|
declare function runStrategyEvolution(cfg: StrategyEvolutionConfig): Promise<EvolutionReport>;
|
|
2747
2747
|
|
|
2748
|
+
/**
|
|
2749
|
+
* `streamAgentTurn` — the ONE run-a-turn event-stream contract over every
|
|
2750
|
+
* execution substrate: a sandbox box (`SandboxInstance.streamPrompt`), a
|
|
2751
|
+
* one-shot `Executor` (cli-bridge / router / BYO, via `ExecutorFactory`), and
|
|
2752
|
+
* an in-process `AgentExecutionBackend` (the `resolveAgentBackend` output).
|
|
2753
|
+
*
|
|
2754
|
+
* One function, one vocabulary: every backend kind yields the existing
|
|
2755
|
+
* `RuntimeStreamEvent` union incrementally and ALWAYS terminates with a
|
|
2756
|
+
* `final` event whose `text` is the turn's final text and whose
|
|
2757
|
+
* `metadata.tokenUsage` / `metadata.costUsd` / `metadata.model` carry the
|
|
2758
|
+
* turn's metered usage. `collectAgentTurn` drains a stream into that terminal
|
|
2759
|
+
* summary plus the full event list.
|
|
2760
|
+
*
|
|
2761
|
+
* This is a UNIFICATION seam, not a new stream parser — each kind is a thin
|
|
2762
|
+
* adapter over code that already exists and is already hardened:
|
|
2763
|
+
* - `box` — `mapSandboxEvent` + `extractLlmCallEvent` (sandbox-events.ts)
|
|
2764
|
+
* project the sandbox event stream; nothing is re-mapped here.
|
|
2765
|
+
* - `executor` — `inlineSandboxClient` (the ONE executor→box adapter) turns
|
|
2766
|
+
* the factory into a box, then the box path drives it. The
|
|
2767
|
+
* executor's settle/teardown lifecycle stays in that adapter.
|
|
2768
|
+
* - `chat` — the backend's own `stream()` surface, normalized by
|
|
2769
|
+
* `normalizeBackendStreamEvent` (the same projection
|
|
2770
|
+
* `runAgentTaskStream` applies).
|
|
2771
|
+
*
|
|
2772
|
+
* Distinct from `openSandboxRun` (box-only, session resume over one persistent
|
|
2773
|
+
* artifact, raw `SandboxEvent` deliverables) and from `runAgentTaskStream`
|
|
2774
|
+
* (full task lifecycle: knowledge preflight, session store, resume). This is
|
|
2775
|
+
* the minimal turn primitive underneath both worlds: prompt in, one normalized
|
|
2776
|
+
* event stream out, terminal result+usage guaranteed on every non-thrown path.
|
|
2777
|
+
*
|
|
2778
|
+
* Stream envelope: `backend_start` → incremental events → (`backend_error` on
|
|
2779
|
+
* failure) → `final`. A caller-initiated abort terminates with
|
|
2780
|
+
* `final.status: 'aborted'`; an expired `timeoutMs` deadline with
|
|
2781
|
+
* `final.status: 'failed'` — so cancellation stays distinguishable from a
|
|
2782
|
+
* blown deadline.
|
|
2783
|
+
*
|
|
2784
|
+
* @experimental
|
|
2785
|
+
*/
|
|
2786
|
+
|
|
2787
|
+
/**
|
|
2788
|
+
* The execution substrate one turn runs on — a closed discriminated union over
|
|
2789
|
+
* the three stream surfaces the runtime already owns.
|
|
2790
|
+
*
|
|
2791
|
+
* @experimental
|
|
2792
|
+
*/
|
|
2793
|
+
type AgentTurnBackend = {
|
|
2794
|
+
/** A live sandbox box: the turn is one `box.streamPrompt(prompt)` call. */
|
|
2795
|
+
kind: 'box';
|
|
2796
|
+
box: SandboxInstance;
|
|
2797
|
+
/** Model label stamped on cost-only `llm_call` events. Default `'agent'`. */
|
|
2798
|
+
agentRunName?: string;
|
|
2799
|
+
} | {
|
|
2800
|
+
/**
|
|
2801
|
+
* A one-shot `Executor` (cli-bridge / router / BYO): the factory is
|
|
2802
|
+
* instantiated fresh for the turn via `inlineSandboxClient`, run once on
|
|
2803
|
+
* the prompt, and torn down — the same per-spawn lifecycle the supervise
|
|
2804
|
+
* runtime gives it.
|
|
2805
|
+
*/
|
|
2806
|
+
kind: 'executor';
|
|
2807
|
+
factory: ExecutorFactory<unknown>;
|
|
2808
|
+
/** Model label stamped on cost-only `llm_call` events. Default `'agent'`. */
|
|
2809
|
+
agentRunName?: string;
|
|
2810
|
+
} | {
|
|
2811
|
+
/**
|
|
2812
|
+
* An in-process `AgentExecutionBackend` (`resolveAgentBackend` output or
|
|
2813
|
+
* any custom backend): the turn is one `backend.stream()` call.
|
|
2814
|
+
*/
|
|
2815
|
+
kind: 'chat';
|
|
2816
|
+
backend: AgentExecutionBackend;
|
|
2817
|
+
};
|
|
2818
|
+
/** @experimental */
|
|
2819
|
+
interface StreamAgentTurnOptions {
|
|
2820
|
+
/** Caller-initiated cancellation. Terminates the stream with `final.status: 'aborted'`. */
|
|
2821
|
+
signal?: AbortSignal;
|
|
2822
|
+
/**
|
|
2823
|
+
* Wall-clock deadline for the whole turn in ms. An expired deadline aborts
|
|
2824
|
+
* the backend and terminates the stream with `final.status: 'failed'`
|
|
2825
|
+
* (a blown deadline is a turn failure, not a caller cancellation).
|
|
2826
|
+
*/
|
|
2827
|
+
timeoutMs?: number;
|
|
2828
|
+
}
|
|
2829
|
+
/**
|
|
2830
|
+
* Metered usage of one turn, summed over every cost-bearing event the backend
|
|
2831
|
+
* emitted. `input`/`output` are token counts (0 when the backend reported
|
|
2832
|
+
* none — the honest sum, never a fabricated estimate). `costUsd`/`model` are
|
|
2833
|
+
* present only when the backend actually reported them.
|
|
2834
|
+
*
|
|
2835
|
+
* @experimental
|
|
2836
|
+
*/
|
|
2837
|
+
interface AgentTurnUsage {
|
|
2838
|
+
input: number;
|
|
2839
|
+
output: number;
|
|
2840
|
+
costUsd?: number;
|
|
2841
|
+
model?: string;
|
|
2842
|
+
}
|
|
2843
|
+
/**
|
|
2844
|
+
* A drained turn: the terminal summary plus every event the stream yielded.
|
|
2845
|
+
* `status`/`error` mirror the terminal `final` event so a failed or aborted
|
|
2846
|
+
* turn stays inspectable without re-scanning `events`.
|
|
2847
|
+
*
|
|
2848
|
+
* @experimental
|
|
2849
|
+
*/
|
|
2850
|
+
interface CollectedAgentTurn {
|
|
2851
|
+
finalText: string;
|
|
2852
|
+
usage: AgentTurnUsage;
|
|
2853
|
+
events: RuntimeStreamEvent[];
|
|
2854
|
+
status: AgentTaskStatus;
|
|
2855
|
+
error?: BackendErrorDetail;
|
|
2856
|
+
}
|
|
2857
|
+
/**
|
|
2858
|
+
* Run ONE agent turn on any backend kind and stream its events. Yields the
|
|
2859
|
+
* `RuntimeStreamEvent` vocabulary incrementally and always ends with a `final`
|
|
2860
|
+
* event carrying the turn's text and usage (`metadata.tokenUsage`,
|
|
2861
|
+
* `metadata.costUsd?`, `metadata.model?`) — on success, failure, abort, and
|
|
2862
|
+
* timeout alike. The generator never throws; failures surface in-band as
|
|
2863
|
+
* `backend_error` + `final` with a typed `error` detail.
|
|
2864
|
+
*
|
|
2865
|
+
* @experimental
|
|
2866
|
+
*/
|
|
2867
|
+
declare function streamAgentTurn(backend: AgentTurnBackend, prompt: string, opts?: StreamAgentTurnOptions): AsyncGenerator<RuntimeStreamEvent>;
|
|
2868
|
+
/**
|
|
2869
|
+
* Drain a `streamAgentTurn` stream (or any `RuntimeStreamEvent` stream that
|
|
2870
|
+
* honors its terminal contract) into the turn summary plus the full event
|
|
2871
|
+
* list. Fail-loud: throws when the stream ends without a terminal `final`
|
|
2872
|
+
* event — a stream that violates the contract must not read as an empty turn.
|
|
2873
|
+
*
|
|
2874
|
+
* @experimental
|
|
2875
|
+
*/
|
|
2876
|
+
declare function collectAgentTurn(stream: AsyncIterable<RuntimeStreamEvent>): Promise<CollectedAgentTurn>;
|
|
2877
|
+
|
|
2748
2878
|
/**
|
|
2749
2879
|
*
|
|
2750
2880
|
* The supervisor's intelligence is AUTHORING the agents it spawns — not pressing buttons.
|
|
@@ -3778,4 +3908,4 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
|
|
|
3778
3908
|
commitOnInvalid?: boolean;
|
|
3779
3909
|
}): Promise<WorkspaceRun<T>>;
|
|
3780
3910
|
|
|
3781
|
-
export { Agent, AgentRunSpec, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, AnalystRegistry, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, 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 DefinedLeaderboard, type DelegateOptions, type Deliverable, DeliverableSpec, type DriveHarness, Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, ExecutorFactory, ExecutorRegistry, FanoutOptions, FanoutWinnerSelector, FileCorpus, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, type Interval, Iteration, type Leaderboard, type LeaderboardBenchScore, type LeaderboardBenchTask, type LeaderboardBenchmarkAdapter, type LeaderboardFlagSpec, type LeaderboardOptions, type LeaderboardRow, type LeaderboardRunContext, type LeaderboardScenario, type LeaderboardScore, type LeaderboardSpec, type LoopCampaignDispatchOptions, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, MakeWorkerAgent, type McpEndpoint, type McpEnvironmentOptions, MountRecorder, type NaiveDriverOptions, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunOptions, Outcome, OutputAdapter, type PairwiseOptions, type PairwiseVerdict, PanelSpec, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, type ResolveSandboxClientOptions, 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 SteeringDecision, type Strategy, type StrategyCtx, type StrategyEvolutionConfig, type StrategyResult, type SuperviseOptions, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, SupervisedResult, Supervisor, type SupervisorAgentDeps, type SupervisorProfile, type SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, ToolLoopChat, ToolLoopCompactionOptions, 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, defineLeaderboard, definePersona, defineStrategy, delegate, depthStrategy, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, finalizeBestDelivered, flatWidenGate, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, jjWorkspace, leaderboard, localShell, loopCampaignDispatch, loopDispatch, loopUntil, mapSandboxEvent, naiveDriver, observe, openSandboxRun, pairwiseSignificance, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, reportLoopUsage, resolveSandboxClient, runAgentic, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sample, sampleThenRefine, sandboxSessionTraceSource, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, sumSandboxUsage, supervise, superviseSurface, supervisorAgent, supervisorInstructions, trajectoryReport, verify, watchTrace, widen, workerFromBackend };
|
|
3911
|
+
export { Agent, AgentRunSpec, type AgentTurnBackend, type AgentTurnUsage, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, AnalystRegistry, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, 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, type CollectedAgentTurn, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, DeliverableSpec, type DriveHarness, Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, ExecutorFactory, ExecutorRegistry, FanoutOptions, FanoutWinnerSelector, FileCorpus, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, type Interval, Iteration, type Leaderboard, type LeaderboardBenchScore, type LeaderboardBenchTask, type LeaderboardBenchmarkAdapter, type LeaderboardFlagSpec, type LeaderboardOptions, type LeaderboardRow, type LeaderboardRunContext, type LeaderboardScenario, type LeaderboardScore, type LeaderboardSpec, type LoopCampaignDispatchOptions, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, MakeWorkerAgent, type McpEndpoint, type McpEnvironmentOptions, MountRecorder, type NaiveDriverOptions, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunOptions, Outcome, OutputAdapter, type PairwiseOptions, type PairwiseVerdict, PanelSpec, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, type ResolveSandboxClientOptions, 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 SteeringDecision, type Strategy, type StrategyCtx, type StrategyEvolutionConfig, type StrategyResult, type StreamAgentTurnOptions, type SuperviseOptions, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, SupervisedResult, Supervisor, type SupervisorAgentDeps, type SupervisorProfile, type SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, ToolLoopChat, ToolLoopCompactionOptions, 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, collectAgentTurn, completionAuthorizes, contentAddress, createBudgetPool, createInMemoryRunContext, createInbox, createMcpEnvironment, createPushTraceSource, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defaultToolDetectors, defineLeaderboard, definePersona, defineStrategy, delegate, depthStrategy, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, finalizeBestDelivered, flatWidenGate, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, jjWorkspace, leaderboard, localShell, loopCampaignDispatch, loopDispatch, loopUntil, mapSandboxEvent, naiveDriver, observe, openSandboxRun, pairwiseSignificance, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, reportLoopUsage, resolveSandboxClient, runAgentic, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sample, sampleThenRefine, sandboxSessionTraceSource, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, streamAgentTurn, sumSandboxUsage, supervise, superviseSurface, supervisorAgent, supervisorInstructions, trajectoryReport, verify, watchTrace, widen, workerFromBackend };
|
package/dist/loops.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
breadthStrategy,
|
|
13
13
|
buildSteerContext,
|
|
14
14
|
builtinShapes,
|
|
15
|
+
collectAgentTurn,
|
|
15
16
|
completionAuthorizes,
|
|
16
17
|
computeFindingId,
|
|
17
18
|
createMcpEnvironment,
|
|
@@ -81,13 +82,14 @@ import {
|
|
|
81
82
|
sentinelCompletion,
|
|
82
83
|
stopSentinel,
|
|
83
84
|
strategyAuthorContract,
|
|
85
|
+
streamAgentTurn,
|
|
84
86
|
superviseSurface,
|
|
85
87
|
trajectoryReport,
|
|
86
88
|
verify,
|
|
87
89
|
watchTrace,
|
|
88
90
|
widen,
|
|
89
91
|
worktreeFanout
|
|
90
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-DLAEEF26.js";
|
|
91
93
|
import {
|
|
92
94
|
InMemoryResultBlobStore,
|
|
93
95
|
InMemorySpawnJournal,
|
|
@@ -169,6 +171,7 @@ export {
|
|
|
169
171
|
buildSteerContext,
|
|
170
172
|
builtinShapes,
|
|
171
173
|
cliWorktreeExecutor,
|
|
174
|
+
collectAgentTurn,
|
|
172
175
|
completionAuthorizes,
|
|
173
176
|
computeFindingId,
|
|
174
177
|
contentAddress,
|
|
@@ -273,6 +276,7 @@ export {
|
|
|
273
276
|
spendFromUsageEvents,
|
|
274
277
|
stopSentinel,
|
|
275
278
|
strategyAuthorContract,
|
|
279
|
+
streamAgentTurn,
|
|
276
280
|
sumSandboxUsage,
|
|
277
281
|
supervise,
|
|
278
282
|
superviseSurface,
|
package/dist/mcp/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-runtime#readme",
|
|
6
6
|
"repository": {
|