@tangle-network/agent-runtime 0.218.2 → 0.219.0

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 (46) hide show
  1. package/dist/{activation-BLKHwI65.js → activation-C-8VqFSN.js} +2 -2
  2. package/dist/{activation-BLKHwI65.js.map → activation-C-8VqFSN.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{coordination-driver-DVzm7Tlo.js → coordination-driver-CvinSUI-.js} +2 -2
  6. package/dist/{coordination-driver-DVzm7Tlo.js.map → coordination-driver-CvinSUI-.js.map} +1 -1
  7. package/dist/{delegate-DoejjUdz.js → delegate-BH8r8hkQ.js} +2 -2
  8. package/dist/{delegate-DoejjUdz.js.map → delegate-BH8r8hkQ.js.map} +1 -1
  9. package/dist/durable.d.ts +1 -1
  10. package/dist/durable.js +2 -2
  11. package/dist/{graph-CAi1I_2o.js → graph-5N4gLnOt.js} +3 -3
  12. package/dist/{graph-CAi1I_2o.js.map → graph-5N4gLnOt.js.map} +1 -1
  13. package/dist/{improvement-cycle-DAMh1H6T.js → improvement-cycle-BIAKVZ3B.js} +3 -3
  14. package/dist/{improvement-cycle-DAMh1H6T.js.map → improvement-cycle-BIAKVZ3B.js.map} +1 -1
  15. package/dist/{index-DjgcOl1K.d.ts → index-CLDpu-bs.d.ts} +5 -3
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.js +7 -7
  18. package/dist/intelligence.js +3 -3
  19. package/dist/kernel.d.ts +1 -1
  20. package/dist/kernel.js +8 -8
  21. package/dist/{loop-runner-bin-B0O51XXu.js → loop-runner-bin-CTEJAcac.js} +3 -3
  22. package/dist/{loop-runner-bin-B0O51XXu.js.map → loop-runner-bin-CTEJAcac.js.map} +1 -1
  23. package/dist/{loop-runner-bin-BACjC-lm.d.ts → loop-runner-bin-Cn9DBrLv.d.ts} +2 -2
  24. package/dist/loop-runner-bin.d.ts +1 -1
  25. package/dist/loop-runner-bin.js +1 -1
  26. package/dist/mcp/bin.js +3 -3
  27. package/dist/mcp/index.d.ts +1 -1
  28. package/dist/mcp/index.js +4 -4
  29. package/dist/{provision-supervisor-B7k56EGS.js → provision-supervisor-40EOGn14.js} +3 -3
  30. package/dist/{provision-supervisor-B7k56EGS.js.map → provision-supervisor-40EOGn14.js.map} +1 -1
  31. package/dist/{runtime-D7cA__Lw.js → runtime-BDK_GOAd.js} +8 -8
  32. package/dist/{runtime-D7cA__Lw.js.map → runtime-BDK_GOAd.js.map} +1 -1
  33. package/dist/{server-N09ZChmr.js → server-DuvbSAVA.js} +3 -3
  34. package/dist/{server-N09ZChmr.js.map → server-DuvbSAVA.js.map} +1 -1
  35. package/dist/{structural-rollout-DLdNDY6d.js → structural-rollout-BAr61WjX.js} +2 -2
  36. package/dist/{structural-rollout-DLdNDY6d.js.map → structural-rollout-BAr61WjX.js.map} +1 -1
  37. package/dist/{supervise-uUAqm_kQ.js → supervise-W_mtzswa.js} +8 -6
  38. package/dist/supervise-W_mtzswa.js.map +1 -0
  39. package/dist/{supervisor-CUlzJ5IO.js → supervisor-WRrw0nlk.js} +2 -2
  40. package/dist/{supervisor-CUlzJ5IO.js.map → supervisor-WRrw0nlk.js.map} +1 -1
  41. package/dist/testing.d.ts +1 -1
  42. package/dist/testing.js +12 -12
  43. package/dist/tui/index.d.ts +1 -1
  44. package/dist/tui/index.js +1 -1
  45. package/package.json +1 -1
  46. package/dist/supervise-uUAqm_kQ.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { $ as createExecutor, A as scopeRetainedOwnerPriorSpend, An as unmeteredSpend, Bn as retainedExecutorSeamKey, Ct as spendFromUsageEvents, D as consumeScopeRetainedOwnerResult, Fn as withBudgetResources, Fr as fullProfileMaterialization, Gt as bridgeModelRouteRefusal, Hr as renderUnsupported, Ir as profileMaterializationAxes$1, J as teardownExecutor, Kr as worktreeCliProfileMaterialization, Lr as promptControlProfileMaterialization, Mn as zeroSpend, Mr as assertProfileMaterialization, Nn as addResourceSpend, Nr as controlProfileMaterialization, Nt as createInbox, O as prepareScopeRetainedOwnerTask, Pn as resourceTelemetry, Pr as defineProfileMaterializationContract, Qr as attestRuntimeOwnedScopeOwner, Rr as promptModelProfileMaterialization, Vn as RunCancellationReason, Wr as unsupportedProfileDimensions, Wt as bridgeAdmissionRefusal, X as captureReusableExecutorConfig, Xt as bridgeRuntimeAttachmentsKey, Y as bindReusableExecutorExecutionId, Zt as bridgeStopSignalKey, _ as recordScopeOwnerMaterialization, ai as providerAttemptEvidence, bt as contentAddress, c as driverChild, ci as runtimeOwnedExecutorExecutionBinding, cn as routerBrain, di as runtimeOwnedPendingExecutorMaterialization, f as beginScopeOwnerAttempt, fi as runtimeOwnedScopeOwnerRuntime, g as meterRuntimeOwnedProviderAttempt, gn as resolveAgentEnvironmentProvider, h as meterRuntimeOwnedAccounting, j as scopeRetainedOwnerResult, jn as withTimeout, k as scopeRetainedOwnerContext, l as driverExecutorFactory, li as runtimeOwnedExecutorMaterialization, m as deriveNodeExecutionIdentity, mr as toOtelAttributes, n as createSupervisor, o as runFinalizer, oi as recordRuntimeOwnedDriveHarnessProviderEvidence, q as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, r as bestDelivered, s as runTree, si as runtimeOwnedDriveHarnessProviderEvidence, sr as createOtelExporter, t as createRootHandle, ti as inheritRuntimeOwnedExecutorAttestation, tt as snapshotExecutorConfig, u as isDriverSpec, ui as runtimeOwnedExecutorProviderEvidence, ur as generateSpanId, v as restoreScopeOwnerAcceptedExecution, vi as detachedSnapshot, vn as addSpend, wt as WORKER_TRACE_PROPAGATION, xt as assertValidBudget, y as scopeOwnerExecutorNodeContext, zn as registerRetainedExecutorPreparation } from "./supervisor-CUlzJ5IO.js";
1
+ import { $ as createExecutor, $r as attestRuntimeOwnedScopeOwner, A as scopeRetainedOwnerPriorSpend, An as unmeteredSpend, Bn as retainedExecutorSeamKey, Ct as spendFromUsageEvents, D as consumeScopeRetainedOwnerResult, Fn as withBudgetResources, Fr as defineProfileMaterializationContract, Gr as unsupportedProfileDimensions, Gt as bridgeModelRouteRefusal, Ir as fullProfileMaterialization, J as teardownExecutor, Lr as profileMaterializationAxes$1, Mn as zeroSpend, Nn as addResourceSpend, Nr as assertProfileMaterialization, Nt as createInbox, O as prepareScopeRetainedOwnerTask, Pn as resourceTelemetry, Pr as controlProfileMaterialization, Rr as promptControlProfileMaterialization, Ur as renderUnsupported, Vn as RunCancellationReason, Wn as runAbortable, Wt as bridgeAdmissionRefusal, X as captureReusableExecutorConfig, Xt as bridgeRuntimeAttachmentsKey, Y as bindReusableExecutorExecutionId, Zt as bridgeStopSignalKey, _ as recordScopeOwnerMaterialization, bt as contentAddress, c as driverChild, ci as runtimeOwnedDriveHarnessProviderEvidence, cn as routerBrain, cr as createOtelExporter, di as runtimeOwnedExecutorProviderEvidence, dr as generateSpanId, f as beginScopeOwnerAttempt, fi as runtimeOwnedPendingExecutorMaterialization, g as meterRuntimeOwnedProviderAttempt, gn as resolveAgentEnvironmentProvider, h as meterRuntimeOwnedAccounting, hr as toOtelAttributes, j as scopeRetainedOwnerResult, jn as withTimeout, k as scopeRetainedOwnerContext, l as driverExecutorFactory, li as runtimeOwnedExecutorExecutionBinding, m as deriveNodeExecutionIdentity, n as createSupervisor, ni as inheritRuntimeOwnedExecutorAttestation, o as runFinalizer, oi as providerAttemptEvidence, pi as runtimeOwnedScopeOwnerRuntime, q as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, qr as worktreeCliProfileMaterialization, r as bestDelivered, s as runTree, si as recordRuntimeOwnedDriveHarnessProviderEvidence, t as createRootHandle, tt as snapshotExecutorConfig, u as isDriverSpec, ui as runtimeOwnedExecutorMaterialization, v as restoreScopeOwnerAcceptedExecution, vn as addSpend, wt as WORKER_TRACE_PROPAGATION, xt as assertValidBudget, y as scopeOwnerExecutorNodeContext, yi as detachedSnapshot, zn as registerRetainedExecutorPreparation, zr as promptModelProfileMaterialization } from "./supervisor-WRrw0nlk.js";
2
2
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError, r as BackendTransportError, t as AgentEvalError } from "./errors-DodWX-cb.js";
3
3
  import { a as concreteProfileModel, c as profileModelExecutionSettings, d as agentHarness, f as harnessRunsAgent, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-DKDyr-fc.js";
4
4
  import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
5
5
  import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-hZREkcfu.js";
6
- import { C as createCoordinationTools, F as watchRunCancellation, M as createInMemoryRunContext, P as applyRunCancellation, S as coordinationVerbNames, c as createProgressTracker, d as progressStop, j as createFileRunContext, r as driverAgent, y as DEFAULT_AWAIT_EVENT_TIMEOUT_MS } from "./coordination-driver-DVzm7Tlo.js";
6
+ import { C as createCoordinationTools, F as watchRunCancellation, M as createInMemoryRunContext, P as applyRunCancellation, S as coordinationVerbNames, c as createProgressTracker, d as progressStop, j as createFileRunContext, r as driverAgent, y as DEFAULT_AWAIT_EVENT_TIMEOUT_MS } from "./coordination-driver-CvinSUI-.js";
7
7
  import { t as createStdioToolServer } from "./tool-server-BJbCPhoW.js";
8
8
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
9
9
  import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
@@ -957,11 +957,13 @@ async function serveCoordinationMcp(opts) {
957
957
  const localUrl = `http://${host.includes(":") && !host.startsWith("[") ? `[${host}]` : host}:${port}/mcp`;
958
958
  let url;
959
959
  try {
960
- const configured = typeof opts.publicUrl === "function" ? opts.publicUrl({
960
+ const resolver = opts.publicUrl;
961
+ const configured = typeof resolver === "function" ? await runAbortable(async () => resolver({
961
962
  host,
962
963
  port,
963
- ...identity
964
- }) : opts.publicUrl;
964
+ ...identity,
965
+ signal: opts.scope.signal
966
+ }), opts.scope.signal, "coordination public address resolution aborted") : resolver;
965
967
  const publicAddress = new URL(configured ?? localUrl);
966
968
  if (!["http:", "https:"].includes(publicAddress.protocol) || publicAddress.username || publicAddress.password || publicAddress.search || publicAddress.hash) throw new ConfigError("coordination publicUrl must be an HTTP endpoint without credentials, query, or fragment");
967
969
  if (configured !== void 0 && publicAddress.protocol !== "https:" && !isLoopbackHost(publicAddress.hostname)) throw new ConfigError("remote coordination publicUrl must use HTTPS");
@@ -3657,4 +3659,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
3657
3659
  //#endregion
3658
3660
  export { serveCoordinationMcp as _, isPreSpawnExecutorFailure as a, mapExecutorResult as b, withWorkerSpawnRetry as c, resolveSupervisorProfile as d, supervisorAgent as f, defaultUnmetContractSteer as g, classifyDriverFailure as h, workerFromBackend as i, assertCoordinationBinding as l, DriverAttemptsExhaustedError as m, supervise as n, resolveWorkerSpawnRetry as o, supervisorAgentWithTestBrain as p, superviseWithTestBrain as r, retryPreSpawnRefusals as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, coordinationProfileToolPrefix as u, createSupervisorSpanRecorder as v, gateOnDeliverable as y };
3659
3661
 
3660
- //# sourceMappingURL=supervise-uUAqm_kQ.js.map
3662
+ //# sourceMappingURL=supervise-W_mtzswa.js.map