diff options
| author | Kenneth Lien <kenneth@anthropic.com> | 2026-03-23 20:10:34 -0700 |
|---|---|---|
| committer | Kenneth Lien <kenneth@anthropic.com> | 2026-03-23 20:10:34 -0700 |
| commit | bfed4635f5f47c2183e9a4b9b985dfe0e8cc5d73 (patch) | |
| tree | b555139bea558c2518f394e52a42eb8e20c20404 /plugins/plugin-dev/skills/hook-development | |
| parent | 0f8c170fa7793f9a2947880da73de538bfe45bbf (diff) | |
feat(imessage): port permission-relay + lifecycle fixes from telegram
Brings the imessage channel to parity with recent telegram/discord
hardening:
- Permission-relay capability: declare claude/channel/permission,
handle inbound permission_request notifications by fanning out to
allowlisted DM chats + self-chat, intercept "yes/no <id>" replies
after the gate check and emit structured permission events instead
of relaying as chat. Groups excluded per single-user-mode policy.
- Global unhandledRejection/uncaughtException handlers so the server
logs instead of dying silently.
- IMESSAGE_STATE_DIR env override for the state directory.
- .unref() on both setInterval timers so they don't block shutdown.
- stdin EOF / SIGTERM / SIGINT shutdown handler that closes chat.db
and exits cleanly instead of leaving a zombie poll loop.
Adds zod as a direct dep (already transitively present via the MCP SDK)
for the notification handler schema.
Diffstat (limited to 'plugins/plugin-dev/skills/hook-development')
0 files changed, 0 insertions, 0 deletions
