@wirecat/mail-cli 0.2.0 → 0.4.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 +23 -0
- package/README.md +10 -7
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-7WILOT5E.js → all-profiles-55XPXQHY.js} +5 -5
- package/dist/bundle/{anthropic-NHWLIMEZ.js → anthropic-K5B6I4LB.js} +3 -3
- package/dist/bundle/{app-server-XDMYCJLV.js → app-server-VWWLQLTZ.js} +39 -39
- package/dist/bundle/{bun-GTG5IYLQ.js → bun-EO7AI6YP.js} +2 -2
- package/dist/bundle/{bun-sqlite-KGH5F33G.js → bun-sqlite-F24A4IOP.js} +2 -2
- package/dist/bundle/{chunk-DDMJ3RVO.js → chunk-2ADB5DSG.js} +2 -2
- package/dist/bundle/{chunk-76IKLP2M.js → chunk-2LP46EUH.js} +96 -91
- package/dist/bundle/{chunk-EKE3R36Y.js → chunk-2NZGUKYK.js} +6 -6
- package/dist/bundle/{chunk-SVNTRF5O.js → chunk-4KLJN3LK.js} +11 -11
- package/dist/bundle/{chunk-7REG25RM.js → chunk-5RUTHKXZ.js} +3 -3
- package/dist/bundle/{chunk-WJ3LUWRN.js → chunk-6BNMEOVS.js} +3 -3
- package/dist/bundle/{chunk-S2GSU4MT.js → chunk-6BR6JMCR.js} +9 -9
- package/dist/bundle/{chunk-5FLW25US.js → chunk-7IYDIU4P.js} +5 -5
- package/dist/bundle/{chunk-D7UZXUSB.js → chunk-7QQ4EMYF.js} +2 -2
- package/dist/bundle/{chunk-UZR3IKS7.js → chunk-7X64JS6S.js} +1 -1
- package/dist/bundle/{chunk-Z6F7EXT2.js → chunk-ANRI6EZY.js} +7 -7
- package/dist/bundle/{chunk-YQAUH3PN.js → chunk-BHKI5OCD.js} +1 -1
- package/dist/bundle/{chunk-H66ZMBDD.js → chunk-CADRRSQK.js} +1 -1
- package/dist/bundle/{chunk-BKZEYTLU.js → chunk-CCNHVZ3G.js} +412 -324
- package/dist/bundle/{chunk-AJIT2T3F.js → chunk-CSI73XJ5.js} +6 -6
- package/dist/bundle/{chunk-7LKJDJNS.js → chunk-EDKV6D6T.js} +1 -1
- package/dist/bundle/{chunk-Y6KUKIQZ.js → chunk-EOEYP7CJ.js} +2 -2
- package/dist/bundle/{chunk-H5BW7454.js → chunk-F6JTOQIK.js} +5 -4
- package/dist/bundle/{chunk-6HIW7IJL.js → chunk-F7KAJNNK.js} +4 -4
- package/dist/bundle/{chunk-ETPT7TPW.js → chunk-FFKNUVVD.js} +1 -1
- package/dist/bundle/{chunk-QUGFBY7O.js → chunk-H7K2DN3R.js} +7 -7
- package/dist/bundle/{chunk-VBLFQJY3.js → chunk-HJEMHZRU.js} +1 -1
- package/dist/bundle/{chunk-R5JD4GMA.js → chunk-HORM6VRV.js} +1 -1
- package/dist/bundle/{chunk-GQKYSGIA.js → chunk-HUB42T2Z.js} +46 -46
- package/dist/bundle/{chunk-QJHCKFFC.js → chunk-ID24SLH3.js} +16 -16
- package/dist/bundle/{chunk-BUOSCMCD.js → chunk-IIO6NXCA.js} +2 -2
- package/dist/bundle/{chunk-AROBJF5P.js → chunk-JKHI3PH7.js} +1 -1
- package/dist/bundle/{chunk-THVLMTH7.js → chunk-JZFIHVRB.js} +26 -26
- package/dist/bundle/{chunk-VWO3XXSF.js → chunk-LKDK5YMI.js} +1 -1
- package/dist/bundle/{chunk-MDVXIPA3.js → chunk-M4NTQ247.js} +10 -10
- package/dist/bundle/{chunk-H7NUGJPV.js → chunk-MGBGE2Y4.js} +2 -2
- package/dist/bundle/{chunk-Y5WA7AOA.js → chunk-NL5LNYGX.js} +21 -21
- package/dist/bundle/{chunk-GPAAQ6LY.js → chunk-OM4ZBLT7.js} +13 -13
- package/dist/bundle/{chunk-QUSZWBZF.js → chunk-ORYYYM5Y.js} +32 -22
- package/dist/bundle/{chunk-VRQRBVKT.js → chunk-QYWDC7NP.js} +43 -43
- package/dist/bundle/{chunk-4I3YT5KK.js → chunk-RLSGMMGC.js} +4 -4
- package/dist/bundle/{chunk-77VHMI3A.js → chunk-SWRNMYDL.js} +1 -1
- package/dist/bundle/{chunk-BPF7IXJT.js → chunk-SY3SP7EI.js} +5 -5
- package/dist/bundle/{chunk-TMVIQJCG.js → chunk-UJYCKCFR.js} +2 -2
- package/dist/bundle/{chunk-HJRUFT5Y.js → chunk-UO7X2VW4.js} +5 -5
- package/dist/bundle/{chunk-5JOKRFWE.js → chunk-UZDHK26H.js} +1 -1
- package/dist/bundle/{chunk-ZKH5CHGI.js → chunk-VP5GCMHM.js} +5 -5
- package/dist/bundle/{chunk-2X4WYZPA.js → chunk-VWHRIGYJ.js} +2 -2
- package/dist/bundle/{chunk-7QEE5I7H.js → chunk-VWXCEEUH.js} +2 -2
- package/dist/bundle/{chunk-CT7NG7BI.js → chunk-WFBTPZK3.js} +3 -3
- package/dist/bundle/{chunk-STC45HZX.js → chunk-X7AXH2IC.js} +196 -196
- package/dist/bundle/{chunk-MABCR67K.js → chunk-XJ5TBPCK.js} +2 -2
- package/dist/bundle/{chunk-H7XOHNRY.js → chunk-YSSMDVT3.js} +1 -1
- package/dist/bundle/{chunk-ZNYJG4AY.js → chunk-YYTWV5GU.js} +42 -42
- package/dist/bundle/{chunk-QLYHLW54.js → chunk-ZAR67WKR.js} +5 -5
- package/dist/bundle/{command-contract-Y42ULKE5.js → command-contract-L65UZ7AF.js} +13 -13
- package/dist/bundle/{decode-L4X542L3.js → decode-ON4KBMEX.js} +2 -2
- package/dist/bundle/{dist-WKIRHOLK.js → dist-FMN7UZ7R.js} +14 -14
- package/dist/bundle/{echarts-G6QLXR4X.js → echarts-XPA226QR.js} +2 -2
- package/dist/bundle/{embed-E33ZBHQR.js → embed-QERDAB73.js} +3 -3
- package/dist/bundle/{embedder-EMBCIVGF.js → embedder-I76YT3E5.js} +6 -6
- package/dist/bundle/{first-run-WF2HF5FI.js → first-run-KZJFR55N.js} +5 -5
- package/dist/bundle/{first-screen-DZFOUUZC.js → first-screen-EORANEAK.js} +14 -14
- package/dist/bundle/{instructions-DUH7265J.js → instructions-NN3BCFIM.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-73PKCCE7.js → node-2S75QJ6B.js} +2 -2
- package/dist/bundle/{node-sqlite-FDD5N6GC.js → node-sqlite-RC7WM3EG.js} +2 -2
- package/dist/bundle/{oauth-ND3K2F7B.js → oauth-FUHLZCKV.js} +4 -4
- package/dist/bundle/{open-FZYY6TKE.js → open-JOKT7LKY.js} +1 -1
- package/dist/bundle/{openai-BXOF6XIM.js → openai-U3IMQ6UI.js} +10 -10
- package/dist/bundle/{process-TXIK4VJP.js → process-LKODK722.js} +1 -1
- package/dist/bundle/{program-2SUR4WOS.js → program-RMLIQXCA.js} +944 -613
- package/dist/bundle/{prompt-I5GCP73M.js → prompt-23VYMNNB.js} +2 -2
- package/dist/bundle/{recognize-ILYEKXVB.js → recognize-TXO3462R.js} +1 -1
- package/dist/bundle/{remote-SSPZEAJ7.js → remote-5F4ZOASM.js} +4 -4
- package/dist/bundle/{rerank-NAO5RMGB.js → rerank-TXSDPEFE.js} +4 -4
- package/dist/bundle/{serve-UDXIEQKC.js → serve-TWYECYWM.js} +6 -6
- package/dist/bundle/server-2GEAXKX2.js +63 -0
- package/dist/bundle/{server-KTPELKAN.js → server-3S3BKE6D.js} +31 -31
- package/dist/bundle/{sqlite-runtime-AONFLND6.js → sqlite-runtime-BEOBGC6K.js} +2 -2
- package/dist/bundle/{state-I4PLX3UB.js → state-ERWIUTQQ.js} +3 -3
- package/dist/bundle/{store-ZPPRXGPY.js → store-2JO4JGQL.js} +11 -9
- package/dist/bundle/{store-OHQH3MGN.js → store-4RY5UMOP.js} +11 -11
- package/dist/bundle/store-maintenance-command-T7D4OTN7.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 +10 -1
- 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-UZFSEKNJ.js +0 -63
- package/dist/bundle/store-maintenance-command-QOYXEBT6.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-2ADB5DSG.js";
|
|
6
|
+
import "./chunk-HJEMHZRU.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-UJYCKCFR.js";
|
|
12
|
+
import "./chunk-ZAR67WKR.js";
|
|
13
|
+
import "./chunk-WFBTPZK3.js";
|
|
14
|
+
import "./chunk-UZDHK26H.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-ZAR67WKR.js";
|
|
8
|
+
import "./chunk-WFBTPZK3.js";
|
|
9
|
+
import "./chunk-UZDHK26H.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.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/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-HORM6VRV.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IIO6NXCA.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-RLSGMMGC.js";
|
|
24
|
+
import "./chunk-EOEYP7CJ.js";
|
|
25
|
+
import "./chunk-CADRRSQK.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.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/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-JZFIHVRB.js";
|
|
10
|
+
import "./chunk-OM4ZBLT7.js";
|
|
11
|
+
import "./chunk-ORYYYM5Y.js";
|
|
12
|
+
import "./chunk-6BR6JMCR.js";
|
|
13
|
+
import "./chunk-VWHRIGYJ.js";
|
|
14
|
+
import "./chunk-EDKV6D6T.js";
|
|
15
|
+
import "./chunk-JKHI3PH7.js";
|
|
16
|
+
import "./chunk-MGBGE2Y4.js";
|
|
17
|
+
import "./chunk-5D4AEUVA.js";
|
|
18
|
+
import "./chunk-NL5LNYGX.js";
|
|
19
|
+
import "./chunk-X7AXH2IC.js";
|
|
20
|
+
import "./chunk-4KLJN3LK.js";
|
|
21
|
+
import "./chunk-VP5GCMHM.js";
|
|
22
|
+
import "./chunk-BHKI5OCD.js";
|
|
23
|
+
import "./chunk-HJEMHZRU.js";
|
|
24
|
+
import "./chunk-7IYDIU4P.js";
|
|
25
|
+
import "./chunk-2LP46EUH.js";
|
|
26
|
+
import "./chunk-HUB42T2Z.js";
|
|
27
|
+
import "./chunk-F6JTOQIK.js";
|
|
28
|
+
import "./chunk-H7K2DN3R.js";
|
|
29
|
+
import "./chunk-ZD3WUGR2.js";
|
|
30
|
+
import "./chunk-P7P5MNAU.js";
|
|
31
|
+
import "./chunk-VWXCEEUH.js";
|
|
32
|
+
import "./chunk-RLSGMMGC.js";
|
|
33
|
+
import "./chunk-EOEYP7CJ.js";
|
|
34
|
+
import "./chunk-CADRRSQK.js";
|
|
35
|
+
import "./chunk-UJYCKCFR.js";
|
|
36
|
+
import "./chunk-ID24SLH3.js";
|
|
37
|
+
import "./chunk-5RUTHKXZ.js";
|
|
38
|
+
import "./chunk-CCNHVZ3G.js";
|
|
39
|
+
import "./chunk-SY3SP7EI.js";
|
|
40
|
+
import "./chunk-2NZGUKYK.js";
|
|
41
|
+
import "./chunk-YYTWV5GU.js";
|
|
42
|
+
import "./chunk-NPGVOZVK.js";
|
|
43
|
+
import "./chunk-ANRI6EZY.js";
|
|
44
|
+
import "./chunk-F7KAJNNK.js";
|
|
45
|
+
import "./chunk-UO7X2VW4.js";
|
|
46
|
+
import "./chunk-7X64JS6S.js";
|
|
47
|
+
import "./chunk-QX7RCLRS.js";
|
|
48
|
+
import "./chunk-D72URWJE.js";
|
|
49
|
+
import "./chunk-ZAR67WKR.js";
|
|
50
|
+
import "./chunk-WFBTPZK3.js";
|
|
51
|
+
import "./chunk-UZDHK26H.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-YSSMDVT3.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-OM4ZBLT7.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-6BR6JMCR.js";
|
|
17
|
+
import "./chunk-VWHRIGYJ.js";
|
|
18
18
|
import {
|
|
19
19
|
callerOf,
|
|
20
20
|
serveStdio
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MGBGE2Y4.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-X7AXH2IC.js";
|
|
28
|
+
import "./chunk-4KLJN3LK.js";
|
|
29
|
+
import "./chunk-VP5GCMHM.js";
|
|
30
|
+
import "./chunk-BHKI5OCD.js";
|
|
31
|
+
import "./chunk-HJEMHZRU.js";
|
|
32
|
+
import "./chunk-2LP46EUH.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-HUB42T2Z.js";
|
|
41
|
+
import "./chunk-F6JTOQIK.js";
|
|
42
|
+
import "./chunk-H7K2DN3R.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-VWXCEEUH.js";
|
|
46
|
+
import "./chunk-CADRRSQK.js";
|
|
47
|
+
import "./chunk-UJYCKCFR.js";
|
|
48
|
+
import "./chunk-ID24SLH3.js";
|
|
49
|
+
import "./chunk-5RUTHKXZ.js";
|
|
50
|
+
import "./chunk-CCNHVZ3G.js";
|
|
51
|
+
import "./chunk-SY3SP7EI.js";
|
|
52
|
+
import "./chunk-2NZGUKYK.js";
|
|
53
|
+
import "./chunk-YYTWV5GU.js";
|
|
54
54
|
import "./chunk-NPGVOZVK.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-ANRI6EZY.js";
|
|
56
|
+
import "./chunk-F7KAJNNK.js";
|
|
57
|
+
import "./chunk-UO7X2VW4.js";
|
|
58
|
+
import "./chunk-7X64JS6S.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-ZAR67WKR.js";
|
|
62
|
+
import "./chunk-WFBTPZK3.js";
|
|
63
|
+
import "./chunk-UZDHK26H.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.520.0_@wirecat+cli-base@0.68.1_commander@15.0.0_esbuild@0.28.2_type_33ccf8bfbe17590bae2f3fc544520037/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-7QQ4EMYF.js";
|
|
8
|
+
import "./chunk-UO7X2VW4.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-RLSGMMGC.js";
|
|
16
|
+
import "./chunk-EOEYP7CJ.js";
|
|
17
|
+
import "./chunk-CADRRSQK.js";
|
|
18
18
|
import "./chunk-J3QXTBD2.js";
|
|
19
19
|
import "./chunk-LQ37ALDJ.js";
|
|
20
20
|
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-CCNHVZ3G.js";
|
|
58
|
+
import "./chunk-SY3SP7EI.js";
|
|
59
|
+
import "./chunk-2NZGUKYK.js";
|
|
60
|
+
import "./chunk-YYTWV5GU.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-ANRI6EZY.js";
|
|
63
|
+
import "./chunk-F7KAJNNK.js";
|
|
64
|
+
import "./chunk-UO7X2VW4.js";
|
|
65
|
+
import "./chunk-7X64JS6S.js";
|
|
66
|
+
import "./chunk-UZDHK26H.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,
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
previewDocumentTransfer,
|
|
9
9
|
previewProjectAnnotationSnapshot,
|
|
10
10
|
snapshotProjectAnnotations
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ID24SLH3.js";
|
|
12
12
|
import {
|
|
13
13
|
note,
|
|
14
14
|
organization,
|
|
15
15
|
project,
|
|
16
16
|
reminder
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5RUTHKXZ.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-CCNHVZ3G.js";
|
|
58
|
+
import "./chunk-SY3SP7EI.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-2NZGUKYK.js";
|
|
75
|
+
import "./chunk-YYTWV5GU.js";
|
|
76
76
|
import "./chunk-NPGVOZVK.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-ANRI6EZY.js";
|
|
78
|
+
import "./chunk-F7KAJNNK.js";
|
|
79
79
|
import {
|
|
80
80
|
PRAGMAS,
|
|
81
81
|
openCache
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-UO7X2VW4.js";
|
|
83
|
+
import "./chunk-7X64JS6S.js";
|
|
84
84
|
import {
|
|
85
85
|
storePath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-UZDHK26H.js";
|
|
87
87
|
import "./chunk-J3QXTBD2.js";
|
|
88
88
|
import "./chunk-LQ37ALDJ.js";
|
|
89
89
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -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-QYWDC7NP.js";
|
|
8
|
+
import "./chunk-LKDK5YMI.js";
|
|
9
|
+
import "./chunk-NL5LNYGX.js";
|
|
10
|
+
import "./chunk-X7AXH2IC.js";
|
|
11
|
+
import "./chunk-4KLJN3LK.js";
|
|
12
|
+
import "./chunk-VP5GCMHM.js";
|
|
13
|
+
import "./chunk-FFKNUVVD.js";
|
|
14
|
+
import "./chunk-BHKI5OCD.js";
|
|
15
|
+
import "./chunk-2ADB5DSG.js";
|
|
16
|
+
import "./chunk-HJEMHZRU.js";
|
|
17
|
+
import "./chunk-HTQTIKWP.js";
|
|
18
|
+
import "./chunk-HUB42T2Z.js";
|
|
19
|
+
import "./chunk-F6JTOQIK.js";
|
|
20
|
+
import "./chunk-H7K2DN3R.js";
|
|
21
|
+
import "./chunk-ZD3WUGR2.js";
|
|
22
|
+
import "./chunk-P7P5MNAU.js";
|
|
23
|
+
import "./chunk-VWXCEEUH.js";
|
|
24
|
+
import "./chunk-EOEYP7CJ.js";
|
|
25
|
+
import "./chunk-CADRRSQK.js";
|
|
26
|
+
import "./chunk-UJYCKCFR.js";
|
|
27
|
+
import "./chunk-ID24SLH3.js";
|
|
28
|
+
import "./chunk-5RUTHKXZ.js";
|
|
29
|
+
import "./chunk-CCNHVZ3G.js";
|
|
30
|
+
import "./chunk-SY3SP7EI.js";
|
|
31
|
+
import "./chunk-2NZGUKYK.js";
|
|
32
|
+
import "./chunk-YYTWV5GU.js";
|
|
33
|
+
import "./chunk-NPGVOZVK.js";
|
|
34
|
+
import "./chunk-ANRI6EZY.js";
|
|
35
|
+
import "./chunk-F7KAJNNK.js";
|
|
36
|
+
import "./chunk-UO7X2VW4.js";
|
|
37
|
+
import "./chunk-7X64JS6S.js";
|
|
38
|
+
import "./chunk-QX7RCLRS.js";
|
|
39
|
+
import "./chunk-D72URWJE.js";
|
|
40
|
+
import "./chunk-ZAR67WKR.js";
|
|
41
|
+
import "./chunk-WFBTPZK3.js";
|
|
42
|
+
import "./chunk-UZDHK26H.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,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AgB,CAAC,KAAK,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,
|
|
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,iBAoC5B,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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { resolvePaths } from "@wirecat/cli-base";
|
|
3
|
-
import { appDoctorCommand, appMcpCommand, commandsCommand, configCommand, createProgram as createSharedProgram, outputFor, run as runShared, runsCommand, skillCommand, upgradeCommand, } from "@wirecat/cli-core/cli";
|
|
3
|
+
import { appDoctorCommand, appMcpCommand, baseContext, commandsCommand, configCommand, createProgram as createSharedProgram, outputFor, run as runShared, runsCommand, scheduleCommandFor, skillCommand, upgradeCommand, } from "@wirecat/cli-core/cli";
|
|
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, {
|
|
@@ -45,6 +47,13 @@ export const definition = () => ({
|
|
|
45
47
|
})),
|
|
46
48
|
configCommand(IDENTITY, configuration),
|
|
47
49
|
runsCommand(IDENTITY),
|
|
50
|
+
scheduleCommandFor({
|
|
51
|
+
app: IDENTITY,
|
|
52
|
+
context: (command) => {
|
|
53
|
+
const base = baseContext(command, configuration.resolveSettings);
|
|
54
|
+
return { ...base, profile: base.settings.profile };
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
48
57
|
],
|
|
49
58
|
});
|
|
50
59
|
export const createProgram = (options) => createSharedProgram(definition(), options);
|
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,eAAe,EACf,aAAa,EACb,aAAa,IAAI,mBAAmB,EACpC,SAAS,EAIT,GAAG,IAAI,SAAS,EAChB,WAAW,EACX,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,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AG,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.4.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.4.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.4.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.520.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.
|