19 Commits

Author SHA1 Message Date
ty
be917e6865 chore(packages): add/update pnpm lockfiles for cli, core, mcp
CI publishes with `pnpm install` per package; commit pnpm-lock.yaml for
core and mcp (previously missing) and refresh cli's after the @moemail/core
dependency was added, so installs are reproducible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 00:03:20 +08:00
ty
b99b872791 feat(cli,mcp): extract @moemail/core and add MCP server; release 1.0.0
Extract the HTTP client and config into a new @moemail/core package shared
by the CLI and a new @moemail/mcp server, so both frontends talk to the same
MoeMail API through one code path.

- core: api client (now throws typed ConfigError/AuthError/PermissionError/
  QuotaError instead of process.exit), config, msToIso, and a transport-
  agnostic pollForNewMessage helper.
- cli: consume @moemail/core; route command errors through a shared fail()
  that preserves exit codes (config/auth = 2, else = 1). Bump to 1.0.0.
- mcp: new stdio MCP server exposing 8 tools (create/list/read/wait/send/
  delete); wait_for_email is bounded and returns a timeout status to retry.
  Configured via MOEMAIL_API_KEY / MOEMAIL_API_URL env. Release 1.0.0.

Docs:
- Fix packages/cli/README.md (config set, send --content not --body, full
  flag table).
- Add MCP section to both root READMEs; complete the CLI command list
  (send, list, message-level delete).
- SKILL.md: --json works before or after the subcommand.
- Ignore bun.lock in package gitignores.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 23:52:35 +08:00
ty
20be2b5b36 chore(cli): bump release to 0.1.2 2026-03-30 17:12:10 +08:00
ty
61f47626e7 feat(cli): add MoeMail AI agent skills 2026-03-30 17:08:50 +08:00
ty
b93b3bcf4a chore(cli): bump version to 0.1.1
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 16:15:43 +08:00
ty
033125eebf feat(cli): default api-url to https://moemail.app
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 16:11:39 +08:00
ty
f66c3e83a9 docs: add CLI section to READMEs and restore @moemail/cli package name
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 16:05:57 +08:00
BeilunYang
10257db179 Rename package from 'moemail-cli' to '@moemail/cli' 2026-03-22 15:32:31 +08:00
ty
152059ca3d docs(cli): add README with usage guide and agent workflow 2026-03-22 15:22:29 +08:00
ty
b09cc28496 feat(cli): add send command 2026-03-22 15:22:29 +08:00
ty
f29565c90d feat(cli): add delete command 2026-03-22 15:22:29 +08:00
ty
1c7cf2e5fd feat(cli): add read command 2026-03-22 15:22:29 +08:00
ty
8f4f605094 feat(cli): add wait command with client-side polling 2026-03-22 15:22:29 +08:00
ty
b891ee4655 feat(cli): add list command for mailboxes and messages 2026-03-22 15:22:29 +08:00
ty
12b5f4afeb feat(cli): add create command 2026-03-22 15:22:29 +08:00
ty
542f6ec2f8 feat(cli): add API client module 2026-03-22 15:22:29 +08:00
ty
1b9bd76b82 feat(cli): add config module and config command
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 15:22:29 +08:00
ty
6795719750 feat(cli): add output formatting helpers 2026-03-22 15:22:29 +08:00
ty
5b7ba3e924 feat(cli): scaffold CLI package with commander
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 15:22:29 +08:00