@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.
Files changed (60) hide show
  1. package/dist/{activation-q9Zo4NRy.js → activation-BFGP4ZnG.js} +2 -2
  2. package/dist/{activation-q9Zo4NRy.js.map → activation-BFGP4ZnG.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-CM9sA8yD.js} +2 -2
  6. package/dist/{authoring-CmzMOTKX.js.map → authoring-CM9sA8yD.js.map} +1 -1
  7. package/dist/{conversation-DYVSghi8.js → conversation-DIUtiLkC.js} +2 -2
  8. package/dist/{conversation-DYVSghi8.js.map → conversation-DIUtiLkC.js.map} +1 -1
  9. package/dist/conversation.d.ts +1 -1
  10. package/dist/conversation.js +1 -1
  11. package/dist/{environment-provider-DIRm41xB.d.ts → environment-provider-BIZMHOQw.d.ts} +2 -2
  12. package/dist/environment-provider.d.ts +1 -1
  13. package/dist/{graph-B0wXX8Pr.js → graph-ICXhoz8O.js} +3 -2
  14. package/dist/graph-ICXhoz8O.js.map +1 -0
  15. package/dist/{improvement-cycle-4dO93TTE.js → improvement-cycle-b9IYBOJw.js} +4 -4
  16. package/dist/{improvement-cycle-4dO93TTE.js.map → improvement-cycle-b9IYBOJw.js.map} +1 -1
  17. package/dist/{index-SWNlB0Hv.d.ts → index-0qU8jNOJ.d.ts} +13 -5
  18. package/dist/{index-7VFw3_z0.d.ts → index-DJ9qeOi3.d.ts} +4 -4
  19. package/dist/{index-BbdLlSh6.d.ts → index-RYbM0cUo.d.ts} +2 -2
  20. package/dist/index.d.ts +7 -7
  21. package/dist/index.js +9 -9
  22. package/dist/intelligence.d.ts +4 -4
  23. package/dist/intelligence.js +3 -3
  24. package/dist/kernel.d.ts +5 -5
  25. package/dist/kernel.js +7 -7
  26. package/dist/{knowledge-EDOC3wEs.js → knowledge-Dxa5L4sb.js} +3 -3
  27. package/dist/{knowledge-EDOC3wEs.js.map → knowledge-Dxa5L4sb.js.map} +1 -1
  28. package/dist/knowledge.d.ts +1 -1
  29. package/dist/knowledge.js +1 -1
  30. package/dist/{loop-runner-bin-CoBcsxpe.js → loop-runner-bin-B7yytyZx.js} +3 -3
  31. package/dist/{loop-runner-bin-CoBcsxpe.js.map → loop-runner-bin-B7yytyZx.js.map} +1 -1
  32. package/dist/{loop-runner-bin-DXqzpr4i.d.ts → loop-runner-bin-W7MjoHUk.d.ts} +3 -3
  33. package/dist/loop-runner-bin.d.ts +1 -1
  34. package/dist/loop-runner-bin.js +1 -1
  35. package/dist/mcp/bin.js +3 -3
  36. package/dist/mcp/index.d.ts +3 -3
  37. package/dist/mcp/index.js +4 -4
  38. package/dist/{openai-tools-BQHlv-Ex.js → openai-tools-DYTkum5Z.js} +2 -2
  39. package/dist/{openai-tools-BQHlv-Ex.js.map → openai-tools-DYTkum5Z.js.map} +1 -1
  40. package/dist/primeintellect/index.d.ts +1 -1
  41. package/dist/{redact-DTVIFTeR.d.ts → redact-Bojh05mQ.d.ts} +3 -3
  42. package/dist/{runtime-C60zv0Q4.d.ts → runtime-DHrzFy2v.d.ts} +3 -3
  43. package/dist/{runtime-DJMlvPY7.js → runtime-DPhY69h0.js} +7 -7
  44. package/dist/{runtime-DJMlvPY7.js.map → runtime-DPhY69h0.js.map} +1 -1
  45. package/dist/{stream-agent-turn-BLuTjcvw.d.ts → stream-agent-turn-BEv31Log.d.ts} +2 -2
  46. package/dist/{stream-agent-turn-DYBpzMmq.js → stream-agent-turn-Q5ellSUu.js} +10 -1
  47. package/dist/stream-agent-turn-Q5ellSUu.js.map +1 -0
  48. package/dist/{structural-rollout-GX7EzxeM.js → structural-rollout-B4ITMlW-.js} +3 -3
  49. package/dist/{structural-rollout-GX7EzxeM.js.map → structural-rollout-B4ITMlW-.js.map} +1 -1
  50. package/dist/{supervise-7JtBc_eW.js → supervise-CR8zPmfT.js} +23 -2
  51. package/dist/{supervise-7JtBc_eW.js.map → supervise-CR8zPmfT.js.map} +1 -1
  52. package/dist/{supervisor-Bfh5Gq_P.js → supervisor-DEEGgN_S.js} +55 -5
  53. package/dist/supervisor-DEEGgN_S.js.map +1 -0
  54. package/dist/testing.d.ts +2 -2
  55. package/dist/testing.js +11 -11
  56. package/dist/{types-CfQbuWgo.d.ts → types-C7UNjVce.d.ts} +10 -3
  57. package/package.json +1 -1
  58. package/dist/graph-B0wXX8Pr.js.map +0 -1
  59. package/dist/stream-agent-turn-DYBpzMmq.js.map +0 -1
  60. package/dist/supervisor-Bfh5Gq_P.js.map +0 -1
