@tangle-network/agent-runtime 0.134.4 → 0.134.5

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 (44) hide show
  1. package/dist/{activation-q9Zo4NRy.js → activation-CuSUhjsU.js} +2 -2
  2. package/dist/{activation-q9Zo4NRy.js.map → activation-CuSUhjsU.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{authoring-CmzMOTKX.js → authoring-DDHudCL3.js} +2 -2
  6. package/dist/{authoring-CmzMOTKX.js.map → authoring-DDHudCL3.js.map} +1 -1
  7. package/dist/{graph-B0wXX8Pr.js → graph-BBPlG9Gp.js} +3 -2
  8. package/dist/graph-BBPlG9Gp.js.map +1 -0
  9. package/dist/{improvement-cycle-4dO93TTE.js → improvement-cycle-6Vb0Ctl7.js} +3 -3
  10. package/dist/{improvement-cycle-4dO93TTE.js.map → improvement-cycle-6Vb0Ctl7.js.map} +1 -1
  11. package/dist/{index-SWNlB0Hv.d.ts → index-DHA5Oq5I.d.ts} +9 -1
  12. package/dist/{index-7VFw3_z0.d.ts → index-iyZFnLdC.d.ts} +2 -2
  13. package/dist/index.d.ts +3 -3
  14. package/dist/index.js +7 -7
  15. package/dist/intelligence.js +3 -3
  16. package/dist/kernel.d.ts +1 -1
  17. package/dist/kernel.js +6 -6
  18. package/dist/{knowledge-EDOC3wEs.js → knowledge-oUglku41.js} +3 -3
  19. package/dist/{knowledge-EDOC3wEs.js.map → knowledge-oUglku41.js.map} +1 -1
  20. package/dist/knowledge.d.ts +1 -1
  21. package/dist/knowledge.js +1 -1
  22. package/dist/{loop-runner-bin-DXqzpr4i.d.ts → loop-runner-bin-BLnkJfSV.d.ts} +2 -2
  23. package/dist/{loop-runner-bin-CoBcsxpe.js → loop-runner-bin-vVCZrAF2.js} +3 -3
  24. package/dist/{loop-runner-bin-CoBcsxpe.js.map → loop-runner-bin-vVCZrAF2.js.map} +1 -1
  25. package/dist/loop-runner-bin.d.ts +1 -1
  26. package/dist/loop-runner-bin.js +1 -1
  27. package/dist/mcp/bin.js +3 -3
  28. package/dist/mcp/index.d.ts +1 -1
  29. package/dist/mcp/index.js +4 -4
  30. package/dist/{openai-tools-BQHlv-Ex.js → openai-tools-DfoZEyvI.js} +2 -2
  31. package/dist/{openai-tools-BQHlv-Ex.js.map → openai-tools-DfoZEyvI.js.map} +1 -1
  32. package/dist/{runtime-DJMlvPY7.js → runtime-DZql0Fnh.js} +6 -6
  33. package/dist/{runtime-DJMlvPY7.js.map → runtime-DZql0Fnh.js.map} +1 -1
  34. package/dist/{structural-rollout-GX7EzxeM.js → structural-rollout-DkYIjD2D.js} +2 -2
  35. package/dist/{structural-rollout-GX7EzxeM.js.map → structural-rollout-DkYIjD2D.js.map} +1 -1
  36. package/dist/{supervise-7JtBc_eW.js → supervise-B8qbdlFz.js} +23 -2
  37. package/dist/{supervise-7JtBc_eW.js.map → supervise-B8qbdlFz.js.map} +1 -1
  38. package/dist/{supervisor-Bfh5Gq_P.js → supervisor-lbWTSscK.js} +24 -2
  39. package/dist/supervisor-lbWTSscK.js.map +1 -0
  40. package/dist/testing.d.ts +1 -1
  41. package/dist/testing.js +11 -11
  42. package/package.json +1 -1
  43. package/dist/graph-B0wXX8Pr.js.map +0 -1
  44. 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) throw new BackendTransportError("bridge", `bridgeExecutor: run ${args.run.id} completed without ${bridgeProfileMaterializationSchema}`);
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));
@@ -12563,4 +12585,4 @@ function isNonEmptySpend(s) {
12563
12585
  //#endregion
12564
12586
  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
12587
 
12566
- //# sourceMappingURL=supervisor-Bfh5Gq_P.js.map
12588
+ //# sourceMappingURL=supervisor-lbWTSscK.js.map