@tangle-network/agent-runtime 9.0.16 → 10.0.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/CHANGELOG.md +86 -0
- package/dist/{activation-DgT20fzX.js → activation-C_BenzIu.js} +2 -2
- package/dist/{activation-DgT20fzX.js.map → activation-C_BenzIu.js.map} +1 -1
- package/dist/{activation-y6NAn3sW.d.ts → activation-s6dGGify.d.ts} +7 -8
- 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-BOren4c7.js} +2 -2
- package/dist/{delegate-Cmu5OF3M.js.map → delegate-BOren4c7.js.map} +1 -1
- package/dist/{coordination-manager-CFtnSLPw.js → driver-control-acknowledgers-ByKwAgCI.js} +1062 -1042
- package/dist/driver-control-acknowledgers-ByKwAgCI.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-DoCCGLDH.js} +42 -18
- package/dist/failure-cause-DoCCGLDH.js.map +1 -0
- package/dist/{graph-DqtIiS94.js → graph-BXONYT1o.js} +8 -8
- package/dist/{graph-DqtIiS94.js.map → graph-BXONYT1o.js.map} +1 -1
- 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/{improve-B0vNv6e7.js → improve-CS2GIF5O.js} +42 -26
- package/dist/{improve-B0vNv6e7.js.map → improve-CS2GIF5O.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-CfMOsISJ.d.ts → loop-runner-C0B3PexH.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/{loop-runner-BvVdDdZC.js → loop-runner-ftyZP4st.js} +2 -2
- package/dist/{loop-runner-BvVdDdZC.js.map → loop-runner-ftyZP4st.js.map} +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-CauovUHn.js} +6 -6
- package/dist/{provision-supervisor-BjKluSKl.js.map → provision-supervisor-CauovUHn.js.map} +1 -1
- package/dist/{run-cancellation-BvGEEwRG.js → run-cancellation-NMNVuYiO.js} +2 -2
- package/dist/{run-cancellation-BvGEEwRG.js.map → run-cancellation-NMNVuYiO.js.map} +1 -1
- package/dist/{run-state-Dd_AjWd6.js → run-state-COyIVOVb.js} +5 -5
- package/dist/{run-state-Dd_AjWd6.js.map → run-state-COyIVOVb.js.map} +1 -1
- package/dist/{runtime-7VEM9muH.js → runtime-DYaRDLKn.js} +191 -24
- package/dist/runtime-DYaRDLKn.js.map +1 -0
- package/dist/{search-executor-Dqtm1fOC.js → search-executor-Drd_N9YO.js} +5 -5
- package/dist/{search-executor-Dqtm1fOC.js.map → search-executor-Drd_N9YO.js.map} +1 -1
- package/dist/{server-B8Kmit_v.js → server-Dk9B1WFf.js} +4 -4
- package/dist/{server-B8Kmit_v.js.map → server-Dk9B1WFf.js.map} +1 -1
- package/dist/{settle-record-BvH2-Ao5.js → settle-record-YdkkHzqw.js} +2 -2
- package/dist/{settle-record-BvH2-Ao5.js.map → settle-record-YdkkHzqw.js.map} +1 -1
- package/dist/{structural-rollout-CYc8PE2N.js → structural-rollout-DbZAkHTq.js} +5 -5
- package/dist/{structural-rollout-CYc8PE2N.js.map → structural-rollout-DbZAkHTq.js.map} +1 -1
- package/dist/{supervise-BayNu7qZ.js → supervise-B5hb0my3.js} +2426 -2336
- package/dist/supervise-B5hb0my3.js.map +1 -0
- package/dist/{supervision-discovery-Ca4QO4rG.js → supervision-discovery-ChkTxilL.js} +3 -3
- package/dist/{supervision-discovery-Ca4QO4rG.js.map → supervision-discovery-ChkTxilL.js.map} +1 -1
- package/dist/{supervisor-Bx21Hy27.js → supervisor-DpwcTrTh.js} +437 -75
- package/dist/supervisor-DpwcTrTh.js.map +1 -0
- package/dist/{supervisor-accounting-StDNW1YT.js → supervisor-accounting-QiXnF-EW.js} +541 -344
- package/dist/supervisor-accounting-QiXnF-EW.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-DQCdu3am.js} +2 -2
- package/dist/{tool-server-CirrqFlr.js.map → tool-server-DQCdu3am.js.map} +1 -1
- package/dist/{top-web-Cg7ywIkF.js → top-web-E85Fk8pH.js} +6 -6
- package/dist/{top-web-Cg7ywIkF.js.map → top-web-E85Fk8pH.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-dv295cpm.d.ts} +9907 -9784
- 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 +8 -7
- 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 { $d as
|
|
1
|
+
import { $d as PursuitRunTotals, Ad as PursuitVersionChain, Bb as ContinuityMode, Bd as SupervisedPursuitResult, Bp as ParkedRun, Dd as JudgedPursuitVersion, F as NodeId, Fd as VersionVerdict, Gd as PursuitCostProvenance, Hd as supervisePursuit, Hp as RunParkingPolicy, Id as assertPursuitVersions, Jd as PursuitNodeProjection, Jm as CoordinationTransportOptions, Kd as PursuitNodeCost, Km as CoordinationPublicAddress, Ld as SuperviseGraphPursuitOptions, Lx as AnalyzeOnSettleRoute, Md as PursuitVersions, Nd as SettledPursuitVersion, Ob as QuestionEscalationOutcome, Od as NextPursuitVersion, Pd as VersionJudge, Qd as PursuitRunProjection, Rb as AuthorizedDownMessage, Rd as SupervisePursuitError, Sa as SupervisedResult, Sm as ManagerWakePolicy, Tb as EscalateQuestion, Ud as RunReopen, Um as CoordinationAuthentication, Up as RunParkingRecord, Vb as DownMessageAuthorizationInput, Vd as superviseGraphPursuit, Vp as RunParkedError, Wd as PursuitObserverDelivery, Wp as readRunParking, Xd as PursuitNodeUsage, Xm as CoordinationHttpAudit, Yd as PursuitNodeTiming, Zd as PursuitProjection, Zm as CoordinationRejectReason, _f as WorkerSlots, af as ObserverRecordKind, am as readRootStreamReceipt, cS as SpawnJournalCursor, cf as RUN_FORK_CORRELATION_KEYS, dS as SpawnJournalReadResult, ef as PursuitStatus, fS as readSpawnJournal, fm as DriveHarnessOwnerContext, fp as SelectSeat, hS as readRunState, i_ as ToolLoopCompactionOptions, if as ObserverRecord, im as readRootStream, jd as PursuitVersionStop, kd as NextPursuitVersionInput, lS as SpawnJournalReadOptions, lp as SeatSelection, mS as RunState, mb as WorkerWatchOptions, mf as AuthorizedSpawnContext, mm as ResolveDriveHarness, nf as FileObserverJournal, nw as LoopTokenUsage, of as observerRecordDigest, pf as AuthorizedSpawn, q as RetainedPendingCause, qb as MapOnSettleRoute, qd as PursuitNodePlatform, qm as CoordinationReadAccess, rf as ObserverJournal, rm as RootStreamRecord, sf as PursuitFork, tf as projectPursuit, uS as SpawnJournalReadRecord, up as SeatSelectionInput, xa as RootStreamReceipt, zd as SupervisePursuitOptions, zp as DeadlineCheckIn } from "./types-dv295cpm.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-QiXnF-EW.js";
|
|
2
|
+
import { c as readRunParking, i as RunParkedError, r as assertResumeLimits } from "./supervisor-DpwcTrTh.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-ChkTxilL.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 {
|
|
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-YdkkHzqw.js";
|
|
11
|
+
import { l as rootStreamToolSpans, s as ASSISTANT_REASONING_SPAN, t as supervise, u as runToolSpans, v as superviseRootProfile } from "./supervise-B5hb0my3.js";
|
|
12
|
+
import { M as contentAddress, n as runtimeFailureCause, nt as assertValidBudget } from "./failure-cause-DoCCGLDH.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-COyIVOVb.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-NMNVuYiO.js";
|
|
16
|
+
import { i as superviseAgentGraph, s as graphExecutionOptions } from "./graph-BXONYT1o.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)
|