mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-14 14:57:28 +00:00
@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>
28 lines
635 B
TypeScript
28 lines
635 B
TypeScript
import type { PluginManifest } from "@logicsrc/plugin-core";
|
|
|
|
export const agentMailManifest: PluginManifest = {
|
|
id: "agentmail",
|
|
name: "AgentMail",
|
|
version: "0.1.0",
|
|
type: ["communication", "email", "mailbox"],
|
|
default: false,
|
|
capabilities: [
|
|
"mailbox.list",
|
|
"message.list",
|
|
"message.read",
|
|
"message.search",
|
|
"message.compose",
|
|
"message.send",
|
|
"message.flag",
|
|
"message.delete",
|
|
"access.gate"
|
|
],
|
|
commands: ["mail", "inbox", "compose"],
|
|
env: [
|
|
"AGENTMAIL_DOMAIN",
|
|
"AGENTMAIL_IMAP_HOST",
|
|
"AGENTMAIL_IMAP_PORT",
|
|
"AGENTMAIL_SMTP_HOST",
|
|
"AGENTMAIL_SMTP_PORT"
|
|
]
|
|
};
|