Repository navigation
Conversation
omarchy-plugin-add runs `omarchy-hook plugin-added <id> <url>` right after the clone is moved into place, and omarchy-plugin-remove runs `omarchy-hook plugin-removed <id>` right after the plugin is deleted or moved aside. Both fire at the filesystem transition, before the shell rescan and before an added plugin is optionally enabled, so a later rescan or enable failure cannot leave the hook state stale. The rescan that follows is now best-effort (`omarchy-shell -q`), so an add with no running shell completes instead of reporting failure after the clone landed. Ships plugin-added.d and plugin-removed.d sample hooks, documents both events, and adds a scratch-HOME regression test for the events, their ordering, their absence on a failed operation, and headless add.
|
I trimmed the explanations out of the command bodies to match their existing terse style. The hook calls sit immediately after the clone is moved into place or the plugin is removed: those filesystem changes have already happened even if the following shell rescan (or optional enable) fails. The |
Tested commit Verification Summary
Verification output
|
Summary
plugin-added(manifest id and source URL) as soon as a clone is installed, andplugin-removed(id) as soon as a plugin is removed; both run before shell rescan so a later shell/enable failure does not lose the event.plugin addcan succeed before a fresh machine starts its shell.Verification
bash test/shell.d/plugin-lifecycle-hooks-test.sh— 9/9 pass./test/shellhas 15 failures and./test/clihas 1 failure, reproduced unchanged onorigin/quattro(environmental/baseline).This allows user hooks to keep a portable source list for marketplace plugins without overriding Omarchy commands.