@wirecat/mail-cli 0.13.0 → 0.14.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 +18 -0
- package/README.md +4 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-EEOMFTKE.js → all-profiles-O7HQNZOF.js} +8 -7
- package/dist/bundle/{anthropic-FPSVNB3F.js → anthropic-SNA6PTVO.js} +5 -5
- package/dist/bundle/{app-server-3T6UVR7B.js → app-server-LBKMJMKN.js} +43 -42
- package/dist/bundle/{bun-MSNAKMDK.js → bun-KF5QK2YN.js} +2 -2
- package/dist/bundle/{bun-sqlite-GIBBI5DV.js → bun-sqlite-2DKMM2PT.js} +4 -4
- package/dist/bundle/{chunk-URC4ATBD.js → chunk-2A4BAMNF.js} +4 -4
- package/dist/bundle/{chunk-7FCPLSSM.js → chunk-2F7D6YMB.js} +2 -2
- package/dist/bundle/{chunk-FVZST7ZH.js → chunk-2KVR7FF3.js} +11 -88
- package/dist/bundle/{chunk-Y2O3DACO.js → chunk-3EAAEF5U.js} +1 -1
- package/dist/bundle/{chunk-2Y3RKROM.js → chunk-3YGYB3LJ.js} +33 -6
- package/dist/bundle/{chunk-OHFSAYZG.js → chunk-5C74F7XX.js} +4 -4
- package/dist/bundle/{chunk-ZXLJ5EKZ.js → chunk-6CZQJ5XR.js} +7 -7
- package/dist/bundle/{chunk-3CBK26T2.js → chunk-6EZ7XGRG.js} +1 -1
- package/dist/bundle/{chunk-EFA7FRFJ.js → chunk-7GSE57K3.js} +2 -2
- package/dist/bundle/{chunk-UFWCJUGA.js → chunk-7LDC275M.js} +6 -6
- package/dist/bundle/{chunk-OHDDGTCH.js → chunk-AOVOIXGR.js} +9 -9
- package/dist/bundle/{chunk-VSHQITKC.js → chunk-B5XAETYU.js} +2 -2
- package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
- package/dist/bundle/{chunk-V25TCQ3Z.js → chunk-DIP3ENSY.js} +1 -1
- package/dist/bundle/{chunk-WBI7J5B7.js → chunk-DPKHVBP3.js} +4 -4
- package/dist/bundle/{chunk-HANGU5HI.js → chunk-E7BTD4P6.js} +5 -5
- package/dist/bundle/{chunk-H5XCD6OG.js → chunk-ER6PJAPK.js} +2 -2
- package/dist/bundle/{chunk-JBLZ5XQG.js → chunk-F5SZVO3A.js} +3 -3
- package/dist/bundle/{chunk-3BC2XSNX.js → chunk-FTGCXIQA.js} +44 -24
- package/dist/bundle/{chunk-7L26RKOS.js → chunk-G53HRGTK.js} +16 -16
- package/dist/bundle/{chunk-H6Y2A4JA.js → chunk-H2ZURG7Q.js} +1 -1
- package/dist/bundle/{chunk-CJPEL2N5.js → chunk-H7OQ4YZV.js} +15 -15
- package/dist/bundle/{chunk-XV66LQXV.js → chunk-I62OTHDE.js} +2 -2
- package/dist/bundle/{chunk-CSJYZEFR.js → chunk-I7EWIIBC.js} +2 -2
- package/dist/bundle/{chunk-YMNF4QLY.js → chunk-IPKXRW6W.js} +22 -22
- package/dist/bundle/{chunk-M7JREJFC.js → chunk-IVDUR5Y4.js} +12 -0
- package/dist/bundle/{chunk-H3XWM2VA.js → chunk-KBFIKUCA.js} +27 -27
- package/dist/bundle/{chunk-7D7AKYQ2.js → chunk-KLLKDOO2.js} +2926 -1195
- package/dist/bundle/{chunk-UGXTDYUY.js → chunk-KQ5P5NLL.js} +1 -1
- package/dist/bundle/{chunk-SOCALLW5.js → chunk-M2YIJDBL.js} +5 -5
- package/dist/bundle/{chunk-6KDFUPBT.js → chunk-MQK2UNG4.js} +7 -7
- package/dist/bundle/{chunk-VNXCWZDW.js → chunk-MXG4L7NH.js} +248 -7
- package/dist/bundle/{chunk-NHVOJHHD.js → chunk-NGZW2JPK.js} +6 -6
- package/dist/bundle/{chunk-GQGJV53E.js → chunk-NVQUK2DH.js} +46 -46
- package/dist/bundle/{chunk-VNBQHV5H.js → chunk-OGK7LMYT.js} +5 -5
- package/dist/bundle/{chunk-BZBNBPCR.js → chunk-P547HU26.js} +9 -9
- package/dist/bundle/{chunk-XLCFCOT4.js → chunk-P62Z3Q35.js} +11 -11
- package/dist/bundle/{chunk-YHSXNUFQ.js → chunk-Q5EYTU3Q.js} +3 -3
- package/dist/bundle/{chunk-VD5UJUNR.js → chunk-QWRBAQZ7.js} +1 -1
- package/dist/bundle/{chunk-3QEYHTCQ.js → chunk-QZXHMQCM.js} +1 -1
- package/dist/bundle/{chunk-7CSK47S2.js → chunk-RE5SEGSR.js} +3 -3
- package/dist/bundle/{chunk-VMLGER4M.js → chunk-UHHARH5X.js} +192 -148
- package/dist/bundle/{chunk-LO66SLGD.js → chunk-UJEO3VWA.js} +1 -1
- package/dist/bundle/{chunk-JYZCISN7.js → chunk-UMWR5PKA.js} +12 -12
- package/dist/bundle/{chunk-XPBRNJ2V.js → chunk-V5ZID7KC.js} +1 -1
- package/dist/bundle/{chunk-MBWVZINS.js → chunk-VA3JKERH.js} +2 -2
- package/dist/bundle/{chunk-AXWTELO4.js → chunk-VERSKGJV.js} +2 -2
- package/dist/bundle/{chunk-6O6CM2ML.js → chunk-W643XZIR.js} +1 -1
- package/dist/bundle/{chunk-GIZILLRJ.js → chunk-WBJQEB6E.js} +11 -11
- package/dist/bundle/{chunk-UUBAWUUI.js → chunk-WVWNKZI4.js} +562 -404
- package/dist/bundle/chunk-X5XIFNTI.js +35 -0
- package/dist/bundle/{chunk-TBG3FRS6.js → chunk-XPREXN3W.js} +2 -2
- package/dist/bundle/{chunk-ZSS22YHM.js → chunk-XRJIQC6P.js} +1 -1
- package/dist/bundle/{chunk-5XTJUQZ5.js → chunk-YG4OI3HJ.js} +456 -201
- package/dist/bundle/{chunk-IGSHWMWC.js → chunk-ZCPUKUST.js} +1 -1
- package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
- package/dist/bundle/{decode-YRTMNHC6.js → decode-X7Y2VSYZ.js} +4 -4
- package/dist/bundle/{dispatch-BCS2RDF4.js → dispatch-OWNO2CMC.js} +1 -1
- package/dist/bundle/{dist-NOBSXRL2.js → dist-L7FNC74Q.js} +40 -11
- package/dist/bundle/{echarts-5UKZVIF6.js → echarts-5AB3LFVD.js} +2 -2
- package/dist/bundle/{embed-G62XY6BJ.js → embed-VBS5LRCE.js} +5 -5
- package/dist/bundle/{embedder-SCHGLA74.js → embedder-VFSYBDKK.js} +8 -8
- package/dist/bundle/{failure-N5S6ZS62.js → failure-E534GZDF.js} +1 -1
- package/dist/bundle/{first-run-DPF2BBQN.js → first-run-NO2ODH2W.js} +8 -8
- package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
- package/dist/bundle/{instructions-7RP5OKLE.js → instructions-52W6ZQTU.js} +1 -1
- package/dist/bundle/mail.js +5 -5
- package/dist/bundle/{node-ENCKD6SS.js → node-TL2PBNKO.js} +2 -2
- package/dist/bundle/{node-sqlite-4ICXMPYY.js → node-sqlite-757HNQAD.js} +5 -5
- package/dist/bundle/{oauth-CX2WYMGN.js → oauth-VDRNJ7KN.js} +6 -6
- package/dist/bundle/{open-HQZYHMVE.js → open-NUWYOKPO.js} +4 -4
- package/dist/bundle/{openai-3ONJIA3F.js → openai-YLBFVK5X.js} +12 -12
- package/dist/bundle/{process-OK3HRPMD.js → process-PWAGP6YY.js} +1 -1
- package/dist/bundle/{program-FLKUE6LL.js → program-PPUPVL7O.js} +755 -646
- package/dist/bundle/{prompt-ZWKUQ42Y.js → prompt-M5U66RVJ.js} +4 -4
- package/dist/bundle/{recognize-PHDYO6DC.js → recognize-DCMDZA2U.js} +3 -3
- package/dist/bundle/{remote-4CX7GFMU.js → remote-4SHI5WJG.js} +6 -6
- package/dist/bundle/{rerank-ZCZTGXDQ.js → rerank-DYMZMNPQ.js} +6 -6
- package/dist/bundle/{serve-3LBS7CPR.js → serve-HO3WME4G.js} +8 -8
- package/dist/bundle/server-244FHPY4.js +64 -0
- package/dist/bundle/{server-2BKI2OQP.js → server-R3TIPRZN.js} +35 -34
- package/dist/bundle/{sqlite-runtime-J5T7SR5W.js → sqlite-runtime-DWRITUIH.js} +5 -5
- package/dist/bundle/{state-TIRNYVEL.js → state-QOMUDOGF.js} +5 -5
- package/dist/bundle/{store-F7ZXMIAP.js → store-LHHMOE5V.js} +21 -14
- package/dist/bundle/{store-NGE2E7KZ.js → store-RGO6IABA.js} +13 -12
- package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-72CGQMAZ.js +0 -18
- package/dist/bundle/command-contract-6QSZ5QHQ.js +0 -33
- package/dist/bundle/first-screen-4MRKF6RQ.js +0 -31
- package/dist/bundle/server-X5F7VD2E.js +0 -63
- package/dist/bundle/store-maintenance-command-QZV76KAH.js +0 -53
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
resolvePaths
|
|
5
|
+
} from "./chunk-3EAAEF5U.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
|
+
import { userInfo } from "node:os";
|
|
12
|
+
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
13
|
+
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
14
|
+
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
15
|
+
var accountHome = /* @__PURE__ */ __name(() => {
|
|
16
|
+
try {
|
|
17
|
+
return userInfo().homedir;
|
|
18
|
+
} catch {
|
|
19
|
+
return void 0;
|
|
20
|
+
}
|
|
21
|
+
}, "accountHome");
|
|
22
|
+
var refuseOwnerStoreInTests = /* @__PURE__ */ __name((file, env = process.env, home = accountHome()) => {
|
|
23
|
+
if (!env.VITEST || !home || file === ":memory:")
|
|
24
|
+
return;
|
|
25
|
+
const inside = relative(wirecatDirectory({ HOME: home, USERPROFILE: home }), resolve(file));
|
|
26
|
+
if (inside.startsWith("..") || isAbsolute(inside))
|
|
27
|
+
return;
|
|
28
|
+
throw new Error(`a test tried to open ${file}, in the owner's real WireCat folder; give it a MESSAGING_STORE or HOME of its own`);
|
|
29
|
+
}, "refuseOwnerStoreInTests");
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
wirecatDirectory,
|
|
33
|
+
storePath,
|
|
34
|
+
refuseOwnerStoreInTests
|
|
35
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H2ZURG7Q.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-CCHHEMPM.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|