@tangle-network/agent-runtime 0.133.1 → 0.133.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.
Files changed (33) hide show
  1. package/dist/{activation-BKeGUWTV.js → activation-ChGJ2T70.js} +2 -2
  2. package/dist/{activation-BKeGUWTV.js.map → activation-ChGJ2T70.js.map} +1 -1
  3. package/dist/agent.js +2 -2
  4. package/dist/{authoring-CoJWo0Ju.js → authoring-CCzHzhCy.js} +2 -2
  5. package/dist/{authoring-CoJWo0Ju.js.map → authoring-CCzHzhCy.js.map} +1 -1
  6. package/dist/{graph-B2xqnhnF.js → graph-DiFPPTdk.js} +2 -2
  7. package/dist/{graph-B2xqnhnF.js.map → graph-DiFPPTdk.js.map} +1 -1
  8. package/dist/{improvement-cycle-Cq5xHru1.js → improvement-cycle-d0O_nkmj.js} +3 -3
  9. package/dist/{improvement-cycle-Cq5xHru1.js.map → improvement-cycle-d0O_nkmj.js.map} +1 -1
  10. package/dist/index.js +7 -7
  11. package/dist/intelligence.js +3 -3
  12. package/dist/kernel.js +6 -6
  13. package/dist/{knowledge-D-ofzi3v.js → knowledge-CtFA0_YY.js} +3 -3
  14. package/dist/{knowledge-D-ofzi3v.js.map → knowledge-CtFA0_YY.js.map} +1 -1
  15. package/dist/knowledge.js +1 -1
  16. package/dist/{loop-runner-bin-BwF5A_xf.js → loop-runner-bin-Cak-SbgO.js} +3 -3
  17. package/dist/{loop-runner-bin-BwF5A_xf.js.map → loop-runner-bin-Cak-SbgO.js.map} +1 -1
  18. package/dist/loop-runner-bin.js +1 -1
  19. package/dist/mcp/bin.js +3 -3
  20. package/dist/mcp/index.js +4 -4
  21. package/dist/{openai-tools-rpPRFsVG.js → openai-tools-BeYChImD.js} +2 -2
  22. package/dist/{openai-tools-rpPRFsVG.js.map → openai-tools-BeYChImD.js.map} +1 -1
  23. package/dist/{runtime-CmTSbexZ.js → runtime-B6YK6v3I.js} +6 -6
  24. package/dist/{runtime-CmTSbexZ.js.map → runtime-B6YK6v3I.js.map} +1 -1
  25. package/dist/{structural-rollout-Cy0l0bbT.js → structural-rollout-BQh7Rzoa.js} +2 -2
  26. package/dist/{structural-rollout-Cy0l0bbT.js.map → structural-rollout-BQh7Rzoa.js.map} +1 -1
  27. package/dist/{supervise-DZxpJGK_.js → supervise-C_P4yxA4.js} +2 -2
  28. package/dist/{supervise-DZxpJGK_.js.map → supervise-C_P4yxA4.js.map} +1 -1
  29. package/dist/{supervisor-BpIcKHy7.js → supervisor-C5pAAPb5.js} +19 -11
  30. package/dist/supervisor-C5pAAPb5.js.map +1 -0
  31. package/dist/testing.js +11 -11
  32. package/package.json +1 -1
  33. package/dist/supervisor-BpIcKHy7.js.map +0 -1
@@ -3120,6 +3120,15 @@ function observedModelMatchesDeclared(observed, declared) {
3120
3120
  if (declaredIdentity.snapshot !== void 0 && observedIdentity.snapshot !== declaredIdentity.snapshot) return false;
3121
3121
  return equivalentModelBase(observedIdentity.base, declaredIdentity.base);
3122
3122
  }
3123
+ /** Merge two observations of one served model while retaining a snapshot-bearing raw identity. */
3124
+ function mergeObservedModelIdentity(current, next) {
3125
+ const currentIdentity = modelIdentityParts(current);
3126
+ const nextIdentity = modelIdentityParts(next);
3127
+ if (!currentIdentity || !nextIdentity) return void 0;
3128
+ if (!equivalentModelBase(currentIdentity.base, nextIdentity.base)) return void 0;
3129
+ if (currentIdentity.snapshot !== void 0 && nextIdentity.snapshot !== void 0 && currentIdentity.snapshot !== nextIdentity.snapshot) return;
3130
+ return currentIdentity.snapshot === void 0 && nextIdentity.snapshot !== void 0 ? next : current;
3131
+ }
3123
3132
  /** Canonicalize a served model for cross-route identity comparisons. */
