@tangle-network/agent-runtime 10.0.24 → 10.0.25

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 (55) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{activation-DLbBM2S0.js → activation-Cisx6g4A.js} +2 -2
  3. package/dist/{activation-DLbBM2S0.js.map → activation-Cisx6g4A.js.map} +1 -1
  4. package/dist/{activation-DUYtmQH_.d.ts → activation-oYJrqzpN.d.ts} +2 -2
  5. package/dist/agent.d.ts +1 -1
  6. package/dist/agent.js +2 -2
  7. package/dist/{delegate-Cz2GF_z7.js → delegate-CwMTrSRm.js} +2 -2
  8. package/dist/{delegate-Cz2GF_z7.js.map → delegate-CwMTrSRm.js.map} +1 -1
  9. package/dist/{driver-control-acknowledgers-pDEPMuML.js → driver-control-acknowledgers-B213ctJ9.js} +2 -2
  10. package/dist/{driver-control-acknowledgers-pDEPMuML.js.map → driver-control-acknowledgers-B213ctJ9.js.map} +1 -1
  11. package/dist/durable.d.ts +1 -1
  12. package/dist/durable.js +4 -4
  13. package/dist/{graph-D-LVPqrm.js → graph-DP8O_w3P.js} +4 -4
  14. package/dist/{graph-D-LVPqrm.js.map → graph-DP8O_w3P.js.map} +1 -1
  15. package/dist/{improve-BJW9OcEn.js → improve-WN8sqSH1.js} +5 -5
  16. package/dist/{improve-BJW9OcEn.js.map → improve-WN8sqSH1.js.map} +1 -1
  17. package/dist/index.d.ts +5 -5
  18. package/dist/index.js +8 -8
  19. package/dist/intelligence.d.ts +2 -2
  20. package/dist/intelligence.js +3 -3
  21. package/dist/kernel.d.ts +2 -2
  22. package/dist/kernel.js +10 -10
  23. package/dist/{loop-runner-BZWObfqa.js → loop-runner-B4Vjh1p9.js} +2 -2
  24. package/dist/{loop-runner-BZWObfqa.js.map → loop-runner-B4Vjh1p9.js.map} +1 -1
  25. package/dist/{loop-runner-ClANio8o.d.ts → loop-runner-Dc-Vij6a.d.ts} +2 -2
  26. package/dist/loop-runner-bin.d.ts +1 -1
  27. package/dist/loop-runner-bin.js +1 -1
  28. package/dist/mcp/bin.js +2 -2
  29. package/dist/mcp/index.d.ts +1 -1
  30. package/dist/mcp/index.js +4 -4
  31. package/dist/profiles.d.ts +1 -1
  32. package/dist/{provision-supervisor-ChGKJz8s.js → provision-supervisor-CqPcPBTA.js} +3 -3
  33. package/dist/{provision-supervisor-ChGKJz8s.js.map → provision-supervisor-CqPcPBTA.js.map} +1 -1
  34. package/dist/{run-state-6jJzk6gB.js → run-state-DXePNDvP.js} +2 -2
  35. package/dist/{run-state-6jJzk6gB.js.map → run-state-DXePNDvP.js.map} +1 -1
  36. package/dist/{runtime-Ddkn1wRr.js → runtime-DdfY-j79.js} +54 -33
  37. package/dist/{runtime-Ddkn1wRr.js.map → runtime-DdfY-j79.js.map} +1 -1
  38. package/dist/{search-executor-D9E9q-Pv.js → search-executor-COdCsn9r.js} +2 -2
  39. package/dist/{search-executor-D9E9q-Pv.js.map → search-executor-COdCsn9r.js.map} +1 -1
  40. package/dist/{server-BhXz3JyW.js → server-WSOQ-lg5.js} +2 -2
  41. package/dist/{server-BhXz3JyW.js.map → server-WSOQ-lg5.js.map} +1 -1
  42. package/dist/{structural-rollout-BL8KLLw8.js → structural-rollout-kOx5PFfU.js} +2 -2
  43. package/dist/{structural-rollout-BL8KLLw8.js.map → structural-rollout-kOx5PFfU.js.map} +1 -1
  44. package/dist/{supervise-C7mDlK7S.js → supervise-DEHDPDDb.js} +14 -7
  45. package/dist/supervise-DEHDPDDb.js.map +1 -0
  46. package/dist/{supervisor-BQwg_3T0.js → supervisor-C2KuUDnF.js} +16 -8
  47. package/dist/supervisor-C2KuUDnF.js.map +1 -0
  48. package/dist/testing.d.ts +1 -1
  49. package/dist/testing.js +11 -11
  50. package/dist/tui/index.d.ts +1 -1
  51. package/dist/tui/index.js +1 -1
  52. package/dist/{types-CByvdC7k.d.ts → types-CMSBna4M.d.ts} +9 -4
  53. package/package.json +1 -1
  54. package/dist/supervise-C7mDlK7S.js.map +0 -1
  55. package/dist/supervisor-BQwg_3T0.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DG8yufqX.js";
