@wirecat/mail-cli 0.40.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 +26 -0
- package/README.md +4 -3
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{chunk-VI5G3S4Y.js → chunk-RLHY2F5D.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{program-DWRLBUW5.js → program-2FZNXYJ2.js} +1040 -967
- 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 +1 -1
- package/dist/commands/send.js +1 -1
- package/dist/commands/server-search.js +2 -3
- package/dist/commands/sync.js +90 -14
- 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,32 @@
|
|
|
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
|
+
|
|
5
31
|
## 0.40.0 — 29.11.2026
|
|
6
32
|
|
|
7
33
|
### Fixed
|
package/README.md
CHANGED
|
@@ -48,7 +48,8 @@ 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
|
|
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.
|
|
52
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;
|
|
@@ -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 {
|