@tangle-network/agent-runtime 9.0.16 → 10.0.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/CHANGELOG.md +72 -0
- package/dist/{activation-y6NAn3sW.d.ts → activation-CDlOqX5a.d.ts} +7 -8
- package/dist/{activation-DgT20fzX.js → activation-CEGkyzEG.js} +2 -2
- package/dist/{activation-DgT20fzX.js.map → activation-CEGkyzEG.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/candidate-execution/index.d.ts +3 -0
- package/dist/candidate-execution/index.js +10 -3
- package/dist/candidate-execution/index.js.map +1 -1
- package/dist/{delegate-Cmu5OF3M.js → delegate-V2Nz8GgO.js} +2 -2
- package/dist/{delegate-Cmu5OF3M.js.map → delegate-V2Nz8GgO.js.map} +1 -1
- package/dist/{coordination-manager-CFtnSLPw.js → driver-control-acknowledgers-CJDYLJmW.js} +1042 -1042
- package/dist/driver-control-acknowledgers-CJDYLJmW.js.map +1 -0
- package/dist/durable.d.ts +5 -5
- package/dist/durable.js +13 -13
- package/dist/durable.js.map +1 -1
- package/dist/{failure-cause-WifbY42M.js → failure-cause-BI7cfDWx.js} +14 -2
- package/dist/failure-cause-BI7cfDWx.js.map +1 -0
- package/dist/{graph-registry-B_1C7qye.js → graph-registry-DxhlgHdA.js} +1 -1
- package/dist/{graph-registry-BbZN5deo.js → graph-registry-j9t9J0KT.js} +11 -12
- package/dist/{graph-registry-BbZN5deo.js.map → graph-registry-j9t9J0KT.js.map} +1 -1
- package/dist/{graph-DqtIiS94.js → graph-wJOMQ1kC.js} +8 -8
- package/dist/{graph-DqtIiS94.js.map → graph-wJOMQ1kC.js.map} +1 -1
- package/dist/{improve-B0vNv6e7.js → improve-DOjywiPq.js} +42 -26
- package/dist/{improve-B0vNv6e7.js.map → improve-DOjywiPq.js.map} +1 -1
- package/dist/index.d.ts +38 -6
- package/dist/index.js +59 -20
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +93 -63
- package/dist/intelligence.js +166 -73
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +3 -3
- package/dist/kernel.js +16 -15
- package/dist/{loop-runner-BvVdDdZC.js → loop-runner-CPTOzSol.js} +2 -2
- package/dist/{loop-runner-BvVdDdZC.js.map → loop-runner-CPTOzSol.js.map} +1 -1
- package/dist/{loop-runner-CfMOsISJ.d.ts → loop-runner-DwxZbYW5.d.ts} +2 -2
- 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 +1 -1
- package/dist/mcp/index.js +7 -7
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/{model-policy-CZwhXp8O.js → model-policy-CqDuBTq-.js} +12 -2
- package/dist/model-policy-CqDuBTq-.js.map +1 -0
- package/dist/{prepare-Cw4ZaN01.js → prepare-DT-ibRsm.js} +2 -2
- package/dist/{prepare-Cw4ZaN01.js.map → prepare-DT-ibRsm.js.map} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.js +1 -1
- package/dist/{provision-supervisor-BjKluSKl.js → provision-supervisor-B1_Kow9m.js} +6 -6
- package/dist/{provision-supervisor-BjKluSKl.js.map → provision-supervisor-B1_Kow9m.js.map} +1 -1
- package/dist/{run-cancellation-BvGEEwRG.js → run-cancellation-D5m6JHPH.js} +2 -2
- package/dist/{run-cancellation-BvGEEwRG.js.map → run-cancellation-D5m6JHPH.js.map} +1 -1
- package/dist/{run-state-Dd_AjWd6.js → run-state-DKOXe08H.js} +5 -5
- package/dist/{run-state-Dd_AjWd6.js.map → run-state-DKOXe08H.js.map} +1 -1
- package/dist/{runtime-7VEM9muH.js → runtime-C5cWSMqU.js} +191 -24
- package/dist/runtime-C5cWSMqU.js.map +1 -0
- package/dist/{search-executor-Dqtm1fOC.js → search-executor-CA6fTYWz.js} +5 -5
- package/dist/{search-executor-Dqtm1fOC.js.map → search-executor-CA6fTYWz.js.map} +1 -1
- package/dist/{server-B8Kmit_v.js → server-C8Z3vYdI.js} +4 -4
- package/dist/{server-B8Kmit_v.js.map → server-C8Z3vYdI.js.map} +1 -1
- package/dist/{settle-record-BvH2-Ao5.js → settle-record-BDxPAO4m.js} +2 -2
- package/dist/{settle-record-BvH2-Ao5.js.map → settle-record-BDxPAO4m.js.map} +1 -1
- package/dist/{structural-rollout-CYc8PE2N.js → structural-rollout-B0HPcP9G.js} +5 -5
- package/dist/{structural-rollout-CYc8PE2N.js.map → structural-rollout-B0HPcP9G.js.map} +1 -1
- package/dist/{supervise-BayNu7qZ.js → supervise-Dvj-8S6D.js} +2341 -2283
- package/dist/supervise-Dvj-8S6D.js.map +1 -0
- package/dist/{supervision-discovery-Ca4QO4rG.js → supervision-discovery-CbrwcgJy.js} +3 -3
- package/dist/{supervision-discovery-Ca4QO4rG.js.map → supervision-discovery-CbrwcgJy.js.map} +1 -1
- package/dist/{supervisor-Bx21Hy27.js → supervisor-DwdeUC2l.js} +218 -47
- package/dist/supervisor-DwdeUC2l.js.map +1 -0
- package/dist/{supervisor-accounting-StDNW1YT.js → supervisor-accounting-C48Yo9QC.js} +507 -341
- package/dist/supervisor-accounting-C48Yo9QC.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{tool-server-CirrqFlr.js → tool-server-DsCeBr-C.js} +2 -2
- package/dist/{tool-server-CirrqFlr.js.map → tool-server-DsCeBr-C.js.map} +1 -1
- package/dist/{top-web-Cg7ywIkF.js → top-web-CTOq4psb.js} +6 -6
- package/dist/{top-web-Cg7ywIkF.js.map → top-web-CTOq4psb.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{types-_j53efrk.d.ts → types-lnF0wIJW.d.ts} +8245 -8153
- package/dist/{workspace-streams-BakRr-Pl.js → workspace-streams-C7PGLAUd.js} +3 -3
- package/dist/workspace-streams-C7PGLAUd.js.map +1 -0
- package/package.json +5 -4
- package/dist/coordination-manager-CFtnSLPw.js.map +0 -1
- package/dist/failure-cause-WifbY42M.js.map +0 -1
- package/dist/model-policy-CZwhXp8O.js.map +0 -1
- package/dist/runtime-7VEM9muH.js.map +0 -1
- package/dist/supervise-BayNu7qZ.js.map +0 -1
- package/dist/supervisor-Bx21Hy27.js.map +0 -1
- package/dist/supervisor-accounting-StDNW1YT.js.map +0 -1
- package/dist/workspace-streams-BakRr-Pl.js.map +0 -1
package/dist/durable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $f as SeatSelectionInput, Ad as superviseGraphPursuit, Ap as RunParkedError, Bd as PursuitProjection, Bm as CoordinationRejectReason, Bx as SpawnJournalReadRecord, Cd as VersionJudge, D as RetainedPendingCause, Db as MapOnSettleRoute, Dd as SupervisePursuitError, Ed as SuperviseGraphPursuitOptions, Fd as PursuitNodeCost, Fm as CoordinationPublicAddress, Gd as FileObserverJournal, Gx as readRunState, Hd as PursuitRunTotals, Hx as readSpawnJournal, Id as PursuitNodePlatform, Im as CoordinationReadAccess, Jd as ObserverRecordKind, Jp as readRootStreamReceipt, Jy as WorkerWatchOptions, Kd as ObserverJournal, Kp as RootStreamRecord, Ld as PursuitNodeProjection, Lm as CoordinationTransportOptions, Md as RunReopen, Mm as CoordinationAuthentication, Mp as RunParkingRecord, Nd as PursuitObserverDelivery, Np as readRunParking, Od as SupervisePursuitOptions, Op as DeadlineCheckIn, Ot as RootStreamReceipt, Pd as PursuitCostProvenance, Qf as SeatSelection, Rd as PursuitNodeTiming, Rg as ToolLoopCompactionOptions, Rx as SpawnJournalCursor, Sd as SettledPursuitVersion, Td as assertPursuitVersions, Ud as PursuitStatus, Vd as PursuitRunProjection, Vx as SpawnJournalReadResult, Wd as projectPursuit, Wx as RunState, Xd as PursuitFork, Yd as observerRecordDigest, Zd as RUN_FORK_CORRELATION_KEYS, _d as NextPursuitVersion, ab as EscalateQuestion, bb as ContinuityMode, bd as PursuitVersionStop, cb as QuestionEscalationOutcome, dm as ManagerWakePolicy, ft as NodeId, gd as JudgedPursuitVersion, jd as supervisePursuit, jp as RunParkingPolicy, kd as SupervisedPursuitResult, kp as ParkedRun, kt as SupervisedResult, nf as AuthorizedSpawn, of as WorkerSlots, px as AnalyzeOnSettleRoute, qd as ObserverRecord, qp as readRootStream, rf as AuthorizedSpawnContext, rm as ResolveDriveHarness, tm as DriveHarnessOwnerContext, tp as SelectSeat, tw as LoopTokenUsage, vb as AuthorizedDownMessage, vd as NextPursuitVersionInput, wd as VersionVerdict, xb as DownMessageAuthorizationInput, xd as PursuitVersions, yd as PursuitVersionChain, zd as PursuitNodeUsage, zm as CoordinationHttpAudit, zx as SpawnJournalReadOptions } from "./types-lnF0wIJW.js";
|
|
2
2
|
import { n as RuntimeDecisionKind, r as RuntimeDecisionPoint, t as RuntimeDecisionEvidenceRef } from "./runtime-hooks-DPghSHV7.js";
|
|
3
3
|
import { a as ChatTurnProducer, c as handleChatTurn, i as ChatTurnIdentity, n as ChatStreamEvent, o as ChatTurnResult, r as ChatTurnHooks, s as RunChatTurnInput, t as deriveExecutionId } from "./execution-handle-CujvqgCn.js";
|
|
4
4
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
@@ -84,16 +84,16 @@ type RunEvidence = Awaited<ReturnType<typeof runEvidence>>;
|
|
|
84
84
|
*/
|
|
85
85
|
export declare function runEvidence(runDir: string, bounds?: RunEvidenceBounds): Promise<{
|
|
86
86
|
nodes: {
|
|
87
|
-
settled: string | undefined;
|
|
88
87
|
toolCalls: {
|
|
89
88
|
name: string;
|
|
90
89
|
args: string;
|
|
91
90
|
}[];
|
|
92
91
|
message: string;
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
settled?: string | undefined;
|
|
93
|
+
tokens?: LoopTokenUsage | undefined;
|
|
95
94
|
outcome: string;
|
|
96
|
-
|
|
95
|
+
node?: string | undefined;
|
|
96
|
+
id: string;
|
|
97
97
|
}[];
|
|
98
98
|
truncated: boolean;
|
|
99
99
|
}>;
|
package/dist/durable.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as readRunParking, i as RunParkedError, r as assertResumeLimits } from "./supervisor-
|
|
1
|
+
import { C as workerCancellationsDir, Mn as createFileObserverHooks, Nn as observerRecordDigest, W as FileSpawnJournal, b as supervisorRunDir, c as readRootStreamReceipt, jn as FileObserverJournal, jr as authoredProfileDigest, ln as FileResultBlobStore, rn as loadSpawnForest, s as readRootStream } from "./supervisor-accounting-C48Yo9QC.js";
|
|
2
|
+
import { c as readRunParking, i as RunParkedError, r as assertResumeLimits } from "./supervisor-DwdeUC2l.js";
|
|
3
3
|
import { n as handleChatTurn, t as deriveExecutionId } from "./execution-handle-Bd2_nUB6.js";
|
|
4
|
-
import { n as projectPursuit, t as discoverDurableSupervisionRun } from "./supervision-discovery-
|
|
4
|
+
import { n as projectPursuit, t as discoverDurableSupervisionRun } from "./supervision-discovery-CbrwcgJy.js";
|
|
5
5
|
import { a as applyExactAgentProfileDiff } from "./profile-Cxl_Ajl2.js";
|
|
6
6
|
import { f as RuntimeRunStateError, m as ValidationError } from "./errors-DG8yufqX.js";
|
|
7
7
|
import { o as failedItems, s as isFiniteNumber } from "./continuation-CZaeHEzQ.js";
|
|
8
8
|
import { c as errorMessage } from "./util-qsH5cC9S.js";
|
|
9
9
|
import { t as isNoEntError } from "./jsonl-file-BhuxeejY.js";
|
|
10
|
-
import { a as readFailureRecord, c as writeFailureRecord, i as parseSettleRecord, l as writeSettleRecord, n as SETTLE_RECORD_FILE, o as readSettleRecord, r as SettledRunDirectoryError, s as settleRecordDigest, t as FAILURE_RECORD_FILE } from "./settle-record-
|
|
11
|
-
import {
|
|
12
|
-
import { N as contentAddress, n as runtimeFailureCause, tt as assertValidBudget } from "./failure-cause-
|
|
13
|
-
import { a as acquireRunDirectoryLock, i as RunDirectoryLockedError, n as readSpawnJournal, o as readRunDirectoryLock, r as RUN_DIRECTORY_LOCK_FILE, s as runDirectoryHolderIsLive, t as readRunState } from "./run-state-
|
|
10
|
+
import { a as readFailureRecord, c as writeFailureRecord, i as parseSettleRecord, l as writeSettleRecord, n as SETTLE_RECORD_FILE, o as readSettleRecord, r as SettledRunDirectoryError, s as settleRecordDigest, t as FAILURE_RECORD_FILE } from "./settle-record-BDxPAO4m.js";
|
|
11
|
+
import { l as rootStreamToolSpans, s as ASSISTANT_REASONING_SPAN, t as supervise, u as runToolSpans, v as superviseRootProfile } from "./supervise-Dvj-8S6D.js";
|
|
12
|
+
import { N as contentAddress, n as runtimeFailureCause, tt as assertValidBudget } from "./failure-cause-BI7cfDWx.js";
|
|
13
|
+
import { a as acquireRunDirectoryLock, i as RunDirectoryLockedError, n as readSpawnJournal, o as readRunDirectoryLock, r as RUN_DIRECTORY_LOCK_FILE, s as runDirectoryHolderIsLive, t as readRunState } from "./run-state-DKOXe08H.js";
|
|
14
14
|
import { u as defaultRedactor } from "./snapshot-BKI_w3JD.js";
|
|
15
|
-
import { a as runCancelRequestFile, h as rootCoordinationOwner, o as runCancellationFile, v as FileCoordinationLog } from "./run-cancellation-
|
|
16
|
-
import { i as superviseAgentGraph, s as graphExecutionOptions } from "./graph-
|
|
15
|
+
import { a as runCancelRequestFile, h as rootCoordinationOwner, o as runCancellationFile, v as FileCoordinationLog } from "./run-cancellation-D5m6JHPH.js";
|
|
16
|
+
import { i as superviseAgentGraph, s as graphExecutionOptions } from "./graph-wJOMQ1kC.js";
|
|
17
17
|
import { a as withPursuitContext, t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
18
18
|
import { i as syncDurableDirectory, r as publishExclusiveDurableFile, s as fenceRunWrite } from "./durable-file-DstVeHcj.js";
|
|
19
19
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256Bytes } from "@tangle-network/agent-interface";
|
|
@@ -1098,15 +1098,15 @@ async function runEvidence(runDir, bounds = {}) {
|
|
|
1098
1098
|
const out = node.outRef === void 0 ? void 0 : await blobs.get(node.outRef);
|
|
1099
1099
|
return {
|
|
1100
1100
|
id: node.id,
|
|
1101
|
-
node: node.label,
|
|
1101
|
+
...node.label === void 0 ? {} : { node: node.label },
|
|
1102
1102
|
outcome: node.failure ? `${node.status}: ${node.failure.code}` : node.status,
|
|
1103
|
-
|
|
1103
|
+
...out === void 0 ? {} : { settled: json(out) },
|
|
1104
1104
|
calls: spans.flatMap((span) => span.name === "assistant_text" ? [] : [{
|
|
1105
1105
|
name: stripVTControlCharacters(span.name),
|
|
1106
1106
|
args: json(span.args)
|
|
1107
1107
|
}]),
|
|
1108
1108
|
message: final === void 0 ? "" : JSON.parse(json(final)),
|
|
1109
|
-
tokens: node.spent
|
|
1109
|
+
...node.spent?.tokens === void 0 ? {} : { tokens: node.spent.tokens }
|
|
1110
1110
|
};
|
|
1111
1111
|
}));
|
|
1112
1112
|
let truncated = false;
|
|
@@ -1118,7 +1118,7 @@ async function runEvidence(runDir, bounds = {}) {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
const shape = (scale) => full.map(({ calls, settled, message, ...node }) => ({
|
|
1120
1120
|
...node,
|
|
1121
|
-
settled: clip(settled, (bounds.settledChars ?? 600) * scale),
|
|
1121
|
+
...settled === void 0 ? {} : { settled: clip(settled, (bounds.settledChars ?? 600) * scale) },
|
|
1122
1122
|
toolCalls: calls.slice(-(bounds.toolCalls ?? 3)).map(({ name, args }) => ({
|
|
1123
1123
|
name,
|
|
1124
1124
|
args: clip(args, (bounds.toolCallChars ?? 150) * scale)
|