@tangle-network/agent-runtime 10.0.2 → 10.0.4
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/CHANGELOG.md +8 -0
- package/dist/{activation-B0DHGRtB.js → activation-38MolXIP.js} +2 -2
- package/dist/{activation-B0DHGRtB.js.map → activation-38MolXIP.js.map} +1 -1
- package/dist/{activation-D0Sp7wMc.d.ts → activation-Ckx0yHjT.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/{continuation-CZaeHEzQ.js → continuation-CL4B1Y4M.js} +3 -3
- package/dist/{continuation-CZaeHEzQ.js.map → continuation-CL4B1Y4M.js.map} +1 -1
- package/dist/{delegate-Co5iUyS0.js → delegate-dhNeiaH_.js} +2 -2
- package/dist/{delegate-Co5iUyS0.js.map → delegate-dhNeiaH_.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-B1Qx2JUz.js → driver-control-acknowledgers-C6GaGBf_.js} +98 -55
- package/dist/{driver-control-acknowledgers-B1Qx2JUz.js.map → driver-control-acknowledgers-C6GaGBf_.js.map} +1 -1
- package/dist/durable-file-DJ3JsA4B.js +1 -0
- package/dist/durable-file-lXnojyij.js +509 -0
- package/dist/durable-file-lXnojyij.js.map +1 -0
- package/dist/durable-writer-thread.d.ts +1 -0
- package/dist/durable-writer-thread.js +86 -0
- package/dist/durable-writer-thread.js.map +1 -0
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +15 -128
- package/dist/durable.js.map +1 -1
- package/dist/{graph-uc4eT1wR.js → graph-CwLg3LGC.js} +7 -7
- package/dist/{graph-uc4eT1wR.js.map → graph-CwLg3LGC.js.map} +1 -1
- package/dist/{graph-registry-DxhlgHdA.js → graph-registry-Bs6mGKou.js} +1 -1
- package/dist/{graph-registry-j9t9J0KT.js → graph-registry-DtGd03zk.js} +4 -4
- package/dist/{graph-registry-j9t9J0KT.js.map → graph-registry-DtGd03zk.js.map} +1 -1
- package/dist/{improve-BM0HlzMi.js → improve-C_LKfgH9.js} +7 -7
- package/dist/{improve-BM0HlzMi.js.map → improve-C_LKfgH9.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/{jsonl-file-BhuxeejY.js → jsonl-file-DyzefaZ6.js} +53 -11
- package/dist/jsonl-file-DyzefaZ6.js.map +1 -0
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +18 -16
- package/dist/{loop-runner-CRC-RE4D.js → loop-runner-BS3ru-yj.js} +2 -2
- package/dist/{loop-runner-CRC-RE4D.js.map → loop-runner-BS3ru-yj.js.map} +1 -1
- package/dist/{loop-runner-npLkvCU5.d.ts → loop-runner-LWqWf8FD.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 +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-CJrMGyZW.js → provision-supervisor-D8N0l2DM.js} +6 -6
- package/dist/{provision-supervisor-CJrMGyZW.js.map → provision-supervisor-D8N0l2DM.js.map} +1 -1
- package/dist/result-blob-store-DfTcyQ05.js +76 -0
- package/dist/result-blob-store-DfTcyQ05.js.map +1 -0
- package/dist/{run-cancellation-CBP3Bmad.js → run-cancellation-D3qc9wAD.js} +5 -209
- package/dist/run-cancellation-D3qc9wAD.js.map +1 -0
- package/dist/run-lock-D1xnb9ve.js +193 -0
- package/dist/run-lock-D1xnb9ve.js.map +1 -0
- package/dist/run-reopen-DVM5AEKV.js +134 -0
- package/dist/run-reopen-DVM5AEKV.js.map +1 -0
- package/dist/run-state-tgQ-S9Ln.js +180 -0
- package/dist/run-state-tgQ-S9Ln.js.map +1 -0
- package/dist/{runtime-BqSaWTEY.js → runtime-BTECV05R.js} +21 -19
- package/dist/{runtime-BqSaWTEY.js.map → runtime-BTECV05R.js.map} +1 -1
- package/dist/{search-executor-C9TN-KgI.js → search-executor-Uco2_KTB.js} +3 -3
- package/dist/{search-executor-C9TN-KgI.js.map → search-executor-Uco2_KTB.js.map} +1 -1
- package/dist/{server-CcMa8Lt9.js → server-BMp24-xn.js} +3 -3
- package/dist/{server-CcMa8Lt9.js.map → server-BMp24-xn.js.map} +1 -1
- package/dist/{settle-record-BtjYZabI.js → settle-record-au3w7bQG.js} +5 -4
- package/dist/settle-record-au3w7bQG.js.map +1 -0
- package/dist/{structural-rollout-2oRJjwyM.js → structural-rollout-D8wufVJI.js} +4 -4
- package/dist/{structural-rollout-2oRJjwyM.js.map → structural-rollout-D8wufVJI.js.map} +1 -1
- package/dist/{supervise-BrgtzJf3.js → supervise-DtVdvZpr.js} +9 -8
- package/dist/{supervise-BrgtzJf3.js.map → supervise-DtVdvZpr.js.map} +1 -1
- package/dist/supervise-identity-S5XwgaF3.js +210 -0
- package/dist/supervise-identity-S5XwgaF3.js.map +1 -0
- package/dist/{supervision-discovery-DLMm3UOr.js → supervision-discovery-Cqu4NxPV.js} +3 -3
- package/dist/{supervision-discovery-DLMm3UOr.js.map → supervision-discovery-Cqu4NxPV.js.map} +1 -1
- package/dist/{supervisor-ACffs_W4.js → supervisor-CHgCAMjm.js} +13 -176
- package/dist/supervisor-CHgCAMjm.js.map +1 -0
- package/dist/{supervisor-accounting-BlJqoP3k.js → supervisor-accounting-CZ7i4cd5.js} +171 -153
- package/dist/supervisor-accounting-CZ7i4cd5.js.map +1 -0
- package/dist/supervisor-root-contract-D70KTGXF.js +165 -0
- package/dist/supervisor-root-contract-D70KTGXF.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{top-web-PYyzBMsK.js → top-web-COrMqTRC.js} +7 -6
- package/dist/{top-web-PYyzBMsK.js.map → top-web-COrMqTRC.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{types-DX1OGeHE.d.ts → types-9xsn2GGY.d.ts} +10 -3
- package/package.json +1 -1
- package/dist/durable-file-CksURHlH.js +0 -1
- package/dist/durable-file-DstVeHcj.js +0 -228
- package/dist/durable-file-DstVeHcj.js.map +0 -1
- package/dist/jsonl-file-BhuxeejY.js.map +0 -1
- package/dist/run-cancellation-CBP3Bmad.js.map +0 -1
- package/dist/run-state-BnhCVbTY.js +0 -357
- package/dist/run-state-BnhCVbTY.js.map +0 -1
- package/dist/settle-record-BtjYZabI.js.map +0 -1
- package/dist/supervisor-ACffs_W4.js.map +0 -1
- package/dist/supervisor-accounting-BlJqoP3k.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as RetainedInteractiveAdmissionError, d as RetainedRunDispatchBindingError, f as RuntimeRunStateError, l as RetainedInteractiveBindingError, m as ValidationError, r as BackendTransportError, u as RetainedRunAdmissionError } from "./errors-DG8yufqX.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as runAbortable, c as withJsonlFileLock, d as journalFileStamp, f as sha256, h as deadlineSignal, l as appendCommittedJsonLine, o as readCommittedJsonLines, p as RunCancellationReason, r as prepareJsonlAppend, t as isNoEntError, v as signalAbortError } from "./jsonl-file-DyzefaZ6.js";
|
|
3
3
|
import { c as checkInIdleMs, d as teardownExecutor, n as CHILD_DEADLINE_REASON, o as armDeadlineTimer, s as boundedChildDeadlineAt, u as singleFlightTeardown } from "./deadline-CySmJ_0S.js";
|
|
4
4
|
import { A as withBudgetResources, C as unreportedSpend, D as addResourceSpend, T as zeroSpend, a as cloneSpend, c as errorMessage, f as isAsyncIterable, i as chargedTokens, k as resourceTelemetry, n as addSpend, o as cloneTokenUsage, t as abortError, v as sleep } from "./util-qsH5cC9S.js";
|
|
5
5
|
import { $ as newUsageTotals, F as executorFailureInfra, G as BudgetReconcileFault, I as executorFailureReason, J as budgetRecoverySeeds, K as budgetLeaseUpdates, M as contentAddress, Ot as recordValue, P as executorFailure, Q as meterUsageEvent, X as createBudgetPool, Y as completedLeafBacking, Z as refreshBudgetLease, a as settlementFailureCause, d as executorEvidenceWriter, ft as extractTransportEventIdentity, h as prepareRetainedExecutor, j as traceRootWriter, l as RetainedExecutionPendingError, m as leafContinuationExecutionId, n as runtimeFailureCause, nt as assertValidBudget, o as BUDGET_CONTINUATION_TASK, pt as parseCanonicalTransportEvent, q as budgetLeases, rt as assertValidSpend, t as reportedFailureCause, tt as spendFromUsageTotals, v as retainedExecutorSeamKey } from "./failure-cause-DoCCGLDH.js";
|
|
6
6
|
import { a as errMessage, f as resolveRedactor, i as causeChain, l as errorText, n as detachedSnapshot, r as shareParsedStrings, u as defaultRedactor } from "./snapshot-BKI_w3JD.js";
|
|
7
7
|
import { p as canonicalObservedModelParts, t as assertExecutableAgentProfile } from "./model-policy-DZnL8Yj9.js";
|
|
8
8
|
import { b as verifiedArtifactChunks, g as workspaceLimits, h as safeArchivePath, i as readAgentCandidateWorkspaceArtifactFiles } from "./workspace-streams-C7PGLAUd.js";
|
|
9
|
-
import {
|
|
9
|
+
import { S as fenceRunWrite, b as runFencedAsync, c as publishExclusiveDurableFileAsync, d as writeAtomicDurableFile, f as writeAtomicDurableFileAsync, i as appendRunLinesAsync, n as appendDurableFile, o as assertNoSymlinkDescendant, r as appendRunLines, s as publishExclusiveDurableFile, x as captureRunWriteContext } from "./durable-file-lXnojyij.js";
|
|
10
10
|
import { b as sha256Bytes$1, g as deepFreezeCandidate } from "./output-artifacts-AqkZ8lO2.js";
|
|
11
11
|
import { a as withPursuitContext, i as notifyRuntimeHookEvent } from "./runtime-hooks-CsW2pfFk.js";
|
|
12
12
|
import * as traceContract from "@tangle-network/agent-trace-contract";
|
|
@@ -17,7 +17,7 @@ import { isRecord } from "@tangle-network/agent-core";
|
|
|
17
17
|
import { z } from "zod";
|
|
18
18
|
import { redact } from "@tangle-network/agent-eval/traces";
|
|
19
19
|
import { createHash, randomUUID } from "node:crypto";
|
|
20
|
-
import { appendFileSync, closeSync, constants, existsSync, fstatSync, fsyncSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, realpathSync,
|
|
20
|
+
import { appendFileSync, closeSync, constants, existsSync, fstatSync, fsyncSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, realpathSync, unlinkSync, writeSync } from "node:fs";
|
|
21
21
|
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
22
22
|
import { mkdir, open, realpath, stat } from "node:fs/promises";
|
|
23
23
|
import { BOUND_HARNESS_SESSION_READ_LIMITS, HARNESS_TRANSCRIPT_DENY, readBoundHarnessSessions } from "@tangle-network/harness-sessions";
|
|
@@ -5132,75 +5132,6 @@ function outsideCursorNamespace(ev) {
|
|
|
5132
5132
|
function insideCursorNamespace(ev) {
|
|
5133
5133
|
return !outsideKinds.has(ev.kind);
|
|
5134
5134
|
}
|
|
5135
|
-
// src/durable/spawn-journal/result-blob-store.ts
|
|
5136
|
-
/**
|
|
5137
|
-
* FS `ResultBlobStore`. One JSON file per artifact under `dir`, named by a
|
|
5138
|
-
* filesystem-safe encoding of the `outRef` (`sha256:<hex>` → `sha256-<hex>.json`).
|
|
5139
|
-
* `put` fsyncs so a crash between writes never loses an acknowledged blob.
|
|
5140
|
-
*
|
|
5141
|
-
* @stable
|
|
5142
|
-
*/
|
|
5143
|
-
var FileResultBlobStore = class {
|
|
5144
|
-
dir;
|
|
5145
|
-
writeContext = captureRunWriteContext();
|
|
5146
|
-
constructor(dir) {
|
|
5147
|
-
this.dir = dir;
|
|
5148
|
-
}
|
|
5149
|
-
async put(outRef, artifact) {
|
|
5150
|
-
return this.writeContext(async () => {
|
|
5151
|
-
const { text } = encodeResultBlob(outRef, artifact);
|
|
5152
|
-
const filePath = this.blobPath(outRef);
|
|
5153
|
-
assertNoSymlinkDescendant(this.dir, filePath, "result blob");
|
|
5154
|
-
await (await import("node:fs/promises")).mkdir(this.dir, { recursive: true });
|
|
5155
|
-
assertNoSymlinkDescendant(this.dir, filePath, "result blob");
|
|
5156
|
-
if (!publishExclusiveDurableFile(filePath, text, { mode: 384 })) assertContentAddress(outRef, await this.get(outRef));
|
|
5157
|
-
});
|
|
5158
|
-
}
|
|
5159
|
-
async get(outRef) {
|
|
5160
|
-
const filePath = this.blobPath(outRef);
|
|
5161
|
-
assertNoSymlinkDescendant(this.dir, filePath, "result blob");
|
|
5162
|
-
const fs = await import("node:fs/promises");
|
|
5163
|
-
const { constants } = await import("node:fs");
|
|
5164
|
-
let text;
|
|
5165
|
-
try {
|
|
5166
|
-
const handle = await fs.open(filePath, constants.O_RDONLY | constants.O_NOFOLLOW);
|
|
5167
|
-
try {
|
|
5168
|
-
if (!(await handle.stat()).isFile()) throw new Error("result blob must be a regular file");
|
|
5169
|
-
text = await handle.readFile("utf8");
|
|
5170
|
-
} finally {
|
|
5171
|
-
await handle.close();
|
|
5172
|
-
}
|
|
5173
|
-
} catch (err) {
|
|
5174
|
-
if (isNoEntError(err)) return void 0;
|
|
5175
|
-
throw err;
|
|
5176
|
-
}
|
|
5177
|
-
const artifact = JSON.parse(text);
|
|
5178
|
-
assertContentAddress(outRef, artifact);
|
|
5179
|
-
return artifact;
|
|
5180
|
-
}
|
|
5181
|
-
blobPath(outRef) {
|
|
5182
|
-
if (!/^sha256:[0-9a-f]{64}$/.test(outRef)) throw new Error("invalid result blob content address");
|
|
5183
|
-
return `${this.dir}/${outRef.replace(/:/g, "-")}.json`;
|
|
5184
|
-
}
|
|
5185
|
-
};
|
|
5186
|
-
/** @internal shared with the SQL-backed store. */
|
|
5187
|
-
function encodeResultBlob(outRef, artifact) {
|
|
5188
|
-
const detached = detachedSnapshot(artifact, "result blob");
|
|
5189
|
-
assertContentAddress(outRef, detached);
|
|
5190
|
-
const text = JSON.stringify(detached);
|
|
5191
|
-
if (text === void 0) throw new Error("result blob must contain JSON");
|
|
5192
|
-
const snapshot = JSON.parse(text);
|
|
5193
|
-
assertContentAddress(outRef, snapshot);
|
|
5194
|
-
return {
|
|
5195
|
-
snapshot,
|
|
5196
|
-
text
|
|
5197
|
-
};
|
|
5198
|
-
}
|
|
5199
|
-
/** @internal shared with the SQL-backed store. */
|
|
5200
|
-
function assertContentAddress(outRef, artifact) {
|
|
5201
|
-
const expected = contentAddress(artifact);
|
|
5202
|
-
if (outRef !== expected) throw new Error(`blob outRef '${outRef}' does not match the artifact content hash '${expected}'; a content-addressed store refuses a mismatched ref (breaks the replay invariant)`);
|
|
5203
|
-
}
|
|
5204
5135
|
// src/runtime/supervise/tree-key.ts
|
|
5205
5136
|
/** Runtime tag used only for a child that owns another supervised scope. */
|
|
5206
5137
|
const driverRuntime = "driver";
|
|
@@ -9185,21 +9116,13 @@ var FileSpawnJournal = class {
|
|
|
9185
9116
|
const { dirname } = await import("node:path");
|
|
9186
9117
|
try {
|
|
9187
9118
|
await fs.mkdir(dirname(this.path), { recursive: true });
|
|
9188
|
-
return await appendCommittedJsonLine(this.path, record,
|
|
9189
|
-
const stamp = journalFileStamp(fstatSync(fd, { bigint: true }));
|
|
9190
|
-
if (journalFileStamp(statSync(this.path, { bigint: true })) !== stamp) throw new Error("spawn journal changed while acknowledging its append");
|
|
9191
|
-
return stamp;
|
|
9192
|
-
});
|
|
9119
|
+
return await appendCommittedJsonLine(this.path, record, { journalStamp: true });
|
|
9193
9120
|
} catch (error) {
|
|
9194
9121
|
this.appendIndex = void 0;
|
|
9195
9122
|
throw error;
|
|
9196
9123
|
}
|
|
9197
9124
|
}
|
|
9198
9125
|
};
|
|
9199
|
-
/** Detect replacement, truncation, and same-size edits; this is not a cross-process write lock. */
|
|
9200
|
-
function journalFileStamp(stat) {
|
|
9201
|
-
return `${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}`;
|
|
9202
|
-
}
|
|
9203
9126
|
// src/runtime/retained-interactive-handle.ts
|
|
9204
9127
|
function createRetainedInteractiveRunHandle(environment, inputRef, capabilities, requestedStart) {
|
|
9205
9128
|
const ref = freezeInteractiveRef(inputRef);
|
|
@@ -9567,6 +9490,19 @@ function readWorkerInteractiveBinding(eventDir, workerId) {
|
|
|
9567
9490
|
* @internal
|
|
9568
9491
|
*/
|
|
9569
9492
|
function writeWorkerInteractiveBinding(eventDir, workerId, label, journalRoot, session, now = Date.now) {
|
|
9493
|
+
const pending = prepareBinding(eventDir, workerId, label, journalRoot, session, now);
|
|
9494
|
+
if ("existing" in pending) return pending.existing;
|
|
9495
|
+
return settleBinding(eventDir, pending.binding, publishExclusiveDurableFile(pending.file, bindingText(pending.binding)));
|
|
9496
|
+
}
|
|
9497
|
+
/** `writeWorkerInteractiveBinding` without blocking the calling thread on the disk. @internal */
|
|
9498
|
+
async function writeWorkerInteractiveBindingAsync(eventDir, workerId, label, journalRoot, session, now = Date.now) {
|
|
9499
|
+
const pending = prepareBinding(eventDir, workerId, label, journalRoot, session, now);
|
|
9500
|
+
if ("existing" in pending) return pending.existing;
|
|
9501
|
+
return settleBinding(eventDir, pending.binding, await publishExclusiveDurableFileAsync(pending.file, bindingText(pending.binding)));
|
|
9502
|
+
}
|
|
9503
|
+
const bindingText = (binding) => `${JSON.stringify(binding, null, 2)}\n`;
|
|
9504
|
+
/** The binding to publish and its file, or the identical binding already published. */
|
|
9505
|
+
function prepareBinding(eventDir, workerId, label, journalRoot, session, now) {
|
|
9570
9506
|
const id = stableText$1(workerId, "worker id");
|
|
9571
9507
|
const workerLabel = stableText$1(label, "worker label");
|
|
9572
9508
|
const root = stableText$1(journalRoot, "journal root");
|
|
@@ -9598,10 +9534,17 @@ function writeWorkerInteractiveBinding(eventDir, workerId, label, journalRoot, s
|
|
|
9598
9534
|
const existing = readWorkerInteractiveBinding(eventDir, id);
|
|
9599
9535
|
if (existing !== void 0) {
|
|
9600
9536
|
assertSameBinding(existing, binding);
|
|
9601
|
-
return existing;
|
|
9537
|
+
return { existing };
|
|
9602
9538
|
}
|
|
9603
|
-
|
|
9604
|
-
|
|
9539
|
+
return {
|
|
9540
|
+
binding,
|
|
9541
|
+
file
|
|
9542
|
+
};
|
|
9543
|
+
}
|
|
9544
|
+
/** The published binding: this one, or the identical winner of a concurrent publication. */
|
|
9545
|
+
function settleBinding(eventDir, binding, published) {
|
|
9546
|
+
if (published) return binding;
|
|
9547
|
+
const winner = readWorkerInteractiveBinding(eventDir, binding.workerId);
|
|
9605
9548
|
if (winner === void 0) throw new Error(`worker interactive binding publication lost its winner`);
|
|
9606
9549
|
assertSameBinding(winner, binding);
|
|
9607
9550
|
return winner;
|
|
@@ -11645,6 +11588,38 @@ function workerSteerAcknowledgementFile(eventDir, operationId) {
|
|
|
11645
11588
|
* @stable
|
|
11646
11589
|
*/
|
|
11647
11590
|
function writeWorkerSteer(rootDir, supervisorId, worker, options) {
|
|
11591
|
+
const steer = prepareWorkerSteer(rootDir, supervisorId, worker, options);
|
|
11592
|
+
const admitted = admitSteerRequest(steer.file, steer.request);
|
|
11593
|
+
if (admitted.replayed) return replayedSteer(steer, admitted);
|
|
11594
|
+
for (const projection of steerProjections(steer)) try {
|
|
11595
|
+
appendRunLines(projection.file, projection.lines, projection.options);
|
|
11596
|
+
} catch {}
|
|
11597
|
+
return {
|
|
11598
|
+
worker: steer.workerId,
|
|
11599
|
+
file: steer.file,
|
|
11600
|
+
request: steer.request,
|
|
11601
|
+
replayed: false
|
|
11602
|
+
};
|
|
11603
|
+
}
|
|
11604
|
+
/**
|
|
11605
|
+
* Admit one steer like `writeWorkerSteer`, without blocking the calling thread on the disk.
|
|
11606
|
+
* The request file is published by the durable writer, so an event loop that admits steers keeps
|
|
11607
|
+
* running while the file and its directory reach disk. Same admission, replay and conflict rules.
|
|
11608
|
+
* @stable
|
|
11609
|
+
*/
|
|
11610
|
+
async function writeWorkerSteerAsync(rootDir, supervisorId, worker, options) {
|
|
11611
|
+
const steer = prepareWorkerSteer(rootDir, supervisorId, worker, options);
|
|
11612
|
+
const admitted = await admitSteerRequestAsync(steer.file, steer.request);
|
|
11613
|
+
if (admitted.replayed) return replayedSteer(steer, admitted);
|
|
11614
|
+
for (const projection of steerProjections(steer)) await appendRunLinesAsync(projection.file, projection.lines, projection.options).catch(() => {});
|
|
11615
|
+
return {
|
|
11616
|
+
worker: steer.workerId,
|
|
11617
|
+
file: steer.file,
|
|
11618
|
+
request: steer.request,
|
|
11619
|
+
replayed: false
|
|
11620
|
+
};
|
|
11621
|
+
}
|
|
11622
|
+
function prepareWorkerSteer(rootDir, supervisorId, worker, options) {
|
|
11648
11623
|
const workerId = worker.trim();
|
|
11649
11624
|
if (!workerId) throw new Error("writeWorkerSteer: worker id is empty");
|
|
11650
11625
|
const operationId = options.operationId.trim();
|
|
@@ -11655,17 +11630,16 @@ function writeWorkerSteer(rootDir, supervisorId, worker, options) {
|
|
|
11655
11630
|
const interrupt = options.interrupt === true;
|
|
11656
11631
|
if (options.eventDir !== void 0 && !options.eventDir.trim()) throw new Error("writeWorkerSteer: eventDir is empty");
|
|
11657
11632
|
const dir = options.eventDir === void 0 ? supervisorRunDir(rootDir, supervisorId) : resolve(options.eventDir);
|
|
11658
|
-
const requestDigest = workerSteerRequestDigest({
|
|
11659
|
-
operationId,
|
|
11660
|
-
worker: workerId,
|
|
11661
|
-
message: trimmed,
|
|
11662
|
-
source,
|
|
11663
|
-
interrupt
|
|
11664
|
-
});
|
|
11665
11633
|
const request = {
|
|
11666
11634
|
schemaVersion: 1,
|
|
11667
11635
|
operationId,
|
|
11668
|
-
requestDigest
|
|
11636
|
+
requestDigest: workerSteerRequestDigest({
|
|
11637
|
+
operationId,
|
|
11638
|
+
worker: workerId,
|
|
11639
|
+
message: trimmed,
|
|
11640
|
+
source,
|
|
11641
|
+
interrupt
|
|
11642
|
+
}),
|
|
11669
11643
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
11670
11644
|
source,
|
|
11671
11645
|
worker: workerId,
|
|
@@ -11676,36 +11650,48 @@ function writeWorkerSteer(rootDir, supervisorId, worker, options) {
|
|
|
11676
11650
|
assertNoSymlinkDescendant(dir, file, "steer request");
|
|
11677
11651
|
mkdirSync(workerSteerRequestsDir(dir), { recursive: true });
|
|
11678
11652
|
assertNoSymlinkDescendant(dir, file, "steer request");
|
|
11679
|
-
|
|
11680
|
-
|
|
11653
|
+
return {
|
|
11654
|
+
dir,
|
|
11655
|
+
file,
|
|
11656
|
+
operationId,
|
|
11657
|
+
workerId,
|
|
11658
|
+
request
|
|
11659
|
+
};
|
|
11660
|
+
}
|
|
11661
|
+
function replayedSteer({ dir, file, operationId }, admitted) {
|
|
11662
|
+
const acknowledgement = readWorkerSteerAcknowledgement(dir, operationId);
|
|
11663
|
+
return {
|
|
11681
11664
|
worker: admitted.request.worker,
|
|
11682
11665
|
file,
|
|
11683
11666
|
request: admitted.request,
|
|
11684
|
-
...
|
|
11667
|
+
...acknowledgement === void 0 ? {} : { acknowledgement },
|
|
11685
11668
|
replayed: true
|
|
11686
11669
|
};
|
|
11670
|
+
}
|
|
11671
|
+
/** The readable projections the admission winner appends: the worker's inbox line and control event. */
|
|
11672
|
+
function steerProjections({ dir, operationId, workerId, request }) {
|
|
11687
11673
|
mkdirSync(supervisorWorkersDir(dir), { recursive: true });
|
|
11688
|
-
const
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
} catch {}
|
|
11692
|
-
appendWorkerControlEvent(dir, workerId, {
|
|
11674
|
+
const event = {
|
|
11675
|
+
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
11676
|
+
label: workerId,
|
|
11693
11677
|
kind: "message",
|
|
11694
11678
|
direction: "down",
|
|
11695
|
-
source,
|
|
11679
|
+
source: request.source,
|
|
11696
11680
|
operationId,
|
|
11697
|
-
requestDigest,
|
|
11698
|
-
message:
|
|
11699
|
-
interrupt,
|
|
11681
|
+
requestDigest: request.requestDigest,
|
|
11682
|
+
message: request.message,
|
|
11683
|
+
interrupt: request.interrupt,
|
|
11700
11684
|
queued: true,
|
|
11701
11685
|
delivered: false
|
|
11702
|
-
});
|
|
11703
|
-
return {
|
|
11704
|
-
worker: workerId,
|
|
11705
|
-
file,
|
|
11706
|
-
request,
|
|
11707
|
-
replayed: false
|
|
11708
11686
|
};
|
|
11687
|
+
return [{
|
|
11688
|
+
file: workerInboxFileFromEventDir(dir, workerId),
|
|
11689
|
+
lines: [`${JSON.stringify(request)}\n`]
|
|
11690
|
+
}, {
|
|
11691
|
+
file: workerControlLogFile(dir, workerId),
|
|
11692
|
+
lines: [`${JSON.stringify(event)}\n`],
|
|
11693
|
+
options: { directory: supervisorWorkersDir(dir) }
|
|
11694
|
+
}];
|
|
11709
11695
|
}
|
|
11710
11696
|
/** Read every atomically admitted request for one exact worker id, in admission order. @stable */
|
|
11711
11697
|
function readWorkerSteerRequests(eventDir, worker) {
|
|
@@ -11747,7 +11733,7 @@ function readWorkerSteerAcknowledgement(eventDir, operationId) {
|
|
|
11747
11733
|
* Returns `true` only to the process that created the pre-delivery record.
|
|
11748
11734
|
* @internal
|
|
11749
11735
|
*/
|
|
11750
|
-
function claimWorkerSteerDelivery(eventDir, record) {
|
|
11736
|
+
async function claimWorkerSteerDelivery(eventDir, record) {
|
|
11751
11737
|
const exact = parseWorkerSteerAcknowledgement(record);
|
|
11752
11738
|
if (exact.effect !== "unknown") throw new Error("steer delivery claim must use effect unknown");
|
|
11753
11739
|
const request = readWorkerSteerRequest(eventDir, exact.operationId);
|
|
@@ -11757,13 +11743,13 @@ function claimWorkerSteerDelivery(eventDir, record) {
|
|
|
11757
11743
|
mkdirSync(dir, { recursive: true });
|
|
11758
11744
|
assertNoSymlinkDescendant(eventDir, dir, "steer acknowledgement");
|
|
11759
11745
|
const file = workerSteerAcknowledgementFile(eventDir, exact.operationId);
|
|
11760
|
-
if (
|
|
11746
|
+
if (await publishExclusiveDurableFileAsync(file, `${JSON.stringify(exact, null, 2)}\n`)) return true;
|
|
11761
11747
|
const winner = readWorkerSteerAcknowledgement(eventDir, exact.operationId);
|
|
11762
11748
|
if (winner === void 0 || winner.operationId !== exact.operationId || winner.requestDigest !== exact.requestDigest) throw new Error("steer delivery claim conflicts with another operation");
|
|
11763
11749
|
return false;
|
|
11764
11750
|
}
|
|
11765
11751
|
/** Atomically replace the runtime acknowledgement for one steer operation. @internal */
|
|
11766
|
-
function writeWorkerSteerAcknowledgement(eventDir, record) {
|
|
11752
|
+
async function writeWorkerSteerAcknowledgement(eventDir, record) {
|
|
11767
11753
|
const exact = parseWorkerSteerAcknowledgement(record);
|
|
11768
11754
|
const request = readWorkerSteerRequest(eventDir, exact.operationId);
|
|
11769
11755
|
if (request === void 0 || request.requestDigest !== exact.requestDigest) throw new Error("steer acknowledgement does not match an admitted request");
|
|
@@ -11774,7 +11760,7 @@ function writeWorkerSteerAcknowledgement(eventDir, record) {
|
|
|
11774
11760
|
const file = workerSteerAcknowledgementFile(eventDir, exact.operationId);
|
|
11775
11761
|
const prior = readWorkerSteerAcknowledgement(eventDir, exact.operationId);
|
|
11776
11762
|
if (prior !== void 0 && prior.effect !== "unknown" && canonicalCandidateDigest(prior) !== canonicalCandidateDigest(exact)) throw new Error(`steer operation '${exact.operationId}' already has a terminal acknowledgement`);
|
|
11777
|
-
|
|
11763
|
+
await writeAtomicDurableFileAsync(file, `${JSON.stringify(exact, null, 2)}\n`);
|
|
11778
11764
|
}
|
|
11779
11765
|
/** The directory holding every cancellation artifact of one run (request inbox + acknowledgements). */
|
|
11780
11766
|
function workerCancellationsDir(eventDir) {
|
|
@@ -11954,14 +11940,11 @@ function isWorkerCancelRequest(value) {
|
|
|
11954
11940
|
}
|
|
11955
11941
|
function appendWorkerControlEvent(eventDir, label, event) {
|
|
11956
11942
|
try {
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
...event
|
|
11963
|
-
})}\n`, "utf8");
|
|
11964
|
-
});
|
|
11943
|
+
appendRunLines(workerControlLogFile(eventDir, label), [`${JSON.stringify({
|
|
11944
|
+
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
11945
|
+
label,
|
|
11946
|
+
...event
|
|
11947
|
+
})}\n`], { directory: supervisorWorkersDir(eventDir) });
|
|
11965
11948
|
} catch {}
|
|
11966
11949
|
}
|
|
11967
11950
|
function workerSteerRequestDigest(value) {
|
|
@@ -11976,15 +11959,23 @@ function operationFileHash(operationId) {
|
|
|
11976
11959
|
return sha256(id);
|
|
11977
11960
|
}
|
|
11978
11961
|
function admitSteerRequest(file, request) {
|
|
11962
|
+
return replayedSteerRequest(file, request) ?? steerAdmission(file, request, publishExclusiveDurableFile(file, steerRequestText(request)));
|
|
11963
|
+
}
|
|
11964
|
+
async function admitSteerRequestAsync(file, request) {
|
|
11965
|
+
return replayedSteerRequest(file, request) ?? steerAdmission(file, request, await publishExclusiveDurableFileAsync(file, steerRequestText(request)));
|
|
11966
|
+
}
|
|
11967
|
+
const steerRequestText = (request) => `${JSON.stringify(request, null, 2)}\n`;
|
|
11968
|
+
function replayedSteerRequest(file, request) {
|
|
11979
11969
|
const existing = readWorkerSteerRequestFile(file);
|
|
11980
|
-
if (existing
|
|
11981
|
-
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11970
|
+
if (existing === void 0) return void 0;
|
|
11971
|
+
assertSameSteerRequest(existing, request);
|
|
11972
|
+
return {
|
|
11973
|
+
request: existing,
|
|
11974
|
+
replayed: true
|
|
11975
|
+
};
|
|
11976
|
+
}
|
|
11977
|
+
function steerAdmission(file, request, published) {
|
|
11978
|
+
if (published) return {
|
|
11988
11979
|
request,
|
|
11989
11980
|
replayed: false
|
|
11990
11981
|
};
|
|
@@ -12083,17 +12074,28 @@ function createRootStreamSink(runDir, now, file = ROOT_STREAM_FILE, options = {}
|
|
|
12083
12074
|
const pending = [];
|
|
12084
12075
|
let failure;
|
|
12085
12076
|
let flushedAt = 0;
|
|
12077
|
+
let writes = Promise.resolve();
|
|
12078
|
+
let writing = false;
|
|
12086
12079
|
const flush = () => withClaim(() => {
|
|
12087
12080
|
const writer = fd;
|
|
12088
|
-
if (pending.length === 0 || writer === void 0) return;
|
|
12081
|
+
if (writing || pending.length === 0 || writer === void 0) return;
|
|
12089
12082
|
const lines = pending.splice(0).join("\n");
|
|
12090
12083
|
flushedAt = Date.now();
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
} catch (error) {
|
|
12084
|
+
writing = true;
|
|
12085
|
+
writes = runFencedAsync("writeStreamLines", writeStreamLinesFenced, writer, lines).catch((error) => {
|
|
12094
12086
|
failure ??= error;
|
|
12095
|
-
}
|
|
12087
|
+
}).finally(() => {
|
|
12088
|
+
writing = false;
|
|
12089
|
+
if (pending.length > 0 && !closed) setImmediate(flush);
|
|
12090
|
+
});
|
|
12096
12091
|
});
|
|
12092
|
+
const drain = async () => {
|
|
12093
|
+
flush();
|
|
12094
|
+
while (writing) {
|
|
12095
|
+
await writes;
|
|
12096
|
+
flush();
|
|
12097
|
+
}
|
|
12098
|
+
};
|
|
12097
12099
|
const openOnce = async () => {
|
|
12098
12100
|
if (fd !== void 0) return;
|
|
12099
12101
|
await mkdir(dirname(path), { recursive: true });
|
|
@@ -12106,16 +12108,7 @@ function createRootStreamSink(runDir, now, file = ROOT_STREAM_FILE, options = {}
|
|
|
12106
12108
|
priorAttempts = Math.max(priorAttempts, record.attempt);
|
|
12107
12109
|
}
|
|
12108
12110
|
if (options.continueAttempts === true) attempt += priorAttempts;
|
|
12109
|
-
fd =
|
|
12110
|
-
const writer = openSync(path, constants.O_APPEND | constants.O_CREAT | constants.O_WRONLY | (typeof constants.O_NOFOLLOW === "number" ? constants.O_NOFOLLOW : 0), 384);
|
|
12111
|
-
try {
|
|
12112
|
-
if (needsSeparator) writeLine(writer, "");
|
|
12113
|
-
return writer;
|
|
12114
|
-
} catch (error) {
|
|
12115
|
-
closeSync(writer);
|
|
12116
|
-
throw error;
|
|
12117
|
-
}
|
|
12118
|
-
});
|
|
12111
|
+
fd = await runFencedAsync("openStreamFile", openStreamFileFenced, path, needsSeparator);
|
|
12119
12112
|
};
|
|
12120
12113
|
return {
|
|
12121
12114
|
async beginAttempt() {
|
|
@@ -12123,9 +12116,9 @@ function createRootStreamSink(runDir, now, file = ROOT_STREAM_FILE, options = {}
|
|
|
12123
12116
|
if (closed) throw new Error("root stream: beginAttempt after close");
|
|
12124
12117
|
attempt += 1;
|
|
12125
12118
|
const writer = fd;
|
|
12126
|
-
|
|
12119
|
+
await drain();
|
|
12127
12120
|
if (failure !== void 0) throw failure;
|
|
12128
|
-
if (writer !== void 0)
|
|
12121
|
+
if (writer !== void 0) await runFencedAsync("syncStreamFile", syncStreamFileFenced, writer);
|
|
12129
12122
|
await openOnce();
|
|
12130
12123
|
});
|
|
12131
12124
|
},
|
|
@@ -12168,18 +12161,43 @@ function createRootStreamSink(runDir, now, file = ROOT_STREAM_FILE, options = {}
|
|
|
12168
12161
|
const writer = fd;
|
|
12169
12162
|
if (writer === void 0) return void 0;
|
|
12170
12163
|
try {
|
|
12171
|
-
|
|
12164
|
+
await drain();
|
|
12172
12165
|
if (failure !== void 0) throw failure;
|
|
12173
|
-
|
|
12166
|
+
await runFencedAsync("syncStreamFile", syncStreamFileFenced, writer);
|
|
12174
12167
|
} finally {
|
|
12175
|
-
closeSync(writer);
|
|
12176
12168
|
fd = void 0;
|
|
12169
|
+
await runFencedAsync("closeStreamFile", closeStreamFile, writer);
|
|
12177
12170
|
}
|
|
12178
12171
|
return readRootStreamReceipt(dir, file);
|
|
12179
12172
|
});
|
|
12180
12173
|
}
|
|
12181
12174
|
};
|
|
12182
12175
|
}
|
|
12176
|
+
/** Open a stream file for append under the fence, separating it from a torn tail. @internal */
|
|
12177
|
+
function openStreamFileFenced(path, needsSeparator) {
|
|
12178
|
+
return fenceRunWrite(() => {
|
|
12179
|
+
const writer = openSync(path, constants.O_APPEND | constants.O_CREAT | constants.O_WRONLY | (typeof constants.O_NOFOLLOW === "number" ? constants.O_NOFOLLOW : 0), 384);
|
|
12180
|
+
try {
|
|
12181
|
+
if (needsSeparator) writeLine(writer, "");
|
|
12182
|
+
return writer;
|
|
12183
|
+
} catch (error) {
|
|
12184
|
+
closeSync(writer);
|
|
12185
|
+
throw error;
|
|
12186
|
+
}
|
|
12187
|
+
});
|
|
12188
|
+
}
|
|
12189
|
+
/** Write grouped stream lines to an open descriptor under the fence. @internal */
|
|
12190
|
+
function writeStreamLinesFenced(fd, lines) {
|
|
12191
|
+
fenceRunWrite(() => writeLine(fd, lines));
|
|
12192
|
+
}
|
|
12193
|
+
/** Close a stream descriptor on the thread that opened it. @internal */
|
|
12194
|
+
function closeStreamFile(fd) {
|
|
12195
|
+
closeSync(fd);
|
|
12196
|
+
}
|
|
12197
|
+
/** Fsync an open stream descriptor under the fence. @internal */
|
|
12198
|
+
function syncStreamFileFenced(fd) {
|
|
12199
|
+
fenceRunWrite(() => fsyncSync(fd));
|
|
12200
|
+
}
|
|
12183
12201
|
/** `writeSync` may legally make a short write; loop until the whole line and its newline land. */
|
|
12184
12202
|
function writeLine(fd, line) {
|
|
12185
12203
|
const bytes = Buffer.from(`${line}\n`, "utf8");
|
|
@@ -12614,7 +12632,7 @@ function bindInteractiveWorker(args, live, label, childRun, signal, spawnCommitt
|
|
|
12614
12632
|
if (ready === void 0 || notStarted(ready)) return;
|
|
12615
12633
|
session = ready;
|
|
12616
12634
|
}
|
|
12617
|
-
|
|
12635
|
+
await writeWorkerInteractiveBindingAsync(args.interactiveBindingDir, live.id, label, args.root, session, now);
|
|
12618
12636
|
});
|
|
12619
12637
|
}
|
|
12620
12638
|
/**
|
|
@@ -14176,6 +14194,6 @@ function unknownChannels(spend) {
|
|
|
14176
14194
|
function isNonEmptySpend(s) {
|
|
14177
14195
|
return s.iterations > 0 || s.tokens.input > 0 || s.tokens.output > 0 || s.usd > 0 || s.ms > 0 || s.tokensKnown === false || s.usdKnown === false || Object.values(s.resources ?? {}).some((resource) => resource.amount > 0 || !resource.known);
|
|
14178
14196
|
}
|
|
14179
|
-
export {
|
|
14197
|
+
export { reenteredWorkers as $, loopEventToOtelSpan as $n, unknownExecutionBindingReceipt as $r, scopeRetainedOwnerRestorePoint as $t, writeWorkerCancellation as A, retainedCreateMaterial as An, attestRuntimeOwnedExecutor as Ar, abandonScopeRetainedOwnerInvocation as At, parseWorkerToolTraceArtifact as B, WORKER_TRACE_PROPAGATION as Bn, providerAttemptEvidence as Br, recordScopeOwnerMaterialization as Bt, safeWorkerFile as C, RetainedMaterializationTimeoutError as Cn, SEAT_RECHECK_MS as Cr, waitForScopeChildren as Ct, workerCancellationsDir as D, recoverRetainedRun as Dn, seatExecutionProfile as Dr, environmentReader as Dt, workerCancelRequestsFile as E, reconnectRetainedRun as En, authoredSeatStages as Er, scopeRetainedOwnerResourceReader as Et, openSlotGroup as F, createFileObserverHooks as Fn, finalizeRuntimeOwnedPendingExecutor as Fr, beginScopeOwnerAttempt as Ft, readWorkerInteractiveBinding as G, readTraceContextFromEnv as Gn, recordRuntimeOwnedProviderModel as Gr, coordinationProfileToolPrefix as Gt, nestedScopeSeamKey as H, workerTraceHeaders as Hn, recordRuntimeOwnedProviderAttemptStart as Hr, scopeOwnerExecutionObservation as Ht, resolveWorkerSlots as I, observerRecordDigest as In, inheritRuntimeOwnedExecutorAttestation as Ir, finalizeScopeOwnerMaterialization as It, startRetainedInteractiveRun as J, buildRuntimeEventOtelSpans as Jn, runtimeOwnedExecutorMaterialization as Jr, beginScopeRetainedOwnerDrive as Jt, reconnectRetainedInteractiveRun as K, buildLoopOtelSpans as Kn, runtimeOwnedDriveHarnessProviderEvidence as Kr, providerVisibleProfile as Kt, prepareScopeResume as L, verifyObserverRecords as Ln, knownExecutionBindingReceipt as Lr, holdScopeOwnerTranscript as Lt, writeWorkerSteerAcknowledgement as M, offerInteractiveControl as Mn, attestRuntimeOwnedScopeOwner as Mr, prepareScopeRetainedOwnerTask as Mt, writeWorkerSteerAsync as N, prepareInteractiveDelegation as Nn, authoredAgentIdentity as Nr, scopeRetainedOwnerPriorSpend as Nt, workerInboxFileFromEventDir as O, startRetainedRun as On, subscriptionUsageLimitSignal as Or, resolveSpawnResourcePaths as Ot, createWorkerSlots as P, FileObserverJournal as Pn, authoredProfileDigest as Pr, scopeRetainedOwnerResult as Pt, appendTeardownConfirmation as Q, generateSpanId as Qn, runtimeOwnedScopeOwnerRuntime as Qr, reconcileScopeRetainedOwnerEnvironment as Qt, replaySpawnTree as R, destroyInteractiveEnvironment as Rn, knownMaterializationReceipt as Rr, noteScopeOwnerPlannedExecution as Rt, readWorkerSteerRequests as S, verifyWorkspaceMarker as Sn, isTerminalNodeStatus as Sr, unconfirmedTeardowns as St, supervisorRunsRoot as T, mintRetainedIdentity as Tn, SeatPauseError as Tr, releaseScopeRetainedOwnerForSeatPause as Tt, interactiveAdmissionSeamKey as U, createPropagatingTraceEmitter as Un, recordRuntimeOwnedProviderDispatchNotStarted as Ur, scopeOwnerExecutorNodeContext as Ut, workerTraceAnalysisStore as V, workerTraceEnv as Vn, recordRuntimeOwnedDriveHarnessProviderEvidence as Vr, restoreScopeOwnerAcceptedExecution as Vt, attachWorker as W, mergeTraceEnv as Wn, recordRuntimeOwnedProviderIdentityConflict as Wr, coordinationMcpAlias as Wt, appendSpawnEvents as X, createOtelExporter as Xn, runtimeOwnedPendingExecutorMaterialization as Xr, scopeRetainedOwnerTurnEnded as Xt, FileSpawnJournal as Y, createOpenInferenceFileExporter as Yn, runtimeOwnedExecutorProviderEvidence as Yr, scopeRetainedOwnerSettled as Yt, spawnJournalRecordEvents as Z, flatOtelSpan as Zn, runtimeOwnedScopeOwnerControl as Zr, assertRetainedOwnerCoordinationRekey as Zt, legacySupervisorRunDir as _, executorObservationSeamKey as _n, DEFAULT_STALL_AFTER_MS as _r, releaseHeldEnvironments as _t, closeStreamFile as a, runtimeFlowAgent as ai, scopeOwnerLiabilities as an, captureBoundHarnessTranscript as ar, rollingDispatch as at, readWorkerCancellation as b, describeRetainedNativeStops as bn, readWorkerProgress as br, settleManagerWork as bt, openStreamFileFenced as c, assertEventBinding as ci, loadSpawnForest as cn, harnessTranscriptFromLines as cr, closeScopeAdmission as ct, syncStreamFileFenced as d, freezeControlRef as di, attestNestedDriverTreeOwner as dn, readHarnessTranscript as dr, meterRuntimeOwnedProviderAttempt as dt, unknownMaterializationReceipt as ei, noteScopeRetainedOwnerCoordination as en, createRuntimeEventCollector as er, settledToIteration as et, writeStreamLinesFenced as f, retainedSessionReplaced as fi, driverRuntime as fn, settleHarnessTranscript as fr, pauseScopeSeatAdmission as ft, fileEscalateQuestion as g, providerMessageText as gi, executorObservation as gn, retainHarnessTranscript as gr, registerNestedTeardownScope as gt, claimWorkerSteerDelivery as h, promptOptionsFromAgentTurnInput as hi, insideCursorNamespace as hn, resolveHarnessTranscriptCapture as hr, recordScopeOwnerPause as ht, ROOT_STREAM_FILE as i, runtimeCheckFactory as ii, owners as in, HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS as ir, queueOf as it, writeWorkerSteer as j, acceptedInteractiveControl as jn, attestRuntimeOwnedPendingExecutor as jr, consumeScopeRetainedOwnerResult as jt, workerSteerRequestsDir as k, startRetainedRunInEnvironment as kn, attestRuntimeOwnedDeferredExecutor as kr, RELEASE_DESTROY_MS as kt, readRootStream as l, awaitAbortable$1 as li, ownedTreeRootSpawn as ln, harnessTranscriptUnavailable as lr, hasRetriableTeardowns as lt, cancelWorker as m, promptFromAgentTurnInput as mi, SpawnEventIndex as mn, readBoundHarnessSessions$1 as mr, recordScopeOwnerDriverAttempt as mt, terminalAccounting as n, executableAgentSpecSnapshot as ni, bindScopeRetainedOwnerEnvironmentId as nn, sanitizeKnowledgeReadinessReport as nr, deriveNodeExecutionIdentity as nt, createRootStreamSink as o, runtimeFlowBrain as oi, scopeRetainedOwnerContext as on, captureHarnessTranscript as or, boundRetainedReleases as ot, appendWorkerControlEvent as p, sameControlCoordinates as pi, nestedDriverTreeRoot as pn, HARNESS_TRANSCRIPT_READ_LIMITS as pr, recordScopeOwnerBarrenPause as pt, recoverRetainedInteractiveRun as q, buildLoopSpanNodes as qn, runtimeOwnedExecutorExecutionBinding as qr, runtimeGraphMetadataKey as qt, createScope as r, isRuntimeFlowBrain as ri, bindScopeRetainedOwnerProvider as rn, sanitizeRuntimeStreamEvent as rr, freeSlots as rt, nodeStreamFile as s, RetainedRunProviderContractError as si, scopeRetainedOwnerJournalRoot as sn, harnessTranscriptArtifact as sr, closeRetainedSlots as st, isNonEmptySpend as t, executableAgentProfileSnapshot as ti, scopeRetainedOwnerCheckpointing as tn, createRuntimeStreamEventCollector as tr, assertRecursiveReservationPolicy as tt, readRootStreamReceipt as u, exactSession as ui, materializeTreeView as un, persistHarnessTranscript as ur, meterRuntimeOwnedAccounting as ut, legacySupervisorRunsRoot as v, observeModelRequest as vn, createActivityLog as vr, releaseRetainedEnvironments as vt, supervisorRunDir as w, assertRetainedRunReplayMaterial as wn, SeatChain as wr, prepareScopeRetainedOwnerSeatSwitch as wt, readWorkerSteerAcknowledgement as x, stopRetainedNativeExecution as xn, isLiveNodeStatus as xr, startScopeRecoveries as xt, readWorkerCancelRequests as y, NATIVE_STOP_UNCONFIRMED as yn, describeToolArgs as yr, retryUnconfirmedTeardowns as yt, isTraceAnalysisStore as z, environmentGone as zn, newExecutionAttemptId as zr, recordScopeOwnerHarnessTranscript as zt };
|
|
14180
14198
|
|
|
14181
|
-
//# sourceMappingURL=supervisor-accounting-
|
|
14199
|
+
//# sourceMappingURL=supervisor-accounting-CZ7i4cd5.js.map
|