@tangle-network/agent-runtime 0.165.0 → 0.166.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-DmUIq51m.js → activation-BkO0p4I1.js} +2 -2
- package/dist/{activation-DmUIq51m.js.map → activation-BkO0p4I1.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-Cm122Duf.js → authoring-Bt17KOML.js} +2 -2
- package/dist/{authoring-Cm122Duf.js.map → authoring-Bt17KOML.js.map} +1 -1
- package/dist/durable.js +1 -1
- package/dist/graph-E0U0c2YP.js +2668 -0
- package/dist/graph-E0U0c2YP.js.map +1 -0
- package/dist/graph.d.ts +179 -15
- package/dist/graph.js +2 -1819
- package/dist/{improvement-cycle-BOd5DFeG.js → improvement-cycle-BAWOyeTA.js} +3 -3
- package/dist/{improvement-cycle-BOd5DFeG.js.map → improvement-cycle-BAWOyeTA.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +6 -6
- package/dist/{knowledge-7_IfyD9R.js → knowledge-Bhhz6lvH.js} +3 -3
- package/dist/{knowledge-7_IfyD9R.js.map → knowledge-Bhhz6lvH.js.map} +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-Dx-5GZQK.js → loop-runner-bin-BQnpSn0h.js} +3 -3
- package/dist/{loop-runner-bin-Dx-5GZQK.js.map → loop-runner-bin-BQnpSn0h.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-CDS7eSww.js → openai-tools-t6spVYKL.js} +2 -2
- package/dist/{openai-tools-CDS7eSww.js.map → openai-tools-t6spVYKL.js.map} +1 -1
- package/dist/{runtime-DESENUe1.js → runtime-BJoNta1Y.js} +6 -6
- package/dist/{runtime-DESENUe1.js.map → runtime-BJoNta1Y.js.map} +1 -1
- package/dist/{structural-rollout-DZGDg0yX.js → structural-rollout-B5E0mWCH.js} +2 -2
- package/dist/{structural-rollout-DZGDg0yX.js.map → structural-rollout-B5E0mWCH.js.map} +1 -1
- package/dist/{supervise-Da20R0PO.js → supervise-CnxqHx1P.js} +2 -2
- package/dist/{supervise-Da20R0PO.js.map → supervise-CnxqHx1P.js.map} +1 -1
- package/dist/{supervisor-DpIKMlPJ.js → supervisor-C8kgh8mf.js} +21 -2
- package/dist/{supervisor-DpIKMlPJ.js.map → supervisor-C8kgh8mf.js.map} +1 -1
- package/dist/testing.js +11 -11
- package/package.json +1 -1
- package/dist/graph-DGri_zJm.js +0 -532
- package/dist/graph-DGri_zJm.js.map +0 -1
- package/dist/graph.js.map +0 -1
|
@@ -7973,7 +7973,7 @@ const bridgeExecutor = (spec, ctx) => {
|
|
|
7973
7973
|
},
|
|
7974
7974
|
onProfileMaterialization: (receipt) => {
|
|
7975
7975
|
if (acknowledged !== void 0) {
|
|
7976
|
-
if (JSON.stringify(acknowledged) !== JSON.stringify(receipt)) throw new ValidationError("bridgeExecutor: profile materialization changed across session turns");
|
|
7976
|
+
if (JSON.stringify(stripMaterializationObservation(acknowledged)) !== JSON.stringify(stripMaterializationObservation(receipt))) throw new ValidationError("bridgeExecutor: profile materialization changed across session turns");
|
|
7977
7977
|
return;
|
|
7978
7978
|
}
|
|
7979
7979
|
acknowledged = receipt;
|
|
@@ -8948,6 +8948,25 @@ function assertBridgeProfileMaterialization(value, profile, wireModel) {
|
|
|
8948
8948
|
unsupported: Object.freeze(unsupported)
|
|
8949
8949
|
});
|
|
8950
8950
|
}
|
|
8951
|
+
/**
|
|
8952
|
+
* Remove `inference.observation` — and ONLY that — before the cross-turn identity comparison.
|
|
8953
|
+
* cli-bridge's pi backend writes per-turn traffic and token counters into the receipt's
|
|
8954
|
+
* `inference.observation` block (`requests`, `generationRequests`, `usageReceipts`, the `usage`
|
|
8955
|
+
* token totals): a fresh measurement on every turn BY DESIGN, not profile identity, so two honest
|
|
8956
|
+
* receipts from the same session are never byte-equal and the raw compare refused every
|
|
8957
|
+
* multi-turn pi session at the end of turn 2. Every identity field stays compared: schema,
|
|
8958
|
+
* effectiveProfileDigest, harness, provider, model, reasoningEffort, workspacePlanDigest, files,
|
|
8959
|
+
* unsupported, and the stable inference identity (`effectiveEndpoint`, `apiMode`, `transport`,
|
|
8960
|
+
* `appliedMaxTokens`).
|
|
8961
|
+
*/
|
|
8962
|
+
function stripMaterializationObservation(receipt) {
|
|
8963
|
+
if (receipt.inference === void 0) return receipt;
|
|
8964
|
+
const { observation: _observation, ...inferenceIdentity } = receipt.inference;
|
|
8965
|
+
return {
|
|
8966
|
+
...receipt,
|
|
8967
|
+
inference: inferenceIdentity
|
|
8968
|
+
};
|
|
8969
|
+
}
|
|
8951
8970
|
function parseBridgeInferenceReceipt(value) {
|
|
8952
8971
|
if (typeof value !== "object" || value === null || Array.isArray(value)) throw new ValidationError("bridgeExecutor: profile materialization receipt has an invalid inference block");
|
|
8953
8972
|
const raw = value;
|
|
@@ -13393,4 +13412,4 @@ function isNonEmptySpend(s) {
|
|
|
13393
13412
|
//#endregion
|
|
13394
13413
|
export { createPushTraceSource as $, createWorktree as $t, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as A, readTraceContextFromEnv as At, captureReusableExecutorConfig as B, generateSpanId as Bt, timerAt as C, acquireSandbox as Ct, freeSlots as D, observedModelMatchesDeclared as Dt, effectiveConcurrency as E, canonicalObservedModel as Et, bindReusableExecutorExecutionId as F, buildRuntimeEventOtelSpans as Ft, createWorktreeCliExecutor as G, createRuntimeEventCollector as Gt, createExecutor as H, padSpanId as Ht, bridgeAdmissionRead as I, createOpenInferenceFileExporter as It, workerTraceEnv as J, sanitizeKnowledgeReadinessReport as Jt, WORKER_TRACE_PROPAGATION as K, createRuntimeStreamEventCollector as Kt, bridgeModelRouteRefusal as L, createOtelExporter as Lt, assertValidBudget as M, INTELLIGENCE_WIRE_VERSION as Mt, createBudgetPool as N, buildLoopOtelSpans as Nt, queueOf as O, createPropagatingTraceEmitter as Ot, spendFromUsageEvents as P, buildLoopSpanNodes as Pt, createSteerableSandboxSession as Q, captureWorktreeDiff as Qt, bridgeRuntimeAttachmentsKey as R, exportEvalRuns as Rt, pollFor as S, worktreeCliProfileMaterialization as Sn, probeSandboxCapabilities as St, waitUntil as T, runBrainLoop as Tt, createExecutorRegistry as U, padTraceId as Ut, cliWorktreeExecutor as V, loopEventToOtelSpan as Vt, snapshotExecutorConfig as W, toOtelAttributes as Wt, workerTraceSeamKey as X, runSettledCommand as Xt, workerTraceHeaders as Y, sanitizeRuntimeStreamEvent as Yt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Z, runWorktreeHarness as Zt, recordScopeOwnerMaterialization as _, renderProfileMaterializationIssues as _n, createSandboxForSpec as _t, uncertainSpawnBudgets as a, parseCodexTokenUsage as an, createInbox as at, createWaitProbes as b, unsupportedProfileDimensions as bn, runAgentRounds as bt, pickBestDelivered as c, assertProfileMaterialization as cn, PEER_MAIL_WIRE_KEY as ct, driverChild as d, fullProfileMaterialization as dn, isPeerMailEnvelope as dt, removeWorktree as en, decodeToolPart as et, withDriverExecutor as f, profileMaterializationAxes$1 as fn, peerMailTools as ft, meterRuntimeOwnedProviderAttempt as g, promptResourceProfileMaterialization as gn, TERMINAL_DECISIONS as gt, meterRuntimeOwnedAccounting as h, promptOnlyProfileMaterialization as hn, isTerminalNodeStatus as ht, sumMeasuredSpendFromEvents as i, localHarnessExecutable as in, readWorkerProgress as it, teardownExecutor as j, traceContextToEnv as jt, rollingDispatch as k, mergeTraceEnv as kt, runFinalizer as l, controlProfileMaterialization as ln, claimsAuthority as lt, deriveNodeExecutionIdentity as m, promptModelProfileMaterialization as mn, isLiveNodeStatus as mt, createSupervisor as n, LOCAL_HARNESSES as nn, DEFAULT_STALL_AFTER_MS as nt, bestDelivered as o, CodexExecutionDiagnosticError as on, AUTHORITY_MARKERS as ot, createScope as p, promptControlProfileMaterialization as pn, peerMailVerbNames as pt, readWorkerTraceContext as q, sanitizeAgentRuntimeEvent as qt, maxSeqOf as r, harnessSupportsReasoningEffort as rn, createActivityLog as rt, collectDelivered as s, AGENT_PROFILE_MATERIALIZATION_AXES as sn, DEFAULT_PEER_MAIL_LIMITS as st, createRootHandle as t, DEFAULT_LOCAL_HARNESS as tn, sandboxSessionTraceSource as tt, runTree as u, defineProfileMaterializationContract as un, createPeerMailbox as ut, scopeOwnerExecutorNodeContext as v, renderUnsupported as vn, defaultSelectWinner as vt, validateWaitSpec as w, routerBrain as wt, isWaitOutcome as x, validateProfileMaterialization as xn, createSandboxLineage as xt, settledToIteration as y, sandboxActProfileMaterialization as yn, isTerminalDecision as yt, bridgeStopSignalKey as z, flatOtelSpan as zt };
|
|
13395
13414
|
|
|
13396
|
-
//# sourceMappingURL=supervisor-
|
|
13415
|
+
//# sourceMappingURL=supervisor-C8kgh8mf.js.map
|