Skip to content

feat: Add OMP integration and direct CLI message sending - #57

Merged
hellolib merged 3 commits into
hellolib:mainfrom
ChuckWe:codex/omp-integration
Sep 7, 2026
Merged

hellolib merged 3 commits into
hellolib:mainfrom
ChuckWe:codex/omp-integration

Conversation

@ChuckWe

@ChuckWe ChuckWe commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add native OMP (oh-my-pi) extension support.
  • Forward OMP permission, completion, and failure events to configured notification channels.
  • Add direct custom message sending through the agent-notify send command.

Details

  • Support OMP user, project, and profile-based extension paths.
  • Add OMP setup, installation, uninstallation, doctor, cleanup, and CLI management flows.
  • Support sending messages through system, Feishu, WeChat, WeChat Work, DingTalk, Bark, ntfy, and Slack.
  • Allow selecting the agent configuration, channel, title, event style, workspace, and message body.
  • Add tests and documentation for the new functionality.

Usage

agent-notify send \
  --channel wechat-work \
  --agent omp \
  --title "Task notification" \
  "Deployment completed successfully"

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.
@hellolib
hellolib merged commit e581654 into hellolib:main Sep 7, 2026
4 checks passed
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.

2 participants