Skip to content

feat(focus): a stack-nudge CLI, Focus mute and per-tag filtering - #274

Open
adefreitas wants to merge 3 commits into
StackOneHQ:mainfrom
adefreitas:feat/focus-cli
Open

adefreitas wants to merge 3 commits into
StackOneHQ:mainfrom
adefreitas:feat/focus-cli

Conversation

@adefreitas

Copy link
Copy Markdown
Collaborator

Summary

Adds a command channel on the panel's socket and a stack-nudge shell CLI that talks to it, so scripts can post events, query state and open Settings. macOS Focus can mute banners, sound and voice through a Shortcuts automation, and Settings gets a "Notify me about" page to filter by tag.

Changes

  • Socket commands: say, focus, state, settings, poll, busy, ping. stack-nudge.sh wraps them.
  • Focus: banners, sound and voice mute while a Focus is on, with one summary notice when it ends. The companion respects it too.
  • Settings: a Focus category and a "Notify me about" sub-page (← goes back, per AGENTS.md).
  • SettingsCategory gets a key and init?(key:), since main dropped its String raw value; the settings command uses it and respects the setup and update screens.
  • stack-nudge.sh passes shellcheck at warning level.
  • Docs in docs/notifications.md and docs/panel.md.

Testing

  • make test-without-xcode: 1918 ok, 0 failed.
  • ./build.sh arm64 builds; bash -n and shellcheck --severity=warning pass on the touched scripts.
  • Not yet checked by hand on a local build since the rebase onto main.

adefreitas and others added 3 commits November 24, 2026 14:47
…mute and per-tag filter

A socket line with a "cmd" key is now a command and gets one JSON line back,
without waiting for the client to close. Lines without it are events, exactly
as before, so notify.sh and extensions are untouched. Commands: ping, say,
focus on|off|status, poll, state, busy, settings. poll, state and busy are
hooks (nav.pollNow, nav.poseOverride/onPoseOverride, nav.busySources) that
later branches wire.

- ~/.stack-nudge/stack-nudge: shell client over nc -U, bundled by build.sh,
  installed by install.sh and Bootstrap, refreshed on each launch.
- macOS Focus as a mute source pushed in by a Shortcuts automation: banners,
  sound and voice are held, meeting reminders pass by default, and ending it
  posts one "While Focus was on: 3 review, 1 CI" notice. The menu, menu-bar
  icon and compact widget show a moon.
- Settings > Focus (respect Focus, meetings still show) and a Notify me about
  sub-page of per-tag toggles, stored as STACKNUDGE_QUIET_TAGS. A quiet tag
  keeps its events in the list but pops no banner and moves no companion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant