@tangle-network/agent-runtime 0.205.0 → 0.206.1
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-CBtEaNCx.d.ts → activation-3drfS9_j.d.ts} +2 -2
- package/dist/{activation-Bd6h_Yoa.js → activation-D8FvmCf5.js} +2 -2
- package/dist/{activation-Bd6h_Yoa.js.map → activation-D8FvmCf5.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-B7z69ZbL.js → coordination-driver-CwT-9dXa.js} +2 -2
- package/dist/{coordination-driver-B7z69ZbL.js.map → coordination-driver-CwT-9dXa.js.map} +1 -1
- package/dist/{delegate-a6f9RLTt.js → delegate-yLW9_OGW.js} +2 -2
- package/dist/{delegate-a6f9RLTt.js.map → delegate-yLW9_OGW.js.map} +1 -1
- package/dist/durable.d.ts +4 -2
- package/dist/durable.js +7 -3
- package/dist/durable.js.map +1 -1
- package/dist/{graph-BAffWEgw.js → graph-Dcb2PVEB.js} +3 -3
- package/dist/{graph-BAffWEgw.js.map → graph-Dcb2PVEB.js.map} +1 -1
- package/dist/{improvement-cycle-xbiXsNbX.js → improvement-cycle-ByIC070x.js} +3 -3
- package/dist/{improvement-cycle-xbiXsNbX.js.map → improvement-cycle-ByIC070x.js.map} +1 -1
- package/dist/{index-BsPTyamY.d.ts → index-B62R6dL9.d.ts} +2 -2
- 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 +2 -2
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-sSp_d0Sk.d.ts → loop-runner-bin-CArH3v2c.d.ts} +3 -3
- package/dist/{loop-runner-bin-l1Zdnots.js → loop-runner-bin-CNNq7tcp.js} +3 -3
- package/dist/{loop-runner-bin-l1Zdnots.js.map → loop-runner-bin-CNNq7tcp.js.map} +1 -1
- 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-BJcE6piA.js → provision-supervisor-B8zEk1-7.js} +3 -3
- package/dist/{provision-supervisor-BJcE6piA.js.map → provision-supervisor-B8zEk1-7.js.map} +1 -1
- package/dist/{redact-B6eTY23u.js → redact-CLRRxkXF.js} +4 -2
- package/dist/redact-CLRRxkXF.js.map +1 -0
- package/dist/{runtime-4iheHq_X.js → runtime-C-oKXuHJ.js} +8 -8
- package/dist/{runtime-4iheHq_X.js.map → runtime-C-oKXuHJ.js.map} +1 -1
- package/dist/{server-CYeFt_3s.js → server-CLtEdwo_.js} +3 -3
- package/dist/{server-CYeFt_3s.js.map → server-CLtEdwo_.js.map} +1 -1
- package/dist/{stream-agent-turn-D2P-YG2P.d.ts → stream-agent-turn-CpRKkS19.d.ts} +3 -1
- package/dist/{structural-rollout-n0hufApm.js → structural-rollout-Bnewh9dN.js} +2 -2
- package/dist/{structural-rollout-n0hufApm.js.map → structural-rollout-Bnewh9dN.js.map} +1 -1
- package/dist/{supervise-CqW5-IXn.js → supervise-BN5VMhRq.js} +17 -5
- package/dist/supervise-BN5VMhRq.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/redact-B6eTY23u.js.map +0 -1
- package/dist/supervise-CqW5-IXn.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as bridgeAdmissionRefusal, $r as providerAttemptEvidence, $t as spendFromUsageEvents, A as consumeScopeRetainedOwnerResult, Ar as profileMaterializationAxes$1, Br as worktreeCliProfileMaterialization, Ct as createInbox, Dr as controlProfileMaterialization, Er as assertProfileMaterialization, Ir as renderUnsupported, Kr as attestRuntimeOwnedScopeOwner, M as scopeRetainedOwnerContext, Mn as zeroSpend, Mr as promptModelProfileMaterialization, N as scopeRetainedOwnerPriorSpend, Nn as registerRetainedExecutorPreparation, Or as defineProfileMaterializationContract, P as scopeRetainedOwnerResult, Pn as retainedExecutorSeamKey, Q as bindReusableExecutorExecutionId, Rr as unsupportedProfileDimensions, S as scopeOwnerExecutorNodeContext, X as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Xt as contentAddress, Yr as inheritRuntimeOwnedExecutorAttestation, Z as teardownExecutor, Zt as assertValidBudget, _ as deriveNodeExecutionIdentity, _n as resolveAgentEnvironmentProvider, a as createSupervisor, ai as runtimeOwnedPendingExecutorMaterialization, b as recordScopeOwnerMaterialization, cr as toOtelAttributes, ct as snapshotExecutorConfig, d as driverChild, ei as recordRuntimeOwnedDriveHarnessProviderEvidence, et as bridgeModelRouteRefusal, f as driverExecutorFactory, fi as detachedSnapshot, h as beginScopeOwnerAttempt, i as createRootHandle, ii as runtimeOwnedExecutorProviderEvidence, ir as generateSpanId, j as prepareScopeRetainedOwnerTask, jn as unmeteredSpend, jr as promptControlProfileMaterialization, kr as fullProfileMaterialization, l as runFinalizer, ni as runtimeOwnedExecutorExecutionBinding, nt as bridgeStopSignalKey, o as bestDelivered, oi as runtimeOwnedScopeOwnerRuntime, ot as createExecutor, p as isDriverSpec, ri as runtimeOwnedExecutorMaterialization, rt as captureReusableExecutorConfig, ti as runtimeOwnedDriveHarnessProviderEvidence, tr as createOtelExporter, tt as bridgeRuntimeAttachmentsKey, u as runTree, un as routerBrain, ut as WORKER_TRACE_PROPAGATION, v as meterRuntimeOwnedAccounting, x as restoreScopeOwnerAcceptedExecution, y as meterRuntimeOwnedProviderAttempt, yn as addSpend } from "./redact-
|
|
1
|
+
import { $ as bridgeAdmissionRefusal, $r as providerAttemptEvidence, $t as spendFromUsageEvents, A as consumeScopeRetainedOwnerResult, Ar as profileMaterializationAxes$1, Br as worktreeCliProfileMaterialization, Ct as createInbox, Dr as controlProfileMaterialization, Er as assertProfileMaterialization, Ir as renderUnsupported, Kr as attestRuntimeOwnedScopeOwner, M as scopeRetainedOwnerContext, Mn as zeroSpend, Mr as promptModelProfileMaterialization, N as scopeRetainedOwnerPriorSpend, Nn as registerRetainedExecutorPreparation, Or as defineProfileMaterializationContract, P as scopeRetainedOwnerResult, Pn as retainedExecutorSeamKey, Q as bindReusableExecutorExecutionId, Rr as unsupportedProfileDimensions, S as scopeOwnerExecutorNodeContext, X as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Xt as contentAddress, Yr as inheritRuntimeOwnedExecutorAttestation, Z as teardownExecutor, Zt as assertValidBudget, _ as deriveNodeExecutionIdentity, _n as resolveAgentEnvironmentProvider, a as createSupervisor, ai as runtimeOwnedPendingExecutorMaterialization, b as recordScopeOwnerMaterialization, cr as toOtelAttributes, ct as snapshotExecutorConfig, d as driverChild, ei as recordRuntimeOwnedDriveHarnessProviderEvidence, et as bridgeModelRouteRefusal, f as driverExecutorFactory, fi as detachedSnapshot, h as beginScopeOwnerAttempt, i as createRootHandle, ii as runtimeOwnedExecutorProviderEvidence, ir as generateSpanId, j as prepareScopeRetainedOwnerTask, jn as unmeteredSpend, jr as promptControlProfileMaterialization, kr as fullProfileMaterialization, l as runFinalizer, ni as runtimeOwnedExecutorExecutionBinding, nt as bridgeStopSignalKey, o as bestDelivered, oi as runtimeOwnedScopeOwnerRuntime, ot as createExecutor, p as isDriverSpec, ri as runtimeOwnedExecutorMaterialization, rt as captureReusableExecutorConfig, ti as runtimeOwnedDriveHarnessProviderEvidence, tr as createOtelExporter, tt as bridgeRuntimeAttachmentsKey, u as runTree, un as routerBrain, ut as WORKER_TRACE_PROPAGATION, v as meterRuntimeOwnedAccounting, x as restoreScopeOwnerAcceptedExecution, y as meterRuntimeOwnedProviderAttempt, yn as addSpend } from "./redact-CLRRxkXF.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-B8I_LXN-.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 } 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 } from "./coordination-driver-CwT-9dXa.js";
|
|
7
7
|
import { t as createStdioToolServer } from "./tool-server-BJbCPhoW.js";
|
|
8
8
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
9
9
|
import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -3394,7 +3394,13 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
3394
3394
|
...options.onUnmetContract ? { onUnmetContract: options.onUnmetContract } : {},
|
|
3395
3395
|
...options.runDir === void 0 || runControl === void 0 ? {} : {
|
|
3396
3396
|
controlDir: resolve(options.runDir),
|
|
3397
|
-
abortRun: (reason) =>
|
|
3397
|
+
abortRun: (reason) => {
|
|
3398
|
+
try {
|
|
3399
|
+
runControl.abort(reason);
|
|
3400
|
+
} catch (error) {
|
|
3401
|
+
if (!(error instanceof RuntimeRunStateError)) throw error;
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3398
3404
|
}
|
|
3399
3405
|
};
|
|
3400
3406
|
const agent = testBrain === void 0 ? supervisorAgent(canonicalProfile, agentDeps) : supervisorAgentWithTestBrain(canonicalProfile, {
|
|
@@ -3410,7 +3416,13 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
3410
3416
|
const hooks = recorder ? composeRuntimeHooks(options.hooks, recorder.hooks) : options.hooks;
|
|
3411
3417
|
const supervisor = createSupervisor();
|
|
3412
3418
|
if (runControl !== void 0) supervisor.attach(runControl);
|
|
3413
|
-
const cancellation = options.runDir !== void 0 && runControl !== void 0 ? watchRunCancellation(resolve(options.runDir), (reason) =>
|
|
3419
|
+
const cancellation = options.runDir !== void 0 && runControl !== void 0 ? watchRunCancellation(resolve(options.runDir), (reason) => {
|
|
3420
|
+
try {
|
|
3421
|
+
runControl.abort(reason);
|
|
3422
|
+
} catch (error) {
|
|
3423
|
+
if (!(error instanceof RuntimeRunStateError)) throw error;
|
|
3424
|
+
}
|
|
3425
|
+
}) : void 0;
|
|
3414
3426
|
const run = supervisor.run(agent, canonicalTask, {
|
|
3415
3427
|
budget: options.budget,
|
|
3416
3428
|
runId,
|
|
@@ -3483,4 +3495,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
3483
3495
|
//#endregion
|
|
3484
3496
|
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 };
|
|
3485
3497
|
|
|
3486
|
-
//# sourceMappingURL=supervise-
|
|
3498
|
+
//# sourceMappingURL=supervise-BN5VMhRq.js.map
|