@tangle-network/agent-runtime 0.134.5 → 0.134.6
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-CuSUhjsU.js → activation-BFGP4ZnG.js} +2 -2
- package/dist/{activation-CuSUhjsU.js.map → activation-BFGP4ZnG.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-DDHudCL3.js → authoring-CM9sA8yD.js} +2 -2
- package/dist/{authoring-DDHudCL3.js.map → authoring-CM9sA8yD.js.map} +1 -1
- package/dist/{conversation-DYVSghi8.js → conversation-DIUtiLkC.js} +2 -2
- package/dist/{conversation-DYVSghi8.js.map → conversation-DIUtiLkC.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.js +1 -1
- package/dist/{environment-provider-DIRm41xB.d.ts → environment-provider-BIZMHOQw.d.ts} +2 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{graph-BBPlG9Gp.js → graph-ICXhoz8O.js} +2 -2
- package/dist/{graph-BBPlG9Gp.js.map → graph-ICXhoz8O.js.map} +1 -1
- package/dist/{improvement-cycle-6Vb0Ctl7.js → improvement-cycle-b9IYBOJw.js} +4 -4
- package/dist/{improvement-cycle-6Vb0Ctl7.js.map → improvement-cycle-b9IYBOJw.js.map} +1 -1
- package/dist/{index-DHA5Oq5I.d.ts → index-0qU8jNOJ.d.ts} +5 -5
- package/dist/{index-iyZFnLdC.d.ts → index-DJ9qeOi3.d.ts} +4 -4
- package/dist/{index-BbdLlSh6.d.ts → index-RYbM0cUo.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-oUglku41.js → knowledge-Dxa5L4sb.js} +3 -3
- package/dist/{knowledge-oUglku41.js.map → knowledge-Dxa5L4sb.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-vVCZrAF2.js → loop-runner-bin-B7yytyZx.js} +3 -3
- package/dist/{loop-runner-bin-vVCZrAF2.js.map → loop-runner-bin-B7yytyZx.js.map} +1 -1
- package/dist/{loop-runner-bin-BLnkJfSV.d.ts → loop-runner-bin-W7MjoHUk.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-DfoZEyvI.js → openai-tools-DYTkum5Z.js} +2 -2
- package/dist/{openai-tools-DfoZEyvI.js.map → openai-tools-DYTkum5Z.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{redact-DTVIFTeR.d.ts → redact-Bojh05mQ.d.ts} +3 -3
- package/dist/{runtime-C60zv0Q4.d.ts → runtime-DHrzFy2v.d.ts} +3 -3
- package/dist/{runtime-DZql0Fnh.js → runtime-DPhY69h0.js} +7 -7
- package/dist/{runtime-DZql0Fnh.js.map → runtime-DPhY69h0.js.map} +1 -1
- package/dist/{stream-agent-turn-BLuTjcvw.d.ts → stream-agent-turn-BEv31Log.d.ts} +2 -2
- package/dist/{stream-agent-turn-DYBpzMmq.js → stream-agent-turn-Q5ellSUu.js} +10 -1
- package/dist/stream-agent-turn-Q5ellSUu.js.map +1 -0
- package/dist/{structural-rollout-DkYIjD2D.js → structural-rollout-B4ITMlW-.js} +3 -3
- package/dist/{structural-rollout-DkYIjD2D.js.map → structural-rollout-B4ITMlW-.js.map} +1 -1
- package/dist/{supervise-B8qbdlFz.js → supervise-CR8zPmfT.js} +2 -2
- package/dist/{supervise-B8qbdlFz.js.map → supervise-CR8zPmfT.js.map} +1 -1
- package/dist/{supervisor-lbWTSscK.js → supervisor-DEEGgN_S.js} +32 -4
- package/dist/{supervisor-lbWTSscK.js.map → supervisor-DEEGgN_S.js.map} +1 -1
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +11 -11
- package/dist/{types-CfQbuWgo.d.ts → types-C7UNjVce.d.ts} +10 -3
- package/package.json +1 -1
- package/dist/stream-agent-turn-DYBpzMmq.js.map +0 -1
|
@@ -10205,9 +10205,9 @@ function createScope(args) {
|
|
|
10205
10205
|
const unknown = unknownMaterializationReceipt({
|
|
10206
10206
|
authoredProfileDigest: profileDigest,
|
|
10207
10207
|
runtime: executor.runtime,
|
|
10208
|
-
reason: "executor-receipt
|
|
10208
|
+
reason: "executor-failed-before-receipt"
|
|
10209
10209
|
});
|
|
10210
|
-
const unknownBinding = unknownExecutionBindingReceipt(unknown, attemptId, "executor-receipt
|
|
10210
|
+
const unknownBinding = unknownExecutionBindingReceipt(unknown, attemptId, "executor-failed-before-receipt");
|
|
10211
10211
|
await appendNodeMaterialization(args, id, ordinal, unknown, unknownBinding, now);
|
|
10212
10212
|
live.materialization = unknown;
|
|
10213
10213
|
live.executionBindings.push(unknownBinding);
|
|
@@ -11851,7 +11851,7 @@ function assertResumeContract(events, opts) {
|
|
|
11851
11851
|
if (roots.length !== 1) throw new RuntimeRunStateError(`supervisor: resumed run '${opts.runId}' must contain exactly one root identity event; found ${roots.length}`);
|
|
11852
11852
|
const recorded = roots[0];
|
|
11853
11853
|
if (contentAddress(recorded.budget) !== contentAddress(opts.budget)) throw new RuntimeRunStateError(`supervisor: resume budget mismatch for run '${opts.runId}'; use a new runId to change limits`);
|
|
11854
|
-
if (!sameOptionalIdentity(recorded.identity, opts.rootIdentity)) throw new RuntimeRunStateError(`supervisor: resume identity mismatch for run '${opts.runId}';
|
|
11854
|
+
if (!sameOptionalIdentity(recorded.identity, opts.rootIdentity)) throw new RuntimeRunStateError(`supervisor: resume identity mismatch for run '${opts.runId}'; ${describeIdentityMismatch(recorded.identity, opts.rootIdentity)}`);
|
|
11855
11855
|
const receipts = events.filter((event) => event.kind === "materialized" && event.id === opts.runId);
|
|
11856
11856
|
const expectedReceipt = rootMaterializationReceipt(opts);
|
|
11857
11857
|
if (expectedReceipt === void 0) {
|
|
@@ -11897,6 +11897,34 @@ function sameOptionalIdentity(recorded, requested) {
|
|
|
11897
11897
|
if (recorded === void 0 || requested === void 0) return recorded === requested;
|
|
11898
11898
|
return contentAddress(recorded) === contentAddress(requested);
|
|
11899
11899
|
}
|
|
11900
|
+
/**
|
|
11901
|
+
* Name the identity fields that actually differ, with both values.
|
|
11902
|
+
*
|
|
11903
|
+
* The identity is compared as one content address, so a mismatch is a single boolean and the
|
|
11904
|
+
* message could only list every field that MIGHT have caused it. A caller then has to diff four
|
|
11905
|
+
* digests by hand to learn which one moved, and the common cause — a task file regenerated with
|
|
11906
|
+
* one character different — is indistinguishable from a genuinely different profile.
|
|
11907
|
+
*
|
|
11908
|
+
* Digests are truncated because the prefix identifies them and the full 64 characters push the
|
|
11909
|
+
* real content off the end of a terminal line.
|
|
11910
|
+
*/
|
|
11911
|
+
function describeIdentityMismatch(recorded, requested) {
|
|
11912
|
+
if (recorded === void 0) return "the recorded root carried no identity but this resume supplies one";
|
|
11913
|
+
if (requested === void 0) return "the recorded root carried an identity but this resume supplies none";
|
|
11914
|
+
const short = (value) => {
|
|
11915
|
+
if (value === void 0) return "(absent)";
|
|
11916
|
+
const text = typeof value === "string" ? value : JSON.stringify(value);
|
|
11917
|
+
return text.length > 20 ? `${text.slice(0, 20)}…` : text;
|
|
11918
|
+
};
|
|
11919
|
+
const differing = [
|
|
11920
|
+
"profileDigest",
|
|
11921
|
+
"taskDigest",
|
|
11922
|
+
"candidateDigest",
|
|
11923
|
+
"correlation"
|
|
11924
|
+
].filter((field) => contentAddress(recorded[field]) !== contentAddress(requested[field])).map((field) => `${field} recorded ${short(recorded[field])} but resumed with ${short(requested[field])}`);
|
|
11925
|
+
if (differing.length === 0) return "the identity objects differ in shape while every known field matches";
|
|
11926
|
+
return `${differing.join("; ")} — use a new runId to change any of these`;
|
|
11927
|
+
}
|
|
11900
11928
|
/** Validate caller-supplied root identity before any journal access. Fresh runs may omit identity,
|
|
11901
11929
|
* but once supplied it is trusted durable evidence and therefore must be complete and canonical;
|
|
11902
11930
|
* resumed runs always require it so the prior root can be matched exactly. */
|
|
@@ -12585,4 +12613,4 @@ function isNonEmptySpend(s) {
|
|
|
12585
12613
|
//#endregion
|
|
12586
12614
|
export { createInbox as $, renderProfileMaterializationIssues as $t, createBudgetPool as A, sanitizeKnowledgeReadinessReport as At, WORKER_TRACE_PROPAGATION as B, localHarnessExecutable as Bt, effectiveConcurrency as C, loopEventToOtelSpan as Ct, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as D, createRuntimeEventCollector as Dt, rollingDispatch as E, toOtelAttributes as Et, cliWorktreeExecutor as F, createWorktree as Ft, DEFAULT_SANDBOX_STEERING_MAX_TURNS as G, controlProfileMaterialization as Gt, workerTraceEnv as H, CodexExecutionDiagnosticError as Ht, createExecutor as I, removeWorktree as It, decodeToolPart as J, profileMaterializationAxes$1 as Jt, createSteerableSandboxSession as K, defineProfileMaterializationContract as Kt, createExecutorRegistry as L, DEFAULT_LOCAL_HARNESS as Lt, bindReusableExecutorExecutionId as M, runSettledCommand as Mt, bridgeStopSignalKey as N, runWorktreeHarness as Nt, teardownExecutor as O, createRuntimeStreamEventCollector as Ot, captureReusableExecutorConfig as P, captureWorktreeDiff as Pt, readWorkerProgress as Q, promptResourceProfileMaterialization as Qt, snapshotExecutorConfig as R, LOCAL_HARNESSES as Rt, waitUntil as S, generateSpanId as St, queueOf as T, padTraceId as Tt, workerTraceHeaders as U, AGENT_PROFILE_MATERIALIZATION_AXES as Ut, readWorkerTraceContext as V, parseCodexTokenUsage as Vt, workerTraceSeamKey as W, assertProfileMaterialization as Wt, DEFAULT_STALL_AFTER_MS as X, promptModelProfileMaterialization as Xt, sandboxSessionTraceSource as Y, promptControlProfileMaterialization as Yt, createActivityLog as Z, promptOnlyProfileMaterialization as Zt, createWaitProbes as _, buildRuntimeEventOtelSpans as _t, pickBestDelivered as a, acquireSandbox as at, timerAt as b, exportEvalRuns as bt, driverChild as c, canonicalObservedModel as ct, deriveNodeExecutionIdentity as d, mergeTraceEnv as dt, sandboxActProfileMaterialization as en, createSandboxForSpec as et, meterRuntimeOwnedAccounting as f, readTraceContextFromEnv as ft, settledToIteration as g, buildLoopSpanNodes as gt, scopeOwnerExecutorNodeContext as h, buildLoopOtelSpans as ht, collectDelivered as i, probeSandboxCapabilities as it, spendFromUsageEvents as j, sanitizeRuntimeStreamEvent as jt, assertValidBudget as k, sanitizeAgentRuntimeEvent as kt, withDriverExecutor as l, observedModelMatchesDeclared as lt, recordScopeOwnerMaterialization as m, INTELLIGENCE_WIRE_VERSION as mt, createSupervisor as n, worktreeCliProfileMaterialization as nn, runAgentRounds as nt, runFinalizer as o, routerBrain as ot, meterRuntimeOwnedProviderAttempt as p, traceContextToEnv as pt, createPushTraceSource as q, fullProfileMaterialization as qt, bestDelivered as r, createSandboxLineage as rt, runTree as s, runBrainLoop as st, createRootHandle as t, validateProfileMaterialization as tn, defaultSelectWinner as tt, createScope as u, createPropagatingTraceEmitter as ut, isWaitOutcome as v, createOpenInferenceFileExporter as vt, freeSlots as w, padSpanId as wt, validateWaitSpec as x, flatOtelSpan as xt, pollFor as y, createOtelExporter as yt, createWorktreeCliExecutor as z, harnessSupportsReasoningEffort as zt };
|
|
12587
12615
|
|
|
12588
|
-
//# sourceMappingURL=supervisor-
|
|
12616
|
+
//# sourceMappingURL=supervisor-DEEGgN_S.js.map
|