@@ -4,7 +4,7 @@ import { S as contentAddress, b as parseWorkerToolTraceArtifact, d as prepareJso
4
4
  import { n as chargedTokens } from "./util-C1bv6yog.js";
5
5
  import { a as concreteProfileModel, d as harnessRunsAgent, n as assertModelAllowed, r as assertProfileModelsAllowed, s as profileModelExecutionSettings, t as assertExecutableAgentProfile, u as agentHarness } from "./model-policy-UTTc9Z-A.js";
6
6
  import { S as runtimeOwnedScopeOwnerRuntime, _ as runtimeOwnedDriveHarnessProviderEvidence, b as runtimeOwnedExecutorProviderEvidence, d as recordRuntimeOwnedDriveHarnessProviderEvidence, i as attestRuntimeOwnedScopeOwner, s as inheritRuntimeOwnedExecutorAttestation, v as runtimeOwnedExecutorExecutionBinding, x as runtimeOwnedPendingExecutorMaterialization, y as runtimeOwnedExecutorMaterialization } from "./materialization-BP5zspr2.js";
7
- import { $ as createInbox, B as WORKER_TRACE_PROPAGATION, D as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Et as toOtelAttributes, Gt as controlProfileMaterialization, I as createExecutor, Jt as profileMaterializationAxes$1, Kt as defineProfileMaterializationContract, L as createExecutorRegistry, M as bindReusableExecutorExecutionId, N as bridgeStopSignalKey, O as teardownExecutor, P as captureReusableExecutorConfig, R as snapshotExecutorConfig, St as generateSpanId, Wt as assertProfileMaterialization, Xt as promptModelProfileMaterialization, Yt as promptControlProfileMaterialization, a as pickBestDelivered, c as driverChild, d as deriveNodeExecutionIdentity, f as meterRuntimeOwnedAccounting, gt as buildLoopSpanNodes, h as scopeOwnerExecutorNodeContext, j as spendFromUsageEvents, k as assertValidBudget, l as withDriverExecutor, m as recordScopeOwnerMaterialization, n as createSupervisor, nn as worktreeCliProfileMaterialization, o as runFinalizer, ot as routerBrain, p as meterRuntimeOwnedProviderAttempt, qt as fullProfileMaterialization, r as bestDelivered, s as runTree, st as runBrainLoop, w as freeSlots, yt as createOtelExporter } from "./supervisor-Bfh5Gq_P.js";
7
+ import { $ as createInbox, B as WORKER_TRACE_PROPAGATION, D as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Et as toOtelAttributes, Gt as controlProfileMaterialization, I as createExecutor, Jt as profileMaterializationAxes$1, Kt as defineProfileMaterializationContract, L as createExecutorRegistry, M as bindReusableExecutorExecutionId, N as bridgeStopSignalKey, O as teardownExecutor, P as captureReusableExecutorConfig, R as snapshotExecutorConfig, St as generateSpanId, Wt as assertProfileMaterialization, Xt as promptModelProfileMaterialization, Yt as promptControlProfileMaterialization, a as pickBestDelivered, c as driverChild, d as deriveNodeExecutionIdentity, f as meterRuntimeOwnedAccounting, gt as buildLoopSpanNodes, h as scopeOwnerExecutorNodeContext, j as spendFromUsageEvents, k as assertValidBudget, l as withDriverExecutor, m as recordScopeOwnerMaterialization, n as createSupervisor, nn as worktreeCliProfileMaterialization, o as runFinalizer, ot as routerBrain, p as meterRuntimeOwnedProviderAttempt, qt as fullProfileMaterialization, r as bestDelivered, s as runTree, st as runBrainLoop, w as freeSlots, yt as createOtelExporter } from "./supervisor-DEEGgN_S.js";
8
8
  import { t as composeRuntimeHooks } from "./runtime-hooks-C7iJOWm3.js";
9
9
  import { t as createStdioToolServer } from "./tool-server-Dh-NcbHr.js";
10
10
  import { n as UI_LENSES } from "./substrate-B0TYNrXn.js";
@@ -5320,6 +5320,19 @@ function resourceInstructionLines(instructions) {
5320
5320
  throw new ConfigError(`supervisorAgent: profile.resources.instructions is a github resource reference (${JSON.stringify(instructions.path)}), which cannot be fetched while the supervisor is built — pass the instruction text as a string or an inline resource`);
5321
5321
  }
5322
5322
  /**
5323
+ * Refuse a best-effort resource policy on the router arm.
5324
+ *
5325
+ * The router arm inlines `resources.instructions` into the standing prompt and has no channel that
5326
+ * could report a resource it skipped. `resources.failOnError: false` asks for the supported subset
5327
+ * plus a warning about the rest, so this arm cannot honor it. Running such a profile as strict
5328
+ * would apply a policy the profile did not ask for, which is the silent drop the materialization
5329
+ * contract exists to prevent.
5330
+ */
5331
+ function assertRouterArmResourcePolicy(profile) {
5332
+ if (profile.resources?.failOnError !== false) return;
5333
+ throw new ConfigError("supervisorAgent: resources.failOnError: false requests a best-effort resource subset; the router-brained supervisor inlines its resources and reports no skipped resource, so the best-effort policy is refused rather than applied as strict");
5334
+ }
5335
+ /**
5323
5336
  * The standing instruction both arms run under: `prompt.systemPrompt`, then canonical prompt and
5324
5337
  * resource instruction lines.
5325
5338
  * `undefined` only when the profile names none at all.
@@ -5413,6 +5426,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
5413
5426
  if (harness === null && coordination !== void 0) throw new ConfigError("supervisorAgent: coordination binding is only meaningful for a harness-brained supervisor (profile.harness set). A router-brained supervisor calls the coordination verbs in process and serves no MCP, so this binding would be silently ignored.");
5414
5427
  if (harness !== null && deps.compaction) throw new ValidationError("supervisorAgent: compaction is only supported for router-brained supervisors (profile.harness omitted or cli-base)");
5415
5428
  if (harness === null) {
5429
+ assertRouterArmResourcePolicy(stableProfile);
5416
5430
  const brain = testBrain ?? routerBrainFromProfile(stableProfile, stableRouter);
5417
5431
  const inbox = createInbox();
5418
5432
  const build = (priorCoordination, nodeTools, onEvent) => driverAgent({
@@ -5730,6 +5744,12 @@ function assertBackendProfileMaterialization(profile, backend, context) {
5730
5744
  * `resources.instructions`), and the resolved model id (`model.default`); the remaining model
5731
5745
  * fields are either applied by the profile-bound Router adapter or refused. Every behavioral axis
5732
5746
  * the Router brain cannot materialize fails before compute.
5747
+ *
5748
+ * `resourceFailOnError` is carried by the router arm itself. A strict root fails closed on an
5749
+ * instruction resource the arm cannot fetch, which is the policy the profile declares. A
5750
+ * best-effort root is refused, because the arm reports no skipped resource. Dropping the field
5751
+ * would instead force an edit to a champion profile before it can be re-seated as a supervisor
5752
+ * root, and that edit changes the profile's canonical identity.
5733
5753
  */
5734
5754
  const routerSupervisorProfileMaterialization = defineProfileMaterializationContract({
5735
5755
  name: "router-supervisor-execution",
@@ -5741,6 +5761,7 @@ const routerSupervisorProfileMaterialization = defineProfileMaterializationContr
5741
5761
  "systemPrompt",
5742
5762
  "instructions",
5743
5763
  "resourceInstructions",
5764
+ "resourceFailOnError",
5744
5765
  "modelDefault",
5745
5766
  "modelProvider",
5746
5767
  "modelReasoningEffort",
@@ -6568,4 +6589,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
6568
6589
  //#endregion
6569
6590
  export { DELEGATION_TRACE_MAX_BYTES as $, DELEGATION_HISTORY_INPUT_SCHEMA as A, defaultToolDetectors as At, DELEGATE_FEEDBACK_INPUT_SCHEMA as B, createMcpServer as C, plateauLength as Ct, createDelegationStatusHandler as D, createCoordinationTools as Dt, DELEGATION_STATUS_TOOL_NAME as E, canonicalFindingEvent as Et, DELEGATE_UI_AUDIT_INPUT_SCHEMA as F, createSupervisorSpanRecorder as Ft, DELEGATE_INPUT_SCHEMA as G, createDelegateFeedbackHandler as H, DELEGATE_UI_AUDIT_TOOL_NAME as I, gateOnDeliverable as It, validateDelegateArgs as J, DELEGATE_TOOL_NAME as K, createDelegateUiAuditHandler as L, mapExecutorResult as Lt, createDelegationHistoryHandler as M, createFileRunContext as Mt, validateDelegationHistoryArgs as N, createInMemoryRunContext as Nt, validateDelegationStatusArgs as O, normalizeAnalyzeOnSettle as Ot, DELEGATE_UI_AUDIT_DESCRIPTION as P, FileCoordinationLog as Pt, hashIdempotencyInput as Q, validateDelegateUiAuditArgs as R, createInProcessTransport as S, bestSoFar as St, DELEGATION_STATUS_INPUT_SCHEMA as T, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as Tt, validateDelegateFeedbackArgs as U, DELEGATE_FEEDBACK_TOOL_NAME as V, DELEGATE_DESCRIPTION as W, delegate as X, defaultDelegateBudget as Y, DelegationTaskQueue as Z, promptHandle as _, noProgressFor as _t, assertCoordinationBinding as a, DelegationPersistenceError as at, classifyDriverFailure as b, anytimeReport as bt, supervisorAgentWithTestBrain as c, InMemoryDelegationStore as ct, delegatesWorkerBriefPrompt as d, driverAgent as dt, DELEGATION_TRACE_MAX_SPANS as et, dumbContinuationFailPrompt as f, finalizeBestDelivered as ft, naiveContinuationPrompt as g, createProgressTracker as gt, kernelPromptRegistry as h, anyOf as ht, workerFromBackend as i, createDelegationTraceCollector as it, DELEGATION_HISTORY_TOOL_NAME as j, watchTrace as jt, DELEGATION_HISTORY_DESCRIPTION as k, createEventBus as kt, analyzesFindingsReportPrompt as l, InMemoryFeedbackStore as lt, formatPromptHandle as m, allWorkersStalled as mt, supervise as n, capDelegationTrace as nt, resolveSupervisorProfile as o, DelegationStateCorruptError as ot, dumbContinuationPassPrompt as p, allOf as pt, createDelegateHandler as q, superviseWithTestBrain as r, composeLoopTraceEmitters as rt, supervisorAgent as s, FileDelegationStore as st, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, buildDelegationTraceSpans as tt, createPromptRegistry as u, eventToSnapshot as ut, supervisorPolicyPrompt as v, plateau as vt, DELEGATION_STATUS_DESCRIPTION as w, renderAnytimeTable as wt, serveCoordinationMcp as x, areaUnderCurve as xt, DriverAttemptsExhaustedError as y, sampleFromSettled as yt, DELEGATE_FEEDBACK_DESCRIPTION as z };
6570
6591
 
6571
- //# sourceMappingURL=supervise-7JtBc_eW.js.map
6592
+ //# sourceMappingURL=supervise-CR8zPmfT.js.map