@tangle-network/agent-runtime 0.247.0 → 0.249.1
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-DizpINK3.d.ts → activation-CZz7kkgd.d.ts} +2 -2
- package/dist/{activation-DYqnl8zq.js → activation-ygjQvYwG.js} +32 -2
- package/dist/activation-ygjQvYwG.js.map +1 -0
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +1 -1
- package/dist/{coordination-driver-BV4AAUns.js → coordination-driver-B61Hh6B1.js} +142 -10
- package/dist/coordination-driver-B61Hh6B1.js.map +1 -0
- package/dist/{delegate-DQAzB5Xv.js → delegate-A6EYmMxy.js} +2 -2
- package/dist/{delegate-DQAzB5Xv.js.map → delegate-A6EYmMxy.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +1 -1
- package/dist/{graph-DcBmMLIp.js → graph-CXwmMtTx.js} +2 -2
- package/dist/{graph-DcBmMLIp.js.map → graph-CXwmMtTx.js.map} +1 -1
- package/dist/{index-DLzlXwr6.d.ts → index-BV5EmjCL.d.ts} +8 -5
- package/dist/index.d.ts +8 -6
- package/dist/index.js +27 -44
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +18 -11
- package/dist/intelligence.js +88 -33
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +3 -3
- package/dist/kernel.js +6 -6
- package/dist/{loop-runner-bin-iqq1azfy.js → loop-runner-bin-C1O16oIq.js} +2 -2
- package/dist/{loop-runner-bin-iqq1azfy.js.map → loop-runner-bin-C1O16oIq.js.map} +1 -1
- package/dist/{loop-runner-bin-HbMECmxT.d.ts → loop-runner-bin-q0akFXYX.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +2 -2
- package/dist/mcp/index.d.ts +5 -5
- package/dist/mcp/index.js +3 -3
- package/dist/{openai-tools-DvLk_Ddg.d.ts → openai-tools-zrajPyXe.d.ts} +2 -2
- package/dist/profiles.d.ts +2 -2
- package/dist/{provision-supervisor-BgQx2Avp.js → provision-supervisor-D7gC-Veu.js} +2 -2
- package/dist/{provision-supervisor-BgQx2Avp.js.map → provision-supervisor-D7gC-Veu.js.map} +1 -1
- package/dist/run-layout-hKAJGF4g.js.map +1 -1
- package/dist/{runtime-HpTXhB3g.js → runtime-BVZIbtyL.js} +6 -6
- package/dist/{runtime-HpTXhB3g.js.map → runtime-BVZIbtyL.js.map} +1 -1
- package/dist/{server-OOE7mXrN.js → server-DHS1Gxt2.js} +2 -2
- package/dist/{server-OOE7mXrN.js.map → server-DHS1Gxt2.js.map} +1 -1
- package/dist/{stream-agent-turn-CcumM0Bu.d.ts → stream-agent-turn-D9IbZMys.d.ts} +2 -2
- package/dist/{substrate-CQ0hfewn.d.ts → substrate-Ctmos75o.d.ts} +2 -2
- package/dist/{supervise-DZEOpzRw.js → supervise-CnFk7_wb.js} +18 -4
- package/dist/supervise-CnFk7_wb.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +11 -11
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-BUhz284C.d.ts → types-BmxS-W-f.d.ts} +22 -11
- package/package.json +4 -4
- package/dist/activation-DYqnl8zq.js.map +0 -1
- package/dist/coordination-driver-BV4AAUns.js.map +0 -1
- package/dist/supervise-DZEOpzRw.js.map +0 -1
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $a as SuperviseTestOptions, $t as runGraphWithTestBrain, Ao as supervisorAgentWithTestBrain, Tn as driverAgent, Yt as RunGraphTestOptions, to as superviseWithTestBrain, wn as DriverAgentOptions, xo as SupervisorAgentTestDeps } from "./index-
|
|
2
|
-
import { Dn as ToolLoopChat, En as ToolLoopCallContext } from "./stream-agent-turn-
|
|
1
|
+
import { $a as SuperviseTestOptions, $t as runGraphWithTestBrain, Ao as supervisorAgentWithTestBrain, Tn as driverAgent, Yt as RunGraphTestOptions, to as superviseWithTestBrain, wn as DriverAgentOptions, xo as SupervisorAgentTestDeps } from "./index-BV5EmjCL.js";
|
|
2
|
+
import { Dn as ToolLoopChat, En as ToolLoopCallContext } from "./stream-agent-turn-D9IbZMys.js";
|
|
3
3
|
import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
4
4
|
//#region src/testing/index.d.ts
|
|
5
5
|
/** A proposal produced by Runtime's opaque profile-improvement path. */
|
package/dist/testing.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-B049YmQ8.js";
|
|
2
2
|
import { o as canonicalCandidateDigest$1, u as immutableCandidateValue } from "./protected-redaction-Fn1ETfJ-.js";
|
|
3
3
|
import { M as parseExactAgentProfile, w as applyExactAgentProfileDiff } from "./prepare-CibQrhfi.js";
|
|
4
|
-
import { p as supervisorAgentWithTestBrain, r as superviseWithTestBrain } from "./supervise-
|
|
5
|
-
import { r as driverAgent } from "./coordination-driver-
|
|
6
|
-
import { i as runGraphWithTestBrain } from "./graph-
|
|
4
|
+
import { p as supervisorAgentWithTestBrain, r as superviseWithTestBrain } from "./supervise-CnFk7_wb.js";
|
|
5
|
+
import { r as driverAgent } from "./coordination-driver-B61Hh6B1.js";
|
|
6
|
+
import { i as runGraphWithTestBrain } from "./graph-CXwmMtTx.js";
|
|
7
7
|
import { SANDBOX_SIZE_PRESET_NAMES } from "@tangle-network/agent-interface";
|
|
8
8
|
//#region src/testing/fixtures/agent-improvement-proposal.json
|
|
9
9
|
var agent_improvement_proposal_default = {
|
|
10
10
|
changedSurfaces: ["prompt"],
|
|
11
|
-
digest: "sha256:
|
|
11
|
+
digest: "sha256:4b007857ac23f68e17a86056a97ccccd83d5b9176413c2773b0da0cc85871a49",
|
|
12
12
|
evaluation: {
|
|
13
13
|
"decision": {
|
|
14
14
|
"contributingChecks": [
|
|
@@ -4579,7 +4579,7 @@ var agent_improvement_proposal_default = {
|
|
|
4579
4579
|
],
|
|
4580
4580
|
"metadata": {
|
|
4581
4581
|
"fixture": "agent-improvement-proposal",
|
|
4582
|
-
"runtimeVersion": "0.
|
|
4582
|
+
"runtimeVersion": "0.249.1"
|
|
4583
4583
|
},
|
|
4584
4584
|
"objectives": [
|
|
4585
4585
|
{
|
|
@@ -4690,8 +4690,8 @@ var agent_improvement_proposal_default = {
|
|
|
4690
4690
|
"baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
|
|
4691
4691
|
"candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
|
|
4692
4692
|
"kind": "agent-eval-loop",
|
|
4693
|
-
"recordDigest": "sha256:
|
|
4694
|
-
"runId": "agent-runtime-0.
|
|
4693
|
+
"recordDigest": "sha256:35afee991f371630ad2e5fcd52fcf19ba825133c97bb881ac99fc1d7cc2522ee",
|
|
4694
|
+
"runId": "agent-runtime-0.249.1-proposal-fixture",
|
|
4695
4695
|
"schema": "agent-candidate-experiment"
|
|
4696
4696
|
}
|
|
4697
4697
|
},
|
|
@@ -4714,13 +4714,13 @@ var agent_improvement_proposal_default = {
|
|
|
4714
4714
|
}],
|
|
4715
4715
|
kind: "agent-improvement-proposal",
|
|
4716
4716
|
proposedAt: "2026-07-10T01:00:00.000Z",
|
|
4717
|
-
runId: "agent-runtime-0.
|
|
4717
|
+
runId: "agent-runtime-0.249.1-proposal-fixture"
|
|
4718
4718
|
};
|
|
4719
4719
|
//#endregion
|
|
4720
4720
|
//#region src/testing/fixtures/agent-profile-improvement-proposal.json
|
|
4721
4721
|
var agent_profile_improvement_proposal_default = {
|
|
4722
4722
|
changedSurfaces: ["prompt", "skills"],
|
|
4723
|
-
digest: "sha256:
|
|
4723
|
+
digest: "sha256:ad9c0d27b47a9b4ce57925be7f229be1bb3006836c67aacd60c21a004152eacb",
|
|
4724
4724
|
evaluation: {
|
|
4725
4725
|
"decision": {
|
|
4726
4726
|
"contributingChecks": [
|
|
@@ -6354,7 +6354,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6354
6354
|
],
|
|
6355
6355
|
"metadata": {
|
|
6356
6356
|
"fixture": "agent-profile-improvement-proposal",
|
|
6357
|
-
"runtimeVersion": "0.
|
|
6357
|
+
"runtimeVersion": "0.249.1"
|
|
6358
6358
|
},
|
|
6359
6359
|
"objectives": [
|
|
6360
6360
|
{
|
|
@@ -6465,7 +6465,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6465
6465
|
"baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
|
|
6466
6466
|
"candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
|
|
6467
6467
|
"kind": "agent-eval-loop",
|
|
6468
|
-
"recordDigest": "sha256:
|
|
6468
|
+
"recordDigest": "sha256:20385c15fa2a4a82871e2f1ae3a4b9b5ba7904e20e200df012c221267a8c2489",
|
|
6469
6469
|
"runId": "profile-improvement-1",
|
|
6470
6470
|
"schema": "agent-profile-improvement-experiment"
|
|
6471
6471
|
}
|
package/dist/tui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-
|
|
1
|
+
import { Ct as ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-BV5EmjCL.js";
|
|
2
2
|
//#region src/tui/top-app.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* The interactive side of the supervisor-run TUI: a keypress/mouse loop over the frames
|
package/dist/tui/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as provisionSupervisor } from "../provision-supervisor-
|
|
1
|
+
import { t as provisionSupervisor } from "../provision-supervisor-D7gC-Veu.js";
|
|
2
2
|
import { a as renderTopFrameWithLayout, i as renderTopFrame, n as runTopApp, r as loadTopSnapshot, t as renderTopOnce } from "../top-app-d-bmwO7O.js";
|
|
3
3
|
export { loadTopSnapshot, provisionSupervisor, renderTopFrame, renderTopFrameWithLayout, renderTopOnce, runTopApp };
|
|
@@ -524,27 +524,38 @@ interface KnowledgeReadinessDecision {
|
|
|
524
524
|
nonBlockingGapIds: string[];
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
|
+
//#region src/runtime-usage.d.ts
|
|
528
|
+
/** Observed subtotals, with missing measurements kept separate from measured zeroes. */
|
|
529
|
+
interface RuntimeUsageTotals {
|
|
530
|
+
/** Observed input tokens across normalized per-call events. */
|
|
531
|
+
tokensIn: number;
|
|
532
|
+
/** Observed output tokens across normalized per-call events. */
|
|
533
|
+
tokensOut: number;
|
|
534
|
+
/** Observed dollar subtotal; incomplete when `usdKnown` is false. */
|
|
535
|
+
costUsd: number;
|
|
536
|
+
/** Number of observed model calls, including unpriced or incompletely metered calls. */
|
|
537
|
+
llmCalls: number;
|
|
538
|
+
/** False when any observed call has incomplete token usage. */
|
|
539
|
+
tokensKnown?: false;
|
|
540
|
+
/** False when any observed call lacks complete provider-billed cost. */
|
|
541
|
+
usdKnown?: false;
|
|
542
|
+
/** Sum of reported external estimates; never included in `costUsd` or proof of complete cost. */
|
|
543
|
+
estimatedCostUsd?: number;
|
|
544
|
+
}
|
|
545
|
+
//#endregion
|
|
527
546
|
//#region src/runtime-run.d.ts
|
|
528
547
|
/** @stable */
|
|
529
548
|
type RuntimeRunStatus = 'running' | 'completed' | 'failed' | 'cancelled';
|
|
530
549
|
/** @stable */
|
|
531
|
-
interface RuntimeRunCost {
|
|
532
|
-
/** Cumulative input tokens across every observed `llm_call` event. */
|
|
533
|
-
tokensIn: number;
|
|
534
|
-
/** Cumulative output tokens across every observed `llm_call` event. */
|
|
535
|
-
tokensOut: number;
|
|
536
|
-
/** Sum of `costUsd` from every observed `llm_call` event. */
|
|
537
|
-
costUsd: number;
|
|
550
|
+
interface RuntimeRunCost extends RuntimeUsageTotals {
|
|
538
551
|
/** Wall time from `startRuntimeRun()` to `complete()` (or `now()` if not yet completed). */
|
|
539
552
|
wallMs: number;
|
|
540
|
-
/** Count of `llm_call` events observed during the run. */
|
|
541
|
-
llmCalls: number;
|
|
542
553
|
}
|
|
543
554
|
/** @stable */
|
|
544
555
|
interface RuntimeRunCompleteInput {
|
|
545
556
|
status: Exclude<RuntimeRunStatus, 'running'>;
|
|
546
557
|
resultSummary?: string;
|
|
547
|
-
/** Optional
|
|
558
|
+
/** Optional subtotal overrides. Existing incomplete-usage flags remain authoritative. */
|
|
548
559
|
cost?: Partial<RuntimeRunCost>;
|
|
549
560
|
/** Stable error message when `status === 'failed'`. */
|
|
550
561
|
error?: string;
|
|
@@ -4704,4 +4715,4 @@ interface WidenGate<Out> {
|
|
|
4704
4715
|
}
|
|
4705
4716
|
//#endregion
|
|
4706
4717
|
export { SpawnPrior as $, captureHarnessTranscript as $n, LoopPlanPayload as $r, RuntimeStreamEventCollector as $t, NodeId as A, AgentRuntimeEventSink as Ai, RetainedPendingCause as An, BudgetPoolRestore as Ar, EvalRunEvent as At, ResumedWork as B, RunAgentTaskOptions as Bi, RecoverRetainedInteractiveRunOptions as Bn, spendFromUsageEvents as Br, RuntimeEventOtelOptions as Bt, ExecutorToolCall as C, startRuntimeRun as Ci, SessionTraceBox as Cn, RetainedRunReplayPoint as Cr, workerTraceHeaders as Ct, MaterializedModelIdentity as D, AgentExecutionBackend as Di, decodeToolPart as Dn, StartRetainedRunInEnvironmentOptions as Dr, mergeTraceEnv as Dt, MaterializedExecutionIdentity as E, AgentBackendInput as Ei, createPushTraceSource as En, RetainedRunTurnInput as Er, createPropagatingTraceEmitter as Et, ProviderModelExecutionEvidence as F, BackendErrorDetail as Fi, ScopeProgressInput as Fn, ReservationRejection as Fr, LoopSpanNode as Ft, RootSignal as G, RuntimeStreamEvent as Gi, StartRetainedInteractiveRunOptions as Gn, Iteration as Gr, createOtelExporter as Gt, RootHandle as H, RuntimeCanonicalStreamEvent as Hi, RetainedInteractiveEnvironmentInput as Hn, DefaultVerdict$1 as Hr, buildLoopSpanNodes as Ht, ResourceLimit as I, KnowledgeReadinessDecision as Ii, WorkerProgress as In, ReservationShortfall as Ir, OtelAttribute as It, Scope as J, HarnessTranscriptEvidence as Jn, LoopIterationDispatchPayload as Jr, loopEventToOtelSpan as Jt, RootStreamReceipt as K, HarnessTranscriptArtifact as Kn, LoopDecisionPayload as Kr, exportEvalRuns as Kt, ResourceSpend as L, OpenAIChatResponseFormat as Li, createActivityLog as Ln, ReservationStage as Lr, OtelExportConfig as Lt, NodeStatus as M, AgentTaskRunResult as Mi, ActivityNote as Mn, BudgetReconcileFault as Mr, EvalRunsExportConfig as Mt, ProfileMaterializationReceipt as N, AgentTaskSpec as Ni, DEFAULT_STALL_AFTER_MS as Nn, LeakedReservation as Nr, EvalRunsExportResult as Nt, NoWinnerError as O, AgentKnowledgeProvider as Oi, sandboxSessionTraceSource as On, StartRetainedRunOptions as Or, readTraceContextFromEnv as Ot, ProviderModelAttemptEvidence as P, AgentTaskStatus as Pi, ExecutorProgress as Pn, ReservationHolder as Pr, INTELLIGENCE_WIRE_VERSION as Pt, SpawnOpts as Q, ReadableEnvironment as Qn, LoopPlanDescription as Qr, RuntimeEventCollector as Qt, ResultBlobStore as R, OpenAIChatTool as Ri, readWorkerProgress as Rn, ReservationTicket as Rr, OtelExporter as Rt, ExecutorTeardownWarning as S, RuntimeRunStatus as Si, SessionMessageLike as Sn, RetainedRunIntentAdmission as Sr, workerTraceEnv as St, Handle as T, AgentBackendContext as Ti, TraceSource as Tn, RetainedRunStartMaterial as Tr, TraceContext as Tt, RootMaterialization as U, RuntimeSession as Ui, RetainedInteractiveRunHandle as Un, Driver as Ur, buildRuntimeEventOtelSpans as Ut, RetainedExecutionState as V, RunAgentTaskStreamOptions as Vi, RetainedInteractiveAdmissionHook as Vn, AgentRunSpec as Vr, buildLoopOtelSpans as Vt, RootProviderModelEvidence as W, RuntimeSessionStore as Wi, RetainedInteractiveStartMaterial as Wn, ExecCtx as Wr, createOpenInferenceFileExporter as Wt, SpawnEvent as X, HarnessTranscriptUnavailable as Xn, LoopIterationStartedPayload as Xr, padTraceId as Xt, Settled as Y, HarnessTranscriptFile as Yn, LoopIterationEndedPayload as Yr, padSpanId as Yt, SpawnJournal as Z, HarnessTranscriptUnavailableReason as Zn, LoopLineageOptions as Zr, toOtelAttributes as Zt, ExecutorMaterialization as _, RuntimeRunCost as _i, isWaitOutcome as _n, RetainedRunDispatchedAdmission as _r, WorkerTraceEvidence as _t, BudgetOverspend as a, LoopTraceEmitter as ai, createRuntimeEventCollector as an, ReconnectRetainedRunOptions as ar, SupervisedResult as at, ExecutorRegistry as b, RuntimeRunPersistenceAdapter as bi, validateWaitSpec as bn, RetainedRunEventOptions as br, WorkerTraceSeamCarrier as bt, EnvironmentTeardownReceipt as c, MountManifestEntry as ci, sanitizeKnowledgeReadinessReport as cn, RecoverRetainedRunResult as cr, TokenUsageProvenance as ct, ExecutorAccounting as d, RunProvenance as di, WaitOutcome as dn, RetainedInteractiveIntentAdmission as dr, UnknownMaterializationReason as dt, LoopResult as ei, RuntimeStreamEventSink as en, harnessTranscriptArtifact as er, SpawnRejection as et, ExecutorCancellation as f, SandboxClient as fi, WaitProbe as fn, RetainedInteractiveStartedAdmission as fr, UsageEvent as ft, ExecutorFactory as g, RuntimeRunCompleteInput as gi, createWaitProbes as gn, RetainedRunCancellation as gr, WorkerInteractiveUnavailableReason as gt, ExecutorExecutionBinding as h, Validator as hi, WaitSpec as hn, RetainedRunCancelOptions as hr, WorkerInteractiveSession as ht, Budget as i, LoopTokenUsage as ii, SanitizedKnowledgeRequirement as in, NativeContextContinuationInput as ir, SteerableRootHandle as it, NodeSnapshot as j, AgentTaskContext as ji, ActivityLog as jn, BudgetReadout as jr, EvalRunGeneration as jt, NodeExecutionIdentity as k, AgentRuntimeEvent as ki, RetainedChildRecovery as kn, BudgetPool as kr, traceContextToEnv as kt, ExecutionBindingReceipt as l, MountRecorder as li, sanitizeRuntimeStreamEvent as ln, RetainedInteractiveAdmission as lr, TreeView as lt, ExecutorContext as m, ValidationCtx as mi, WaitRejection as mn, RetainedRunAdmissionHook as mr, WidenGate as mt, AgentExecutionRef as n, LoopStartedPayload as ni, RuntimeTelemetryOptions as nn, NativeContextContinuationExecution as nr, SpendChannel as nt, BudgetViolation as o, LoopTraceEvent as oi, createRuntimeStreamEventCollector as on, RecoverRetainedRunIntentOptions as or, Supervisor as ot, ExecutorCancellationRequest as p, SelectionReceipt as pi, WaitProbeRegistry as pn, RetainedRunAdmission as pr, WaitOpts as pt, Runtime as q, HarnessTranscriptCapture as qn, LoopEndedPayload as qr, generateSpanId as qt, AgentSpec as r, LoopTeardownFailedPayload as ri, SanitizedKnowledgeReadinessReport as rn, NativeContextContinuationHandle as rr, SpendGap as rt, DefaultVerdict as s, LoopWinner as si, sanitizeAgentRuntimeEvent as sn, RecoverRetainedRunOptions as sr, SupervisorOpts as st, Agent as t, LoopSandboxPlacement as ti, RuntimeStreamEventSummary as tn, persistHarnessTranscript as tr, Spend as tt, Executor as u, OutputAdapter as ui, PendingWait as un, RetainedInteractiveEnvironmentAdmission as ur, UnconfirmedTeardown as ut, ExecutorNodeContext as v, RuntimeRunHandle as vi, pollFor as vn, RetainedRunEffect as vr, WorkerTraceUnavailableReason as vt, FleetYield as w, AgentAdapter as wi, ToolStepInput as wn, RetainedRunSnapshot as wr, workerTraceSeamKey as wt, ExecutorResult as x, RuntimeRunRow as xi, waitUntil as xn, RetainedRunHandle as xr, readWorkerTraceContext as xt, ExecutorProgressEvent as y, RuntimeRunOptions as yi, timerAt as yn, RetainedRunEnvironmentAdmission as yr, WorkerTraceResolver as yt, ResumedKeyState as z, OpenAIChatToolChoice as zi, ReconnectRetainedInteractiveRunOptions as zn, createBudgetPool as zr, OtelSpan as zt };
|
|
4707
|
-
//# sourceMappingURL=types-
|
|
4718
|
+
//# sourceMappingURL=types-BmxS-W-f.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.249.1",
|
|
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": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@arethetypeswrong/cli": "0.18.5",
|
|
99
99
|
"@biomejs/biome": "^2.5.11",
|
|
100
100
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
101
|
-
"@tangle-network/agent-eval": "0.
|
|
101
|
+
"@tangle-network/agent-eval": "0.183.0",
|
|
102
102
|
"@tangle-network/agent-interface": "^2.10.0",
|
|
103
103
|
"@tangle-network/sandbox": ">=0.36.4 <0.46.0",
|
|
104
104
|
"@types/node": "26.4.0",
|
|
@@ -121,13 +121,13 @@
|
|
|
121
121
|
},
|
|
122
122
|
"license": "MIT",
|
|
123
123
|
"peerDependencies": {
|
|
124
|
-
"@tangle-network/agent-eval": ">=0.
|
|
124
|
+
"@tangle-network/agent-eval": ">=0.183.0 <0.184.0",
|
|
125
125
|
"@tangle-network/agent-interface": "^2.10.0",
|
|
126
126
|
"@tangle-network/sandbox": ">=0.36.4 <0.46.0"
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@tangle-network/agent-core": ">=0.9.6 <0.10.0",
|
|
130
|
-
"@tangle-network/agent-knowledge": "^17.0
|
|
130
|
+
"@tangle-network/agent-knowledge": "^17.1.0",
|
|
131
131
|
"@tangle-network/agent-profile-materialize": ">=0.20.1 <0.21.0",
|
|
132
132
|
"@tangle-network/agent-trace-contract": "^1.0.2",
|
|
133
133
|
"tar-stream": "3.2.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activation-DYqnl8zq.js","names":["canonicalCandidateDigest"],"sources":["../src/intelligence/activation.ts"],"sourcesContent":["import type {\n AgentCandidateBundle,\n AgentCandidateExperiment,\n AgentImprovementActivation,\n AgentImprovementActivationOutcome,\n AgentImprovementActivationResult,\n AgentImprovementActivationTarget,\n AgentImprovementProposal,\n AgentImprovementReview,\n AgentImprovementSurface,\n AgentProfileImprovementChange,\n AgentProfileImprovementExperiment,\n Sha256Digest,\n} from '@tangle-network/agent-interface'\nimport {\n agentImprovementActivationResultSchema,\n agentImprovementActivationSchema,\n agentProfileImprovementExperimentSchema,\n} from '@tangle-network/agent-interface'\n\nimport {\n canonicalCandidateDigest,\n canonicalCandidateDocument,\n immutableCandidateValue,\n verifyCanonicalCandidateDocument,\n} from '../candidate-execution/digest'\nimport {\n requireSealedCandidateExperiment,\n verifyAgentImprovementActivation,\n verifyAgentImprovementProposal,\n} from './improvement-cycle'\nimport {\n agentImprovementTargetDigest,\n agentImprovementTargetInput,\n agentProfileImprovementStateDigest,\n} from './improvement-surfaces'\n\nexport interface CreateAgentImprovementActivationResultOptions {\n completedAt: string\n outcome: AgentImprovementActivationOutcome\n}\n\nexport interface AgentImprovementActivationTargetPlan extends AgentImprovementActivationTarget {\n desiredDigest: Sha256Digest\n /**\n * Exact measured input the product must apply to reach `desiredDigest`.\n * Transition surfaces such as code and knowledge are applied operations, so\n * their resulting state digest is not the digest of this input document.\n */\n desiredInput: unknown\n}\n\nexport type AgentProfileImprovementActivationOperation =\n | {\n kind: 'apply-change'\n changes: AgentProfileImprovementChange\n }\n | {\n /** The product must load its own saved state at `desiredStateDigest`. */\n kind: 'restore-state'\n }\n\nexport interface AgentProfileImprovementActivationTargetPlan\n extends AgentImprovementActivationTarget {\n desiredDigest: Sha256Digest\n desiredInput: AgentProfileImprovementActivationOperation\n}\n\nexport interface SealedCandidateActivationTransitionInput {\n kind: 'sealed-candidate'\n activation: AgentImprovementActivation\n candidateBundle: AgentCandidateBundle\n bundle: AgentCandidateBundle\n targets: [AgentImprovementActivationTargetPlan, ...AgentImprovementActivationTargetPlan[]]\n attemptedAt: string\n expired: boolean\n}\n\n/**\n * A measured profile change without raw profile bytes.\n * The product owns the private state lookup and atomic write.\n */\nexport interface ProfileImprovementActivationTransitionInput {\n kind: 'profile-improvement'\n activation: AgentImprovementActivation\n experiment: AgentProfileImprovementExperiment\n sourceStateDigest: Sha256Digest\n desiredStateDigest: Sha256Digest\n operation: AgentProfileImprovementActivationOperation\n targets: [\n AgentProfileImprovementActivationTargetPlan,\n ...AgentProfileImprovementActivationTargetPlan[],\n ]\n attemptedAt: string\n expired: boolean\n}\n\nexport type AgentImprovementActivationTransitionInput =\n | SealedCandidateActivationTransitionInput\n | ProfileImprovementActivationTransitionInput\n\nexport interface AgentImprovementActivationResultStore {\n load(idempotencyKey: Sha256Digest): Promise<unknown | undefined>\n putIfAbsent(result: AgentImprovementActivationResult): Promise<unknown>\n}\n\n/**\n * Product-owned or Runtime-composed transition.\n *\n * Implementations resolve a stored result for `activation.digest`, compare\n * every target, and make the write durably idempotent. Co-located targets store\n * the all-or-none write with its result. Other targets throw when result\n * storage fails so a retry can reconcile it. Runtime never invokes this write\n * function after authorization expires.\n */\nexport type AgentImprovementActivationTransition = (\n input: AgentImprovementActivationTransitionInput,\n) => Promise<unknown>\n\n/**\n * Target-read-only check for a prior exact write.\n * It may persist recovered result metadata, but must not change an activation target.\n * Return undefined only when no target write can have committed.\n */\nexport type AgentImprovementActivationReconciliation = (\n input: AgentImprovementActivationTransitionInput,\n) => Promise<unknown | undefined>\n\nexport interface ExecuteAgentImprovementActivationInput {\n proposal: AgentImprovementProposal\n review: AgentImprovementReview\n activation: AgentImprovementActivation\n}\n\nexport interface ExecuteAgentImprovementActivationOptions {\n transition: AgentImprovementActivationTransition\n reconcile?: AgentImprovementActivationReconciliation\n now?: () => Date\n}\n\n/** Create the exact result a product stores in the same transaction as its target write. */\nexport function createAgentImprovementActivationResult(\n transition: AgentImprovementActivationTransitionInput,\n options: CreateAgentImprovementActivationResultOptions,\n): AgentImprovementActivationResult {\n const activation = verifyCanonicalCandidateDocument(\n agentImprovementActivationSchema.parse(transition.activation),\n 'agent improvement activation',\n )\n assertTransitionInput(activation, transition)\n const result = agentImprovementActivationResultSchema.parse(\n canonicalCandidateDocument<AgentImprovementActivationResult>({\n kind: 'agent-improvement-activation-result',\n idempotencyKey: activation.digest,\n attemptedAt: transition.attemptedAt,\n completedAt: options.completedAt,\n outcome: options.outcome,\n }).value,\n )\n assertResultAgainstActivation(activation, result)\n assertOutcomeDesiredState(\n activation,\n result,\n new Map(transition.targets.map((target) => [targetIdentity(target), target.desiredDigest])),\n )\n return immutableCandidateValue(result)\n}\n\n/**\n * Recompute one historical activation result against the exact measured proposal and authority.\n * The result records that attempt; it is not a query of the target's current state.\n */\nexport function verifyAgentImprovementActivationResult(input: {\n proposal: unknown\n review: unknown\n activation: unknown\n result: unknown\n}): AgentImprovementActivationResult {\n const proposal = verifyAgentImprovementProposal(input.proposal)\n const activation = verifyAgentImprovementActivation(input)\n const result = verifyCanonicalCandidateDocument(\n agentImprovementActivationResultSchema.parse(input.result),\n 'agent improvement activation result',\n )\n assertResultAgainstActivation(activation, result)\n assertResultDesiredState(proposal, activation, result)\n return result\n}\n\n/** Validate and execute one product-owned activation transition. */\nexport async function executeAgentImprovementActivation(\n input: ExecuteAgentImprovementActivationInput,\n options: ExecuteAgentImprovementActivationOptions,\n): Promise<AgentImprovementActivationResult> {\n const proposal = verifyAgentImprovementProposal(input.proposal)\n const activation = verifyAgentImprovementActivation(input)\n const observedAt = (options.now ?? (() => new Date()))().toISOString()\n const attemptedAt =\n Date.parse(observedAt) < Date.parse(activation.authorizedAt)\n ? activation.authorizedAt\n : observedAt\n const expired = Date.parse(attemptedAt) >= Date.parse(activation.expiresAt)\n const transition = immutableCandidateValue<AgentImprovementActivationTransitionInput>(\n proposal.evaluation.kind === 'agent-improvement-measured-comparison'\n ? sealedCandidateTransition(proposal.evaluation.experiment, activation, attemptedAt, expired)\n : profileImprovementTransition(\n proposal.evaluation.experiment,\n activation,\n attemptedAt,\n expired,\n ),\n )\n\n if (transition.expired) {\n if (!options.reconcile) {\n return uncertainActivationResult(transition, 'RECONCILIATION_UNAVAILABLE')\n }\n let reconciled: unknown\n try {\n reconciled = await options.reconcile(transition)\n } catch {\n return uncertainActivationResult(transition, 'RECONCILIATION_THROW')\n }\n if (reconciled === undefined) {\n return createAgentImprovementActivationResult(transition, {\n completedAt: transition.attemptedAt,\n outcome: { status: 'expired' },\n })\n }\n try {\n return verifyAgentImprovementActivationResult({ ...input, result: reconciled })\n } catch {\n return uncertainActivationResult(transition, 'INVALID_RECONCILIATION')\n }\n }\n\n let rawResult: unknown\n try {\n rawResult = await options.transition(transition)\n } catch {\n return uncertainActivationResult(transition, 'TRANSITION_THROW')\n }\n try {\n return verifyAgentImprovementActivationResult({ ...input, result: rawResult })\n } catch {\n return uncertainActivationResult(transition, 'INVALID_RESULT')\n }\n}\n\nfunction sealedCandidateTransition(\n experiment: AgentCandidateExperiment,\n activation: AgentImprovementActivation,\n attemptedAt: string,\n expired: boolean,\n): SealedCandidateActivationTransitionInput {\n const targetArm = activation.intent === 'activate-candidate' ? 'candidate' : 'baseline'\n return {\n kind: 'sealed-candidate',\n activation,\n candidateBundle: experiment.candidate,\n bundle: experiment[targetArm],\n targets: activation.targets.map((target) => ({\n ...target,\n desiredDigest: agentImprovementTargetDigest(experiment, targetArm, target.surface),\n desiredInput: agentImprovementTargetInput(experiment[targetArm], target.surface),\n })) as SealedCandidateActivationTransitionInput['targets'],\n attemptedAt,\n expired,\n }\n}\n\nfunction profileImprovementTransition(\n experiment: AgentProfileImprovementExperiment,\n activation: AgentImprovementActivation,\n attemptedAt: string,\n expired: boolean,\n): ProfileImprovementActivationTransitionInput {\n const sourceArm = activation.intent === 'activate-candidate' ? 'baseline' : 'candidate'\n const targetArm = activation.intent === 'activate-candidate' ? 'candidate' : 'baseline'\n const operation = profileImprovementOperation(experiment, activation.intent)\n return {\n kind: 'profile-improvement',\n activation,\n experiment,\n sourceStateDigest: agentProfileImprovementStateDigest(experiment, sourceArm),\n desiredStateDigest: agentProfileImprovementStateDigest(experiment, targetArm),\n operation,\n targets: activation.targets.map((target) => ({\n ...target,\n desiredDigest: agentProfileImprovementStateDigest(experiment, targetArm),\n desiredInput: operation,\n })) as ProfileImprovementActivationTransitionInput['targets'],\n attemptedAt,\n expired,\n }\n}\n\nfunction profileImprovementOperation(\n experiment: AgentProfileImprovementExperiment,\n intent: AgentImprovementActivation['intent'],\n): AgentProfileImprovementActivationOperation {\n return intent === 'activate-candidate'\n ? { kind: 'apply-change', changes: experiment.change }\n : { kind: 'restore-state' }\n}\n\nfunction uncertainActivationResult(\n transition: AgentImprovementActivationTransitionInput,\n code: string,\n): AgentImprovementActivationResult {\n return createAgentImprovementActivationResult(transition, {\n completedAt: transition.attemptedAt,\n outcome: {\n status: 'indeterminate',\n code,\n message: 'The product transition did not return a trustworthy commit result.',\n },\n })\n}\n\nfunction assertTransitionInput(\n activation: AgentImprovementActivation,\n transition: AgentImprovementActivationTransitionInput,\n): void {\n if (transition.kind === 'sealed-candidate') {\n assertSealedCandidateTransitionInput(activation, transition)\n return\n }\n assertProfileImprovementTransitionInput(activation, transition)\n}\n\nfunction assertSealedCandidateTransitionInput(\n activation: AgentImprovementActivation,\n transition: SealedCandidateActivationTransitionInput,\n): void {\n assertAuthorizedTransitionTargets(activation, transition.targets)\n const desiredInputsMatch = transition.targets.every(\n (target) =>\n canonicalCandidateDigest(target.desiredInput) ===\n canonicalCandidateDigest(agentImprovementTargetInput(transition.bundle, target.surface)),\n )\n if (\n transition.expired !== Date.parse(transition.attemptedAt) >= Date.parse(activation.expiresAt) ||\n transition.candidateBundle.digest !== activation.candidateDigest ||\n !desiredInputsMatch ||\n (activation.intent === 'activate-candidate' &&\n transition.bundle.digest !== transition.candidateBundle.digest)\n ) {\n throw new Error('activation transition does not match its authorization')\n }\n}\n\nfunction assertProfileImprovementTransitionInput(\n activation: AgentImprovementActivation,\n transition: ProfileImprovementActivationTransitionInput,\n): void {\n assertAuthorizedTransitionTargets(activation, transition.targets)\n const targetsAgentProfile = activation.targets.some(\n (target) => target.surface === 'agent-profile',\n )\n const experiment = agentProfileImprovementExperimentSchema.parse(transition.experiment)\n const sourceArm = activation.intent === 'activate-candidate' ? 'baseline' : 'candidate'\n const targetArm = activation.intent === 'activate-candidate' ? 'candidate' : 'baseline'\n const sourceStateDigest = agentProfileImprovementStateDigest(experiment, sourceArm)\n const desiredStateDigest = agentProfileImprovementStateDigest(experiment, targetArm)\n const operation = profileImprovementOperation(experiment, activation.intent)\n const targetsMatch = transition.targets.every(\n (target) =>\n target.expectedBaseDigest === sourceStateDigest &&\n target.desiredDigest === desiredStateDigest &&\n canonicalCandidateDigest(target.desiredInput) === canonicalCandidateDigest(operation),\n )\n if (\n transition.expired !== Date.parse(transition.attemptedAt) >= Date.parse(activation.expiresAt) ||\n experiment.digest !== activation.experimentDigest ||\n experiment.candidate.stateDigest !== activation.candidateDigest ||\n (targetsAgentProfile &&\n (activation.executionRef === undefined ||\n canonicalCandidateDigest(activation.executionRef) !==\n canonicalCandidateDigest(experiment.executionRef))) ||\n transition.sourceStateDigest !== sourceStateDigest ||\n transition.desiredStateDigest !== desiredStateDigest ||\n canonicalCandidateDigest(transition.operation) !== canonicalCandidateDigest(operation) ||\n !targetsMatch\n ) {\n throw new Error('activation transition does not match its authorization')\n }\n}\n\nfunction assertAuthorizedTransitionTargets(\n activation: AgentImprovementActivation,\n targets: readonly AgentImprovementActivationTargetPlan[],\n): void {\n const authorized = targetMap(activation.targets)\n const planned = targetMap(targets)\n if (\n authorized.size !== planned.size ||\n [...authorized.entries()].some(\n ([identity, target]) =>\n planned.get(identity)?.expectedBaseDigest !== target.expectedBaseDigest,\n )\n ) {\n throw new Error('activation transition does not match its authorization')\n }\n}\n\nfunction assertResultAgainstActivation(\n activation: AgentImprovementActivation,\n result: AgentImprovementActivationResult,\n): void {\n const attemptedAt = Date.parse(result.attemptedAt)\n const completedAt = Date.parse(result.completedAt)\n const expiresAt = Date.parse(activation.expiresAt)\n if (\n result.idempotencyKey !== activation.digest ||\n attemptedAt < Date.parse(activation.authorizedAt) ||\n completedAt < attemptedAt\n ) {\n throw new Error('activation result does not bind its authorization')\n }\n const expired = attemptedAt >= expiresAt\n if (\n (result.outcome.status === 'expired' && !expired) ||\n (expired && !['expired', 'indeterminate', 'already-applied'].includes(result.outcome.status))\n ) {\n throw new Error('activation result does not honor its authorization expiry')\n }\n if (!('targets' in result.outcome)) return\n const authorized = targetMap(activation.targets)\n const observed = new Set(result.outcome.targets.map(targetIdentity))\n if (\n authorized.size !== observed.size ||\n [...authorized.keys()].some((identity) => !observed.has(identity))\n ) {\n throw new Error('activation result must cover every authorized target exactly once')\n }\n if (\n result.outcome.status === 'applied' &&\n result.outcome.targets.some(\n (target) =>\n target.beforeDigest !== authorized.get(targetIdentity(target))?.expectedBaseDigest,\n )\n ) {\n throw new Error('applied activation did not start from its authorized base state')\n }\n}\n\nfunction assertResultDesiredState(\n proposal: AgentImprovementProposal,\n activation: AgentImprovementActivation,\n result: AgentImprovementActivationResult,\n): void {\n if (!('targets' in result.outcome)) return\n const targetArm = activation.intent === 'activate-candidate' ? 'candidate' : 'baseline'\n const desiredStateDigest =\n proposal.evaluation.kind === 'agent-profile-improvement-measured-comparison'\n ? agentProfileImprovementStateDigest(proposal.evaluation.experiment, targetArm)\n : undefined\n const desired = new Map(\n activation.targets.map((target) => [\n targetIdentity(target),\n desiredStateDigest ??\n agentImprovementTargetDigest(\n requireSealedCandidateExperiment(proposal),\n targetArm,\n target.surface,\n ),\n ]),\n )\n assertOutcomeDesiredState(activation, result, desired)\n}\n\nfunction assertOutcomeDesiredState(\n activation: AgentImprovementActivation,\n result: AgentImprovementActivationResult,\n desired: ReadonlyMap<string, Sha256Digest>,\n): void {\n if (!('targets' in result.outcome)) return\n if (result.outcome.status === 'applied') {\n if (\n result.outcome.targets.some(\n (target) => target.afterDigest !== desired.get(targetIdentity(target)),\n )\n ) {\n throw new Error('applied activation does not match the requested bundle')\n }\n return\n }\n const allDesired = result.outcome.targets.every(\n (target) => target.currentDigest === desired.get(targetIdentity(target)),\n )\n if (result.outcome.status === 'already-applied') {\n if (!allDesired) throw new Error('already-applied activation is not at the requested state')\n return\n }\n const authorized = targetMap(activation.targets)\n const hasStaleTarget = result.outcome.targets.some(\n (target) => target.currentDigest !== authorized.get(targetIdentity(target))?.expectedBaseDigest,\n )\n if (allDesired || !hasStaleTarget) {\n throw new Error('activation conflict does not identify stale target state')\n }\n}\n\nfunction targetMap<T extends { surface: AgentImprovementSurface; identity: string }>(\n targets: readonly T[],\n): Map<string, T> {\n return new Map(targets.map((target) => [targetIdentity(target), target]))\n}\n\nfunction targetIdentity(target: { surface: AgentImprovementSurface; identity: string }): string {\n return `${target.surface}\\u0000${target.identity}`\n}\n"],"mappings":";;;;;AA6IA,SAAgB,uCACd,YACA,SACkC;CAClC,MAAM,aAAa,iCACjB,iCAAiC,MAAM,WAAW,UAAU,GAC5D,8BACF;CACA,sBAAsB,YAAY,UAAU;CAC5C,MAAM,SAAS,uCAAuC,MACpD,2BAA6D;EAC3D,MAAM;EACN,gBAAgB,WAAW;EAC3B,aAAa,WAAW;EACxB,aAAa,QAAQ;EACrB,SAAS,QAAQ;CACnB,CAAC,CAAC,CAAC,KACL;CACA,8BAA8B,YAAY,MAAM;CAChD,0BACE,YACA,QACA,IAAI,IAAI,WAAW,QAAQ,KAAK,WAAW,CAAC,eAAe,MAAM,GAAG,OAAO,aAAa,CAAC,CAAC,CAC5F;CACA,OAAO,wBAAwB,MAAM;AACvC;;;;;AAMA,SAAgB,uCAAuC,OAKlB;CACnC,MAAM,WAAW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