mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 09:07:40 +00:00
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
30 lines
969 B
TypeScript
30 lines
969 B
TypeScript
import type { OrcaHooks } from '../../shared/orca-yaml-hook-types'
|
|
import type { ExecutionHostId } from '../../shared/execution-host'
|
|
import type { SetupScriptImportCandidate } from '../../shared/setup-script-imports'
|
|
|
|
export type HooksApi = {
|
|
check: (args: { repoId: string; hostId?: ExecutionHostId }) => Promise<{
|
|
status?: 'ok' | 'error'
|
|
hasHooks: boolean
|
|
hooks: OrcaHooks | null
|
|
mayNeedUpdate: boolean
|
|
}>
|
|
inspectSetupScriptImports: (args: {
|
|
repoId: string
|
|
hostId?: ExecutionHostId
|
|
}) => Promise<SetupScriptImportCandidate[]>
|
|
readIssueCommand: (args: { repoId: string; hostId?: ExecutionHostId }) => Promise<{
|
|
status?: 'ok' | 'error'
|
|
localContent: string | null
|
|
sharedContent: string | null
|
|
effectiveContent: string | null
|
|
localFilePath: string
|
|
source: 'local' | 'shared' | 'none'
|
|
}>
|
|
writeIssueCommand: (args: {
|
|
repoId: string
|
|
content: string
|
|
hostId?: ExecutionHostId
|
|
}) => Promise<void>
|
|
}
|