@wirecat/mail-cli 0.41.0 → 0.43.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 +28 -0
- package/contracts/wirecat.json +51 -0
- package/dist/bin/mail.js +6 -2
- package/dist/bundle/{chunk-RLHY2F5D.js → chunk-NEY4W5OP.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{program-2FZNXYJ2.js → program-VUMSDVHN.js} +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/mail-cli/SKILL.md +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.43.0 — 30.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`mail store migrate`, `mail store info` and `mail store recover`.** A search that finds the local store behind
|
|
10
|
+
this build says to run `mail store migrate`, and this CLI had no such command. A damaged store now names `mail store
|
|
11
|
+
recover`.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **Built on @wirecat/cli-core 3.6.3 and @wirecat/cli-base 3.1.4** (were 3.4.1 and 2.1.0).
|
|
16
|
+
- **A search never writes to the local store**, so a store this CLI may not write is searched too. A command that
|
|
17
|
+
writes indexes what it stored when it closes the store.
|
|
18
|
+
- **`session end` after `session start --credential-storage file` deletes `credentials.json`** when it held the last
|
|
19
|
+
sign-in. It was left behind as `{}`. A file that still holds another profile's sign-in is kept.
|
|
20
|
+
- **The release checks keep passing after 2026-12-11.** cli-base 2.x's audit named shared differences due on
|
|
21
|
+
2026-11-27, which cli-base 3.1.4 has reviewed.
|
|
22
|
+
- **A read-only open no longer builds indexes**, so the first search after an upgrade reads the store as it is.
|
|
23
|
+
|
|
24
|
+
## 0.42.0 — 29.11.2026
|
|
25
|
+
|
|
26
|
+
### Changed — may break callers
|
|
27
|
+
|
|
28
|
+
- **A server find says it is not stored in one place** (cli-core 3.4.1, was 3.4.0). In the terminal, the separate
|
|
29
|
+
"(on the mail server, not stored)" line under each find is now a `server` tag on the find's header line
|
|
30
|
+
(`… · bill, direct · server`). In `--json`, `found_in: "server"` alone says it: the `ingested: false` field 0.41.0
|
|
31
|
+
added is gone, since it only repeated `found_in`.
|
|
32
|
+
|
|
5
33
|
## 0.41.0 — 29.11.2026
|
|
6
34
|
|
|
7
35
|
### Added
|
package/contracts/wirecat.json
CHANGED
|
@@ -1062,6 +1062,57 @@
|
|
|
1062
1062
|
"local": "write"
|
|
1063
1063
|
},
|
|
1064
1064
|
"permission": "schedule.exec"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"path": [
|
|
1068
|
+
"store",
|
|
1069
|
+
"info"
|
|
1070
|
+
],
|
|
1071
|
+
"summary": "the shared store's format, size and contents, and whether this tool can read it",
|
|
1072
|
+
"effects": {
|
|
1073
|
+
"remote": "none",
|
|
1074
|
+
"local": "read"
|
|
1075
|
+
},
|
|
1076
|
+
"permission": "store.info",
|
|
1077
|
+
"entity": "store_info"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"path": [
|
|
1081
|
+
"store",
|
|
1082
|
+
"recover"
|
|
1083
|
+
],
|
|
1084
|
+
"summary": "what is damaged in the store and how to recover it",
|
|
1085
|
+
"effects": {
|
|
1086
|
+
"remote": "none",
|
|
1087
|
+
"local": "read"
|
|
1088
|
+
},
|
|
1089
|
+
"permission": "store.recover"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"path": [
|
|
1093
|
+
"store",
|
|
1094
|
+
"recover",
|
|
1095
|
+
"run"
|
|
1096
|
+
],
|
|
1097
|
+
"summary": "rebuild a damaged store from every row it can read",
|
|
1098
|
+
"effects": {
|
|
1099
|
+
"remote": "none",
|
|
1100
|
+
"local": "write"
|
|
1101
|
+
},
|
|
1102
|
+
"permission": "store.recover.run"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"path": [
|
|
1106
|
+
"store",
|
|
1107
|
+
"migrate"
|
|
1108
|
+
],
|
|
1109
|
+
"summary": "migrate an older local store",
|
|
1110
|
+
"effects": {
|
|
1111
|
+
"remote": "none",
|
|
1112
|
+
"local": "write"
|
|
1113
|
+
},
|
|
1114
|
+
"permission": "store.migrate",
|
|
1115
|
+
"entity": "store_migration"
|
|
1065
1116
|
}
|
|
1066
1117
|
],
|
|
1067
1118
|
"entities": {
|
package/dist/bin/mail.js
CHANGED
|
@@ -9,7 +9,11 @@ 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.43.0\n")
|
|
13
|
+
try {
|
|
14
|
+
const { wcatStart } = await import("@wirecat/cli-base/wcat/start")
|
|
15
|
+
await wcatStart({ command: "mail", version: "0.43.0" })
|
|
16
|
+
} catch {}
|
|
13
17
|
} else {
|
|
14
18
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
19
|
module.enableCompileCache()
|
|
@@ -26,7 +30,7 @@ if (
|
|
|
26
30
|
: next(specifier, context),
|
|
27
31
|
})
|
|
28
32
|
}
|
|
29
|
-
const chunks = ["../bundle/program-
|
|
33
|
+
const chunks = ["../bundle/program-VUMSDVHN.js"]
|
|
30
34
|
const preload = () =>
|
|
31
35
|
Promise.allSettled([
|
|
32
36
|
...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.43.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-NEY4W5OP.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-VUMSDVHN.js");
|
|
19
19
|
try {
|
|
20
20
|
process.exitCode = await run(process.argv.slice(2));
|
|
21
21
|
} finally {
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.43.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/mail-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"mcpName": "dev.wirecat/mail-cli",
|
|
5
5
|
"description": "IMAP sync of a mailbox into the shared WireCat store, offline search, and flags, folders and Trash with undo on the server, the app password kept in the OS keyring — built for agents and scripts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"docs:spell": "cspell lint --config cspell.json --no-progress --no-summary README.md SECURITY.md CHANGELOG.md AGENTS.md CLAUDE.md 'docs/*.md' 'skills/**/*.md'"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@wirecat/cli-base": "
|
|
62
|
-
"@wirecat/cli-core": "3.
|
|
61
|
+
"@wirecat/cli-base": "3.1.4",
|
|
62
|
+
"@wirecat/cli-core": "3.6.3",
|
|
63
63
|
"commander": "15.0.0",
|
|
64
64
|
"imapflow": "2.9.1",
|
|
65
65
|
"nodemailer": "10.1.7",
|
package/skills/mail-cli/SKILL.md
CHANGED
|
@@ -35,8 +35,7 @@ Find your way with the tool itself, not this file:
|
|
|
35
35
|
- `mail personal search messages '<query>' --json` searches the profile's stored mail (`from:`, `to:`, `subject:`, `label:`,
|
|
36
36
|
`list:`, `is:unread`, `has:attachment`, `content:`, `date>7d`); each hit's `ref` goes to
|
|
37
37
|
`mail personal messages show <ref>`, its `email.thread` to `mail personal conversations show <thread>`. It also asks the mail
|
|
38
|
-
server for mail sync has not read yet and stores none of it: a hit with `found_in: "server"` and `
|
|
39
|
-
on the server only, and `messages show` cannot read it yet. `mail personal sync --query '<query>'` (the `next` step)
|
|
38
|
+
server for mail sync has not read yet and stores none of it: a hit with `found_in: "server"` is on the server only, and `messages show` cannot read it yet. `mail personal sync --query '<query>'` (the `next` step)
|
|
40
39
|
stores those; then the same search finds them in the store. `found_in` says `archive`, `server` or `both`, and
|
|
41
40
|
`meta.complete: false` means the server answered in part. `--backend archive` keeps to the store.
|
|
42
41
|
- `mail personal messages export '<query>' --output-dir <dir> [--format mbox|maildir] [--max-messages n]` writes the original
|