@tangle-network/agent-runtime 0.319.10 → 0.320.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-OColGsfd.d.ts → activation-BSwcsNSQ.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{coordination-driver-CE01_us_.js → coordination-driver-D85RWATT.js} +18 -2
- package/dist/{coordination-driver-CE01_us_.js.map → coordination-driver-D85RWATT.js.map} +1 -1
- package/dist/{delegate-BptW384t.js → delegate-BHRR-4hh.js} +2 -2
- package/dist/{delegate-BptW384t.js.map → delegate-BHRR-4hh.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +1 -1
- package/dist/{graph-Bkcora6P.js → graph-BGMcJJP1.js} +3 -3
- package/dist/{graph-Bkcora6P.js.map → graph-BGMcJJP1.js.map} +1 -1
- package/dist/{index-Da7w2H86.d.ts → index-t672ISFX.d.ts} +4 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/intelligence.d.ts +2 -2
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +6 -6
- package/dist/{loop-runner-bin-DRw76sWb.js → loop-runner-bin-CFudOt5T.js} +2 -2
- package/dist/{loop-runner-bin-DRw76sWb.js.map → loop-runner-bin-CFudOt5T.js.map} +1 -1
- package/dist/{loop-runner-bin-CbBoLC9D.d.ts → loop-runner-bin-Fgmf_PQU.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 +2 -2
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +3 -3
- package/dist/{openai-tools-Cu9E1Bda.d.ts → openai-tools-DCfdg0UD.d.ts} +2 -2
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-Bs698TqJ.js → provision-supervisor-BUMhF1yb.js} +2 -2
- package/dist/{provision-supervisor-Bs698TqJ.js.map → provision-supervisor-BUMhF1yb.js.map} +1 -1
- package/dist/{runtime-SioKh3r_.js → runtime-B47V5Omi.js} +7 -7
- package/dist/{runtime-SioKh3r_.js.map → runtime-B47V5Omi.js.map} +1 -1
- package/dist/{server-BfEwCD55.js → server-Gpgr0WP-.js} +2 -2
- package/dist/{server-BfEwCD55.js.map → server-Gpgr0WP-.js.map} +1 -1
- package/dist/{supervise-Bj8U345y.js → supervise-C2ThvLgZ.js} +33 -4
- package/dist/supervise-C2ThvLgZ.js.map +1 -0
- package/dist/supervisor-CCtmmmOz.js.map +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/skills/profile-authoring/SKILL.md +1 -1
- package/dist/supervise-Bj8U345y.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { Dt as teardownSurfaces, Et as teardownExecutor, V as addSpend, Z as isA
|
|
|
4
4
|
import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-CNe257pB.js";
|
|
5
5
|
import { n as assertNoSymlinkDescendant } from "./durable-file-DWQA4ooo.js";
|
|
6
6
|
import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
7
|
-
import { C as
|
|
7
|
+
import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver-D85RWATT.js";
|
|
8
8
|
import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
|
|
9
9
|
import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-DSCWdbX2.js";
|
|
10
10
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
@@ -2204,6 +2204,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
2204
2204
|
};
|
|
2205
2205
|
const loopRecords = [];
|
|
2206
2206
|
let deadlineWarned = false;
|
|
2207
|
+
let pendingWake;
|
|
2207
2208
|
const managerStartedAt = Date.now();
|
|
2208
2209
|
let environmentReplacements = 0;
|
|
2209
2210
|
let workspaceRestores = 0;
|
|
@@ -2231,11 +2232,32 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
2231
2232
|
scope.signal.throwIfAborted();
|
|
2232
2233
|
beginScopeOwnerAttempt(scope, attempt);
|
|
2233
2234
|
controls.beginDriverAttempt(attempt);
|
|
2234
|
-
|
|
2235
|
+
let current = reentry;
|
|
2236
|
+
const held = pendingWake?.attempt === attempt ? pendingWake : void 0;
|
|
2237
|
+
pendingWake = void 0;
|
|
2238
|
+
const refresh = held === void 0 || current?.reason !== "wake" ? void 0 : async () => {
|
|
2239
|
+
const signal = AbortSignal.any([scope.signal, stopController.signal]);
|
|
2240
|
+
const later = await controls.awaitWake({
|
|
2241
|
+
attempt,
|
|
2242
|
+
signal,
|
|
2243
|
+
heartbeatMs: 0,
|
|
2244
|
+
debounceMs: 0
|
|
2245
|
+
});
|
|
2246
|
+
if (signal.aborted || current?.reason !== "wake") return;
|
|
2247
|
+
current = {
|
|
2248
|
+
...current,
|
|
2249
|
+
input: composeWakeInput(refreshedWake(held.wake, later, Date.now() - held.at), {
|
|
2250
|
+
tools: runtimeToolNames,
|
|
2251
|
+
deadlineMs: scope.budget.deadlineMs,
|
|
2252
|
+
now: Date.now()
|
|
2253
|
+
})
|
|
2254
|
+
};
|
|
2255
|
+
};
|
|
2256
|
+
const compose = current === void 0 ? void 0 : (continuity) => composeReentryTask({
|
|
2235
2257
|
originalTask: task,
|
|
2236
2258
|
tools: runtimeToolNames,
|
|
2237
2259
|
...describe === void 0 ? {} : { contract: describe },
|
|
2238
|
-
reentry,
|
|
2260
|
+
reentry: current,
|
|
2239
2261
|
continuity,
|
|
2240
2262
|
state: controls.reentryState(),
|
|
2241
2263
|
attempt
|
|
@@ -2252,6 +2274,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
2252
2274
|
...compose === void 0 ? {} : { reentry: {
|
|
2253
2275
|
reason: reentry,
|
|
2254
2276
|
compose,
|
|
2277
|
+
...refresh === void 0 ? {} : { refresh },
|
|
2255
2278
|
onContinuity: (continuity) => {
|
|
2256
2279
|
if (continuity.environment === "replaced") environmentReplacements += 1;
|
|
2257
2280
|
if (continuity.workspace === "restored") workspaceRestores += 1;
|
|
@@ -2298,6 +2321,11 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
2298
2321
|
});
|
|
2299
2322
|
if (wake === void 0 || stopController.signal.aborted) return void 0;
|
|
2300
2323
|
if (wake.reason === "deadline") deadlineWarned = true;
|
|
2324
|
+
pendingWake = {
|
|
2325
|
+
attempt: nextAttempt,
|
|
2326
|
+
wake,
|
|
2327
|
+
at: Date.now()
|
|
2328
|
+
};
|
|
2301
2329
|
return {
|
|
2302
2330
|
input: composeWakeInput(wake, {
|
|
2303
2331
|
tools: runtimeToolNames,
|
|
@@ -3263,6 +3291,7 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
|
|
|
3263
3291
|
};
|
|
3264
3292
|
if (activeSeat?.previous && activeSeat.previous.seat !== activeSeat.seat && activeSeat.previous.provider === activeSeat.stage.provider && activeSeat.previous.harness === activeSeat.stage.harness && (continuity.session !== "continued" || continuity.environment !== "same")) throw new ValidationError("same-provider seat continuation lost its native environment");
|
|
3265
3293
|
reentry.onContinuity?.(continuity);
|
|
3294
|
+
await reentry.refresh?.();
|
|
3266
3295
|
driveTask = reentry.compose(continuity);
|
|
3267
3296
|
if (activeSeat?.previous && (activeSeat.previous.provider !== activeSeat.stage.provider || activeSeat.previous.harness !== activeSeat.stage.harness)) driveTask = [
|
|
3268
3297
|
String(driveTask),
|
|
@@ -4837,4 +4866,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
4837
4866
|
//#endregion
|
|
4838
4867
|
export { readRootStreamReceipt as _, superviseWithTestBrain as a, createSupervisorSpanRecorder as b, resolveWorkerSpawnRetry as c, assertCoordinationBinding as d, resolveSupervisorProfile as f, readRootStream as g, ROOT_STREAM_FILE as h, superviseRootProfile as i, retryPreSpawnRefusals as l, supervisorAgentWithTestBrain as m, profileGuidanceComposer as n, workerFromBackend as o, supervisorAgent as p, supervise as r, isPreSpawnExecutorFailure as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, withWorkerSpawnRetry as u, UNPROVEN_CONTINUITY as v, serveCoordinationMcp as x, composeReentryTask as y };
|
|
4839
4868
|
|
|
4840
|
-
//# sourceMappingURL=supervise-
|
|
4869
|
+
//# sourceMappingURL=supervise-C2ThvLgZ.js.map
|