@tangle-network/agent-runtime 10.0.16 → 10.0.17
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 +6 -0
- package/dist/{activation-BJK66rbO.d.ts → activation-BSyIPZNw.d.ts} +2 -2
- package/dist/{activation-Lp7hDvJr.js → activation-CxTZHC70.js} +2 -2
- package/dist/{activation-Lp7hDvJr.js.map → activation-CxTZHC70.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/{delegate-BGsCSjPF.js → delegate-DGeAiukN.js} +2 -2
- package/dist/{delegate-BGsCSjPF.js.map → delegate-DGeAiukN.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-DOORX1XQ.js → driver-control-acknowledgers-Q4c0RMoG.js} +7 -7
- package/dist/{driver-control-acknowledgers-DOORX1XQ.js.map → driver-control-acknowledgers-Q4c0RMoG.js.map} +1 -1
- package/dist/durable-writer-thread.js +2 -2
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +11 -11
- package/dist/{failure-cause-DTXwfv7t.js → failure-cause-DeSINrKC.js} +9 -7
- package/dist/{failure-cause-DTXwfv7t.js.map → failure-cause-DeSINrKC.js.map} +1 -1
- package/dist/{graph-3l4oJsP4.js → graph-qm8N8-Jg.js} +27 -8
- package/dist/graph-qm8N8-Jg.js.map +1 -0
- package/dist/{improve-BC13IKeQ.js → improve-BIgddUb2.js} +5 -5
- package/dist/{improve-BC13IKeQ.js.map → improve-BIgddUb2.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-CeOM1ppe.js → loop-runner-CARBEmJ-.js} +2 -2
- package/dist/{loop-runner-CeOM1ppe.js.map → loop-runner-CARBEmJ-.js.map} +1 -1
- package/dist/{loop-runner-qtiWaXdo.d.ts → loop-runner-CG8rMjSU.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 +6 -6
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-BbJEoPmX.js → provision-supervisor-bnP_5YKO.js} +5 -5
- package/dist/{provision-supervisor-BbJEoPmX.js.map → provision-supervisor-bnP_5YKO.js.map} +1 -1
- package/dist/{result-blob-store-CyfreDyt.js → result-blob-store-hfSuzvWt.js} +2 -2
- package/dist/{result-blob-store-CyfreDyt.js.map → result-blob-store-hfSuzvWt.js.map} +1 -1
- package/dist/{run-cancellation-CtDpDxro.js → run-cancellation-3JALg48v.js} +2 -2
- package/dist/{run-cancellation-CtDpDxro.js.map → run-cancellation-3JALg48v.js.map} +1 -1
- package/dist/{run-reopen-DUdBD2Pc.js → run-reopen-CrlP610D.js} +6 -6
- package/dist/{run-reopen-DUdBD2Pc.js.map → run-reopen-CrlP610D.js.map} +1 -1
- package/dist/{run-state-CiBZNBWb.js → run-state-CdmftIyV.js} +5 -5
- package/dist/{run-state-CiBZNBWb.js.map → run-state-CdmftIyV.js.map} +1 -1
- package/dist/{runtime-B0TvwqD7.js → runtime-BJfxfru1.js} +15 -15
- package/dist/{runtime-B0TvwqD7.js.map → runtime-BJfxfru1.js.map} +1 -1
- package/dist/{search-executor-Bj6UWrEt.js → search-executor-B0XqNpI1.js} +4 -4
- package/dist/{search-executor-Bj6UWrEt.js.map → search-executor-B0XqNpI1.js.map} +1 -1
- package/dist/{server-N0qXiAuK.js → server-BL1KHd0N.js} +4 -4
- package/dist/{server-N0qXiAuK.js.map → server-BL1KHd0N.js.map} +1 -1
- package/dist/{settle-record-DpNzbua7.js → settle-record-CWixHcZl.js} +2 -2
- package/dist/{settle-record-DpNzbua7.js.map → settle-record-CWixHcZl.js.map} +1 -1
- package/dist/{structural-rollout-QbwCbL0d.js → structural-rollout-PkvuJbEk.js} +4 -4
- package/dist/{structural-rollout-QbwCbL0d.js.map → structural-rollout-PkvuJbEk.js.map} +1 -1
- package/dist/{supervise-CP4Vx2s5.js → supervise-CPMm88sh.js} +8 -8
- package/dist/{supervise-CP4Vx2s5.js.map → supervise-CPMm88sh.js.map} +1 -1
- package/dist/{supervise-identity-Cub-gKEi.js → supervise-identity-BAOmWwLn.js} +2 -2
- package/dist/{supervise-identity-Cub-gKEi.js.map → supervise-identity-BAOmWwLn.js.map} +1 -1
- package/dist/{supervision-discovery-C633ZhS0.js → supervision-discovery-B6fyGpHe.js} +3 -3
- package/dist/{supervision-discovery-C633ZhS0.js.map → supervision-discovery-B6fyGpHe.js.map} +1 -1
- package/dist/{supervisor-CYm4Nj9s.js → supervisor-BOYyb8eL.js} +7 -7
- package/dist/supervisor-BOYyb8eL.js.map +1 -0
- package/dist/{supervisor-accounting-BeQ8kv9H.js → supervisor-accounting-BmY9xWOW.js} +2 -2
- package/dist/{supervisor-accounting-BeQ8kv9H.js.map → supervisor-accounting-BmY9xWOW.js.map} +1 -1
- package/dist/{supervisor-root-contract-DKIxXap1.js → supervisor-root-contract-DIMbL04L.js} +3 -3
- package/dist/{supervisor-root-contract-DKIxXap1.js.map → supervisor-root-contract-DIMbL04L.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{tool-server-B4TikIBL.js → tool-server--58hhIKE.js} +2 -2
- package/dist/{tool-server-B4TikIBL.js.map → tool-server--58hhIKE.js.map} +1 -1
- package/dist/{top-web-D57bqE7a.js → top-web-CPzT4hJX.js} +7 -7
- package/dist/{top-web-D57bqE7a.js.map → top-web-CPzT4hJX.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-CbvBgzJB.d.ts → types-C477vlPv.d.ts} +33 -33
- package/package.json +3 -2
- package/dist/graph-3l4oJsP4.js.map +0 -1
- package/dist/supervisor-CYm4Nj9s.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-BmY9xWOW.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-CrlP610D.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 PursuitNodeProjection, $m as CoordinationRejectReason, Ab as QuestionEscalationOutcome, Bb as AuthorizedDownMessage, Bd as VersionVerdict, Da as SupervisedResult, Db as EscalateQuestion, Ea as RootStreamReceipt, F as NodeId, Fd as PursuitVersionChain, Gd as SupervisedPursuitResult, Gm as CoordinationAuthentication, Gp as ParkedRun, Hb as ContinuityMode, Hd as SuperviseGraphPursuitOptions, Id as PursuitVersionStop, Jd as RunReopen, Jm as CoordinationPublicAddress, Jp as RunParkingRecord, Kd as superviseGraphPursuit, Kp as RunParkedError, Ld as PursuitVersions, Md as JudgedPursuitVersion, Nd as NextPursuitVersion, Pd as NextPursuitVersionInput, Qd as PursuitNodePlatform, Qm as CoordinationHttpAudit, Rd as SettledPursuitVersion, Sf as WorkerSlots, Ub as DownMessageAuthorizationInput, Ud as SupervisePursuitError, Vd as assertPursuitVersions, Wd as SupervisePursuitOptions, Wp as DeadlineCheckIn, Xd as PursuitCostProvenance, Xm as CoordinationTransportOptions, Yb as MapOnSettleRoute, Yd as PursuitObserverDelivery, Ym as CoordinationReadAccess, Yp as readRunParking, Zd as PursuitNodeCost, _S as readRunState, _p as SelectSeat, af as PursuitStatus, cf as ObserverJournal, dS as SpawnJournalReadOptions, df as observerRecordDigest, dr as readRootStream, ef as PursuitNodeTiming, fS as SpawnJournalReadRecord, ff as PursuitFork, fr as readRootStreamReceipt, gS as RunState, gb as WorkerWatchOptions, gm as ResolveDriveHarness, hp as SeatSelectionInput, if as PursuitRunTotals, lf as ObserverRecord, mS as readSpawnJournal, mm as DriveHarnessOwnerContext, mp as SeatSelection, nf as PursuitProjection, o_ as ToolLoopCompactionOptions, of as projectPursuit, ow as LoopTokenUsage, pS as SpawnJournalReadResult, pf as RUN_FORK_CORRELATION_KEYS, q as RetainedPendingCause, qd as supervisePursuit, qp as RunParkingPolicy, rf as PursuitRunProjection, sf as FileObserverJournal, tf as PursuitNodeUsage, uS as SpawnJournalCursor, uf as ObserverRecordKind, ur as RootStreamRecord, vf as AuthorizedSpawn, wm as ManagerWakePolicy, yf as AuthorizedSpawnContext, zd as VersionJudge, zx as AnalyzeOnSettleRoute } from "./types-C477vlPv.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-BmY9xWOW.js";
|
|
2
|
+
import { c as readRunParking, r as RunParkedError } from "./supervisor-BOYyb8eL.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-B6fyGpHe.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 { P as contentAddress, n as runtimeFailureCause } from "./failure-cause-
|
|
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-CWixHcZl.js";
|
|
11
|
+
import { c as ASSISTANT_REASONING_SPAN, d as runToolSpans, t as supervise, u as rootStreamToolSpans, y as superviseRootProfile } from "./supervise-CPMm88sh.js";
|
|
12
|
+
import { P as contentAddress, n as runtimeFailureCause } from "./failure-cause-DeSINrKC.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
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-
|
|
15
|
+
import { t as FileResultBlobStore } from "./result-blob-store-hfSuzvWt.js";
|
|
16
|
+
import { n as readSpawnJournal, t as readRunState } from "./run-state-CdmftIyV.js";
|
|
17
|
+
import { s as rootCoordinationOwner, u as FileCoordinationLog } from "./supervise-identity-BAOmWwLn.js";
|
|
18
|
+
import { i as superviseAgentGraph, s as graphExecutionOptions } from "./graph-qm8N8-Jg.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-CrlP610D.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";
|
|
@@ -2651,11 +2651,12 @@ function storedText(event) {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
// src/runtime/supervise/upstream-unavailable.ts
|
|
2653
2653
|
/** Shared capacity recognition and pause policy for drivers and retained leaves. */
|
|
2654
|
-
/** Sandbox: a create its same key gets placed by later. No host has room now
|
|
2655
|
-
* paced, its existence probe failed or its box is in
|
|
2656
|
-
* for its 150 s deploy window only); or an earlier
|
|
2657
|
-
* which Sandbox answers until its reconciler's grace
|
|
2658
|
-
* and the driver both wait on these under the same
|
|
2654
|
+
/** Sandbox: a create its same key gets placed by later. No host has room now, or a parked box's own
|
|
2655
|
+
* host has none to resume it; or the create is paced, its existence probe failed or its box is in
|
|
2656
|
+
* transfer (the SDK re-POSTs this whole family for its 150 s deploy window only); or an earlier
|
|
2657
|
+
* attempt under the key is still reconciling, which Sandbox answers until its reconciler's grace
|
|
2658
|
+
* ends and the SDK never retries. Acquisition and the driver both wait on these under the same
|
|
2659
|
+
* key, within the run's deadline. */
|
|
2659
2660
|
const PLACEMENT_SIGNALS = /* @__PURE__ */ new Set([
|
|
2660
2661
|
"capacity_exhausted",
|
|
2661
2662
|
"host_pressure",
|
|
@@ -2665,7 +2666,8 @@ const PLACEMENT_SIGNALS = /* @__PURE__ */ new Set([
|
|
|
2665
2666
|
"internal_create_pacing_unavailable",
|
|
2666
2667
|
"idempotent_create_probe_failed",
|
|
2667
2668
|
"sandbox_transfer_pending",
|
|
2668
|
-
"sandbox_create_reconciling"
|
|
2669
|
+
"sandbox_create_reconciling",
|
|
2670
|
+
"host_slot_unavailable"
|
|
2669
2671
|
]);
|
|
2670
2672
|
/** The cause in `error`'s chain whose own code is a placement refusal, if any. */
|
|
2671
2673
|
const placementRefusal = (error) => causeChain(error).find((cause) => PLACEMENT_SIGNALS.has(String(Reflect.get(cause, "code")).toLowerCase()));
|
|
@@ -3263,4 +3265,4 @@ function settlementFailureCause(down) {
|
|
|
3263
3265
|
}
|
|
3264
3266
|
export { refreshBudgetLease as $, unavailableSignalOfFailure as A, recordValue as At, runtimeFailureRemediationSchema as B, cappedDoublingMs as C, sameModelId as Ct, reportedResetAt as D, sumSandboxUsage as Dt, printedStatus as E, sandboxTerminalUsageField as Et, contentRef as F, credentialCommandExit as G, turnFailurePolicy as H, executorFailure as I, budgetLeaseUpdates as J, isCredentialRefusal as K, executorFailureInfra as L, TRACE_SUMMARY_SCHEMA as M, traceRootWriter as N, unavailablePauseMs as O, decodeHarnessUsage as Ot, contentAddress as P, createBudgetPool as Q, executorFailureReason as R, UNAVAILABLE_STATUSES as S, notifySandboxEventObserver as St, placementRefusal as T, sandboxEventServedBackend as Tt, turnRemediationOf as U, turnFailureOf as V, hashJson as W, budgetRecoverySeeds as X, budgetLeases as Y, completedLeafBacking as Z, retainedExecutorContext as _, canonicalSandboxUsageMode as _t, settlementFailureCause as a, assertValidSpend as at, RATE_LIMIT_SIGNALS as b, extractLlmCallEvent as bt, DISPATCH_NOT_ADMITTED_CODE as c, mapSandboxToolEvent as ct, executorEvidenceWriter as d, sandboxProgressEvents as dt, meterUsageEvent as et, isProvisioningRefusal as f, terminalTextFromSandboxEvent as ft, registerRetainedExecutorPreparation as g, assertSandboxServedModel as gt, prepareRetainedExecutor as h, parseCanonicalTransportEvent as ht, runtimeProviderCode as i, assertValidBudget as it, TRACE_ROOT_SCHEMA as j, unavailableResumeAt as k, parseCodexUsageRecord as kt, RetainedExecutionPendingError as l, sandboxLeafOutputFromEvents as lt, leafContinuationExecutionId as m, extractTransportEventIdentity as mt, runtimeFailureCause as n, spendFromUsageEvents as nt, BUDGET_CONTINUATION_TASK as o, createSandboxToolPartState as ot, isSchemaRejection as p, canonicalStreamEventFromSandboxEvent as pt, BudgetReconcileFault as q, runtimeFailureCauseSchema as r, spendFromUsageTotals as rt, DISPATCH_EXECUTION_CHANGED_CODE as s, mapSandboxEvent as st, reportedFailureCause as t, newUsageTotals as tt, TRANSPORT_ERROR_CODES as u, sandboxOutputMarker as ut, retainedExecutorSeamKey as v, createSandboxTurnEventCollector as vt, jitteredMs as w, sandboxEventProviderModels as wt, UNAVAILABLE_CODES as x, isSandboxTerminalEvent as xt, PLACEMENT_SIGNALS as y, createSandboxUsageLedger as yt, harnessProcessDied as z };
|
|
3265
3267
|
|
|
3266
|
-
//# sourceMappingURL=failure-cause-
|
|
3268
|
+
//# sourceMappingURL=failure-cause-DeSINrKC.js.map
|