@tangle-network/agent-runtime 0.190.0 → 0.191.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activation-BgRWFKZi.js → activation-BpTEBhQR.js} +2 -2
- package/dist/{activation-BgRWFKZi.js.map → activation-BpTEBhQR.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-dQQ2z1fT.js → authoring-DV0fkyxx.js} +7 -3
- package/dist/{authoring-dQQ2z1fT.js.map → authoring-DV0fkyxx.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/{coordination-driver-Da1IGdTP.js → coordination-driver-Bw0Prnim.js} +668 -35
- package/dist/coordination-driver-Bw0Prnim.js.map +1 -0
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +1 -1
- package/dist/{environment-provider-Bf-hgR6p.d.ts → environment-provider-CJ43FJfJ.d.ts} +2 -2
- package/dist/{environment-provider-DcelIawX.js → environment-provider-DEwsolvi.js} +43 -6
- package/dist/environment-provider-DEwsolvi.js.map +1 -0
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{graph-Bd1elhdL.js → graph-BzsMtBYp.js} +3 -2
- package/dist/graph-BzsMtBYp.js.map +1 -0
- package/dist/graph.d.ts +3 -3
- package/dist/graph.js +3 -3
- package/dist/{redact-Cv1GfOFO.d.ts → improve-Cbbt3jE6.d.ts} +4 -36
- package/dist/{improvement-cycle-BanlFMyL.js → improvement-cycle-jC89uaRW.js} +3 -3
- package/dist/{improvement-cycle-BanlFMyL.js.map → improvement-cycle-jC89uaRW.js.map} +1 -1
- package/dist/{index-DpNil9jh.d.ts → index-B2rVjcPT.d.ts} +311 -13
- package/dist/{index-Clb7_qML.d.ts → index-OSRVFARy.d.ts} +2 -2
- package/dist/{index-C-gBk5M9.d.ts → index-Y14IrBuB.d.ts} +4 -4
- package/dist/index.d.ts +9 -8
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +5 -4
- package/dist/intelligence.js +4 -5
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +6 -6
- package/dist/kernel.js +9 -9
- package/dist/{knowledge-BXdXlv48.js → knowledge-BuXP5ynd.js} +3 -3
- package/dist/{knowledge-BXdXlv48.js.map → knowledge-BuXP5ynd.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-CGQzzWAc.js → loop-runner-bin-B_Xh4jLi.js} +3 -3
- package/dist/{loop-runner-bin-CGQzzWAc.js.map → loop-runner-bin-B_Xh4jLi.js.map} +1 -1
- package/dist/{loop-runner-bin-Cy4f9M6p.d.ts → loop-runner-bin-C2Yw-RBc.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 +3 -3
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.js +6 -6
- package/dist/{openai-tools-BSDk_umV.js → openai-tools-Dqg8IhKd.js} +2 -2
- package/dist/{openai-tools-BSDk_umV.js.map → openai-tools-Dqg8IhKd.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{provision-supervisor-bwpzajiz.js → provision-supervisor-DAcTZDQG.js} +4 -4
- package/dist/{provision-supervisor-bwpzajiz.js.map → provision-supervisor-DAcTZDQG.js.map} +1 -1
- package/dist/{supervisor-CqJW4qap.js → redact-BP8Xn2A3.js} +83 -4
- package/dist/redact-BP8Xn2A3.js.map +1 -0
- package/dist/{runtime-BMWmSu4A.d.ts → runtime-DI4mJNXI.d.ts} +3 -3
- package/dist/{runtime-Ddh7PyCy.js → runtime-Dm63BrGY.js} +63 -19
- package/dist/{runtime-Ddh7PyCy.js.map → runtime-Dm63BrGY.js.map} +1 -1
- package/dist/{stream-agent-turn-uqzf9ZEh.d.ts → stream-agent-turn-_GgUW49y.d.ts} +35 -3
- package/dist/{structural-rollout-0NKvKuFm.js → structural-rollout-ChpGSR0q.js} +2 -2
- package/dist/{structural-rollout-0NKvKuFm.js.map → structural-rollout-ChpGSR0q.js.map} +1 -1
- package/dist/{supervise-yDiZAqlN.js → supervise-B89x7rgF.js} +21 -6
- package/dist/supervise-B89x7rgF.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-02hXqnSP.d.ts → types-DKA_PDv0.d.ts} +27 -2
- package/package.json +1 -1
- package/dist/coordination-driver-Da1IGdTP.js.map +0 -1
- package/dist/environment-provider-DcelIawX.js.map +0 -1
- package/dist/graph-Bd1elhdL.js.map +0 -1
- package/dist/redact-D-u-rrcn.js +0 -82
- package/dist/redact-D-u-rrcn.js.map +0 -1
- package/dist/supervise-yDiZAqlN.js.map +0 -1
- package/dist/supervisor-CqJW4qap.js.map +0 -1
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Ft as ToolLoopCallContext, It as ToolLoopChat } from "./runtime-
|
|
1
|
+
import { An as RunGraphTestOptions, Go as superviseWithTestBrain, Pn as runGraphWithTestBrain, Uo as SuperviseTestOptions, bs as supervisorAgentWithTestBrain, cr as DriverAgentOptions, ds as SupervisorAgentTestDeps, lr as driverAgent } from "./index-B2rVjcPT.js";
|
|
2
|
+
import { Ft as ToolLoopCallContext, It as ToolLoopChat } from "./runtime-DI4mJNXI.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,13 +1,13 @@
|
|
|
1
1
|
import { $ as parseExactAgentProfile, G as applyExactAgentProfileDiff, lt as canonicalCandidateDigest$1, pt as immutableCandidateValue } from "./prepare-B5fJ7mLS.js";
|
|
2
|
-
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-
|
|
3
|
-
import { r as driverAgent } from "./coordination-driver-
|
|
4
|
-
import { f as supervisorAgentWithTestBrain, r as superviseWithTestBrain } from "./supervise-
|
|
5
|
-
import { i as runGraphWithTestBrain } from "./graph-
|
|
2
|
+
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-jC89uaRW.js";
|
|
3
|
+
import { r as driverAgent } from "./coordination-driver-Bw0Prnim.js";
|
|
4
|
+
import { f as supervisorAgentWithTestBrain, r as superviseWithTestBrain } from "./supervise-B89x7rgF.js";
|
|
5
|
+
import { i as runGraphWithTestBrain } from "./graph-BzsMtBYp.js";
|
|
6
6
|
import { SANDBOX_SIZE_PRESET_NAMES } from "@tangle-network/agent-interface";
|
|
7
7
|
//#region src/testing/fixtures/agent-improvement-proposal.json
|
|
8
8
|
var agent_improvement_proposal_default = {
|
|
9
9
|
changedSurfaces: ["prompt"],
|
|
10
|
-
digest: "sha256:
|
|
10
|
+
digest: "sha256:0576f7849dca5c5cf7276097ee8d151e6fc665f4200964d8e44f012dcbe56b39",
|
|
11
11
|
evaluation: {
|
|
12
12
|
"decision": {
|
|
13
13
|
"contributingChecks": [
|
|
@@ -4578,7 +4578,7 @@ var agent_improvement_proposal_default = {
|
|
|
4578
4578
|
],
|
|
4579
4579
|
"metadata": {
|
|
4580
4580
|
"fixture": "agent-improvement-proposal",
|
|
4581
|
-
"runtimeVersion": "0.
|
|
4581
|
+
"runtimeVersion": "0.191.0"
|
|
4582
4582
|
},
|
|
4583
4583
|
"objectives": [
|
|
4584
4584
|
{
|
|
@@ -4689,8 +4689,8 @@ var agent_improvement_proposal_default = {
|
|
|
4689
4689
|
"baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
|
|
4690
4690
|
"candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
|
|
4691
4691
|
"kind": "agent-eval-loop",
|
|
4692
|
-
"recordDigest": "sha256:
|
|
4693
|
-
"runId": "agent-runtime-0.
|
|
4692
|
+
"recordDigest": "sha256:ee6b538596a71d9eb0842369a394b7e504177e60652e3ade6be4fc4f083cfc06",
|
|
4693
|
+
"runId": "agent-runtime-0.191.0-proposal-fixture",
|
|
4694
4694
|
"schema": "agent-candidate-experiment"
|
|
4695
4695
|
}
|
|
4696
4696
|
},
|
|
@@ -4713,13 +4713,13 @@ var agent_improvement_proposal_default = {
|
|
|
4713
4713
|
}],
|
|
4714
4714
|
kind: "agent-improvement-proposal",
|
|
4715
4715
|
proposedAt: "2026-07-10T01:00:00.000Z",
|
|
4716
|
-
runId: "agent-runtime-0.
|
|
4716
|
+
runId: "agent-runtime-0.191.0-proposal-fixture"
|
|
4717
4717
|
};
|
|
4718
4718
|
//#endregion
|
|
4719
4719
|
//#region src/testing/fixtures/agent-profile-improvement-proposal.json
|
|
4720
4720
|
var agent_profile_improvement_proposal_default = {
|
|
4721
4721
|
changedSurfaces: ["prompt", "skills"],
|
|
4722
|
-
digest: "sha256:
|
|
4722
|
+
digest: "sha256:b6e1be5c2b7a223acad1c99feb92488550ee0851cf5da4f62f353c5398335873",
|
|
4723
4723
|
evaluation: {
|
|
4724
4724
|
"decision": {
|
|
4725
4725
|
"contributingChecks": [
|
|
@@ -6353,7 +6353,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6353
6353
|
],
|
|
6354
6354
|
"metadata": {
|
|
6355
6355
|
"fixture": "agent-profile-improvement-proposal",
|
|
6356
|
-
"runtimeVersion": "0.
|
|
6356
|
+
"runtimeVersion": "0.191.0"
|
|
6357
6357
|
},
|
|
6358
6358
|
"objectives": [
|
|
6359
6359
|
{
|
|
@@ -6464,7 +6464,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6464
6464
|
"baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
|
|
6465
6465
|
"candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
|
|
6466
6466
|
"kind": "agent-eval-loop",
|
|
6467
|
-
"recordDigest": "sha256:
|
|
6467
|
+
"recordDigest": "sha256:78886fe62aa0108b414e5920f3b87555d96cc141cbdd8e40b9ce9591784f73c8",
|
|
6468
6468
|
"runId": "profile-improvement-1",
|
|
6469
6469
|
"schema": "agent-profile-improvement-experiment"
|
|
6470
6470
|
}
|
package/dist/tui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { an as
|
|
1
|
+
import { an as SupervisorCleanupReceipt, in as ProvisionedSupervisor, nn as ProvisionSupervisorConnection, on as provisionSupervisor, rn as ProvisionSupervisorRequest } from "../index-B2rVjcPT.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-DAcTZDQG.js";
|
|
2
2
|
import { a as renderTopFrameWithLayout, i as renderTopFrame, n as runTopApp, r as loadTopSnapshot, t as renderTopOnce } from "../top-app-KgIFpD9H.js";
|
|
3
3
|
export { loadTopSnapshot, provisionSupervisor, renderTopFrame, renderTopFrameWithLayout, renderTopOnce, runTopApp };
|
|
@@ -1168,6 +1168,9 @@ interface Executor<Out> {
|
|
|
1168
1168
|
*/
|
|
1169
1169
|
teardown(grace: number | 'brutalKill' | 'infinity'): Promise<{
|
|
1170
1170
|
destroyed: boolean;
|
|
1171
|
+
/** Why the resource could not be proven destroyed. Present only with `destroyed: false`, so a
|
|
1172
|
+
* caller reporting an unconfirmed teardown can name the cause instead of a bare flag. */
|
|
1173
|
+
detail?: string;
|
|
1171
1174
|
}>;
|
|
1172
1175
|
/**
|
|
1173
1176
|
* Optional acknowledgement window for a remote cleanup requested as `'brutalKill'`.
|
|
@@ -1183,6 +1186,7 @@ interface Executor<Out> {
|
|
|
1183
1186
|
out: Out;
|
|
1184
1187
|
verdict?: DefaultVerdict;
|
|
1185
1188
|
spent: Spend;
|
|
1189
|
+
teardown?: ExecutorTeardownWarning;
|
|
1186
1190
|
};
|
|
1187
1191
|
/**
|
|
1188
1192
|
* Optional accounting split for recursive executors.
|
|
@@ -1293,6 +1297,27 @@ interface ExecutorResult<Out> {
|
|
|
1293
1297
|
out: Out;
|
|
1294
1298
|
verdict?: DefaultVerdict;
|
|
1295
1299
|
spent: Spend;
|
|
1300
|
+
/** A resource teardown that failed AFTER this result settled. Present ONLY on that path, and it
|
|
1301
|
+
* never changes the outcome: the turn completed, the artifact is real, and the spend is what was
|
|
1302
|
+
* metered. See {@link ExecutorTeardownWarning}. */
|
|
1303
|
+
teardown?: ExecutorTeardownWarning;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* A teardown failure recorded BESIDE a settled result rather than in place of it.
|
|
1307
|
+
*
|
|
1308
|
+
* The measured failure: a provider environment's second DELETE answered 409, the rejection escaped
|
|
1309
|
+
* the executor's `finally`, and a run whose turn had completed (`spent.iterations: 1`, artifact
|
|
1310
|
+
* produced) was reported as a failure. Once the stream has yielded its terminal event the result is
|
|
1311
|
+
* SETTLED; what happens to the resource afterwards is an operational fact about the resource, not a
|
|
1312
|
+
* verdict on the work. The run keeps its outcome and carries this warning, which is the same
|
|
1313
|
+
* distinction `teardown-unconfirmed` already draws for a child whose cleanup was never acknowledged.
|
|
1314
|
+
*/
|
|
1315
|
+
interface ExecutorTeardownWarning {
|
|
1316
|
+
readonly failed: true;
|
|
1317
|
+
/** What the teardown threw, as text. */
|
|
1318
|
+
readonly error: string;
|
|
1319
|
+
/** ISO timestamp of the failed attempt. */
|
|
1320
|
+
readonly at: string;
|
|
1296
1321
|
}
|
|
1297
1322
|
/**
|
|
1298
1323
|
* Normalized usage event — the single channel every executor reports through, so the
|
|
@@ -2599,5 +2624,5 @@ interface WidenGate<Out> {
|
|
|
2599
2624
|
readonly judgeExempt?: boolean;
|
|
2600
2625
|
}
|
|
2601
2626
|
//#endregion
|
|
2602
|
-
export {
|
|
2603
|
-
//# sourceMappingURL=types-
|
|
2627
|
+
export { SupervisorOpts as $, RetainedRunEnvironmentAdmission as $n, sanitizeAgentRuntimeEvent as $t, ProviderModelAttemptEvidence as A, RecoverRetainedInteractiveRunOptions as An, OtelExporter as At, Scope as B, RecoverRetainedRunIntentOptions as Bn, loopEventToOtelSpan as Bt, MaterializedModelIdentity as C, DEFAULT_STALL_AFTER_MS as Cn, EvalRunGeneration as Ct, NodeSnapshot as D, createActivityLog as Dn, LoopSpanNode as Dt, NodeId as E, WorkerProgress as En, INTELLIGENCE_WIRE_VERSION as Et, RootHandle as F, StartRetainedInteractiveRunOptions as Fn, buildRuntimeEventOtelSpans as Ft, SpawnPrior as G, RetainedInteractiveIntentAdmission as Gn, RuntimeStreamEventCollector as Gt, SpawnEvent as H, RecoverRetainedRunResult as Hn, padTraceId as Ht, RootMaterialization as I, NativeContextContinuationExecution as In, createOpenInferenceFileExporter as It, SpendChannel as J, RetainedRunAdmissionHook as Jn, RuntimeTelemetryOptions as Jt, SpawnRejection as K, RetainedInteractiveStartedAdmission as Kn, RuntimeStreamEventSink as Kt, RootProviderModelEvidence as L, NativeContextContinuationHandle as Ln, createOtelExporter as Lt, ResultBlobStore as M, RetainedInteractiveEnvironmentInput as Mn, RuntimeEventOtelOptions as Mt, ResumedKeyState as N, RetainedInteractiveRunHandle as Nn, buildLoopOtelSpans as Nt, NodeStatus as O, readWorkerProgress as On, OtelAttribute as Ot, ResumedWork as P, RetainedInteractiveStartMaterial as Pn, buildLoopSpanNodes as Pt, Supervisor as Q, RetainedRunEffect as Qn, createRuntimeStreamEventCollector as Qt, RootSignal as R, NativeContextContinuationInput as Rn, exportEvalRuns as Rt, MaterializedExecutionIdentity as S, ActivityNote as Sn, EvalRunEvent as St, NodeExecutionIdentity as T, ScopeProgressInput as Tn, EvalRunsExportResult as Tt, SpawnJournal as U, RetainedInteractiveAdmission as Un, toOtelAttributes as Ut, Settled as V, RecoverRetainedRunOptions as Vn, padSpanId as Vt, SpawnOpts as W, RetainedInteractiveEnvironmentAdmission as Wn, RuntimeEventCollector as Wt, SteerableRootHandle as X, RetainedRunCancellation as Xn, SanitizedKnowledgeRequirement as Xt, SpendGap as Y, RetainedRunCancelOptions as Yn, SanitizedKnowledgeReadinessReport as Yt, SupervisedResult as Z, RetainedRunDispatchedAdmission as Zn, createRuntimeEventCollector as Zt, ExecutorRegistry as _, TraceSource as _n, TraceContext as _t, DefaultVerdict as a, WaitProbeRegistry as an, RetainedRunStartMaterial as ar, WaitOpts as at, ExecutorToolCall as b, sandboxSessionTraceSource as bn, readTraceContextFromEnv as bt, ExecutorAccounting as c, createWaitProbes as cn, StartRetainedRunOptions as cr, WorkerInteractiveUnavailableReason as ct, ExecutorContext as d, timerAt as dn, WorkerTraceResolver as dt, sanitizeKnowledgeReadinessReport as en, RetainedRunEventOptions as er, TokenUsageProvenance as et, ExecutorExecutionBinding as f, validateWaitSpec as fn, WorkerTraceSeamCarrier as ft, ExecutorProgressEvent as g, ToolStepInput as gn, workerTraceSeamKey as gt, ExecutorNodeContext as h, SessionTraceBox as hn, workerTraceHeaders as ht, Budget as i, WaitProbe as in, RetainedRunSnapshot as ir, UsageEvent as it, ProviderModelExecutionEvidence as j, RetainedInteractiveAdmissionHook as jn, OtelSpan as jt, ProfileMaterializationReceipt as k, ReconnectRetainedInteractiveRunOptions as kn, OtelExportConfig as kt, ExecutorCancellation as l, isWaitOutcome as ln, WorkerTraceEvidence as lt, ExecutorMaterialization as m, SessionMessageLike as mn, workerTraceEnv as mt, AgentExecutionRef as n, PendingWait as nn, RetainedRunIntentAdmission as nr, UnconfirmedTeardown as nt, ExecutionBindingReceipt as o, WaitRejection as on, RetainedRunTurnInput as or, WidenGate as ot, ExecutorFactory as p, waitUntil as pn, readWorkerTraceContext as pt, Spend as q, RetainedRunAdmission as qn, RuntimeStreamEventSummary as qt, AgentSpec as r, WaitOutcome as rn, RetainedRunReplayPoint as rr, UnknownMaterializationReason as rt, Executor as s, WaitSpec as sn, StartRetainedRunInEnvironmentOptions as sr, WorkerInteractiveSession as st, Agent as t, sanitizeRuntimeStreamEvent as tn, RetainedRunHandle as tr, TreeView as tt, ExecutorCancellationRequest as u, pollFor as un, WorkerTraceUnavailableReason as ut, ExecutorResult as v, createPushTraceSource as vn, createPropagatingTraceEmitter as vt, NoWinnerError as w, ExecutorProgress as wn, EvalRunsExportConfig as wt, Handle as x, ActivityLog as xn, traceContextToEnv as xt, ExecutorTeardownWarning as y, decodeToolPart as yn, mergeTraceEnv as yt, Runtime as z, ReconnectRetainedRunOptions as zn, generateSpanId as zt };
|
|
2628
|
+
//# sourceMappingURL=types-DKA_PDv0.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.191.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": {
|