mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
* fix: persist review notes for folder workspaces * test: satisfy duplicate import lint
20 lines
632 B
TypeScript
20 lines
632 B
TypeScript
import { z } from 'zod'
|
|
|
|
export const DiffCommentSchema = z.object({
|
|
id: z.string(),
|
|
worktreeId: z.string(),
|
|
filePath: z.string(),
|
|
source: z.enum(['diff', 'markdown']).optional(),
|
|
selectedText: z.string().optional(),
|
|
startLine: z.number().int().positive().optional(),
|
|
lineNumber: z.number().int().positive(),
|
|
body: z.string(),
|
|
createdAt: z.number().finite(),
|
|
updatedAt: z.number().finite().optional(),
|
|
sentAt: z.number().finite().optional(),
|
|
scope: z.enum(['unstaged', 'staged', 'branch']).optional(),
|
|
oldPath: z.string().optional(),
|
|
diffIdentity: z.string().optional(),
|
|
side: z.literal('modified')
|
|
})
|