@wirecat/mail-cli 0.39.0 → 0.41.0
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/CHANGELOG.md +37 -0
- package/README.md +9 -8
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{chunk-BXH2YUBR.js → chunk-RLHY2F5D.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{program-ZSF2VJI6.js → program-2FZNXYJ2.js} +1045 -972
- package/dist/commands/account.js +2 -1
- package/dist/commands/export.js +1 -1
- package/dist/commands/folders.js +10 -0
- package/dist/commands/read.js +2 -2
- package/dist/commands/restore.js +1 -1
- package/dist/commands/rules.js +2 -2
- package/dist/commands/send.js +1 -1
- package/dist/commands/server-search.js +2 -3
- package/dist/commands/sync.js +90 -14
- package/dist/commands/tags.js +2 -2
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-cli/SKILL.md +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.41.0 — 29.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`sync --query '<query>'` stores only what the server's search finds for a query**, the mail a search showed as
|
|
10
|
+
not stored. It asks the server as `search messages` does, tags what it stores by the owner's rules, stores a big
|
|
11
|
+
email from its first 256 KiB for the next `sync` to read whole, and leaves the window and position of `sync` as they
|
|
12
|
+
were. It takes no other `sync` option ([usage](docs/usage.md#search-your-mail)).
|
|
13
|
+
|
|
14
|
+
### Changed — may break callers
|
|
15
|
+
|
|
16
|
+
- **`search messages` no longer stores what the mail server finds** (owner's ruling, 2026-11-29;
|
|
17
|
+
[wirecat#928](https://github.com/WireCatLabs/wirecat/issues/928)). It still asks the server (`--backend`), and the
|
|
18
|
+
same strict query decides the finds, but a find the store lacks is only shown: it comes first, with
|
|
19
|
+
`found_in: "server"` and `ingested: false` in `--json` and "on the mail server, not stored" in the terminal, and
|
|
20
|
+
`messages show` cannot read it until it is stored. The answer's `next` gives the command that stores it.
|
|
21
|
+
`MAIL_READ_ONLY` no longer turns the server search off, since the search writes nothing
|
|
22
|
+
([usage](docs/usage.md#search-your-mail)).
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- **The agent skill now starts only for requests about email**: a named mailbox or account, an email or thread, a
|
|
27
|
+
send or change, mail rules, setting up or syncing a mailbox. It used to start for any task that needs the owner's
|
|
28
|
+
mail. A question that names no channel goes to WireCat's search across all sources, and the skill no longer
|
|
29
|
+
points at it.
|
|
30
|
+
|
|
31
|
+
## 0.40.0 — 29.11.2026
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- **An AI agent's MCP search of mail commands answers shorter.** Built on @wirecat/cli-core 3.2.0 (was 3.0.0).
|
|
36
|
+
`mail_tools_search` gives at most 5 matches with the arguments of the first 2, and says a command's availability
|
|
37
|
+
only when it is refused or asks first. A read of messages and threads over MCP leaves out empty fields. The command
|
|
38
|
+
line, `--json` and `--full` answer as before.
|
|
39
|
+
- **`inbox` names `wcat models ai set` when no AI model is chosen.** It named memo, which is wcat since wcat 1.0.0.
|
|
40
|
+
The help, the README, the docs and the agent skill name wcat too.
|
|
41
|
+
|
|
5
42
|
## 0.39.0 — 28.11.2026
|
|
6
43
|
|
|
7
44
|
### Added
|
package/README.md
CHANGED
|
@@ -35,8 +35,8 @@ mail personal search messages invoice # search the stored mail
|
|
|
35
35
|
mail skill install # optional: instructions for your AI agent
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Now the mail is in the store. `messages show` with the `ref` a search hit gives reads that email whole. [
|
|
39
|
-
searches it together with your messages and notes: `
|
|
38
|
+
Now the mail is in the store. `messages show` with the `ref` a search hit gives reads that email whole. [wcat](https://github.com/WireCatLabs/wirecat/blob/main/docs/mail.md)
|
|
39
|
+
searches it together with your messages and notes: `wcat search all "invoice"`.
|
|
40
40
|
|
|
41
41
|
You need Node.js 22.16 or a later 22.x, or 24 or later. To try it with no install, run
|
|
42
42
|
`npx @wirecat/mail-cli --help`. If `mail` is not found, `mail doctor` says why.
|
|
@@ -48,8 +48,9 @@ You need Node.js 22.16 or a later 22.x, or 24 or later. To try it with no instal
|
|
|
48
48
|
- **Search and read the stored mail.** `search messages 'from:ann@example.com has:attachment date>30d'` uses the
|
|
49
49
|
query language of every WireCat CLI, with `list:` for mailing lists; `messages show` gives an email whole with its
|
|
50
50
|
attachments' text, `conversations list|show` its threads. It searches the profile's mailbox only; it also asks the mail server
|
|
51
|
-
for mail `sync` has not read yet
|
|
52
|
-
|
|
51
|
+
for mail `sync` has not read yet and shows it without storing it; `sync --query '<query>'` stores it, and
|
|
52
|
+
`--backend archive` keeps to the store.
|
|
53
|
+
[wcat](https://github.com/WireCatLabs/wirecat/blob/main/docs/mail.md) searches every mailbox together with your messages and notes.
|
|
53
54
|
- **Export to mbox or Maildir.** `messages export 'from:ann@example.com' --output-dir ~/mail-backup` reads the original
|
|
54
55
|
messages from the server into a private folder, one mbox file per folder or a Maildir++ tree for mu and notmuch;
|
|
55
56
|
it can be resumed and bounded. `stats messages top --by list` ranks senders, lists and domains.
|
|
@@ -66,7 +67,7 @@ You need Node.js 22.16 or a later 22.x, or 24 or later. To try it with no instal
|
|
|
66
67
|
- **Draft for the owner.** `drafts create|update|list|delete` keep drafts in the mailbox's Drafts folder, replies in
|
|
67
68
|
their thread; the owner sends them from any mail app, or with `drafts send`. `drafts update` puts the old version
|
|
68
69
|
in Trash.
|
|
69
|
-
- **Tag your own way.** `tags add|remove|list` put local tags on stored mail, shared with
|
|
70
|
+
- **Tag your own way.** `tags add|remove|list` put local tags on stored mail, shared with wcat; `search messages
|
|
70
71
|
tag:<tag>` finds them.
|
|
71
72
|
- **Send, reply and forward.** `messages send --to … --subject …` sends over the provider's SMTP server with the same
|
|
72
73
|
app password, `--reply-to <ref>` answers a stored email with its quote, `messages forward <ref>` sends it on whole.
|
|
@@ -103,7 +104,7 @@ as data, never as instructions.
|
|
|
103
104
|
|
|
104
105
|
- **Your mail stays on your computer.** The store is a local file; no WireCat server sees your mail.
|
|
105
106
|
- **One store for every tool.** Mail sits next to Telegram, MAX and WhatsApp messages, meetings and notes, so one
|
|
106
|
-
search in
|
|
107
|
+
search in wcat finds a person's mail and messages together.
|
|
107
108
|
- **Changes you can undo.** `messages delete` goes to Trash, and every change run keeps a record that
|
|
108
109
|
`messages restore` plays back. What is lost for good is named so and previewed first: `drafts delete`, and
|
|
109
110
|
`folders delete` of a folder that holds mail, which only the owner can run (`--allow-dangerous`). The profile's permissions
|
|
@@ -150,8 +151,8 @@ mail personal config show # every setting and where i
|
|
|
150
151
|
Google may show an "unverified app" screen and lets 100 new users in, shared with `gcal` and `drive`; then use a
|
|
151
152
|
Google app of your own ([steps](https://github.com/WireCatLabs/mail-cli/blob/main/docs/oauth-google.md)).
|
|
152
153
|
- Gmail caps IMAP downloads at 2,500 MB a day; a new Yandex app password can take 2 to 3 hours to work.
|
|
153
|
-
- Search reads the store and asks the mail server for mail `sync` has not read yet;
|
|
154
|
-
the store.
|
|
154
|
+
- Search reads the store and asks the mail server for mail `sync` has not read yet; it never writes the store.
|
|
155
|
+
`sync --query '<query>'` stores what the server found, and `--backend archive` keeps to the store.
|
|
155
156
|
|
|
156
157
|
What comes next is on the
|
|
157
158
|
[roadmap](https://github.com/WireCatLabs/mail-cli/blob/main/docs/roadmap.md).
|
package/dist/bin/mail.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.41.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -26,7 +26,7 @@ if (
|
|
|
26
26
|
: next(specifier, context),
|
|
27
27
|
})
|
|
28
28
|
}
|
|
29
|
-
const chunks = ["../bundle/program-
|
|
29
|
+
const chunks = ["../bundle/program-2FZNXYJ2.js"]
|
|
30
30
|
const preload = () =>
|
|
31
31
|
Promise.allSettled([
|
|
32
32
|
...chunks.map((chunk) => import(chunk)),
|
|
@@ -57,7 +57,7 @@ var ENTRIES = [
|
|
|
57
57
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
58
58
|
|
|
59
59
|
// dist/version.js
|
|
60
|
-
var VERSION = "0.
|
|
60
|
+
var VERSION = "0.41.0";
|
|
61
61
|
|
|
62
62
|
// dist/identity.js
|
|
63
63
|
var PACKAGE = "@wirecat/mail-cli";
|
package/dist/bundle/mail.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
DESKTOP
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RLHY2F5D.js";
|
|
7
7
|
|
|
8
8
|
// dist/bin/mail.js
|
|
9
9
|
import { enableCompileCache } from "node:module";
|
|
@@ -15,7 +15,7 @@ if (wcat.code !== void 0) {
|
|
|
15
15
|
process.exitCode = wcat.code;
|
|
16
16
|
} else {
|
|
17
17
|
const stopCatching = catchCrashes({ cli: DESKTOP.command, interactive: process.stdout.isTTY === true });
|
|
18
|
-
const { run } = await import("./program-
|
|
18
|
+
const { run } = await import("./program-2FZNXYJ2.js");
|
|
19
19
|
try {
|
|
20
20
|
process.exitCode = await run(process.argv.slice(2));
|
|
21
21
|
} finally {
|