@ghostpaw/email 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,14 +11,17 @@ A standalone email engine for Node.js, built on SQLite.
|
|
|
11
11
|
Email treats IMAP sync, SMTP send, local caching, threading, search, and
|
|
12
12
|
transport errors as one coherent model instead of a grab bag of protocol
|
|
13
13
|
adapters. It ships as a single prebundled blob with zero runtime dependencies,
|
|
14
|
-
designed for
|
|
15
|
-
|
|
16
|
-
runtime
|
|
14
|
+
designed for three audiences at once: human developers working directly in
|
|
15
|
+
code, LLM agents operating through a structured `soul` / `tools` / `skills`
|
|
16
|
+
runtime, and agent operators who want a ready-to-use `email` CLI binary
|
|
17
|
+
without writing any wiring code.
|
|
17
18
|
|
|
18
19
|
## Install
|
|
19
20
|
|
|
20
21
|
```bash
|
|
21
|
-
npm install @ghostpaw/email
|
|
22
|
+
npm install @ghostpaw/email # as a library
|
|
23
|
+
npm install -g @ghostpaw/email # as a global CLI
|
|
24
|
+
npx @ghostpaw/email --help # one-off, no install needed
|
|
22
25
|
```
|
|
23
26
|
|
|
24
27
|
Requires **Node.js 24+** (uses the built-in `node:sqlite` module).
|
|
@@ -130,6 +133,36 @@ and `nextSteps` — no thrown exceptions to parse, no ambiguous prose.
|
|
|
130
133
|
See [LLM.md](docs/LLM.md) for the full AI-facing guide covering soul, tools,
|
|
131
134
|
and skills.
|
|
132
135
|
|
|
136
|
+
### CLI (bash)
|
|
137
|
+
|
|
138
|
+
The package ships as a standalone `email` binary. Accounts are stored in
|
|
139
|
+
`~/.config/email/accounts.json` and every command accepts `--json` for
|
|
140
|
+
machine-readable output.
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
# Add an account once
|
|
144
|
+
email account add --name work \
|
|
145
|
+
--imap-host imap.example.com --smtp-host smtp.example.com \
|
|
146
|
+
--user you@example.com --pass secret
|
|
147
|
+
|
|
148
|
+
# Then use it
|
|
149
|
+
email sync # pull latest from server
|
|
150
|
+
email read # check inbox
|
|
151
|
+
email search "invoice" # FTS5 search
|
|
152
|
+
email compose send --to bob@example.com --subject "Hi" --body "Hello"
|
|
153
|
+
|
|
154
|
+
# Machine-readable output for agents and scripts
|
|
155
|
+
email read queue --json | jq '.entities[].title'
|
|
156
|
+
echo "body text" | email compose send --to bob@example.com --subject "Hi"
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
All commands return the same `{ outcome, summary, entities, nextSteps }`
|
|
160
|
+
shape as the tool layer, with consistent exit codes (0 success, 1 user error,
|
|
161
|
+
2 config, 3 auth, 4 network, 5 tool error).
|
|
162
|
+
|
|
163
|
+
See [SKILL.md](SKILL.md) for the complete CLI reference for agent operators
|
|
164
|
+
and Claude Code / OpenClaw users.
|
|
165
|
+
|
|
133
166
|
## Tools
|
|
134
167
|
|
|
135
168
|
Five tools shaped around operator intent, not raw protocol operations:
|
|
@@ -212,6 +245,7 @@ import type {
|
|
|
212
245
|
|
|
213
246
|
| Document | Audience |
|
|
214
247
|
|---|---|
|
|
248
|
+
| [SKILL.md](SKILL.md) | Agent operators and Claude Code users running `email` as a bash tool |
|
|
215
249
|
| [HUMAN.md](docs/HUMAN.md) | Human developers using the `Mailbox` API with `read` / `write` / `network` |
|
|
216
250
|
| [LLM.md](docs/LLM.md) | Agent builders wiring `soul`, `tools`, and `skills` into LLM systems |
|
|
217
251
|
| [docs/README.md](docs/README.md) | Architecture overview: model, invariants, protocol boundaries, source layout |
|
package/package.json
CHANGED