summaryrefslogtreecommitdiff
path: root/plugins/plugin-dev/skills/command-development/examples
diff options
context:
space:
mode:
authorDaisy Hollman <daisy@anthropic.com>2026-03-20 22:44:08 +0000
committerDaisy Hollman <daisy@anthropic.com>2026-03-23 08:59:02 +0000
commitdaa84c99c815fb2832ecb5df80613e2088af0191 (patch)
treecc802e544eb150925b178e7b371019000e2cf98d /plugins/plugin-dev/skills/command-development/examples
parent61c0597779bd2d670dcd4fbbf37c66aa19eb2ce6 (diff)
feat(telegram,discord): permission-relay capability + bidirectional handlersdaisy/plugin-7/channel-permissions
Complete the plugin side of anthropics/claude-cli-internal#23061 (permission prompts over channels). Capability: both servers now declare experimental["claude/channel/permission"] which tells CC they can relay permission requests. This capability asserts the server authenticates the replier — gate()/access.allowFrom filters non-allowlisted senders before handleInbound runs. Outbound (CC → user): setNotificationHandler for notifications/claude/channel/permission_request formats the tool name, description, and input preview into a human-readable message and sends it to every allowlisted DM. Groups are excluded — the security thread resolution was "single-user mode for official plugins." Inbound (user → CC): PERMISSION_REPLY_RE intercept in handleInbound catches "yes xxxxx" / "no xxxxx" replies, emits the structured notifications/claude/channel/permission event with {request_id, behavior}, reacts with checkmark/cross, and returns without relaying the text to Claude as a chat message. The regex is inlined from channelPermissions.ts (no cross-repo dep). IDs are lowercased at the plugin boundary per the case-insensitive spec. Version bumped 0.0.1 → 0.0.2 so the plugin reconciler picks up the change. :house: Remote-Dev: homespace
Diffstat (limited to 'plugins/plugin-dev/skills/command-development/examples')
0 files changed, 0 insertions, 0 deletions