mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-03 16:53:38 +00:00
* feat(imessage): add native poll action
Wire the imsg CLI 'poll send' bridge command into the iMessage channel
message-tool action surface, mirroring the existing Discord poll action.
Adds the 'poll' action (gate: polls), a sendPoll runtime, selector-gated
capability advertisement (pollPayloadMessage), config type + zod schema,
regenerated channel metadata, docs, and tests.
* feat(imessage): read inbound polls, vote, and suppress vote echo
Builds on the native poll send action:
- Inbound polls now render to the agent as a readable line (question +
numbered options + tallies) instead of the raw 0xFFFD balloon placeholder,
so a received poll no longer reads as an empty message.
- New `poll-vote` action casts a vote via `imsg poll vote`, resolving a
1-based option index / text / UUID to the poll's option identifier.
- message_tool_only echo guard: the model tends to narrate its choice in a
text reply right after voting ("Blue."), which is redundant since the vote
shows on the poll. A new `poll_vote_echo` suppression reason (alongside
inbound_metadata_echo / internal_runtime_context_echo) drops a send/reply
that exactly restates the just-cast vote, using the option label imsg
returns. Extra content passes through untouched.
* fix(imessage): gate poll-vote on imsg poll.vote rpc capability
Released imsg carries the pollPayloadMessage selector (poll create) but
predates the poll.vote CLI/RPC. Gating both poll and poll-vote on that
selector alone would advertise a vote action the released CLI rejects.
Gate poll-vote additionally on the advertised poll.vote rpc method so this
plugin can ship ahead of the imsg release.
* fix(imessage): enforce poll.vote capability at execution, not just discovery
Codex review flagged the discovery gate as bypassable: a caller that already
knows action=poll-vote skips describeMessageTool and reaches handleAction
directly. Add the same imessageRpcSupportsMethod(status, 'poll.vote') check in
the poll-vote execution path (after assertPrivateApiEnabled), so a direct
dispatch on released imsg fails closed with a clear message instead of an
opaque CLI rejection. Adds a negative handleAction test.
* fix(imessage): harden native poll support
* fix(message): validate targets before channel discovery
* fix(message): validate targets before channel discovery
---------
Co-authored-by: Omar Shahine <lobster@users.noreply.github.com>
Co-authored-by: Omar Shahine <10343873+omarshahine@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
81 lines
1.8 KiB
JSON
81 lines
1.8 KiB
JSON
{
|
|
"name": "@openclaw/imessage",
|
|
"version": "2026.6.11",
|
|
"private": true,
|
|
"description": "OpenClaw iMessage channel plugin using imsg on a signed-in Mac",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"typebox": "1.1.39"
|
|
},
|
|
"devDependencies": {
|
|
"@openclaw/plugin-sdk": "workspace:*"
|
|
},
|
|
"openclaw": {
|
|
"extensions": [
|
|
"./index.ts"
|
|
],
|
|
"setupEntry": "./setup-entry.ts",
|
|
"setupFeatures": {
|
|
"legacyStateMigrations": true
|
|
},
|
|
"channel": {
|
|
"id": "imessage",
|
|
"label": "iMessage",
|
|
"selectionLabel": "iMessage (imsg)",
|
|
"detailLabel": "iMessage",
|
|
"docsPath": "/channels/imessage",
|
|
"docsLabel": "imessage",
|
|
"blurb": "Local iMessage/SMS through the imsg bridge, including private API message actions when enabled.",
|
|
"aliases": [
|
|
"imsg"
|
|
],
|
|
"systemImage": "message.fill",
|
|
"cliAddOptions": [
|
|
{
|
|
"flags": "--db-path <path>",
|
|
"description": "iMessage database path"
|
|
},
|
|
{
|
|
"flags": "--service <service>",
|
|
"description": "iMessage service (imessage|sms|auto)"
|
|
},
|
|
{
|
|
"flags": "--region <region>",
|
|
"description": "iMessage region (for SMS)"
|
|
}
|
|
]
|
|
},
|
|
"compat": {
|
|
"pluginApi": ">=2026.6.11"
|
|
},
|
|
"build": {
|
|
"openclawVersion": "2026.6.11"
|
|
}
|
|
},
|
|
"pluginInspector": {
|
|
"version": 1,
|
|
"plugin": {
|
|
"id": "imessage",
|
|
"priority": "high",
|
|
"seams": [
|
|
"channel-plugin",
|
|
"message-actions",
|
|
"conversation-bindings",
|
|
"outbound-media"
|
|
],
|
|
"sourceRoot": "src",
|
|
"expect": {
|
|
"registrations": [
|
|
"createChatChannelPlugin"
|
|
],
|
|
"manifestContracts": [
|
|
"channels"
|
|
]
|
|
}
|
|
},
|
|
"capture": {
|
|
"mockSdk": true
|
|
}
|
|
}
|
|
}
|