Repository navigation
feat: Add OMP integration and direct CLI message sending - #57
Merged
Merged
Conversation
Problem: Agent Notify supported several AI coding agents but lacked OMP (oh-my-pi) event integration, so permission requests, task completion, and tool failures could not be delivered through the existing notification channels. Solution: - Add a native TypeScript OMP Extension for session, tool approval, tool failure, and session stop events. - Add OMP configuration, installation, uninstallation, setup wizard, notification dispatch, doctor, and cleanup support. - Add OMP CLI management commands, event parsing tests, profile path support, and documentation. Impact and follow-up: Adds OMP notification support without changing existing Claude Code, Codex, OpenCode, ZCode, Grok, or Droid behavior. The integration is covered by the Go test suite, static analysis, and an OMP extension loading smoke test. Additional OMP event mappings can be added as the API evolves.
Problem: Users could only send notifications through agent lifecycle hooks or fixed test commands, with no unified way to send a custom message from the agent-notify binary. Solution: - Add the send command with channel, agent, title, event, workspace, and message options. - Support system, Feishu, WeChat, WeChat Work, DingTalk, Bark, ntfy, and Slack using the existing sender implementations. - Add CLI documentation and argument normalization tests. Impact and follow-up: Adds explicit message sending without changing the existing hook notification flow. The command bypasses channel enabled flags and event subscriptions because it represents an explicit user request.
Problem: On Windows, os.UserHomeDir prefers USERPROFILE, so tests and Git Bash environments that override HOME resolved OMP paths under the runner user directory instead of the isolated HOME directory. Solution: - Prefer an explicitly configured HOME value when resolving the OMP user agent directory. - Fall back to os.UserHomeDir when HOME is unset. Impact and follow-up: Makes OMP profile and extension path resolution consistent across Unix, Git Bash, and Windows CI without changing the default behavior when no HOME override is present.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agent-notify sendcommand.Details
Usage