16 lines
384 B
TypeScript
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
|
|
}
|