@tangle-network/agent-runtime 10.0.11 → 10.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/{activation-B9c5eSla.d.ts → activation-BmdINnh5.d.ts} +2 -2
- package/dist/{activation-DikG4Nxq.js → activation-D36iRata.js} +2 -2
- package/dist/{activation-DikG4Nxq.js.map → activation-D36iRata.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/{delegate-BEBd1qxi.js → delegate-BKD8kvLL.js} +2 -2
- package/dist/{delegate-BEBd1qxi.js.map → delegate-BKD8kvLL.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-C80hsHbs.js → driver-control-acknowledgers-DwvOv6Hy.js} +7 -7
- package/dist/{driver-control-acknowledgers-C80hsHbs.js.map → driver-control-acknowledgers-DwvOv6Hy.js.map} +1 -1
- package/dist/durable-writer-thread.js +2 -2
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +11 -11
- package/dist/{failure-cause-DvYGlOEV.js → failure-cause-B2TBXIu-.js} +12 -4
- package/dist/{failure-cause-DvYGlOEV.js.map → failure-cause-B2TBXIu-.js.map} +1 -1
- package/dist/{graph-BP927YH9.js → graph-CWtb5mlR.js} +6 -6
- package/dist/{graph-BP927YH9.js.map → graph-CWtb5mlR.js.map} +1 -1
- package/dist/{improve-CaYHi8P-.js → improve-CWX6gC3Y.js} +5 -5
- package/dist/{improve-CaYHi8P-.js.map → improve-CWX6gC3Y.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +15 -15
- package/dist/{loop-runner-kGLe3PSM.d.ts → loop-runner-AQcWx9uu.d.ts} +2 -2
- package/dist/{loop-runner-9OJItBqr.js → loop-runner-TFs-O4vJ.js} +2 -2
- package/dist/{loop-runner-9OJItBqr.js.map → loop-runner-TFs-O4vJ.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +6 -6
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-m_kRnNQf.js → provision-supervisor-DyrYiZOg.js} +5 -5
- package/dist/{provision-supervisor-m_kRnNQf.js.map → provision-supervisor-DyrYiZOg.js.map} +1 -1
- package/dist/{result-blob-store-BMMzqpHa.js → result-blob-store-nBpCKwFg.js} +2 -2
- package/dist/{result-blob-store-BMMzqpHa.js.map → result-blob-store-nBpCKwFg.js.map} +1 -1
- package/dist/{run-cancellation-Bv7ooTJa.js → run-cancellation-D2fq7jx6.js} +2 -2
- package/dist/{run-cancellation-Bv7ooTJa.js.map → run-cancellation-D2fq7jx6.js.map} +1 -1
- package/dist/{run-reopen-KAnkEJV4.js → run-reopen-CHIodC9G.js} +6 -6
- package/dist/{run-reopen-KAnkEJV4.js.map → run-reopen-CHIodC9G.js.map} +1 -1
- package/dist/{run-state-Cd_Gvsjw.js → run-state-D-rOe5N8.js} +5 -5
- package/dist/{run-state-Cd_Gvsjw.js.map → run-state-D-rOe5N8.js.map} +1 -1
- package/dist/{runtime-CZc-cMrk.js → runtime-4UPWxjjq.js} +15 -15
- package/dist/{runtime-CZc-cMrk.js.map → runtime-4UPWxjjq.js.map} +1 -1
- package/dist/{search-executor-BHypQDeY.js → search-executor-B0NdgH8a.js} +4 -4
- package/dist/{search-executor-BHypQDeY.js.map → search-executor-B0NdgH8a.js.map} +1 -1
- package/dist/{server-D7Mq2Bn1.js → server-BPYmJQvn.js} +4 -4
- package/dist/{server-D7Mq2Bn1.js.map → server-BPYmJQvn.js.map} +1 -1
- package/dist/{settle-record-DMdeNy8A.js → settle-record-zm4ZDjhu.js} +2 -2
- package/dist/{settle-record-DMdeNy8A.js.map → settle-record-zm4ZDjhu.js.map} +1 -1
- package/dist/{structural-rollout-BfFEGl9Q.js → structural-rollout-uN5x6ioB.js} +22 -6
- package/dist/structural-rollout-uN5x6ioB.js.map +1 -0
- package/dist/{supervise-BX3fLhUS.js → supervise-aJRMwxRm.js} +8 -8
- package/dist/{supervise-BX3fLhUS.js.map → supervise-aJRMwxRm.js.map} +1 -1
- package/dist/{supervise-identity-QavM_M4r.js → supervise-identity-OkAQ-Ekg.js} +2 -2
- package/dist/{supervise-identity-QavM_M4r.js.map → supervise-identity-OkAQ-Ekg.js.map} +1 -1
- package/dist/{supervision-discovery-CFZnbNTB.js → supervision-discovery-CDpfasyS.js} +3 -3
- package/dist/{supervision-discovery-CFZnbNTB.js.map → supervision-discovery-CDpfasyS.js.map} +1 -1
- package/dist/{supervisor-CNE2g7Wz.js → supervisor-D88YZZKa.js} +20 -9
- package/dist/supervisor-D88YZZKa.js.map +1 -0
- package/dist/{supervisor-accounting-CgipDzYg.js → supervisor-accounting-Bnp1WYTX.js} +2 -2
- package/dist/{supervisor-accounting-CgipDzYg.js.map → supervisor-accounting-Bnp1WYTX.js.map} +1 -1
- package/dist/{supervisor-root-contract-Ca5xp0Vg.js → supervisor-root-contract-C6FYJprY.js} +3 -3
- package/dist/{supervisor-root-contract-Ca5xp0Vg.js.map → supervisor-root-contract-C6FYJprY.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{tool-server-Cb7LBW4e.js → tool-server-B_cNseNf.js} +2 -2
- package/dist/{tool-server-Cb7LBW4e.js.map → tool-server-B_cNseNf.js.map} +1 -1
- package/dist/{top-web-oDO4xhNE.js → top-web-C8MkFqf4.js} +7 -7
- package/dist/{top-web-oDO4xhNE.js.map → top-web-C8MkFqf4.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{types-CTeyeXgz.d.ts → types-Br9sWTWk.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/structural-rollout-BfFEGl9Q.js.map +0 -1
- package/dist/supervisor-CNE2g7Wz.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as registerDurableErrorClass, o as publishExclusiveDurableFile, u as writeAtomicDurableFile } from "./durable-file-pao7FijS.js";
|
|
2
|
-
import { X as FileSpawnJournal, n as terminalAccounting } from "./supervisor-accounting-
|
|
2
|
+
import { X as FileSpawnJournal, n as terminalAccounting } from "./supervisor-accounting-Bnp1WYTX.js";
|
|
3
3
|
import { t as isNoEntError } from "./jsonl-file-vE9H9UXa.js";
|
|
4
4
|
import { canonicalCandidateDigest, canonicalCandidateJson } from "@tangle-network/agent-interface";
|
|
5
5
|
import { resolve } from "node:path";
|
|
@@ -136,4 +136,4 @@ async function readFailureRecord(runDir) {
|
|
|
136
136
|
}
|
|
137
137
|
export { readFailureRecord as a, writeFailureRecord as c, parseSettleRecord as i, writeSettleRecord as l, SETTLE_RECORD_FILE as n, readSettleRecord as o, SettledRunDirectoryError as r, settleRecordDigest as s, FAILURE_RECORD_FILE as t };
|
|
138
138
|
|
|
139
|
-
//# sourceMappingURL=settle-record-
|
|
139
|
+
//# sourceMappingURL=settle-record-zm4ZDjhu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settle-record-DMdeNy8A.js","names":[],"sources":["../src/durable/settle-record.ts"],"sourcesContent":["import { readFile } from 'node:fs/promises'\nimport { resolve } from 'node:path'\nimport {\n type AgentProfile,\n canonicalCandidateDigest,\n canonicalCandidateJson,\n} from '@tangle-network/agent-interface'\nimport {\n publishExclusiveDurableFile,\n writeAtomicDurableFile,\n} from '../runtime/supervise/durable-file'\nimport { terminalAccounting } from '../runtime/supervise/supervisor-accounting'\nimport type { RootStreamReceipt, SupervisedResult } from '../runtime/supervise/types'\nimport { registerDurableErrorClass } from './durable-writer'\nimport { isNoEntError } from './jsonl-file'\nimport { FileSpawnJournal } from './spawn-journal/journal-store'\n\n/** Terminal evidence has one result per segment. Reopen archives that result byte for byte;\n * a failed attempt may resume because failure.json records only the latest throw.\n * Serialization, exclusive publication and validation stay with the record operations below.\n */\n\n/** The settle record: the returned `SupervisedResult` as canonical JSON, written once. */\nexport const SETTLE_RECORD_FILE = 'result.json'\n/** The failure record: the most recent throw, replaced by a later throw. */\nexport const FAILURE_RECORD_FILE = 'failure.json'\n\n/** What `failure.json` records about the most recent throw. */\nexport interface DurableFailureRecord {\n readonly runId: string\n readonly pursuitId: string\n /** ISO instant the throw was recorded. */\n readonly at: string\n readonly error: { readonly name: string; readonly message: string }\n /** The root's retained provider stream at the time of the throw, when the directory holds one:\n * a root that died mid-turn keeps what it had streamed, and this names it. */\n readonly rootStream?: RootStreamReceipt\n}\n\n/** The directory already holds a settle record, so the run it records must not be re-entered. */\nexport class SettledRunDirectoryError extends Error {\n readonly path: string\n /** The root of the recorded run, which is its `runId`. */\n readonly recordedRunId: string\n\n constructor(path: string, recordedRunId: string, requestedRunId: string) {\n super(\n recordedRunId === requestedRunId\n ? `supervisePursuit: ${path} records that run '${recordedRunId}' already settled; a settled run is not re-entered unless the call passes reopen: { operator, reason, operationId }`\n : `supervisePursuit: ${path} records that run '${recordedRunId}' already settled in this directory; a directory holds one settle record, so run '${requestedRunId}' needs its own runDir`,\n )\n this.name = 'SettledRunDirectoryError'\n this.path = path\n this.recordedRunId = recordedRunId\n }\n}\n\nregisterDurableErrorClass('SettledRunDirectoryError', SettledRunDirectoryError)\n\n/** A result member whose JSON form would misstate it. */\nclass UnrecordableSettleValueError extends TypeError {\n readonly path: string\n\n constructor(path: string, kind: string) {\n super(\n `supervisePursuit: result${path} is a ${kind}, which JSON cannot record faithfully; a settle record holds plain data only`,\n )\n this.name = 'UnrecordableSettleValueError'\n this.path = path\n }\n}\n\nconst PLAIN_PROTOTYPES = new Set<unknown>([Object.prototype, Array.prototype, null])\n\n/**\n * The JSON value of a result, or a throw naming the first member JSON would misstate. An\n * `undefined` member and a function are dropped, exactly as any JSON consumer drops them; a Map,\n * a Set, a Date, a typed array, or a class instance would be rewritten to `{}` or a string and\n * so is refused.\n */\nfunction jsonValue(result: unknown): unknown {\n const seen: unknown[] = []\n const visit = (value: unknown, path: string): void => {\n if (value === null || typeof value !== 'object') return\n if (value instanceof Map) throw new UnrecordableSettleValueError(path, 'Map')\n if (value instanceof Set) throw new UnrecordableSettleValueError(path, 'Set')\n if (value instanceof Date) throw new UnrecordableSettleValueError(path, 'Date')\n if (ArrayBuffer.isView(value) || value instanceof ArrayBuffer) {\n throw new UnrecordableSettleValueError(path, 'binary buffer')\n }\n if (!PLAIN_PROTOTYPES.has(Object.getPrototypeOf(value))) {\n throw new UnrecordableSettleValueError(path, 'class instance')\n }\n if (seen.includes(value)) throw new UnrecordableSettleValueError(path, 'cycle')\n seen.push(value)\n if (Array.isArray(value)) {\n for (const [index, item] of value.entries()) visit(item, `${path}[${index}]`)\n } else {\n for (const [key, item] of Object.entries(value)) visit(item, `${path}.${key}`)\n }\n seen.pop()\n }\n visit(result, '')\n return JSON.parse(JSON.stringify(result))\n}\n\n/**\n * The exact bytes `result.json` holds for a result: its JSON value serialized as RFC 8785\n * canonical JSON. Throws `UnrecordableSettleValueError` before any byte is written when the\n * result carries a value JSON would misstate.\n */\nexport function settleRecordJson(result: unknown): string {\n return canonicalCandidateJson(jsonValue(result))\n}\n\n/** The digest the settle record's bytes hash to: the candidate digest of the result's JSON value. */\nexport function settleRecordDigest(result: unknown): string {\n return canonicalCandidateDigest(jsonValue(result))\n}\n\n/** Publish `result.json` in the run directory once. Throws when a record is already there. */\nexport async function writeSettleRecord(runDir: string, result: unknown): Promise<string> {\n const path = resolve(runDir, SETTLE_RECORD_FILE)\n if (!publishExclusiveDurableFile(path, settleRecordJson(result))) {\n throw new Error(`supervisePursuit: ${path} already exists; a settle record is written once`)\n }\n return path\n}\n\n/** Replace `failure.json` in the run directory with the most recent throw. */\nexport async function writeFailureRecord(\n runDir: string,\n record: DurableFailureRecord,\n): Promise<string> {\n const path = resolve(runDir, FAILURE_RECORD_FILE)\n writeAtomicDurableFile(path, `${JSON.stringify(record, null, 2)}\\n`)\n return path\n}\n\n/**\n * Read the settle record a run directory holds, or `undefined` when it holds none. A file that\n * is present but is not a settle record is corruption and fails loud. `usage` annotates legacy\n * results by replay without changing their sealed fields; recorded usage always wins.\n */\nexport async function readSettleRecord(\n runDir: string,\n options: { readonly usage?: boolean; readonly requestedProfile?: AgentProfile } = {},\n): Promise<SupervisedResult<unknown> | undefined> {\n const recorded = await readTerminalFile(runDir, SETTLE_RECORD_FILE, parseSettleRecord)\n if (!recorded || !options.usage || recorded.usage) return recorded\n const { usage } = await terminalAccounting(\n new FileSpawnJournal(resolve(runDir, 'spawn-journal.jsonl')),\n recorded.tree.root,\n recorded.spentTotal.ms,\n options.requestedProfile,\n )\n return { ...recorded, usage }\n}\n\nasync function readTerminalFile<T>(\n runDir: string,\n file: string,\n parse: (text: string, path: string) => T,\n): Promise<T | undefined> {\n const path = resolve(runDir, file)\n try {\n return parse(await readFile(path, 'utf8'), path)\n } catch (error) {\n if (isNoEntError(error)) return undefined\n throw error\n }\n}\n\nfunction parseTerminalJson(text: string, path: string): unknown {\n try {\n return JSON.parse(text)\n } catch (cause) {\n throw new Error(`supervisePursuit: ${path} is not valid JSON`, { cause })\n }\n}\n\n/** Parse settle-record bytes already read, so a caller hashes and parses the same bytes. */\nexport function parseSettleRecord(text: string, path: string): SupervisedResult<unknown> {\n const parsed = parseTerminalJson(text, path)\n const record = parsed as { kind?: unknown; tree?: { root?: unknown } }\n if (\n typeof record !== 'object' ||\n record === null ||\n typeof record.kind !== 'string' ||\n typeof record.tree !== 'object' ||\n record.tree === null ||\n typeof record.tree.root !== 'string'\n ) {\n throw new Error(`supervisePursuit: ${path} is not a settle record (no kind or tree.root)`)\n }\n return parsed as SupervisedResult<unknown>\n}\n\n/** Read the most recent failure record, or `undefined` when the directory holds none. */\nexport async function readFailureRecord(runDir: string): Promise<DurableFailureRecord | undefined> {\n return readTerminalFile(runDir, FAILURE_RECORD_FILE, (text, path) => {\n const parsed = parseTerminalJson(text, path)\n const record = parsed as Partial<DurableFailureRecord>\n if (\n typeof record !== 'object' ||\n record === null ||\n typeof record.runId !== 'string' ||\n typeof record.pursuitId !== 'string' ||\n typeof record.at !== 'string' ||\n typeof record.error?.name !== 'string' ||\n typeof record.error.message !== 'string' ||\n (record.rootStream !== undefined &&\n (typeof record.rootStream.ref !== 'string' || typeof record.rootStream.events !== 'number'))\n ) {\n throw new Error(`supervisePursuit: ${path} is not a failure record`)\n }\n return parsed as DurableFailureRecord\n })\n}\n"],"mappings":";;;;;;;;;;;;AAuBA,MAAa,qBAAqB;;AAElC,MAAa,sBAAsB;;AAenC,IAAa,2BAAb,cAA8C,MAAM;CAClD;;CAEA;CAEA,YAAY,MAAc,eAAuB,gBAAwB;EACvE,MACE,kBAAkB,iBACd,qBAAqB,KAAK,qBAAqB,cAAc,uHAC7D,qBAAqB,KAAK,qBAAqB,cAAc,oFAAoF,eAAe,uBACtK;EACA,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,gBAAgB;CACvB;AACF;AAEA,0BAA0B,4BAA4B,wBAAwB;;AAG9E,IAAM,+BAAN,cAA2C,UAAU;CACnD;CAEA,YAAY,MAAc,MAAc;EACtC,MACE,2BAA2B,KAAK,QAAQ,KAAK,6EAC/C;EACA,KAAK,OAAO;EACZ,KAAK,OAAO;CACd;AACF;AAEA,MAAM,mCAAmB,IAAI,IAAa;CAAC,OAAO;CAAW,MAAM;CAAW;AAAI,CAAC;;;;;;;AAQnF,SAAS,UAAU,QAA0B;CAC3C,MAAM,OAAkB,CAAC;CACzB,MAAM,SAAS,OAAgB,SAAuB;EACpD,IAAI,UAAU,QAAQ,OAAO,UAAU,UAAU;EACjD,IAAI,iBAAiB,KAAK,MAAM,IAAI,6BAA6B,MAAM,KAAK;EAC5E,IAAI,iBAAiB,KAAK,MAAM,IAAI,6BAA6B,MAAM,KAAK;EAC5E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,SAAS,YAC9B,OAAO,OAAO,MAAM,YAAY,YAC/B,OAAO,eAAe,KAAA,MACpB,OAAO,OAAO,WAAW,QAAQ,YAAY,OAAO,OAAO,WAAW,WAAW,WAEpF,MAAM,IAAI,MAAM,qBAAqB,KAAK,yBAAyB;EAErE,OAAO;CACT,CAAC;AACH"}
|
|
1
|
+
{"version":3,"file":"settle-record-zm4ZDjhu.js","names":[],"sources":["../src/durable/settle-record.ts"],"sourcesContent":["import { readFile } from 'node:fs/promises'\nimport { resolve } from 'node:path'\nimport {\n type AgentProfile,\n canonicalCandidateDigest,\n canonicalCandidateJson,\n} from '@tangle-network/agent-interface'\nimport {\n publishExclusiveDurableFile,\n writeAtomicDurableFile,\n} from '../runtime/supervise/durable-file'\nimport { terminalAccounting } from '../runtime/supervise/supervisor-accounting'\nimport type { RootStreamReceipt, SupervisedResult } from '../runtime/supervise/types'\nimport { registerDurableErrorClass } from './durable-writer'\nimport { isNoEntError } from './jsonl-file'\nimport { FileSpawnJournal } from './spawn-journal/journal-store'\n\n/** Terminal evidence has one result per segment. Reopen archives that result byte for byte;\n * a failed attempt may resume because failure.json records only the latest throw.\n * Serialization, exclusive publication and validation stay with the record operations below.\n */\n\n/** The settle record: the returned `SupervisedResult` as canonical JSON, written once. */\nexport const SETTLE_RECORD_FILE = 'result.json'\n/** The failure record: the most recent throw, replaced by a later throw. */\nexport const FAILURE_RECORD_FILE = 'failure.json'\n\n/** What `failure.json` records about the most recent throw. */\nexport interface DurableFailureRecord {\n readonly runId: string\n readonly pursuitId: string\n /** ISO instant the throw was recorded. */\n readonly at: string\n readonly error: { readonly name: string; readonly message: string }\n /** The root's retained provider stream at the time of the throw, when the directory holds one:\n * a root that died mid-turn keeps what it had streamed, and this names it. */\n readonly rootStream?: RootStreamReceipt\n}\n\n/** The directory already holds a settle record, so the run it records must not be re-entered. */\nexport class SettledRunDirectoryError extends Error {\n readonly path: string\n /** The root of the recorded run, which is its `runId`. */\n readonly recordedRunId: string\n\n constructor(path: string, recordedRunId: string, requestedRunId: string) {\n super(\n recordedRunId === requestedRunId\n ? `supervisePursuit: ${path} records that run '${recordedRunId}' already settled; a settled run is not re-entered unless the call passes reopen: { operator, reason, operationId }`\n : `supervisePursuit: ${path} records that run '${recordedRunId}' already settled in this directory; a directory holds one settle record, so run '${requestedRunId}' needs its own runDir`,\n )\n this.name = 'SettledRunDirectoryError'\n this.path = path\n this.recordedRunId = recordedRunId\n }\n}\n\nregisterDurableErrorClass('SettledRunDirectoryError', SettledRunDirectoryError)\n\n/** A result member whose JSON form would misstate it. */\nclass UnrecordableSettleValueError extends TypeError {\n readonly path: string\n\n constructor(path: string, kind: string) {\n super(\n `supervisePursuit: result${path} is a ${kind}, which JSON cannot record faithfully; a settle record holds plain data only`,\n )\n this.name = 'UnrecordableSettleValueError'\n this.path = path\n }\n}\n\nconst PLAIN_PROTOTYPES = new Set<unknown>([Object.prototype, Array.prototype, null])\n\n/**\n * The JSON value of a result, or a throw naming the first member JSON would misstate. An\n * `undefined` member and a function are dropped, exactly as any JSON consumer drops them; a Map,\n * a Set, a Date, a typed array, or a class instance would be rewritten to `{}` or a string and\n * so is refused.\n */\nfunction jsonValue(result: unknown): unknown {\n const seen: unknown[] = []\n const visit = (value: unknown, path: string): void => {\n if (value === null || typeof value !== 'object') return\n if (value instanceof Map) throw new UnrecordableSettleValueError(path, 'Map')\n if (value instanceof Set) throw new UnrecordableSettleValueError(path, 'Set')\n if (value instanceof Date) throw new UnrecordableSettleValueError(path, 'Date')\n if (ArrayBuffer.isView(value) || value instanceof ArrayBuffer) {\n throw new UnrecordableSettleValueError(path, 'binary buffer')\n }\n if (!PLAIN_PROTOTYPES.has(Object.getPrototypeOf(value))) {\n throw new UnrecordableSettleValueError(path, 'class instance')\n }\n if (seen.includes(value)) throw new UnrecordableSettleValueError(path, 'cycle')\n seen.push(value)\n if (Array.isArray(value)) {\n for (const [index, item] of value.entries()) visit(item, `${path}[${index}]`)\n } else {\n for (const [key, item] of Object.entries(value)) visit(item, `${path}.${key}`)\n }\n seen.pop()\n }\n visit(result, '')\n return JSON.parse(JSON.stringify(result))\n}\n\n/**\n * The exact bytes `result.json` holds for a result: its JSON value serialized as RFC 8785\n * canonical JSON. Throws `UnrecordableSettleValueError` before any byte is written when the\n * result carries a value JSON would misstate.\n */\nexport function settleRecordJson(result: unknown): string {\n return canonicalCandidateJson(jsonValue(result))\n}\n\n/** The digest the settle record's bytes hash to: the candidate digest of the result's JSON value. */\nexport function settleRecordDigest(result: unknown): string {\n return canonicalCandidateDigest(jsonValue(result))\n}\n\n/** Publish `result.json` in the run directory once. Throws when a record is already there. */\nexport async function writeSettleRecord(runDir: string, result: unknown): Promise<string> {\n const path = resolve(runDir, SETTLE_RECORD_FILE)\n if (!publishExclusiveDurableFile(path, settleRecordJson(result))) {\n throw new Error(`supervisePursuit: ${path} already exists; a settle record is written once`)\n }\n return path\n}\n\n/** Replace `failure.json` in the run directory with the most recent throw. */\nexport async function writeFailureRecord(\n runDir: string,\n record: DurableFailureRecord,\n): Promise<string> {\n const path = resolve(runDir, FAILURE_RECORD_FILE)\n writeAtomicDurableFile(path, `${JSON.stringify(record, null, 2)}\\n`)\n return path\n}\n\n/**\n * Read the settle record a run directory holds, or `undefined` when it holds none. A file that\n * is present but is not a settle record is corruption and fails loud. `usage` annotates legacy\n * results by replay without changing their sealed fields; recorded usage always wins.\n */\nexport async function readSettleRecord(\n runDir: string,\n options: { readonly usage?: boolean; readonly requestedProfile?: AgentProfile } = {},\n): Promise<SupervisedResult<unknown> | undefined> {\n const recorded = await readTerminalFile(runDir, SETTLE_RECORD_FILE, parseSettleRecord)\n if (!recorded || !options.usage || recorded.usage) return recorded\n const { usage } = await terminalAccounting(\n new FileSpawnJournal(resolve(runDir, 'spawn-journal.jsonl')),\n recorded.tree.root,\n recorded.spentTotal.ms,\n options.requestedProfile,\n )\n return { ...recorded, usage }\n}\n\nasync function readTerminalFile<T>(\n runDir: string,\n file: string,\n parse: (text: string, path: string) => T,\n): Promise<T | undefined> {\n const path = resolve(runDir, file)\n try {\n return parse(await readFile(path, 'utf8'), path)\n } catch (error) {\n if (isNoEntError(error)) return undefined\n throw error\n }\n}\n\nfunction parseTerminalJson(text: string, path: string): unknown {\n try {\n return JSON.parse(text)\n } catch (cause) {\n throw new Error(`supervisePursuit: ${path} is not valid JSON`, { cause })\n }\n}\n\n/** Parse settle-record bytes already read, so a caller hashes and parses the same bytes. */\nexport function parseSettleRecord(text: string, path: string): SupervisedResult<unknown> {\n const parsed = parseTerminalJson(text, path)\n const record = parsed as { kind?: unknown; tree?: { root?: unknown } }\n if (\n typeof record !== 'object' ||\n record === null ||\n typeof record.kind !== 'string' ||\n typeof record.tree !== 'object' ||\n record.tree === null ||\n typeof record.tree.root !== 'string'\n ) {\n throw new Error(`supervisePursuit: ${path} is not a settle record (no kind or tree.root)`)\n }\n return parsed as SupervisedResult<unknown>\n}\n\n/** Read the most recent failure record, or `undefined` when the directory holds none. */\nexport async function readFailureRecord(runDir: string): Promise<DurableFailureRecord | undefined> {\n return readTerminalFile(runDir, FAILURE_RECORD_FILE, (text, path) => {\n const parsed = parseTerminalJson(text, path)\n const record = parsed as Partial<DurableFailureRecord>\n if (\n typeof record !== 'object' ||\n record === null ||\n typeof record.runId !== 'string' ||\n typeof record.pursuitId !== 'string' ||\n typeof record.at !== 'string' ||\n typeof record.error?.name !== 'string' ||\n typeof record.error.message !== 'string' ||\n (record.rootStream !== undefined &&\n (typeof record.rootStream.ref !== 'string' || typeof record.rootStream.events !== 'number'))\n ) {\n throw new Error(`supervisePursuit: ${path} is not a failure record`)\n }\n return parsed as DurableFailureRecord\n })\n}\n"],"mappings":";;;;;;;;;;;;AAuBA,MAAa,qBAAqB;;AAElC,MAAa,sBAAsB;;AAenC,IAAa,2BAAb,cAA8C,MAAM;CAClD;;CAEA;CAEA,YAAY,MAAc,eAAuB,gBAAwB;EACvE,MACE,kBAAkB,iBACd,qBAAqB,KAAK,qBAAqB,cAAc,uHAC7D,qBAAqB,KAAK,qB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AAM,IAAI,MAAM,qBAAqB,KAAK,qBAAqB,EAAE,MAAM,CAAC;CAC1E;AACF;;AAGA,SAAgB,kBAAkB,MAAc,MAAyC;CACvF,MAAM,SAAS,kBAAkB,MAAM,IAAI;CAC3C,MAAM,SAAS;CACf,IACE,OAAO,WAAW,YAClB,WAAW,QACX,OAAO,OAAO,SAAS,YACvB,OAAO,OAAO,SAAS,YACvB,OAAO,SAAS,QAChB,OAAO,OAAO,KAAK,SAAS,UAE5B,MAAM,IAAI,MAAM,qBAAqB,KAAK,+CAA+C;CAE3F,OAAO;AACT;;AAGA,eAAsB,kBAAkB,QAA2D;CACjG,OAAO,iBAAiB,QAAQ,sBAAsB,MAAM,SAAS;EACnE,MAAM,SAAS,kBAAkB,MAAM,IAAI;EAC3C,MAAM,SAAS;EACf,IACE,OAAO,WAAW,YAClB,WAAW,QACX,OAAO,OAAO,UAAU,YACxB,OAAO,OAAO,cAAc,YAC5B,OAAO,OAAO,OAAO,YACrB,OAAO,OAAO,OAAO,SAAS,YAC9B,OAAO,OAAO,MAAM,YAAY,YAC/B,OAAO,eAAe,KAAA,MACpB,OAAO,OAAO,WAAW,QAAQ,YAAY,OAAO,OAAO,WAAW,WAAW,WAEpF,MAAM,IAAI,MAAM,qBAAqB,KAAK,yBAAyB;EAErE,OAAO;CACT,CAAC;AACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as captureReusableExecutorConfig, b as InMemorySpawnJournal, en as projectSandboxOutcome, n as createSupervisor, tn as readSandboxOutcome, v as withDriverExecutor, w as createExecutor, x as createExecutorRegistry, y as InMemoryResultBlobStore } from "./supervisor-
|
|
1
|
+
import { C as captureReusableExecutorConfig, b as InMemorySpawnJournal, en as projectSandboxOutcome, n as createSupervisor, tn as readSandboxOutcome, v as withDriverExecutor, w as createExecutor, x as createExecutorRegistry, y as InMemoryResultBlobStore } from "./supervisor-D88YZZKa.js";
|
|
2
2
|
import { c as profileModelExecutionSettings, g as observedModelMatchesDeclared, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-DTbTFyOG.js";
|
|
3
3
|
import { m as ValidationError, p as SessionMismatchError, r as BackendTransportError } from "./errors-DG8yufqX.js";
|
|
4
|
-
import { Fr as authoredProfileDigest, Jr as runtimeOwnedExecutorExecutionBinding, Rr as knownExecutionBindingReceipt, Yr as runtimeOwnedExecutorMaterialization, Zr as runtimeOwnedPendingExecutorMaterialization, _i as providerMessageText, ei as unknownExecutionBindingReceipt, gi as promptOptionsFromAgentTurnInput, hi as promptFromAgentTurnInput, ni as executableAgentProfileSnapshot, ti as unknownMaterializationReceipt, ui as awaitAbortable, zr as knownMaterializationReceipt } from "./supervisor-accounting-
|
|
5
|
-
import { I as executorFailure, ct as mapSandboxToolEvent, ft as terminalTextFromSandboxEvent, n as runtimeFailureCause, ot as createSandboxToolPartState, pt as canonicalStreamEventFromSandboxEvent, st as mapSandboxEvent, yt as createSandboxUsageLedger } from "./failure-cause-
|
|
4
|
+
import { Fr as authoredProfileDigest, Jr as runtimeOwnedExecutorExecutionBinding, Rr as knownExecutionBindingReceipt, Yr as runtimeOwnedExecutorMaterialization, Zr as runtimeOwnedPendingExecutorMaterialization, _i as providerMessageText, ei as unknownExecutionBindingReceipt, gi as promptOptionsFromAgentTurnInput, hi as promptFromAgentTurnInput, ni as executableAgentProfileSnapshot, ti as unknownMaterializationReceipt, ui as awaitAbortable, zr as knownMaterializationReceipt } from "./supervisor-accounting-Bnp1WYTX.js";
|
|
5
|
+
import { I as executorFailure, ct as mapSandboxToolEvent, ft as terminalTextFromSandboxEvent, n as runtimeFailureCause, ot as createSandboxToolPartState, pt as canonicalStreamEventFromSandboxEvent, st as mapSandboxEvent, yt as createSandboxUsageLedger } from "./failure-cause-B2TBXIu-.js";
|
|
6
6
|
import { o as armDeadlineTimer } from "./deadline-CySmJ_0S.js";
|
|
7
7
|
import { c as errorMessage, f as isAsyncIterable } from "./util-qsH5cC9S.js";
|
|
8
8
|
import { b as sha256Bytes$1 } from "./output-artifacts-AqkZ8lO2.js";
|
|
@@ -1262,15 +1262,20 @@ function terminalDurationMs(events, measuredWallMs) {
|
|
|
1262
1262
|
* `toolChoice` has no per-call channel at all — `routerInlineExecutor` reads it from
|
|
1263
1263
|
* `AgentProfile.model.metadata.toolChoice` — so a request may restate the profile's policy and
|
|
1264
1264
|
* never change it. The error names both sides, because declaring it on the profile is the fix.
|
|
1265
|
+
* `none` is the one choice that is meaningful without tools: it asks for a text-only completion,
|
|
1266
|
+
* so restating it on a tool-free request is accepted when the profile declares it too.
|
|
1265
1267
|
*/
|
|
1266
1268
|
function toolCarryingExecutor(binding, req) {
|
|
1267
1269
|
const tools = req.tools ?? [];
|
|
1268
1270
|
if (req.toolChoice !== void 0) {
|
|
1269
|
-
if (tools.length === 0) throw new Error(`${binding.context}: request sets toolChoice with no tools; tool choice is meaningful only with tools`);
|
|
1270
1271
|
if (typeof req.toolChoice !== "string") throw new Error(`${binding.context}: request toolChoice names one function; Runtime's router turn expresses only auto, required, or none`);
|
|
1271
1272
|
if (req.toolChoice !== binding.settings.toolChoice) throw new Error(`${binding.context}: request toolChoice ${JSON.stringify(req.toolChoice)} conflicts with AgentProfile.model.metadata.toolChoice ${JSON.stringify(binding.settings.toolChoice ?? null)}`);
|
|
1273
|
+
if (tools.length === 0 && req.toolChoice !== "none") throw new Error(`${binding.context}: request sets toolChoice ${JSON.stringify(req.toolChoice)} with no tools; only "none" is meaningful without tools`);
|
|
1274
|
+
}
|
|
1275
|
+
if (tools.length === 0) {
|
|
1276
|
+
assertBackendCarriesToolChoicePolicy(binding);
|
|
1277
|
+
return binding.executor;
|
|
1272
1278
|
}
|
|
1273
|
-
if (tools.length === 0) return binding.executor;
|
|
1274
1279
|
if (binding.executor.backend !== "router") throw new Error(`${binding.context}: backend ${JSON.stringify(binding.executor.backend)} cannot pass tools through; refusing a tool-carrying request rather than answering without its tools`);
|
|
1275
1280
|
const declared = binding.executor.tools;
|
|
1276
1281
|
if (declared !== void 0 && JSON.stringify(declared) !== JSON.stringify(tools)) throw new Error(`${binding.context}: request tools conflict with the tools already declared on the executor config`);
|
|
@@ -1279,6 +1284,17 @@ function toolCarryingExecutor(binding, req) {
|
|
|
1279
1284
|
tools
|
|
1280
1285
|
}, binding.context);
|
|
1281
1286
|
}
|
|
1287
|
+
/** The backends that lower `AgentProfile.model.metadata.toolChoice` onto a provider request. */
|
|
1288
|
+
const TOOL_CHOICE_CARRYING_BACKENDS = /* @__PURE__ */ new Set(["router", "router-tools"]);
|
|
1289
|
+
/**
|
|
1290
|
+
* Refuse a profile-declared `toolChoice` the injected executor cannot carry. A backend that
|
|
1291
|
+
* never reads the policy would run the completion without it, and the caller cannot tell a
|
|
1292
|
+
* policy-ignored answer from a policy-enforced one — the same contaminated evidence a dropped
|
|
1293
|
+
* tool array produces, so it is refused by name before any transport runs.
|
|
1294
|
+
*/
|
|
1295
|
+
function assertBackendCarriesToolChoicePolicy(binding) {
|
|
1296
|
+
if (binding.settings.toolChoice !== void 0 && !TOOL_CHOICE_CARRYING_BACKENDS.has(binding.executor.backend)) throw new Error(`${binding.context}: backend ${JSON.stringify(binding.executor.backend)} cannot carry AgentProfile.model.metadata.toolChoice ${JSON.stringify(binding.settings.toolChoice)}; refusing the call rather than silently dropping the policy`);
|
|
1297
|
+
}
|
|
1282
1298
|
/** Caller headers are a lowercase token map. Runtime overwrites its own connection headers later. */
|
|
1283
1299
|
function callerRequestHeaders(headers, context) {
|
|
1284
1300
|
if (headers === void 0) return void 0;
|
|
@@ -3056,4 +3072,4 @@ function structuralRollout(config = {}) {
|
|
|
3056
3072
|
}
|
|
3057
3073
|
export { defaultAnalystInstruction as A, InMemoryRuntimeSessionStore as B, optimizerMethod as C, runAgentic as D, refine as E, collectAgentTurn as F, nowIso as H, streamAgentTurn as I, createIterableBackend as L, renderReport as M, profileChatClient as N, sample as O, profileOptimizerModelCall as P, createSandboxPromptBackend as R, strategyAuthorSystemPrompt as S, depthStrategy as T, startOrResumeRuntimeSession as U, newRuntimeSession as V, touchSession as W, defineStrategy as _, defaultStructuralRolloutPolicy as a, sampleThenRefine as b, officialChecksFromMeta as c, selectBestIndex as d, structuralRollout as f, authorStrategy as g, assertStrategyContract as h, defaultExtractCandidate as i, observe as j, ObservationError as k, resolveEntrySymbol as l, adaptiveRefine as m, compareCheckOutcomes as n, filterAuthoredAsserts as o, visibleCheckScore as p, composeCheckSources as r, modelAuthoredChecks as s, canDisplace as t, sandboxCheckRunner as u, loadAuthoredStrategy as v, breadthStrategy as w, strategyAuthorContract as x, requestStrategySource as y, normalizeBackendStreamEvent as z };
|
|
3058
3074
|
|
|
3059
|
-
//# sourceMappingURL=structural-rollout-
|
|
3075
|
+
//# sourceMappingURL=structural-rollout-uN5x6ioB.js.map
|