@tangle-network/agent-runtime 0.133.1 → 0.133.3
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-BKeGUWTV.js → activation-WLt7Dmfv.js} +2 -2
- package/dist/{activation-BKeGUWTV.js.map → activation-WLt7Dmfv.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-CoJWo0Ju.js → authoring-BmzFs-eQ.js} +2 -2
- package/dist/{authoring-CoJWo0Ju.js.map → authoring-BmzFs-eQ.js.map} +1 -1
- package/dist/{graph-B2xqnhnF.js → graph-Ck6Lm5XP.js} +2 -2
- package/dist/{graph-B2xqnhnF.js.map → graph-Ck6Lm5XP.js.map} +1 -1
- package/dist/{improvement-cycle-Cq5xHru1.js → improvement-cycle-ClbcuXvP.js} +3 -3
- package/dist/{improvement-cycle-Cq5xHru1.js.map → improvement-cycle-ClbcuXvP.js.map} +1 -1
- package/dist/{index-BNz-BzLt.d.ts → index-C7tsPEzj.d.ts} +2 -2
- package/dist/{index-B7qKWyMV.d.ts → index-kMp8g-jT.d.ts} +125 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +7 -7
- package/dist/{knowledge-D-ofzi3v.js → knowledge-jGnr0Fpn.js} +3 -3
- package/dist/{knowledge-D-ofzi3v.js.map → knowledge-jGnr0Fpn.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-CBW9ri20.d.ts → loop-runner-bin-CC5c39zY.d.ts} +2 -2
- package/dist/{loop-runner-bin-BwF5A_xf.js → loop-runner-bin-SvKBQeUG.js} +3 -3
- package/dist/{loop-runner-bin-BwF5A_xf.js.map → loop-runner-bin-SvKBQeUG.js.map} +1 -1
- 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 +4 -4
- package/dist/{openai-tools-rpPRFsVG.js → openai-tools-Sh1Q_4vy.js} +2 -2
- package/dist/{openai-tools-rpPRFsVG.js.map → openai-tools-Sh1Q_4vy.js.map} +1 -1
- package/dist/{runtime-CmTSbexZ.js → runtime-BdtZvPzb.js} +261 -22
- package/dist/runtime-BdtZvPzb.js.map +1 -0
- package/dist/{structural-rollout-Cy0l0bbT.js → structural-rollout-BfOB1pIb.js} +9 -4
- package/dist/structural-rollout-BfOB1pIb.js.map +1 -0
- package/dist/{supervise-DZxpJGK_.js → supervise-DG11q6jc.js} +2 -2
- package/dist/{supervise-DZxpJGK_.js.map → supervise-DG11q6jc.js.map} +1 -1
- package/dist/{supervisor-BpIcKHy7.js → supervisor-D8sBmGYd.js} +20 -11
- package/dist/supervisor-D8sBmGYd.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/package.json +1 -1
- package/dist/runtime-CmTSbexZ.js.map +0 -1
- package/dist/structural-rollout-Cy0l0bbT.js.map +0 -1
- 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 ===
|
|
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
|
|
@@ -3990,6 +4002,7 @@ const harnessBackends = [
|
|
|
3990
4002
|
"opencode",
|
|
3991
4003
|
"kimi-code",
|
|
3992
4004
|
"pi",
|
|
4005
|
+
"prime",
|
|
3993
4006
|
"hermes",
|
|
3994
4007
|
"openclaw",
|
|
3995
4008
|
"amp",
|
|
@@ -7778,13 +7791,9 @@ function errorMessage(error) {
|
|
|
7778
7791
|
}
|
|
7779
7792
|
function mergeBridgeObservedModel(current, next) {
|
|
7780
7793
|
if (current === void 0 || current === next) return next;
|
|
7781
|
-
|
|
7782
|
-
if (
|
|
7783
|
-
return
|
|
7784
|
-
}
|
|
7785
|
-
function bridgeModelIdentityBase(model) {
|
|
7786
|
-
const at = model.lastIndexOf("@");
|
|
7787
|
-
return at > 0 ? model.slice(0, at) : model;
|
|
7794
|
+
const merged = mergeObservedModelIdentity(current, next);
|
|
7795
|
+
if (merged === void 0) throw new ValidationError(`bridgeExecutor: bridge changed response model from ${JSON.stringify(current)} to ${JSON.stringify(next)}`);
|
|
7796
|
+
return merged;
|
|
7788
7797
|
}
|
|
7789
7798
|
function assertBridgeProfileMaterialization(value, profile, wireModel) {
|
|
7790
7799
|
if (!value || typeof value !== "object" || Array.isArray(value)) throw new ValidationError("bridgeExecutor: profile materialization receipt must be an object");
|
|
@@ -12341,4 +12350,4 @@ function isNonEmptySpend(s) {
|
|
|
12341
12350
|
//#endregion
|
|
12342
12351
|
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
12352
|
|
|
12344
|
-
//# sourceMappingURL=supervisor-
|
|
12353
|
+
//# sourceMappingURL=supervisor-D8sBmGYd.js.map
|