Add AgentMail plugin (paid-member mailbox client for humans + agents)#73
Merged
Conversation
@logicsrc/plugin-agentmail provides read/search/compose/send/flag/delete over an injected MailTransport, gated to Founding Lifetime (paid) members. Returns plain JSON-serializable domain objects so the same API serves a human TUI, the CLI, MCP, and bots. - domain.ts: transport-agnostic types + pure helpers (parse/format address, normalizeDraft, isValidEmail, snippet) - ports.ts: MailTransport seam - service.ts: AgentMailService (inbox/list/read/search/send/reply/flag/delete) - access.ts: paid-member gate (assertPaid) + capability constants - transports/memory.ts: complete in-memory backend (tests/dev/reference) - transports/mailu.ts: self-hosted Mailu seam (mail.profullstack.com IMAP + smtp.profullstack.com submission) with injected IMAP/SMTP drivers - index.ts: PluginDefinition (manifest, routes, capabilities, tuiPanels) - registered in the root build; 20 vitest tests pass Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
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.
What
New
@logicsrc/plugin-agentmail— an agent-native mailbox client for Founding Lifetime (paid) members: read, search, compose, send, reply, flag, delete. Every method returns plain JSON-serializable domain objects, so the same API is ergonomic for a human TUI, the CLI, MCP, and bots.Design (mirrors the
agentgitplugin)domain.ts— transport-agnostic types (Mailbox/MessageSummary/Message/Draft/MailAddress) + pure helpers (parseAddress,formatAddress,normalizeDraft,isValidEmail,snippet).ports.ts— theMailTransportseam (service talks only to this).service.ts—AgentMailService: paid-gatedinbox/list/read/search/send/reply/flag/delete.access.ts— mail is a paid perk; every call runsassertPaid.transports/memory.ts— complete dependency-free backend (tests/dev/reference).transports/mailu.ts— self-hosted Mailu seam (mail.profullstack.comIMAP +smtp.profullstack.comsubmission) with injected IMAP/SMTP drivers, keeping heavy network libs out of the plugin (repo convention).index.ts—PluginDefinition(manifest, routes, capabilities,tuiPanels); registered in the root build.Verification
tscbuild clean; 20 vitest tests pass (domain+serviceagainst the in-memory transport).Related
mail.profullstack.com(DNS formail./smtp.profullstack.comalready added).🤖 Generated with Claude Code