test(agents): dedupe subscribe reasoning tag fixtures

This commit is contained in:
Peter Steinberger
2026-02-19 09:11:07 +00:00
parent 749edf25ca
commit 317b7d363d
3 changed files with 20 additions and 21 deletions

View File

@@ -7,6 +7,13 @@ type SubscribeEmbeddedPiSessionParams = Parameters<SubscribeEmbeddedPiSession>[0
type PiSession = Parameters<SubscribeEmbeddedPiSession>[0]["session"];
type OnBlockReply = NonNullable<SubscribeEmbeddedPiSessionParams["onBlockReply"]>;
export const THINKING_TAG_CASES = [
{ tag: "think", open: "<think>", close: "</think>" },
{ tag: "thinking", open: "<thinking>", close: "</thinking>" },
{ tag: "thought", open: "<thought>", close: "</thought>" },
{ tag: "antthinking", open: "<antthinking>", close: "</antthinking>" },
] as const;
export function createStubSessionHarness(): {
session: PiSession;
emit: (evt: unknown) => void;