Skip to content

Commit acc2469

Browse files
committed
test: drop the unused prompt-size export
1 parent 26f07f0 commit acc2469

2 files changed

Lines changed: 3 additions & 43 deletions

File tree

‎packages/prompt-fragments/src/cards.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ BLINDERS ON: measure what the brief's success_criteria ask for, on the harness b
294294
over \`evals/capability\`) — the product non-TUI path (\`loadConfig\` +
295295
\`runExec\`) against fixture copies with \`verify.sh\` graders.
296296
- Latency spans: the PerfTrace harness under \`src/perf\` — \`rollup.ts\`
297-
(TTFT vs stream split) and \`attribution-report.ts\` (per-turn attribution).
297+
(TTFT vs stream split), \`assert-spans.ts\` (span assertions), and
298+
\`attribution-report.ts\` (per-turn attribution).
298299
- Read how they invoke before running; extend neither. If the harness
299300
cannot answer the brief, report that under Blockers — do not hand-roll
300301
a replacement harness.

‎src/agent/prompt-sizes.ts‎

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import {
66
packageToCapabilities,
77
} from "./directors/registry.js";
88
import { formatDirectorSystemPrompt } from "./directors/identity.js";
9-
import {
10-
DIRECTOR_IDS,
11-
type DirectorId,
12-
type DirectorPackage,
13-
} from "./directors/types.js";
9+
import { type DirectorId, type DirectorPackage } from "./directors/types.js";
1410
import { buildSubAgentSystemPrompt } from "./prompts.js";
1511
import { resolveModelFamilyPolicy } from "./model-family-policy.js";
1612
import { shouldApplyGrokAntiThrash } from "../subagent/provider-family.js";
@@ -178,40 +174,3 @@ export function assembleDirectorPrompt(
178174
? `${prompt}\n\n${policy.toolDisciplineRules}`
179175
: prompt;
180176
}
181-
182-
export interface DirectorPromptSize {
183-
directorId: DirectorId;
184-
family: PromptSizeFamily;
185-
chars: number;
186-
bytes: number;
187-
}
188-
189-
export function measureDirectorPrompt(
190-
directorId: DirectorId,
191-
family: PromptSizeFamily,
192-
): DirectorPromptSize {
193-
const prompt = assembleDirectorPrompt(directorId, family);
194-
return {
195-
directorId,
196-
family,
197-
chars: prompt.length,
198-
bytes: Buffer.byteLength(prompt, "utf8"),
199-
};
200-
}
201-
202-
/** Full per-director x per-family size table. */
203-
export function directorPromptSizeTable(): DirectorPromptSize[] {
204-
const rows: DirectorPromptSize[] = [];
205-
for (const directorId of DIRECTOR_IDS) {
206-
for (const family of [
207-
"default",
208-
"muse",
209-
"grok",
210-
"claude",
211-
"gpt",
212-
] as const) {
213-
rows.push(measureDirectorPrompt(directorId, family));
214-
}
215-
}
216-
return rows;
217-
}

0 commit comments

Comments
 (0)