@tangle-network/agent-runtime 0.218.1 → 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.
- package/dist/{activation-DI04_3R-.js → activation-C-8VqFSN.js} +2 -2
- package/dist/{activation-DI04_3R-.js.map → activation-C-8VqFSN.js.map} +1 -1
- package/dist/{activation-D5bSCvRA.d.ts → activation-D-YAPCtn.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-rlM6lqtZ.js → coordination-driver-CvinSUI-.js} +2 -2
- package/dist/{coordination-driver-rlM6lqtZ.js.map → coordination-driver-CvinSUI-.js.map} +1 -1
- package/dist/{delegate-CVlTAKGU.js → delegate-BH8r8hkQ.js} +2 -2
- package/dist/{delegate-CVlTAKGU.js.map → delegate-BH8r8hkQ.js.map} +1 -1
- package/dist/durable.d.ts +8 -2
- package/dist/durable.js +4 -2
- package/dist/durable.js.map +1 -1
- package/dist/{graph-i9EWCOK7.js → graph-5N4gLnOt.js} +4 -3
- package/dist/graph-5N4gLnOt.js.map +1 -0
- package/dist/{improvement-cycle-DqfEWpFs.js → improvement-cycle-BIAKVZ3B.js} +3 -3
- package/dist/{improvement-cycle-DqfEWpFs.js.map → improvement-cycle-BIAKVZ3B.js.map} +1 -1
- package/dist/{index-DgDpB-HB.d.ts → index-CLDpu-bs.d.ts} +15 -5
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +3 -3
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-BiZuxoZW.js → loop-runner-bin-CTEJAcac.js} +3 -3
- package/dist/{loop-runner-bin-BiZuxoZW.js.map → loop-runner-bin-CTEJAcac.js.map} +1 -1
- package/dist/{loop-runner-bin-CDs3H8Ej.d.ts → loop-runner-bin-Cn9DBrLv.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 +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/{provision-supervisor-SvnQnnII.js → provision-supervisor-40EOGn14.js} +3 -3
- package/dist/{provision-supervisor-SvnQnnII.js.map → provision-supervisor-40EOGn14.js.map} +1 -1
- package/dist/{runtime-DGdRJN30.js → runtime-BDK_GOAd.js} +8 -8
- package/dist/{runtime-DGdRJN30.js.map → runtime-BDK_GOAd.js.map} +1 -1
- package/dist/{server-BNE25y3V.js → server-DuvbSAVA.js} +3 -3
- package/dist/{server-BNE25y3V.js.map → server-DuvbSAVA.js.map} +1 -1
- package/dist/{stream-agent-turn-DPv9w25U.d.ts → stream-agent-turn-DSrEMRwR.d.ts} +89 -2
- package/dist/{structural-rollout-Bb0d3o-X.js → structural-rollout-BAr61WjX.js} +2 -2
- package/dist/{structural-rollout-Bb0d3o-X.js.map → structural-rollout-BAr61WjX.js.map} +1 -1
- package/dist/{supervise-DV0dlkir.js → supervise-W_mtzswa.js} +10 -6
- package/dist/supervise-W_mtzswa.js.map +1 -0
- package/dist/{supervisor-DELeLQRJ.js → supervisor-WRrw0nlk.js} +225 -42
- package/dist/supervisor-WRrw0nlk.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/graph-i9EWCOK7.js.map +0 -1
- package/dist/supervise-DV0dlkir.js.map +0 -1
- package/dist/supervisor-DELeLQRJ.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as createExecutor, A as scopeRetainedOwnerPriorSpend, An as
|
|
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-
|
|
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
|
|
960
|
+
const resolver = opts.publicUrl;
|
|
961
|
+
const configured = typeof resolver === "function" ? await runAbortable(async () => resolver({
|
|
961
962
|
host,
|
|
962
963
|
port,
|
|
963
|
-
...identity
|
|
964
|
-
|
|
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");
|
|
@@ -2875,6 +2877,7 @@ const superviseOptionKeySet = /* @__PURE__ */ new Set([
|
|
|
2875
2877
|
"blobs",
|
|
2876
2878
|
"budget",
|
|
2877
2879
|
"childSettleGraceMs",
|
|
2880
|
+
"retainedAtSettlement",
|
|
2878
2881
|
"compaction",
|
|
2879
2882
|
"continuityByProfile",
|
|
2880
2883
|
"coordination",
|
|
@@ -3597,6 +3600,7 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
3597
3600
|
} },
|
|
3598
3601
|
maxDepth: options.maxDepth ?? 8,
|
|
3599
3602
|
...options.childSettleGraceMs !== void 0 ? { childSettleGraceMs: options.childSettleGraceMs } : {},
|
|
3603
|
+
...options.retainedAtSettlement !== void 0 ? { retainedAtSettlement: options.retainedAtSettlement } : {},
|
|
3600
3604
|
...options.maxLiveWorkers !== void 0 ? { maxLiveWorkers: options.maxLiveWorkers } : {},
|
|
3601
3605
|
...probes ? { probes } : {},
|
|
3602
3606
|
...ctx.resume === true ? { resume: true } : {},
|
|
@@ -3655,4 +3659,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
3655
3659
|
//#endregion
|
|
3656
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 };
|
|
3657
3661
|
|
|
3658
|
-
//# sourceMappingURL=supervise-
|
|
3662
|
+
//# sourceMappingURL=supervise-W_mtzswa.js.map
|