2
- import { c as budgetOverspendText, f as createFileRunContext, i as createCoordinationToolsForManager, l as coordinationVerbNames, m as withRunContext, n as createSteerAcknowledger, p as createInMemoryRunContext, r as createCoordinationTools, t as createCancelAcknowledger, u as normalizeAnalyzeOnSettle } from "./driver-control-acknowledgers-pDEPMuML.js";
3
- import { At as defineProfileMaterializationContract, B as toolResultText, C as captureReusableExecutorConfig, Dt as assertProfileMaterialization, Ft as renderUnsupported, H as routerBrain, I as codeModeArguments, K as providerOutputOptions, L as codeModeModelOutput, Lt as sandboxProfileMaterialization, Mt as profileMaterializationAxes$1, Nt as promptControlProfileMaterialization, Pt as promptModelProfileMaterialization, Q as createInbox, R as createCodeModeTools, Rt as unsupportedProfileDimensions, S as bindReusableExecutorExecutionId, T as snapshotExecutorConfig, V as createRouterTranscript, W as resolveAgentEnvironmentProvider, Z as INBOX_RECEIPT_KEY, _ as isDriverSpec, a as awaitRootWake, at as isPeerMailEnvelope, bt as bridgeStopSignalKey, d as bestDelivered, f as runFinalizer, g as driverExecutorFactory, h as driverChild, i as assertRunParking, jt as fullProfileMaterialization, kt as controlProfileMaterialization, l as sleepScopeWait, lt as bridgeAdmissionRefusal, m as createRootHandle, n as createSupervisor, nt as PEER_MAIL_WIRE_KEY, o as bindScopeParkingDrain, p as runTree, r as RunParkedError, s as isRunParked, u as withRunParking, ut as bridgeModelRouteRefusal, vt as bridgeRuntimeAttachmentsKey, w as createExecutor, yt as bridgeRuntimeEnvKey, zt as worktreeCliProfileMaterialization } from "./supervisor-BQwg_3T0.js";
2
+ import { c as budgetOverspendText, f as createFileRunContext, i as createCoordinationToolsForManager, l as coordinationVerbNames, m as withRunContext, n as createSteerAcknowledger, p as createInMemoryRunContext, r as createCoordinationTools, t as createCancelAcknowledger, u as normalizeAnalyzeOnSettle } from "./driver-control-acknowledgers-B213ctJ9.js";
3
+ import { At as defineProfileMaterializationContract, B as toolResultText, C as captureReusableExecutorConfig, Dt as assertProfileMaterialization, Ft as renderUnsupported, H as routerBrain, I as codeModeArguments, K as providerOutputOptions, L as codeModeModelOutput, Lt as sandboxProfileMaterialization, Mt as profileMaterializationAxes$1, Nt as promptControlProfileMaterialization, Pt as promptModelProfileMaterialization, Q as createInbox, R as createCodeModeTools, Rt as unsupportedProfileDimensions, S as bindReusableExecutorExecutionId, T as snapshotExecutorConfig, V as createRouterTranscript, W as resolveAgentEnvironmentProvider, Z as INBOX_RECEIPT_KEY, _ as isDriverSpec, a as awaitRootWake, at as isPeerMailEnvelope, bt as bridgeStopSignalKey, d as bestDelivered, f as runFinalizer, g as driverExecutorFactory, h as driverChild, i as assertRunParking, jt as fullProfileMaterialization, kt as controlProfileMaterialization, l as sleepScopeWait, lt as bridgeAdmissionRefusal, m as createRootHandle, n as createSupervisor, nt as PEER_MAIL_WIRE_KEY, o as bindScopeParkingDrain, p as runTree, r as RunParkedError, s as isRunParked, u as withRunParking, ut as bridgeModelRouteRefusal, vt as bridgeRuntimeAttachmentsKey, w as createExecutor, yt as bridgeRuntimeEnvKey, zt as worktreeCliProfileMaterialization } from "./supervisor-C2KuUDnF.js";
4
4
  import { a as freezeDetached, c as supervisionRunNamespace, i as externalExecutionId, l as workerAssignmentNamespace, n as childCoordinationOwner, o as freezeDetachedProfile, r as coordinationEventId, s as rootCoordinationOwner, t as canonicalExecution } from "./supervise-identity-DLPzZTp3.js";
