@tangle-network/agent-runtime 0.134.4 → 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-q9Zo4NRy.js → activation-BFGP4ZnG.js} +2 -2
- package/dist/{activation-q9Zo4NRy.js.map → activation-BFGP4ZnG.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-CmzMOTKX.js → authoring-CM9sA8yD.js} +2 -2
- package/dist/{authoring-CmzMOTKX.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-B0wXX8Pr.js → graph-ICXhoz8O.js} +3 -2
- package/dist/graph-ICXhoz8O.js.map +1 -0
- package/dist/{improvement-cycle-4dO93TTE.js → improvement-cycle-b9IYBOJw.js} +4 -4
- package/dist/{improvement-cycle-4dO93TTE.js.map → improvement-cycle-b9IYBOJw.js.map} +1 -1
- package/dist/{index-SWNlB0Hv.d.ts → index-0qU8jNOJ.d.ts} +13 -5
- package/dist/{index-7VFw3_z0.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-EDOC3wEs.js → knowledge-Dxa5L4sb.js} +3 -3
- package/dist/{knowledge-EDOC3wEs.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-CoBcsxpe.js → loop-runner-bin-B7yytyZx.js} +3 -3
- package/dist/{loop-runner-bin-CoBcsxpe.js.map → loop-runner-bin-B7yytyZx.js.map} +1 -1
- package/dist/{loop-runner-bin-DXqzpr4i.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-BQHlv-Ex.js → openai-tools-DYTkum5Z.js} +2 -2
- package/dist/{openai-tools-BQHlv-Ex.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-DJMlvPY7.js → runtime-DPhY69h0.js} +7 -7
- package/dist/{runtime-DJMlvPY7.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-GX7EzxeM.js → structural-rollout-B4ITMlW-.js} +3 -3
- package/dist/{structural-rollout-GX7EzxeM.js.map → structural-rollout-B4ITMlW-.js.map} +1 -1
- package/dist/{supervise-7JtBc_eW.js → supervise-CR8zPmfT.js} +23 -2
- package/dist/{supervise-7JtBc_eW.js.map → supervise-CR8zPmfT.js.map} +1 -1
- package/dist/{supervisor-Bfh5Gq_P.js → supervisor-DEEGgN_S.js} +55 -5
- package/dist/supervisor-DEEGgN_S.js.map +1 -0
- 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/graph-B0wXX8Pr.js.map +0 -1
- package/dist/stream-agent-turn-DYBpzMmq.js.map +0 -1
- package/dist/supervisor-Bfh5Gq_P.js.map +0 -1
|
@@ -6027,6 +6027,15 @@ function linkSignals$1(a, b) {
|
|
|
6027
6027
|
*
|
|
6028
6028
|
* @experimental
|
|
6029
6029
|
*/
|
|
6030
|
+
/**
|
|
6031
|
+
* Materialization contract for one direct Router turn.
|
|
6032
|
+
*
|
|
6033
|
+
* `resourceFailOnError` is carried: this executor has no workspace, so it inlines resource content
|
|
6034
|
+
* into the system prompt and applies the profile's own resource-failure policy while it does so
|
|
6035
|
+
* (`renderRouterProfilePrompt`). No value of the field is dropped — a strict profile fails closed
|
|
6036
|
+
* on a resource that cannot be inlined, and a best-effort profile is refused because this path has
|
|
6037
|
+
* no way to report a skipped resource.
|
|
6038
|
+
*/
|
|
6030
6039
|
const routerTurnProfileMaterialization = defineProfileMaterializationContract({
|
|
6031
6040
|
name: "router-profile-turn",
|
|
6032
6041
|
axes: [
|
|
@@ -6048,6 +6057,7 @@ const routerTurnProfileMaterialization = defineProfileMaterializationContract({
|
|
|
6048
6057
|
"resourceAgents",
|
|
6049
6058
|
"commands",
|
|
6050
6059
|
"resourceInstructions",
|
|
6060
|
+
"resourceFailOnError",
|
|
6051
6061
|
"metadata"
|
|
6052
6062
|
]
|
|
6053
6063
|
});
|
|
@@ -7699,7 +7709,10 @@ async function* streamDurableBridgeRun(args) {
|
|
|
7699
7709
|
continue;
|
|
7700
7710
|
}
|
|
7701
7711
|
if (sawDone) {
|
|
7702
|
-
if (args.run.profileMaterialization === void 0)
|
|
7712
|
+
if (args.run.profileMaterialization === void 0) {
|
|
7713
|
+
if (pendingUpstreamError) throw pendingUpstreamError;
|
|
7714
|
+
throw new BackendTransportError("bridge", `bridgeExecutor: run ${args.run.id} completed without ${bridgeProfileMaterializationSchema}`);
|
|
7715
|
+
}
|
|
7703
7716
|
args.run.terminal = true;
|
|
7704
7717
|
if (pendingUpstreamError) throw pendingUpstreamError;
|
|
7705
7718
|
return;
|
|
@@ -8954,10 +8967,19 @@ function exactRouterModel(profile, context) {
|
|
|
8954
8967
|
if (agentHarness(profile.harness) !== void 0) throw new ValidationError(`${context}: AgentProfile.harness ${JSON.stringify(profile.harness)} conflicts with direct Router execution; use "cli-base"`);
|
|
8955
8968
|
return concreteProfileModel(profile);
|
|
8956
8969
|
}
|
|
8970
|
+
/**
|
|
8971
|
+
* Render the profile prompt plus every resource this executor can inline.
|
|
8972
|
+
*
|
|
8973
|
+
* The profile's `resources.failOnError` policy decides what happens to a resource that cannot be
|
|
8974
|
+
* inlined. Strict (`true` or absent) is the canonical default and fails closed. Best-effort
|
|
8975
|
+
* (`false`) asks for the supported subset plus a warning about the rest; this executor has no
|
|
8976
|
+
* channel to carry that warning, so it refuses the value instead of silently running strict.
|
|
8977
|
+
*/
|
|
8957
8978
|
function renderRouterProfilePrompt(profile) {
|
|
8958
8979
|
const sections = [profile.prompt?.systemPrompt, ...profile.prompt?.instructions ?? []].filter((value) => typeof value === "string" && value.trim().length > 0);
|
|
8959
8980
|
const resources = profile.resources;
|
|
8960
8981
|
if (!resources) return sections.join("\n");
|
|
8982
|
+
if (resources.failOnError === false) throw new ValidationError("routerInlineExecutor: resources.failOnError: false requests a best-effort resource subset; the direct Router executor always fails closed on a resource it cannot inline and reports no skipped resource, so the best-effort policy is refused rather than applied as strict");
|
|
8961
8983
|
if (typeof resources.instructions === "string") {
|
|
8962
8984
|
if (resources.instructions.trim()) sections.push(resources.instructions);
|
|
8963
8985
|
} else if (resources.instructions) sections.push(renderRouterResource("instructions", resources.instructions));
|
|
@@ -10183,9 +10205,9 @@ function createScope(args) {
|
|
|
10183
10205
|
const unknown = unknownMaterializationReceipt({
|
|
10184
10206
|
authoredProfileDigest: profileDigest,
|
|
10185
10207
|
runtime: executor.runtime,
|
|
10186
|
-
reason: "executor-receipt
|
|
10208
|
+
reason: "executor-failed-before-receipt"
|
|
10187
10209
|
});
|
|
10188
|
-
const unknownBinding = unknownExecutionBindingReceipt(unknown, attemptId, "executor-receipt
|
|
10210
|
+
const unknownBinding = unknownExecutionBindingReceipt(unknown, attemptId, "executor-failed-before-receipt");
|
|
10189
10211
|
await appendNodeMaterialization(args, id, ordinal, unknown, unknownBinding, now);
|
|
10190
10212
|
live.materialization = unknown;
|
|
10191
10213
|
live.executionBindings.push(unknownBinding);
|
|
@@ -11829,7 +11851,7 @@ function assertResumeContract(events, opts) {
|
|
|
11829
11851
|
if (roots.length !== 1) throw new RuntimeRunStateError(`supervisor: resumed run '${opts.runId}' must contain exactly one root identity event; found ${roots.length}`);
|
|
11830
11852
|
const recorded = roots[0];
|
|
11831
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`);
|
|
11832
|
-
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)}`);
|
|
11833
11855
|
const receipts = events.filter((event) => event.kind === "materialized" && event.id === opts.runId);
|
|
11834
11856
|
const expectedReceipt = rootMaterializationReceipt(opts);
|
|
11835
11857
|
if (expectedReceipt === void 0) {
|
|
@@ -11875,6 +11897,34 @@ function sameOptionalIdentity(recorded, requested) {
|
|
|
11875
11897
|
if (recorded === void 0 || requested === void 0) return recorded === requested;
|
|
11876
11898
|
return contentAddress(recorded) === contentAddress(requested);
|
|
11877
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
|
+
}
|
|
11878
11928
|
/** Validate caller-supplied root identity before any journal access. Fresh runs may omit identity,
|
|
11879
11929
|
* but once supplied it is trusted durable evidence and therefore must be complete and canonical;
|
|
11880
11930
|
* resumed runs always require it so the prior root can be matched exactly. */
|
|
@@ -12563,4 +12613,4 @@ function isNonEmptySpend(s) {
|
|
|
12563
12613
|
//#endregion
|
|
12564
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 };
|
|
12565
12615
|
|
|
12566
|
-
//# sourceMappingURL=supervisor-
|
|
12616
|
+
//# sourceMappingURL=supervisor-DEEGgN_S.js.map
|