Files
rea/scripts/verify/clients/model-fixture.d.mts
morluto 4d4631ac94 test: harden verification fixtures and runtime coverage
Use exact discovered test identities, production MCP sessions and byte-exact setup backups. Add CLI signal cleanup coverage and independent Ghidra, Go and firmware verification assertions; prune redundant test configuration and preserve platform limits.
2026-10-14 08:59:27 +08:00

22 lines
625 B
TypeScript

export interface OpenAiModelFixture {
readonly baseUrl: string;
readonly requests: readonly { readonly path: string }[];
readonly probes: readonly {
readonly path: string | undefined;
readonly status: 404;
}[];
readonly failure: string | undefined;
close(): Promise<void>;
}
export function createOpenAiModelFixture(options: {
readonly directory: string;
readonly prefix: string;
readonly onRequest: () =>
| {
readonly role: "assistant";
readonly content: string;
}
| Promise<{ readonly role: "assistant"; readonly content: string }>;
}): Promise<OpenAiModelFixture>;