@tangle-network/agent-runtime 0.161.0 → 0.162.0
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/dist/{activation-DaUNBcZw.js → activation-DxGP0h_p.js} +2 -2
- package/dist/{activation-DaUNBcZw.js.map → activation-DxGP0h_p.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-DDRliHit.js → authoring-kO7vE_c9.js} +2 -2
- package/dist/{authoring-DDRliHit.js.map → authoring-kO7vE_c9.js.map} +1 -1
- package/dist/{conversation-DLYKdh6W.js → conversation-7XGKoDM6.js} +3 -3
- package/dist/{conversation-DLYKdh6W.js.map → conversation-7XGKoDM6.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.js +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +1 -1
- package/dist/{environment-provider-BobKk46F.d.ts → environment-provider-Bk8rg4gs.d.ts} +2 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{executable-spec-7ovS7PBo.js → executable-spec-CkGvdPds.js} +17 -5
- package/dist/executable-spec-CkGvdPds.js.map +1 -0
- package/dist/{graph-DWUz1caU.js → graph-COikUkrj.js} +2 -2
- package/dist/{graph-DWUz1caU.js.map → graph-COikUkrj.js.map} +1 -1
- package/dist/graph.d.ts +241 -0
- package/dist/graph.js +380 -0
- package/dist/graph.js.map +1 -0
- package/dist/{improvement-cycle-oUBE1Pzg.js → improvement-cycle-dGtgX1vr.js} +4 -4
- package/dist/{improvement-cycle-oUBE1Pzg.js.map → improvement-cycle-dGtgX1vr.js.map} +1 -1
- package/dist/{index-CT7Cmz66.d.ts → index-4mRXbu_V.d.ts} +4 -4
- package/dist/{index-5B7TlTSi.d.ts → index-8b0o4dMF.d.ts} +5 -5
- package/dist/{index-CLt9zpuD.d.ts → index-CTQ97IMO.d.ts} +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +5 -5
- package/dist/kernel.js +7 -7
- package/dist/{knowledge-BBfx7pSo.js → knowledge-CZT8ahp6.js} +3 -3
- package/dist/{knowledge-BBfx7pSo.js.map → knowledge-CZT8ahp6.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-CjRjwtal.js → loop-runner-bin-CIjmKf7v.js} +3 -3
- package/dist/{loop-runner-bin-CjRjwtal.js.map → loop-runner-bin-CIjmKf7v.js.map} +1 -1
- package/dist/{loop-runner-bin-DRX6EDIy.d.ts → loop-runner-bin-DHU5kmJW.d.ts} +3 -3
- 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 +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-CLb9RqXL.js → openai-tools-DG779Z6S.js} +2 -2
- package/dist/{openai-tools-CLb9RqXL.js.map → openai-tools-DG779Z6S.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{redact-0AK8JmHW.d.ts → redact-BUIB5IWj.d.ts} +3 -3
- package/dist/{runtime-BzY66cd6.d.ts → runtime-B0FIFwpH.d.ts} +3 -3
- package/dist/{runtime-CyVJSWzN.js → runtime-BT00zfIS.js} +8 -8
- package/dist/{runtime-CyVJSWzN.js.map → runtime-BT00zfIS.js.map} +1 -1
- package/dist/{stream-agent-turn-jaaFaSXM.d.ts → stream-agent-turn-BEhmmYmL.d.ts} +2 -2
- package/dist/{stream-agent-turn-FRZAuXAL.js → stream-agent-turn-CKIpCbSq.js} +2 -2
- package/dist/{stream-agent-turn-FRZAuXAL.js.map → stream-agent-turn-CKIpCbSq.js.map} +1 -1
- package/dist/{structural-rollout-JEhoJUjC.js → structural-rollout-DAenyNls.js} +4 -4
- package/dist/{structural-rollout-JEhoJUjC.js.map → structural-rollout-DAenyNls.js.map} +1 -1
- package/dist/{supervise-DE-GFNKg.js → supervise-Di6xvnOL.js} +2 -2
- package/dist/{supervise-DE-GFNKg.js.map → supervise-Di6xvnOL.js.map} +1 -1
- package/dist/{supervisor-ZlQy5Fwl.js → supervisor-DmWq4vkU.js} +15 -2
- package/dist/{supervisor-ZlQy5Fwl.js.map → supervisor-DmWq4vkU.js.map} +1 -1
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +11 -11
- package/dist/{types-BBXdSns1.d.ts → types-DXKDG6DQ.d.ts} +8 -5
- package/package.json +6 -1
- package/dist/executable-spec-7ovS7PBo.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { n as detachedSnapshot } from "./snapshot-CTAf4uuA.js";
|
|
|
4
4
|
import { _ as captureWorkerTraceEvidence, a as aggregateProviderModelEvidence, c as loadSpawnForest, d as replaySpawnTree, f as attestNestedDriverTreeOwner, h as runtimeOwnedNestedDriverTreeRoot, l as materializeTreeView, m as nestedDriverTreeRoot, o as closesCursorSlot, p as driverRuntime, u as pendingWaits, x as contentAddress } from "./spawn-journal-oewq1g2h.js";
|
|
5
5
|
import { _ as unmeteredSpend, a as cloneTokenUsage, b as zeroTokenUsage, d as randomSuffix, f as randomUuid, g as throwIfAborted, h as throwAbort, l as mapWithConcurrency, m as stringifySafe, n as addTokenUsage, o as deleteBoxSafe, p as sleep, r as chargedTokens, s as hasCompleteCacheBreakdown, t as addSpend, u as promptCacheTokenClasses, v as withTimeout, y as zeroSpend } from "./util-D6ZEuBMi.js";
|
|
6
6
|
import { c as notifySandboxEventObserver, i as extractLlmCallEvent, l as sandboxEventServedBackend, r as createSandboxToolPartState, s as mapSandboxToolEvent, t as assertSandboxServedModel, u as sandboxProgressEvents } from "./sandbox-events-BVjstFgb.js";
|
|
7
|
-
import { n as executableAgentSpecSnapshot, r as projectSandboxOutcome, t as executableAgentProfileSnapshot } from "./executable-spec-
|
|
7
|
+
import { n as executableAgentSpecSnapshot, r as projectSandboxOutcome, t as executableAgentProfileSnapshot } from "./executable-spec-CkGvdPds.js";
|
|
8
8
|
import { a as concreteProfileModel, c as profileModelExecutionSettings, d as agentHarness, o as enforceTokenLimits, s as profileBridgeWireModel, t as assertExecutableAgentProfile, u as resolveRouterRetryPolicy } from "./model-policy-Sw4ywhtL.js";
|
|
9
9
|
import { c as linkAbort, i as resolveAgentEnvironmentProvider, l as runAbortable, n as providerAsExecutor, r as providerAsSandboxClient, s as abortError } from "./environment-provider-Bn3652YU.js";
|
|
10
10
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-tXpAarhW.js";
|
|
@@ -11863,6 +11863,7 @@ async function runChild(live, executor, childAbort, task, opts, pool, ticket, bl
|
|
|
11863
11863
|
live.spent = spend;
|
|
11864
11864
|
await executionEvidence.complete();
|
|
11865
11865
|
artifact = executor.resultArtifact();
|
|
11866
|
+
assertReportedSpend(artifact.spent, `scope.spawn ${live.id}`);
|
|
11866
11867
|
const accounting = executor.accounting?.();
|
|
11867
11868
|
const terminalSpend = preserveUnknownTelemetry(spend, artifact.spent);
|
|
11868
11869
|
live.spent = accounting?.reported ?? terminalSpend;
|
|
@@ -11872,6 +11873,7 @@ async function runChild(live, executor, childAbort, task, opts, pool, ticket, bl
|
|
|
11872
11873
|
if (reconcileError !== void 0) throw reconcileError;
|
|
11873
11874
|
} else {
|
|
11874
11875
|
const terminal = await awaitAbortable(Promise.resolve(ran), childAbort.signal);
|
|
11876
|
+
assertReportedSpend(terminal.spent, `scope.spawn ${live.id}`);
|
|
11875
11877
|
await executionEvidence.complete();
|
|
11876
11878
|
const accounting = executor.accounting?.();
|
|
11877
11879
|
live.spent = accounting?.reported ?? terminal.spent;
|
|
@@ -12014,6 +12016,17 @@ function frozenHandle(child) {
|
|
|
12014
12016
|
}
|
|
12015
12017
|
/** Derive the portable identity of the exact profile and task a node will execute. Caller-owned
|
|
12016
12018
|
* candidate/correlation fields are checked at this boundary before they enter the durable log. */
|
|
12019
|
+
/**
|
|
12020
|
+
* An executor's terminal artifact must carry a `Spend`: the pool reconciles on it, so a missing one
|
|
12021
|
+
* is a contract breach, refused by name BEFORE it can replace the live spend. The child then goes
|
|
12022
|
+
* down and its reservation reconciles on what was proven so far (the stream total, else zero),
|
|
12023
|
+
* exactly like a crash. A budget-exempt executor reports zero; a metered one reports what it spent
|
|
12024
|
+
* or marks it unknown — it never omits it.
|
|
12025
|
+
*/
|
|
12026
|
+
function assertReportedSpend(spent, context) {
|
|
12027
|
+
const candidate = spent;
|
|
12028
|
+
if (typeof candidate !== "object" || candidate === null || typeof candidate.iterations !== "number" || typeof candidate.tokens !== "object" || candidate.tokens === null) throw new ValidationError(`${context}: executor settled without a Spend — report what was spent or mark it unknown; a budget-exempt executor reports zero`);
|
|
12029
|
+
}
|
|
12017
12030
|
function deriveNodeExecutionIdentity(spec, task) {
|
|
12018
12031
|
const digest = (value) => {
|
|
12019
12032
|
try {
|
|
@@ -13306,4 +13319,4 @@ function isNonEmptySpend(s) {
|
|
|
13306
13319
|
//#endregion
|
|
13307
13320
|
export { DEFAULT_STALL_AFTER_MS as $, LOCAL_HARNESSES as $t, createBudgetPool as A, buildLoopOtelSpans as At, createExecutorRegistry as B, padTraceId as Bt, effectiveConcurrency as C, canonicalObservedModel as Ct, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as D, readTraceContextFromEnv as Dt, rollingDispatch as E, mergeTraceEnv as Et, bridgeRuntimeAttachmentsKey as F, exportEvalRuns as Ft, workerTraceEnv as G, sanitizeKnowledgeReadinessReport as Gt, createWorktreeCliExecutor as H, createRuntimeEventCollector as Ht, bridgeStopSignalKey as I, flatOtelSpan as It, DEFAULT_SANDBOX_STEERING_MAX_TURNS as J, runWorktreeHarness as Jt, workerTraceHeaders as K, sanitizeRuntimeStreamEvent as Kt, captureReusableExecutorConfig as L, generateSpanId as Lt, bindReusableExecutorExecutionId as M, buildRuntimeEventOtelSpans as Mt, bridgeAdmissionRead as N, createOpenInferenceFileExporter as Nt, teardownExecutor as O, traceContextToEnv as Ot, bridgeModelRouteRefusal as P, createOtelExporter as Pt, sandboxSessionTraceSource as Q, DEFAULT_LOCAL_HARNESS as Qt, cliWorktreeExecutor as R, loopEventToOtelSpan as Rt, waitUntil as S, runBrainLoop as St, queueOf as T, createPropagatingTraceEmitter as Tt, WORKER_TRACE_PROPAGATION as U, createRuntimeStreamEventCollector as Ut, snapshotExecutorConfig as V, toOtelAttributes as Vt, readWorkerTraceContext as W, sanitizeAgentRuntimeEvent as Wt, createPushTraceSource as X, createWorktree as Xt, createSteerableSandboxSession as Y, captureWorktreeDiff as Yt, decodeToolPart as Z, removeWorktree as Zt, createWaitProbes as _, unsupportedProfileDimensions as _n, runAgentRounds as _t, pickBestDelivered as a, assertProfileMaterialization as an, PEER_MAIL_WIRE_KEY as at, timerAt as b, acquireSandbox as bt, driverChild as c, fullProfileMaterialization as cn, isPeerMailEnvelope as ct, deriveNodeExecutionIdentity as d, promptModelProfileMaterialization as dn, isLiveNodeStatus as dt, harnessSupportsReasoningEffort as en, createActivityLog as et, meterRuntimeOwnedAccounting as f, promptOnlyProfileMaterialization as fn, isTerminalNodeStatus as ft, settledToIteration as g, sandboxActProfileMaterialization as gn, isTerminalDecision as gt, scopeOwnerExecutorNodeContext as h, renderUnsupported as hn, defaultSelectWinner as ht, collectDelivered as i, AGENT_PROFILE_MATERIALIZATION_AXES as in, DEFAULT_PEER_MAIL_LIMITS as it, spendFromUsageEvents as j, buildLoopSpanNodes as jt, assertValidBudget as k, INTELLIGENCE_WIRE_VERSION as kt, withDriverExecutor as l, profileMaterializationAxes$1 as ln, peerMailTools as lt, recordScopeOwnerMaterialization as m, renderProfileMaterializationIssues as mn, createSandboxForSpec as mt, createSupervisor as n, parseCodexTokenUsage as nn, createInbox as nt, runFinalizer as o, controlProfileMaterialization as on, claimsAuthority as ot, meterRuntimeOwnedProviderAttempt as p, promptResourceProfileMaterialization as pn, TERMINAL_DECISIONS as pt, workerTraceSeamKey as q, runSettledCommand as qt, bestDelivered as r, CodexExecutionDiagnosticError as rn, AUTHORITY_MARKERS as rt, runTree as s, defineProfileMaterializationContract as sn, createPeerMailbox as st, createRootHandle as t, localHarnessExecutable as tn, readWorkerProgress as tt, createScope as u, promptControlProfileMaterialization as un, peerMailVerbNames as ut, isWaitOutcome as v, validateProfileMaterialization as vn, createSandboxLineage as vt, freeSlots as w, observedModelMatchesDeclared as wt, validateWaitSpec as x, routerBrain as xt, pollFor as y, worktreeCliProfileMaterialization as yn, probeSandboxCapabilities as yt, createExecutor as z, padSpanId as zt };
|
|
13308
13321
|
|
|
13309
|
-
//# sourceMappingURL=supervisor-
|
|
13322
|
+
//# sourceMappingURL=supervisor-DmWq4vkU.js.map
|