Releases: mylee04/code-notify
Releases · mylee04/code-notify
v1.9.0
What's Changed
- Added Slack and Discord webhook delivery with
cn channels. - Added opt-in Codex and Claude usage alerts with 20%/10% threshold warnings.
- Added distinct daily (5h) and weekly (7d) token reset notifications with separate voice/sound controls.
- Added README voice samples for Codex daily and weekly reset announcements.
- Added regression coverage for channel delivery, usage thresholds, reset dedupe, and first-observation-at-100% behavior.
- Updated macOS/Linux install payloads and Windows installer/help/status surfaces for the new commands.
Verification
bash scripts/run_tests.sh- 26 passed, 0 failednpm publish --dry-run --access publicpwsh -NoProfile -Command '$null = [scriptblock]::Create((Get-Content scripts/install-windows.ps1 -Raw)); "OK"'git diff --check
v1.8.0
What's Changed
- Added
ask_useralert support for immediate ClaudeAskUserQuestionnotifications. - Preserved custom
PreToolUsehooks when enabling/removing code-notify's managedask_userhook. - Fixed Windows hook payload stdin decoding by setting UTF-8 input encoding before reading redirected input.
- Updated README/help output for the new alert type.
- Added regression coverage for
ask_userhook preservation.
Verification
bash scripts/run_tests.shnpm publish --dry-run --access public- isolated CLI smoke:
cn alerts add ask_userwith a temporary HOME git diff --check
v1.7.4
What's Changed
- Added Claude Code agent/team event alerts for SubagentStart, SubagentStop, TeammateIdle, TaskCreated, and TaskCompleted.
- Updated cn alerts to normalize aliases like subagent_stop and teammate-idle.
- Added event-specific rate limiting via CODE_NOTIFY_EVENT_RATE_LIMIT_SECONDS.
- Fixed npm package bin metadata so cn, cnp, and code-notify are preserved when published.
- Updated README/help docs and added regression coverage for Claude event hooks.
Verification
- bash scripts/run_tests.sh
- npm publish --dry-run --access public
v1.7.3
What's Changed
- Fix Claude install detection so arbitrary
Notification/Stopentries are no longer treated as code-notify being installed - Preserve unrelated existing Claude hooks when enabling or disabling code-notify
- Keep the Claude hook merge/remove behavior aligned across Unix and Windows runtimes
- Add regression coverage for false-positive detection and custom-hook preservation
v1.7.2
v1.7.1
What's New
- Move generated
last_notification_*andlast_stop_notificationfiles under~/.claude/notifications/state/ - Keep legacy root-level rate-limit files readable during upgrade so dedupe behavior does not break mid-update
- Align Unix and Windows runtimes around the same state-folder layout and add regression coverage for both paths
Install / Update
brew upgrade code-notifynpm install -g code-notify@latestcn updatev1.7.0
What's New
- Add macOS
click-throughcommands so notification clicks can activate the app you actually work in - Improve embedded terminal support for IDEs like PhpStorm by aligning runtime terminal-key lookup with saved mappings
- Add regression coverage for empty
TERM_PROGRAMcases and named add flows that should prefer the live runtime terminal key
Install / Update
brew upgrade code-notifynpm install -g code-notify@latestcn updatev1.6.12
What's Changed
- let project-scoped Claude hooks keep working even when the global disabled kill switch is present
- make project on/off/status consistently use .claude/settings.json while only cleaning up legacy hooks.json for compatibility
- add regression coverage for both project-scope behaviors
v1.6.11
What's Changed
- fix a Windows PowerShell regex bug that made
cn statusthrow while checking Codex config state - use a PowerShell/.NET-safe pattern when scanning Codex
config.tomlfor top-levelnotify - add regression coverage for the Windows status regex path, including a real
pwshexecution path when available
v1.6.10
What's Changed
- detect and repair stale Windows Claude hooks that still use old notify.ps1 notification/stop commands
- repair Claude hooks when settings live under alternate Windows paths like %USERPROFILE%/.config/.claude/settings.json
- update README and installation docs for the new Windows repair coverage