@tangle-network/agent-eval 0.202.0 → 0.202.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/CHANGELOG.md +11 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/analyst/index.d.ts +5 -5
- package/dist/analyst/index.js +1 -1
- package/dist/benchmarks/index.d.ts +4 -4
- package/dist/benchmarks/index.js +1 -1
- package/dist/campaign/index.d.ts +5 -5
- package/dist/campaign/index.js +3 -3
- package/dist/{campaign-XXmOU0R0.js → campaign-Btk1yFfw.js} +130 -20
- package/dist/{campaign-XXmOU0R0.js.map → campaign-Btk1yFfw.js.map} +1 -1
- package/dist/{claude-jsonl-CxZZrDJ3.js → claude-jsonl-DoQJBCVR.js} +49 -15
- package/dist/claude-jsonl-DoQJBCVR.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/contract/index.d.ts +7 -7
- package/dist/contract/index.js +1 -1
- package/dist/{default-registry-D4qXx2aG.js → default-registry-6QOiTzqi.js} +2 -2
- package/dist/{default-registry-D4qXx2aG.js.map → default-registry-6QOiTzqi.js.map} +1 -1
- package/dist/{default-registry-D1rNS2yB.d.ts → default-registry-DesnDBvl.d.ts} +3 -3
- package/dist/{default-registry-D1rNS2yB.d.ts.map → default-registry-DesnDBvl.d.ts.map} +1 -1
- package/dist/{define-agent-eval-DQXLPqWc.d.ts → define-agent-eval-BDPV3ieA.d.ts} +5 -5
- package/dist/{define-agent-eval-DQXLPqWc.d.ts.map → define-agent-eval-BDPV3ieA.d.ts.map} +1 -1
- package/dist/{engine-DlKIzDKo.d.ts → engine-neXmlmTu.d.ts} +2 -2
- package/dist/{engine-DlKIzDKo.d.ts.map → engine-neXmlmTu.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/{exporters-XMCYJlqT.d.ts → exporters-DjCu6-lX.d.ts} +2 -2
- package/dist/{exporters-XMCYJlqT.d.ts.map → exporters-DjCu6-lX.d.ts.map} +1 -1
- package/dist/{exporters-Coiv-qO2.js → exporters-ISzpUY3e.js} +10 -4
- package/dist/{exporters-Coiv-qO2.js.map → exporters-ISzpUY3e.js.map} +1 -1
- package/dist/{hf-dataset-kjIfIK_e.js → hf-dataset-DdT7nNkf.js} +3 -3
- package/dist/{hf-dataset-kjIfIK_e.js.map → hf-dataset-DdT7nNkf.js.map} +1 -1
- package/dist/{index-D4pC7Tvd.d.ts → index-BCBpEreJ.d.ts} +18 -14
- package/dist/{index-D4pC7Tvd.d.ts.map → index-BCBpEreJ.d.ts.map} +1 -1
- package/dist/{index-giYkbitB.d.ts → index-BPCdNSMW.d.ts} +20 -5
- package/dist/index-BPCdNSMW.d.ts.map +1 -0
- package/dist/{index-Bi2fLITd.d.ts → index-BtcxmabC.d.ts} +4 -4
- package/dist/{index-Bi2fLITd.d.ts.map → index-BtcxmabC.d.ts.map} +1 -1
- package/dist/{index-D1ZX28rV.d.ts → index-CnKgaHKA.d.ts} +6 -6
- package/dist/{index-D1ZX28rV.d.ts.map → index-CnKgaHKA.d.ts.map} +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +3 -3
- package/dist/{integrity-uwK7XC-8.js → integrity-atFlABhR.js} +2 -2
- package/dist/{integrity-uwK7XC-8.js.map → integrity-atFlABhR.js.map} +1 -1
- package/dist/{jev-protocol-CpKI7XSu.d.ts → jev-protocol-BQLxwbqD.d.ts} +24 -7
- package/dist/jev-protocol-BQLxwbqD.d.ts.map +1 -0
- package/dist/jev-protocol.d.ts +2 -2
- package/dist/jev-protocol.js +19 -4
- package/dist/jev-protocol.js.map +1 -1
- package/dist/{jev-review-D4ynCORp.d.ts → jev-review-DX6MI_jq.d.ts} +2 -2
- package/dist/{jev-review-D4ynCORp.d.ts.map → jev-review-DX6MI_jq.d.ts.map} +1 -1
- package/dist/jev.d.ts +4 -4
- package/dist/jev.js +2 -2
- package/dist/{matrix--IZKROxD.d.ts → matrix-DRXCV70M.d.ts} +2 -2
- package/dist/{matrix--IZKROxD.d.ts.map → matrix-DRXCV70M.d.ts.map} +1 -1
- package/dist/{mint-C9Lojt1V.d.ts → mint-BFTrlq4t.d.ts} +10 -2
- package/dist/mint-BFTrlq4t.d.ts.map +1 -0
- package/dist/{mint-vlRckJEX.js → mint-DE6nQrX_.js} +26 -7
- package/dist/mint-DE6nQrX_.js.map +1 -0
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/rl.d.ts +6 -6
- package/dist/rl.js +3 -3
- package/dist/rollout/index.d.ts +5 -5
- package/dist/rollout/index.js +6 -6
- package/dist/{rollout-BUQixCoc.js → rollout-DTunVdJE.js} +41 -21
- package/dist/{rollout-BUQixCoc.js.map → rollout-DTunVdJE.js.map} +1 -1
- package/dist/{schema-B5LtYvn9.d.ts → schema-Bp8S20Ii.d.ts} +25 -5
- package/dist/{schema-B5LtYvn9.d.ts.map → schema-Bp8S20Ii.d.ts.map} +1 -1
- package/dist/{schema-DAMp77zB.js → schema-D08IIzui.js} +27 -1
- package/dist/{schema-DAMp77zB.js.map → schema-D08IIzui.js.map} +1 -1
- package/dist/search/index.d.ts +2 -2
- package/dist/{search-kernel-C9CXvFR7.d.ts → search-kernel-zI-rsHoG.d.ts} +2 -2
- package/dist/{search-kernel-C9CXvFR7.d.ts.map → search-kernel-zI-rsHoG.d.ts.map} +1 -1
- package/dist/{statistical-heldout-HswMvzbP.d.ts → statistical-heldout-BAbd_oXC.d.ts} +2 -2
- package/dist/{statistical-heldout-HswMvzbP.d.ts.map → statistical-heldout-BAbd_oXC.d.ts.map} +1 -1
- package/dist/{store-tool-spans-Dv9x4XYG.d.ts → store-tool-spans-CKRw7JHa.d.ts} +3 -3
- package/dist/{store-tool-spans-Dv9x4XYG.d.ts.map → store-tool-spans-CKRw7JHa.d.ts.map} +1 -1
- package/dist/supervisor-run/index.d.ts +2 -2
- package/dist/supervisor-run/index.d.ts.map +1 -1
- package/dist/supervisor-run/index.js +22 -14
- package/dist/supervisor-run/index.js.map +1 -1
- package/dist/{tool-groups-BY1MdSIE.d.ts → tool-groups-V23aGP_g.d.ts} +2 -2
- package/dist/tool-groups-V23aGP_g.d.ts.map +1 -0
- package/dist/{trace-questions-DnqdmwyV.d.ts → trace-questions-B-Wf0W3Q.d.ts} +2 -2
- package/dist/{trace-questions-DnqdmwyV.d.ts.map → trace-questions-B-Wf0W3Q.d.ts.map} +1 -1
- package/dist/trace-repair/index.d.ts +1 -1
- package/dist/traces.d.ts +2 -2
- package/dist/{types-DfvQOe91.d.ts → types-BR1LLIxm.d.ts} +2 -2
- package/dist/{types-DfvQOe91.d.ts.map → types-BR1LLIxm.d.ts.map} +1 -1
- package/dist/{types-C4hH69a9.d.ts → types-BbiT5NPH.d.ts} +2 -2
- package/dist/{types-C4hH69a9.d.ts.map → types-BbiT5NPH.d.ts.map} +1 -1
- package/dist/{types-DRNlLbBR.d.ts → types-DUlbOCwL.d.ts} +2 -2
- package/dist/{types-DRNlLbBR.d.ts.map → types-DUlbOCwL.d.ts.map} +1 -1
- package/docs/campaign-coverage.md +20 -0
- package/docs/changes/jev-recorded-evidence.md +24 -0
- package/docs/jev-replay.md +50 -0
- package/docs/retained-dispatch.md +56 -0
- package/docs/rollout.md +3 -1
- package/package.json +1 -1
- package/dist/claude-jsonl-CxZZrDJ3.js.map +0 -1
- package/dist/index-giYkbitB.d.ts.map +0 -1
- package/dist/jev-protocol-CpKI7XSu.d.ts.map +0 -1
- package/dist/mint-C9Lojt1V.d.ts.map +0 -1
- package/dist/mint-vlRckJEX.js.map +0 -1
- package/dist/tool-groups-BY1MdSIE.d.ts.map +0 -1
|
@@ -29,21 +29,33 @@ async function findClaudeTranscripts(cwd, projectsDir = DEFAULT_CLAUDE_PROJECTS_
|
|
|
29
29
|
}
|
|
30
30
|
const isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
31
31
|
/** Parse transcript jsonl text into conversation lines. Non-conversation lines are dropped. */
|
|
32
|
-
function parseClaudeEntries(raw) {
|
|
32
|
+
function parseClaudeEntries(raw, onGap) {
|
|
33
33
|
const out = [];
|
|
34
|
-
for (const line of raw.split("\n")) {
|
|
34
|
+
for (const [index, line] of raw.split("\n").entries()) {
|
|
35
35
|
if (!line.trim()) continue;
|
|
36
|
-
|
|
36
|
+
const gap = (reason) => {
|
|
37
|
+
const detail = `line ${index + 1}: ${reason}`;
|
|
38
|
+
if (onGap) onGap(detail);
|
|
39
|
+
else throw new Error(`Claude transcript ${detail}`);
|
|
40
|
+
};
|
|
41
|
+
let parsed;
|
|
37
42
|
try {
|
|
38
|
-
|
|
39
|
-
if (!isRecord(parsed)) continue;
|
|
40
|
-
entry = parsed;
|
|
43
|
+
parsed = JSON.parse(line);
|
|
41
44
|
} catch {
|
|
45
|
+
gap("malformed JSON");
|
|
42
46
|
continue;
|
|
43
47
|
}
|
|
48
|
+
if (!isRecord(parsed)) {
|
|
49
|
+
gap("JSON value is not an object");
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
const entry = parsed;
|
|
44
53
|
if (entry.type !== "user" && entry.type !== "assistant") continue;
|
|
45
54
|
const message = entry.message;
|
|
46
|
-
if (!isRecord(message))
|
|
55
|
+
if (!isRecord(message)) {
|
|
56
|
+
gap("conversation message is missing");
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
47
59
|
out.push({
|
|
48
60
|
type: entry.type,
|
|
49
61
|
timestamp: typeof entry.timestamp === "string" ? entry.timestamp : null,
|
|
@@ -62,7 +74,11 @@ function blockText(content) {
|
|
|
62
74
|
}
|
|
63
75
|
/** Parse one transcript jsonl into canonical messages + usage totals. */
|
|
64
76
|
async function readClaudeTranscript(path, options = {}) {
|
|
65
|
-
|
|
77
|
+
const gaps = [];
|
|
78
|
+
return transcriptFromEntries(parseClaudeEntries(await readFile(path, "utf8"), (gap) => gaps.push(gap)), {
|
|
79
|
+
...options,
|
|
80
|
+
sourceGaps: gaps
|
|
81
|
+
});
|
|
66
82
|
}
|
|
67
83
|
/** The messages+usage projection of already-parsed entries. */
|
|
68
84
|
function transcriptFromEntries(entries, options = {}) {
|
|
@@ -74,6 +90,8 @@ function transcriptFromEntries(entries, options = {}) {
|
|
|
74
90
|
cacheRead: 0,
|
|
75
91
|
cacheWrite: 0
|
|
76
92
|
};
|
|
93
|
+
const gaps = [...options.sourceGaps ?? []];
|
|
94
|
+
let usageObserved = false;
|
|
77
95
|
let startedAt = null;
|
|
78
96
|
let endedAt = null;
|
|
79
97
|
let model = null;
|
|
@@ -118,11 +136,20 @@ function transcriptFromEntries(entries, options = {}) {
|
|
|
118
136
|
const apiId = typeof message.id === "string" ? message.id : null;
|
|
119
137
|
const continuesTurn = apiId !== null && apiId === lastAssistantApiId && lastAssistantIndex >= 0;
|
|
120
138
|
const msgUsage = message.usage;
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
139
|
+
if (!continuesTurn) {
|
|
140
|
+
usageObserved = true;
|
|
141
|
+
for (const [target, source] of [
|
|
142
|
+
["tokensIn", "input_tokens"],
|
|
143
|
+
["tokensOut", "output_tokens"],
|
|
144
|
+
["cacheRead", "cache_read_input_tokens"],
|
|
145
|
+
["cacheWrite", "cache_creation_input_tokens"]
|
|
146
|
+
]) {
|
|
147
|
+
const value = isRecord(msgUsage) ? msgUsage[source] : void 0;
|
|
148
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
|
|
149
|
+
usage[target] = null;
|
|
150
|
+
gaps.push(`assistant ${apiId ?? "without id"}: ${source} unavailable`);
|
|
151
|
+
} else if (usage[target] !== null) usage[target] += value;
|
|
152
|
+
}
|
|
126
153
|
}
|
|
127
154
|
const content = message.content;
|
|
128
155
|
if (!Array.isArray(content)) continue;
|
|
@@ -159,15 +186,22 @@ function transcriptFromEntries(entries, options = {}) {
|
|
|
159
186
|
lastAssistantApiId = apiId;
|
|
160
187
|
lastAssistantIndex = messages.length - 1;
|
|
161
188
|
}
|
|
189
|
+
if (!usageObserved) {
|
|
190
|
+
usage.tokensIn = null;
|
|
191
|
+
usage.tokensOut = null;
|
|
192
|
+
usage.cacheRead = null;
|
|
193
|
+
usage.cacheWrite = null;
|
|
194
|
+
}
|
|
162
195
|
return {
|
|
163
196
|
messages,
|
|
164
197
|
usage,
|
|
165
198
|
startedAt,
|
|
166
199
|
endedAt,
|
|
167
|
-
model
|
|
200
|
+
model,
|
|
201
|
+
gaps
|
|
168
202
|
};
|
|
169
203
|
}
|
|
170
204
|
//#endregion
|
|
171
205
|
export { readClaudeTranscript as a, parseClaudeEntries as i, claudeProjectSlug as n, transcriptFromEntries as o, findClaudeTranscripts as r, DEFAULT_CLAUDE_PROJECTS_DIR as t };
|
|
172
206
|
|
|
173
|
-
//# sourceMappingURL=claude-jsonl-
|
|
207
|
+
//# sourceMappingURL=claude-jsonl-DoQJBCVR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-jsonl-DoQJBCVR.js","names":[],"sources":["../src/rollout/readers/claude-jsonl.ts"],"sourcesContent":["/**\n * Backfill reader over Claude Code project transcripts\n * (~/.claude/projects/<cwd-slug>/<sessionId>.jsonl) → canonical\n * chat-with-tools messages plus per-session token usage.\n *\n * Transcript lines consumed: type:\"user\" (string content or content blocks —\n * text + tool_result) and type:\"assistant\" (content blocks — thinking, text,\n * tool_use; message.usage carries tokens). Sidechain lines (isSidechain=true,\n * subagent threads) are separate invocations and are excluded from the main\n * transcript. Everything else (queue-operation, attachment, last-prompt…) is\n * transport metadata, not conversation.\n */\n\nimport { readdir, readFile } from 'node:fs/promises'\nimport { homedir } from 'node:os'\nimport { join } from 'node:path'\nimport type { ChatMessage, ChatToolCall } from '../schema'\n\nexport const DEFAULT_CLAUDE_PROJECTS_DIR = join(homedir(), '.claude', 'projects')\n\n/** Claude Code's project-directory slug for a working directory. */\nexport function claudeProjectSlug(cwd: string): string {\n return cwd.replace(/[^a-zA-Z0-9-]/g, '-')\n}\n\nexport interface ClaudeTranscriptRef {\n sessionId: string\n path: string\n}\n\n/** Transcript files recorded for sessions launched from `cwd`. */\nexport async function findClaudeTranscripts(\n cwd: string,\n projectsDir: string = DEFAULT_CLAUDE_PROJECTS_DIR,\n): Promise<ClaudeTranscriptRef[]> {\n const dir = join(projectsDir, claudeProjectSlug(cwd))\n const names = await readdir(dir).catch(() => [])\n return names\n .filter((n) => n.endsWith('.jsonl'))\n .sort()\n .map((n) => ({ sessionId: n.replace(/\\.jsonl$/, ''), path: join(dir, n) }))\n}\n\nexport interface ClaudeUsageTotals {\n tokensIn: number | null\n tokensOut: number | null\n cacheRead: number | null\n cacheWrite: number | null\n}\n\nexport interface ClaudeTranscript {\n messages: ChatMessage[]\n usage: ClaudeUsageTotals\n /** Timestamp of the first conversation line; null = empty transcript. */\n startedAt: string | null\n endedAt: string | null\n model: string | null\n /** Every parse or usage gap retained beside this semantic projection. */\n gaps: string[]\n}\n\nconst isRecord = (v: unknown): v is Record<string, unknown> =>\n typeof v === 'object' && v !== null && !Array.isArray(v)\n\n/**\n * One conversation line of a transcript, still in Claude Code's own shape.\n *\n * This is the single line-level parse of the format. `readClaudeTranscript`\n * projects it to canonical messages + usage; the supervision-tree reader\n * (`src/supervisor-run/claude-code-reader.ts`) projects the SAME entries to\n * spawn/settle/steer instants. Two projections, one parser — a second\n * transcript parser is how the two views silently disagree.\n */\nexport interface ClaudeEntry {\n readonly type: 'user' | 'assistant'\n /** ISO instant of the line; null when the line carried none. */\n readonly timestamp: string | null\n /** The Anthropic message body (`role`, `content`, `model`, `usage`). */\n readonly message: Record<string, unknown>\n /** Claude Code's structured tool result, when the line carries one. */\n readonly toolUseResult: unknown\n /** True on subagent threads — a separate invocation, not this transcript's turn. */\n readonly isSidechain: boolean\n /** Subagent id Claude Code stamps on sidechain lines; null on main-thread lines. */\n readonly agentId: string | null\n}\n\n/** Parse transcript jsonl text into conversation lines. Non-conversation lines are dropped. */\nexport function parseClaudeEntries(raw: string, onGap?: (gap: string) => void): ClaudeEntry[] {\n const out: ClaudeEntry[] = []\n for (const [index, line] of raw.split('\\n').entries()) {\n if (!line.trim()) continue\n const gap = (reason: string): void => {\n const detail = `line ${index + 1}: ${reason}`\n if (onGap) onGap(detail)\n else throw new Error(`Claude transcript ${detail}`)\n }\n let parsed: unknown\n try {\n parsed = JSON.parse(line)\n } catch {\n gap('malformed JSON')\n continue\n }\n if (!isRecord(parsed)) {\n gap('JSON value is not an object')\n continue\n }\n const entry = parsed\n if (entry.type !== 'user' && entry.type !== 'assistant') continue\n const message = entry.message\n if (!isRecord(message)) {\n gap('conversation message is missing')\n continue\n }\n out.push({\n type: entry.type,\n timestamp: typeof entry.timestamp === 'string' ? entry.timestamp : null,\n message,\n toolUseResult: entry.toolUseResult,\n isSidechain: entry.isSidechain === true,\n agentId: typeof entry.agentId === 'string' ? entry.agentId : null,\n })\n }\n return out\n}\n\nexport interface ReadClaudeTranscriptOptions {\n /**\n * Read the sidechain (subagent) thread instead of skipping it. Subagent\n * transcripts under `<session>/subagents/agent-<id>.jsonl` are sidechain\n * lines end to end, so their usage is invisible without this.\n */\n readonly includeSidechain?: boolean\n /** Parser diagnostics from the retained source; used by the shared reader. */\n readonly sourceGaps?: readonly string[]\n}\n\nfunction blockText(content: unknown): string {\n if (typeof content === 'string') return content\n if (!Array.isArray(content)) return ''\n return content\n .filter(\n (b): b is Record<string, unknown> =>\n isRecord(b) && b.type === 'text' && typeof b.text === 'string',\n )\n .map((b) => b.text as string)\n .join('\\n')\n}\n\n/** Parse one transcript jsonl into canonical messages + usage totals. */\nexport async function readClaudeTranscript(\n path: string,\n options: ReadClaudeTranscriptOptions = {},\n): Promise<ClaudeTranscript> {\n const gaps: string[] = []\n const entries = parseClaudeEntries(await readFile(path, 'utf8'), (gap) => gaps.push(gap))\n return transcriptFromEntries(entries, { ...options, sourceGaps: gaps })\n}\n\n/** The messages+usage projection of already-parsed entries. */\nexport function transcriptFromEntries(\n entries: readonly ClaudeEntry[],\n options: ReadClaudeTranscriptOptions = {},\n): ClaudeTranscript {\n const wantSidechain = options.includeSidechain === true\n const messages: ChatMessage[] = []\n const usage: ClaudeUsageTotals = { tokensIn: 0, tokensOut: 0, cacheRead: 0, cacheWrite: 0 }\n const gaps = [...(options.sourceGaps ?? [])]\n let usageObserved = false\n let startedAt: string | null = null\n let endedAt: string | null = null\n let model: string | null = null\n // Claude Code writes one jsonl line PER CONTENT BLOCK of an API message,\n // repeating message.id and usage on each — merge blocks into one canonical\n // assistant turn and count usage once per API message id.\n let lastAssistantApiId: string | null = null\n let lastAssistantIndex = -1\n\n for (const entry of entries) {\n if (entry.isSidechain !== wantSidechain) continue\n const message = entry.message\n if (entry.timestamp !== null) {\n if (startedAt === null) startedAt = entry.timestamp\n endedAt = entry.timestamp\n }\n\n if (entry.type === 'user') {\n lastAssistantApiId = null\n lastAssistantIndex = -1\n const content = message.content\n if (typeof content === 'string') {\n messages.push({ role: 'user', content })\n continue\n }\n if (!Array.isArray(content)) continue\n // A user line may interleave tool_result blocks (answers to the prior\n // assistant tool_use) with plain text; preserve order.\n let userText = ''\n for (const block of content) {\n if (!isRecord(block)) continue\n if (block.type === 'tool_result' && typeof block.tool_use_id === 'string') {\n messages.push({\n role: 'tool',\n tool_call_id: block.tool_use_id,\n content:\n blockText(block.content) || (typeof block.content === 'string' ? block.content : ''),\n })\n } else if (block.type === 'text' && typeof block.text === 'string') {\n userText += (userText.length > 0 ? '\\n' : '') + block.text\n }\n }\n if (userText.length > 0) messages.push({ role: 'user', content: userText })\n continue\n }\n\n // assistant\n if (typeof message.model === 'string') model = message.model\n const apiId = typeof message.id === 'string' ? message.id : null\n const continuesTurn = apiId !== null && apiId === lastAssistantApiId && lastAssistantIndex >= 0\n const msgUsage = message.usage\n if (!continuesTurn) {\n usageObserved = true\n const fields = [\n ['tokensIn', 'input_tokens'],\n ['tokensOut', 'output_tokens'],\n ['cacheRead', 'cache_read_input_tokens'],\n ['cacheWrite', 'cache_creation_input_tokens'],\n ] as const\n for (const [target, source] of fields) {\n const value = isRecord(msgUsage) ? msgUsage[source] : undefined\n if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) {\n usage[target] = null\n gaps.push(`assistant ${apiId ?? 'without id'}: ${source} unavailable`)\n } else if (usage[target] !== null) {\n usage[target] += value\n }\n }\n }\n const content = message.content\n if (!Array.isArray(content)) continue\n let reasoning = ''\n let text = ''\n const toolCalls: ChatToolCall[] = []\n for (const block of content) {\n if (!isRecord(block)) continue\n if (\n block.type === 'thinking' &&\n typeof block.thinking === 'string' &&\n block.thinking.length > 0\n ) {\n reasoning += (reasoning.length > 0 ? '\\n' : '') + block.thinking\n } else if (block.type === 'text' && typeof block.text === 'string') {\n text += (text.length > 0 ? '\\n' : '') + block.text\n } else if (block.type === 'tool_use' && typeof block.id === 'string') {\n toolCalls.push({\n id: block.id,\n type: 'function',\n function: {\n name: typeof block.name === 'string' ? block.name : 'unknown',\n arguments: JSON.stringify(block.input ?? {}),\n },\n })\n }\n }\n if (reasoning.length === 0 && text.length === 0 && toolCalls.length === 0) continue\n if (continuesTurn) {\n const prev = messages[lastAssistantIndex]!\n if (text.length > 0) prev.content = prev.content === null ? text : `${prev.content}\\n${text}`\n if (reasoning.length > 0) {\n prev.reasoning_content =\n prev.reasoning_content === undefined\n ? reasoning\n : `${prev.reasoning_content}\\n${reasoning}`\n }\n if (toolCalls.length > 0) prev.tool_calls = [...(prev.tool_calls ?? []), ...toolCalls]\n continue\n }\n messages.push({\n role: 'assistant',\n content: text.length > 0 ? text : null,\n ...(reasoning.length > 0 ? { reasoning_content: reasoning } : {}),\n ...(toolCalls.length > 0 ? { tool_calls: toolCalls } : {}),\n })\n lastAssistantApiId = apiId\n lastAssistantIndex = messages.length - 1\n }\n\n if (!usageObserved) {\n usage.tokensIn = null\n usage.tokensOut = null\n usage.cacheRead = null\n usage.cacheWrite = null\n }\n return { messages, usage, startedAt, endedAt, model, gaps }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAkBA,MAAa,8BAA8B,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,YAAY,UAAU,IAAI,CAAC;EAC1D,CAAC;EACD,qBAAqB;EACrB,qBAAqB,SAAS,SAAS;CACzC;CAEA,IAAI,CAAC,eAAe;EAClB,MAAM,WAAW;EACjB,MAAM,YAAY;EAClB,MAAM,YAAY;EAClB,MAAM,aAAa;CACrB;CACA,OAAO;EAAE;EAAU;EAAO;EAAW;EAAS;EAAO;CAAK;AAC5D"}
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import { g as INSUFFICIENT_FROM, h as operatorYield } from "./search-kernel-Dpni
|
|
|
3
3
|
import { i as replaySearchLedgerText } from "./search-ledger-CXQPwdWz.js";
|
|
4
4
|
import { t as renderSearchSummary } from "./search-summary-C1nAHgkB.js";
|
|
5
5
|
import { c as hostedTenantFromEnv, g as SearchRunKindSchema, r as shipSearchLedger, t as SearchShipConflictError, u as SEARCH_LEDGER_BATCH_MAX_BYTES } from "./search-shipper-DhhofkDX.js";
|
|
6
|
-
import { i as runRolloutReleaseCli } from "./hf-dataset-
|
|
6
|
+
import { i as runRolloutReleaseCli } from "./hf-dataset-DdT7nNkf.js";
|
|
7
7
|
import { t as createChatClient } from "./chat-client-DUhWNQQS.js";
|
|
8
8
|
import { t as runAnalystBenchmarkCommand } from "./benchmark-command-DFs_i62N.js";
|
|
9
9
|
import { a as runRpcBatch, o as runRpcOnce, p as handleVersion, r as startServerAsync, s as buildOpenApi } from "./server-B4jMhqQn.js";
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as CostLedgerHandle } from "../cost-ledger-DbQdN3nO.js";
|
|
2
2
|
import { _ as ProposalFinding, i as AnalystFinding, v as ProposalFindingOrigin, x as makeProposalFinding } from "../types-CeDfCRXp.js";
|
|
3
3
|
import { A as createChatClient, T as CreateChatClientOpts, x as ChatClient } from "../types-C0bWoSKC.js";
|
|
4
|
-
import { $ as paretoSignificanceGate, G as BuildEvidenceVectorOptions, J as ParetoSignificanceGateOptions, K as EvidenceVector, Q as paretoPolicy, U as AxisEvidence, W as AxisVerdict, X as PromotionPolicy, Y as PromotionObjective, Z as buildEvidenceVector, q as ObjectiveSource } from "../statistical-heldout-
|
|
5
|
-
import { C as JudgeDimension, H as SurfaceProposer, M as OptimizerConfig, R as Scenario, S as JudgeConfig, V as SessionScript, _ as GateDecision, a as CampaignResult, b as GenerationRecord, c as CampaignTraceWriter, d as DispatchContext, f as DispatchFn, g as GateContribution, h as GateContext, i as CampaignCostMeter, j as MutableSurface, l as CodeSurface, m as GateCheckStatus, n as CampaignArtifactWriter, p as Gate, r as CampaignCellResult, t as CampaignAggregates, v as GateResult, w as JudgeScore, y as GenerationCandidate } from "../types-
|
|
6
|
-
import { $i as RunImprovementLoopOptions, $r as GepaOptimizationRecipe, Bi as ReferenceEquivalenceJudgeInput, Ci as compareOptimizationMethods, Dr as DefaultProductionGateOptions, Er as DefaultProductionGateCheck, Gi as runReferenceEquivalenceJudge, Gr as SkillOptOptimizationMethodConfig, Hi as ReferenceEquivalenceJudgeResult, Ji as llmJudge, Jr as skillOptOptimizationMethod, Ki as LlmJudgeDimension, Kr as SkillOptRunnerCommand,
|
|
7
|
-
import { Qt as inMemoryCampaignStorage, Yt as CampaignStorage, Zt as fsCampaignStorage } from "../search-kernel-
|
|
4
|
+
import { $ as paretoSignificanceGate, G as BuildEvidenceVectorOptions, J as ParetoSignificanceGateOptions, K as EvidenceVector, Q as paretoPolicy, U as AxisEvidence, W as AxisVerdict, X as PromotionPolicy, Y as PromotionObjective, Z as buildEvidenceVector, q as ObjectiveSource } from "../statistical-heldout-BAbd_oXC.js";
|
|
5
|
+
import { C as JudgeDimension, H as SurfaceProposer, M as OptimizerConfig, R as Scenario, S as JudgeConfig, V as SessionScript, _ as GateDecision, a as CampaignResult, b as GenerationRecord, c as CampaignTraceWriter, d as DispatchContext, f as DispatchFn, g as GateContribution, h as GateContext, i as CampaignCostMeter, j as MutableSurface, l as CodeSurface, m as GateCheckStatus, n as CampaignArtifactWriter, p as Gate, r as CampaignCellResult, t as CampaignAggregates, v as GateResult, w as JudgeScore, y as GenerationCandidate } from "../types-BR1LLIxm.js";
|
|
6
|
+
import { $i as RunImprovementLoopOptions, $r as GepaOptimizationRecipe, Bi as ReferenceEquivalenceJudgeInput, Ci as compareOptimizationMethods, Dr as DefaultProductionGateOptions, Er as DefaultProductionGateCheck, Fa as campaignSplitDigest, Gi as runReferenceEquivalenceJudge, Gr as SkillOptOptimizationMethodConfig, Hi as ReferenceEquivalenceJudgeResult, Ji as llmJudge, Jr as skillOptOptimizationMethod, Ki as LlmJudgeDimension, Kr as SkillOptRunnerCommand, Oa as FinalEvidencePolicy, Or as DefaultProductionRewardHackingOptions, Qi as transientDispatchFailure, Qr as GepaOptimizationMethodConfig, Ri as REFERENCE_EQUIVALENCE_INPUT_LIMITS, Si as OptimizationTokenUsage, Ti as ComparisonCost, Tr as heldOutGate, Ui as ReferenceEquivalenceScenario, Vi as ReferenceEquivalenceJudgeOptions, Wi as createReferenceEquivalenceJudge, Wr as composeGate, Xr as GepaEngineOptions, Yr as GepaAdaptiveEngineRun, Zr as GepaEngineRun, _a as runCampaign, _i as OptimizationMethodProvenance, ai as ExternalTextOptimizationMethodConfig, ci as ExternalOptimizationExample, di as CompareOptimizationMethodsOptions, ea as RunImprovementLoopResult, ei as GepaRunnerCommand, fa as RunEvalOptions, fi as OptimizationMethod, ga as RunCampaignOptions, ha as CampaignCellRetryPolicy, hi as OptimizationMethodInput, ii as externalTextOptimizationMethod, ka as FinalEvidenceUse, kr as defaultProductionGate, li as ExternalTextEvaluationResponse, ma as CampaignCellFailureReceipt, ni as OpenAICompatibleOptimizerModel, oi as ExternalTextOptimizerContext, pa as runEval, pi as OptimizationMethodComparison, qi as LlmJudgeOptions, qr as SkillOptTrainerConfig, ri as OptimizerModelBudget, si as ExternalTextOptimizerResult, ta as runImprovementLoop, ti as gepaOptimizationMethod, vi as OptimizationMethodResult, wr as HeldOutGateOptions, xi as OptimizationPackageSource, zi as REFERENCE_EQUIVALENCE_JUDGE_VERSION } from "../index-BPCdNSMW.js";
|
|
7
|
+
import { Qt as inMemoryCampaignStorage, Yt as CampaignStorage, Zt as fsCampaignStorage } from "../search-kernel-zI-rsHoG.js";
|
|
8
8
|
import { i as InMemoryOutcomeStore, n as FileSystemOutcomeStore, o as OutcomeStore, r as FileSystemOutcomeStoreOptions, t as DeploymentOutcome } from "../outcome-store-CNt4iZ67.js";
|
|
9
9
|
import { r as HostedTenant } from "../client-BzL9niqi.js";
|
|
10
10
|
import { _ as ReleaseSummary, a as summarizeExecution, c as ExecutionInsight, d as InsightReport, f as InterRaterInsight, g as Recommendation, h as OutcomeCorrelationInsight, i as analyzeRuns, l as FailureClassTally, m as LiftInsight, n as ExecutionReport, o as CostProvenanceSummary, p as JudgeInsight, r as SummarizeExecutionOptions, s as ExecutionErrorOutcomeCell, t as AnalyzeRunsOptions, u as FailureClusterInsight, v as ScalarDistribution, y as TokenUsageInsight } from "../analyze-runs-CPiKLJFs.js";
|
|
11
|
-
import { _ as SelfImproveMethodResult, a as DefinedAgentEval, c as SelfImproveMethodOptions, d as SelfImproveProposerOptions, f as SelfImproveProposerResult, g as SelfImproveMethodProvenance, h as selfImprove, i as DefineAgentEvalOptions, l as SelfImproveOptions, m as SelfImproveRunError, n as AgentEvalEvaluateOptions, o as defineAgentEval, p as SelfImproveResult, r as AgentEvalImproveOptions, s as SelfImproveBudget, t as AgentEvalAgent, u as SelfImproveProgressEvent } from "../define-agent-eval-
|
|
12
|
-
import { $ as FromRunRecordDirResult, A as CodeAgentSessionActionStatus, B as AgentTraceFile, C as fromOpenCodeSession, Ct as measuredComparisonFromCandidateExperiment, D as streamCodeAgentJsonlFile, Dt as sealCandidateExperiment, E as parseCodeAgentJsonlFile, Et as sealCandidateBenchmarkTask, F as CodeAgentSessionTerminalStatus, G as PartitionByAuthoringModelResult, H as AgentTraceRange, I as observeCodeAgentSession, J as EvalReportingSuiteInput, K as parseAgentTrace, L as AgentTraceContributor, M as CodeAgentSessionExecutionReceipt, N as CodeAgentSessionObservation, O as CodeAgentSessionAction, Ot as verifyCandidateExperiment, P as CodeAgentSessionSource, Q as FromRunRecordDirOptions, R as AgentTraceContributorType, S as fromKimiCodeSession, St as evaluatePairedMeasurements, T as parseCodeAgentJsonl, Tt as sealCandidateBenchmarkSuite, U as AgentTraceRecord, V as AgentTraceIndex, W as AuthoringProvenance, X as EvalReportingSuiteResult, Y as EvalReportingSuiteOptions, Z as evalReportingSuite, _ as CodeAgentSessionIntakeResult, _t as PairedMeasurement, a as FromFeedbackTableOptions, at as RunAgentProfileImprovementExperimentOptions, b as fromClaudeCodeSession, bt as RunCandidateExperimentOptions, c as CodeAgentStoreObservation, ct as runAgentProfileImprovementExperiment, d as CodeAgentStoreScope, dt as sealAgentProfileImprovementTask, et as RunRecordRejection, f as CodeAgentStoreSession, ft as verifyAgentProfileImprovementExperimentComparison, g as CodeAgentSessionIntakeOptions, gt as EvaluatePairedMeasurementsOptions, h as CodeAgentSessionDiagnostic, ht as CompareCandidateExperimentOptions, i as FeedbackTableRow, it as CompareAgentProfileImprovementExperimentOptions, j as CodeAgentSessionActionSurface, k as CodeAgentSessionActionKind, kt as verifyCandidateExperimentComparison, l as CodeAgentStoreRejection, lt as sealAgentProfileImprovementExperiment, m as CodeAgentJsonlLine, mt as CandidateExperimentRun, n as fromOtelSpans, nt as AgentProfileImprovementExperimentExecutionInput, o as FromFeedbackTableResult, ot as SealAgentProfileImprovementSuiteOptions, p as observeCodeAgentStore, pt as CandidateExperimentExecutionInput, q as partitionRunsByAuthoringModel, r as FeedbackTableMeta, rt as AgentProfileImprovementExperimentRun, s as fromFeedbackTable, st as measuredComparisonFromAgentProfileImprovementExperiment, t as FromOtelSpansOptions, tt as fromRunRecordDir, u as CodeAgentStoreRejections, ut as sealAgentProfileImprovementSuite, v as CodeAgentSessionMetrics, vt as PairedMeasurementAdapter, w as fromPiSession, wt as runCandidateExperiment, x as fromCodexSession, xt as SealCandidateBenchmarkSuiteOptions, y as ParsedCodeAgentJsonl, yt as PairedMeasurementEvaluation, z as AgentTraceConversation } from "../index-
|
|
13
|
-
import { n as buildDefaultAnalystRegistry, t as DefaultAnalystRegistryOptions } from "../default-registry-
|
|
11
|
+
import { _ as SelfImproveMethodResult, a as DefinedAgentEval, c as SelfImproveMethodOptions, d as SelfImproveProposerOptions, f as SelfImproveProposerResult, g as SelfImproveMethodProvenance, h as selfImprove, i as DefineAgentEvalOptions, l as SelfImproveOptions, m as SelfImproveRunError, n as AgentEvalEvaluateOptions, o as defineAgentEval, p as SelfImproveResult, r as AgentEvalImproveOptions, s as SelfImproveBudget, t as AgentEvalAgent, u as SelfImproveProgressEvent } from "../define-agent-eval-BDPV3ieA.js";
|
|
12
|
+
import { $ as FromRunRecordDirResult, A as CodeAgentSessionActionStatus, B as AgentTraceFile, C as fromOpenCodeSession, Ct as measuredComparisonFromCandidateExperiment, D as streamCodeAgentJsonlFile, Dt as sealCandidateExperiment, E as parseCodeAgentJsonlFile, Et as sealCandidateBenchmarkTask, F as CodeAgentSessionTerminalStatus, G as PartitionByAuthoringModelResult, H as AgentTraceRange, I as observeCodeAgentSession, J as EvalReportingSuiteInput, K as parseAgentTrace, L as AgentTraceContributor, M as CodeAgentSessionExecutionReceipt, N as CodeAgentSessionObservation, O as CodeAgentSessionAction, Ot as verifyCandidateExperiment, P as CodeAgentSessionSource, Q as FromRunRecordDirOptions, R as AgentTraceContributorType, S as fromKimiCodeSession, St as evaluatePairedMeasurements, T as parseCodeAgentJsonl, Tt as sealCandidateBenchmarkSuite, U as AgentTraceRecord, V as AgentTraceIndex, W as AuthoringProvenance, X as EvalReportingSuiteResult, Y as EvalReportingSuiteOptions, Z as evalReportingSuite, _ as CodeAgentSessionIntakeResult, _t as PairedMeasurement, a as FromFeedbackTableOptions, at as RunAgentProfileImprovementExperimentOptions, b as fromClaudeCodeSession, bt as RunCandidateExperimentOptions, c as CodeAgentStoreObservation, ct as runAgentProfileImprovementExperiment, d as CodeAgentStoreScope, dt as sealAgentProfileImprovementTask, et as RunRecordRejection, f as CodeAgentStoreSession, ft as verifyAgentProfileImprovementExperimentComparison, g as CodeAgentSessionIntakeOptions, gt as EvaluatePairedMeasurementsOptions, h as CodeAgentSessionDiagnostic, ht as CompareCandidateExperimentOptions, i as FeedbackTableRow, it as CompareAgentProfileImprovementExperimentOptions, j as CodeAgentSessionActionSurface, k as CodeAgentSessionActionKind, kt as verifyCandidateExperimentComparison, l as CodeAgentStoreRejection, lt as sealAgentProfileImprovementExperiment, m as CodeAgentJsonlLine, mt as CandidateExperimentRun, n as fromOtelSpans, nt as AgentProfileImprovementExperimentExecutionInput, o as FromFeedbackTableResult, ot as SealAgentProfileImprovementSuiteOptions, p as observeCodeAgentStore, pt as CandidateExperimentExecutionInput, q as partitionRunsByAuthoringModel, r as FeedbackTableMeta, rt as AgentProfileImprovementExperimentRun, s as fromFeedbackTable, st as measuredComparisonFromAgentProfileImprovementExperiment, t as FromOtelSpansOptions, tt as fromRunRecordDir, u as CodeAgentStoreRejections, ut as sealAgentProfileImprovementSuite, v as CodeAgentSessionMetrics, vt as PairedMeasurementAdapter, w as fromPiSession, wt as runCandidateExperiment, x as fromCodexSession, xt as SealCandidateBenchmarkSuiteOptions, y as ParsedCodeAgentJsonl, yt as PairedMeasurementEvaluation, z as AgentTraceConversation } from "../index-CnKgaHKA.js";
|
|
13
|
+
import { n as buildDefaultAnalystRegistry, t as DefaultAnalystRegistryOptions } from "../default-registry-DesnDBvl.js";
|
|
14
14
|
export { type AgentEvalAgent, type AgentEvalEvaluateOptions, type AgentEvalImproveOptions, type AgentProfileImprovementExperimentExecutionInput, type AgentProfileImprovementExperimentRun, type AgentTraceContributor, type AgentTraceContributorType, type AgentTraceConversation, type AgentTraceFile, type AgentTraceIndex, type AgentTraceRange, type AgentTraceRecord, type AnalystFinding, type AnalyzeRunsOptions, type AuthoringProvenance, type AxisEvidence, type AxisVerdict, type BuildEvidenceVectorOptions, type CampaignAggregates, type CampaignArtifactWriter, type CampaignCellFailureReceipt, type CampaignCellResult, type CampaignCellRetryPolicy, type CampaignCostMeter, type CampaignResult, type CampaignStorage, type CampaignTraceWriter, type CandidateExperimentExecutionInput, type CandidateExperimentRun, type ChatClient, type CodeAgentJsonlLine, type CodeAgentSessionAction, type CodeAgentSessionActionKind, type CodeAgentSessionActionStatus, type CodeAgentSessionActionSurface, type CodeAgentSessionDiagnostic, type CodeAgentSessionExecutionReceipt, type CodeAgentSessionIntakeOptions, type CodeAgentSessionIntakeResult, type CodeAgentSessionMetrics, type CodeAgentSessionObservation, type CodeAgentSessionSource, type CodeAgentSessionTerminalStatus, type CodeAgentStoreObservation, type CodeAgentStoreRejection, type CodeAgentStoreRejections, type CodeAgentStoreScope, type CodeAgentStoreSession, type CodeSurface, type CompareAgentProfileImprovementExperimentOptions, type CompareCandidateExperimentOptions, type CompareOptimizationMethodsOptions, type ComparisonCost, type CostLedgerHandle, type CostProvenanceSummary, type CreateChatClientOpts, type DefaultAnalystRegistryOptions, type DefaultProductionGateCheck, type DefaultProductionGateOptions, type DefaultProductionRewardHackingOptions, type DefineAgentEvalOptions, type DefinedAgentEval, type DeploymentOutcome, type DispatchFn as Dispatch, type DispatchContext, type EvalReportingSuiteInput, type EvalReportingSuiteOptions, type EvalReportingSuiteResult, type EvaluatePairedMeasurementsOptions, type EvidenceVector, type ExecutionErrorOutcomeCell, type ExecutionInsight, type ExecutionReport, type ExternalOptimizationExample, type ExternalTextEvaluationResponse, type ExternalTextOptimizationMethodConfig, type ExternalTextOptimizerContext, type ExternalTextOptimizerResult, type FailureClassTally, type FailureClusterInsight, type FeedbackTableMeta, type FeedbackTableRow, FileSystemOutcomeStore, type FileSystemOutcomeStoreOptions, type FinalEvidencePolicy, type FinalEvidenceUse, type FromFeedbackTableOptions, type FromFeedbackTableResult, type FromOtelSpansOptions, type FromRunRecordDirOptions, type FromRunRecordDirResult, type Gate, type GateCheckStatus, type GateContext, type GateContribution, type GateDecision, type GateResult, type GenerationCandidate, type GenerationRecord, type GepaAdaptiveEngineRun, type GepaEngineOptions, type GepaEngineRun, type GepaOptimizationMethodConfig, type GepaOptimizationRecipe, type GepaRunnerCommand, type HeldOutGateOptions, type HostedTenant, InMemoryOutcomeStore, type InsightReport, type InterRaterInsight, type JudgeConfig, type JudgeDimension, type JudgeInsight, type JudgeScore, type LiftInsight, type LlmJudgeDimension, type LlmJudgeOptions, type MutableSurface, type ObjectiveSource, type OpenAICompatibleOptimizerModel, type OptimizationMethod, type OptimizationMethodComparison, type OptimizationMethodInput, type OptimizationMethodProvenance, type OptimizationMethodResult, type OptimizationPackageSource, type OptimizationTokenUsage, type OptimizerConfig, type OptimizerModelBudget, type OutcomeCorrelationInsight, type OutcomeStore, type PairedMeasurement, type PairedMeasurementAdapter, type PairedMeasurementEvaluation, type ParetoSignificanceGateOptions, type ParsedCodeAgentJsonl, type PartitionByAuthoringModelResult, type PromotionObjective, type PromotionPolicy, type ProposalFinding, type ProposalFindingOrigin, REFERENCE_EQUIVALENCE_INPUT_LIMITS, REFERENCE_EQUIVALENCE_JUDGE_VERSION, type Recommendation, type ReferenceEquivalenceJudgeInput, type ReferenceEquivalenceJudgeOptions, type ReferenceEquivalenceJudgeResult, type ReferenceEquivalenceScenario, type ReleaseSummary, type RunAgentProfileImprovementExperimentOptions, type RunCampaignOptions, type RunCandidateExperimentOptions, type RunEvalOptions, type RunImprovementLoopOptions, type RunImprovementLoopResult, type RunRecordRejection, type ScalarDistribution, type Scenario, type SealAgentProfileImprovementSuiteOptions, type SealCandidateBenchmarkSuiteOptions, type SelfImproveBudget, type SelfImproveMethodOptions, type SelfImproveMethodProvenance, type SelfImproveMethodResult, type SelfImproveOptions, type SelfImproveProgressEvent, type SelfImproveProposerOptions, type SelfImproveProposerResult, type SelfImproveResult, SelfImproveRunError, type SessionScript, type SkillOptOptimizationMethodConfig, type SkillOptRunnerCommand, type SkillOptTrainerConfig, type SummarizeExecutionOptions, type SurfaceProposer, type TokenUsageInsight, analyzeRuns, buildDefaultAnalystRegistry, buildEvidenceVector, campaignSplitDigest, compareOptimizationMethods, composeGate, createChatClient, createReferenceEquivalenceJudge, defaultProductionGate, defineAgentEval, evalReportingSuite, evaluatePairedMeasurements, externalTextOptimizationMethod, fromClaudeCodeSession, fromCodexSession, fromFeedbackTable, fromKimiCodeSession, fromOpenCodeSession, fromOtelSpans, fromPiSession, fromRunRecordDir, fsCampaignStorage, gepaOptimizationMethod, heldOutGate, inMemoryCampaignStorage, llmJudge, makeProposalFinding, measuredComparisonFromAgentProfileImprovementExperiment, measuredComparisonFromCandidateExperiment, observeCodeAgentSession, observeCodeAgentStore, paretoPolicy, paretoSignificanceGate, parseAgentTrace, parseCodeAgentJsonl, parseCodeAgentJsonlFile, partitionRunsByAuthoringModel, runAgentProfileImprovementExperiment, runCampaign, runCandidateExperiment, runEval, runImprovementLoop, runReferenceEquivalenceJudge, sealAgentProfileImprovementExperiment, sealAgentProfileImprovementSuite, sealAgentProfileImprovementTask, sealCandidateBenchmarkSuite, sealCandidateBenchmarkTask, sealCandidateExperiment, selfImprove, skillOptOptimizationMethod, streamCodeAgentJsonlFile, summarizeExecution, transientDispatchFailure, verifyAgentProfileImprovementExperimentComparison, verifyCandidateExperiment, verifyCandidateExperimentComparison };
|
package/dist/contract/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { q as campaignSplitDigest } from "../campaign-evidence-Dt_rWPk2.js";
|
|
|
11
11
|
import { h as mapConcurrentRange } from "../journal-DvKCvjty.js";
|
|
12
12
|
import { C as inMemoryCampaignStorage, S as fsCampaignStorage } from "../external-optimizer-subprocess-CkyUUV7h.js";
|
|
13
13
|
import { n as SelfImproveRunError, r as selfImprove, t as defineAgentEval } from "../define-agent-eval-CJN9dTQw.js";
|
|
14
|
-
import { t as buildDefaultAnalystRegistry } from "../default-registry-
|
|
14
|
+
import { t as buildDefaultAnalystRegistry } from "../default-registry-6QOiTzqi.js";
|
|
15
15
|
import { t as extractUsage } from "../extract-usage-DFATEuWW.js";
|
|
16
16
|
import { i as makeProposalFinding } from "../types-CW5b90JH.js";
|
|
17
17
|
import { t as createChatClient } from "../chat-client-DUhWNQQS.js";
|
|
@@ -7,7 +7,7 @@ import { LLM_CONTEXT_TOKENS, LLM_INPUT_TOKEN_ATTR_KEYS, LLM_OUTPUT_TOKEN_ATTR_KE
|
|
|
7
7
|
import "./otlp-attributes-D9ptWaIJ.js";
|
|
8
8
|
import { r as makeFinding } from "./types-CW5b90JH.js";
|
|
9
9
|
import { t as executionTrackByLane } from "./execution-tracks-CpgFPpS5.js";
|
|
10
|
-
import { t as analyzeSupervisorRunIntegrity } from "./integrity-
|
|
10
|
+
import { t as analyzeSupervisorRunIntegrity } from "./integrity-atFlABhR.js";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
//#region src/feedback-trajectory-review.ts
|
|
@@ -2366,4 +2366,4 @@ function buildDefaultAnalystRegistry(options = {}) {
|
|
|
2366
2366
|
//#endregion
|
|
2367
2367
|
export { completedAnalystReviewQuality as _, KNOWLEDGE_POISONING_KIND_SPEC as a, validateAnalystReviewDecisions as b, FAILURE_MODE_KIND_SPEC as c, emitControlIntegrityFindings as d, behavioralAnalyst as f, assertUniqueFindingIds as g, analystRunDigest as h, DEFAULT_TRACE_ANALYST_KINDS as i, CONTROL_INTEGRITY_ANALYST as l, analystFindingDigest as m, AnalystRegistry as n, KNOWLEDGE_GAP_KIND_SPEC as o, deriveEfficiencyFindings as p, ExactAnalystRunExecutionError as r, IMPROVEMENT_KIND_SPEC as s, buildDefaultAnalystRegistry as t, ControlIntegrityAnalyst as u, readAnalystReview as v, snapshotAnalystRun as y };
|
|
2368
2368
|
|
|
2369
|
-
//# sourceMappingURL=default-registry-
|
|
2369
|
+
//# sourceMappingURL=default-registry-6QOiTzqi.js.map
|