@tangle-network/agent-runtime 9.0.11 → 9.0.13
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-B_10QJ3D.js → activation-CB3FgbhP.js} +2 -2
- package/dist/{activation-B_10QJ3D.js.map → activation-CB3FgbhP.js.map} +1 -1
- package/dist/{activation-emYXDX7T.d.ts → activation-druKjqeg.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-manager-BUct8qFe.js → coordination-manager-DGLireA0.js} +4 -4
- package/dist/{coordination-manager-BUct8qFe.js.map → coordination-manager-DGLireA0.js.map} +1 -1
- package/dist/{delegate-DHtsLCyr.js → delegate-DkmUWRTv.js} +2 -2
- package/dist/{delegate-DHtsLCyr.js.map → delegate-DkmUWRTv.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +8 -8
- package/dist/{graph-D6KJ6wxN.js → graph-RSKyd-_g.js} +423 -126
- package/dist/graph-RSKyd-_g.js.map +1 -0
- package/dist/{improve-CUqmH45C.js → improve-D77Hq7bo.js} +5 -5
- package/dist/{improve-CUqmH45C.js.map → improve-D77Hq7bo.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +13 -13
- package/dist/{loop-runner-CCeBurqG.js → loop-runner-B-k9u4Vs.js} +2 -2
- package/dist/{loop-runner-CCeBurqG.js.map → loop-runner-B-k9u4Vs.js.map} +1 -1
- package/dist/{loop-runner-Q9nlHcEH.d.ts → loop-runner-DN8kPiwC.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 +5 -5
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-CNTBbuDV.js → provision-supervisor-h3xHBR4a.js} +4 -4
- package/dist/{provision-supervisor-CNTBbuDV.js.map → provision-supervisor-h3xHBR4a.js.map} +1 -1
- package/dist/{run-cancellation-Cy9ie5cQ.js → run-cancellation-BbM8qZQS.js} +2 -2
- package/dist/{run-cancellation-Cy9ie5cQ.js.map → run-cancellation-BbM8qZQS.js.map} +1 -1
- package/dist/{run-state-C0nr4O7P.js → run-state-eDCDYXXQ.js} +5 -5
- package/dist/{run-state-C0nr4O7P.js.map → run-state-eDCDYXXQ.js.map} +1 -1
- package/dist/{runtime-C5yB7Vkk.js → runtime-lQ7NmAaw.js} +184 -15
- package/dist/runtime-lQ7NmAaw.js.map +1 -0
- package/dist/{search-executor-BgEY5MKQ.js → search-executor-CIRcqZor.js} +3 -3
- package/dist/{search-executor-BgEY5MKQ.js.map → search-executor-CIRcqZor.js.map} +1 -1
- package/dist/{server-X67SS4r8.js → server-CCqBzpYt.js} +3 -3
- package/dist/{server-X67SS4r8.js.map → server-CCqBzpYt.js.map} +1 -1
- package/dist/{settle-record-tgpwk6QF.js → settle-record-BtI6hieb.js} +2 -2
- package/dist/{settle-record-tgpwk6QF.js.map → settle-record-BtI6hieb.js.map} +1 -1
- package/dist/{structural-rollout-BSzN8a0T.js → structural-rollout-BpuG0cEv.js} +3 -3
- package/dist/{structural-rollout-BSzN8a0T.js.map → structural-rollout-BpuG0cEv.js.map} +1 -1
- package/dist/{supervise-RJG2ruTF.js → supervise-CPm-6Kqg.js} +5 -5
- package/dist/{supervise-RJG2ruTF.js.map → supervise-CPm-6Kqg.js.map} +1 -1
- package/dist/{supervision-discovery-Hekh50FG.js → supervision-discovery-DqT5WUUN.js} +2 -2
- package/dist/{supervision-discovery-Hekh50FG.js.map → supervision-discovery-DqT5WUUN.js.map} +1 -1
- package/dist/{supervisor-DbtgkJyr.js → supervisor-CtS12u8Y.js} +2 -2
- package/dist/{supervisor-DbtgkJyr.js.map → supervisor-CtS12u8Y.js.map} +1 -1
- package/dist/{supervisor-accounting-us4w7tG6.js → supervisor-accounting-CMdpc2LW.js} +4 -16
- package/dist/supervisor-accounting-CMdpc2LW.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{top-web-xSGEh02D.js → top-web-JnHgbTEg.js} +5 -5
- package/dist/{top-web-xSGEh02D.js.map → top-web-JnHgbTEg.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-DMqr8Tmx.d.ts → types-DQkRr7Iy.d.ts} +145 -3
- package/package.json +2 -2
- package/dist/graph-D6KJ6wxN.js.map +0 -1
- package/dist/runtime-C5yB7Vkk.js.map +0 -1
- package/dist/supervisor-accounting-us4w7tG6.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { c as checkInIdleMs, d as teardownExecutor, n as CHILD_DEADLINE_REASON,
|
|
|
4
4
|
import { A as withBudgetResources, C as unreportedSpend, D as addResourceSpend, T as zeroSpend, a as cloneSpend, c as errorMessage, f as isAsyncIterable, i as chargedTokens, k as resourceTelemetry, n as addSpend, o as cloneTokenUsage, t as abortError, v as sleep } from "./util-qsH5cC9S.js";
|
|
5
5
|
import { Et as recordValue, F as executorFailure, G as budgetLeaseUpdates, I as executorFailureInfra, J as completedLeafBacking, K as budgetLeases, L as executorFailureReason, M as traceRootWriter, N as contentAddress, Q as newUsageTotals, W as BudgetReconcileFault, X as refreshBudgetLease, Y as createBudgetPool, Z as meterUsageEvent, dt as extractTransportEventIdentity, et as spendFromUsageTotals, f as executorEvidenceWriter, ft as parseCanonicalTransportEvent, g as prepareRetainedExecutor, h as leafContinuationExecutionId, n as runtimeFailureCause, nt as assertValidSpend, o as settlementFailureCause, q as budgetRecoverySeeds, s as BUDGET_CONTINUATION_TASK, t as reportedFailureCause, tt as assertValidBudget, u as RetainedExecutionPendingError, y as retainedExecutorSeamKey } from "./failure-cause-WifbY42M.js";
|
|
6
6
|
import { a as errMessage, f as resolveRedactor, l as errorText, n as detachedSnapshot, r as shareParsedStrings, u as defaultRedactor } from "./snapshot-BKI_w3JD.js";
|
|
7
|
-
import { t as assertExecutableAgentProfile } from "./model-policy-CZwhXp8O.js";
|
|
7
|
+
import { p as canonicalObservedModelParts, t as assertExecutableAgentProfile } from "./model-policy-CZwhXp8O.js";
|
|
8
8
|
import { h as workspaceLimits, i as readAgentCandidateWorkspaceArtifactFiles, m as safeArchivePath, y as verifiedArtifactChunks } from "./workspace-streams-BakRr-Pl.js";
|
|
9
9
|
import { a as writeAtomicDurableFile, n as assertNoSymlinkDescendant, o as captureRunWriteContext, r as publishExclusiveDurableFile, s as fenceRunWrite, t as appendDurableFile } from "./durable-file-DstVeHcj.js";
|
|
10
10
|
import { b as sha256Bytes$1, g as deepFreezeCandidate } from "./output-artifacts-AqkZ8lO2.js";
|
|
@@ -1025,7 +1025,7 @@ const USAGE_LIMIT_CODES = /* @__PURE__ */ new Set([
|
|
|
1025
1025
|
function subscriptionUsageLimitSignal(failure) {
|
|
1026
1026
|
if (failure.errorCode && USAGE_LIMIT_CODES.has(failure.errorCode.toLowerCase())) return "subscription-usage-limit";
|
|
1027
1027
|
if (/\bYou've hit your (?:usage|weekly|session|monthly spend) limit\b/iu.test(failure.error)) return "subscription-usage-limit";
|
|
1028
|
-
if (/\bUsage limit reached for \d+ hours?\b
|
|
1028
|
+
if (/\bUsage limit reached for \d+ hours?\b|已达到\s*\d+\s*小时的使用上限/iu.test(failure.error)) return "subscription-usage-limit";
|
|
1029
1029
|
}
|
|
1030
1030
|
/** An ineligible or misconfigured account must never turn an authored stage into another model. */
|
|
1031
1031
|
function checkedSeatSelection(stage, selected) {
|
|
@@ -13696,7 +13696,7 @@ function aggregateProviderModelEvidence(forest) {
|
|
|
13696
13696
|
}
|
|
13697
13697
|
observedInRecord.add(model);
|
|
13698
13698
|
observedModels.add(model);
|
|
13699
|
-
const identity =
|
|
13699
|
+
const identity = canonicalObservedModelParts(model);
|
|
13700
13700
|
if (identity === void 0) {
|
|
13701
13701
|
markMissing();
|
|
13702
13702
|
continue;
|
|
@@ -13767,18 +13767,6 @@ function hasOnlyNotStartedAttempts(evidence) {
|
|
|
13767
13767
|
function isProviderAttemptEvidence(value) {
|
|
13768
13768
|
return typeof value === "object" && value !== null && !Array.isArray(value) && Array.isArray(value.observations) && (value.providerDispatch === void 0 || value.providerDispatch === "not_started");
|
|
13769
13769
|
}
|
|
13770
|
-
function servedIdentityParts(model) {
|
|
13771
|
-
const at = model.lastIndexOf("@");
|
|
13772
|
-
const rawBase = at < 0 ? model : model.slice(0, at);
|
|
13773
|
-
const base = rawBase.slice(rawBase.lastIndexOf("/") + 1);
|
|
13774
|
-
if (base.length === 0) return void 0;
|
|
13775
|
-
const snapshot = at < 0 ? void 0 : model.slice(at + 1);
|
|
13776
|
-
if (snapshot !== void 0 && snapshot.length === 0) return void 0;
|
|
13777
|
-
return snapshot === void 0 ? { base } : {
|
|
13778
|
-
base,
|
|
13779
|
-
snapshot
|
|
13780
|
-
};
|
|
13781
|
-
}
|
|
13782
13770
|
// src/runtime/supervise/settled-usage.ts
|
|
13783
13771
|
/** Use ownership edges to avoid counting parent summaries as additional inference attempts. */
|
|
13784
13772
|
function settledUsage(forest, spent, providerModel, profile) {
|
|
@@ -13977,4 +13965,4 @@ function isNonEmptySpend(s) {
|
|
|
13977
13965
|
}
|
|
13978
13966
|
export { queueOf as $, captureHarnessTranscript as $n, RetainedRunProviderContractError as $r, loadSpawnForest as $t, openSlotGroup as A, verifyObserverRecords as An, knownMaterializationReceipt as Ar, noteScopeOwnerPlannedExecution as At, readWorkerInteractiveBinding as B, buildLoopSpanNodes as Bn, runtimeOwnedExecutorMaterialization as Br, scopeRetainedOwnerSettled as Bt, workerCancellationsDir as C, retainedCreateMaterial as Cn, attestRuntimeOwnedPendingExecutor as Cr, abandonScopeRetainedOwnerInvocation as Ct, writeWorkerSteer as D, FileObserverJournal as Dn, finalizeRuntimeOwnedPendingExecutor as Dr, scopeRetainedOwnerResult as Dt, writeWorkerCancellation as E, prepareInteractiveDelegation as En, authoredProfileDigest as Er, scopeRetainedOwnerPriorSpend as Et, parseWorkerToolTraceArtifact as F, workerTraceHeaders as Fn, recordRuntimeOwnedProviderDispatchNotStarted as Fr, coordinationMcpAlias as Ft, appendSpawnEvents as G, generateSpanId as Gn, unknownExecutionBindingReceipt as Gr, noteScopeRetainedOwnerCoordination as Gt, recoverRetainedInteractiveRun as H, createOpenInferenceFileExporter as Hn, runtimeOwnedPendingExecutorMaterialization as Hr, assertRetainedOwnerCoordinationRekey as Ht, workerTraceAnalysisStore as I, createPropagatingTraceEmitter as In, recordRuntimeOwnedProviderIdentityConflict as Ir, coordinationProfileToolPrefix as It, reenteredWorkers as J, createRuntimeStreamEventCollector as Jn, executableAgentSpecSnapshot as Jr, bindScopeRetainedOwnerProvider as Jt, spawnJournalRecordEvents as K, loopEventToOtelSpan as Kn, unknownMaterializationReceipt as Kr, scopeRetainedOwnerCheckpointing as Kt, nestedScopeSeamKey as L, mergeTraceEnv as Ln, recordRuntimeOwnedProviderModel as Lr, providerVisibleProfile as Lt, prepareScopeResume as M, environmentGone as Mn, providerAttemptEvidence as Mr, restoreScopeOwnerAcceptedExecution as Mt, replaySpawnTree as N, WORKER_TRACE_PROPAGATION as Nn, recordRuntimeOwnedDriveHarnessProviderEvidence as Nr, scopeOwnerExecutionObservation as Nt, writeWorkerSteerAcknowledgement as O, createFileObserverHooks as On, inheritRuntimeOwnedExecutorAttestation as Or, beginScopeOwnerAttempt as Ot, isTraceAnalysisStore as P, workerTraceEnv as Pn, recordRuntimeOwnedProviderAttemptStart as Pr, scopeOwnerExecutorNodeContext as Pt, freeSlots as Q, captureBoundHarnessTranscript as Qn, runtimeFlowBrain as Qr, scopeRetainedOwnerJournalRoot as Qt, interactiveAdmissionSeamKey as R, readTraceContextFromEnv as Rn, runtimeOwnedDriveHarnessProviderEvidence as Rr, runtimeGraphMetadataKey as Rt, workerCancelRequestsFile as S, startRetainedRunInEnvironment as Sn, attestRuntimeOwnedExecutor as Sr, resolveSpawnResourcePaths as St, workerSteerRequestsDir as T, offerInteractiveControl as Tn, authoredAgentIdentity as Tr, prepareScopeRetainedOwnerTask as Tt, startRetainedInteractiveRun as U, createOtelExporter as Un, runtimeOwnedScopeOwnerControl as Ur, reconcileScopeRetainedOwnerEnvironment as Ut, reconnectRetainedInteractiveRun as V, buildRuntimeEventOtelSpans as Vn, runtimeOwnedExecutorProviderEvidence as Vr, scopeRetainedOwnerTurnEnded as Vt, FileSpawnJournal as W, flatOtelSpan as Wn, runtimeOwnedScopeOwnerRuntime as Wr, scopeRetainedOwnerRestorePoint as Wt, assertRecursiveReservationPolicy as X, sanitizeRuntimeStreamEvent as Xn, runtimeCheckFactory as Xr, scopeOwnerLiabilities as Xt, settledToIteration as Y, sanitizeKnowledgeReadinessReport as Yn, isRuntimeFlowBrain as Yr, owners as Yt, deriveNodeExecutionIdentity as Z, HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS as Zn, runtimeFlowAgent as Zr, scopeRetainedOwnerContext as Zt, readWorkerSteerAcknowledgement as _, assertRetainedRunReplayMaterial as _n, SeatPauseError as _r, waitForScopeChildren as _t, createRootStreamSink as a, sameControlCoordinates as ai, FileResultBlobStore as an, HARNESS_TRANSCRIPT_READ_LIMITS as ar, meterRuntimeOwnedProviderAttempt as at, supervisorRunDir as b, recoverRetainedRun as bn, subscriptionUsageLimitSignal as br, scopeRetainedOwnerResourceReader as bt, readRootStreamReceipt as c, providerMessageText as ci, insideCursorNamespace as cn, retainHarnessTranscript as cr, recordScopeOwnerDriverAttempt as ct, claimWorkerSteerDelivery as d, observeModelRequest as dn, describeToolArgs as dr, releaseHeldEnvironments as dt, assertEventBinding as ei, ownedTreeRootSpawn as en, harnessTranscriptArtifact as er, rollingDispatch as et, fileEscalateQuestion as f, NATIVE_STOP_UNCONFIRMED as fn, readWorkerProgress as fr, releaseRetainedEnvironments as ft, readWorkerCancellation as g, RetainedMaterializationTimeoutError as gn, SeatChain as gr, unconfirmedTeardowns as gt, readWorkerCancelRequests as h, verifyWorkspaceMarker as hn, SEAT_RECHECK_MS as hr, startScopeRecoveries as ht, ROOT_STREAM_FILE as i, retainedSessionReplaced as ii, nestedDriverTreeRoot as in, readHarnessTranscript as ir, meterRuntimeOwnedAccounting as it, resolveWorkerSlots as j, destroyInteractiveEnvironment as jn, newExecutionAttemptId as jr, recordScopeOwnerMaterialization as jt, createWorkerSlots as k, observerRecordDigest as kn, knownExecutionBindingReceipt as kr, finalizeScopeOwnerMaterialization as kt, appendWorkerControlEvent as l, executorObservation as ln, DEFAULT_STALL_AFTER_MS as lr, recordScopeOwnerPause as lt, legacySupervisorRunsRoot as m, stopRetainedNativeExecution as mn, isTerminalNodeStatus as mr, settleManagerWork as mt, terminalAccounting as n, exactSession as ni, attestNestedDriverTreeOwner as nn, harnessTranscriptUnavailable as nr, closeScopeAdmission as nt, nodeStreamFile as o, promptFromAgentTurnInput as oi, encodeResultBlob as on, readBoundHarnessSessions as or, pauseScopeSeatAdmission as ot, legacySupervisorRunDir as p, describeRetainedNativeStops as pn, isLiveNodeStatus as pr, retryUnconfirmedTeardowns as pt, appendTeardownConfirmation as q, createRuntimeEventCollector as qn, executableAgentProfileSnapshot as qr, bindScopeRetainedOwnerEnvironmentId as qt, createScope as r, freezeControlRef as ri, driverRuntime as rn, persistHarnessTranscript as rr, hasRetriableTeardowns as rt, readRootStream as s, promptOptionsFromAgentTurnInput as si, SpawnEventIndex as sn, resolveHarnessTranscriptCapture as sr, recordScopeOwnerBarrenPause as st, isNonEmptySpend as t, awaitAbortable$1 as ti, materializeTreeView as tn, harnessTranscriptFromLines as tr, closeRetainedSlots as tt, cancelWorker as u, executorObservationSeamKey as un, createActivityLog as ur, registerNestedTeardownScope as ut, readWorkerSteerRequests as v, mintRetainedIdentity as vn, authoredSeatStages as vr, prepareScopeRetainedOwnerSeatSwitch as vt, workerInboxFileFromEventDir as w, acceptedInteractiveControl as wn, attestRuntimeOwnedScopeOwner as wr, consumeScopeRetainedOwnerResult as wt, supervisorRunsRoot as x, startRetainedRun as xn, attestRuntimeOwnedDeferredExecutor as xr, environmentReader as xt, safeWorkerFile as y, reconnectRetainedRun as yn, seatExecutionProfile as yr, releaseScopeRetainedOwnerForSeatPause as yt, attachWorker as z, buildLoopOtelSpans as zn, runtimeOwnedExecutorExecutionBinding as zr, beginScopeRetainedOwnerDrive as zt };
|
|
13979
13967
|
|
|
13980
|
-
//# sourceMappingURL=supervisor-accounting-
|
|
13968
|
+
//# sourceMappingURL=supervisor-accounting-CMdpc2LW.js.map
|