bymle
7883da658b
fix(dev-server-block): stop blocking dev-<suffix> scripts ( #2179 )
...
`DEV_PATTERN`'s trailing `\b` treats a hyphen as a word boundary, so
`dev\b` matched the `dev` prefix of distinct npm scripts like
`dev-setup` / `dev-docs` / `dev-build` and blocked them with exit 2.
Replace the trailing `\b` with `(?![\w-])` so the dev server still
matches (`dev`, `dev;`, `dev:ssr`) but `dev-<suffix>` scripts pass.
Adds regression tests for dev-setup/dev-docs/dev-build (allowed) and
dev:ssr (still blocked).
Co-authored-by: bymle <229636660+bymle@users.noreply.github.com >
2026-06-07 13:25:39 +08:00
Affaan Mustafa
375d750b4c
fix: integrate recent hook and docs PRs ( #1905 )
...
Integrates useful changes from #1882 , #1884 , #1889 , #1893 , #1898 , #1899 , and #1903 :
- fix rule install docs to preserve language directories
- correct Ruby security command examples
- harden dev-server hook command-substitution parsing
- add Prisma patterns skill and catalog/package surfaces
- allow first-time protected config creation while blocking existing configs
- read cost metrics from Stop hook transcripts
- emit suggest-compact additionalContext on stdout
Co-authored-by: Jamkris <dltmdgus1412@gmail.com >
Co-authored-by: Levi-Evan <levishantz@gmail.com >
Co-authored-by: gaurav0107 <gauravdubey0107@gmail.com >
Co-authored-by: richm-spp <richard.millar@salarypackagingplus.com.au >
Co-authored-by: zomia <zomians@outlook.jp >
Co-authored-by: donghyeun02 <donghyeun02@gmail.com >
2026-05-14 21:37:28 -04:00
Affaan Mustafa
af51fcacb7
fix: resolve PR 371 portability regressions
2026-03-09 22:49:43 -07:00
Affaan Mustafa
440178d697
fix: harden hook portability and plugin docs
2026-03-09 22:49:43 -07:00
zzzhizhi
177dd36e23
fix(hooks): allow tmux-wrapped dev server commands ( #321 )
...
* fix(hooks): fix shell splitter redirection/escape bugs, extract shared module
- Fix single & incorrectly splitting redirection operators (&>, >&, 2>&1)
- Fix escaped quotes (\", \') not being handled inside quoted strings
- Extract splitShellSegments into shared scripts/lib/shell-split.js
to eliminate duplication between hooks.json, before-shell-execution.js,
and pre-bash-dev-server-block.js
- Add comprehensive tests for shell splitting edge cases
* fix(hooks): handle backslash escapes outside quotes in shell splitter
Escaped operators like \&& and \; outside quotes were still being
treated as separators. Add escape handling for unquoted context.
2026-03-07 14:47:49 -08:00
Affaan Mustafa
48b883d741
feat: deliver v1.8.0 harness reliability and parity updates
2026-03-04 14:48:06 -08:00