Files
claude-code-viewer/src/lib/conversation-schema/entry/SummaryEntrySchema.ts
d-kimsuon 9144f26084 feat: add support for file history snapshots in conversation components
- Introduced a new `FileHistorySnapshotConversationContent` component to handle rendering of file history snapshots.
- Updated `ConversationItem` and `ConversationList` to accommodate the new conversation type.
- Modified the conversation schema to include `FileHistorySnapshotEntrySchema` and related types.
- Enhanced the `useSidechain` hook to filter out file history snapshots from sidechain conversations.
- Adjusted the `SidechainConversationModal` to correctly handle the new conversation type.
2025-10-19 18:00:37 +09:00

10 lines
223 B
TypeScript

import { z } from "zod";
export const SummaryEntrySchema = z.object({
type: z.literal("summary"),
summary: z.string(),
leafUuid: z.string().uuid(),
});
export type SummaryEntry = z.infer<typeof SummaryEntrySchema>;