Files
orca/config/build-plugins/cli-main-entry-names.ts
Brennan Benson 8feab8456e feat(uninstall): remove Orca's hooks, CLI and services from Settings → Advanced and orca uninstall (#42889)
* feat(uninstall): add the uninstall cleanup contract shared by main and the settings UI

* feat(uninstall): remove Orca's OpenCode and Pi plugin files, also from the Windows uninstaller

Only files carrying Orca's marker are removed; OpenCode 1.x's TUI registration entry goes with them.

* feat(uninstall): main-process plan, steps and finish actions for Uninstall Orca

getPlan lists agent hooks, the orca command, orca serve units, ~/.orca/agent-hooks and SSH hosts
without changing anything; runStep removes one part and returns the updated plan.

* feat(cli): add orca uninstall, sharing the app's cleanup

* feat(uninstall): add the Uninstall Orca section to Settings → Advanced

* fix(uninstall): narrow plan agent ids with isTuiAgent instead of a cast

* fix(uninstall): show home-relative paths in the uninstall plan

* fix(uninstall): bound the SSH host sub-list with useBoundedHostRows

* fix(uninstall): async fs on the main thread and no type assertions in the cleanup

* fix(cli): bundle the uninstall cleanup modules the orca uninstall command loads

* fix(packaging): unpack the uninstall cleanup entries the packaged CLI loads

* fix(uninstall): call the orca command row the CLI on your PATH

* fix(uninstall): show hook scripts under the agents' hooks row

* fix(uninstall): remove hook scripts after the last agent retry and never show kept items as done

* fix(cli): give orca uninstall and agent hooks an app environment, and exit 1 on unfinished entries

Claude's remover resolves profile homes through it; without one the CLI reported Claude failed.

* fix(uninstall): drop Muse's Orca env-var allowlist and Claude's agent-view marker

Muse keeps names the user added. The agent-view marker only remembers opt-outs for a re-enable.

* fix(cli): bundle and unpack the node service environment orca uninstall loads

* fix(uninstall): settle the agent-view disable before deleting its marker, and report ok:false on unfinished --json runs
2026-11-15 23:29:03 -08:00

41 lines
2.1 KiB
TypeScript

// The CLI loads these paths after electron-vite replaces out/main.
export const CLI_MAIN_ENTRY_NAMES = [
'worker-threads/worker-thread-entry-path',
'worker-threads/worker-thread-spawn',
'agent-hooks/installation/managed-agent-hook-controls',
'gitlab/projects/project-ref-parser',
'orca-profiles/profile-index-store',
'claude-accounts/runtime-auth/keychain',
// The CLI checks a relocated runtime socket dir before it sends the auth token.
'daemon/endpoint/publication/daemon-socket-endpoint-path',
'skills/bundled-skill-install/bundled-skill-local-host',
'skills/bundled-skill-install/bundled-skill-installation',
'filesystem/macos-tree-clone',
'orcad/instance-lock/orcad-stale-lock-reclaim',
'orcad/profile-state/orcad-host-identity-reset',
'plugins/artifacts/plugin-artifact-validation',
'plugins/artifacts/plugin-content-hash',
'plugins/artifacts/plugin-host-call-validation',
'plugins/catalog/plugin-catalog-release-entry',
// `orca vm env doctor` runs its checks in the CLI process.
'environment-doctor/environment-doctor',
'environment-doctor/environment-doctor-host',
'persistence/profile-state/access/profile-state-access',
'persistence/profile-state/offline-access/profile-state-active-location',
'persistence/profile-state/database/profile-state-storage-classification',
'persistence/profile-state/offline-access/profile-state-offline-settings',
'persistence/profile-state/backup/profile-state-backup-path',
'persistence/profile-state/recovery/profile-state-database-recovery',
'persistence/profile-state/documents/profile-state-domain-reader',
'persistence/profile-state/recovery/profile-state-recovery-command',
'persistence/profile-state/legacy-json/profile-state-export-path',
'persistence/profile-state/legacy-json/profile-state-recovery',
'startup/network-compatibility/http1-compatibility-marker',
// `orca uninstall` runs the app's cleanup in the CLI process.
'uninstall/orca-install-identity',
'uninstall/orca-uninstall-cleanup',
'cli/cli-installer',
// The CLI's own app environment, so main-process removers can resolve profile paths.
'backend/node-service-environment'
] as const