@tangle-network/agent-runtime 0.182.0 → 0.184.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-BfLdmBd5.js → activation-DrWfiqev.js} +2 -2
- package/dist/{activation-BfLdmBd5.js.map → activation-DrWfiqev.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-Dh_8qg7q.js → authoring-BuiTFCaU.js} +4 -4
- package/dist/authoring-BuiTFCaU.js.map +1 -0
- package/dist/{coordination-driver-DBvHI8ZG.js → coordination-driver-DeBJDK3d.js} +19 -11
- package/dist/coordination-driver-DeBJDK3d.js.map +1 -0
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +1 -1
- package/dist/{graph-lU6GacsN.js → graph-eCLaYrD2.js} +5 -5
- package/dist/graph-eCLaYrD2.js.map +1 -0
- package/dist/graph.d.ts +1 -1
- package/dist/graph.js +3 -3
- package/dist/{improvement-cycle-DezfYhlh.js → improvement-cycle-BnalCCbE.js} +3 -3
- package/dist/{improvement-cycle-DezfYhlh.js.map → improvement-cycle-BnalCCbE.js.map} +1 -1
- package/dist/{index-z2A6q-v0.d.ts → index-BhtdFMnG.d.ts} +16 -16
- package/dist/{index-BG4l6MHH.d.ts → index-Dg2UXocB.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +8 -8
- package/dist/{knowledge-CioWuU6F.js → knowledge-DeB1HtZK.js} +3 -3
- package/dist/{knowledge-CioWuU6F.js.map → knowledge-DeB1HtZK.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-Rzj8NOjr.js → loop-runner-bin-DAN-QutS.js} +3 -3
- package/dist/{loop-runner-bin-Rzj8NOjr.js.map → loop-runner-bin-DAN-QutS.js.map} +1 -1
- package/dist/{loop-runner-bin-Dj0GJJWz.d.ts → loop-runner-bin-NanoP_bG.d.ts} +2 -2
- 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 +30 -3
- package/dist/mcp/index.js +52 -6
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-B4Gbj7BL.js → openai-tools-Dy1Cquei.js} +2 -2
- package/dist/{openai-tools-B4Gbj7BL.js.map → openai-tools-Dy1Cquei.js.map} +1 -1
- package/dist/{provision-supervisor-BBPNrEQk.js → provision-supervisor-D7pZC0Yf.js} +4 -4
- package/dist/{provision-supervisor-BBPNrEQk.js.map → provision-supervisor-D7pZC0Yf.js.map} +1 -1
- package/dist/{runtime-Db1JYl9P.js → runtime-c_txq11Z.js} +9 -9
- package/dist/{runtime-Db1JYl9P.js.map → runtime-c_txq11Z.js.map} +1 -1
- package/dist/{structural-rollout-dG-cTxPq.js → structural-rollout-DIp3CKAo.js} +2 -2
- package/dist/{structural-rollout-dG-cTxPq.js.map → structural-rollout-DIp3CKAo.js.map} +1 -1
- package/dist/{supervise-rDa_CeUP.js → supervise-8iDK6Mjz.js} +9 -9
- package/dist/supervise-8iDK6Mjz.js.map +1 -0
- package/dist/{supervisor-Df9kT_z3.js → supervisor-CKZR4Uaf.js} +49 -31
- package/dist/supervisor-CKZR4Uaf.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +4 -4
- package/skills/codemode/SKILL.md +1 -1
- package/skills/supervise/SKILL.md +2 -2
- package/dist/authoring-Dh_8qg7q.js.map +0 -1
- package/dist/coordination-driver-DBvHI8ZG.js.map +0 -1
- package/dist/graph-lU6GacsN.js.map +0 -1
- package/dist/supervise-rDa_CeUP.js.map +0 -1
- package/dist/supervisor-Df9kT_z3.js.map +0 -1
|
@@ -4,9 +4,9 @@ import { n as detachedSnapshot } from "./snapshot-CTAf4uuA.js";
|
|
|
4
4
|
import { x as contentAddress } from "./spawn-journal--N8Ten1q.js";
|
|
5
5
|
import { _ as unmeteredSpend } from "./util-D6ZEuBMi.js";
|
|
6
6
|
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-Sw4ywhtL.js";
|
|
7
|
-
import { $ as bridgeModelRouteRefusal, An as controlProfileMaterialization, Fn as promptModelProfileMaterialization, Gt as routerBrain, J as assertValidBudget, K as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Mn as fullProfileMaterialization, Nn as profileMaterializationAxes$1, Pn as promptControlProfileMaterialization, Q as bridgeAdmissionRead, St as createInbox, Un as worktreeCliProfileMaterialization, Vn as unsupportedProfileDimensions, X as spendFromUsageEvents, Z as bindReusableExecutorExecutionId, _ as recordScopeOwnerMaterialization, at as createExecutor, d as driverChild, dn as toOtelAttributes, et as bridgeRuntimeAttachmentsKey, g as meterRuntimeOwnedProviderAttempt, h as meterRuntimeOwnedAccounting, in as createOtelExporter, jn as defineProfileMaterializationContract, kn as assertProfileMaterialization, l as runFinalizer, lt as WORKER_TRACE_PROPAGATION, m as deriveNodeExecutionIdentity, n as createSupervisor, nt as captureReusableExecutorConfig, o as bestDelivered, q as teardownExecutor, sn as generateSpanId, st as snapshotExecutorConfig, t as createRootHandle, tn as buildLoopSpanNodes, tt as bridgeStopSignalKey, u as runTree, v as scopeOwnerExecutorNodeContext, zn as renderUnsupported } from "./supervisor-
|
|
7
|
+
import { $ as bridgeModelRouteRefusal, An as controlProfileMaterialization, Fn as promptModelProfileMaterialization, Gt as routerBrain, J as assertValidBudget, K as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Mn as fullProfileMaterialization, Nn as profileMaterializationAxes$1, Pn as promptControlProfileMaterialization, Q as bridgeAdmissionRead, St as createInbox, Un as worktreeCliProfileMaterialization, Vn as unsupportedProfileDimensions, X as spendFromUsageEvents, Z as bindReusableExecutorExecutionId, _ as recordScopeOwnerMaterialization, at as createExecutor, d as driverChild, dn as toOtelAttributes, et as bridgeRuntimeAttachmentsKey, g as meterRuntimeOwnedProviderAttempt, h as meterRuntimeOwnedAccounting, in as createOtelExporter, jn as defineProfileMaterializationContract, kn as assertProfileMaterialization, l as runFinalizer, lt as WORKER_TRACE_PROPAGATION, m as deriveNodeExecutionIdentity, n as createSupervisor, nt as captureReusableExecutorConfig, o as bestDelivered, q as teardownExecutor, sn as generateSpanId, st as snapshotExecutorConfig, t as createRootHandle, tn as buildLoopSpanNodes, tt as bridgeStopSignalKey, u as runTree, v as scopeOwnerExecutorNodeContext, zn as renderUnsupported } from "./supervisor-CKZR4Uaf.js";
|
|
8
8
|
import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
9
|
-
import { C as coordinationVerbNames, c as createProgressTracker, d as progressStop, r as driverAgent, v as createFileRunContext, w as createCoordinationTools, y as createInMemoryRunContext } from "./coordination-driver-
|
|
9
|
+
import { C as coordinationVerbNames, c as createProgressTracker, d as progressStop, r as driverAgent, v as createFileRunContext, w as createCoordinationTools, y as createInMemoryRunContext } from "./coordination-driver-DeBJDK3d.js";
|
|
10
10
|
import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-Cd_l2XWV.js";
|
|
11
11
|
import { t as createStdioToolServer } from "./tool-server-DEmLr9YY.js";
|
|
12
12
|
import { n as UI_LENSES } from "./substrate-B0TYNrXn.js";
|
|
@@ -2172,10 +2172,10 @@ function createInProcessTransport() {
|
|
|
2172
2172
|
//#region src/runtime/supervise/coordination-mcp.ts
|
|
2173
2173
|
/**
|
|
2174
2174
|
*
|
|
2175
|
-
* Serve the coordination verbs (
|
|
2175
|
+
* Serve the coordination verbs (spawn_worker / await_event / observe_agent / steer_agent / stop)
|
|
2176
2176
|
* as a real HTTP MCP server over a LIVE `Scope`. This is the keystone that lets a coding-harness
|
|
2177
2177
|
* agent (opencode via the cli-bridge, claude-code, codex) BE the supervisor: it mounts this MCP
|
|
2178
|
-
* (`mcp.mcpServers.coordination`) and calls `
|
|
2178
|
+
* (`mcp.mcpServers.coordination`) and calls `spawn_worker` as a native tool, which lands on
|
|
2179
2179
|
* `Scope.spawn` — a real box driving real boxes, not emulated function-tools.
|
|
2180
2180
|
*
|
|
2181
2181
|
* Coordination vs DELEGATION (`../../mcp/delegates.ts`): coordination SPAWNS workers in a CHOSEN
|
|
@@ -2204,7 +2204,7 @@ function isLoopbackHost(host) {
|
|
|
2204
2204
|
* non-loopback host additionally requires `allowUnauthenticatedRemote`. */
|
|
2205
2205
|
async function serveCoordinationMcp(opts) {
|
|
2206
2206
|
const host = opts.host ?? "127.0.0.1";
|
|
2207
|
-
if (!isLoopbackHost(host) && opts.allowUnauthenticatedRemote !== true) throw new ConfigError(`coordination host=${JSON.stringify(host)} is not a loopback address and the coordination MCP has no authentication: any client that can reach the port could call
|
|
2207
|
+
if (!isLoopbackHost(host) && opts.allowUnauthenticatedRemote !== true) throw new ConfigError(`coordination host=${JSON.stringify(host)} is not a loopback address and the coordination MCP has no authentication: any client that can reach the port could call spawn_worker/steer_agent and spend this run's budget. Bind a loopback host ("127.0.0.1", "localhost", "::1"), or set allowUnauthenticatedRemote: true to accept that exposure explicitly.`);
|
|
2208
2208
|
const coord = createCoordinationTools({
|
|
2209
2209
|
scope: opts.scope,
|
|
2210
2210
|
blobs: opts.blobs,
|
|
@@ -2798,7 +2798,7 @@ function resolveSupervisorProfile(profile) {
|
|
|
2798
2798
|
};
|
|
2799
2799
|
}
|
|
2800
2800
|
/**
|
|
2801
|
-
* Fail closed on a non-loopback coordination bind. `serveCoordinationMcp` mounts
|
|
2801
|
+
* Fail closed on a non-loopback coordination bind. `serveCoordinationMcp` mounts spawn_worker /
|
|
2802
2802
|
* steer_agent / stop with NO authentication of any kind (it is a bare JSON-RPC-over-HTTP handler),
|
|
2803
2803
|
* so a non-loopback bind lets anyone who can reach the port spawn agents and spend the run's
|
|
2804
2804
|
* conserved budget. There is no token to require yet, so the only honest options are loopback or an
|
|
@@ -2808,7 +2808,7 @@ function assertCoordinationBinding(binding) {
|
|
|
2808
2808
|
const host = binding?.host;
|
|
2809
2809
|
if (host === void 0 || isLoopbackHost(host)) return;
|
|
2810
2810
|
if (binding?.allowUnauthenticatedRemote === true) return;
|
|
2811
|
-
throw new ConfigError(`supervisorAgent: coordination.host=${JSON.stringify(host)} is not a loopback address and the coordination MCP has no authentication: any client that can reach the port could call
|
|
2811
|
+
throw new ConfigError(`supervisorAgent: coordination.host=${JSON.stringify(host)} is not a loopback address and the coordination MCP has no authentication: any client that can reach the port could call spawn_worker/steer_agent and spend this run's budget. Bind a loopback host ("127.0.0.1", "localhost", "::1"), or set coordination.allowUnauthenticatedRemote: true to accept that exposure explicitly.`);
|
|
2812
2812
|
}
|
|
2813
2813
|
function createVerbSlot() {
|
|
2814
2814
|
let bound;
|
|
@@ -2820,7 +2820,7 @@ function createVerbSlot() {
|
|
|
2820
2820
|
};
|
|
2821
2821
|
return {
|
|
2822
2822
|
verbs: Object.freeze({
|
|
2823
|
-
spawnAgent: verb("
|
|
2823
|
+
spawnAgent: verb("spawn_worker"),
|
|
2824
2824
|
awaitEvent: verb("await_event"),
|
|
2825
2825
|
steerAgent: verb("steer_agent"),
|
|
2826
2826
|
observeAgent: verb("observe_agent"),
|
|
@@ -4245,4 +4245,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
4245
4245
|
//#endregion
|
|
4246
4246
|
export { hashIdempotencyInput as $, DELEGATION_HISTORY_INPUT_SCHEMA as A, DELEGATE_FEEDBACK_DESCRIPTION as B, createMcpServer as C, createDelegationStatusHandler as D, DELEGATION_STATUS_TOOL_NAME as E, DELEGATE_UI_AUDIT_DESCRIPTION as F, DELEGATE_DESCRIPTION as G, DELEGATE_FEEDBACK_TOOL_NAME as H, DELEGATE_UI_AUDIT_INPUT_SCHEMA as I, createDelegateHandler as J, DELEGATE_INPUT_SCHEMA as K, DELEGATE_UI_AUDIT_TOOL_NAME as L, createDelegationHistoryHandler as M, validateDelegationHistoryArgs as N, validateDelegationStatusArgs as O, delegationProfiles as P, DelegationTaskQueue as Q, createDelegateUiAuditHandler as R, createInProcessTransport as S, DELEGATION_STATUS_INPUT_SCHEMA as T, createDelegateFeedbackHandler as U, DELEGATE_FEEDBACK_INPUT_SCHEMA as V, validateDelegateFeedbackArgs as W, defaultDelegateBudget as X, validateDelegateArgs as Y, delegate as Z, promptHandle as _, assertCoordinationBinding as a, createDelegationTraceCollector as at, classifyDriverFailure as b, supervisorAgentWithTestBrain as c, FileDelegationStore as ct, delegatesWorkerBriefPrompt as d, eventToSnapshot as dt, DELEGATION_TRACE_MAX_BYTES as et, dumbContinuationFailPrompt as f, createSupervisorSpanRecorder as ft, naiveContinuationPrompt as g, kernelPromptRegistry as h, workerFromBackend as i, composeLoopTraceEmitters as it, DELEGATION_HISTORY_TOOL_NAME as j, DELEGATION_HISTORY_DESCRIPTION as k, analyzesFindingsReportPrompt as l, InMemoryDelegationStore as lt, formatPromptHandle as m, mapExecutorResult as mt, supervise as n, buildDelegationTraceSpans as nt, resolveSupervisorProfile as o, DelegationPersistenceError as ot, dumbContinuationPassPrompt as p, gateOnDeliverable as pt, DELEGATE_TOOL_NAME as q, superviseWithTestBrain as r, capDelegationTrace as rt, supervisorAgent as s, DelegationStateCorruptError as st, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, DELEGATION_TRACE_MAX_SPANS as tt, createPromptRegistry as u, InMemoryFeedbackStore as ut, supervisorPolicyPrompt as v, DELEGATION_STATUS_DESCRIPTION as w, serveCoordinationMcp as x, DriverAttemptsExhaustedError as y, validateDelegateUiAuditArgs as z };
|
|
4247
4247
|
|
|
4248
|
-
//# sourceMappingURL=supervise-
|
|
4248
|
+
//# sourceMappingURL=supervise-8iDK6Mjz.js.map
|