Commit daaa7a8
committed
fix(cli): bin shim no longer overrides bare \
This was the load-bearing bug behind "demo data still showing": the
npm-shim at bin/enchanter.mjs was intercepting bare \`enchanter\` and
rewriting argv to \`['live', '--script', <path>]\` whenever scripts/
live.ts existed in the repo, regardless of whether Claude Code hooks
were installed. The Rust binary's default_command (which prefers
tail-of-real-hooks) never even got a chance to fire — argv arrived
with explicit \`live\` already set.
Two rounds of fixes to default_command in lib.rs were no-ops because
the shim was masking them. The fix is one-line: drop the
isCockpitDefault → live override. The Rust binary's default_command
is now the single source of truth for what bare \`enchanter\` does.
\`enchanter live\` (explicit) still works and still gets the
absolute script-path injection so monorepo-dev users can verify
the runtime end-to-end.enchanter\ to showcase1 parent 4356854 commit daaa7a8
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments