@tangle-network/agent-runtime 10.0.18 → 10.0.20
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 +8 -0
- package/dist/{activation-QvaQ62ub.js → activation-5TrUzeFd.js} +2 -2
- package/dist/{activation-QvaQ62ub.js.map → activation-5TrUzeFd.js.map} +1 -1
- package/dist/{activation-BrKEOt0o.d.ts → activation-B0arteLE.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +4 -4
- package/dist/{delegate-CeDlbkv1.js → delegate-DnW85VY0.js} +2 -2
- package/dist/{delegate-CeDlbkv1.js.map → delegate-DnW85VY0.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-C6WDdngb.js → driver-control-acknowledgers-vgmZqgZ-.js} +8 -8
- package/dist/{driver-control-acknowledgers-C6WDdngb.js.map → driver-control-acknowledgers-vgmZqgZ-.js.map} +1 -1
- package/dist/durable-writer-thread.js +4 -4
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +17 -18
- package/dist/durable.js.map +1 -1
- package/dist/{graph-icQyDLuE.js → graph-DHNPE7kw.js} +8 -8
- package/dist/{graph-icQyDLuE.js.map → graph-DHNPE7kw.js.map} +1 -1
- package/dist/{graph-registry-aMRd94PD.js → graph-registry-DI8o9iCB.js} +1 -1
- package/dist/{graph-registry-SgsCxCTZ.js → graph-registry-qyaNDATw.js} +2 -3
- package/dist/{graph-registry-SgsCxCTZ.js.map → graph-registry-qyaNDATw.js.map} +1 -1
- package/dist/{improve-BkmELSLf.js → improve-BLFqeD3X.js} +6 -6
- package/dist/{improve-BkmELSLf.js.map → improve-BLFqeD3X.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/{continuation-CDdjAkpk.js → jsonl-file-B2ESMrTh.js} +396 -4
- package/dist/jsonl-file-B2ESMrTh.js.map +1 -0
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +17 -18
- package/dist/{loop-runner-1JaJldwD.d.ts → loop-runner-BFC781pC.d.ts} +2 -2
- package/dist/{loop-runner-DA7j6lcP.js → loop-runner-CITvo-q1.js} +2 -2
- package/dist/{loop-runner-DA7j6lcP.js.map → loop-runner-CITvo-q1.js.map} +1 -1
- 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 +6 -6
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-C9Hbntgv.js → provision-supervisor-CyUbiMz8.js} +6 -6
- package/dist/{provision-supervisor-C9Hbntgv.js.map → provision-supervisor-CyUbiMz8.js.map} +1 -1
- package/dist/{result-blob-store-Dke805sV.js → result-blob-store-CJjp44Mz.js} +3 -3
- package/dist/{result-blob-store-Dke805sV.js.map → result-blob-store-CJjp44Mz.js.map} +1 -1
- package/dist/{run-cancellation-ewCqEeaB.js → run-cancellation-BNBmsY3a.js} +2 -2
- package/dist/{run-cancellation-ewCqEeaB.js.map → run-cancellation-BNBmsY3a.js.map} +1 -1
- package/dist/{run-lock-BOg7BaXF.js → run-lock-Dcr79Wql.js} +2 -2
- package/dist/{run-lock-BOg7BaXF.js.map → run-lock-Dcr79Wql.js.map} +1 -1
- package/dist/{run-reopen-D0j0fxLA.js → run-reopen-Cr2SHmYa.js} +6 -6
- package/dist/{run-reopen-D0j0fxLA.js.map → run-reopen-Cr2SHmYa.js.map} +1 -1
- package/dist/{run-state-YgNw0e6m.js → run-state-AYXAe_lX.js} +7 -7
- package/dist/{run-state-YgNw0e6m.js.map → run-state-AYXAe_lX.js.map} +1 -1
- package/dist/{runtime-CvEV00cw.js → runtime-D-FpUoQg.js} +19 -20
- package/dist/{runtime-CvEV00cw.js.map → runtime-D-FpUoQg.js.map} +1 -1
- package/dist/{search-executor-obtQ1gad.js → search-executor-BHfb4p6C.js} +4 -4
- package/dist/{search-executor-obtQ1gad.js.map → search-executor-BHfb4p6C.js.map} +1 -1
- package/dist/{server-Cytht_rG.js → server-CAXzZHVz.js} +4 -4
- package/dist/{server-Cytht_rG.js.map → server-CAXzZHVz.js.map} +1 -1
- package/dist/{settle-record-wvANhoy8.js → settle-record-BlIw2MU1.js} +3 -3
- package/dist/{settle-record-wvANhoy8.js.map → settle-record-BlIw2MU1.js.map} +1 -1
- package/dist/{structural-rollout-srl_no2J.js → structural-rollout-BVuf5hFl.js} +4 -4
- package/dist/{structural-rollout-srl_no2J.js.map → structural-rollout-BVuf5hFl.js.map} +1 -1
- package/dist/{supervise-x-0LPDZh.js → supervise-Ci8wiyla.js} +13 -13
- package/dist/supervise-Ci8wiyla.js.map +1 -0
- package/dist/{supervise-identity-CAxifVzJ.js → supervise-identity-CtxWEk1I.js} +3 -3
- package/dist/{supervise-identity-CAxifVzJ.js.map → supervise-identity-CtxWEk1I.js.map} +1 -1
- package/dist/{supervision-discovery-CikJuonO.js → supervision-discovery-DKxqbnHf.js} +4 -4
- package/dist/{supervision-discovery-CikJuonO.js.map → supervision-discovery-DKxqbnHf.js.map} +1 -1
- package/dist/{supervisor-9_oKaGd_.js → supervisor-KcnH2hC4.js} +10 -592
- package/dist/supervisor-KcnH2hC4.js.map +1 -0
- package/dist/{supervisor-accounting-DLjKVPwf.js → supervisor-accounting-DlDUl58C.js} +617 -10
- package/dist/supervisor-accounting-DlDUl58C.js.map +1 -0
- package/dist/{supervisor-root-contract-BUrTzojJ.js → supervisor-root-contract-BCbu1A4n.js} +3 -3
- package/dist/{supervisor-root-contract-BUrTzojJ.js.map → supervisor-root-contract-BCbu1A4n.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{failure-cause-C96rzF-d.js → tool-server-n4XYpCok.js} +181 -2
- package/dist/tool-server-n4XYpCok.js.map +1 -0
- package/dist/{top-web-C_VALyaB.js → top-web-B-sHmI3g.js} +8 -8
- package/dist/{top-web-C_VALyaB.js.map → top-web-B-sHmI3g.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-eWuTelLM.d.ts → types-YXZL7Wxi.d.ts} +6 -4
- package/package.json +1 -1
- package/dist/continuation-CDdjAkpk.js.map +0 -1
- package/dist/failure-cause-C96rzF-d.js.map +0 -1
- package/dist/jsonl-file-B8xfYz9M.js +0 -397
- package/dist/jsonl-file-B8xfYz9M.js.map +0 -1
- package/dist/supervise-x-0LPDZh.js.map +0 -1
- package/dist/supervisor-9_oKaGd_.js.map +0 -1
- package/dist/supervisor-accounting-DLjKVPwf.js.map +0 -1
- package/dist/tool-server-BhsyVDj2.js +0 -174
- package/dist/tool-server-BhsyVDj2.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as publishExclusiveFenced, f as writeAtomicFenced, i as appendRunLinesFenced, p as becomeDurableWriter, t as appendDurableFenced, w as runWithWriteClaim } from "./durable-file-pao7FijS.js";
|
|
2
|
-
import { a as closeStreamFile, c as openStreamFileFenced, d as syncStreamFileFenced, f as writeStreamLinesFenced } from "./supervisor-accounting-
|
|
3
|
-
import { i as prepareJsonlTailFenced, u as appendCommittedLine } from "./jsonl-file-
|
|
4
|
-
import { i as acquireRunLockFenced, o as releaseRunLockFenced } from "./run-lock-
|
|
5
|
-
import { n as makeRunDirectoryFenced, r as reopenSettleFenced } from "./run-reopen-
|
|
2
|
+
import { a as closeStreamFile, c as openStreamFileFenced, d as syncStreamFileFenced, f as writeStreamLinesFenced } from "./supervisor-accounting-DlDUl58C.js";
|
|
3
|
+
import { i as prepareJsonlTailFenced, u as appendCommittedLine } from "./jsonl-file-B2ESMrTh.js";
|
|
4
|
+
import { i as acquireRunLockFenced, o as releaseRunLockFenced } from "./run-lock-Dcr79Wql.js";
|
|
5
|
+
import { n as makeRunDirectoryFenced, r as reopenSettleFenced } from "./run-reopen-Cr2SHmYa.js";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
// src/durable/durable-writer-thread.ts
|
|
8
8
|
/**
|
package/dist/durable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $d as PursuitProjection, $m as CoordinationRejectReason, Ab as QuestionEscalationOutcome, Ad as NextPursuitVersion, Bb as AuthorizedDownMessage, Bd as SupervisePursuitError, Ca as RootStreamReceipt, Db as EscalateQuestion, F as NodeId, Fd as SettledPursuitVersion, Gd as RunReopen, Gm as CoordinationAuthentication, Gp as RunParkingRecord, Hb as ContinuityMode, Hd as SupervisedPursuitResult, Hp as ParkedRun, Id as VersionJudge, Jd as PursuitNodeCost, Jm as CoordinationPublicAddress, Kd as PursuitObserverDelivery, Kp as readRunParking, Ld as VersionVerdict, Md as PursuitVersionChain, Nd as PursuitVersionStop, Pd as PursuitVersions, Qd as PursuitNodeUsage, Qm as CoordinationHttpAudit, Rd as assertPursuitVersions, Ub as DownMessageAuthorizationInput, Ud as superviseGraphPursuit, Up as RunParkedError, Vd as SupervisePursuitOptions, Vp as DeadlineCheckIn, Wd as supervisePursuit, Wp as RunParkingPolicy, Xd as PursuitNodeProjection, Xm as CoordinationTransportOptions, Yb as MapOnSettleRoute, Yd as PursuitNodePlatform, Ym as CoordinationReadAccess, Zd as PursuitNodeTiming, _S as readRunState, af as ObserverJournal, am as RootStreamRecord, cf as observerRecordDigest, dS as SpawnJournalReadOptions, dp as SeatSelection, ef as PursuitRunProjection, fS as SpawnJournalReadRecord, fp as SeatSelectionInput, gS as RunState, gb as WorkerWatchOptions, gf as AuthorizedSpawnContext, gm as ResolveDriveHarness, hf as AuthorizedSpawn, if as FileObserverJournal, jd as NextPursuitVersionInput, kd as JudgedPursuitVersion, lf as PursuitFork, mS as readSpawnJournal, mm as DriveHarnessOwnerContext, mp as SelectSeat, nf as PursuitStatus, o_ as ToolLoopCompactionOptions, of as ObserverRecord, om as readRootStream, ow as LoopTokenUsage, pS as SpawnJournalReadResult, q as RetainedPendingCause, qd as PursuitCostProvenance, rf as projectPursuit, sf as ObserverRecordKind, sm as readRootStreamReceipt, tf as PursuitRunTotals, uS as SpawnJournalCursor, uf as RUN_FORK_CORRELATION_KEYS, wa as SupervisedResult, wm as ManagerWakePolicy, yf as WorkerSlots, zd as SuperviseGraphPursuitOptions, zx as AnalyzeOnSettleRoute } from "./types-
|
|
1
|
+
import { $d as PursuitProjection, $m as CoordinationRejectReason, Ab as QuestionEscalationOutcome, Ad as NextPursuitVersion, Bb as AuthorizedDownMessage, Bd as SupervisePursuitError, Ca as RootStreamReceipt, Db as EscalateQuestion, F as NodeId, Fd as SettledPursuitVersion, Gd as RunReopen, Gm as CoordinationAuthentication, Gp as RunParkingRecord, Hb as ContinuityMode, Hd as SupervisedPursuitResult, Hp as ParkedRun, Id as VersionJudge, Jd as PursuitNodeCost, Jm as CoordinationPublicAddress, Kd as PursuitObserverDelivery, Kp as readRunParking, Ld as VersionVerdict, Md as PursuitVersionChain, Nd as PursuitVersionStop, Pd as PursuitVersions, Qd as PursuitNodeUsage, Qm as CoordinationHttpAudit, Rd as assertPursuitVersions, Ub as DownMessageAuthorizationInput, Ud as superviseGraphPursuit, Up as RunParkedError, Vd as SupervisePursuitOptions, Vp as DeadlineCheckIn, Wd as supervisePursuit, Wp as RunParkingPolicy, Xd as PursuitNodeProjection, Xm as CoordinationTransportOptions, Yb as MapOnSettleRoute, Yd as PursuitNodePlatform, Ym as CoordinationReadAccess, Zd as PursuitNodeTiming, _S as readRunState, af as ObserverJournal, am as RootStreamRecord, cf as observerRecordDigest, dS as SpawnJournalReadOptions, dp as SeatSelection, ef as PursuitRunProjection, fS as SpawnJournalReadRecord, fp as SeatSelectionInput, gS as RunState, gb as WorkerWatchOptions, gf as AuthorizedSpawnContext, gm as ResolveDriveHarness, hf as AuthorizedSpawn, if as FileObserverJournal, jd as NextPursuitVersionInput, kd as JudgedPursuitVersion, lf as PursuitFork, mS as readSpawnJournal, mm as DriveHarnessOwnerContext, mp as SelectSeat, nf as PursuitStatus, o_ as ToolLoopCompactionOptions, of as ObserverRecord, om as readRootStream, ow as LoopTokenUsage, pS as SpawnJournalReadResult, q as RetainedPendingCause, qd as PursuitCostProvenance, rf as projectPursuit, sf as ObserverRecordKind, sm as readRootStreamReceipt, tf as PursuitRunTotals, uS as SpawnJournalCursor, uf as RUN_FORK_CORRELATION_KEYS, wa as SupervisedResult, wm as ManagerWakePolicy, yf as WorkerSlots, zd as SuperviseGraphPursuitOptions, zx as AnalyzeOnSettleRoute } from "./types-YXZL7Wxi.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";
|
package/dist/durable.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { Fn as FileObserverJournal,
|
|
2
|
-
import { c as readRunParking, r as RunParkedError } from "./supervisor-
|
|
1
|
+
import { Fn as FileObserverJournal, In as createFileObserverHooks, Ln as observerRecordDigest, T as supervisorRunDir, X as FileSpawnJournal, Xr as authoredProfileDigest, l as readRootStream, ln as loadSpawnForest, u as readRootStreamReceipt } from "./supervisor-accounting-DlDUl58C.js";
|
|
2
|
+
import { c as readRunParking, r as RunParkedError } from "./supervisor-KcnH2hC4.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-DKxqbnHf.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
|
-
import {
|
|
7
|
+
import { _ as failedItems, t as isNoEntError, v as isFiniteNumber } from "./jsonl-file-B2ESMrTh.js";
|
|
8
8
|
import { c as errorMessage, o as cloneTokenUsage } from "./util-qsH5cC9S.js";
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { i as superviseAgentGraph, s as graphExecutionOptions } from "./graph-icQyDLuE.js";
|
|
9
|
+
import { a as readFailureRecord, c as writeFailureRecord, i as parseSettleRecord, l as writeSettleRecord, n as SETTLE_RECORD_FILE, o as readSettleRecord, r as SettledRunDirectoryError, t as FAILURE_RECORD_FILE } from "./settle-record-BlIw2MU1.js";
|
|
10
|
+
import { c as ASSISTANT_REASONING_SPAN, d as runToolSpans, t as supervise, u as rootStreamToolSpans, y as superviseRootProfile } from "./supervise-Ci8wiyla.js";
|
|
11
|
+
import { R as contentAddress, i as runtimeFailureCause } from "./tool-server-n4XYpCok.js";
|
|
12
|
+
import { a as readRunDirectoryLock, n as RunDirectoryLockedError, r as acquireRunDirectoryLock, s as runDirectoryHolderIsLive, t as RUN_DIRECTORY_LOCK_FILE } from "./run-lock-Dcr79Wql.js";
|
|
13
|
+
import { a as errMessage, f as defaultRedactor, i as causeChain, u as providerTraceId } from "./snapshot-BKLziJ5K.js";
|
|
14
|
+
import { t as FileResultBlobStore } from "./result-blob-store-CJjp44Mz.js";
|
|
15
|
+
import { n as readSpawnJournal, t as readRunState } from "./run-state-AYXAe_lX.js";
|
|
16
|
+
import { s as rootCoordinationOwner, u as FileCoordinationLog } from "./supervise-identity-CtxWEk1I.js";
|
|
17
|
+
import { i as superviseAgentGraph, s as graphExecutionOptions } from "./graph-DHNPE7kw.js";
|
|
19
18
|
import { a as withPursuitContext, t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
20
|
-
import { i as reopenSettledRun, t as assertRunReopen } from "./run-reopen-
|
|
19
|
+
import { i as reopenSettledRun, t as assertRunReopen } from "./run-reopen-Cr2SHmYa.js";
|
|
21
20
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256Bytes } from "@tangle-network/agent-interface";
|
|
22
21
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
23
22
|
import { access, readFile, realpath } from "node:fs/promises";
|
|
@@ -1505,7 +1504,7 @@ async function runDurablePursuit(opts, execute, settled, budget) {
|
|
|
1505
1504
|
}));
|
|
1506
1505
|
pursuit = projectPursuit(await observer.journal.read());
|
|
1507
1506
|
} catch (observerError) {
|
|
1508
|
-
throw new Error(
|
|
1507
|
+
throw new Error(`supervisePursuit: Runtime failed (${errMessage(error)}) and durable observer completeness could not be proven (${errMessage(observerError)})`, { cause: new AggregateError([error, observerError]) });
|
|
1509
1508
|
}
|
|
1510
1509
|
try {
|
|
1511
1510
|
const rootStream = await readRootStreamReceipt(runDir);
|
|
@@ -1522,7 +1521,7 @@ async function runDurablePursuit(opts, execute, settled, budget) {
|
|
|
1522
1521
|
...rootStream === void 0 ? {} : { rootStream }
|
|
1523
1522
|
});
|
|
1524
1523
|
} catch (recordError) {
|
|
1525
|
-
throw new Error(`supervisePursuit: Runtime failed and the failure record ${failurePath} could not be written`, { cause: new AggregateError([error, recordError]) });
|
|
1524
|
+
throw new Error(`supervisePursuit: Runtime failed (${errMessage(error)}) and the failure record ${failurePath} could not be written (${errMessage(recordError)})`, { cause: new AggregateError([error, recordError]) });
|
|
1526
1525
|
}
|
|
1527
1526
|
throw new SupervisePursuitError(error, pursuit, observerPath, failurePath);
|
|
1528
1527
|
}
|
|
@@ -1530,7 +1529,7 @@ async function runDurablePursuit(opts, execute, settled, budget) {
|
|
|
1530
1529
|
try {
|
|
1531
1530
|
await writeSettleRecord(runDir, terminal);
|
|
1532
1531
|
} catch (cause) {
|
|
1533
|
-
throw new Error(`supervisePursuit: Runtime settled but the settle record ${settlePath} could not be written`, { cause });
|
|
1532
|
+
throw new Error(`supervisePursuit: Runtime settled but the settle record ${settlePath} could not be written (${errMessage(cause)})`, { cause });
|
|
1534
1533
|
}
|
|
1535
1534
|
await observer.journal.appendEvent(rootEvent(pursuitId, runId, "after", now(), {
|
|
1536
1535
|
status: "done",
|