UNPKG

histoire

Version:

A fast story book powered by Vite

10 lines (9 loc) • 408 B
/** Pick scoped story identifiers without retaining any tool arguments. */ export function projectMcpUiTarget(input) { if (!input || typeof input !== 'object' || !('storyId' in input) || typeof input.storyId !== 'string') return; return { storyId: input.storyId, ...('variantId' in input && typeof input.variantId === 'string' ? { variantId: input.variantId } : {}), }; }