@tangle-network/agent-runtime 1.0.0 → 2.0.2
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-CFS31SWI.d.ts → activation-BuK2H7qx.d.ts} +2 -2
- package/dist/{activation-BwoSqHCc.js → activation-ZQWz04u8.js} +4 -4
- package/dist/{activation-BwoSqHCc.js.map → activation-ZQWz04u8.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +4 -3
- package/dist/agent.js.map +1 -1
- package/dist/{bundle-DeDkJbsr.js → bundle-PDYNXIEf.js} +2 -2
- package/dist/{bundle-DeDkJbsr.js.map → bundle-PDYNXIEf.js.map} +1 -1
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{coordination-manager-ewBF777W.js → coordination-manager-BZLp9qpE.js} +8 -363
- package/dist/coordination-manager-BZLp9qpE.js.map +1 -0
- package/dist/coordination-map-routing-CUvwHAtv.js +362 -0
- package/dist/coordination-map-routing-CUvwHAtv.js.map +1 -0
- package/dist/{delegate-BiuSfwBa.js → delegate-C-MUU6ML.js} +2 -2
- package/dist/{delegate-BiuSfwBa.js.map → delegate-C-MUU6ML.js.map} +1 -1
- package/dist/durable-file-CksURHlH.js +1 -0
- package/dist/durable-file-DstVeHcj.js +228 -0
- package/dist/durable-file-DstVeHcj.js.map +1 -0
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +10 -8
- package/dist/durable.js.map +1 -1
- package/dist/{graph-D6FL1xze.js → graph-CM-6CV_K.js} +6 -5
- package/dist/{graph-D6FL1xze.js.map → graph-CM-6CV_K.js.map} +1 -1
- package/dist/graph-registry-72DlMnUl.js +585 -0
- package/dist/graph-registry-72DlMnUl.js.map +1 -0
- package/dist/graph-registry-CAX15LO6.js +1 -0
- package/dist/{improve-SiKDcz5_.js → improve-BuZ-I8DP.js} +9 -8
- package/dist/{improve-SiKDcz5_.js.map → improve-BuZ-I8DP.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +7 -7
- package/dist/{journal-store-BJPMUydp.js → journal-store-BpCOCDoO.js} +208 -635
- package/dist/journal-store-BpCOCDoO.js.map +1 -0
- package/dist/jsonl-file-BBP9Dz9w.js +429 -0
- package/dist/jsonl-file-BBP9Dz9w.js.map +1 -0
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +13 -12
- package/dist/{loop-runner-CqlcC0i4.js → loop-runner-BWD6v1rd.js} +2 -2
- package/dist/{loop-runner-CqlcC0i4.js.map → loop-runner-BWD6v1rd.js.map} +1 -1
- package/dist/{loop-runner-D9rcTNf2.d.ts → loop-runner-BpLTU_J4.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/{prepare-XWwsOh8O.js → prepare-Bv6X2Wnx.js} +4 -4
- package/dist/{prepare-XWwsOh8O.js.map → prepare-Bv6X2Wnx.js.map} +1 -1
- package/dist/{profile-C01SQZKa.js → profile-Dir2A1_2.js} +2 -2
- package/dist/{profile-C01SQZKa.js.map → profile-Dir2A1_2.js.map} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-DnwR0AyW.js → provision-supervisor-BWEeWag1.js} +8 -6
- package/dist/{provision-supervisor-DnwR0AyW.js.map → provision-supervisor-BWEeWag1.js.map} +1 -1
- package/dist/{run-cancellation-CoJRKvih.js → run-cancellation-Cpm-BIUu.js} +3 -2
- package/dist/{run-cancellation-CoJRKvih.js.map → run-cancellation-Cpm-BIUu.js.map} +1 -1
- package/dist/{runtime-DSYZeav8.js → runtime-Cnr3213E.js} +18 -15
- package/dist/{runtime-DSYZeav8.js.map → runtime-Cnr3213E.js.map} +1 -1
- package/dist/{sandbox-profile-compat-CXjozdWL.js → sandbox-profile-compat-DRiz9kME.js} +2 -2
- package/dist/{sandbox-profile-compat-CXjozdWL.js.map → sandbox-profile-compat-DRiz9kME.js.map} +1 -1
- package/dist/{search-executor-DcGAOrAh.js → search-executor-__X1VKnU.js} +5 -5
- package/dist/{search-executor-DcGAOrAh.js.map → search-executor-__X1VKnU.js.map} +1 -1
- package/dist/{server-SrPLb8w0.js → server-CntFSTpW.js} +4 -4
- package/dist/{server-SrPLb8w0.js.map → server-CntFSTpW.js.map} +1 -1
- package/dist/{structural-rollout-C_lg83-u.js → structural-rollout-s8W19Mws.js} +5 -5
- package/dist/{structural-rollout-C_lg83-u.js.map → structural-rollout-s8W19Mws.js.map} +1 -1
- package/dist/{supervise-BXw89Ajc.js → supervise-Cl0F57m9.js} +32 -647
- package/dist/supervise-Cl0F57m9.js.map +1 -0
- package/dist/{supervision-discovery-CewADdEs.js → supervision-discovery-C3t0Xw-T.js} +5 -158
- package/dist/supervision-discovery-C3t0Xw-T.js.map +1 -0
- package/dist/{supervisor-hHU3ZJnR.js → supervisor-L7u3pQ1j.js} +99 -150
- package/dist/supervisor-L7u3pQ1j.js.map +1 -0
- package/dist/task-queue-DbpZAp6C.js +49 -0
- package/dist/task-queue-DbpZAp6C.js.map +1 -0
- package/dist/task-queue.js +1 -49
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +13 -13
- package/dist/top-web-BXICdHgc.js +1121 -0
- package/dist/top-web-BXICdHgc.js.map +1 -0
- package/dist/tui/bin.js +4 -3
- package/dist/tui/bin.js.map +1 -1
- package/dist/tui/index.d.ts +22 -2
- package/dist/tui/index.js +3 -3
- package/dist/{types-DTHxh4X9.d.ts → types-BfnQq-_k.d.ts} +17 -21
- package/dist/{util-ebWMWzY0.js → util-BX20UJ9X.js} +2 -2
- package/dist/{util-ebWMWzY0.js.map → util-BX20UJ9X.js.map} +1 -1
- package/package.json +10 -10
- package/skills/agent-graphs/references/authoring.md +1 -0
- package/dist/coordination-manager-ewBF777W.js.map +0 -1
- package/dist/journal-store-BJPMUydp.js.map +0 -1
- package/dist/supervise-BXw89Ajc.js.map +0 -1
- package/dist/supervision-discovery-CewADdEs.js.map +0 -1
- package/dist/supervisor-hHU3ZJnR.js.map +0 -1
- package/dist/task-queue.js.map +0 -1
- package/dist/top-snapshot-DcV7VG4m.js +0 -520
- package/dist/top-snapshot-DcV7VG4m.js.map +0 -1
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { m as ValidationError } from "./errors-AzSuGI23.js";
|
|
2
|
+
import { s as fenceRunWrite } from "./durable-file-DstVeHcj.js";
|
|
3
|
+
import { REDACTION_VERSION, redact } from "@tangle-network/agent-eval/traces";
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
5
|
+
import { closeSync, fstatSync, fsyncSync, ftruncateSync, openSync, readSync, writeSync } from "node:fs";
|
|
6
|
+
// src/redact.ts
|
|
7
|
+
/**
|
|
8
|
+
* Redaction for values that may leave the Runtime process. The built-in
|
|
9
|
+
* redactor is agent-eval's redaction core (`@tangle-network/agent-eval/traces`,
|
|
10
|
+
* default profile): credentials found by field name or value shape are
|
|
11
|
+
* replaced whole, email, card, SSN and phone values in place, and token counts
|
|
12
|
+
* such as `inputTokens` or `max_tokens` are kept. A customer with
|
|
13
|
+
* domain-specific PII supplies their own `redact` hook.
|
|
14
|
+
*
|
|
15
|
+
* This is narrower than `src/sanitize.ts`, which drops fields of the runtime's
|
|
16
|
+
* *event envelope* unless the caller opts in: here the value is opaque customer
|
|
17
|
+
* payload, so the scrub is value-shaped, not schema-shaped.
|
|
18
|
+
*
|
|
19
|
+
* @experimental
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* The built-in redactor. Cycle-safe, depth-bounded and total: it never throws
|
|
23
|
+
* on customer input and never mutates it.
|
|
24
|
+
*/
|
|
25
|
+
function defaultRedactor(value) {
|
|
26
|
+
return redact(value).value;
|
|
27
|
+
}
|
|
28
|
+
/** Stable identity input for saved work that depends on built-in redaction behavior. */
|
|
29
|
+
function defaultRedactorIdentityMaterial() {
|
|
30
|
+
return {
|
|
31
|
+
core: "@tangle-network/agent-eval/traces redact",
|
|
32
|
+
profile: "default",
|
|
33
|
+
version: REDACTION_VERSION
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Resolve the redactor a client uses. A caller-supplied hook handles
|
|
38
|
+
* domain-specific values first, then the built-in scrubber still removes
|
|
39
|
+
* credentials and personal data. Returning `false` is the explicit opt-out for
|
|
40
|
+
* already-reviewed public values.
|
|
41
|
+
*/
|
|
42
|
+
function resolveRedactor(redact) {
|
|
43
|
+
if (redact === false) return (value) => value;
|
|
44
|
+
if (!redact) return defaultRedactor;
|
|
45
|
+
return (value) => defaultRedactor(redact(value));
|
|
46
|
+
}
|
|
47
|
+
// src/runtime/supervise/error-message.ts
|
|
48
|
+
const maxCauseDepth = 4;
|
|
49
|
+
const maxMessageLength = 32768;
|
|
50
|
+
const maxPartLength = 2048;
|
|
51
|
+
/** A persisted failure must explain its wrappers without exporting credentials or unbounded data. */
|
|
52
|
+
function errorText(value) {
|
|
53
|
+
let text;
|
|
54
|
+
try {
|
|
55
|
+
text = typeof value === "string" ? value : JSON.stringify(value) ?? String(value);
|
|
56
|
+
} catch {
|
|
57
|
+
text = "[unprintable rejection]";
|
|
58
|
+
}
|
|
59
|
+
return String(defaultRedactor(text)).slice(0, maxMessageLength);
|
|
60
|
+
}
|
|
61
|
+
function errorProperty(error, field) {
|
|
62
|
+
try {
|
|
63
|
+
const value = error[field];
|
|
64
|
+
return value === void 0 ? void 0 : errorText(value).slice(0, field === "name" ? 256 : maxMessageLength);
|
|
65
|
+
} catch {
|
|
66
|
+
return `[unreadable error ${field}]`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/** An HTTP status carried on a thrown error, read without trusting its getter. Provider SDKs put
|
|
70
|
+
* one on their own error classes, so this is how a refusal is recognised outside the transport
|
|
71
|
+
* taxonomy — for the persisted message here, and for the driver's retry verdict. */
|
|
72
|
+
function errorHttpStatus(error) {
|
|
73
|
+
try {
|
|
74
|
+
const status = Reflect.get(error, "status");
|
|
75
|
+
return typeof status === "number" && Number.isInteger(status) && status >= 100 && status <= 599 ? status : void 0;
|
|
76
|
+
} catch {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/** Shared by child settlements, driver attempts, and the final no-winner result. */
|
|
81
|
+
function errMessage(error) {
|
|
82
|
+
const parts = [];
|
|
83
|
+
const seen = /* @__PURE__ */ new Set();
|
|
84
|
+
let current = error;
|
|
85
|
+
for (let depth = 0; depth <= maxCauseDepth; depth += 1) try {
|
|
86
|
+
if (!(current instanceof Error)) {
|
|
87
|
+
parts.push(errorText(current).slice(0, maxPartLength));
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
if (seen.has(current)) {
|
|
91
|
+
parts.push("[circular]");
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
seen.add(current);
|
|
95
|
+
const status = errorHttpStatus(current);
|
|
96
|
+
const message = (status === void 0 ? "" : `HTTP ${status}: `) + (errorProperty(current, "message") ?? "");
|
|
97
|
+
parts.push((depth === 0 ? message : `${errorProperty(current, "name")}: ${message}`).slice(0, maxPartLength));
|
|
98
|
+
current = current.cause;
|
|
99
|
+
if (current === void 0 || current === null) break;
|
|
100
|
+
if (depth === maxCauseDepth) parts.push("[cause chain truncated]");
|
|
101
|
+
} catch {
|
|
102
|
+
parts.push("[unreadable error cause]");
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
return parts.join(": caused by ").slice(0, maxMessageLength);
|
|
106
|
+
}
|
|
107
|
+
/** The error and its causes (`cause`, and `errors` members), bounded and cycle-safe. */
|
|
108
|
+
function causeChain(error) {
|
|
109
|
+
const chain = [];
|
|
110
|
+
const queue = [error];
|
|
111
|
+
while (queue.length > 0 && chain.length < 12) {
|
|
112
|
+
const value = queue.shift();
|
|
113
|
+
if (typeof value !== "object" || value === null || chain.includes(value)) continue;
|
|
114
|
+
chain.push(value);
|
|
115
|
+
try {
|
|
116
|
+
const errors = Reflect.get(value, "errors");
|
|
117
|
+
if (Array.isArray(errors)) queue.push(...errors);
|
|
118
|
+
queue.push(Reflect.get(value, "cause"));
|
|
119
|
+
} catch {}
|
|
120
|
+
}
|
|
121
|
+
return chain;
|
|
122
|
+
}
|
|
123
|
+
// src/runtime/supervise/snapshot.ts
|
|
124
|
+
/** Deeply detach and freeze untrusted data at a runtime decision boundary. The clone prevents the
|
|
125
|
+
* caller from mutating it later; the freeze prevents downstream code from mutating the snapshot.
|
|
126
|
+
* Strings are immutable, so the snapshot shares the caller's strings instead of copying them. */
|
|
127
|
+
function detachedSnapshot(value, context) {
|
|
128
|
+
let clone;
|
|
129
|
+
try {
|
|
130
|
+
clone = structuredClone(value);
|
|
131
|
+
} catch (error) {
|
|
132
|
+
throw new ValidationError(`${context}: input must be structured-cloneable`, { cause: error });
|
|
133
|
+
}
|
|
134
|
+
return deepFreeze(shareSourceStrings(value, clone));
|
|
135
|
+
}
|
|
136
|
+
/** Detach a value from its caller and freeze it, without the `ValidationError` framing
|
|
137
|
+
* {@link detachedSnapshot} adds. For a boundary that has already validated its input. */
|
|
138
|
+
function detachedFrozen(value) {
|
|
139
|
+
return deepFreeze(shareSourceStrings(value, structuredClone(value)));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Point each string in a fresh structured clone at the equal string in its source.
|
|
143
|
+
*
|
|
144
|
+
* `structuredClone` copies every string, and a copied string buys no isolation: only objects and
|
|
145
|
+
* arrays can change through a shared reference. A spawned profile passes several boundaries, and
|
|
146
|
+
* each one kept its own copy: in a reproduction of Discovery's hosted coordinator, a child profile
|
|
147
|
+
* that mounts a 5.3 MB file packet was held four times per spawned child. A scope keeps every
|
|
148
|
+
* child it spawned, so the heap grew about 22 MB per spawn, and hosted coordinators died with V8
|
|
149
|
+
* heap OOM after 37 spawns.
|
|
150
|
+
*
|
|
151
|
+
* The walk pairs only own data properties of plain objects and arrays. Accessors, Maps, Sets and
|
|
152
|
+
* other cloned types keep the clone's values. A string is replaced only by a string equal to it,
|
|
153
|
+
* so the snapshot holds exactly the clone's value. The snapshot keeps the source's strings alive.
|
|
154
|
+
*/
|
|
155
|
+
function shareSourceStrings(source, clone) {
|
|
156
|
+
const visited = /* @__PURE__ */ new Set();
|
|
157
|
+
const visit = (from, to) => {
|
|
158
|
+
if (from === null || to === null || typeof from !== "object" || typeof to !== "object") return;
|
|
159
|
+
const array = Array.isArray(to);
|
|
160
|
+
if (array !== Array.isArray(from)) return;
|
|
161
|
+
if (!array && Object.getPrototypeOf(to) !== Object.prototype) return;
|
|
162
|
+
if (visited.has(to)) return;
|
|
163
|
+
visited.add(to);
|
|
164
|
+
const target = to;
|
|
165
|
+
for (const key of Object.keys(target)) {
|
|
166
|
+
const own = Object.getOwnPropertyDescriptor(from, key);
|
|
167
|
+
if (own === void 0 || !("value" in own)) continue;
|
|
168
|
+
const cloned = target[key];
|
|
169
|
+
if (typeof cloned === "string") {
|
|
170
|
+
if (own.value === cloned) target[key] = own.value;
|
|
171
|
+
} else visit(own.value, cloned);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
visit(source, clone);
|
|
175
|
+
return clone;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Replace each string in a freshly parsed JSON value with an equal string already in `pool`, and
|
|
179
|
+
* add the new ones. One recovery pass parses every interrupted child's profile from its own blob,
|
|
180
|
+
* so children that carry the same file packet would otherwise hold one copy each. The value is
|
|
181
|
+
* updated in place, so it must belong to the caller; frozen objects are left as they are.
|
|
182
|
+
*/
|
|
183
|
+
function shareParsedStrings(value, pool) {
|
|
184
|
+
const visit = (node) => {
|
|
185
|
+
if (node === null || typeof node !== "object" || Object.isFrozen(node)) return;
|
|
186
|
+
if (!Array.isArray(node) && Object.getPrototypeOf(node) !== Object.prototype) return;
|
|
187
|
+
const target = node;
|
|
188
|
+
for (const key of Object.keys(target)) {
|
|
189
|
+
const item = target[key];
|
|
190
|
+
if (typeof item !== "string") {
|
|
191
|
+
visit(item);
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
const shared = pool.get(item);
|
|
195
|
+
if (shared === void 0) pool.set(item, item);
|
|
196
|
+
else target[key] = shared;
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
visit(value);
|
|
200
|
+
return value;
|
|
201
|
+
}
|
|
202
|
+
function deepFreeze(value, seen = /* @__PURE__ */ new Set()) {
|
|
203
|
+
if (value === null || typeof value !== "object" || ArrayBuffer.isView(value) || seen.has(value)) return value;
|
|
204
|
+
seen.add(value);
|
|
205
|
+
for (const child of Object.values(value)) deepFreeze(child, seen);
|
|
206
|
+
return Object.freeze(value);
|
|
207
|
+
}
|
|
208
|
+
// src/content-digest.ts
|
|
209
|
+
function sha256(value) {
|
|
210
|
+
return createHash("sha256").update(value).digest("hex");
|
|
211
|
+
}
|
|
212
|
+
// src/durable/jsonl-append.ts
|
|
213
|
+
/** Commit JSONL bytes and validate their descriptor under one generation fence. @internal */
|
|
214
|
+
function commitJsonLine(path, record, acknowledge) {
|
|
215
|
+
const encoded = JSON.stringify(record);
|
|
216
|
+
if (encoded === void 0) throw new TypeError("JSONL records must be JSON serializable");
|
|
217
|
+
return fenceRunWrite(() => {
|
|
218
|
+
const separator = prepareJsonlTail(path);
|
|
219
|
+
const fd = openSync(path, "a");
|
|
220
|
+
try {
|
|
221
|
+
const bytes = Buffer.from(`${separator ? "\n" : ""}${encoded}\n`);
|
|
222
|
+
let offset = 0;
|
|
223
|
+
while (offset < bytes.length) {
|
|
224
|
+
const written = writeSync(fd, bytes, offset, bytes.length - offset);
|
|
225
|
+
if (written <= 0) throw new Error(`append-only file write made no progress at byte ${offset}`);
|
|
226
|
+
offset += written;
|
|
227
|
+
}
|
|
228
|
+
fsyncSync(fd);
|
|
229
|
+
return acknowledge?.(fd);
|
|
230
|
+
} finally {
|
|
231
|
+
closeSync(fd);
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/** Recover only an uncommitted tail. Caller holds the generation fence. @internal */
|
|
236
|
+
function prepareJsonlTail(path) {
|
|
237
|
+
let fd;
|
|
238
|
+
try {
|
|
239
|
+
fd = openSync(path, "r+");
|
|
240
|
+
} catch (error) {
|
|
241
|
+
if (error.code === "ENOENT") return false;
|
|
242
|
+
throw error;
|
|
243
|
+
}
|
|
244
|
+
try {
|
|
245
|
+
const size = fstatSync(fd).size;
|
|
246
|
+
if (size === 0) return false;
|
|
247
|
+
const last = Buffer.allocUnsafe(1);
|
|
248
|
+
readAt(fd, last, size - 1);
|
|
249
|
+
if (last[0] === 10) return false;
|
|
250
|
+
const chunks = [];
|
|
251
|
+
let end = size;
|
|
252
|
+
let tailStart = 0;
|
|
253
|
+
while (end > 0) {
|
|
254
|
+
const start = Math.max(0, end - 65536);
|
|
255
|
+
const chunk = Buffer.allocUnsafe(end - start);
|
|
256
|
+
readAt(fd, chunk, start);
|
|
257
|
+
const newline = chunk.lastIndexOf(10);
|
|
258
|
+
chunks.push(chunk.subarray(newline + 1));
|
|
259
|
+
if (newline >= 0) {
|
|
260
|
+
tailStart = start + newline + 1;
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
end = start;
|
|
264
|
+
}
|
|
265
|
+
try {
|
|
266
|
+
JSON.parse(Buffer.concat(chunks.reverse()).toString("utf8"));
|
|
267
|
+
return true;
|
|
268
|
+
} catch (error) {
|
|
269
|
+
if (!(error instanceof SyntaxError)) throw error;
|
|
270
|
+
ftruncateSync(fd, tailStart);
|
|
271
|
+
fsyncSync(fd);
|
|
272
|
+
return false;
|
|
273
|
+
}
|
|
274
|
+
} finally {
|
|
275
|
+
closeSync(fd);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
function readAt(fd, buffer, position) {
|
|
279
|
+
let offset = 0;
|
|
280
|
+
while (offset < buffer.length) {
|
|
281
|
+
const read = readSync(fd, buffer, offset, buffer.length - offset, position + offset);
|
|
282
|
+
if (read === 0) throw new Error("journal changed while preparing its append tail");
|
|
283
|
+
offset += read;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
// src/durable/jsonl-file.ts
|
|
287
|
+
/** Parse in-memory evidence with the same commit boundary as streamed journal reads. */
|
|
288
|
+
function parseCommittedJsonLines(text, source) {
|
|
289
|
+
const lines = text.split("\n");
|
|
290
|
+
const records = [];
|
|
291
|
+
for (const [index, line] of lines.entries()) {
|
|
292
|
+
const record = parseRecord(line, source, index + 1, index < lines.length - 1);
|
|
293
|
+
if (record !== void 0) records.push(record.value);
|
|
294
|
+
}
|
|
295
|
+
return records;
|
|
296
|
+
}
|
|
297
|
+
/** Read a fixed file prefix one record at a time, never allocating the whole journal as a string.
|
|
298
|
+
* A reader cannot chase concurrent appends forever. Missing files are empty only when requested;
|
|
299
|
+
* corruption, short reads, and other I/O errors remain failures. Closing the iterator closes the fd. */
|
|
300
|
+
async function* readCommittedJsonLines(path, options = {}) {
|
|
301
|
+
const fs = await import("node:fs/promises");
|
|
302
|
+
let handle;
|
|
303
|
+
try {
|
|
304
|
+
handle = await fs.open(path, "r");
|
|
305
|
+
} catch (error) {
|
|
306
|
+
if (options.allowMissing && isNoEntError(error)) return;
|
|
307
|
+
throw error;
|
|
308
|
+
}
|
|
309
|
+
try {
|
|
310
|
+
const { size } = await handle.stat();
|
|
311
|
+
if (size === 0) return;
|
|
312
|
+
const { StringDecoder } = await import("node:string_decoder");
|
|
313
|
+
const decoder = new StringDecoder("utf8");
|
|
314
|
+
const stream = handle.createReadStream({
|
|
315
|
+
autoClose: false,
|
|
316
|
+
end: size - 1
|
|
317
|
+
});
|
|
318
|
+
const fragments = [];
|
|
319
|
+
let lineNumber = 1;
|
|
320
|
+
try {
|
|
321
|
+
for await (const chunk of stream) {
|
|
322
|
+
options.onBytes?.(chunk);
|
|
323
|
+
const text = decoder.write(chunk);
|
|
324
|
+
let start = 0;
|
|
325
|
+
let end = text.indexOf("\n", start);
|
|
326
|
+
while (end !== -1) {
|
|
327
|
+
fragments.push(text.slice(start, end));
|
|
328
|
+
const record = parseRecord(fragments.join(""), path, lineNumber++, true, options.allowWhitespaceLines);
|
|
329
|
+
fragments.length = 0;
|
|
330
|
+
if (record !== void 0) yield record.value;
|
|
331
|
+
start = end + 1;
|
|
332
|
+
end = text.indexOf("\n", start);
|
|
333
|
+
}
|
|
334
|
+
if (start < text.length) fragments.push(text.slice(start));
|
|
335
|
+
}
|
|
336
|
+
if (stream.bytesRead !== size) throw new Error(`${path}: journal changed while reading its committed prefix`);
|
|
337
|
+
fragments.push(decoder.end());
|
|
338
|
+
const record = parseRecord(fragments.join(""), path, lineNumber, false, options.allowWhitespaceLines);
|
|
339
|
+
if (record !== void 0) yield record.value;
|
|
340
|
+
} finally {
|
|
341
|
+
stream.destroy();
|
|
342
|
+
}
|
|
343
|
+
} finally {
|
|
344
|
+
await handle.close();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
/** An invalid unterminated tail may be a torn write; other parse failures are not evidence of one. */
|
|
348
|
+
function parseRecord(line, source, lineNumber, terminated, allowWhitespaceLines = false) {
|
|
349
|
+
if (line.length === 0 || allowWhitespaceLines && line.trim().length === 0) return void 0;
|
|
350
|
+
try {
|
|
351
|
+
return { value: JSON.parse(line) };
|
|
352
|
+
} catch (cause) {
|
|
353
|
+
if (!(cause instanceof SyntaxError)) throw cause;
|
|
354
|
+
if (!terminated) return void 0;
|
|
355
|
+
throw new Error(`${source}: malformed JSONL record at line ${lineNumber}`, { cause });
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
async function appendCommittedJsonLine(path, record, acknowledge) {
|
|
359
|
+
return commitJsonLine(path, record, acknowledge);
|
|
360
|
+
}
|
|
361
|
+
/** Serialize JSONL file updates across processes and aliases using Eval's existing file lock.
|
|
362
|
+
* The caller owns validation and the record format. The lock path names the canonical file,
|
|
363
|
+
* including its first write, so two directory aliases cannot acquire different write heads.
|
|
364
|
+
* @internal
|
|
365
|
+
*/
|
|
366
|
+
async function withJsonlFileLock(path, operation) {
|
|
367
|
+
const fs = await import("node:fs/promises");
|
|
368
|
+
const { dirname } = await import("node:path");
|
|
369
|
+
const { tryAcquireAtomicFileLock } = await import("@tangle-network/agent-eval/ledger-core");
|
|
370
|
+
await fs.mkdir(dirname(path), { recursive: true });
|
|
371
|
+
await (await fs.open(path, "a")).close();
|
|
372
|
+
const canonicalPath = await fs.realpath(path);
|
|
373
|
+
const deadline = Date.now() + 5e3;
|
|
374
|
+
for (;;) {
|
|
375
|
+
const acquisition = tryAcquireAtomicFileLock({ lockPath: `${canonicalPath}.lock` });
|
|
376
|
+
if (!acquisition.acquired) {
|
|
377
|
+
if (Date.now() >= deadline) throw new Error(`journal file lock unavailable after 5000ms: ${canonicalPath}`);
|
|
378
|
+
await new Promise((resolve) => setTimeout(resolve, 25));
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
try {
|
|
382
|
+
return await operation(canonicalPath);
|
|
383
|
+
} finally {
|
|
384
|
+
acquisition.lock.release();
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
/** Read one keyed registry snapshot without an extra whole-file text allocation.
|
|
389
|
+
* Historical registry files allow whitespace-only separators; append journals remain strict.
|
|
390
|
+
* @internal
|
|
391
|
+
*/
|
|
392
|
+
async function readCommittedJsonFile(path) {
|
|
393
|
+
const records = [];
|
|
394
|
+
for await (const record of readCommittedJsonLines(path, {
|
|
395
|
+
allowMissing: true,
|
|
396
|
+
allowWhitespaceLines: true
|
|
397
|
+
})) records.push(record);
|
|
398
|
+
return records;
|
|
399
|
+
}
|
|
400
|
+
/** Replace one keyed row and publish one durable snapshot. The caller holds the file lock.
|
|
401
|
+
* Keep unrelated rows in order and put the replacement last. No revision archive is retained.
|
|
402
|
+
* @internal
|
|
403
|
+
*/
|
|
404
|
+
async function upsertCommittedJsonLine(path, record, key) {
|
|
405
|
+
const encoded = JSON.stringify(record);
|
|
406
|
+
if (encoded === void 0) throw new Error("JSONL records must be JSON serializable");
|
|
407
|
+
const snapshot = JSON.parse(encoded);
|
|
408
|
+
const id = key(snapshot);
|
|
409
|
+
const updated = [];
|
|
410
|
+
for await (const prior of readCommittedJsonLines(path, {
|
|
411
|
+
allowMissing: true,
|
|
412
|
+
allowWhitespaceLines: true
|
|
413
|
+
})) if (key(prior) !== id) updated.push(prior);
|
|
414
|
+
updated.push(snapshot);
|
|
415
|
+
const { writeAtomicDurableFile } = await import("./durable-file-CksURHlH.js");
|
|
416
|
+
writeAtomicDurableFile(path, `${updated.map((row) => JSON.stringify(row)).join("\n")}\n`, { preserveMode: true });
|
|
417
|
+
}
|
|
418
|
+
/** Recover a torn tail under the same generation fence as durable publications. @internal */
|
|
419
|
+
async function prepareJsonlAppend(path) {
|
|
420
|
+
return fenceRunWrite(() => prepareJsonlTail(path));
|
|
421
|
+
}
|
|
422
|
+
/** True for a filesystem error meaning "the file is not there yet" — the one condition an
|
|
423
|
+
* append-only reader treats as an empty log rather than a fault. */
|
|
424
|
+
function isNoEntError(error) {
|
|
425
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
426
|
+
}
|
|
427
|
+
export { errorText as _, readCommittedJsonFile as a, resolveRedactor as b, withJsonlFileLock as c, detachedSnapshot as d, shareParsedStrings as f, errorProperty as g, errorHttpStatus as h, prepareJsonlAppend as i, sha256 as l, errMessage as m, isNoEntError as n, readCommittedJsonLines as o, causeChain as p, parseCommittedJsonLines as r, upsertCommittedJsonLine as s, appendCommittedJsonLine as t, detachedFrozen as u, defaultRedactor as v, defaultRedactorIdentityMaterial as y };
|
|
428
|
+
|
|
429
|
+
//# sourceMappingURL=jsonl-file-BBP9Dz9w.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonl-file-BBP9Dz9w.js","names":[],"sources":["../src/redact.ts","../src/runtime/supervise/error-message.ts","../src/runtime/supervise/snapshot.ts","../src/content-digest.ts","../src/durable/jsonl-append.ts","../src/durable/jsonl-file.ts"],"sourcesContent":["/**\n * Redaction for values that may leave the Runtime process. The built-in\n * redactor is agent-eval's redaction core (`@tangle-network/agent-eval/traces`,\n * default profile): credentials found by field name or value shape are\n * replaced whole, email, card, SSN and phone values in place, and token counts\n * such as `inputTokens` or `max_tokens` are kept. A customer with\n * domain-specific PII supplies their own `redact` hook.\n *\n * This is narrower than `src/sanitize.ts`, which drops fields of the runtime's\n * *event envelope* unless the caller opts in: here the value is opaque customer\n * payload, so the scrub is value-shaped, not schema-shaped.\n *\n * @experimental\n */\n\nimport { REDACTION_VERSION, redact } from '@tangle-network/agent-eval/traces'\n\n/** A redactor maps an arbitrary trace value to a safe-to-export value. Pure;\n * must not throw on cyclic input (the default tolerates cycles). */\nexport type Redactor = (value: unknown) => unknown\n\n/**\n * The built-in redactor. Cycle-safe, depth-bounded and total: it never throws\n * on customer input and never mutates it.\n */\nexport function defaultRedactor(value: unknown): unknown {\n return redact(value).value\n}\n\n/** Stable identity input for saved work that depends on built-in redaction behavior. */\nexport function defaultRedactorIdentityMaterial(): unknown {\n return {\n core: '@tangle-network/agent-eval/traces redact',\n profile: 'default',\n version: REDACTION_VERSION,\n }\n}\n\n/**\n * Resolve the redactor a client uses. A caller-supplied hook handles\n * domain-specific values first, then the built-in scrubber still removes\n * credentials and personal data. Returning `false` is the explicit opt-out for\n * already-reviewed public values.\n */\nexport function resolveRedactor(redact: Redactor | false | undefined): Redactor {\n if (redact === false) return (value) => value\n if (!redact) return defaultRedactor\n return (value) => defaultRedactor(redact(value))\n}\n","import { defaultRedactor } from '../../redact'\n\nconst maxCauseDepth = 4\nconst maxMessageLength = 32_768\nconst maxPartLength = 2_048\n\n/** A persisted failure must explain its wrappers without exporting credentials or unbounded data. */\nexport function errorText(value: unknown): string {\n let text: string\n try {\n text = typeof value === 'string' ? value : (JSON.stringify(value) ?? String(value))\n } catch {\n text = '[unprintable rejection]'\n }\n return String(defaultRedactor(text)).slice(0, maxMessageLength)\n}\n\nexport function errorProperty(\n error: Error,\n field: 'name' | 'message' | 'stack',\n): string | undefined {\n try {\n const value = error[field]\n return value === undefined\n ? undefined\n : errorText(value).slice(0, field === 'name' ? 256 : maxMessageLength)\n } catch {\n return `[unreadable error ${field}]`\n }\n}\n\n/** An HTTP status carried on a thrown error, read without trusting its getter. Provider SDKs put\n * one on their own error classes, so this is how a refusal is recognised outside the transport\n * taxonomy — for the persisted message here, and for the driver's retry verdict. */\nexport function errorHttpStatus(error: Error): number | undefined {\n try {\n const status: unknown = Reflect.get(error, 'status')\n return typeof status === 'number' && Number.isInteger(status) && status >= 100 && status <= 599\n ? status\n : undefined\n } catch {\n return undefined\n }\n}\n\n/** Shared by child settlements, driver attempts, and the final no-winner result. */\nexport function errMessage(error: unknown): string {\n const parts: string[] = []\n const seen = new Set<Error>()\n let current = error\n for (let depth = 0; depth <= maxCauseDepth; depth += 1) {\n try {\n if (!(current instanceof Error)) {\n parts.push(errorText(current).slice(0, maxPartLength))\n break\n }\n if (seen.has(current)) {\n parts.push('[circular]')\n break\n }\n seen.add(current)\n const status = errorHttpStatus(current)\n const message =\n (status === undefined ? '' : `HTTP ${status}: `) + (errorProperty(current, 'message') ?? '')\n parts.push(\n (depth === 0 ? message : `${errorProperty(current, 'name')}: ${message}`).slice(\n 0,\n maxPartLength,\n ),\n )\n current = current.cause\n if (current === undefined || current === null) break\n if (depth === maxCauseDepth) parts.push('[cause chain truncated]')\n } catch {\n parts.push('[unreadable error cause]')\n break\n }\n }\n return parts.join(': caused by ').slice(0, maxMessageLength)\n}\n\n/** The error and its causes (`cause`, and `errors` members), bounded and cycle-safe. */\nexport function causeChain(error: unknown): object[] {\n const chain: object[] = []\n const queue: unknown[] = [error]\n while (queue.length > 0 && chain.length < 12) {\n const value = queue.shift()\n if (typeof value !== 'object' || value === null || chain.includes(value)) continue\n chain.push(value)\n try {\n const errors: unknown = Reflect.get(value, 'errors')\n if (Array.isArray(errors)) queue.push(...errors)\n queue.push(Reflect.get(value, 'cause'))\n } catch {\n // A cause that cannot be read ends this branch of the walk.\n }\n }\n return chain\n}\n","import { ValidationError } from '../../errors'\n\n/** Deeply detach and freeze untrusted data at a runtime decision boundary. The clone prevents the\n * caller from mutating it later; the freeze prevents downstream code from mutating the snapshot.\n * Strings are immutable, so the snapshot shares the caller's strings instead of copying them. */\nexport function detachedSnapshot<T>(value: T, context: string): T {\n let clone: T\n try {\n clone = structuredClone(value)\n } catch (error) {\n throw new ValidationError(`${context}: input must be structured-cloneable`, { cause: error })\n }\n return deepFreeze(shareSourceStrings(value, clone))\n}\n\n/** Detach a value from its caller and freeze it, without the `ValidationError` framing\n * {@link detachedSnapshot} adds. For a boundary that has already validated its input. */\nexport function detachedFrozen<T>(value: T): T {\n return deepFreeze(shareSourceStrings(value, structuredClone(value)))\n}\n\n/**\n * Point each string in a fresh structured clone at the equal string in its source.\n *\n * `structuredClone` copies every string, and a copied string buys no isolation: only objects and\n * arrays can change through a shared reference. A spawned profile passes several boundaries, and\n * each one kept its own copy: in a reproduction of Discovery's hosted coordinator, a child profile\n * that mounts a 5.3 MB file packet was held four times per spawned child. A scope keeps every\n * child it spawned, so the heap grew about 22 MB per spawn, and hosted coordinators died with V8\n * heap OOM after 37 spawns.\n *\n * The walk pairs only own data properties of plain objects and arrays. Accessors, Maps, Sets and\n * other cloned types keep the clone's values. A string is replaced only by a string equal to it,\n * so the snapshot holds exactly the clone's value. The snapshot keeps the source's strings alive.\n */\nfunction shareSourceStrings<T>(source: unknown, clone: T): T {\n const visited = new Set<object>()\n const visit = (from: unknown, to: unknown): void => {\n if (from === null || to === null || typeof from !== 'object' || typeof to !== 'object') return\n const array = Array.isArray(to)\n if (array !== Array.isArray(from)) return\n if (!array && Object.getPrototypeOf(to) !== Object.prototype) return\n if (visited.has(to)) return\n visited.add(to)\n const target = to as Record<string, unknown>\n for (const key of Object.keys(target)) {\n const own = Object.getOwnPropertyDescriptor(from, key)\n if (own === undefined || !('value' in own)) continue\n const cloned = target[key]\n if (typeof cloned === 'string') {\n if (own.value === cloned) target[key] = own.value\n } else visit(own.value, cloned)\n }\n }\n visit(source, clone)\n return clone\n}\n\n/**\n * Replace each string in a freshly parsed JSON value with an equal string already in `pool`, and\n * add the new ones. One recovery pass parses every interrupted child's profile from its own blob,\n * so children that carry the same file packet would otherwise hold one copy each. The value is\n * updated in place, so it must belong to the caller; frozen objects are left as they are.\n */\nexport function shareParsedStrings<T>(value: T, pool: Map<string, string>): T {\n const visit = (node: unknown): void => {\n if (node === null || typeof node !== 'object' || Object.isFrozen(node)) return\n if (!Array.isArray(node) && Object.getPrototypeOf(node) !== Object.prototype) return\n const target = node as Record<string, unknown>\n for (const key of Object.keys(target)) {\n const item = target[key]\n if (typeof item !== 'string') {\n visit(item)\n continue\n }\n const shared = pool.get(item)\n if (shared === undefined) pool.set(item, item)\n else target[key] = shared\n }\n }\n visit(value)\n return value\n}\n\nfunction deepFreeze<T>(value: T, seen = new Set<object>()): T {\n // `Object.freeze` throws `TypeError: Cannot freeze array buffer views with elements` on any\n // non-empty TypedArray or Buffer, so binary inside a payload must be handed back untouched\n // rather than frozen. Its bytes are already detached by the `structuredClone` above.\n if (value === null || typeof value !== 'object' || ArrayBuffer.isView(value) || seen.has(value)) {\n return value\n }\n seen.add(value)\n for (const child of Object.values(value as Record<string, unknown>)) deepFreeze(child, seen)\n return Object.freeze(value)\n}\n","import { createHash } from 'node:crypto'\n\nexport function sha256(value: string): string {\n return createHash('sha256').update(value).digest('hex')\n}\n","import {\n closeSync,\n fstatSync,\n fsyncSync,\n ftruncateSync,\n openSync,\n readSync,\n writeSync,\n} from 'node:fs'\nimport { fenceRunWrite } from './run-fence'\n\n/** Commit JSONL bytes and validate their descriptor under one generation fence. @internal */\nexport function commitJsonLine<T>(\n path: string,\n record: unknown,\n acknowledge?: (fd: number) => T,\n): T | undefined {\n const encoded = JSON.stringify(record)\n if (encoded === undefined) throw new TypeError('JSONL records must be JSON serializable')\n return fenceRunWrite(() => {\n const separator = prepareJsonlTail(path)\n const fd = openSync(path, 'a')\n try {\n const bytes = Buffer.from(`${separator ? '\\n' : ''}${encoded}\\n`)\n let offset = 0\n while (offset < bytes.length) {\n const written = writeSync(fd, bytes, offset, bytes.length - offset)\n if (written <= 0)\n throw new Error(`append-only file write made no progress at byte ${offset}`)\n offset += written\n }\n fsyncSync(fd)\n return acknowledge?.(fd)\n } finally {\n closeSync(fd)\n }\n })\n}\n\n/** Recover only an uncommitted tail. Caller holds the generation fence. @internal */\nexport function prepareJsonlTail(path: string): boolean {\n let fd: number\n try {\n fd = openSync(path, 'r+')\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false\n throw error\n }\n try {\n const size = fstatSync(fd).size\n if (size === 0) return false\n const last = Buffer.allocUnsafe(1)\n readAt(fd, last, size - 1)\n if (last[0] === 0x0a) return false\n const chunks: Buffer[] = []\n let end = size\n let tailStart = 0\n while (end > 0) {\n const start = Math.max(0, end - 65_536)\n const chunk = Buffer.allocUnsafe(end - start)\n readAt(fd, chunk, start)\n const newline = chunk.lastIndexOf(0x0a)\n chunks.push(chunk.subarray(newline + 1))\n if (newline >= 0) {\n tailStart = start + newline + 1\n break\n }\n end = start\n }\n try {\n JSON.parse(Buffer.concat(chunks.reverse()).toString('utf8'))\n return true\n } catch (error) {\n if (!(error instanceof SyntaxError)) throw error\n ftruncateSync(fd, tailStart)\n fsyncSync(fd)\n return false\n }\n } finally {\n closeSync(fd)\n }\n}\n\nfunction readAt(fd: number, buffer: Buffer, position: number): void {\n let offset = 0\n while (offset < buffer.length) {\n const read = readSync(fd, buffer, offset, buffer.length - offset, position + offset)\n if (read === 0) throw new Error('journal changed while preparing its append tail')\n offset += read\n }\n}\n","import type { FileHandle } from 'node:fs/promises'\nimport { commitJsonLine, prepareJsonlTail } from './jsonl-append'\nimport { fenceRunWrite } from './run-fence'\n\n/** Parse in-memory evidence with the same commit boundary as streamed journal reads. */\nexport function parseCommittedJsonLines<T>(text: string, source: string): T[] {\n const lines = text.split('\\n')\n const records: T[] = []\n for (const [index, line] of lines.entries()) {\n const record = parseRecord<T>(line, source, index + 1, index < lines.length - 1)\n if (record !== undefined) records.push(record.value)\n }\n return records\n}\n\n/** Read a fixed file prefix one record at a time, never allocating the whole journal as a string.\n * A reader cannot chase concurrent appends forever. Missing files are empty only when requested;\n * corruption, short reads, and other I/O errors remain failures. Closing the iterator closes the fd. */\nexport async function* readCommittedJsonLines<T>(\n path: string,\n options: {\n allowMissing?: boolean\n allowWhitespaceLines?: boolean\n onBytes?: (bytes: Uint8Array) => void\n } = {},\n): AsyncGenerator<T> {\n const fs = await import('node:fs/promises')\n let handle: FileHandle\n try {\n handle = await fs.open(path, 'r')\n } catch (error) {\n if (options.allowMissing && isNoEntError(error)) return\n throw error\n }\n try {\n const { size } = await handle.stat()\n if (size === 0) return\n const { StringDecoder } = await import('node:string_decoder')\n const decoder = new StringDecoder('utf8')\n const stream = handle.createReadStream({ autoClose: false, end: size - 1 })\n const fragments: string[] = []\n let lineNumber = 1\n try {\n for await (const chunk of stream) {\n options.onBytes?.(chunk as Buffer)\n const text = decoder.write(chunk as Buffer)\n let start = 0\n let end = text.indexOf('\\n', start)\n while (end !== -1) {\n fragments.push(text.slice(start, end))\n const record = parseRecord<T>(\n fragments.join(''),\n path,\n lineNumber++,\n true,\n options.allowWhitespaceLines,\n )\n fragments.length = 0\n if (record !== undefined) yield record.value\n start = end + 1\n end = text.indexOf('\\n', start)\n }\n if (start < text.length) fragments.push(text.slice(start))\n }\n if (stream.bytesRead !== size) {\n throw new Error(`${path}: journal changed while reading its committed prefix`)\n }\n fragments.push(decoder.end())\n const record = parseRecord<T>(\n fragments.join(''),\n path,\n lineNumber,\n false,\n options.allowWhitespaceLines,\n )\n if (record !== undefined) yield record.value\n } finally {\n stream.destroy()\n }\n } finally {\n await handle.close()\n }\n}\n\n/** An invalid unterminated tail may be a torn write; other parse failures are not evidence of one. */\nfunction parseRecord<T>(\n line: string,\n source: string,\n lineNumber: number,\n terminated: boolean,\n allowWhitespaceLines = false,\n): { value: T } | undefined {\n if (line.length === 0 || (allowWhitespaceLines && line.trim().length === 0)) return undefined\n try {\n return { value: JSON.parse(line) as T }\n } catch (cause) {\n if (!(cause instanceof SyntaxError)) throw cause\n if (!terminated) return undefined\n throw new Error(`${source}: malformed JSONL record at line ${lineNumber}`, { cause })\n }\n}\n\n/** Append one JSONL record under the caller's existing single-writer discipline.\n * The caller creates the parent directory. Recover only an uncommitted tail, handle short\n * writes, and fsync before acknowledging.\n * An optional acknowledgement reads the same open descriptor after sync (the spawn journal\n * validates its file stamp here). Queueing, validation, and failure policy belong to the owner.\n * @internal\n */\nexport function appendCommittedJsonLine(path: string, record: unknown): Promise<void>\nexport function appendCommittedJsonLine<T>(\n path: string,\n record: unknown,\n acknowledge: (fd: number) => T,\n): Promise<T>\nexport async function appendCommittedJsonLine<T>(\n path: string,\n record: unknown,\n acknowledge?: (fd: number) => T,\n): Promise<T | undefined> {\n return commitJsonLine(path, record, acknowledge)\n}\n\n/** Serialize JSONL file updates across processes and aliases using Eval's existing file lock.\n * The caller owns validation and the record format. The lock path names the canonical file,\n * including its first write, so two directory aliases cannot acquire different write heads.\n * @internal\n */\nexport async function withJsonlFileLock<T>(\n path: string,\n operation: (canonicalPath: string) => Promise<T>,\n): Promise<T> {\n const fs = await import('node:fs/promises')\n const { dirname } = await import('node:path')\n const { tryAcquireAtomicFileLock } = await import('@tangle-network/agent-eval/ledger-core')\n await fs.mkdir(dirname(path), { recursive: true })\n const file = await fs.open(path, 'a')\n await file.close()\n const canonicalPath = await fs.realpath(path)\n const deadline = Date.now() + 5000\n for (;;) {\n const acquisition = tryAcquireAtomicFileLock({ lockPath: `${canonicalPath}.lock` })\n if (!acquisition.acquired) {\n if (Date.now() >= deadline) {\n throw new Error(`journal file lock unavailable after 5000ms: ${canonicalPath}`)\n }\n await new Promise((resolve) => setTimeout(resolve, 25))\n continue\n }\n try {\n return await operation(canonicalPath)\n } finally {\n acquisition.lock.release()\n }\n }\n}\n\n/** Read one keyed registry snapshot without an extra whole-file text allocation.\n * Historical registry files allow whitespace-only separators; append journals remain strict.\n * @internal\n */\nexport async function readCommittedJsonFile<T>(path: string): Promise<T[]> {\n const records: T[] = []\n for await (const record of readCommittedJsonLines<T>(path, {\n allowMissing: true,\n allowWhitespaceLines: true,\n })) {\n records.push(record)\n }\n return records\n}\n\n/** Replace one keyed row and publish one durable snapshot. The caller holds the file lock.\n * Keep unrelated rows in order and put the replacement last. No revision archive is retained.\n * @internal\n */\nexport async function upsertCommittedJsonLine<T>(\n path: string,\n record: T,\n key: (record: T) => string,\n): Promise<void> {\n const encoded = JSON.stringify(record)\n if (encoded === undefined) throw new Error('JSONL records must be JSON serializable')\n const snapshot: T = JSON.parse(encoded)\n const id = key(snapshot)\n const updated: T[] = []\n for await (const prior of readCommittedJsonLines<T>(path, {\n allowMissing: true,\n allowWhitespaceLines: true,\n })) {\n if (key(prior) !== id) updated.push(prior)\n }\n updated.push(snapshot)\n // Reuse Runtime's file publication owner; this module owns JSONL framing, not another\n // durability implementation. Preserve the existing snapshot's permissions across rename.\n const { writeAtomicDurableFile } = await import('../runtime/supervise/durable-file')\n writeAtomicDurableFile(path, `${updated.map((row) => JSON.stringify(row)).join('\\n')}\\n`, {\n preserveMode: true,\n })\n}\n\n/** Recover a torn tail under the same generation fence as durable publications. @internal */\nexport async function prepareJsonlAppend(path: string): Promise<boolean> {\n return fenceRunWrite(() => prepareJsonlTail(path))\n}\n\n/** True for a filesystem error meaning \"the file is not there yet\" — the one condition an\n * append-only reader treats as an empty log rather than a fault. */\nexport function isNoEntError(error: unknown): boolean {\n return (\n typeof error === 'object' &&\n error !== null &&\n 'code' in error &&\n (error as { code: unknown }).code === 'ENOENT'\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAAgB,gBAAgB,OAAyB;CACvD,OAAO,OAAO,KAAK,CAAC,CAAC;AACvB;;AAGA,SAAgB,kCAA2C;CACzD,OAAO;EACL,MAAM;EACN,SAAS;EACT,SAAS;CACX;AACF;;;;;;;AAQA,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QAAQ;EAC3B;CACF;AACF;;;;;AAMA,eAAsB,sBAAyB,MAA4B;CACzE,MAAM,UAAe,CAAC;CACtB,WAAW,MAAM,UAAU,uBAA0B,MAAM;EACzD,cAAc;EACd,sBAAsB;CACxB,CAAC,GACC,QAAQ,KAAK,MAAM;CAErB,OAAO;AACT;;;;;AAMA,eAAsB,wBACpB,MACA,QACA,KACe;CACf,MAAM,UAAU,KAAK,UAAU,MAAM;CACrC,IAAI,YAAY,KAAA,GAAW,MAAM,IAAI,MAAM,yCAAyC;CACpF,MAAM,WAAc,KAAK,MAAM,OAAO;CACtC,MAAM,KAAK,IAAI,QAAQ;CACvB,MAAM,UAAe,CAAC;CACtB,WAAW,MAAM,SAAS,uBAA0B,MAAM;EACxD,cAAc;EACd,sBAAsB;CACxB,CAAC,GACC,IAAI,IAAI,KAAK,MAAM,IAAI,QAAQ,KAAK,KAAK;CAE3C,QAAQ,KAAK,QAAQ;CAGrB,MAAM,EAAE,2BAA2B,MAAM,OAAO;CAChD,uBAAuB,MAAM,GAAG,QAAQ,KAAK,QAAQ,KAAK,UAAU,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,KAAK,EACxF,cAAc,KAChB,CAAC;AACH;;AAGA,eAAsB,mBAAmB,MAAgC;CACvE,OAAO,oBAAoB,iBAAiB,IAAI,CAAC;AACnD;;;AAIA,SAAgB,aAAa,OAAyB;CACpD,OACE,OAAO,UAAU,YACjB,UAAU,QACV,UAAU,SACT,MAA4B,SAAS;AAE1C"}
|
package/dist/kernel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as NoWinnerError, $S as NativeContextContinuationInput, $_ as WaterfallCollector, $a as filterAuthoredAsserts, $b as NodeExecutionIdentity, $c as defaultAnalystInstruction, $f as SupervisorProfile, $g as verdictFromJudgeScore, $i as SpawnJournal, $l as LeaderboardFlagSpec, $m as BridgeHarnessStore, $n as validateStoredGraph, $o as profileChatClient, $r as InteractiveWorkerOptions, $s as inlineSandboxClient, $t as createVerifierEnvironment, $v as QuestionEscalationRecord, $x as resolveHarnessTranscriptCapture, $y as AnalystKind, A as TraceRootArtifact, AS as LoopTeardownFailedPayload, A_ as GroupOf, Aa as ProfileRichnessThresholds, Ab as InMemorySpawnJournal, Ac as AuthoredStrategy, Af as ReservationStage, Ai as lookupGraph, Al as Widen, Am as InboxMessage, An as settledWorkerOut, Ao as openSandboxRun, Ap as serveCoordinationMcp, Ar as RemoteSupervisorCancelResult, As as createMcpEnvironment, At as AgentEnvironmentStatus, Av as WorktreeProfileMaterializationReceipt, Ax as readWorkerProgress, Ay as PeerMailbox, B as Handle, BS as SelectionReceipt, B_ as pairwiseSignificance, Ba as CheckSource, Bc as sampleThenRefine, Bd as createWorkerSlots, Bf as CoordinationVerbs, Bi as RollingDispatchOptions, Bl as PersonaContext, Bm as ROUTER_CLIENT_HEADER, Bn as WorkspaceRun, Bo as PrivateCasNamespaceObject, Bp as ContinuationPanel, Br as ProvisionedSupervisor, Bs as runBenchmark, Bt as CreateAgentEnvironmentInput, Bx as HarnessTranscriptEvidence, CC as StartRetainedRunOptions, CS as LoopIterationStartedPayload, C_ as CodeModeToolContext, Ca as ChatTransportTool, Cb as SpawnForestNode, Cc as SurfaceScore, Cd as dumbContinuationFailPrompt, Cf as BudgetPoolRestore, Ch as ToolLoopCallContext, Ci as graphCorpusSummary, Cl as ScopeWidenGate, Cm as SandboxSteeringOptions, Cn as readWorkerInteractiveBinding, Co as Deliverable, Cp as bestDelivered, Cr as readWorkerSteerRequests, Cs as assertTraceDerivedFindings, Ct as SuperviseProfileEntry, Cx as ActivityNote, Cy as PeerMailEnvelope, DS as LoopResult, D_ as createCodeModeTools, Da as createChatSessionStore, Db as replaySpawnTree, Dc as runAgentic, Dd as naiveContinuationPrompt, Df as ReservationHolder, Dh as ToolLoopMessageRecord, Di as graphRunsFor, Dl as TrajectoryReportOptions, Dm as AuthorityInboxMessage, Dn as WorkerEvidenceInput, Do as SandboxRun, Dr as workerInboxFileFromEventDir, Ds as observationFromRegistry, Dt as AgentEnvironmentEvent, Dv as WorktreeCheckRunner, Dx as TeamProgress, Dy as PeerMailReadout, E as EvidencePendingEvent, ES as LoopPlanPayload, E_ as RunCodeModeOptions, Ea as chatWorkerSeam, Eb as FileResultBlobStore, Ec as refine, Ed as kernelPromptRegistry, Ef as ReservationFloor, Ei as graphRegistry, El as TrajectoryReport, Em as createSteerableSandboxSession, En as VERIFY_TAIL_CHARS, Eo as OpenSandboxRunPromptOptions, Ep as CoordinationMcpHandle, Er as supervisorRunsRoot, Es as registryScopeAnalyst, Et as AgentEnvironmentCapabilities, Ev as InPlaceHarnessResult, Ex as ScopeProgressInput, Ey as PeerMailOutcome, F as ResourceLimit, FS as MountManifestEntry, F_ as PairwiseOptions, Fa as supervisorInstructions, Fc as StrategyResult, Fi as taskShapeDigest, Fl as DefinePersona, Fm as SharedBoxPlacement, Fn as withUntrackedArtifacts, Fo as acquireSandbox, Fp as FileCoordinationLog, Fr as RemoteWorkerEvents, Fs as BenchmarkReport, Ft as AgentSessionStatus, Fv as LeadMessage, Fx as RetainedInteractiveRunHandle, Fy as peerMailTools, G as Settled, G_ as AnytimeReport, Ga as StructuralRolloutPolicy, Gb as SpawnModelSubstitution, Gc as HarvestFailure, Gd as isPreSpawnExecutorFailure, Gf as ResolveSupervisorTools, Gi as DesignerToolsEnv, Gl as ShapeContext, Gm as createAgentEnvironmentProviderRegistry, Gn as TrajectoryAnalysis, Go as startRetainedRunInEnvironment, Gp as PanelFinding, Gr as bestProfileFor, Gs as SuperviseOptionsForDispatch, Gt as PlacementInfo, Gv as RouteGate, Gx as captureHarnessTranscript, Gy as EventBus, H as NodeSnapshot, HS as Validator, H_ as renderLeaderboardMarkdown, Ha as RepairStop, Hb as ExecutorContext, Hc as strategyAuthorSystemPrompt, Hd as WorkerSpawnRetryAttempt, Hi as queueOf, Hl as RunPersonified, Hm as sharedWorkerClientName, Hn as jjWorkspace, Ho as reconnectRetainedRun, Hp as ContinuationPanelResult, Hr as provisionSupervisor, Hs as LoopDispatchOptions, Ht as ExecRequest, Hv as GateRequest, Hx as HarnessTranscriptUnavailable, Hy as BusEvent, I as ResourceSpend, IS as MountRecorder, I_ as PairwiseVerdict, Ia as CheckExecChannel, Ic as adaptiveRefine, Ii as GraphTriggerBinding, Il as DefinePersonaInput, Im as SharedBoxPlacementOptions, In as GitWorkspaceOptions, Io as S3PrivateCasStore, Ir as connectRemoteSupervisor, Is as BenchmarkStrategySummary, It as AgentTurnResult, Iv as ManagerReentryState, Ix as RetainedInteractiveStartMaterial, Iy as peerMailVerbNames, J as SpawnRejection, J_ as anytimeReport, Ja as canDisplace, Jb as ExecutorExecutionBinding, Jc as Observation, Jd as withWorkerSpawnRetry, Jf as SupervisorNodeContext, Jg as CompletionCheckContext, Ji as DelegateOptions, Jl as providerAsSandboxClient, Jm as ProviderLeafOut, Jn as parseWorkerToolTraceArtifact, Jo as reconnectRetainedInteractiveRun, Jp as DriverContractState, Jr as profileRegistry, Js as superviseDispatch, Jt as SandboxInstance, Jx as HarnessTranscriptMetadata, Jy as WatchTraceOptions, K as SpawnOpts, K_ as AnytimeStrategySummary, Ka as StructuralRolloutResult, Kb as AgentExecutionRef, Kc as HarvestReport, Kd as resolveWorkerSpawnRetry, Kf as SupervisorAgentDeps, Kg as CheckUnavailableError, Ki as GraphDesignerExtraTools, Kl as ShapeRegistry, Km as resolveAgentEnvironmentProvider, Kn as analyzeTrace, Ko as ClaimRetainedInteractiveControlOptions, Kp as VerdictSummary, Kr as loadProfile, Ks as loopCampaignDispatch, Kt as ResourceRequest, Kv as RouteMatch, Kx as harnessTranscriptArtifact, Ky as PublishOptions, L as Spend, LS as OutputAdapter, L_ as ProfileKeyOf, La as CheckOutcome, Lc as assertStrategyContract, Ld as SuperviseOptions, Lf as supervisorAgent, Li as DispatchReport, Ll as LoopShape, Lm as SharedBoxStats, Ln as Shell, Lo as S3PrivateCasStoreOptions, Lr as connectRemoteSupervisorControl, Ls as BenchmarkTaskRow, Lt as AnalystFinding, Lx as StartRetainedInteractiveRunOptions, M as Budget, MS as LoopTraceEmitter, M_ as Leaderboard, Ma as assessAuthoredProfile, Mc as Strategy, Md as superviseFleetCapabilities, Mf as ReserveOptions, Mi as recordGraphRun, Ml as WidenLineage, Mm as DEFAULT_SHARED_BOX_RESOURCES, Mn as CopyOptions, Mo as SandboxLineageHandle, Mr as RemoteSupervisorReader, Ms as BenchmarkCell, Mt as AgentProfile, Mx as RecoverRetainedInteractiveRunOptions, My as claimsAuthority, N as BudgetOverspend, NS as LoopTraceEvent, N_ as LeaderboardOptions, Na as defaultProfileRichnessThresholds, Nc as StrategyArtifacts, Nf as createBudgetPool, Ni as recordStoredGraphRun, Nl as WidenSpec, Nm as DEFAULT_SHARED_BOX_WORKERS, Nn as UntrackedCopyStats, No as createSandboxLineage, Nr as RemoteSupervisorSteerResult, Ns as BenchmarkConfig, Nt as AgentSession, Nv as CoordinationEvent, Nx as RetainedInteractiveAdmissionHook, Ny as createPeerMailbox, O as TRACE_ROOT_SCHEMA, OS as LoopSandboxPlacement, O_ as runCodeMode, Oa as AuthoredProfile, Ob as FileSpawnJournal, Oc as sample, Od as promptHandle, Of as ReservationRejection, Oh as ToolLoopToolCall, Oi as listGraphRuns, Ol as Verify, Om as Inbox, On as closingWorkerNote, Oo as SandboxRunAbortError, Op as CoordinationReadAccess, Or as writeWorkerSteer, Os as McpEndpoint, Ot as AgentEnvironmentProvider, Ov as WorktreeCommandResult, Ox as WorkerProgress, Oy as PeerMailRefusal, P as BudgetViolation, PS as LoopWinner, P_ as LeaderboardRow, Pa as profileRichnessFinding, Pc as StrategyCtx, Pd as workerFromBackend, Pi as storedGraphDigests, Pl as WinnerStrategy, Pm as SharedBoxCloseReceipt, Pn as copyUntrackedIntoClone, Po as AcquireOptions, Pp as CoordinationLog, Pr as RemoteSupervisorTree, Ps as BenchmarkLift, Pt as AgentSessionRef, Pv as EventAcknowledgement, Px as RetainedInteractiveEnvironmentInput, Py as isPeerMailEnvelope, Q as FleetYield, QS as NativeContextContinuationHandle, Q_ as renderAnytimeTable, Qa as defaultStructuralRolloutPolicy, Qb as MaterializedModelIdentity, Qc as ObserveOptions, Qg as mapExecutorResult, Qi as SpawnEvent, Ql as LeaderboardBenchmarkAdapter, Qm as ProviderPlacement, Qn as ValidateStoredGraphOptions, Qo as resolveSandboxClient, Qr as InteractiveWorkerKeyInput, Qs as defaultSelectWinner, Qt as VerifierEnvironmentOptions, Qx as RetainedHarnessTranscriptDescriptor, Qy as AnalystFindingEvent, R as SpendChannel, RS as RunProvenance, R_ as ScoreOf, Ra as CheckRunContext, Rc as authorStrategy, Ri as DispatchStopReason, Rl as Outcome, Rm as SharedWorkerIdentity, Rn as Workspace, Ro as createS3PrivateCasStore, Rp as ContinuationAppend, Rr as ProvisionSupervisorConnection, Rs as Environment, Rt as CheckpointRef, Rv as ToolOutcomeEvent, Rx as HarnessTranscriptArtifact, SC as StartRetainedRunInEnvironmentOptions, SS as LoopIterationEndedPayload, S_ as CodeModeTool, Sa as ChatTransportExecutorOptions, Sb as SpawnForestMissingTree, Sc as StrategyShotResult, Sd as delegatesWorkerBriefPrompt, Sf as BudgetPool, Sh as ToolSpec, Si as digestOfGraph, Sl as ScopeAnalyzeInput, Sm as DEFAULT_SANDBOX_STEERING_MAX_TURNS, Sn as attachWorker, So as strategyTournament, Sp as SupervisorFinalizer, Sr as readWorkerSteerAcknowledgement, Ss as RegistryAnalyzeProjection, Sx as ActivityLog, Sy as PEER_MAIL_WIRE_KEY, TS as LoopPlanDescription, T_ as CodeModeToolset, Ta as chatTransportExecutor, Tb as loadSpawnForest, Tc as depthStrategy, Td as formatPromptHandle, Tf as LeakedReservation, Th as ToolLoopCompaction, Ti as graphFromStored, Tl as TrajectoryNode, Tm as SteerableSandboxSession, Tn as NOTE_MAX_CHARS, To as OpenSandboxRunOptions, Tp as CoordinationControlAccess, Tr as supervisorRunDir, Ts as createScopeAnalyst, Tt as AgentEnvironment, Tx as ExecutorProgress, Ty as PeerMailLimits, U as NodeStatus, U_ as renderLeaderboardSvg, Ua as StructuralRolloutConfig, Ub as ExecutorFactory, Uc as HarvestCorpusOptions, Ud as WorkerSpawnRetryHooks, Uf as ObserveSupervisorNodeEvent, Ui as rollingDispatch, Ul as RunPersonifiedOptions, Un as localShell, Uo as recoverRetainedRun, Up as ContinuationPolicy, Ur as ProfileRegistryDir, Us as LoopOptionsForDispatch, Ut as ExecResult, Uv as JsonScalar, Ux as HarnessTranscriptUnavailableReason, Uy as BusRecord, V as NodeId, VS as ValidationCtx, V_ as renderLeaderboardHtml, Va as CheckSourceCtx, Vb as AgentSpec, Vc as strategyAuthorContract, Vd as ResolvedWorkerSpawnRetry, Vf as DriveHarness, Vi as freeSlots, Vl as PersonaExecutors, Vm as sharedBoxRefusal, Vn as gitWorkspace, Vo as PrivateCasNamespaceRetirement, Vp as ContinuationPanelInput, Vr as SupervisorCleanupReceipt, Vs as LoopCampaignDispatchOptions, Vt as CreateSandboxOptions, Vv as GateDecision, Vx as HarnessTranscriptFile, W as RetainedExecutionState, W_ as renderPairwiseMarkdown, Wa as StructuralRolloutMessage, Wb as ExecutorRegistry, Wc as HarvestError, Wd as WorkerSpawnRetryPolicy, Wi as DesignerRunGraphEnv, Wl as ShapeBudget, Wm as AgentEnvironmentProviderRegistry, Wn as runInWorkspace, Wo as startRetainedRun, Wp as ContinuationProfile, Wr as ProfileRunRecord, Ws as SuperviseDispatchOptions, Wt as ForkRequest, Wx as ReadableEnvironment, Wy as BusStats, X as SubtreeSummary, X_ as bestSoFar, Xa as composeCheckSources, Xb as ExecutorNodeContext, Xc as ObservationError, Xd as SuperviseRegistryTable, Xf as SupervisorToolDescriptor, Xg as ExecutorResultMapping, Xi as delegate, Xl as LeaderboardBenchScore, Xm as providerAsExecutor, Xn as createSupervisor, Xo as startRetainedInteractiveRun, Xp as DriverRetryPolicy, Xr as recordProfileRun, Xs as TERMINAL_DECISIONS, Xt as computeFindingId, Xx as HarnessTranscriptReadOptions, Xy as watchTrace, Y as SubtreeResult, Y_ as areaUnderCurve, Ya as compareCheckOutcomes, Yb as ExecutorMaterialization, Yc as ObservationAnalysis, Yd as SuperviseRegistry, Yf as SupervisorNodeContextSeed, Yg as DeliverableSpec, Yi as defaultDelegateBudget, Yl as DefinedLeaderboard, Ym as ProviderPromptOptions, Yn as DEFAULT_MAX_DEPTH, Yo as recoverRetainedInteractiveRun, Yp as DriverReentry, Yr as profileRunsForName, Ys as LocalSandboxClientOptions, Yt as WorkspaceRequest, Yx as HarnessTranscriptReadLimits, Yy as defaultToolDetectors, Z as TreeView, ZS as NativeContextContinuationExecution, Z_ as plateauLength, Za as defaultExtractCandidate, Zb as MaterializedExecutionIdentity, Zc as ObserveInput, Zd as SeatSegment, Zf as SupervisorToolInvocationContext, Zg as gateOnDeliverable, Zi as ResultBlobStore, Zl as LeaderboardBenchTask, Zm as UnavailablePausePolicy, Zn as createRootHandle, Zo as ResolveSandboxClientOptions, Zr as InteractiveWorkerEnvironment, Zs as TerminalDecision, Zt as makeFinding, Zv as QuestionDecision, Zx as RetainedHarnessTranscriptCapture, Zy as AnalystAssignmentRecord, _C as RetainedRunIntentAdmission, _S as ExecCtx, __ as harnessUsageIsEmpty, _a as WorkerEventCursor, _b as SqlAdapter, _c as AgenticTool, _d as PromptHandle, _f as ParkedRun, _h as extractLlmCallEvent, _i as GraphRunQuery, _l as PanelSpec, _m as CliWorktreeSeam, _n as WorktreePatchArtifact, _o as StrategyEvolutionConfig, _p as UNPROVEN_CONTINUITY, _r as WorkerSteerRequest, _s as pipeline, _u as IsolatedCheckOptions, _x as WorkerTraceUnavailableReason, aC as RetainedInteractiveEnvironmentAdmission, aS as ProviderWorkspaceCaptureReceipt, a_ as deterministicCompletion, aa as RootSegmentEntry, ab as AuthoredAnalystLimits, ac as LocalMcpMaterialization, ad as GraphNode, af as RunContext, ah as mcpSecretEnvMetadataKey, ai as ObservedSessionFacts, al as CorpusFilter, an as SurfaceReader, ao as structuralRollout, ap as StopRule, ar as SearchSpec, as as createPrivateCasArtifactPort, at as DriverAttemptRecord, au as defineLeaderboard, av as SandboxEvidenceContext, ax as ExecutorAccounting, bC as RetainedRunStartMaterial, bS as LoopEndedPayload, b_ as decodeHarnessUsage, ba as ChatCompletionsTransport, bb as SpawnForestEvent, bc as RunAgenticOptions, bd as analyzesFindingsReportPrompt, bf as RunParkingRecord, bh as RouterTransportConfig, bi as StoredGraph, bl as RenderCorpusToInstructionsOptions, bm as RouterToolsSeam, bn as WorkerInteractiveBinding, bo as TournamentRow, bp as FinalizeContext, br as legacySupervisorRunDir, bs as widen, bx as TraceSource, by as AUTHORITY_MARKERS, cC as RetainedRunAdmission, cS as ProviderWorkspaceRetentionContext, c_ as CodexForkBoundary, ca as Supervisor, cb as LocalHarnessResult, cc as McpSpawnFault, cd as RunGraphOptions, cf as createInMemoryRunContext, ch as secretEnvOfMcpServer, ci as graphRouteWhenSchema, cl as EqualKOnCostOptions, cn as fsSurfaceReader, co as AgentTurnInput, cp as noProgressFor, cr as assertSearchSpec, cs as definePersona, ct as DriverFailureClass, cu as DeclaredCheckStateCapture, cx as ExecutorResult, dC as RetainedRunCancellation, dS as ExecutorToolCall, d_ as CodexRolloutStoreReader, da as ReenteredWorkers, dc as connectStdioMcp, dd as runGraph, df as SupervisorSpanOptions, dh as SandboxToolPartState, di as LoadGraphFileOptions, dl as FanoutSynthesis, dm as createExecutorRegistry, dn as analystsFromRegistry, do as StreamAgentTurnOptions, dp as RunCancellation, dr as searchSpecDigest, ds as InMemoryCorpus, du as declaredCheckDeliverable, dx as HeldForContinuation, eC as ReconnectRetainedRunOptions, eS as retainHarnessTranscript, e_ as CompletionAnalyst, ea as TraceRootReceipt, eb as AnalystLensOutput, ec as InProcessOnPrompt, ed as AgentGraph, ef as SeatStage, eh as BridgeModelCredential, ei as InteractiveWorkerResult, el as observe, en as BoxSurfaceReaderOptions, eo as modelAuthoredChecks, ep as AllWorkersStalledOptions, er as FencedSqlRunContext, es as profileOptimizerModelCall, et as ProviderModelAttemptEvidence, eu as LeaderboardIterationInfo, ev as WaterfallReport, ex as ProfileMaterializationReceipt, ey as QuestionEscalationTarget, f as BackendErrorDetail, fC as RetainedRunDispatchedAdmission, fS as TokenUsageProvenance, f_ as CodexRolloutStoreRef, fa as ResumedKeyState, fc as materializeLocalMcp, ff as SupervisorSpanOutcome, fh as createSandboxToolPartState, fi as LoadedGraphFile, fl as FanoutWinnerSelector, fm as ExecutorConfig, fn as failuresAnalyst, fo as collectAgentTurn, fp as cancelRun, fr as settledToIteration, fs as renderCorpusToInstructions, fu as declaredCheckDigest, fx as HeldRelease, fy as DownMessageDeliveryAttempt, gC as RetainedRunHandle, gS as Driver, g_ as createCodexRolloutStoreReader, ga as WidenGate, gb as openSqlRunStore, gc as AgenticTask, gd as GraphRouteError, gh as SandboxUsageLedger, gi as GraphRegistryDir, gl as PanelJudge, gm as CliWorktreeBridgeSeam, gn as WorktreeCliExecutorOptions, go as EvolutionStrategy, gp as ReentryTaskInput, gr as WorkerSteerAcknowledgement, gs as panel, gt as MakeWorkerAgent, gu as IsolatedCheckBoxEvidence, gx as WorkerTraceEvidence, gy as MapItemFailurePolicy, hC as RetainedRunEventOptions, hS as DefaultVerdict, h_ as addHarnessUsage, ha as UnconfirmedTeardown, hb as SqlRunOwnershipError, hc as AgenticSurface, hd as defaultEdgeTraversalCap, hf as WorkerTraceResolver, hh as SandboxServedBackend, hi as GraphCorpusSummary, hl as Panel, hm as CliSeam, hn as worktreeFanout, ho as EvolutionReport, hp as ReentryContinuity, hr as WorkerCancellation, hs as loopUntil, hu as IsolatedCheckBox, hx as WorkerInteractiveUnavailableReason, hy as WorkerResumeContext, iC as RetainedInteractiveAdmission, iS as ProviderWorkspaceCaptureProvenance, i_ as completionAuthorizes, ia as RootSegment, ib as AuthoredAnalystDefinition, ic as HttpMcpServerSpec, id as GraphEdgeCapError, if as InMemoryRunContextOptions, ih as envKeyProvider, ii as GraphSessionObservationOptions, il as Corpus, in as SurfaceReadOutcome, io as selectBestIndex, ip as StopDecision, ir as SEARCH_SPEC_CORRELATION_KEY, is as PrivateCasOptions, it as SupervisedResult, iu as LeaderboardSpec, iv as runAgentRounds, ix as Executor, iy as QuestionRecord, j as TraceSummary, jS as LoopTokenUsage, j_ as Interval, ja as asAuthoredProfile, jb as contentAddress, jc as ShotSpec, jd as supervise, jf as ReservationTicket, ji as pickBestGraph, jl as WidenDecision, jm as PeerInboxMessage, jn as spendFromUsageEvents, jo as SandboxLineage, jr as RemoteSupervisorControl, js as sanitizeMcpToolSchema, jt as AgentEnvironmentSummary, jv as GitRunner, jx as ReconnectRetainedInteractiveRunOptions, jy as PeerMailboxOptions, k as TRACE_SUMMARY_SCHEMA, kS as LoopStartedPayload, k_ as AxisScoresOf, ka as ProfileRichness, kb as InMemoryResultBlobStore, kc as AuthorStrategyOptions, kf as ReservationShortfall, ki as loadGraph, kl as VerifySpec, km as InboxLease, kn as composeWorkerEvidence, ko as TurnResult, kr as RemoteSupervisorAgent, ks as McpEnvironmentOptions, kt as AgentEnvironmentQuery, kv as WorktreeHarnessResult, kx as createActivityLog, ky as PeerMailSendInput, lC as RetainedRunAdmissionHook, lS as ProviderWorkspaceRetentionPort, l_ as CodexRolloutIdentity, la as SupervisorOpts, lc as StdioMcpConnection, lf as withRunContext, lh as SandboxLeafOut, li as GraphFileResolutionError, ll as EqualKVerdict, ln as harvestSurfaceDiffs, lo as AgentTurnUsage, lp as plateau, lr as compileSearchSpec, ls as runPersonified, lt as DriverRepromptRefusal, lu as assertDeclaredCheck, lx as ExecutorTeardownWarning, ly as ContinuationInstruction, mC as RetainedRunEnvironmentAdmission, mS as AgentRunSpec, m_ as CodexStoreDelta, ma as Scope, mb as CodexExecutionPolicy, mc as AgenticRunResult, md as GraphFromStoredOptions, mf as createSupervisorSpanRecorder, mh as mapSandboxToolEvent, mi as GraphCorpusGroup, ml as LoopUntilState, mm as CliInPlaceSeam, mn as WorktreeFanoutOptions, mo as EvolutionAuthor, mp as readRunCancellation, mr as ScopeArgs, ms as flatWidenGate, mu as readDeclaredCheck, mv as createOtelExporter, mx as WorkerInteractiveSession, my as DownMessageEvent, nC as RecoverRetainedRunOptions, nS as ProviderNativeCapturePhase, n_ as CompletionPolicy, na as RecursiveReservationPolicy, nb as AnalystRunContext, nc as InProcessSandboxClientOptions, nd as EdgeTraversal, nf as subscriptionUsageLimitSignal, nh as KeyProvider, ni as InPlaceCliExecutorOptions, nl as AssertTraceDerivedFindings, nn as SurfaceDiff, no as resolveEntrySymbol, np as PlateauOptions, nr as createFencedSqlRunContext, ns as PrivateCasDurableStore, nt as RootProviderModelEvidence, nu as LeaderboardScenario, nv as createWaterfallCollector, nx as UnknownMaterializationReason, oC as RetainedInteractiveIntentAdmission, oS as ProviderWorkspaceCaptureResult, o_ as sentinelCompletion, oa as RootSignal, ob as DefinedAnalystRecord, oc as MaterializeLocalMcpOptions, od as GraphResult, of as RunContextLease, oh as resolveMcpServerLaunch, oi as graphFromSessionFacts, ol as CorpusRecord, on as WatchedSurface, oo as visibleCheckScore, op as allWorkersStalled, or as SearchSpecInputs, os as equalKOnCost, ot as DriverAttemptStop, ou as DeclaredCheck, ov as SandboxEvidenceReceipt, ox as ExecutorCancellation, oy as questionEscalationTargets, pC as RetainedRunEffect, pS as UsageEvent, p_ as CodexRolloutTurn, pa as ResumedWork, pb as CodexTokenUsage, pc as AgenticOptions, pd as GraphCommandCheck, pf as SupervisorSpanRecorder, ph as mapSandboxEvent, pi as loadGraphFile, pl as LoopUntilSpec, pm as createExecutor, pn as AuthoredHarness, po as streamAgentTurn, pp as readRunCancelRequest, pr as createScope, ps as fanout, pu as declaredCheckJudge, px as Runtime, py as DownMessageDeliveryOutcome, q as SpawnPrior, q_ as AnytimeTaskCurve, qa as VisibleCheck, qb as ExecutionBindingReceipt, qc as harvestCorpus, qd as retryPreSpawnRefusals, qg as CheckVerdict, qi as graphDesignerExtraTools, ql as ProviderAsSandboxClientOptions, qm as ProviderExecutorOptions, qn as WorkerToolTraceArtifact, qo as claimRetainedInteractiveControl, qp as admitContinuationPolicy, qr as pickBestProfile, qs as loopDispatch, qt as SandboxEvent, qv as RouteWhen, qx as persistHarnessTranscript, qy as createEventBus, rC as RecoverRetainedRunResult, rS as ProviderWorkspaceAttemptProvenance, r_ as CompletionVerdict, ra as RootHandle, rc as inProcessSandboxClient, rd as GraphEdge, rf as InMemoryRunContext, rh as ResolvedMcpServerLaunch, ri as createInPlaceCliExecutor, rl as CombinatorShape, rn as SurfaceReadBox, ro as sandboxCheckRunner, rp as ProgressView, rr as CompiledSearchSpec, rs as PrivateCasOffloadReport, rt as RootStreamReceipt, ru as LeaderboardScore, rv as RunAgentRoundsOptions, rx as EnvironmentTeardownReceipt, ry as QuestionPolicy, sC as RetainedInteractiveStartedAdmission, sS as ProviderWorkspaceEntryMetadata, s_ as stopSentinel, sa as SteerableRootHandle, sb as CodexExecutionEvidence, sc as McpListedTool, sd as GraphTopology, sf as createFileRunContext, sh as resolveSecretEnv, si as graphFileSchema, sl as EqualKArm, sn as boxSurfaceReader, so as AgentTurnBackend, sp as anyOf, sr as SearchSpecOwnedOption, ss as trajectoryReport, st as DriverContinuationRecord, su as DeclaredCheckPlacement, sv as SandboxEvidenceRetentionPort, sx as ExecutorCancellationRequest, tC as RecoverRetainedRunIntentOptions, tS as ProviderCheckpointCaptureContext, t_ as CompletionEvidence, ta as WorkspaceCheckpointMarker, tb as AnalystRegistry, tc as InProcessPromptCtx, td as EdgeDeliveryOutcome, th as BridgeSeam, ti as workerFromInteractiveProvider, tl as renderReport, tn as HarvestSurfaceDiffsOptions, to as officialChecksFromMeta, tp as NoProgressForOptions, tr as SqlRunContextOptions, ts as PrivateCasArtifactPort, tt as ProviderModelExecutionEvidence, tu as LeaderboardRunContext, tv as WaterfallSpan, tx as RootMaterialization, uC as RetainedRunCancelOptions, uS as ExecutorProgressEvent, u_ as CodexRolloutSession, ua as Agent, uc as StdioMcpServerSpec, ud as TraversalContinuity, uf as SupervisorSpanAttributes, uh as SandboxOutputMarker, ui as GraphFileSeat, ul as FanoutOptions, un as AnalystAuthoring, uo as CollectedAgentTurn, up as RunCancelRequest, ur as searchPresets, us as FileCorpus, ut as BlockedToolReport, uu as checkProgramDigest, ux as HeldEnvironment, vC as RetainedRunReplayPoint, vS as Iteration, v_ as readCodexRolloutSession, va as WorkerEventEntry, vb as materializeTreeView, vc as ArtifactHandle, vd as PromptRegistry, vf as RunParkedError, vh as sumSandboxUsage, vi as GraphRunRecord, vl as PanelVerdict, vm as ProviderSeam, vn as createWorktreeCliExecutor, vo as StrategyTournament, vp as composeReentryTask, vr as WriteWorkerSteerOptions, vs as selectValidWinner, vt as SettledWorker, vu as IsolatedCheckResult, vx as SessionMessageLike, vy as MapSpawnMarker, wS as LoopLineageOptions, w_ as CodeModeToolsOptions, wa as ChatWorkerSeamOptions, wb as SpawnForestTree, wc as breadthStrategy, wd as dumbContinuationPassPrompt, wf as BudgetReadout, wh as ToolLoopChat, wi as graphDigest, wl as SteerContext, wm as SteerableSandboxArgs, wn as EVIDENCE_MAX_CHARS, wo as OpenSandboxRunBeforeStartContext, wr as safeWorkerFile, ws as buildSteerContext, wt as WorkerSpawnContext, wx as DEFAULT_STALL_AFTER_MS, wy as PeerMailEvent, xC as RetainedRunTurnInput, xS as LoopIterationDispatchPayload, x_ as CodeModeStore, xa as ChatSessionStore, xb as SpawnForestInDoubtNode, xc as StrategyMessage, xd as createPromptRegistry, xf as readRunParking, xh as RouterRouting, xi as StoredGraphInput, xl as ScopeAnalyst, xm as SandboxSeam, xn as WorkerInteractiveProviderSource, xo as runStrategyEvolution, xp as FinalizerSettled, xr as readWorkerCancellation, xs as CreateScopeAnalystOptions, xx as createPushTraceSource, xy as DEFAULT_PEER_MAIL_LIMITS, yC as RetainedRunSnapshot, yS as LoopDecisionPayload, y_ as HarnessUsage, ya as WorkerEventPage, yb as SpawnForest, yc as CorpusReadbackOptions, yd as RegisteredPrompt, yf as RunParkingPolicy, yh as RouterResponseReceipt, yi as GraphSelection, yl as PipelineStage, ym as RouterSeam, yn as AttachWorkerOptions, yo as TournamentCell, yp as DeliveredOutput, yr as cancelWorker, ys as verify, yu as runIsolatedCheck, yx as ToolStepInput, yy as MapTraversalEvent, z as SpendGap, zS as SandboxClient, z_ as leaderboard, za as CheckRunner, zc as defineStrategy, zf as CoordinationToolFace, zi as DispatchUnit, zl as Persona, zm as sharedBoxPlacement, zn as WorkspaceCommit, zo as PrivateCasNamespaceInventory, zp as ContinuationEntry, zr as ProvisionSupervisorRequest, zs as printBenchmarkReport, zt as CheckpointRequest, zx as HarnessTranscriptCapture } from "./types-DTHxh4X9.js";
|
|
1
|
+
import { $ as NoWinnerError, $S as NativeContextContinuationInput, $_ as WaterfallCollector, $a as filterAuthoredAsserts, $b as NodeExecutionIdentity, $c as defaultAnalystInstruction, $f as SupervisorProfile, $g as verdictFromJudgeScore, $i as SpawnJournal, $l as LeaderboardFlagSpec, $m as BridgeHarnessStore, $n as validateStoredGraph, $o as profileChatClient, $r as InteractiveWorkerOptions, $s as inlineSandboxClient, $t as createVerifierEnvironment, $v as QuestionEscalationRecord, $x as resolveHarnessTranscriptCapture, $y as AnalystKind, A as TraceRootArtifact, AS as LoopTeardownFailedPayload, A_ as GroupOf, Aa as ProfileRichnessThresholds, Ab as InMemorySpawnJournal, Ac as AuthoredStrategy, Af as ReservationStage, Ai as lookupGraph, Al as Widen, Am as InboxMessage, An as settledWorkerOut, Ao as openSandboxRun, Ap as serveCoordinationMcp, Ar as RemoteSupervisorCancelResult, As as createMcpEnvironment, At as AgentEnvironmentStatus, Av as WorktreeProfileMaterializationReceipt, Ax as readWorkerProgress, Ay as PeerMailbox, B as Handle, BS as SelectionReceipt, B_ as pairwiseSignificance, Ba as CheckSource, Bc as sampleThenRefine, Bd as createWorkerSlots, Bf as CoordinationVerbs, Bi as RollingDispatchOptions, Bl as PersonaContext, Bm as ROUTER_CLIENT_HEADER, Bn as WorkspaceRun, Bo as PrivateCasNamespaceObject, Bp as ContinuationPanel, Br as ProvisionedSupervisor, Bs as runBenchmark, Bt as CreateAgentEnvironmentInput, Bx as HarnessTranscriptEvidence, CC as StartRetainedRunOptions, CS as LoopIterationStartedPayload, C_ as CodeModeToolContext, Ca as ChatTransportTool, Cb as SpawnForestNode, Cc as SurfaceScore, Cd as dumbContinuationFailPrompt, Cf as BudgetPoolRestore, Ch as ToolLoopCallContext, Ci as graphCorpusSummary, Cl as ScopeWidenGate, Cm as SandboxSteeringOptions, Cn as readWorkerInteractiveBinding, Co as Deliverable, Cp as bestDelivered, Cr as readWorkerSteerRequests, Cs as assertTraceDerivedFindings, Ct as SuperviseProfileEntry, Cx as ActivityNote, Cy as PeerMailEnvelope, DS as LoopResult, D_ as createCodeModeTools, Da as createChatSessionStore, Db as replaySpawnTree, Dc as runAgentic, Dd as naiveContinuationPrompt, Df as ReservationHolder, Dh as ToolLoopMessageRecord, Di as graphRunsFor, Dl as TrajectoryReportOptions, Dm as AuthorityInboxMessage, Dn as WorkerEvidenceInput, Do as SandboxRun, Dr as workerInboxFileFromEventDir, Ds as observationFromRegistry, Dt as AgentEnvironmentEvent, Dv as WorktreeCheckRunner, Dx as TeamProgress, Dy as PeerMailReadout, E as EvidencePendingEvent, ES as LoopPlanPayload, E_ as RunCodeModeOptions, Ea as chatWorkerSeam, Eb as FileResultBlobStore, Ec as refine, Ed as kernelPromptRegistry, Ef as ReservationFloor, Ei as graphRegistry, El as TrajectoryReport, Em as createSteerableSandboxSession, En as VERIFY_TAIL_CHARS, Eo as OpenSandboxRunPromptOptions, Ep as CoordinationMcpHandle, Er as supervisorRunsRoot, Es as registryScopeAnalyst, Et as AgentEnvironmentCapabilities, Ev as InPlaceHarnessResult, Ex as ScopeProgressInput, Ey as PeerMailOutcome, F as ResourceLimit, FS as MountManifestEntry, F_ as PairwiseOptions, Fa as supervisorInstructions, Fc as StrategyResult, Fi as taskShapeDigest, Fl as DefinePersona, Fm as SharedBoxPlacement, Fn as withUntrackedArtifacts, Fo as acquireSandbox, Fp as FileCoordinationLog, Fr as RemoteWorkerEvents, Fs as BenchmarkReport, Ft as AgentSessionStatus, Fv as LeadMessage, Fx as RetainedInteractiveRunHandle, Fy as peerMailTools, G as Settled, G_ as AnytimeReport, Ga as StructuralRolloutPolicy, Gb as SpawnModelSubstitution, Gc as HarvestFailure, Gd as isPreSpawnExecutorFailure, Gf as ResolveSupervisorTools, Gi as DesignerToolsEnv, Gl as ShapeContext, Gm as createAgentEnvironmentProviderRegistry, Gn as TrajectoryAnalysis, Go as startRetainedRunInEnvironment, Gp as PanelFinding, Gr as bestProfileFor, Gs as SuperviseOptionsForDispatch, Gt as PlacementInfo, Gv as RouteGate, Gx as captureHarnessTranscript, Gy as EventBus, H as NodeSnapshot, HS as Validator, H_ as renderLeaderboardMarkdown, Ha as RepairStop, Hb as ExecutorContext, Hc as strategyAuthorSystemPrompt, Hd as WorkerSpawnRetryAttempt, Hi as queueOf, Hl as RunPersonified, Hm as sharedWorkerClientName, Hn as jjWorkspace, Ho as reconnectRetainedRun, Hp as ContinuationPanelResult, Hr as provisionSupervisor, Hs as LoopDispatchOptions, Ht as ExecRequest, Hv as GateRequest, Hx as HarnessTranscriptUnavailable, Hy as BusEvent, I as ResourceSpend, IS as MountRecorder, I_ as PairwiseVerdict, Ia as CheckExecChannel, Ic as adaptiveRefine, Ii as GraphTriggerBinding, Il as DefinePersonaInput, Im as SharedBoxPlacementOptions, In as GitWorkspaceOptions, Io as S3PrivateCasStore, Ir as connectRemoteSupervisor, Is as BenchmarkStrategySummary, It as AgentTurnResult, Iv as ManagerReentryState, Ix as RetainedInteractiveStartMaterial, Iy as peerMailVerbNames, J as SpawnRejection, J_ as anytimeReport, Ja as canDisplace, Jb as ExecutorExecutionBinding, Jc as Observation, Jd as withWorkerSpawnRetry, Jf as SupervisorNodeContext, Jg as CompletionCheckContext, Ji as DelegateOptions, Jl as providerAsSandboxClient, Jm as ProviderLeafOut, Jn as parseWorkerToolTraceArtifact, Jo as reconnectRetainedInteractiveRun, Jp as DriverContractState, Jr as profileRegistry, Js as superviseDispatch, Jt as SandboxInstance, Jx as HarnessTranscriptMetadata, Jy as WatchTraceOptions, K as SpawnOpts, K_ as AnytimeStrategySummary, Ka as StructuralRolloutResult, Kb as AgentExecutionRef, Kc as HarvestReport, Kd as resolveWorkerSpawnRetry, Kf as SupervisorAgentDeps, Kg as CheckUnavailableError, Ki as GraphDesignerExtraTools, Kl as ShapeRegistry, Km as resolveAgentEnvironmentProvider, Kn as analyzeTrace, Ko as ClaimRetainedInteractiveControlOptions, Kp as VerdictSummary, Kr as loadProfile, Ks as loopCampaignDispatch, Kt as ResourceRequest, Kv as RouteMatch, Kx as harnessTranscriptArtifact, Ky as PublishOptions, L as Spend, LS as OutputAdapter, L_ as ProfileKeyOf, La as CheckOutcome, Lc as assertStrategyContract, Ld as SuperviseOptions, Lf as supervisorAgent, Li as DispatchReport, Ll as LoopShape, Lm as SharedBoxStats, Ln as Shell, Lo as S3PrivateCasStoreOptions, Lr as connectRemoteSupervisorControl, Ls as BenchmarkTaskRow, Lt as AnalystFinding, Lx as StartRetainedInteractiveRunOptions, M as Budget, MS as LoopTraceEmitter, M_ as Leaderboard, Ma as assessAuthoredProfile, Mc as Strategy, Md as superviseFleetCapabilities, Mf as ReserveOptions, Mi as recordGraphRun, Ml as WidenLineage, Mm as DEFAULT_SHARED_BOX_RESOURCES, Mn as CopyOptions, Mo as SandboxLineageHandle, Mr as RemoteSupervisorReader, Ms as BenchmarkCell, Mt as AgentProfile, Mx as RecoverRetainedInteractiveRunOptions, My as claimsAuthority, N as BudgetOverspend, NS as LoopTraceEvent, N_ as LeaderboardOptions, Na as defaultProfileRichnessThresholds, Nc as StrategyArtifacts, Nf as createBudgetPool, Ni as recordStoredGraphRun, Nl as WidenSpec, Nm as DEFAULT_SHARED_BOX_WORKERS, Nn as UntrackedCopyStats, No as createSandboxLineage, Nr as RemoteSupervisorSteerResult, Ns as BenchmarkConfig, Nt as AgentSession, Nv as CoordinationEvent, Nx as RetainedInteractiveAdmissionHook, Ny as createPeerMailbox, O as TRACE_ROOT_SCHEMA, OS as LoopSandboxPlacement, O_ as runCodeMode, Oa as AuthoredProfile, Ob as FileSpawnJournal, Oc as sample, Od as promptHandle, Of as ReservationRejection, Oh as ToolLoopToolCall, Oi as listGraphRuns, Ol as Verify, Om as Inbox, On as closingWorkerNote, Oo as SandboxRunAbortError, Op as CoordinationReadAccess, Or as writeWorkerSteer, Os as McpEndpoint, Ot as AgentEnvironmentProvider, Ov as WorktreeCommandResult, Ox as WorkerProgress, Oy as PeerMailRefusal, P as BudgetViolation, PS as LoopWinner, P_ as LeaderboardRow, Pa as profileRichnessFinding, Pc as StrategyCtx, Pd as workerFromBackend, Pi as storedGraphDigests, Pl as WinnerStrategy, Pm as SharedBoxCloseReceipt, Pn as copyUntrackedIntoClone, Po as AcquireOptions, Pp as CoordinationLog, Pr as RemoteSupervisorTree, Ps as BenchmarkLift, Pt as AgentSessionRef, Pv as EventAcknowledgement, Px as RetainedInteractiveEnvironmentInput, Py as isPeerMailEnvelope, Q as FleetYield, QS as NativeContextContinuationHandle, Q_ as renderAnytimeTable, Qa as defaultStructuralRolloutPolicy, Qb as MaterializedModelIdentity, Qc as ObserveOptions, Qg as mapExecutorResult, Qi as SpawnEvent, Ql as LeaderboardBenchmarkAdapter, Qm as ProviderPlacement, Qn as ValidateStoredGraphOptions, Qo as resolveSandboxClient, Qr as InteractiveWorkerKeyInput, Qs as defaultSelectWinner, Qt as VerifierEnvironmentOptions, Qx as RetainedHarnessTranscriptDescriptor, Qy as AnalystFindingEvent, R as SpendChannel, RS as RunProvenance, R_ as ScoreOf, Ra as CheckRunContext, Rc as authorStrategy, Ri as DispatchStopReason, Rl as Outcome, Rm as SharedWorkerIdentity, Rn as Workspace, Ro as createS3PrivateCasStore, Rp as ContinuationAppend, Rr as ProvisionSupervisorConnection, Rs as Environment, Rt as CheckpointRef, Rv as ToolOutcomeEvent, Rx as HarnessTranscriptArtifact, SC as StartRetainedRunInEnvironmentOptions, SS as LoopIterationEndedPayload, S_ as CodeModeTool, Sa as ChatTransportExecutorOptions, Sb as SpawnForestMissingTree, Sc as StrategyShotResult, Sd as delegatesWorkerBriefPrompt, Sf as BudgetPool, Sh as ToolSpec, Si as digestOfGraph, Sl as ScopeAnalyzeInput, Sm as DEFAULT_SANDBOX_STEERING_MAX_TURNS, Sn as attachWorker, So as strategyTournament, Sp as SupervisorFinalizer, Sr as readWorkerSteerAcknowledgement, Ss as RegistryAnalyzeProjection, Sx as ActivityLog, Sy as PEER_MAIL_WIRE_KEY, TS as LoopPlanDescription, T_ as CodeModeToolset, Ta as chatTransportExecutor, Tb as loadSpawnForest, Tc as depthStrategy, Td as formatPromptHandle, Tf as LeakedReservation, Th as ToolLoopCompaction, Ti as graphFromStored, Tl as TrajectoryNode, Tm as SteerableSandboxSession, Tn as NOTE_MAX_CHARS, To as OpenSandboxRunOptions, Tp as CoordinationControlAccess, Tr as supervisorRunDir, Ts as createScopeAnalyst, Tt as AgentEnvironment, Tx as ExecutorProgress, Ty as PeerMailLimits, U as NodeStatus, U_ as renderLeaderboardSvg, Ua as StructuralRolloutConfig, Ub as ExecutorFactory, Uc as HarvestCorpusOptions, Ud as WorkerSpawnRetryHooks, Uf as ObserveSupervisorNodeEvent, Ui as rollingDispatch, Ul as RunPersonifiedOptions, Un as localShell, Uo as recoverRetainedRun, Up as ContinuationPolicy, Ur as ProfileRegistryDir, Us as LoopOptionsForDispatch, Ut as ExecResult, Uv as JsonScalar, Ux as HarnessTranscriptUnavailableReason, Uy as BusRecord, V as NodeId, VS as ValidationCtx, V_ as renderLeaderboardHtml, Va as CheckSourceCtx, Vb as AgentSpec, Vc as strategyAuthorContract, Vd as ResolvedWorkerSpawnRetry, Vf as DriveHarness, Vi as freeSlots, Vl as PersonaExecutors, Vm as sharedBoxRefusal, Vn as gitWorkspace, Vo as PrivateCasNamespaceRetirement, Vp as ContinuationPanelInput, Vr as SupervisorCleanupReceipt, Vs as LoopCampaignDispatchOptions, Vt as CreateSandboxOptions, Vv as GateDecision, Vx as HarnessTranscriptFile, W as RetainedExecutionState, W_ as renderPairwiseMarkdown, Wa as StructuralRolloutMessage, Wb as ExecutorRegistry, Wc as HarvestError, Wd as WorkerSpawnRetryPolicy, Wi as DesignerRunGraphEnv, Wl as ShapeBudget, Wm as AgentEnvironmentProviderRegistry, Wn as runInWorkspace, Wo as startRetainedRun, Wp as ContinuationProfile, Wr as ProfileRunRecord, Ws as SuperviseDispatchOptions, Wt as ForkRequest, Wx as ReadableEnvironment, Wy as BusStats, X as SubtreeSummary, X_ as bestSoFar, Xa as composeCheckSources, Xb as ExecutorNodeContext, Xc as ObservationError, Xd as SuperviseRegistryTable, Xf as SupervisorToolDescriptor, Xg as ExecutorResultMapping, Xi as delegate, Xl as LeaderboardBenchScore, Xm as providerAsExecutor, Xn as createSupervisor, Xo as startRetainedInteractiveRun, Xp as DriverRetryPolicy, Xr as recordProfileRun, Xs as TERMINAL_DECISIONS, Xt as computeFindingId, Xx as HarnessTranscriptReadOptions, Xy as watchTrace, Y as SubtreeResult, Y_ as areaUnderCurve, Ya as compareCheckOutcomes, Yb as ExecutorMaterialization, Yc as ObservationAnalysis, Yd as SuperviseRegistry, Yf as SupervisorNodeContextSeed, Yg as DeliverableSpec, Yi as defaultDelegateBudget, Yl as DefinedLeaderboard, Ym as ProviderPromptOptions, Yn as DEFAULT_MAX_DEPTH, Yo as recoverRetainedInteractiveRun, Yp as DriverReentry, Yr as profileRunsForName, Ys as LocalSandboxClientOptions, Yt as WorkspaceRequest, Yx as HarnessTranscriptReadLimits, Yy as defaultToolDetectors, Z as TreeView, ZS as NativeContextContinuationExecution, Z_ as plateauLength, Za as defaultExtractCandidate, Zb as MaterializedExecutionIdentity, Zc as ObserveInput, Zd as SeatSegment, Zf as SupervisorToolInvocationContext, Zg as gateOnDeliverable, Zi as ResultBlobStore, Zl as LeaderboardBenchTask, Zm as UnavailablePausePolicy, Zn as createRootHandle, Zo as ResolveSandboxClientOptions, Zr as InteractiveWorkerEnvironment, Zs as TerminalDecision, Zt as makeFinding, Zv as QuestionDecision, Zx as RetainedHarnessTranscriptCapture, Zy as AnalystAssignmentRecord, _C as RetainedRunIntentAdmission, _S as ExecCtx, __ as harnessUsageIsEmpty, _a as WorkerEventCursor, _b as SqlAdapter, _c as AgenticTool, _d as PromptHandle, _f as ParkedRun, _h as extractLlmCallEvent, _i as GraphRunQuery, _l as PanelSpec, _m as CliWorktreeSeam, _n as WorktreePatchArtifact, _o as StrategyEvolutionConfig, _p as UNPROVEN_CONTINUITY, _r as WorkerSteerRequest, _s as pipeline, _u as IsolatedCheckOptions, _x as WorkerTraceUnavailableReason, aC as RetainedInteractiveEnvironmentAdmission, aS as ProviderWorkspaceCaptureReceipt, a_ as deterministicCompletion, aa as RootSegmentEntry, ab as AuthoredAnalystLimits, ac as LocalMcpMaterialization, ad as GraphNode, af as RunContext, ah as mcpSecretEnvMetadataKey, ai as ObservedSessionFacts, al as CorpusFilter, an as SurfaceReader, ao as structuralRollout, ap as StopRule, ar as SearchSpec, as as createPrivateCasArtifactPort, at as DriverAttemptRecord, au as defineLeaderboard, av as SandboxEvidenceContext, ax as ExecutorAccounting, bC as RetainedRunStartMaterial, bS as LoopEndedPayload, b_ as decodeHarnessUsage, ba as ChatCompletionsTransport, bb as SpawnForestEvent, bc as RunAgenticOptions, bd as analyzesFindingsReportPrompt, bf as RunParkingRecord, bh as RouterTransportConfig, bi as StoredGraph, bl as RenderCorpusToInstructionsOptions, bm as RouterToolsSeam, bn as WorkerInteractiveBinding, bo as TournamentRow, bp as FinalizeContext, br as legacySupervisorRunDir, bs as widen, bx as TraceSource, by as AUTHORITY_MARKERS, cC as RetainedRunAdmission, cS as ProviderWorkspaceRetentionContext, c_ as CodexForkBoundary, ca as Supervisor, cb as LocalHarnessResult, cc as McpSpawnFault, cd as RunGraphOptions, cf as createInMemoryRunContext, ch as secretEnvOfMcpServer, ci as graphRouteWhenSchema, cl as EqualKOnCostOptions, cn as fsSurfaceReader, co as AgentTurnInput, cp as noProgressFor, cr as assertSearchSpec, cs as definePersona, ct as DriverFailureClass, cu as DeclaredCheckStateCapture, cx as ExecutorResult, dC as RetainedRunCancellation, dS as ExecutorToolCall, d_ as CodexRolloutStoreReader, da as ReenteredWorkers, dc as connectStdioMcp, dd as runGraph, df as SupervisorSpanOptions, dh as SandboxToolPartState, di as LoadGraphFileOptions, dl as FanoutSynthesis, dm as createExecutorRegistry, dn as analystsFromRegistry, do as StreamAgentTurnOptions, dp as RunCancellation, dr as searchSpecDigest, ds as InMemoryCorpus, du as declaredCheckDeliverable, dx as HeldForContinuation, eC as ReconnectRetainedRunOptions, eS as retainHarnessTranscript, e_ as CompletionAnalyst, ea as TraceRootReceipt, eb as AnalystLensOutput, ec as InProcessOnPrompt, ed as AgentGraph, ef as SeatStage, eh as BridgeModelCredential, ei as InteractiveWorkerResult, el as observe, en as BoxSurfaceReaderOptions, eo as modelAuthoredChecks, ep as AllWorkersStalledOptions, er as FencedSqlRunContext, es as profileOptimizerModelCall, et as ProviderModelAttemptEvidence, eu as LeaderboardIterationInfo, ev as WaterfallReport, ex as ProfileMaterializationReceipt, ey as QuestionEscalationTarget, f as BackendErrorDetail, fC as RetainedRunDispatchedAdmission, fS as TokenUsageProvenance, f_ as CodexRolloutStoreRef, fa as ResumedKeyState, fc as materializeLocalMcp, ff as SupervisorSpanOutcome, fh as createSandboxToolPartState, fi as LoadedGraphFile, fl as FanoutWinnerSelector, fm as ExecutorConfig, fn as failuresAnalyst, fo as collectAgentTurn, fp as cancelRun, fr as settledToIteration, fs as renderCorpusToInstructions, fu as declaredCheckDigest, fx as HeldRelease, fy as DownMessageDeliveryAttempt, gC as RetainedRunHandle, gS as Driver, g_ as createCodexRolloutStoreReader, ga as WidenGate, gb as openSqlRunStore, gc as AgenticTask, gd as GraphRouteError, gh as SandboxUsageLedger, gi as GraphRegistryDir, gl as PanelJudge, gm as CliWorktreeBridgeSeam, gn as WorktreeCliExecutorOptions, go as EvolutionStrategy, gp as ReentryTaskInput, gr as WorkerSteerAcknowledgement, gs as panel, gt as MakeWorkerAgent, gu as IsolatedCheckBoxEvidence, gx as WorkerTraceEvidence, gy as MapItemFailurePolicy, hC as RetainedRunEventOptions, hS as DefaultVerdict, h_ as addHarnessUsage, ha as UnconfirmedTeardown, hb as SqlRunOwnershipError, hc as AgenticSurface, hd as defaultEdgeTraversalCap, hf as WorkerTraceResolver, hh as SandboxServedBackend, hi as GraphCorpusSummary, hl as Panel, hm as CliSeam, hn as worktreeFanout, ho as EvolutionReport, hp as ReentryContinuity, hr as WorkerCancellation, hs as loopUntil, hu as IsolatedCheckBox, hx as WorkerInteractiveUnavailableReason, hy as WorkerResumeContext, iC as RetainedInteractiveAdmission, iS as ProviderWorkspaceCaptureProvenance, i_ as completionAuthorizes, ia as RootSegment, ib as AuthoredAnalystDefinition, ic as HttpMcpServerSpec, id as GraphEdgeCapError, if as InMemoryRunContextOptions, ih as envKeyProvider, ii as GraphSessionObservationOptions, il as Corpus, in as SurfaceReadOutcome, io as selectBestIndex, ip as StopDecision, ir as SEARCH_SPEC_CORRELATION_KEY, is as PrivateCasOptions, it as SupervisedResult, iu as LeaderboardSpec, iv as runAgentRounds, ix as Executor, iy as QuestionRecord, j as TraceSummary, jS as LoopTokenUsage, j_ as Interval, ja as asAuthoredProfile, jb as contentAddress, jc as ShotSpec, jd as supervise, jf as ReservationTicket, ji as pickBestGraph, jl as WidenDecision, jm as PeerInboxMessage, jn as spendFromUsageEvents, jo as SandboxLineage, jr as RemoteSupervisorControl, js as sanitizeMcpToolSchema, jt as AgentEnvironmentSummary, jv as GitRunner, jx as ReconnectRetainedInteractiveRunOptions, jy as PeerMailboxOptions, k as TRACE_SUMMARY_SCHEMA, kS as LoopStartedPayload, k_ as AxisScoresOf, ka as ProfileRichness, kb as InMemoryResultBlobStore, kc as AuthorStrategyOptions, kf as ReservationShortfall, ki as loadGraph, kl as VerifySpec, km as InboxLease, kn as composeWorkerEvidence, ko as TurnResult, kr as RemoteSupervisorAgent, ks as McpEnvironmentOptions, kt as AgentEnvironmentQuery, kv as WorktreeHarnessResult, kx as createActivityLog, ky as PeerMailSendInput, lC as RetainedRunAdmissionHook, lS as ProviderWorkspaceRetentionPort, l_ as CodexRolloutIdentity, la as SupervisorOpts, lc as StdioMcpConnection, lf as withRunContext, lh as SandboxLeafOut, li as GraphFileResolutionError, ll as EqualKVerdict, ln as harvestSurfaceDiffs, lo as AgentTurnUsage, lp as plateau, lr as compileSearchSpec, ls as runPersonified, lt as DriverRepromptRefusal, lu as assertDeclaredCheck, lx as ExecutorTeardownWarning, ly as ContinuationInstruction, mC as RetainedRunEnvironmentAdmission, mS as AgentRunSpec, m_ as CodexStoreDelta, ma as Scope, mb as CodexExecutionPolicy, mc as AgenticRunResult, md as GraphFromStoredOptions, mf as createSupervisorSpanRecorder, mh as mapSandboxToolEvent, mi as GraphCorpusGroup, ml as LoopUntilState, mm as CliInPlaceSeam, mn as WorktreeFanoutOptions, mo as EvolutionAuthor, mp as readRunCancellation, mr as ScopeArgs, ms as flatWidenGate, mu as readDeclaredCheck, mv as createOtelExporter, mx as WorkerInteractiveSession, my as DownMessageEvent, nC as RecoverRetainedRunOptions, nS as ProviderNativeCapturePhase, n_ as CompletionPolicy, na as RecursiveReservationPolicy, nb as AnalystRunContext, nc as InProcessSandboxClientOptions, nd as EdgeTraversal, nf as subscriptionUsageLimitSignal, nh as KeyProvider, ni as InPlaceCliExecutorOptions, nl as AssertTraceDerivedFindings, nn as SurfaceDiff, no as resolveEntrySymbol, np as PlateauOptions, nr as createFencedSqlRunContext, ns as PrivateCasDurableStore, nt as RootProviderModelEvidence, nu as LeaderboardScenario, nv as createWaterfallCollector, nx as UnknownMaterializationReason, oC as RetainedInteractiveIntentAdmission, oS as ProviderWorkspaceCaptureResult, o_ as sentinelCompletion, oa as RootSignal, ob as DefinedAnalystRecord, oc as MaterializeLocalMcpOptions, od as GraphResult, of as RunContextLease, oh as resolveMcpServerLaunch, oi as graphFromSessionFacts, ol as CorpusRecord, on as WatchedSurface, oo as visibleCheckScore, op as allWorkersStalled, or as SearchSpecInputs, os as equalKOnCost, ot as DriverAttemptStop, ou as DeclaredCheck, ov as SandboxEvidenceReceipt, ox as ExecutorCancellation, oy as questionEscalationTargets, pC as RetainedRunEffect, pS as UsageEvent, p_ as CodexRolloutTurn, pa as ResumedWork, pb as CodexTokenUsage, pc as AgenticOptions, pd as GraphCommandCheck, pf as SupervisorSpanRecorder, ph as mapSandboxEvent, pi as loadGraphFile, pl as LoopUntilSpec, pm as createExecutor, pn as AuthoredHarness, po as streamAgentTurn, pp as readRunCancelRequest, pr as createScope, ps as fanout, pu as declaredCheckJudge, px as Runtime, py as DownMessageDeliveryOutcome, q as SpawnPrior, q_ as AnytimeTaskCurve, qa as VisibleCheck, qb as ExecutionBindingReceipt, qc as harvestCorpus, qd as retryPreSpawnRefusals, qg as CheckVerdict, qi as graphDesignerExtraTools, ql as ProviderAsSandboxClientOptions, qm as ProviderExecutorOptions, qn as WorkerToolTraceArtifact, qo as claimRetainedInteractiveControl, qp as admitContinuationPolicy, qr as pickBestProfile, qs as loopDispatch, qt as SandboxEvent, qv as RouteWhen, qx as persistHarnessTranscript, qy as createEventBus, rC as RecoverRetainedRunResult, rS as ProviderWorkspaceAttemptProvenance, r_ as CompletionVerdict, ra as RootHandle, rc as inProcessSandboxClient, rd as GraphEdge, rf as InMemoryRunContext, rh as ResolvedMcpServerLaunch, ri as createInPlaceCliExecutor, rl as CombinatorShape, rn as SurfaceReadBox, ro as sandboxCheckRunner, rp as ProgressView, rr as CompiledSearchSpec, rs as PrivateCasOffloadReport, rt as RootStreamReceipt, ru as LeaderboardScore, rv as RunAgentRoundsOptions, rx as EnvironmentTeardownReceipt, ry as QuestionPolicy, sC as RetainedInteractiveStartedAdmission, sS as ProviderWorkspaceEntryMetadata, s_ as stopSentinel, sa as SteerableRootHandle, sb as CodexExecutionEvidence, sc as McpListedTool, sd as GraphTopology, sf as createFileRunContext, sh as resolveSecretEnv, si as graphFileSchema, sl as EqualKArm, sn as boxSurfaceReader, so as AgentTurnBackend, sp as anyOf, sr as SearchSpecOwnedOption, ss as trajectoryReport, st as DriverContinuationRecord, su as DeclaredCheckPlacement, sv as SandboxEvidenceRetentionPort, sx as ExecutorCancellationRequest, tC as RecoverRetainedRunIntentOptions, tS as ProviderCheckpointCaptureContext, t_ as CompletionEvidence, ta as WorkspaceCheckpointMarker, tb as AnalystRegistry, tc as InProcessPromptCtx, td as EdgeDeliveryOutcome, th as BridgeSeam, ti as workerFromInteractiveProvider, tl as renderReport, tn as HarvestSurfaceDiffsOptions, to as officialChecksFromMeta, tp as NoProgressForOptions, tr as SqlRunContextOptions, ts as PrivateCasArtifactPort, tt as ProviderModelExecutionEvidence, tu as LeaderboardRunContext, tv as WaterfallSpan, tx as RootMaterialization, uC as RetainedRunCancelOptions, uS as ExecutorProgressEvent, u_ as CodexRolloutSession, ua as Agent, uc as StdioMcpServerSpec, ud as TraversalContinuity, uf as SupervisorSpanAttributes, uh as SandboxOutputMarker, ui as GraphFileSeat, ul as FanoutOptions, un as AnalystAuthoring, uo as CollectedAgentTurn, up as RunCancelRequest, ur as searchPresets, us as FileCorpus, ut as BlockedToolReport, uu as checkProgramDigest, ux as HeldEnvironment, vC as RetainedRunReplayPoint, vS as Iteration, v_ as readCodexRolloutSession, va as WorkerEventEntry, vb as materializeTreeView, vc as ArtifactHandle, vd as PromptRegistry, vf as RunParkedError, vh as sumSandboxUsage, vi as GraphRunRecord, vl as PanelVerdict, vm as ProviderSeam, vn as createWorktreeCliExecutor, vo as StrategyTournament, vp as composeReentryTask, vr as WriteWorkerSteerOptions, vs as selectValidWinner, vt as SettledWorker, vu as IsolatedCheckResult, vx as SessionMessageLike, vy as MapSpawnMarker, wS as LoopLineageOptions, w_ as CodeModeToolsOptions, wa as ChatWorkerSeamOptions, wb as SpawnForestTree, wc as breadthStrategy, wd as dumbContinuationPassPrompt, wf as BudgetReadout, wh as ToolLoopChat, wi as graphDigest, wl as SteerContext, wm as SteerableSandboxArgs, wn as EVIDENCE_MAX_CHARS, wo as OpenSandboxRunBeforeStartContext, wr as safeWorkerFile, ws as buildSteerContext, wt as WorkerSpawnContext, wx as DEFAULT_STALL_AFTER_MS, wy as PeerMailEvent, xC as RetainedRunTurnInput, xS as LoopIterationDispatchPayload, x_ as CodeModeStore, xa as ChatSessionStore, xb as SpawnForestInDoubtNode, xc as StrategyMessage, xd as createPromptRegistry, xf as readRunParking, xh as RouterRouting, xi as StoredGraphInput, xl as ScopeAnalyst, xm as SandboxSeam, xn as WorkerInteractiveProviderSource, xo as runStrategyEvolution, xp as FinalizerSettled, xr as readWorkerCancellation, xs as CreateScopeAnalystOptions, xx as createPushTraceSource, xy as DEFAULT_PEER_MAIL_LIMITS, yC as RetainedRunSnapshot, yS as LoopDecisionPayload, y_ as HarnessUsage, ya as WorkerEventPage, yb as SpawnForest, yc as CorpusReadbackOptions, yd as RegisteredPrompt, yf as RunParkingPolicy, yh as RouterResponseReceipt, yi as GraphSelection, yl as PipelineStage, ym as RouterSeam, yn as AttachWorkerOptions, yo as TournamentCell, yp as DeliveredOutput, yr as cancelWorker, ys as verify, yu as runIsolatedCheck, yx as ToolStepInput, yy as MapTraversalEvent, z as SpendGap, zS as SandboxClient, z_ as leaderboard, za as CheckRunner, zc as defineStrategy, zf as CoordinationToolFace, zi as DispatchUnit, zl as Persona, zm as sharedBoxPlacement, zn as WorkspaceCommit, zo as PrivateCasNamespaceInventory, zp as ContinuationEntry, zr as ProvisionSupervisorRequest, zs as printBenchmarkReport, zt as CheckpointRequest, zx as HarnessTranscriptCapture } from "./types-BfnQq-_k.js";
|
|
2
2
|
import { l as AgentCandidateWorkspaceArchiveLimits } from "./workspace-streams-Dq2Fzk3c.js";
|
|
3
3
|
import { c as assertProfileMaterializes } from "./profile-materialization-BRY22Oh8.js";
|
|
4
4
|
import { i as runTaskQueue, n as TaskQueueOptions, r as TaskQueueSettlement, t as TaskQueueEntry } from "./task-queue-kefGy79U.js";
|