Skip to content

Releases: mylee04/code-notify

v1.9.0

04 Jun 15:12

Choose a tag to compare

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 failed
  • npm publish --dry-run --access public
  • pwsh -NoProfile -Command '$null = [scriptblock]::Create((Get-Content scripts/install-windows.ps1 -Raw)); "OK"'
  • git diff --check

v1.8.0

03 Jun 06:38

Choose a tag to compare

What's Changed

  • Added ask_user alert support for immediate Claude AskUserQuestion notifications.
  • Preserved custom PreToolUse hooks when enabling/removing code-notify's managed ask_user hook.
  • 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_user hook preservation.

Verification

  • bash scripts/run_tests.sh
  • npm publish --dry-run --access public
  • isolated CLI smoke: cn alerts add ask_user with a temporary HOME
  • git diff --check

v1.7.4

27 Apr 18:35

Choose a tag to compare

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

06 Apr 21:28

Choose a tag to compare

What's Changed

  • Fix Claude install detection so arbitrary Notification / Stop entries 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

06 Apr 19:27

Choose a tag to compare

What's Changed

  • Fix raw script installs so they also download the click-through helper files
  • Prevent missing click-through*.sh errors after macOS/Linux curl installs
  • Keep Homebrew, npm, and script installs aligned for the click-through runtime

v1.7.1

02 Apr 21:51

Choose a tag to compare

What's New

  • Move generated last_notification_* and last_stop_notification files 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-notify
npm install -g code-notify@latest
cn update

v1.7.0

30 Mar 16:52

Choose a tag to compare

What's New

  • Add macOS click-through commands 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_PROGRAM cases and named add flows that should prefer the live runtime terminal key

Install / Update

brew upgrade code-notify
npm install -g code-notify@latest
cn update

v1.6.12

26 Mar 20:34

Choose a tag to compare

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

25 Mar 04:53

Choose a tag to compare

What's Changed

  • fix a Windows PowerShell regex bug that made cn status throw while checking Codex config state
  • use a PowerShell/.NET-safe pattern when scanning Codex config.toml for top-level notify
  • add regression coverage for the Windows status regex path, including a real pwsh execution path when available

v1.6.10

24 Mar 19:22

Choose a tag to compare

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