Restore agent hook opt-out controls (#2778)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import type { CommandSpec } from '../args'
|
||||
import { GLOBAL_FLAGS } from '../args'
|
||||
|
||||
export const AGENT_HOOK_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
path: ['agent', 'hooks', 'status'],
|
||||
summary: 'Show whether Orca-managed agent status hooks are enabled',
|
||||
usage: 'orca agent hooks status [--json]',
|
||||
allowedFlags: [...GLOBAL_FLAGS],
|
||||
examples: ['orca agent hooks status', 'orca agent hooks status --json']
|
||||
},
|
||||
{
|
||||
path: ['agent', 'hooks', 'off'],
|
||||
summary: 'Disable Orca-managed agent status hooks and remove local hook entries',
|
||||
usage: 'orca agent hooks off [--json]',
|
||||
allowedFlags: [...GLOBAL_FLAGS],
|
||||
examples: ['orca agent hooks off']
|
||||
},
|
||||
{
|
||||
path: ['agent', 'hooks', 'on'],
|
||||
summary: 'Enable Orca-managed agent status hooks',
|
||||
usage: 'orca agent hooks on [--json]',
|
||||
allowedFlags: [...GLOBAL_FLAGS],
|
||||
examples: ['orca agent hooks on']
|
||||
}
|
||||
]
|
||||
@@ -6,6 +6,7 @@ import { CORE_COMMAND_SPECS } from './core'
|
||||
import { ORCHESTRATION_COMMAND_SPECS } from './orchestration'
|
||||
import { COMPUTER_COMMAND_SPECS } from './computer'
|
||||
import { ENVIRONMENT_COMMAND_SPECS } from './environment'
|
||||
import { AGENT_HOOK_COMMAND_SPECS } from './agent-hooks'
|
||||
|
||||
export const COMMAND_SPECS: CommandSpec[] = [
|
||||
...CORE_COMMAND_SPECS,
|
||||
@@ -14,5 +15,6 @@ export const COMMAND_SPECS: CommandSpec[] = [
|
||||
...BROWSER_ADVANCED_COMMAND_SPECS,
|
||||
...ORCHESTRATION_COMMAND_SPECS,
|
||||
...COMPUTER_COMMAND_SPECS,
|
||||
...AGENT_HOOK_COMMAND_SPECS,
|
||||
...ENVIRONMENT_COMMAND_SPECS
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user