@ghostpaw/email 0.5.5 → 0.5.6
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 +18 -2
- package/dist/cli.js +36 -24
- package/dist/mcp-server.js +1 -1
- package/dist/mcp.cjs +1 -1
- package/dist/mcp.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -156,6 +156,8 @@ and print one with `ghostpaw-email skill compose-and-send`.
|
|
|
156
156
|
|
|
157
157
|
Each line downloads the latest release asset, checks it against the release's SHA256SUMS and installs it on the PATH (~/.local/bin on Linux/macOS; the Windows script adds its folder to the user PATH).
|
|
158
158
|
|
|
159
|
+
These lines never edit ~/.profile or other shell startup files: `export PATH` applies to the current shell only. To keep it, add `export PATH="$HOME/.local/bin:$PATH"` to your shell profile yourself.
|
|
160
|
+
|
|
159
161
|
linux-x64:
|
|
160
162
|
|
|
161
163
|
```sh
|
|
@@ -180,17 +182,31 @@ darwin-x64:
|
|
|
180
182
|
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/email/main/install.sh | sh -s -- --target darwin-x64 && export PATH="$HOME/.local/bin:$PATH"
|
|
181
183
|
```
|
|
182
184
|
|
|
183
|
-
windows-x64 (PowerShell):
|
|
185
|
+
windows-x64 (PowerShell; persistently adds its folder to the user PATH by default):
|
|
184
186
|
|
|
185
187
|
```powershell
|
|
186
188
|
irm https://raw.githubusercontent.com/GhostPawJS/email/main/install.ps1 | iex
|
|
187
189
|
```
|
|
188
190
|
|
|
191
|
+
Pinned to a release:
|
|
192
|
+
|
|
193
|
+
```sh
|
|
194
|
+
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/email/main/install.sh | sh -s -- --target linux-x64 --version 0.5.6 && export PATH="$HOME/.local/bin:$PATH"
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
To skip the persistent user PATH edit (the installer still installs and prints the folder to add):
|
|
198
|
+
|
|
199
|
+
```powershell
|
|
200
|
+
$env:GHOSTPAW_NO_MODIFY_PATH=1; irm https://raw.githubusercontent.com/GhostPawJS/email/main/install.ps1 | iex
|
|
201
|
+
```
|
|
202
|
+
|
|
189
203
|
```text
|
|
190
204
|
$ ghostpaw-email --version
|
|
191
|
-
email 0.5.
|
|
205
|
+
email 0.5.6 (binary, linux-x64)
|
|
192
206
|
```
|
|
193
207
|
|
|
208
|
+
Scripts that compare versions should use `--version --short` or `--version --json`.
|
|
209
|
+
|
|
194
210
|
A session with the 0.5.1 linux-x64 binary against a local GreenMail test server on 127.0.0.1 (throwaway user, no real account) and a fresh database (output piped through `jq` to keep it short):
|
|
195
211
|
|
|
196
212
|

|
package/dist/cli.js
CHANGED
|
@@ -3,6 +3,7 @@ import g, { stdin, stdout } from 'node:process';
|
|
|
3
3
|
import f from 'node:readline';
|
|
4
4
|
import * as tty from 'node:tty';
|
|
5
5
|
import { WriteStream } from 'node:tty';
|
|
6
|
+
import { isSea } from 'node:sea';
|
|
6
7
|
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
7
8
|
import { homedir } from 'node:os';
|
|
8
9
|
import { sep, dirname, join, basename, extname } from 'node:path';
|
|
@@ -11,7 +12,6 @@ import * as net from 'node:net';
|
|
|
11
12
|
import * as tls from 'node:tls';
|
|
12
13
|
import * as zlib from 'node:zlib';
|
|
13
14
|
import { randomUUID } from 'node:crypto';
|
|
14
|
-
import { isSea } from 'node:sea';
|
|
15
15
|
import { formatWithOptions } from 'node:util';
|
|
16
16
|
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
@@ -780,12 +780,35 @@ ${e.cyan(d)}
|
|
|
780
780
|
kCancel = /* @__PURE__ */ Symbol.for("cancel");
|
|
781
781
|
}
|
|
782
782
|
});
|
|
783
|
+
function markNpmEntry() {
|
|
784
|
+
npmEntry = true;
|
|
785
|
+
}
|
|
786
|
+
function cliVersion(version, options = {}) {
|
|
787
|
+
let binary = false;
|
|
788
|
+
try {
|
|
789
|
+
binary = (options.isSea ?? isSea)();
|
|
790
|
+
} catch {
|
|
791
|
+
}
|
|
792
|
+
const platform2 = options.platform ?? process.platform;
|
|
793
|
+
const target = `${platform2 === "win32" ? "windows" : platform2}-${options.arch ?? process.arch}`;
|
|
794
|
+
const variant = binary ? "binary" : options.npm ?? npmEntry ? "npm" : "library";
|
|
795
|
+
if (options.args?.includes("--json"))
|
|
796
|
+
return JSON.stringify({ name: "email", version, variant, target });
|
|
797
|
+
if (options.args?.includes("--short")) return version;
|
|
798
|
+
return `email ${version} (${binary ? `binary, ${target}` : options.npm ?? npmEntry ? "npm" : "library"})`;
|
|
799
|
+
}
|
|
800
|
+
var npmEntry;
|
|
801
|
+
var init_cli_version = __esm({
|
|
802
|
+
"src/cli_version.ts"() {
|
|
803
|
+
npmEntry = false;
|
|
804
|
+
}
|
|
805
|
+
});
|
|
783
806
|
|
|
784
807
|
// src/version.ts
|
|
785
808
|
var emailVersion;
|
|
786
809
|
var init_version = __esm({
|
|
787
810
|
"src/version.ts"() {
|
|
788
|
-
emailVersion = "0.5.
|
|
811
|
+
emailVersion = "0.5.6";
|
|
789
812
|
}
|
|
790
813
|
});
|
|
791
814
|
function getConfigDir() {
|
|
@@ -7091,25 +7114,6 @@ var init_write = __esm({
|
|
|
7091
7114
|
init_store();
|
|
7092
7115
|
}
|
|
7093
7116
|
});
|
|
7094
|
-
function markNpmEntry() {
|
|
7095
|
-
npmEntry = true;
|
|
7096
|
-
}
|
|
7097
|
-
function cliVersion(version, options = {}) {
|
|
7098
|
-
let binary = false;
|
|
7099
|
-
try {
|
|
7100
|
-
binary = (options.isSea ?? isSea)();
|
|
7101
|
-
} catch {
|
|
7102
|
-
}
|
|
7103
|
-
const platform2 = options.platform ?? process.platform;
|
|
7104
|
-
const target = `${platform2 === "win32" ? "windows" : platform2}-${options.arch ?? process.arch}`;
|
|
7105
|
-
return `email ${version} (${binary ? `binary, ${target}` : options.npm ?? npmEntry ? "npm" : "library"})`;
|
|
7106
|
-
}
|
|
7107
|
-
var npmEntry;
|
|
7108
|
-
var init_cli_version = __esm({
|
|
7109
|
-
"src/cli_version.ts"() {
|
|
7110
|
-
npmEntry = false;
|
|
7111
|
-
}
|
|
7112
|
-
});
|
|
7113
7117
|
function parseCliArgs(argv2, spec) {
|
|
7114
7118
|
const values = {};
|
|
7115
7119
|
const positions = [];
|
|
@@ -7281,14 +7285,14 @@ async function runCliCommand(argv2, options) {
|
|
|
7281
7285
|
else if (flag === "--compact") compact = true;
|
|
7282
7286
|
else if (flag === "--help" || flag === "-h") help = true;
|
|
7283
7287
|
else if (["--version", "-V", "-v"].includes(flag ?? "")) {
|
|
7284
|
-
if (!quiet) stdout2.write(`${cliVersion(options.version)}
|
|
7288
|
+
if (!quiet) stdout2.write(`${cliVersion(options.version, { args: argv2 })}
|
|
7285
7289
|
`);
|
|
7286
7290
|
return 0;
|
|
7287
7291
|
} else if (flag !== "--no-color") continue;
|
|
7288
7292
|
args.splice(i2--, 1);
|
|
7289
7293
|
}
|
|
7290
7294
|
if (args[0] === "version") {
|
|
7291
|
-
if (!quiet) stdout2.write(`${cliVersion(options.version)}
|
|
7295
|
+
if (!quiet) stdout2.write(`${cliVersion(options.version, { args: argv2 })}
|
|
7292
7296
|
`);
|
|
7293
7297
|
return 0;
|
|
7294
7298
|
}
|
|
@@ -7340,6 +7344,7 @@ ${options.description}
|
|
|
7340
7344
|
Commands:
|
|
7341
7345
|
${matches.map((command) => ` ${command.path}`).join("\n")}
|
|
7342
7346
|
mcp, skill, tools [--json], describe <tool>, call <tool> [JSON|-], completions <bash|zsh|fish>, version
|
|
7347
|
+
Version output: --version --short or --version --json
|
|
7343
7348
|
Global flags: --db <path>, --json, --quiet, --compact, --help/-h, --version/-V/-v, --no-color
|
|
7344
7349
|
`
|
|
7345
7350
|
);
|
|
@@ -10425,6 +10430,7 @@ async function runMain(cmd, opts = {}) {
|
|
|
10425
10430
|
}
|
|
10426
10431
|
|
|
10427
10432
|
// src/cli/index.ts
|
|
10433
|
+
init_cli_version();
|
|
10428
10434
|
init_version();
|
|
10429
10435
|
|
|
10430
10436
|
// src/cli/commands/account.ts
|
|
@@ -11605,7 +11611,7 @@ var main = defineCommand({
|
|
|
11605
11611
|
meta: {
|
|
11606
11612
|
name: "ghostpaw-email",
|
|
11607
11613
|
version: emailVersion,
|
|
11608
|
-
description: "Local-first email CLI powered by @ghostpaw/email
|
|
11614
|
+
description: "Local-first email CLI powered by @ghostpaw/email.\nVersion output: --version --short or --version --json"
|
|
11609
11615
|
},
|
|
11610
11616
|
subCommands: {
|
|
11611
11617
|
mcp: defineCommand({
|
|
@@ -11635,6 +11641,12 @@ async function runEmailCli(args = process.argv.slice(2)) {
|
|
|
11635
11641
|
throw error;
|
|
11636
11642
|
});
|
|
11637
11643
|
}
|
|
11644
|
+
if (args.some((arg) => ["--version", "-V", "-v"].includes(arg))) {
|
|
11645
|
+
process.stdout.write(`${cliVersion(emailVersion, { args })}
|
|
11646
|
+
`);
|
|
11647
|
+
process.exitCode = 0;
|
|
11648
|
+
return;
|
|
11649
|
+
}
|
|
11638
11650
|
let index = 0;
|
|
11639
11651
|
while (index < args.length) {
|
|
11640
11652
|
const token = args[index];
|
package/dist/mcp-server.js
CHANGED
package/dist/mcp.cjs
CHANGED
|
@@ -5007,7 +5007,7 @@ var init_network = __esm({
|
|
|
5007
5007
|
});
|
|
5008
5008
|
|
|
5009
5009
|
// src/version.ts
|
|
5010
|
-
var emailVersion = "0.5.
|
|
5010
|
+
var emailVersion = "0.5.6";
|
|
5011
5011
|
|
|
5012
5012
|
// src/surface/email_mcp_instructions.ts
|
|
5013
5013
|
var emailMcpInstructions = "Read and search cached email offline. Configure live accounts with email account add before network operations. Inspect messages before replying or changing folders. Confirm recipients and content before sending; trash and folder deletion can remove mail. Credentials use the existing email CLI account configuration or EMAIL_* environment variables.";
|
package/dist/mcp.js
CHANGED
|
@@ -4983,7 +4983,7 @@ var init_network = __esm({
|
|
|
4983
4983
|
});
|
|
4984
4984
|
|
|
4985
4985
|
// src/version.ts
|
|
4986
|
-
var emailVersion = "0.5.
|
|
4986
|
+
var emailVersion = "0.5.6";
|
|
4987
4987
|
|
|
4988
4988
|
// src/surface/email_mcp_instructions.ts
|
|
4989
4989
|
var emailMcpInstructions = "Read and search cached email offline. Configure live accounts with email account add before network operations. Inspect messages before replying or changing folders. Confirm recipients and content before sending; trash and folder deletion can remove mail. Credentials use the existing email CLI account configuration or EMAIL_* environment variables.";
|
package/package.json
CHANGED