feat: add native macOS iMessage channel - #183
Merged
Merged
Conversation
added 2 commits
September 9, 2026 11:33
Make the latest-row-id test exercise the mocked sqlite path on any OS. getLatestMessageRowId short-circuits to 0 on non-darwin, which failed the assert (0 !== 744) on the Linux CI runner. Mock process.platform to darwin and restore it via t.after().
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
Implements the iMessage channel requested in #137, using macOS Messages.app
directly as the transport; no BlueBubbles or third-party gateway required.
Included
(
~/Library/Messages/chat.dbfor receive,/usr/bin/osascriptfor send)workspace, contact mapping, and Harness sessions stay isolated
independent Harness session
/api/dsh-im/imessage)Automation permission guidance
Host; no sensitive data returned through browser-facing RPC
limitations
MVP scope (as outlined in #137)
Intentionally out of scope (first release)
Group chats, images, files/attachments, rich text, quoted replies, reactions,
message edit/recall, multiple Messages.app accounts, and remote
BlueBubbles-style operation.
Permissions and security
Users must explicitly grant:
chat.dbis only read via read-only queries; messages are sent only throughthe native Messages.app automation interface.
Compatibility notes
chat.dbis an internal database rather than a stable publicAPI, so future macOS releases may require compatibility updates
loops or duplicate replies
Testing
npm run checkpassesManual flow: