Files
anomalyco_opencode/packages/session-ui/src/actions.ts
T

16 lines
384 B
TypeScript

import type { PromptFileAttachment } from "@opencode-ai/client/promise"
export type SessionUserComment = {
path: string
comment: string
selection?: {
startLine: number
endLine: number
}
}
export type SessionUserActions = {
openAttachment?: (file: PromptFileAttachment) => void
revert?: (input: { sessionID: string; messageID: string }) => Promise<void> | void
}