mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
* feat(cli): add orca host rm for saved SSH targets orca host rm --host ssh:<target-id> calls the runtime RPC ssh.removeTarget, the same removeSshTarget the Settings UI reaches, so the tombstone keeps the passive ~/.ssh/config import from adding the alias back. Also document how the import treats Match blocks and Include files. * fix(ssh): clear a removed target's live state and rename in main for every removal path Removing an SSH target through ssh.removeTarget (orca host rm, paired clients) left open tabs with stale reconnect state and kept the host's rename, because only the Settings dialogs cleaned up after their own IPC call. The shared removal mutation now drops the display-label override and tells the renderer, which clears the target's state once for all callers. Fixes #37949 * fix(ssh): clean up after a removed target in the teardown every removal ends in A recipe VM's cleanup removes its SSH target through removeRegisteredSshTarget directly, so the window kept that target's live state. The broadcast and the rename drop now run there, after the target is gone. Fixes #37949 * test(cli): keep host rm's retarget-flag refusal next to its other cases Its old file was removed on main. Fixes #37949 * refactor(cli): give the host, managed-server and VM handler groups their own module Keeps the handler manifest under the file-length limit. Fixes #37949 --------- Co-authored-by: Florin Timbuc <florin@sowild.design>
38 lines
1019 B
TypeScript
38 lines
1019 B
TypeScript
import type { HandlerGroup } from './handler-group-manifest'
|
|
|
|
// The machines Orca reaches: saved hosts and paired environments, the Orca servers it manages on
|
|
// them, and recipe VMs.
|
|
export const HOST_HANDLER_GROUPS: readonly HandlerGroup[] = [
|
|
{
|
|
name: 'environment',
|
|
keys: [
|
|
'host name',
|
|
'host list',
|
|
'host rm',
|
|
'environment add',
|
|
'environment list',
|
|
'environment show',
|
|
'environment rm'
|
|
],
|
|
load: async () => (await import('./handlers/environment.js')).ENVIRONMENT_HANDLERS
|
|
},
|
|
{
|
|
name: 'managed-server',
|
|
keys: [
|
|
'environment status',
|
|
'environment update',
|
|
'environment rollback',
|
|
'environment recover',
|
|
'environment stop',
|
|
'environment cancel-stop',
|
|
'environment forget'
|
|
],
|
|
load: async () => (await import('./handlers/managed-server.js')).MANAGED_SERVER_HANDLERS
|
|
},
|
|
{
|
|
name: 'vm',
|
|
keys: ['vm recipe doctor'],
|
|
load: async () => (await import('./handlers/vm.js')).VM_HANDLERS
|
|
}
|
|
]
|