Imported from cartanova-ai/sonamu (
modules/hmr-hook/AGENTS.md). Install upstream withnpx skills add cartanova-ai/sonamu --skill hmr-hook. Copyright stays with the author.
Guide for Coding Agents - modules/hmr-hook
Inherits root rules from ../../AGENTS.md.
Package role
- Core HMR hook runtime module.
- Behavior regressions here can break hot-reload flow across dependent packages.
Required checks
mise exec -- pnpm --filter @sonamu-kit/hmr-hook typecheckmise exec -- pnpm --filter @sonamu-kit/hmr-hook lintmise exec -- pnpm --filter @sonamu-kit/hmr-hook testmise exec -- pnpm --filter @sonamu-kit/hmr-hook build
Testing policy
- Add regression tests for non-obvious runtime edge cases.
Cross-workspace gate
- For changes in this scope, root
mise run check(oxlint + oxfmt) must pass before handoff.