@wirecat/mail-cli 0.3.0 → 0.5.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 +24 -0
- package/README.md +10 -7
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-52LCOKSL.js → all-profiles-GR5JXYEQ.js} +5 -5
- package/dist/bundle/{anthropic-HPW7PLTT.js → anthropic-REBXE65F.js} +3 -3
- package/dist/bundle/{app-server-Y7XSPVHJ.js → app-server-QJ7ICQXZ.js} +39 -39
- package/dist/bundle/{bun-B7YXDIMT.js → bun-WAX4QHW5.js} +2 -2
- package/dist/bundle/{bun-sqlite-TTTKY7H2.js → bun-sqlite-5S7TQ4SG.js} +2 -2
- package/dist/bundle/{chunk-FGNTGLWA.js → chunk-2FXVBCA3.js} +3 -3
- package/dist/bundle/{chunk-K6SIGXRS.js → chunk-2MRECWJZ.js} +5 -5
- package/dist/bundle/{chunk-X7TFD5SX.js → chunk-2U4IANVV.js} +1 -1
- package/dist/bundle/{chunk-KALDYMKJ.js → chunk-2YQNBIDQ.js} +3 -3
- package/dist/bundle/{chunk-XD3TL4BK.js → chunk-4BMNP2FT.js} +1 -1
- package/dist/bundle/{chunk-732GKOLO.js → chunk-4XJ4AM3K.js} +10 -10
- package/dist/bundle/{chunk-RZCFEASJ.js → chunk-5CXAH4Y6.js} +195 -195
- package/dist/bundle/{chunk-C2THROZU.js → chunk-5FK6RD4M.js} +42 -42
- package/dist/bundle/{chunk-RORC2FW7.js → chunk-5INWLYBD.js} +2 -2
- package/dist/bundle/{chunk-5LY3OS7U.js → chunk-6EO7GVYJ.js} +1 -1
- package/dist/bundle/{chunk-JDOOPGKW.js → chunk-6GE3EADU.js} +2 -2
- package/dist/bundle/{chunk-4UOEUEZZ.js → chunk-6TY3DGCC.js} +4 -4
- package/dist/bundle/{chunk-Y2HGQK7A.js → chunk-7A7BHABA.js} +1 -1
- package/dist/bundle/{chunk-TLZWUADZ.js → chunk-7F3NDIYL.js} +5 -5
- package/dist/bundle/{chunk-V7NZTJKU.js → chunk-7JCRQX56.js} +7 -7
- package/dist/bundle/{chunk-GX2M3AOO.js → chunk-7XNPSIWD.js} +2 -2
- package/dist/bundle/{chunk-MXUUQXMA.js → chunk-AFCGOZR7.js} +5 -5
- package/dist/bundle/{chunk-DKKCQMDM.js → chunk-B5WSIWY5.js} +16 -16
- package/dist/bundle/{chunk-ZIJJNH47.js → chunk-BFJV4FWJ.js} +1 -1
- package/dist/bundle/{chunk-JHNLU42I.js → chunk-BLS5YG77.js} +1 -1
- package/dist/bundle/{chunk-4PXWXI2U.js → chunk-CEAANMJ2.js} +2 -2
- package/dist/bundle/{chunk-IXHLMSHV.js → chunk-DXDQOZ2P.js} +2 -2
- package/dist/bundle/{chunk-TNQOKGJS.js → chunk-EB3R2PV3.js} +21 -21
- package/dist/bundle/{chunk-XQVGIW4R.js → chunk-EL554DV2.js} +2 -2
- package/dist/bundle/{chunk-QTWIZKUI.js → chunk-ESNNQA7D.js} +26 -26
- package/dist/bundle/{chunk-SRMJ6LLC.js → chunk-F3NYA4KN.js} +5 -5
- package/dist/bundle/{chunk-LCA5KC34.js → chunk-FSUNGHRI.js} +43 -43
- package/dist/bundle/{chunk-VTJDEWMB.js → chunk-HCMUGUAG.js} +2 -2
- package/dist/bundle/{chunk-FUXSKWWJ.js → chunk-IBYTYIYO.js} +46 -46
- package/dist/bundle/{chunk-KXVZ373I.js → chunk-IWDOGGMY.js} +299 -266
- package/dist/bundle/{chunk-3RDTVH3H.js → chunk-JJBQPA7D.js} +3 -3
- package/dist/bundle/{chunk-O2F54PUO.js → chunk-KIDF77MA.js} +1 -1
- package/dist/bundle/{chunk-C6E3VFUX.js → chunk-LFRHIXCF.js} +2 -2
- package/dist/bundle/{chunk-N5WIUNOT.js → chunk-LNS27BTB.js} +1 -1
- package/dist/bundle/{chunk-JXYFIUVX.js → chunk-LOA4X6JW.js} +4 -4
- package/dist/bundle/{chunk-PYIJCWCH.js → chunk-M6BDHZON.js} +11 -11
- package/dist/bundle/{chunk-5SSFYIFF.js → chunk-MMDCL42A.js} +5 -4
- package/dist/bundle/{chunk-HS25KDT3.js → chunk-MQUJEQTU.js} +1 -1
- package/dist/bundle/{chunk-TL7PE6JU.js → chunk-PJCTWPJB.js} +6 -6
- package/dist/bundle/{chunk-I2ARI6FI.js → chunk-QXOSGGKS.js} +1 -1
- package/dist/bundle/{chunk-YVIX7FHL.js → chunk-S677WGOQ.js} +5 -5
- package/dist/bundle/{chunk-FX77WAQL.js → chunk-SQ7KOBRA.js} +6 -6
- package/dist/bundle/{chunk-PL6UPJIL.js → chunk-SWJAG5IE.js} +1 -1
- package/dist/bundle/{chunk-MHNEMDH3.js → chunk-VDAIJM5L.js} +13 -13
- package/dist/bundle/{chunk-H2JVXO5V.js → chunk-VXAZZGXE.js} +21 -21
- package/dist/bundle/{chunk-LJDOPCPW.js → chunk-WNCCYHRV.js} +91 -91
- package/dist/bundle/{chunk-RMYYKBFW.js → chunk-WNI5BZFB.js} +7 -7
- package/dist/bundle/{chunk-37MSU5O6.js → chunk-YD5WV757.js} +2 -2
- package/dist/bundle/{chunk-O3DRPTWF.js → chunk-YKPBC3NL.js} +1 -1
- package/dist/bundle/{chunk-RVIMMCHF.js → chunk-YRGBZZUW.js} +9 -9
- package/dist/bundle/{command-contract-3HA7CZEQ.js → command-contract-GPUED3GT.js} +13 -13
- package/dist/bundle/{decode-VLI3MAXE.js → decode-D7BDVIVB.js} +2 -2
- package/dist/bundle/{dist-C7LAAMNF.js → dist-KJOAJ6NF.js} +14 -14
- package/dist/bundle/{echarts-POTU3SHN.js → echarts-IVRX7XHP.js} +2 -2
- package/dist/bundle/{embed-J2DEEEUF.js → embed-X527RBTG.js} +3 -3
- package/dist/bundle/{embedder-5N56V7YJ.js → embedder-F4PSJS6S.js} +6 -6
- package/dist/bundle/{first-run-XILZE4PI.js → first-run-M5CIX6NA.js} +5 -5
- package/dist/bundle/{first-screen-43VLEDWZ.js → first-screen-M7MT776O.js} +14 -14
- package/dist/bundle/{instructions-B7AUZXPL.js → instructions-UX36BT5F.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-SZAO6HTA.js → node-OXT7WE2T.js} +2 -2
- package/dist/bundle/{node-sqlite-O34FFLRV.js → node-sqlite-X2PSEHA4.js} +2 -2
- package/dist/bundle/{oauth-YYTLIPJT.js → oauth-MYK4BSYN.js} +4 -4
- package/dist/bundle/{open-SWJGI6H4.js → open-GONIP2DH.js} +1 -1
- package/dist/bundle/{openai-GYXWCQOV.js → openai-YJFNUOQT.js} +10 -10
- package/dist/bundle/{process-GLVWCUMK.js → process-7IEUUSRK.js} +1 -1
- package/dist/bundle/{program-HW73TGIF.js → program-Q73TTG3E.js} +927 -610
- package/dist/bundle/{prompt-OZLHHGCD.js → prompt-SKQ72KN7.js} +2 -2
- package/dist/bundle/{recognize-RDQSGHC5.js → recognize-GC7CU2DB.js} +1 -1
- package/dist/bundle/{remote-BKU5P3GK.js → remote-UEXFZP2I.js} +4 -4
- package/dist/bundle/{rerank-EQIXYHKB.js → rerank-2U2NDEZP.js} +4 -4
- package/dist/bundle/{serve-S6K5HKWG.js → serve-OOGKFEWL.js} +6 -6
- package/dist/bundle/server-4JMHDHZ7.js +63 -0
- package/dist/bundle/{server-4VRVHPQC.js → server-FZ3LFQTF.js} +31 -31
- package/dist/bundle/{sqlite-runtime-OOE455YM.js → sqlite-runtime-GIQSW6LJ.js} +2 -2
- package/dist/bundle/{state-OLPOJ2TY.js → state-EMFXPQVZ.js} +3 -3
- package/dist/bundle/{store-WFV26CWY.js → store-BDU4UPNK.js} +11 -11
- package/dist/bundle/{store-6AVCPLH4.js → store-LDI62AUG.js} +11 -9
- package/dist/bundle/store-maintenance-command-OFRPORN2.js +52 -0
- package/dist/commands/read.d.ts +3 -0
- package/dist/commands/read.d.ts.map +1 -0
- package/dist/commands/read.js +33 -0
- package/dist/commands/read.js.map +1 -0
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -2
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/mail-cli/SKILL.md +6 -2
- package/dist/bundle/server-WK6DRJX2.js +0 -63
- package/dist/bundle/store-maintenance-command-S6235I3W.js +0 -52
|
@@ -2,8 +2,8 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readSecret
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-LFRHIXCF.js";
|
|
6
|
+
import "./chunk-BFJV4FWJ.js";
|
|
7
7
|
import "./chunk-J3QXTBD2.js";
|
|
8
8
|
import "./chunk-LQ37ALDJ.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-CEAANMJ2.js";
|
|
12
|
+
import "./chunk-F3NYA4KN.js";
|
|
13
|
+
import "./chunk-JJBQPA7D.js";
|
|
14
|
+
import "./chunk-SWJAG5IE.js";
|
|
15
15
|
import "./chunk-J3QXTBD2.js";
|
|
16
16
|
import "./chunk-LQ37ALDJ.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-F3NYA4KN.js";
|
|
8
|
+
import "./chunk-JJBQPA7D.js";
|
|
9
|
+
import "./chunk-SWJAG5IE.js";
|
|
10
10
|
import "./chunk-J3QXTBD2.js";
|
|
11
11
|
import "./chunk-LQ37ALDJ.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
|
|
19
19
|
var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
|
|
20
20
|
const { ort, tokenizer, session } = await loadModel(model, directory, threads);
|
|
21
21
|
const typeIds = session.inputNames.includes("token_type_ids");
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4BMNP2FT.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6GE3EADU.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
calledTools,
|
|
21
21
|
httpActivityFile,
|
|
22
22
|
httpLock
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-6TY3DGCC.js";
|
|
24
|
+
import "./chunk-HCMUGUAG.js";
|
|
25
|
+
import "./chunk-QXOSGGKS.js";
|
|
26
26
|
import "./chunk-J3QXTBD2.js";
|
|
27
27
|
import "./chunk-LQ37ALDJ.js";
|
|
28
28
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
37
37
|
import { randomUUID } from "node:crypto";
|
|
38
38
|
var MCP_PATH = "/mcp";
|
|
39
39
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PER_RUN,
|
|
5
|
+
createServer,
|
|
6
|
+
envelope,
|
|
7
|
+
serveOverHttpUntilStopped,
|
|
8
|
+
serveOverStdio
|
|
9
|
+
} from "./chunk-ESNNQA7D.js";
|
|
10
|
+
import "./chunk-VDAIJM5L.js";
|
|
11
|
+
import "./chunk-VXAZZGXE.js";
|
|
12
|
+
import "./chunk-YRGBZZUW.js";
|
|
13
|
+
import "./chunk-5INWLYBD.js";
|
|
14
|
+
import "./chunk-6EO7GVYJ.js";
|
|
15
|
+
import "./chunk-7A7BHABA.js";
|
|
16
|
+
import "./chunk-7XNPSIWD.js";
|
|
17
|
+
import "./chunk-5D4AEUVA.js";
|
|
18
|
+
import "./chunk-EB3R2PV3.js";
|
|
19
|
+
import "./chunk-5CXAH4Y6.js";
|
|
20
|
+
import "./chunk-M6BDHZON.js";
|
|
21
|
+
import "./chunk-S677WGOQ.js";
|
|
22
|
+
import "./chunk-2U4IANVV.js";
|
|
23
|
+
import "./chunk-BFJV4FWJ.js";
|
|
24
|
+
import "./chunk-AFCGOZR7.js";
|
|
25
|
+
import "./chunk-WNCCYHRV.js";
|
|
26
|
+
import "./chunk-IBYTYIYO.js";
|
|
27
|
+
import "./chunk-MMDCL42A.js";
|
|
28
|
+
import "./chunk-WNI5BZFB.js";
|
|
29
|
+
import "./chunk-ZD3WUGR2.js";
|
|
30
|
+
import "./chunk-P7P5MNAU.js";
|
|
31
|
+
import "./chunk-EL554DV2.js";
|
|
32
|
+
import "./chunk-6TY3DGCC.js";
|
|
33
|
+
import "./chunk-HCMUGUAG.js";
|
|
34
|
+
import "./chunk-QXOSGGKS.js";
|
|
35
|
+
import "./chunk-CEAANMJ2.js";
|
|
36
|
+
import "./chunk-B5WSIWY5.js";
|
|
37
|
+
import "./chunk-2FXVBCA3.js";
|
|
38
|
+
import "./chunk-IWDOGGMY.js";
|
|
39
|
+
import "./chunk-7F3NDIYL.js";
|
|
40
|
+
import "./chunk-SQ7KOBRA.js";
|
|
41
|
+
import "./chunk-5FK6RD4M.js";
|
|
42
|
+
import "./chunk-NPGVOZVK.js";
|
|
43
|
+
import "./chunk-7JCRQX56.js";
|
|
44
|
+
import "./chunk-LOA4X6JW.js";
|
|
45
|
+
import "./chunk-2MRECWJZ.js";
|
|
46
|
+
import "./chunk-KIDF77MA.js";
|
|
47
|
+
import "./chunk-QX7RCLRS.js";
|
|
48
|
+
import "./chunk-D72URWJE.js";
|
|
49
|
+
import "./chunk-F3NYA4KN.js";
|
|
50
|
+
import "./chunk-JJBQPA7D.js";
|
|
51
|
+
import "./chunk-SWJAG5IE.js";
|
|
52
|
+
import "./chunk-J3QXTBD2.js";
|
|
53
|
+
import "./chunk-LQ37ALDJ.js";
|
|
54
|
+
import "./chunk-Y5E2WNWB.js";
|
|
55
|
+
import "./chunk-5BVIWP3S.js";
|
|
56
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
57
|
+
export {
|
|
58
|
+
PER_RUN,
|
|
59
|
+
createServer,
|
|
60
|
+
envelope,
|
|
61
|
+
serveOverHttpUntilStopped,
|
|
62
|
+
serveOverStdio
|
|
63
|
+
};
|
|
@@ -2,34 +2,34 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YKPBC3NL.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VDAIJM5L.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-YRGBZZUW.js";
|
|
17
|
+
import "./chunk-5INWLYBD.js";
|
|
18
18
|
import {
|
|
19
19
|
callerOf,
|
|
20
20
|
serveStdio
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7XNPSIWD.js";
|
|
22
22
|
import {
|
|
23
23
|
McpServer
|
|
24
24
|
} from "./chunk-5D4AEUVA.js";
|
|
25
25
|
import {
|
|
26
26
|
wholeList
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-5CXAH4Y6.js";
|
|
28
|
+
import "./chunk-M6BDHZON.js";
|
|
29
|
+
import "./chunk-S677WGOQ.js";
|
|
30
|
+
import "./chunk-2U4IANVV.js";
|
|
31
|
+
import "./chunk-BFJV4FWJ.js";
|
|
32
|
+
import "./chunk-WNCCYHRV.js";
|
|
33
33
|
import {
|
|
34
34
|
MESSENGER_CHANGE_REFUSAL,
|
|
35
35
|
changesMessenger,
|
|
@@ -37,30 +37,30 @@ import {
|
|
|
37
37
|
itemOf,
|
|
38
38
|
readOnlyLockOf,
|
|
39
39
|
readOnlyRefusal
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-IBYTYIYO.js";
|
|
41
|
+
import "./chunk-MMDCL42A.js";
|
|
42
|
+
import "./chunk-WNI5BZFB.js";
|
|
43
43
|
import "./chunk-ZD3WUGR2.js";
|
|
44
44
|
import "./chunk-P7P5MNAU.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-EL554DV2.js";
|
|
46
|
+
import "./chunk-QXOSGGKS.js";
|
|
47
|
+
import "./chunk-CEAANMJ2.js";
|
|
48
|
+
import "./chunk-B5WSIWY5.js";
|
|
49
|
+
import "./chunk-2FXVBCA3.js";
|
|
50
|
+
import "./chunk-IWDOGGMY.js";
|
|
51
|
+
import "./chunk-7F3NDIYL.js";
|
|
52
|
+
import "./chunk-SQ7KOBRA.js";
|
|
53
|
+
import "./chunk-5FK6RD4M.js";
|
|
54
54
|
import "./chunk-NPGVOZVK.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-7JCRQX56.js";
|
|
56
|
+
import "./chunk-LOA4X6JW.js";
|
|
57
|
+
import "./chunk-2MRECWJZ.js";
|
|
58
|
+
import "./chunk-KIDF77MA.js";
|
|
59
59
|
import "./chunk-QX7RCLRS.js";
|
|
60
60
|
import "./chunk-D72URWJE.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-F3NYA4KN.js";
|
|
62
|
+
import "./chunk-JJBQPA7D.js";
|
|
63
|
+
import "./chunk-SWJAG5IE.js";
|
|
64
64
|
import "./chunk-J3QXTBD2.js";
|
|
65
65
|
import {
|
|
66
66
|
mcpErrorResult,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
__name
|
|
73
73
|
} from "./chunk-ZVVMGPBJ.js";
|
|
74
74
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.521.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_66d5ccffb8b88e4b24c051b84ef1952a/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
76
76
|
import { randomUUID } from "node:crypto";
|
|
77
77
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
78
78
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ensureSqlite,
|
|
5
5
|
nodeRuntime,
|
|
6
6
|
relay
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-DXDQOZ2P.js";
|
|
8
|
+
import "./chunk-2MRECWJZ.js";
|
|
9
9
|
import "./chunk-J3QXTBD2.js";
|
|
10
10
|
import "./chunk-LQ37ALDJ.js";
|
|
11
11
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
readHttpLock,
|
|
13
13
|
readStored,
|
|
14
14
|
signedInClients
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-6TY3DGCC.js";
|
|
16
|
+
import "./chunk-HCMUGUAG.js";
|
|
17
|
+
import "./chunk-QXOSGGKS.js";
|
|
18
18
|
import "./chunk-J3QXTBD2.js";
|
|
19
19
|
import "./chunk-LQ37ALDJ.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
previewDocumentTransfer,
|
|
9
9
|
previewProjectAnnotationSnapshot,
|
|
10
10
|
snapshotProjectAnnotations
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B5WSIWY5.js";
|
|
12
12
|
import {
|
|
13
13
|
note,
|
|
14
14
|
organization,
|
|
15
15
|
project,
|
|
16
16
|
reminder
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2FXVBCA3.js";
|
|
18
18
|
import {
|
|
19
19
|
CATALOG_QUERY,
|
|
20
20
|
EVENT_FIELDS,
|
|
@@ -54,8 +54,8 @@ import {
|
|
|
54
54
|
resetSearchIndex,
|
|
55
55
|
searchIndexState,
|
|
56
56
|
validateEvidenceFindings
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-IWDOGGMY.js";
|
|
58
|
+
import "./chunk-7F3NDIYL.js";
|
|
59
59
|
import {
|
|
60
60
|
CLOSED_STATES,
|
|
61
61
|
FACT_STATUSES,
|
|
@@ -71,19 +71,19 @@ import {
|
|
|
71
71
|
priorityLabel,
|
|
72
72
|
priorityOf,
|
|
73
73
|
priorityOption
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-SQ7KOBRA.js";
|
|
75
|
+
import "./chunk-5FK6RD4M.js";
|
|
76
76
|
import "./chunk-NPGVOZVK.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-7JCRQX56.js";
|
|
78
|
+
import "./chunk-LOA4X6JW.js";
|
|
79
79
|
import {
|
|
80
80
|
PRAGMAS,
|
|
81
81
|
openCache
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-2MRECWJZ.js";
|
|
83
|
+
import "./chunk-KIDF77MA.js";
|
|
84
84
|
import {
|
|
85
85
|
storePath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-SWJAG5IE.js";
|
|
87
87
|
import "./chunk-J3QXTBD2.js";
|
|
88
88
|
import "./chunk-LQ37ALDJ.js";
|
|
89
89
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
MENTION_QUERY,
|
|
12
12
|
MENTION_STATUSES,
|
|
13
13
|
OTHER_SOURCES,
|
|
14
|
+
THREAD_COLUMNS,
|
|
14
15
|
TRACKED_CHAT_COLUMNS,
|
|
15
16
|
accountGroupsOf,
|
|
16
17
|
attachmentColumns,
|
|
@@ -53,16 +54,16 @@ import {
|
|
|
53
54
|
threadConversation,
|
|
54
55
|
titlePart,
|
|
55
56
|
vectorIndexCounts
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-IWDOGGMY.js";
|
|
58
|
+
import "./chunk-7F3NDIYL.js";
|
|
59
|
+
import "./chunk-SQ7KOBRA.js";
|
|
60
|
+
import "./chunk-5FK6RD4M.js";
|
|
60
61
|
import "./chunk-NPGVOZVK.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-7JCRQX56.js";
|
|
63
|
+
import "./chunk-LOA4X6JW.js";
|
|
64
|
+
import "./chunk-2MRECWJZ.js";
|
|
65
|
+
import "./chunk-KIDF77MA.js";
|
|
66
|
+
import "./chunk-SWJAG5IE.js";
|
|
66
67
|
import "./chunk-J3QXTBD2.js";
|
|
67
68
|
import "./chunk-LQ37ALDJ.js";
|
|
68
69
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -79,6 +80,7 @@ export {
|
|
|
79
80
|
MENTION_QUERY,
|
|
80
81
|
MENTION_STATUSES,
|
|
81
82
|
OTHER_SOURCES,
|
|
83
|
+
THREAD_COLUMNS,
|
|
82
84
|
TRACKED_CHAT_COLUMNS,
|
|
83
85
|
accountGroupsOf,
|
|
84
86
|
attachmentColumns,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
buildStems,
|
|
5
|
+
storeMaintenanceCommands,
|
|
6
|
+
storeSummary
|
|
7
|
+
} from "./chunk-FSUNGHRI.js";
|
|
8
|
+
import "./chunk-BLS5YG77.js";
|
|
9
|
+
import "./chunk-EB3R2PV3.js";
|
|
10
|
+
import "./chunk-5CXAH4Y6.js";
|
|
11
|
+
import "./chunk-M6BDHZON.js";
|
|
12
|
+
import "./chunk-S677WGOQ.js";
|
|
13
|
+
import "./chunk-LNS27BTB.js";
|
|
14
|
+
import "./chunk-2U4IANVV.js";
|
|
15
|
+
import "./chunk-LFRHIXCF.js";
|
|
16
|
+
import "./chunk-BFJV4FWJ.js";
|
|
17
|
+
import "./chunk-HTQTIKWP.js";
|
|
18
|
+
import "./chunk-IBYTYIYO.js";
|
|
19
|
+
import "./chunk-MMDCL42A.js";
|
|
20
|
+
import "./chunk-WNI5BZFB.js";
|
|
21
|
+
import "./chunk-ZD3WUGR2.js";
|
|
22
|
+
import "./chunk-P7P5MNAU.js";
|
|
23
|
+
import "./chunk-EL554DV2.js";
|
|
24
|
+
import "./chunk-HCMUGUAG.js";
|
|
25
|
+
import "./chunk-QXOSGGKS.js";
|
|
26
|
+
import "./chunk-CEAANMJ2.js";
|
|
27
|
+
import "./chunk-B5WSIWY5.js";
|
|
28
|
+
import "./chunk-2FXVBCA3.js";
|
|
29
|
+
import "./chunk-IWDOGGMY.js";
|
|
30
|
+
import "./chunk-7F3NDIYL.js";
|
|
31
|
+
import "./chunk-SQ7KOBRA.js";
|
|
32
|
+
import "./chunk-5FK6RD4M.js";
|
|
33
|
+
import "./chunk-NPGVOZVK.js";
|
|
34
|
+
import "./chunk-7JCRQX56.js";
|
|
35
|
+
import "./chunk-LOA4X6JW.js";
|
|
36
|
+
import "./chunk-2MRECWJZ.js";
|
|
37
|
+
import "./chunk-KIDF77MA.js";
|
|
38
|
+
import "./chunk-QX7RCLRS.js";
|
|
39
|
+
import "./chunk-D72URWJE.js";
|
|
40
|
+
import "./chunk-F3NYA4KN.js";
|
|
41
|
+
import "./chunk-JJBQPA7D.js";
|
|
42
|
+
import "./chunk-SWJAG5IE.js";
|
|
43
|
+
import "./chunk-J3QXTBD2.js";
|
|
44
|
+
import "./chunk-LQ37ALDJ.js";
|
|
45
|
+
import "./chunk-Y5E2WNWB.js";
|
|
46
|
+
import "./chunk-5BVIWP3S.js";
|
|
47
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
48
|
+
export {
|
|
49
|
+
buildStems,
|
|
50
|
+
storeMaintenanceCommands,
|
|
51
|
+
storeSummary
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/commands/read.ts"],"names":[],"mappings":"AAqCA,8GAA8G;AAC9G,eAAO,MAAM,YAAY,qCAAgC,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { CliError } from "@wirecat/cli-base";
|
|
3
|
+
import { baseContext } from "@wirecat/cli-core/cli";
|
|
4
|
+
import { mailReadCommands } from "@wirecat/cli-core/mail/cli";
|
|
5
|
+
import { storePath } from "@wirecat/cli-core/store";
|
|
6
|
+
import { configuration } from "../config.js";
|
|
7
|
+
import { IDENTITY } from "../identity.js";
|
|
8
|
+
import { openMailStore } from "../store.js";
|
|
9
|
+
import { contextOf } from "./context.js";
|
|
10
|
+
const reads = {
|
|
11
|
+
app: IDENTITY,
|
|
12
|
+
read: async (command, work) => {
|
|
13
|
+
const context = contextOf(command);
|
|
14
|
+
const address = context.settings.mailbox.address;
|
|
15
|
+
if (!address)
|
|
16
|
+
throw new CliError("configuration_error", `profile ${context.profile} has no address; run \`${IDENTITY.command} ${context.profile} session start --address <email>\``);
|
|
17
|
+
if (!existsSync(storePath(context.env)))
|
|
18
|
+
throw new CliError("not_found", `no mail is stored yet; run \`${IDENTITY.command} ${context.profile} sync\` first`);
|
|
19
|
+
return baseContext(command, configuration.resolveSettings).run(async () => {
|
|
20
|
+
const store = await openMailStore(context.env);
|
|
21
|
+
context.environment.trackCloseable?.(store);
|
|
22
|
+
try {
|
|
23
|
+
return await work(store, { provider: "email", account: address.toLowerCase() });
|
|
24
|
+
}
|
|
25
|
+
finally {
|
|
26
|
+
await store.close();
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
/** `search messages`, `messages show`, `conversations list|show`: cli-core's, over this profile's mailbox. */
|
|
32
|
+
export const readCommands = () => mailReadCommands(reads);
|
|
33
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/commands/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAkB,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAA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,CAAC,CAAA"}
|
package/dist/identity.js
CHANGED
|
@@ -4,7 +4,7 @@ export const IDENTITY = {
|
|
|
4
4
|
command: "mail",
|
|
5
5
|
appName: "mail-cli",
|
|
6
6
|
envPrefix: "MAIL",
|
|
7
|
-
description: "read mail over IMAP into the shared store, with app passwords kept in the OS keyring",
|
|
7
|
+
description: "read mail over IMAP into the shared store and search it, with app passwords kept in the OS keyring",
|
|
8
8
|
version: VERSION,
|
|
9
9
|
issues: "https://github.com/WireCatLabs/mail-cli/issues/new",
|
|
10
10
|
messenger: false,
|
package/dist/identity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAA;AAE1C,MAAM,CAAC,MAAM,QAAQ,GAAgB;IACnC,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAA;AAE1C,MAAM,CAAC,MAAM,QAAQ,GAAgB;IACnC,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,oGAAoG;IACjH,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,oDAAoD;IAC5D,SAAS,EAAE,KAAK;IAChB,sHAAsH;IACtH,SAAS,EAAE,KAAK;IAChB,gBAAgB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,6BAA6B,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAA"}
|
package/dist/program.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAEA,OAAO,EAQL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,UAAU,EAMhB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAEA,OAAO,EAQL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,UAAU,EAMhB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAqBxC,eAAO,MAAM,UAAU,QAAO,iBAsC5B,CAAA;AAEF,eAAO,MAAM,aAAa,aAAc,cAAc,KAAG,OAAqD,CAAA;AAE9G,eAAO,MAAM,GAAG,SAAU,MAAM,EAAE,YAAY,UAAU,KAAG,OAAO,CAAC,MAAM,CAA2C,CAAA"}
|
package/dist/program.js
CHANGED
|
@@ -4,6 +4,7 @@ import { appDoctorCommand, appMcpCommand, baseContext, commandsCommand, configCo
|
|
|
4
4
|
import { appUpdate } from "@wirecat/cli-core/update";
|
|
5
5
|
import { accountCommand } from "./commands/account.js";
|
|
6
6
|
import { foldersCommand } from "./commands/folders.js";
|
|
7
|
+
import { readCommands } from "./commands/read.js";
|
|
7
8
|
import { sessionCommand } from "./commands/session.js";
|
|
8
9
|
import { statusCommand } from "./commands/status.js";
|
|
9
10
|
import { syncCommand } from "./commands/sync.js";
|
|
@@ -29,6 +30,7 @@ export const definition = () => ({
|
|
|
29
30
|
foldersCommand(),
|
|
30
31
|
syncCommand(),
|
|
31
32
|
statusCommand(),
|
|
33
|
+
...readCommands(),
|
|
32
34
|
appDoctorCommand(IDENTITY, configuration, { packageName: PACKAGE }),
|
|
33
35
|
skillCommand(IDENTITY, SKILL),
|
|
34
36
|
appMcpCommand(IDENTITY, configuration, {
|
|
@@ -47,8 +49,8 @@ export const definition = () => ({
|
|
|
47
49
|
runsCommand(IDENTITY),
|
|
48
50
|
scheduleCommandFor({
|
|
49
51
|
app: IDENTITY,
|
|
50
|
-
context: (command) => {
|
|
51
|
-
const base = baseContext(command, configuration.resolveSettings);
|
|
52
|
+
context: (command, resolving) => {
|
|
53
|
+
const base = baseContext(command, (flags, options) => configuration.resolveSettings(flags, { ...options, ...resolving }));
|
|
52
54
|
return { ...base, profile: base.settings.profile };
|
|
53
55
|
},
|
|
54
56
|
}),
|
package/dist/program.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.js","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,eAAe,EACf,aAAa,EACb,aAAa,IAAI,mBAAmB,EACpC,SAAS,EAIT,GAAG,IAAI,SAAS,EAChB,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE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CAAA;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAwB,EAAW,EAAE,CAAC,mBAAmB,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAA;AAE9G,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,IAAc,EAAE,OAAoB,EAAmB,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,CAAA"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.5.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/mail-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"mcpName": "dev.wirecat/mail-cli",
|
|
5
|
-
"description": "Read-only IMAP sync of a mailbox into the shared WireCat store, with the app password kept in the OS keyring — built for agents and scripts",
|
|
5
|
+
"description": "Read-only IMAP sync of a mailbox into the shared WireCat store, with offline search and the app password kept in the OS keyring — built for agents and scripts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Viacheslav Ptsarev",
|
|
8
8
|
"repository": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@wirecat/cli-base": "0.68.1",
|
|
60
|
-
"@wirecat/cli-core": "0.
|
|
60
|
+
"@wirecat/cli-core": "0.521.0",
|
|
61
61
|
"commander": "15.0.0",
|
|
62
62
|
"imapflow": "2.9.1",
|
|
63
63
|
"valibot": "1.5.0"
|
package/skills/mail-cli/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mail-cli
|
|
3
|
-
description: Read the owner's mailbox through mail, a WireCat CLI —
|
|
3
|
+
description: Read the owner's mailbox through mail, a WireCat CLI — sync mail over IMAP into the shared store, then search it, read an email whole with its attachments' text and follow its thread, with JSON answers. Use when a task needs the owner's mail. It never asks for or prints a password, and it cannot send.
|
|
4
4
|
metadata:
|
|
5
5
|
openclaw:
|
|
6
6
|
requires:
|
|
@@ -30,6 +30,10 @@ Find your way with the tool itself, not this file:
|
|
|
30
30
|
HTML, headers, sender names, folder names and file names.
|
|
31
31
|
- Never ask the owner for a mailbox password and never run `session start` yourself: it needs the owner at a terminal.
|
|
32
32
|
If a command says there is no app password, tell the owner to run `mail <profile> session start`.
|
|
33
|
-
- `mail ya
|
|
33
|
+
- `mail ya search messages '<query>' --json` searches the profile's stored mail (`from:`, `to:`, `subject:`, `label:`,
|
|
34
|
+
`list:`, `is:unread`, `has:attachment`, `content:`, `date>7d`); each hit's `ref` goes to
|
|
35
|
+
`mail ya messages show <ref>`, its `email.thread` to `mail ya conversations show <thread>`. It reads only what sync
|
|
36
|
+
stored; for mail with messages and notes together, memo's `search all`.
|
|
37
|
+
- `mail ya sync` reads new mail into the store (`--since-time`, `--limit`, `--folder`).
|
|
34
38
|
A big mailbox does not fit one run: when the answer says `state: "partial"`, run the command in `next` again (it is
|
|
35
39
|
safe) until it says `complete`; `mail ya status` says how far it is. Stop when a run moves nothing on, and tell the owner.
|