5
5
  import { a as errMessage, c as errorStack, f as defaultRedactor, i as causeChain, l as errorText, n as detachedSnapshot, o as errorHttpStatus, u as providerTraceId } from "./snapshot-BKLziJ5K.js";
6
6
  import { t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
@@ -2129,6 +2129,7 @@ function flowOfSubtask(flow, mapItem) {
2129
2129
  function createFlowRun(nodeOfWorker) {
2130
2130
  const outputs = /* @__PURE__ */ new Map();
2131
2131
  let settled = {};
2132
+ let unassessedOutput = false;
2132
2133
  let stopped;
2133
2134
  let unrouted;
2134
2135
  const observe = (event) => {
@@ -2140,12 +2141,14 @@ function createFlowRun(nodeOfWorker) {
2140
2141
  stopped ??= detail;
2141
2142
  } else if (step.kind === "unrouted") unrouted ??= step;
2142
2143
  };
2143
- const finalizer = ({ delivered }) => {
2144
+ const finalizer = ({ delivered, allSettled }) => {
2144
2145
  settled = Object.fromEntries(delivered.flatMap((worker) => {
2145
2146
  const node = nodeOfWorker(worker.id);
2146
2147
  return node === void 0 || !("out" in worker) ? [] : [[node, worker.out]];
2147
2148
  }));
2148
- return stopped !== void 0 || unrouted !== void 0 || outputs.size === 0 ? void 0 : Object.fromEntries(outputs);
2149
+ const complete = stopped === void 0 && unrouted === void 0 && outputs.size > 0;
2150
+ unassessedOutput = complete && allSettled.every((worker) => worker.valid === void 0);
2151
+ return complete ? Object.fromEntries(outputs) : void 0;
2149
2152
  };
2150
2153
  const conclude = (result) => {
2151
2154
  if (unrouted !== void 0) return {
@@ -2188,7 +2191,8 @@ function createFlowRun(nodeOfWorker) {
2188
2191
  finalizer,
2189
2192
  conclude,
2190
2193
  failure,
2191
- routeCheck
2194
+ routeCheck,
2195
+ unassessedOutput: () => unassessedOutput
2192
2196
  };
2193
2197
  }
2194
2198
  // src/runtime/supervise/coordination-credentials.ts
@@ -3338,6 +3342,7 @@ function createGraphOverlay(validated, opts) {
3338
3342
  };
3339
3343
  const composeGuidance = (profile) => opts.guidance ? opts.guidance(profile) : profile;
3340
3344
  const resolveSpawnProfile = (authored) => {
3345
+ if (authored.metadata?.["agentRuntimeGraph"] !== void 0) return authored;
3341
3346
  const requested = typeof authored.name === "string" ? authored.name : void 0;
3342
3347
  const node = requested === void 0 ? void 0 : validated.workers.get(requested) ?? validated.analystNodes.get(requested) ?? validated.mapNodes.get(requested) ?? validated.flow?.nodes.get(requested);
3343
3348
  return node ? composeGuidance(node.profile) : authored;
@@ -7520,7 +7525,7 @@ function managedWorker(env, seat, admitted, spawnContext) {
7520
7525
  ...options.wake
7521
7526
  }
7522
7527
  });
7523
- return withModelSubstitution(driverChild(authorized, nested, journal, childExecution.ref, () => child.acceptedSubmission, env.recoveryFactories.get(child.childFactory), () => child.unassessedOutput, admitted.seatManagedLeaf ? child.managerDeliverable : void 0, ownGraph ? (out) => graphSubtaskOutput(ownGraph, out, ownFlow?.run.failure) : void 0), admitted.modelSubstitution);
7528
+ return withModelSubstitution(driverChild(authorized, nested, journal, childExecution.ref, () => child.acceptedSubmission, env.recoveryFactories.get(child.childFactory), () => child.unassessedOutput || ownFlow?.run.unassessedOutput() === true, admitted.seatManagedLeaf ? child.managerDeliverable : void 0, ownGraph ? (out) => graphSubtaskOutput(ownGraph, out, ownFlow?.run.failure) : void 0), admitted.modelSubstitution);
7524
7529
  }
7525
7530
  /**
7526
7531
  * The root of a `run_graph` subtask carries its graph's topology, and its subtree runs under that
@@ -8817,6 +8822,7 @@ function driveHarnessClaims() {
8817
8822
  */
8818
8823
  function bridgeSpawnPreflight(seam) {
8819
8824
  return async (profile) => {
8825
+ if (graphSubtaskOf(profile)?.entry !== void 0) return void 0;
8820
8826
  const wireModel = profileBridgeWireModel(profile);
8821
8827
  if (wireModel === void 0) return {
8822
8828
  cause: "model-route",
@@ -8846,6 +8852,7 @@ function providerSpawnPreflight(provider) {
8846
8852
  const validate = provider.validateProfile?.bind(provider);
8847
8853
  if (validate === void 0) return void 0;
8848
8854
  return async (profile) => {
8855
+ if (graphSubtaskOf(profile)?.entry !== void 0) return void 0;
8849
8856
  const result = await validate(providerVisibleProfile(profile));
8850
8857
  const errors = result.issues.filter((issue) => issue.level === "error");
8851
8858
  if (result.ok && errors.length === 0) return void 0;
@@ -9576,4 +9583,4 @@ function superviseWithContext(profile, task, opts, brain) {
9576
9583
  }
9577
9584
  export { validateGraphTopology as A, allWorkersStalled as B, createFlowRun as C, validateFlowGraph as D, routeFlowOf as E, dumbContinuationPassPrompt as F, areaUnderCurve as G, noProgressFor as H, formatPromptHandle as I, renderAnytimeTable as J, bestSoFar as K, kernelPromptRegistry as L, createPromptRegistry as M, delegatesWorkerBriefPrompt as N, defaultEdgeTraversalCap as O, dumbContinuationFailPrompt as P, naiveContinuationPrompt as R, GraphRouteError as S, journaledGateDecider as T, plateau as U, anyOf as V, anytimeReport as W, createSupervisorSpanRecorder as Y, graphFlowSpawnProfile as _, bridgeProfileRefusal as a, serveCoordinationMcp as b, ASSISTANT_REASONING_SPAN as c, runToolSpans as d, UNPROVEN_CONTINUITY as f, createGraphOverlay as g, runBrainLoop as h, workerFromBackend as i, analyzesFindingsReportPrompt as j, graphRootProfile as k, ASSISTANT_TEXT_SPAN as l, driverAgent as m, superviseFleetCapabilities as n, supervisorAgent as o, composeReentryTask as p, plateauLength as q, superviseWithTestBrain as r, supervisorAgentWithTestBrain as s, supervise as t, rootStreamToolSpans as u, profileGuidanceComposer as v, flowRootProfile as w, coordinationControlToolNames as x, superviseRootProfile as y, promptHandle as z };
9578
9585
 
9579
- //# sourceMappingURL=supervise-C7mDlK7S.js.map
9586
+ //# sourceMappingURL=supervise-DEHDPDDb.js.map