mirror of
https://github.com/stablyai/orca.git
synced 2026-10-03 00:02:19 +00:00
* refactor(agent-hooks): drop the unused per-agent hook status IPC surface No renderer, CLI, or mobile caller invoked window.api.agentHooks.*Status; main already reads install status through MANAGED_AGENT_HOOK_STATUS_READERS. The 14 handlers had also drifted (kimiStatus existed in main/preload but not in AgentHooksApi or the web stub). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(tui-agent-config): default launchCmd and expectedProcess to detectCmd 32 of 36 entries repeated the binary name three times. Entries are now authored in a source form where both default to detectCmd and resolved once at module load, so TUI_AGENT_CONFIG keeps its exact shape for consumers (verified equal to the previous table). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(mobile): derive the agent order, labels, and picker from src/shared The mobile mirror (and its regex-over-desktop-source parity test) predates mobile importing runtime values from src/shared, which it now does in a dozen modules. Only the favicon-domain map stays mobile-local because desktop's lives in the renderer catalog next to bundled ?url imports. The parity test now imports the real registries and also checks label parity. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * test(web): align preload surface after hook IPC removal --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import type { OrcaHooks } from '../../shared/orca-yaml-hook-types'
|
|
import type { WorktreeSetupLaunch } from '../../shared/worktree/launch-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[]>
|
|
createIssueCommandRunner: (args: {
|
|
repoId: string
|
|
worktreePath: string
|
|
command: string
|
|
}) => Promise<WorktreeSetupLaunch>
|
|
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>
|
|
}
|