3124
3133
  function canonicalObservedModel(model) {
3125
3134
  const identity = modelIdentityParts(model);
@@ -3130,17 +3139,20 @@ function canonicalObservedModel(model) {
3130
3139
  function modelIdentityParts(model) {
3131
3140
  if (model.length === 0) return null;
3132
3141
  const at = model.lastIndexOf("@");
3133
- if (at < 0) return { base: model };
3142
+ if (at < 0) return modelLeaf(model).length === 0 ? null : { base: model };
3134
3143
  const base = model.slice(0, at);
3135
3144
  const snapshot = model.slice(at + 1);
3136
- if (base.length === 0 || !SNAPSHOT_TOKEN.test(snapshot)) return null;
3145
+ if (base.length === 0 || modelLeaf(base).length === 0 || !SNAPSHOT_TOKEN.test(snapshot)) return null;
3137
3146
  return {
3138
3147
  base,
3139
3148
  snapshot
3140
3149
  };
3141
3150
  }
3142
3151
  function equivalentModelBase(observed, declared) {
3143
- return observed === declared || observed.endsWith(`/${declared}`) || declared.endsWith(`/${observed}`);
3152
+ return modelLeaf(observed) === modelLeaf(declared);
3153
+ }
3154
+ function modelLeaf(model) {
3155
+ return model.slice(model.lastIndexOf("/") + 1);
3144
3156
  }
3145
3157
  //#endregion
3146
3158
  //#region src/runtime/tool-loop.ts
@@ -7778,13 +7790,9 @@ function errorMessage(error) {
7778
7790
  }
7779
7791
  function mergeBridgeObservedModel(current, next) {
7780
7792
  if (current === void 0 || current === next) return next;
7781
- if (bridgeModelIdentityBase(current) !== bridgeModelIdentityBase(next)) throw new ValidationError(`bridgeExecutor: bridge changed response model from ${JSON.stringify(current)} to ${JSON.stringify(next)}`);
7782
- if (current.includes("@") && next.includes("@")) throw new ValidationError(`bridgeExecutor: bridge changed response model snapshot from ${JSON.stringify(current)} to ${JSON.stringify(next)}`);
7783
- return current.includes("@") ? current : next;
7784
- }
7785
- function bridgeModelIdentityBase(model) {
7786
- const at = model.lastIndexOf("@");
7787
- return at > 0 ? model.slice(0, at) : model;
7793
+ const merged = mergeObservedModelIdentity(current, next);
7794
+ if (merged === void 0) throw new ValidationError(`bridgeExecutor: bridge changed response model from ${JSON.stringify(current)} to ${JSON.stringify(next)}`);
7795
+ return merged;
7788
7796
  }
7789
7797
  function assertBridgeProfileMaterialization(value, profile, wireModel) {
7790
7798
  if (!value || typeof value !== "object" || Array.isArray(value)) throw new ValidationError("bridgeExecutor: profile materialization receipt must be an object");
@@ -12341,4 +12349,4 @@ function isNonEmptySpend(s) {
12341
12349
  //#endregion
12342
12350
  export { defaultSelectWinner as $, validateProfileMaterialization as $t, spendFromUsageEvents as A, runSettledCommand as At, workerTraceEnv as B, CodexExecutionDiagnosticError as Bt, freeSlots as C, padTraceId as Ct, teardownExecutor as D, sanitizeAgentRuntimeEvent as Dt, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as E, createRuntimeStreamEventCollector as Et, createExecutorRegistry as F, DEFAULT_LOCAL_HARNESS as Ft, createPushTraceSource as G, fullProfileMaterialization as Gt, workerTraceSeamKey as H, assertProfileMaterialization as Ht, snapshotExecutorConfig as I, LOCAL_HARNESSES as It, DEFAULT_STALL_AFTER_MS as J, promptModelProfileMaterialization as Jt, decodeToolPart as K, profileMaterializationAxes$1 as Kt, createWorktreeCliExecutor as L, harnessSupportsReasoningEffort as Lt, captureReusableExecutorConfig as M, captureWorktreeDiff as Mt, cliWorktreeExecutor as N, createWorktree as Nt, assertValidBudget as O, sanitizeKnowledgeReadinessReport as Ot, createExecutor as P, removeWorktree as Pt, createSandboxForSpec as Q, sandboxActProfileMaterialization as Qt, WORKER_TRACE_PROPAGATION as R, localHarnessExecutable as Rt, effectiveConcurrency as S, padSpanId as St, rollingDispatch as T, createRuntimeEventCollector as Tt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as U, controlProfileMaterialization as Ut, workerTraceHeaders as V, AGENT_PROFILE_MATERIALIZATION_AXES as Vt, createSteerableSandboxSession as W, defineProfileMaterializationContract as Wt, readWorkerProgress as X, promptResourceProfileMaterialization as Xt, createActivityLog as Y, promptOnlyProfileMaterialization as Yt, createInbox as Z, renderProfileMaterializationIssues as Zt, isWaitOutcome as _, createOtelExporter as _t, pickBestDelivered as a, runBrainLoop as at, validateWaitSpec as b, generateSpanId as bt, driverChild as c, createPropagatingTraceEmitter as ct, deriveNodeExecutionIdentity as d, traceContextToEnv as dt, worktreeCliProfileMaterialization as en, runAgentRounds as et, meterRuntimeOwnedProviderAttempt as f, INTELLIGENCE_WIRE_VERSION as ft, createWaitProbes as g, createOpenInferenceFileExporter as gt, settledToIteration as h, buildRuntimeEventOtelSpans as ht, collectDelivered as i, routerBrain as it, bindReusableExecutorExecutionId as j, runWorktreeHarness as jt, createBudgetPool as k, sanitizeRuntimeStreamEvent as kt, withDriverExecutor as l, mergeTraceEnv as lt, scopeOwnerExecutorNodeContext as m, buildLoopSpanNodes as mt, createSupervisor as n, probeSandboxCapabilities as nt, runFinalizer as o, canonicalObservedModel as ot, recordScopeOwnerMaterialization as p, buildLoopOtelSpans as pt, sandboxSessionTraceSource as q, promptControlProfileMaterialization as qt, bestDelivered as r, acquireSandbox as rt, runTree as s, observedModelMatchesDeclared as st, createRootHandle as t, createSandboxLineage as tt, createScope as u, readTraceContextFromEnv as ut, pollFor as v, exportEvalRuns as vt, queueOf as w, toOtelAttributes as wt, waitUntil as x, loopEventToOtelSpan as xt, timerAt as y, flatOtelSpan as yt, readWorkerTraceContext as z, parseCodexTokenUsage as zt };
12343
12351
 
12344
- //# sourceMappingURL=supervisor-BpIcKHy7.js.map
12352
+ //# sourceMappingURL=supervisor-C5pAAPb5.js.map