mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Share RPC method constants
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
export const RPC_METHODS = {
|
||||
Permission: 'permission',
|
||||
Abort: 'abort',
|
||||
Switch: 'switch',
|
||||
SetSessionConfig: 'set-session-config',
|
||||
KillSession: 'killSession',
|
||||
HandoffLocal: 'handoff-local',
|
||||
SpawnHappySession: 'spawn-happy-session',
|
||||
StopSession: 'stop-session',
|
||||
StopRunner: 'stop-runner',
|
||||
ListMachineDirectory: 'list-directory',
|
||||
PathExists: 'path-exists',
|
||||
GitStatus: 'git-status',
|
||||
GitDiffNumstat: 'git-diff-numstat',
|
||||
GitDiffFile: 'git-diff-file',
|
||||
ReadFile: 'readFile',
|
||||
ReadGeneratedImage: 'readGeneratedImage',
|
||||
WriteFile: 'writeFile',
|
||||
ListDirectory: 'listDirectory',
|
||||
GetDirectoryTree: 'getDirectoryTree',
|
||||
UploadFile: 'uploadFile',
|
||||
DeleteUpload: 'deleteUpload',
|
||||
Ripgrep: 'ripgrep',
|
||||
Difftastic: 'difftastic',
|
||||
Bash: 'bash',
|
||||
ListSlashCommands: 'listSlashCommands',
|
||||
ListSkills: 'listSkills',
|
||||
ListCodexModels: 'listCodexModels',
|
||||
ListOpencodeModels: 'listOpencodeModels',
|
||||
ListOpencodeModelsForCwd: 'listOpencodeModelsForCwd'
|
||||
} as const
|
||||
|
||||
export type RpcMethod = typeof RPC_METHODS[keyof typeof RPC_METHODS]
|
||||
Reference in New Issue
Block a user