@tangle-network/agent-runtime 10.0.17 → 10.0.19
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 +12 -0
- package/dist/{activation-BSyIPZNw.d.ts → activation-BudDVuT6.d.ts} +2 -2
- package/dist/{activation-CxTZHC70.js → activation-DLnZJab0.js} +2 -2
- package/dist/{activation-CxTZHC70.js.map → activation-DLnZJab0.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/{delegate-DGeAiukN.js → delegate-9b8qGlXp.js} +2 -2
- package/dist/{delegate-DGeAiukN.js.map → delegate-9b8qGlXp.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-Q4c0RMoG.js → driver-control-acknowledgers-b5MsXxR5.js} +7 -7
- package/dist/{driver-control-acknowledgers-Q4c0RMoG.js.map → driver-control-acknowledgers-b5MsXxR5.js.map} +1 -1
- package/dist/durable-writer-thread.js +2 -2
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +15 -15
- package/dist/durable.js.map +1 -1
- package/dist/{failure-cause-DeSINrKC.js → failure-cause-C96rzF-d.js} +12 -2
- package/dist/{failure-cause-DeSINrKC.js.map → failure-cause-C96rzF-d.js.map} +1 -1
- package/dist/{graph-qm8N8-Jg.js → graph--n31XKWJ.js} +6 -6
- package/dist/{graph-qm8N8-Jg.js.map → graph--n31XKWJ.js.map} +1 -1
- package/dist/{improve-BIgddUb2.js → improve-sIZhpXqE.js} +5 -5
- package/dist/{improve-BIgddUb2.js.map → improve-sIZhpXqE.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/kernel.d.ts +1 -1
- package/dist/kernel.js +15 -15
- package/dist/{loop-runner-CG8rMjSU.d.ts → loop-runner-Bn7lFuQZ.d.ts} +2 -2
- package/dist/{loop-runner-CARBEmJ-.js → loop-runner-Dt7I2oMa.js} +2 -2
- package/dist/{loop-runner-CARBEmJ-.js.map → loop-runner-Dt7I2oMa.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-bnP_5YKO.js → provision-supervisor-DfDAdtqb.js} +5 -5
- package/dist/{provision-supervisor-bnP_5YKO.js.map → provision-supervisor-DfDAdtqb.js.map} +1 -1
- package/dist/{result-blob-store-hfSuzvWt.js → result-blob-store-Dke805sV.js} +2 -2
- package/dist/{result-blob-store-hfSuzvWt.js.map → result-blob-store-Dke805sV.js.map} +1 -1
- package/dist/{run-cancellation-3JALg48v.js → run-cancellation-B0SgcidY.js} +2 -2
- package/dist/{run-cancellation-3JALg48v.js.map → run-cancellation-B0SgcidY.js.map} +1 -1
- package/dist/{run-reopen-CrlP610D.js → run-reopen-B7TN2aQQ.js} +6 -6
- package/dist/{run-reopen-CrlP610D.js.map → run-reopen-B7TN2aQQ.js.map} +1 -1
- package/dist/{run-state-CdmftIyV.js → run-state-BNBUy2uK.js} +5 -5
- package/dist/{run-state-CdmftIyV.js.map → run-state-BNBUy2uK.js.map} +1 -1
- package/dist/{runtime-BJfxfru1.js → runtime-DXeWY00j.js} +15 -15
- package/dist/{runtime-BJfxfru1.js.map → runtime-DXeWY00j.js.map} +1 -1
- package/dist/{search-executor-B0XqNpI1.js → search-executor-BoQHI2Tz.js} +4 -4
- package/dist/{search-executor-B0XqNpI1.js.map → search-executor-BoQHI2Tz.js.map} +1 -1
- package/dist/{server-BL1KHd0N.js → server-Xkgobp5y.js} +4 -4
- package/dist/{server-BL1KHd0N.js.map → server-Xkgobp5y.js.map} +1 -1
- package/dist/{settle-record-CWixHcZl.js → settle-record-B5OpVDnC.js} +2 -2
- package/dist/{settle-record-CWixHcZl.js.map → settle-record-B5OpVDnC.js.map} +1 -1
- package/dist/{structural-rollout-PkvuJbEk.js → structural-rollout-BSF5tzUm.js} +4 -4
- package/dist/{structural-rollout-PkvuJbEk.js.map → structural-rollout-BSF5tzUm.js.map} +1 -1
- package/dist/{supervise-CPMm88sh.js → supervise-Drc1Pj1d.js} +67 -39
- package/dist/supervise-Drc1Pj1d.js.map +1 -0
- package/dist/{supervise-identity-BAOmWwLn.js → supervise-identity-Cz-Hzg9s.js} +2 -2
- package/dist/{supervise-identity-BAOmWwLn.js.map → supervise-identity-Cz-Hzg9s.js.map} +1 -1
- package/dist/{supervision-discovery-B6fyGpHe.js → supervision-discovery-DdRd1lsz.js} +3 -3
- package/dist/{supervision-discovery-B6fyGpHe.js.map → supervision-discovery-DdRd1lsz.js.map} +1 -1
- package/dist/{supervisor-BOYyb8eL.js → supervisor-CwUD7dsm.js} +6 -6
- package/dist/{supervisor-BOYyb8eL.js.map → supervisor-CwUD7dsm.js.map} +1 -1
- package/dist/{supervisor-accounting-BmY9xWOW.js → supervisor-accounting-CPDPG8mH.js} +1785 -1728
- package/dist/supervisor-accounting-CPDPG8mH.js.map +1 -0
- package/dist/{supervisor-root-contract-DIMbL04L.js → supervisor-root-contract-Uw2q3nvG.js} +3 -3
- package/dist/{supervisor-root-contract-DIMbL04L.js.map → supervisor-root-contract-Uw2q3nvG.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{tool-server--58hhIKE.js → tool-server-BhsyVDj2.js} +2 -2
- package/dist/{tool-server--58hhIKE.js.map → tool-server-BhsyVDj2.js.map} +1 -1
- package/dist/{top-web-CPzT4hJX.js → top-web-5ThvdyD0.js} +7 -7
- package/dist/{top-web-CPzT4hJX.js.map → top-web-5ThvdyD0.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-C477vlPv.d.ts → types-BLhsL4qy.d.ts} +44 -35
- package/package.json +2 -2
- package/dist/supervise-CPMm88sh.js.map +0 -1
- package/dist/supervisor-accounting-BmY9xWOW.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-
|
|
2
|
+
import { a as closeStreamFile, c as openStreamFileFenced, d as syncStreamFileFenced, f as writeStreamLinesFenced } from "./supervisor-accounting-CPDPG8mH.js";
|
|
3
3
|
import { i as prepareJsonlTailFenced, u as appendCommittedLine } from "./jsonl-file-B8xfYz9M.js";
|
|
4
4
|
import { i as acquireRunLockFenced, o as releaseRunLockFenced } from "./run-lock-BOg7BaXF.js";
|
|
5
|
-
import { n as makeRunDirectoryFenced, r as reopenSettleFenced } from "./run-reopen-
|
|
5
|
+
import { n as makeRunDirectoryFenced, r as reopenSettleFenced } from "./run-reopen-B7TN2aQQ.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
|
|
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-BLhsL4qy.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,23 @@
|
|
|
1
|
-
import { Fn as FileObserverJournal, Fr as authoredProfileDigest, In as createFileObserverHooks, Ln as observerRecordDigest, T as supervisorRunDir, X as FileSpawnJournal, l as readRootStream, ln as loadSpawnForest, u as readRootStreamReceipt } from "./supervisor-accounting-
|
|
2
|
-
import { c as readRunParking, r as RunParkedError } from "./supervisor-
|
|
1
|
+
import { Fn as FileObserverJournal, Fr as authoredProfileDigest, In as createFileObserverHooks, Ln as observerRecordDigest, T as supervisorRunDir, X as FileSpawnJournal, l as readRootStream, ln as loadSpawnForest, u as readRootStreamReceipt } from "./supervisor-accounting-CPDPG8mH.js";
|
|
2
|
+
import { c as readRunParking, r as RunParkedError } from "./supervisor-CwUD7dsm.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-DdRd1lsz.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-CDdjAkpk.js";
|
|
8
8
|
import { c as errorMessage, o as cloneTokenUsage } from "./util-qsH5cC9S.js";
|
|
9
9
|
import { t as isNoEntError } from "./jsonl-file-B8xfYz9M.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, t as FAILURE_RECORD_FILE } from "./settle-record-
|
|
11
|
-
import { c as ASSISTANT_REASONING_SPAN, d as runToolSpans, t as supervise, u as rootStreamToolSpans, y as superviseRootProfile } from "./supervise-
|
|
12
|
-
import {
|
|
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, t as FAILURE_RECORD_FILE } from "./settle-record-B5OpVDnC.js";
|
|
11
|
+
import { c as ASSISTANT_REASONING_SPAN, d as runToolSpans, t as supervise, u as rootStreamToolSpans, y as superviseRootProfile } from "./supervise-Drc1Pj1d.js";
|
|
12
|
+
import { F as contentAddress, n as runtimeFailureCause } from "./failure-cause-C96rzF-d.js";
|
|
13
13
|
import { a as readRunDirectoryLock, n as RunDirectoryLockedError, r as acquireRunDirectoryLock, s as runDirectoryHolderIsLive, t as RUN_DIRECTORY_LOCK_FILE } from "./run-lock-BOg7BaXF.js";
|
|
14
|
-
import { f as defaultRedactor, i as causeChain, u as providerTraceId } from "./snapshot-BKLziJ5K.js";
|
|
15
|
-
import { t as FileResultBlobStore } from "./result-blob-store-
|
|
16
|
-
import { n as readSpawnJournal, t as readRunState } from "./run-state-
|
|
17
|
-
import { s as rootCoordinationOwner, u as FileCoordinationLog } from "./supervise-identity-
|
|
18
|
-
import { i as superviseAgentGraph, s as graphExecutionOptions } from "./graph
|
|
14
|
+
import { a as errMessage, f as defaultRedactor, i as causeChain, u as providerTraceId } from "./snapshot-BKLziJ5K.js";
|
|
15
|
+
import { t as FileResultBlobStore } from "./result-blob-store-Dke805sV.js";
|
|
16
|
+
import { n as readSpawnJournal, t as readRunState } from "./run-state-BNBUy2uK.js";
|
|
17
|
+
import { s as rootCoordinationOwner, u as FileCoordinationLog } from "./supervise-identity-Cz-Hzg9s.js";
|
|
18
|
+
import { i as superviseAgentGraph, s as graphExecutionOptions } from "./graph--n31XKWJ.js";
|
|
19
19
|
import { a as withPursuitContext, t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
20
|
-
import { i as reopenSettledRun, t as assertRunReopen } from "./run-reopen-
|
|
20
|
+
import { i as reopenSettledRun, t as assertRunReopen } from "./run-reopen-B7TN2aQQ.js";
|
|
21
21
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256Bytes } from "@tangle-network/agent-interface";
|
|
22
22
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
23
23
|
import { access, readFile, realpath } from "node:fs/promises";
|
|
@@ -1505,7 +1505,7 @@ async function runDurablePursuit(opts, execute, settled, budget) {
|
|
|
1505
1505
|
}));
|
|
1506
1506
|
pursuit = projectPursuit(await observer.journal.read());
|
|
1507
1507
|
} catch (observerError) {
|
|
1508
|
-
throw new Error(
|
|
1508
|
+
throw new Error(`supervisePursuit: Runtime failed (${errMessage(error)}) and durable observer completeness could not be proven (${errMessage(observerError)})`, { cause: new AggregateError([error, observerError]) });
|
|
1509
1509
|
}
|
|
1510
1510
|
try {
|
|
1511
1511
|
const rootStream = await readRootStreamReceipt(runDir);
|
|
@@ -1522,7 +1522,7 @@ async function runDurablePursuit(opts, execute, settled, budget) {
|
|
|
1522
1522
|
...rootStream === void 0 ? {} : { rootStream }
|
|
1523
1523
|
});
|
|
1524
1524
|
} catch (recordError) {
|
|
1525
|
-
throw new Error(`supervisePursuit: Runtime failed and the failure record ${failurePath} could not be written`, { cause: new AggregateError([error, recordError]) });
|
|
1525
|
+
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
1526
|
}
|
|
1527
1527
|
throw new SupervisePursuitError(error, pursuit, observerPath, failurePath);
|
|
1528
1528
|
}
|
|
@@ -1530,7 +1530,7 @@ async function runDurablePursuit(opts, execute, settled, budget) {
|
|
|
1530
1530
|
try {
|
|
1531
1531
|
await writeSettleRecord(runDir, terminal);
|
|
1532
1532
|
} catch (cause) {
|
|
1533
|
-
throw new Error(`supervisePursuit: Runtime settled but the settle record ${settlePath} could not be written`, { cause });
|
|
1533
|
+
throw new Error(`supervisePursuit: Runtime settled but the settle record ${settlePath} could not be written (${errMessage(cause)})`, { cause });
|
|
1534
1534
|
}
|
|
1535
1535
|
await observer.journal.appendEvent(rootEvent(pursuitId, runId, "after", now(), {
|
|
1536
1536
|
status: "done",
|