Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions orca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
# - The hook needs `node` on the GUI app's PATH (Orca runs it via non-login
# /bin/bash). It is guarded with `command -v node` so a missing node degrades
# to a no-op (the reap-on-next-start safety net then handles cleanup) instead
# of erroring.
# of erroring. The runner is invoked through the worktree-local bin rather
# than `npm exec` because the npm shim is often absent from that GUI PATH,
# which would make the stop fail silently behind `|| true` and leak the
# instance; the bin launcher is POSIX sh and needs only node.
scripts:
archive: |
command -v node >/dev/null 2>&1 && npm exec obsidian-e2e -- stop --worktree "$ORCA_WORKTREE_PATH" || true
command -v node >/dev/null 2>&1 && "$ORCA_WORKTREE_PATH/node_modules/.bin/obsidian-e2e" stop --worktree "$ORCA_WORKTREE_PATH" || true