@tangle-network/agent-runtime 0.134.1 → 0.134.2
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-BaxUkhEf.js → activation-CY_v6Ia7.js} +3 -3
- package/dist/{activation-BaxUkhEf.js.map → activation-CY_v6Ia7.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-BlbRLEOS.js → authoring-BDICoQby.js} +2 -2
- package/dist/{authoring-BlbRLEOS.js.map → authoring-BDICoQby.js.map} +1 -1
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{candidate-execution-CJRP9CcZ.js → candidate-execution-CWMkOz7g.js} +4 -4
- package/dist/{candidate-execution-CJRP9CcZ.js.map → candidate-execution-CWMkOz7g.js.map} +1 -1
- package/dist/{environment-provider-CwvY-Zeq.js → environment-provider-CPHwqLLm.js} +2 -2
- package/dist/{environment-provider-CwvY-Zeq.js.map → environment-provider-CPHwqLLm.js.map} +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{graph-CKNenH2a.js → graph-D5TKFG8R.js} +3 -3
- package/dist/{graph-CKNenH2a.js.map → graph-D5TKFG8R.js.map} +1 -1
- package/dist/{improvement-cycle-CSBantKB.js → improvement-cycle-XLPktFtP.js} +4 -4
- package/dist/{improvement-cycle-CSBantKB.js.map → improvement-cycle-XLPktFtP.js.map} +1 -1
- package/dist/{index-Cz4qKBxm.d.ts → index-DBZTN4ci.d.ts} +2 -2
- package/dist/{index-De10l_EU.d.ts → index-DiUDbnk-.d.ts} +8 -6
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -11
- package/dist/intelligence.js +6 -6
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +8 -8
- package/dist/{knowledge-B2C9t1Z4.js → knowledge-Dv2HMnE6.js} +5 -5
- package/dist/{knowledge-B2C9t1Z4.js.map → knowledge-Dv2HMnE6.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-C0ymKYU7.js → loop-runner-bin-Bieu4QO4.js} +3 -3
- package/dist/{loop-runner-bin-C0ymKYU7.js.map → loop-runner-bin-Bieu4QO4.js.map} +1 -1
- package/dist/{loop-runner-bin-D-tgbSPx.d.ts → loop-runner-bin-D5JXvb_l.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/{openai-tools-ClOkPIi0.js → openai-tools-D4Rf0Ciu.js} +2 -2
- package/dist/{openai-tools-ClOkPIi0.js.map → openai-tools-D4Rf0Ciu.js.map} +1 -1
- package/dist/{prepare-BXEtLOj9.js → prepare-BxP7Hq1l.js} +2 -2
- package/dist/{prepare-BXEtLOj9.js.map → prepare-BxP7Hq1l.js.map} +1 -1
- package/dist/{protected-model-port-B7PAmTGi.js → protected-model-port-B82zDDu5.js} +2 -2
- package/dist/{protected-model-port-B7PAmTGi.js.map → protected-model-port-B82zDDu5.js.map} +1 -1
- package/dist/{runtime-Bisfbn3_.js → runtime-Ox-uvtni.js} +9 -9
- package/dist/{runtime-Bisfbn3_.js.map → runtime-Ox-uvtni.js.map} +1 -1
- package/dist/{spawn-journal-B856eA8e.js → spawn-journal-TJSlDa2J.js} +2 -2
- package/dist/{spawn-journal-B856eA8e.js.map → spawn-journal-TJSlDa2J.js.map} +1 -1
- package/dist/{structural-rollout-DKEP5i__.js → structural-rollout-CnHKUCVM.js} +3 -3
- package/dist/{structural-rollout-DKEP5i__.js.map → structural-rollout-CnHKUCVM.js.map} +1 -1
- package/dist/{supervise-DhghNvl6.js → supervise-BNOccEtp.js} +15 -4
- package/dist/{supervise-DhghNvl6.js.map → supervise-BNOccEtp.js.map} +1 -1
- package/dist/{supervisor-CMlIOkJP.js → supervisor-4r4BYSti.js} +21 -12
- package/dist/{supervisor-CMlIOkJP.js.map → supervisor-4r4BYSti.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +12 -12
- package/dist/{util-DD8bRWPL.js → util-CG3ghHfb.js} +47 -17
- package/dist/util-CG3ghHfb.js.map +1 -0
- package/dist/{workspace-archive-B5oJu5mZ.js → workspace-archive-BwJQSvGi.js} +2 -2
- package/dist/{workspace-archive-B5oJu5mZ.js.map → workspace-archive-BwJQSvGi.js.map} +1 -1
- package/package.json +1 -1
- package/dist/util-DD8bRWPL.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { f as ValidationError, r as BackendTransportError, u as RuntimeRunStateError } from "./errors-CVIDr7GQ.js";
|
|
2
2
|
import { t as detachedSnapshot } from "./snapshot-BOIprwBk.js";
|
|
3
|
-
import { S as contentAddress, a as aggregateProviderModelEvidence, c as pendingWaits, g as runtimeOwnedNestedDriverTreeRoot, h as nestedDriverTreeRoot, l as replaySpawnTree, m as driverRuntime, o as loadSpawnForest, p as attestNestedDriverTreeOwner, s as materializeTreeView, v as captureWorkerTraceEvidence } from "./spawn-journal-
|
|
4
|
-
import { a as hasCompleteCacheBreakdown, c as randomSuffix, d as stringifySafe, f as throwAbort, h as zeroTokenUsage, i as deleteBoxSafe, l as randomUuid, m as withTimeout, n as chargedTokens, p as throwIfAborted, r as cloneTokenUsage, s as mapWithConcurrency, t as addTokenUsage, u as sleep } from "./util-
|
|
3
|
+
import { S as contentAddress, a as aggregateProviderModelEvidence, c as pendingWaits, g as runtimeOwnedNestedDriverTreeRoot, h as nestedDriverTreeRoot, l as replaySpawnTree, m as driverRuntime, o as loadSpawnForest, p as attestNestedDriverTreeOwner, s as materializeTreeView, v as captureWorkerTraceEvidence } from "./spawn-journal-TJSlDa2J.js";
|
|
4
|
+
import { a as hasCompleteCacheBreakdown, c as randomSuffix, d as stringifySafe, f as throwAbort, h as zeroTokenUsage, i as deleteBoxSafe, l as randomUuid, m as withTimeout, n as chargedTokens, p as throwIfAborted, r as cloneTokenUsage, s as mapWithConcurrency, t as addTokenUsage, u as sleep } from "./util-CG3ghHfb.js";
|
|
5
5
|
import { a as notifySandboxEventObserver, n as extractLlmCallEvent } from "./sandbox-events-vIwmuPdl.js";
|
|
6
6
|
import { a as concreteProfileModel, l as resolveRouterRetryPolicy, o as profileBridgeWireModel, s as profileModelExecutionSettings, t as assertExecutableAgentProfile, u as agentHarness } from "./model-policy-UTTc9Z-A.js";
|
|
7
7
|
import { C as unknownExecutionBindingReceipt, E as executableAgentSpecSnapshot, S as runtimeOwnedScopeOwnerRuntime, T as executableAgentProfileSnapshot, a as authoredProfileDigest, b as runtimeOwnedExecutorProviderEvidence, c as knownExecutionBindingReceipt, f as recordRuntimeOwnedProviderAttemptStart, g as runtimeOwnedDeferredExecutorRuntime, h as recordRuntimeOwnedProviderModel, l as knownMaterializationReceipt, m as recordRuntimeOwnedProviderIdentityConflict, n as attestRuntimeOwnedExecutor, o as finalizeRuntimeOwnedPendingExecutor, p as recordRuntimeOwnedProviderDispatchNotStarted, r as attestRuntimeOwnedPendingExecutor, t as attestRuntimeOwnedDeferredExecutor, u as newExecutionAttemptId, v as runtimeOwnedExecutorExecutionBinding, w as unknownMaterializationReceipt, x as runtimeOwnedPendingExecutorMaterialization, y as runtimeOwnedExecutorMaterialization } from "./materialization-BP5zspr2.js";
|
|
8
|
-
import { i as resolveAgentEnvironmentProvider, n as providerAsExecutor, r as providerAsSandboxClient } from "./environment-provider-
|
|
8
|
+
import { i as resolveAgentEnvironmentProvider, n as providerAsExecutor, r as providerAsSandboxClient } from "./environment-provider-CPHwqLLm.js";
|
|
9
9
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-C7iJOWm3.js";
|
|
10
10
|
import { estimateCost, isModelPriced } from "@tangle-network/agent-eval";
|
|
11
11
|
import { AGENT_PROFILE_MATERIALIZATION_AXES, REASONING_EFFORTS, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, profileMaterializationAxes, profileMaterializationAxes as profileMaterializationAxes$1, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
@@ -8978,13 +8978,17 @@ function mergeAbortSignals(...signals) {
|
|
|
8978
8978
|
* channels (`LoopTokenUsage` has no `usd`); iterations are conserved alongside them.
|
|
8979
8979
|
*
|
|
8980
8980
|
* The token unit is `chargedTokens`: every token counted ONCE, when it first enters the context
|
|
8981
|
-
* (`
|
|
8982
|
-
*
|
|
8983
|
-
*
|
|
8984
|
-
*
|
|
8985
|
-
*
|
|
8986
|
-
*
|
|
8987
|
-
*
|
|
8981
|
+
* (`input − cacheRead + output`, which is `freshInput + cacheWrite + output` under a complete
|
|
8982
|
+
* split). A cached prefix is re-presented content that was already charged when it was written, so
|
|
8983
|
+
* charging a cache read again would charge the same tokens twice — on a real fleet cache is 98% of
|
|
8984
|
+
* the rolled-up prompt total, which made a declared cap bite about 56x early. No price weight
|
|
8985
|
+
* enters the token channel; money is budgeted separately on `maxUsd`. The unit is additive, so a
|
|
8986
|
+
* child's settlement charges what its turns charged and a rolled-up report agrees with the pool.
|
|
8987
|
+
* Prompt tokens the provider never classified are charged in full, and
|
|
8988
|
+
* `readout().cacheBreakdownKnown` then reads false, so the balance reads as an upper bound on
|
|
8989
|
+
* newly-presented work rather than a measurement. The pool trusts a reported cache read the same way
|
|
8990
|
+
* it trusts a reported `input`: the token channel is an accounting unit, not a trust boundary
|
|
8991
|
+
* against a provider that misreports its own usage.
|
|
8988
8992
|
*
|
|
8989
8993
|
* Pure and deterministic: `now()` is injected, there is no I/O, and no wall-clock or
|
|
8990
8994
|
* RNG read. A `reserve`/`reconcile` ticket is single-use (fail-loud on double or
|
|
@@ -9035,7 +9039,12 @@ function assertValidSpend(spend, label) {
|
|
|
9035
9039
|
}
|
|
9036
9040
|
for (const [field, value] of [["tokensKnown", spend.tokens.tokensKnown], ["cacheBreakdownKnown", spend.tokens.cacheBreakdownKnown]]) if (value !== void 0 && value !== false) throw new Error(`${label}.tokens.${field} must be false when present`);
|
|
9037
9041
|
const { freshInput, cacheRead, cacheWrite } = spend.tokens;
|
|
9038
|
-
if (freshInput !== void 0 && cacheRead !== void 0 && cacheWrite !== void 0
|
|
9042
|
+
if (freshInput !== void 0 && cacheRead !== void 0 && cacheWrite !== void 0) {
|
|
9043
|
+
const classified = freshInput + cacheRead + cacheWrite;
|
|
9044
|
+
if (spend.tokens.cacheBreakdownKnown !== false) {
|
|
9045
|
+
if (classified !== spend.tokens.input) throw new Error(`${label}.tokens cache classes must sum to input`);
|
|
9046
|
+
} else if (classified > spend.tokens.input) throw new Error(`${label}.tokens cache classes must not exceed input`);
|
|
9047
|
+
}
|
|
9039
9048
|
for (const [field, value] of [["usd", spend.usd], ["ms", spend.ms]]) if (!Number.isFinite(value) || value < 0) throw new Error(`${label}.${field} must be a non-negative finite number`);
|
|
9040
9049
|
}
|
|
9041
9050
|
/** Fold a normalized `UsageEvent` array into a `Spend`. Tokens and usd are separate
|
|
@@ -12440,4 +12449,4 @@ function isNonEmptySpend(s) {
|
|
|
12440
12449
|
//#endregion
|
|
12441
12450
|
export { createSandboxForSpec as $, sandboxActProfileMaterialization as $t, spendFromUsageEvents as A, sanitizeRuntimeStreamEvent as At, readWorkerTraceContext as B, parseCodexTokenUsage as Bt, freeSlots as C, padSpanId as Ct, teardownExecutor as D, createRuntimeStreamEventCollector as Dt, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as E, createRuntimeEventCollector as Et, createExecutor as F, removeWorktree as Ft, createSteerableSandboxSession as G, defineProfileMaterializationContract as Gt, workerTraceHeaders as H, AGENT_PROFILE_MATERIALIZATION_AXES as Ht, createExecutorRegistry as I, DEFAULT_LOCAL_HARNESS as It, sandboxSessionTraceSource as J, promptControlProfileMaterialization as Jt, createPushTraceSource as K, fullProfileMaterialization as Kt, snapshotExecutorConfig as L, LOCAL_HARNESSES as Lt, bridgeStopSignalKey as M, runWorktreeHarness as Mt, captureReusableExecutorConfig as N, captureWorktreeDiff as Nt, assertValidBudget as O, sanitizeAgentRuntimeEvent as Ot, cliWorktreeExecutor as P, createWorktree as Pt, createInbox as Q, renderProfileMaterializationIssues as Qt, createWorktreeCliExecutor as R, harnessSupportsReasoningEffort as Rt, effectiveConcurrency as S, loopEventToOtelSpan as St, rollingDispatch as T, toOtelAttributes as Tt, workerTraceSeamKey as U, assertProfileMaterialization as Ut, workerTraceEnv as V, CodexExecutionDiagnosticError as Vt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as W, controlProfileMaterialization as Wt, createActivityLog as X, promptOnlyProfileMaterialization as Xt, DEFAULT_STALL_AFTER_MS as Y, promptModelProfileMaterialization as Yt, readWorkerProgress as Z, promptResourceProfileMaterialization as Zt, isWaitOutcome as _, createOpenInferenceFileExporter as _t, pickBestDelivered as a, routerBrain as at, validateWaitSpec as b, flatOtelSpan as bt, driverChild as c, observedModelMatchesDeclared as ct, deriveNodeExecutionIdentity as d, readTraceContextFromEnv as dt, validateProfileMaterialization as en, defaultSelectWinner as et, meterRuntimeOwnedProviderAttempt as f, traceContextToEnv as ft, createWaitProbes as g, buildRuntimeEventOtelSpans as gt, settledToIteration as h, buildLoopSpanNodes as ht, collectDelivered as i, acquireSandbox as it, bindReusableExecutorExecutionId as j, runSettledCommand as jt, createBudgetPool as k, sanitizeKnowledgeReadinessReport as kt, withDriverExecutor as l, createPropagatingTraceEmitter as lt, scopeOwnerExecutorNodeContext as m, buildLoopOtelSpans as mt, createSupervisor as n, createSandboxLineage as nt, runFinalizer as o, runBrainLoop as ot, recordScopeOwnerMaterialization as p, INTELLIGENCE_WIRE_VERSION as pt, decodeToolPart as q, profileMaterializationAxes$1 as qt, bestDelivered as r, probeSandboxCapabilities as rt, runTree as s, canonicalObservedModel as st, createRootHandle as t, worktreeCliProfileMaterialization as tn, runAgentRounds as tt, createScope as u, mergeTraceEnv as ut, pollFor as v, createOtelExporter as vt, queueOf as w, padTraceId as wt, waitUntil as x, generateSpanId as xt, timerAt as y, exportEvalRuns as yt, WORKER_TRACE_PROPAGATION as z, localHarnessExecutable as zt };
|
|
12442
12451
|
|
|
12443
|
-
//# sourceMappingURL=supervisor-
|
|
12452
|
+
//# sourceMappingURL=supervisor-4r4BYSti.js.map
|