export * as Expected from "./session-message.js" // Partial expected values, not input fixtures. Keep each assertion's matcher and fields explicit. export const user = (text: Text) => ({ type: "user" as const, text }) export const text = (text: Text) => ({ type: "text" as const, text }) export const reasoning = (text: Text) => ({ type: "reasoning" as const, text }) export const assistant = (fields: Fields, content: Content) => ({ ...fields, type: "assistant" as const, content, }) export const completedTool = (identity: Identity, fields: Fields) => ({ ...identity, type: "tool" as const, state: { ...fields, status: "completed" as const }, }) export const failedTool = (identity: Identity, fields: Fields) => ({ ...identity, type: "tool" as const, state: { ...fields, status: "error" as const }, })