@tangle-network/agent-runtime 0.134.7 → 0.134.8
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-CG9bkirD.js → activation-CAexDnXt.js} +2 -2
- package/dist/{activation-CG9bkirD.js.map → activation-CAexDnXt.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-CK6iXftK.js → authoring-DHVHhbJO.js} +2 -2
- package/dist/{authoring-CK6iXftK.js.map → authoring-DHVHhbJO.js.map} +1 -1
- package/dist/{graph-9KF7mJM3.js → graph-BWsEZmDL.js} +2 -2
- package/dist/{graph-9KF7mJM3.js.map → graph-BWsEZmDL.js.map} +1 -1
- package/dist/{improvement-cycle-5XDmxqzr.js → improvement-cycle-DN0QhoCi.js} +3 -3
- package/dist/{improvement-cycle-5XDmxqzr.js.map → improvement-cycle-DN0QhoCi.js.map} +1 -1
- package/dist/{index-0qU8jNOJ.d.ts → index-CRauzLFH.d.ts} +116 -35
- package/dist/{index-DJ9qeOi3.d.ts → index-DC7CNU9n.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 +2 -2
- package/dist/kernel.js +8 -8
- package/dist/{knowledge-DWTOug6a.js → knowledge-DDhcxfdu.js} +3 -3
- package/dist/{knowledge-DWTOug6a.js.map → knowledge-DDhcxfdu.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-W7MjoHUk.d.ts → loop-runner-bin-Yp4T-tUJ.d.ts} +2 -2
- package/dist/{loop-runner-bin-BCvwX9rk.js → loop-runner-bin-gw418CFH.js} +3 -3
- package/dist/{loop-runner-bin-BCvwX9rk.js.map → loop-runner-bin-gw418CFH.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 +1 -1
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-ClNr92Bx.js → openai-tools-ne97uXo0.js} +2 -2
- package/dist/{openai-tools-ClNr92Bx.js.map → openai-tools-ne97uXo0.js.map} +1 -1
- package/dist/run-layout-Be_Z0dF8.js +288 -0
- package/dist/run-layout-Be_Z0dF8.js.map +1 -0
- package/dist/{runtime-CnQ_-DF_.js → runtime-BZsDYscs.js} +6 -6
- package/dist/{runtime-CnQ_-DF_.js.map → runtime-BZsDYscs.js.map} +1 -1
- package/dist/{structural-rollout-CbQjaMwW.js → structural-rollout-BMnPPcJP.js} +2 -2
- package/dist/{structural-rollout-CbQjaMwW.js.map → structural-rollout-BMnPPcJP.js.map} +1 -1
- package/dist/{supervise-B8Ykk8GO.js → supervise-B-nTWUCK.js} +168 -5
- package/dist/supervise-B-nTWUCK.js.map +1 -0
- package/dist/{supervisor-BU01azdt.js → supervisor-Dl9Fk7g5.js} +14 -11
- package/dist/supervisor-Dl9Fk7g5.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{top-app-G4M18b6i.js → top-app-CH4cUgpo.js} +28 -8
- package/dist/top-app-CH4cUgpo.js.map +1 -0
- package/dist/tui/bin.js +1 -1
- package/dist/tui/index.d.ts +7 -5
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/run-layout-CeJsEAom.js +0 -158
- package/dist/run-layout-CeJsEAom.js.map +0 -1
- package/dist/supervise-B8Ykk8GO.js.map +0 -1
- package/dist/supervisor-BU01azdt.js.map +0 -1
- package/dist/top-app-G4M18b6i.js.map +0 -1
|
@@ -4,15 +4,17 @@ import { S as contentAddress, b as parseWorkerToolTraceArtifact, d as prepareJso
|
|
|
4
4
|
import { n as chargedTokens } from "./util-C1bv6yog.js";
|
|
5
5
|
import { a as concreteProfileModel, d as harnessRunsAgent, n as assertModelAllowed, r as assertProfileModelsAllowed, s as profileModelExecutionSettings, t as assertExecutableAgentProfile, u as agentHarness } from "./model-policy-UTTc9Z-A.js";
|
|
6
6
|
import { S as runtimeOwnedScopeOwnerRuntime, _ as runtimeOwnedDriveHarnessProviderEvidence, b as runtimeOwnedExecutorProviderEvidence, d as recordRuntimeOwnedDriveHarnessProviderEvidence, i as attestRuntimeOwnedScopeOwner, s as inheritRuntimeOwnedExecutorAttestation, v as runtimeOwnedExecutorExecutionBinding, x as runtimeOwnedPendingExecutorMaterialization, y as runtimeOwnedExecutorMaterialization } from "./materialization-BP5zspr2.js";
|
|
7
|
-
import { $ as createInbox, B as WORKER_TRACE_PROPAGATION, D as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Et as toOtelAttributes, Gt as controlProfileMaterialization, I as createExecutor, Jt as profileMaterializationAxes$1, Kt as defineProfileMaterializationContract, L as createExecutorRegistry, M as bindReusableExecutorExecutionId, N as bridgeStopSignalKey, O as teardownExecutor, P as captureReusableExecutorConfig, R as snapshotExecutorConfig, St as generateSpanId, Wt as assertProfileMaterialization, Xt as promptModelProfileMaterialization, Yt as promptControlProfileMaterialization, a as pickBestDelivered, c as driverChild, d as deriveNodeExecutionIdentity, f as meterRuntimeOwnedAccounting, gt as buildLoopSpanNodes, h as scopeOwnerExecutorNodeContext, j as spendFromUsageEvents, k as assertValidBudget, l as withDriverExecutor, m as recordScopeOwnerMaterialization, n as createSupervisor, nn as worktreeCliProfileMaterialization, o as runFinalizer, ot as routerBrain, p as meterRuntimeOwnedProviderAttempt, qt as fullProfileMaterialization, r as bestDelivered, s as runTree, st as runBrainLoop, w as freeSlots, yt as createOtelExporter } from "./supervisor-
|
|
7
|
+
import { $ as createInbox, B as WORKER_TRACE_PROPAGATION, D as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Et as toOtelAttributes, Gt as controlProfileMaterialization, I as createExecutor, Jt as profileMaterializationAxes$1, Kt as defineProfileMaterializationContract, L as createExecutorRegistry, M as bindReusableExecutorExecutionId, N as bridgeStopSignalKey, O as teardownExecutor, P as captureReusableExecutorConfig, R as snapshotExecutorConfig, St as generateSpanId, Wt as assertProfileMaterialization, Xt as promptModelProfileMaterialization, Yt as promptControlProfileMaterialization, a as pickBestDelivered, c as driverChild, d as deriveNodeExecutionIdentity, f as meterRuntimeOwnedAccounting, gt as buildLoopSpanNodes, h as scopeOwnerExecutorNodeContext, j as spendFromUsageEvents, k as assertValidBudget, l as withDriverExecutor, m as recordScopeOwnerMaterialization, n as createSupervisor, nn as worktreeCliProfileMaterialization, o as runFinalizer, ot as routerBrain, p as meterRuntimeOwnedProviderAttempt, qt as fullProfileMaterialization, r as bestDelivered, s as runTree, st as runBrainLoop, w as freeSlots, yt as createOtelExporter } from "./supervisor-Dl9Fk7g5.js";
|
|
8
8
|
import { t as composeRuntimeHooks } from "./runtime-hooks-C7iJOWm3.js";
|
|
9
|
+
import { _ as writeWorkerCancellation, a as readWorkerCancellation, i as readWorkerCancelRequests } from "./run-layout-Be_Z0dF8.js";
|
|
9
10
|
import { t as createStdioToolServer } from "./tool-server-Dh-NcbHr.js";
|
|
10
11
|
import { n as UI_LENSES } from "./substrate-B0TYNrXn.js";
|
|
11
12
|
import { argHash, errorStreakDetector, observeAll, repeatedActionDetector } from "@tangle-network/agent-eval";
|
|
12
13
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
13
14
|
import { randomUUID } from "node:crypto";
|
|
14
|
-
import path, { dirname, resolve } from "node:path";
|
|
15
|
+
import path, { dirname, join, resolve } from "node:path";
|
|
15
16
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
17
|
+
import { readFileSync } from "node:fs";
|
|
16
18
|
import { createServer } from "node:http";
|
|
17
19
|
import { Readable, Writable } from "node:stream";
|
|
18
20
|
//#region src/runtime/supervise/completion-gate.ts
|
|
@@ -1018,6 +1020,7 @@ function createCoordinationTools(opts) {
|
|
|
1018
1020
|
const completedKeys = /* @__PURE__ */ new Set();
|
|
1019
1021
|
const keyByWorker = /* @__PURE__ */ new Map();
|
|
1020
1022
|
const profileNameByWorker = /* @__PURE__ */ new Map();
|
|
1023
|
+
const liveHandles = /* @__PURE__ */ new Map();
|
|
1021
1024
|
let unkeyedAssignmentOrdinal = nextUnkeyedAssignmentOrdinal(opts.scope);
|
|
1022
1025
|
for (const [key, prior] of opts.scope.resume?.keys ?? []) if (prior.state === "completed") completedKeys.add(key);
|
|
1023
1026
|
const nodeForWorker = (id) => opts.scope.view.nodes.find((node) => node.id === id) ?? opts.scope.resume?.view.nodes.find((node) => node.id === id);
|
|
@@ -1849,6 +1852,7 @@ function createCoordinationTools(opts) {
|
|
|
1849
1852
|
}
|
|
1850
1853
|
if (res.ok) {
|
|
1851
1854
|
watchWorker(res.handle.id);
|
|
1855
|
+
liveHandles.set(res.handle.id, res.handle);
|
|
1852
1856
|
if (key !== void 0) keyByWorker.set(res.handle.id, key);
|
|
1853
1857
|
if (typeof profile.name === "string" && profile.name.length > 0) profileNameByWorker.set(res.handle.id, profile.name);
|
|
1854
1858
|
}
|
|
@@ -2231,6 +2235,18 @@ function createCoordinationTools(opts) {
|
|
|
2231
2235
|
}
|
|
2232
2236
|
});
|
|
2233
2237
|
}
|
|
2238
|
+
const abortWorker = (ref, reason) => {
|
|
2239
|
+
const live = opts.scope.view.nodes.filter((node) => isLive(node.status));
|
|
2240
|
+
const target = live.find((node) => node.id === ref) ?? live.find((node) => profileNameByWorker.get(node.id) === ref) ?? live.find((node) => node.label === ref);
|
|
2241
|
+
if (target === void 0) return void 0;
|
|
2242
|
+
const handle = liveHandles.get(target.id);
|
|
2243
|
+
if (handle === void 0) return void 0;
|
|
2244
|
+
handle.abort(reason);
|
|
2245
|
+
return {
|
|
2246
|
+
id: target.id,
|
|
2247
|
+
label: target.label
|
|
2248
|
+
};
|
|
2249
|
+
};
|
|
2234
2250
|
return {
|
|
2235
2251
|
tools,
|
|
2236
2252
|
ready,
|
|
@@ -2245,7 +2261,8 @@ function createCoordinationTools(opts) {
|
|
|
2245
2261
|
submittedResult: () => submitted,
|
|
2246
2262
|
settled: () => ledger,
|
|
2247
2263
|
questions: () => questions,
|
|
2248
|
-
drainResolved
|
|
2264
|
+
drainResolved,
|
|
2265
|
+
abortWorker
|
|
2249
2266
|
};
|
|
2250
2267
|
}
|
|
2251
2268
|
function nextUnkeyedAssignmentOrdinal(scope) {
|
|
@@ -2770,6 +2787,142 @@ function validateDriverPromptCache(promptCache) {
|
|
|
2770
2787
|
if (!Number.isSafeInteger(value) || value < 0) return new ValidationError(`driverAgent: prompt-cache field ${JSON.stringify(field)} must be a non-negative safe integer`);
|
|
2771
2788
|
}
|
|
2772
2789
|
}
|
|
2790
|
+
/** The journal file `createFileRunContext` writes inside the run directory. The acknowledger
|
|
2791
|
+
* reads it as EVIDENCE for the terminated-descendants set — the nested trees of a cancelled
|
|
2792
|
+
* lead journal their terminal records there before the lead settles into this scope. */
|
|
2793
|
+
const SPAWN_JOURNAL_FILE = "spawn-journal.jsonl";
|
|
2794
|
+
/**
|
|
2795
|
+
* The worker-cancel ACKNOWLEDGER — the runtime-side half of `run-layout`'s `cancelWorker`
|
|
2796
|
+
* contract, run from the coordination driver's turn loop (one cancellation-inbox read per turn,
|
|
2797
|
+
* no new process, no poller, no extra lifetime).
|
|
2798
|
+
*
|
|
2799
|
+
* Two-phase, honestly reported: `cancel_requested` is written the moment a live worker's abort is
|
|
2800
|
+
* issued (through the per-child abort chain the scope already owns, so siblings are untouched);
|
|
2801
|
+
* `cancelled` is written only when that worker's settlement is DELIVERED on the settle path with
|
|
2802
|
+
* a terminal `down`, and then the record names every subtree node id proven terminated. A worker
|
|
2803
|
+
* that already settled — or that settles `done` despite the abort — records `not_live`; a
|
|
2804
|
+
* reference matching nothing this manager knows stays pending (`cancelWorker` reports it
|
|
2805
|
+
* `unknown`). No path reports success for a missing worker.
|
|
2806
|
+
*
|
|
2807
|
+
* Idempotency is a lookup, in-process and across processes: an operation with a durable
|
|
2808
|
+
* acknowledgement is returned as-is and never re-applied.
|
|
2809
|
+
*/
|
|
2810
|
+
function createCancelAcknowledger(deps) {
|
|
2811
|
+
const tracked = /* @__PURE__ */ new Map();
|
|
2812
|
+
const iso = () => new Date(deps.now()).toISOString();
|
|
2813
|
+
const write = (record) => {
|
|
2814
|
+
writeWorkerCancellation(deps.dir, record);
|
|
2815
|
+
tracked.set(record.operationId, record);
|
|
2816
|
+
};
|
|
2817
|
+
const deliveredTerminal = (id) => {
|
|
2818
|
+
const row = deps.coord.settled().find((w) => w.id === id);
|
|
2819
|
+
if (row !== void 0) return row.status;
|
|
2820
|
+
const node = deps.scope.view.nodes.find((n) => n.id === id);
|
|
2821
|
+
if (node === void 0) return void 0;
|
|
2822
|
+
if (node.status === "done") return "done";
|
|
2823
|
+
if (node.status === "failed" || node.status === "cancelled") return "down";
|
|
2824
|
+
};
|
|
2825
|
+
const apply = (request) => {
|
|
2826
|
+
const aborted = deps.coord.abortWorker(request.worker, request.reason ?? "cancel requested");
|
|
2827
|
+
const base = {
|
|
2828
|
+
operationId: request.operationId,
|
|
2829
|
+
worker: request.worker,
|
|
2830
|
+
requestedAt: request.at,
|
|
2831
|
+
observedAt: iso(),
|
|
2832
|
+
...request.reason === void 0 ? {} : { reason: request.reason }
|
|
2833
|
+
};
|
|
2834
|
+
if (aborted !== void 0) {
|
|
2835
|
+
write({
|
|
2836
|
+
...base,
|
|
2837
|
+
effect: "cancel_requested",
|
|
2838
|
+
workerId: aborted.id,
|
|
2839
|
+
detail: `abort issued to live worker '${aborted.label}' (${aborted.id}); termination not yet proven`,
|
|
2840
|
+
terminated: []
|
|
2841
|
+
});
|
|
2842
|
+
return;
|
|
2843
|
+
}
|
|
2844
|
+
const goneId = deps.scope.view.nodes.find((n) => (n.id === request.worker || n.label === request.worker) && (n.status === "done" || n.status === "failed" || n.status === "cancelled"))?.id ?? deps.coord.settled().find((w) => w.id === request.worker)?.id;
|
|
2845
|
+
if (goneId !== void 0) write({
|
|
2846
|
+
...base,
|
|
2847
|
+
effect: "not_live",
|
|
2848
|
+
workerId: goneId,
|
|
2849
|
+
detail: `worker '${goneId}' had already settled before this operation was applied`,
|
|
2850
|
+
terminated: []
|
|
2851
|
+
});
|
|
2852
|
+
};
|
|
2853
|
+
const reconcile = (record) => {
|
|
2854
|
+
const workerId = record.workerId;
|
|
2855
|
+
if (workerId === void 0) return;
|
|
2856
|
+
const terminal = deliveredTerminal(workerId);
|
|
2857
|
+
if (terminal === void 0) return;
|
|
2858
|
+
if (terminal === "down") {
|
|
2859
|
+
write({
|
|
2860
|
+
...record,
|
|
2861
|
+
effect: "cancelled",
|
|
2862
|
+
observedAt: iso(),
|
|
2863
|
+
terminated: [workerId, ...terminatedDescendants(deps.dir, workerId, record.requestedAt)],
|
|
2864
|
+
detail: `worker '${workerId}' reached a terminal down state on the settle path`
|
|
2865
|
+
});
|
|
2866
|
+
return;
|
|
2867
|
+
}
|
|
2868
|
+
write({
|
|
2869
|
+
...record,
|
|
2870
|
+
effect: "not_live",
|
|
2871
|
+
observedAt: iso(),
|
|
2872
|
+
terminated: [],
|
|
2873
|
+
detail: `worker '${workerId}' settled done despite the abort request; nothing was terminated`
|
|
2874
|
+
});
|
|
2875
|
+
};
|
|
2876
|
+
return { pass() {
|
|
2877
|
+
for (const request of readWorkerCancelRequests(deps.dir)) {
|
|
2878
|
+
let record = tracked.get(request.operationId);
|
|
2879
|
+
if (record === void 0) {
|
|
2880
|
+
record = readWorkerCancellation(deps.dir, request.operationId);
|
|
2881
|
+
if (record !== void 0) tracked.set(request.operationId, record);
|
|
2882
|
+
}
|
|
2883
|
+
if (record === void 0) {
|
|
2884
|
+
apply(request);
|
|
2885
|
+
continue;
|
|
2886
|
+
}
|
|
2887
|
+
if (record.effect === "cancel_requested") reconcile(record);
|
|
2888
|
+
}
|
|
2889
|
+
} };
|
|
2890
|
+
}
|
|
2891
|
+
/**
|
|
2892
|
+
* Subtree node ids with a terminal `down`/`cancelled` journal record at or after `sinceIso` —
|
|
2893
|
+
* the descendants a cancelled lead's cascading abort took down, read from the durable spawn
|
|
2894
|
+
* journal beside the run layout (the nested trees journal their terminal records before the lead
|
|
2895
|
+
* itself settles). Ids are hierarchical (`parent:sN`), so `${nodeId}:` prefixes exactly the
|
|
2896
|
+
* subtree. Tolerant of a missing or partially-written journal: evidence that cannot be read
|
|
2897
|
+
* names fewer nodes, never wrong ones.
|
|
2898
|
+
*/
|
|
2899
|
+
function terminatedDescendants(dir, nodeId, sinceIso) {
|
|
2900
|
+
let raw;
|
|
2901
|
+
try {
|
|
2902
|
+
raw = readFileSync(join(dir, SPAWN_JOURNAL_FILE), "utf8");
|
|
2903
|
+
} catch {
|
|
2904
|
+
return [];
|
|
2905
|
+
}
|
|
2906
|
+
const prefix = `${nodeId}:`;
|
|
2907
|
+
const ids = /* @__PURE__ */ new Set();
|
|
2908
|
+
for (const line of raw.split("\n")) {
|
|
2909
|
+
const trimmed = line.trim();
|
|
2910
|
+
if (!trimmed) continue;
|
|
2911
|
+
let parsed;
|
|
2912
|
+
try {
|
|
2913
|
+
parsed = JSON.parse(trimmed);
|
|
2914
|
+
} catch {
|
|
2915
|
+
continue;
|
|
2916
|
+
}
|
|
2917
|
+
if (parsed.kind !== "event" || parsed.event === void 0) continue;
|
|
2918
|
+
const event = parsed.event;
|
|
2919
|
+
if (!(event.kind === "settled" && event.status === "down" || event.kind === "cancelled")) continue;
|
|
2920
|
+
if (typeof event.id !== "string" || !event.id.startsWith(prefix)) continue;
|
|
2921
|
+
if (typeof event.at !== "string" || event.at < sinceIso) continue;
|
|
2922
|
+
ids.add(event.id);
|
|
2923
|
+
}
|
|
2924
|
+
return [...ids].sort();
|
|
2925
|
+
}
|
|
2773
2926
|
/**
|
|
2774
2927
|
* Build the intelligent recursive driver. Its `act` is the LLM tool-loop; spawn it as a
|
|
2775
2928
|
* `driverChild` (`driver-executor.ts`) to run it inside a nested scope, recursively.
|
|
@@ -2815,6 +2968,12 @@ function driverAgent(opts) {
|
|
|
2815
2968
|
...opts.priorCoordination?.questions.length ? { priorQuestions: opts.priorCoordination.questions } : {}
|
|
2816
2969
|
});
|
|
2817
2970
|
await coord.ready();
|
|
2971
|
+
const acknowledger = opts.controlDir === void 0 ? void 0 : createCancelAcknowledger({
|
|
2972
|
+
dir: opts.controlDir,
|
|
2973
|
+
coord,
|
|
2974
|
+
scope,
|
|
2975
|
+
now
|
|
2976
|
+
});
|
|
2818
2977
|
for (const w of scope.resume?.waits ?? []) {
|
|
2819
2978
|
const rearmed = scope.wait(w.spec, { label: w.label });
|
|
2820
2979
|
if (!rearmed.ok) throw new RuntimeRunStateError(`driverAgent: cannot re-arm resumed wait '${w.label}' (${rearmed.reason})`);
|
|
@@ -2983,6 +3142,7 @@ function driverAgent(opts) {
|
|
|
2983
3142
|
maxTurns,
|
|
2984
3143
|
hooks: {
|
|
2985
3144
|
beforeTurn: (_turn, messages) => {
|
|
3145
|
+
acknowledger?.pass();
|
|
2986
3146
|
const pending = inbox.drain();
|
|
2987
3147
|
if (pending.length > 0) messages.push({
|
|
2988
3148
|
role: "user",
|
|
@@ -3003,6 +3163,7 @@ function driverAgent(opts) {
|
|
|
3003
3163
|
}
|
|
3004
3164
|
});
|
|
3005
3165
|
await coord.drainResolved();
|
|
3166
|
+
acknowledger?.pass();
|
|
3006
3167
|
const submitted = coord.submittedResult();
|
|
3007
3168
|
if (submitted) return submitted.result;
|
|
3008
3169
|
return runFinalizer(opts.finalizer ?? bestDelivered, {
|
|
@@ -5457,6 +5618,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
5457
5618
|
...deps.replaySettlements ? { replaySettlements: true } : {},
|
|
5458
5619
|
...priorCoordination ? { priorCoordination } : {},
|
|
5459
5620
|
...deps.finalizer ? { finalizer: deps.finalizer } : {},
|
|
5621
|
+
...deps.controlDir === void 0 ? {} : { controlDir: deps.controlDir },
|
|
5460
5622
|
inbox
|
|
5461
5623
|
});
|
|
5462
5624
|
if (!deps.loadPriorCoordination && !resolveTools && !observeNodeEvent) return build(deps.priorCoordination, void 0, deps.onEvent);
|
|
@@ -6510,7 +6672,8 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
6510
6672
|
...options.maxTurns !== void 0 ? { maxTurns: options.maxTurns } : {},
|
|
6511
6673
|
...options.compaction ? { compaction: options.compaction } : {},
|
|
6512
6674
|
...options.driverRetry ? { driverRetry: options.driverRetry } : {},
|
|
6513
|
-
...options.onDriverAttempt ? { onDriverAttempt: options.onDriverAttempt } : {}
|
|
6675
|
+
...options.onDriverAttempt ? { onDriverAttempt: options.onDriverAttempt } : {},
|
|
6676
|
+
...options.runDir === void 0 ? {} : { controlDir: resolve(options.runDir) }
|
|
6514
6677
|
};
|
|
6515
6678
|
const agent = testBrain === void 0 ? supervisorAgent(canonicalProfile, agentDeps) : supervisorAgentWithTestBrain(canonicalProfile, {
|
|
6516
6679
|
...agentDeps,
|
|
@@ -6589,4 +6752,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
6589
6752
|
//#endregion
|
|
6590
6753
|
export { DELEGATION_TRACE_MAX_BYTES as $, DELEGATION_HISTORY_INPUT_SCHEMA as A, defaultToolDetectors as At, DELEGATE_FEEDBACK_INPUT_SCHEMA as B, createMcpServer as C, plateauLength as Ct, createDelegationStatusHandler as D, createCoordinationTools as Dt, DELEGATION_STATUS_TOOL_NAME as E, canonicalFindingEvent as Et, DELEGATE_UI_AUDIT_INPUT_SCHEMA as F, createSupervisorSpanRecorder as Ft, DELEGATE_INPUT_SCHEMA as G, createDelegateFeedbackHandler as H, DELEGATE_UI_AUDIT_TOOL_NAME as I, gateOnDeliverable as It, validateDelegateArgs as J, DELEGATE_TOOL_NAME as K, createDelegateUiAuditHandler as L, mapExecutorResult as Lt, createDelegationHistoryHandler as M, createFileRunContext as Mt, validateDelegationHistoryArgs as N, createInMemoryRunContext as Nt, validateDelegationStatusArgs as O, normalizeAnalyzeOnSettle as Ot, DELEGATE_UI_AUDIT_DESCRIPTION as P, FileCoordinationLog as Pt, hashIdempotencyInput as Q, validateDelegateUiAuditArgs as R, createInProcessTransport as S, bestSoFar as St, DELEGATION_STATUS_INPUT_SCHEMA as T, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as Tt, validateDelegateFeedbackArgs as U, DELEGATE_FEEDBACK_TOOL_NAME as V, DELEGATE_DESCRIPTION as W, delegate as X, defaultDelegateBudget as Y, DelegationTaskQueue as Z, promptHandle as _, noProgressFor as _t, assertCoordinationBinding as a, DelegationPersistenceError as at, classifyDriverFailure as b, anytimeReport as bt, supervisorAgentWithTestBrain as c, InMemoryDelegationStore as ct, delegatesWorkerBriefPrompt as d, driverAgent as dt, DELEGATION_TRACE_MAX_SPANS as et, dumbContinuationFailPrompt as f, finalizeBestDelivered as ft, naiveContinuationPrompt as g, createProgressTracker as gt, kernelPromptRegistry as h, anyOf as ht, workerFromBackend as i, createDelegationTraceCollector as it, DELEGATION_HISTORY_TOOL_NAME as j, watchTrace as jt, DELEGATION_HISTORY_DESCRIPTION as k, createEventBus as kt, analyzesFindingsReportPrompt as l, InMemoryFeedbackStore as lt, formatPromptHandle as m, allWorkersStalled as mt, supervise as n, capDelegationTrace as nt, resolveSupervisorProfile as o, DelegationStateCorruptError as ot, dumbContinuationPassPrompt as p, allOf as pt, createDelegateHandler as q, superviseWithTestBrain as r, composeLoopTraceEmitters as rt, supervisorAgent as s, FileDelegationStore as st, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, buildDelegationTraceSpans as tt, createPromptRegistry as u, eventToSnapshot as ut, supervisorPolicyPrompt as v, plateau as vt, DELEGATION_STATUS_DESCRIPTION as w, renderAnytimeTable as wt, serveCoordinationMcp as x, areaUnderCurve as xt, DriverAttemptsExhaustedError as y, sampleFromSettled as yt, DELEGATE_FEEDBACK_DESCRIPTION as z };
|
|
6591
6754
|
|
|
6592
|
-
//# sourceMappingURL=supervise-
|
|
6755
|
+
//# sourceMappingURL=supervise-B-nTWUCK.js.map
|