@wirecat/mail-cli 0.25.0 → 0.27.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 +49 -0
- package/README.md +3 -0
- package/contracts/wirecat.json +1325 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bin/mail.js.map +1 -1
- package/dist/bundle/{all-profiles-QEV2PSOR.js → all-profiles-5XWH7TBM.js} +11 -11
- package/dist/bundle/{anthropic-5NKQXIHM.js → anthropic-QEQGUEPW.js} +5 -5
- package/dist/bundle/{app-server-G2CJNT4R.js → app-server-YWDU56NR.js} +55 -51
- package/dist/bundle/{bun-6HBYWQIX.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-DXIQ7BVR.js → bun-sqlite-S4QD5YUO.js} +6 -6
- package/dist/bundle/{chunk-37F6QYTO.js → chunk-255RGG5W.js} +6 -6
- package/dist/bundle/{chunk-DIA56CS7.js → chunk-2FZMIJW7.js} +11 -7
- package/dist/bundle/{chunk-S2QRAKQI.js → chunk-4VDWQKDI.js} +17 -17
- package/dist/bundle/{chunk-QB3DP2TN.js → chunk-572NWJUN.js} +2 -2
- package/dist/bundle/{chunk-PHHH2NQP.js → chunk-5BPOEPYL.js} +15 -113
- package/dist/bundle/{chunk-VL6H2BND.js → chunk-5DLPM5AV.js} +18 -17
- package/dist/bundle/{chunk-HEIDAHRC.js → chunk-77J5ID2O.js} +2 -2
- package/dist/bundle/{chunk-5ZYFV6FD.js → chunk-7BXOFLWJ.js} +129 -74
- package/dist/bundle/{chunk-L4QVOEOB.js → chunk-7C6FGWDH.js} +4 -4
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-TY644DKQ.js → chunk-7MEVD5PI.js} +57 -28
- package/dist/bundle/{chunk-WOAYHCM2.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-WX6OYVCH.js → chunk-AIZ225IA.js} +379 -270
- package/dist/bundle/{chunk-K2OGF7KC.js → chunk-APLVXHFG.js} +2 -2
- package/dist/bundle/{chunk-GY4XCLCO.js → chunk-BZCXAVGP.js} +8 -8
- package/dist/bundle/{chunk-434YOD6A.js → chunk-CKFVKHTB.js} +4 -4
- package/dist/bundle/{chunk-B7SWTH5O.js → chunk-CZRMT6XV.js} +2 -2
- package/dist/bundle/{chunk-Z5T6OW3V.js → chunk-DQO2LX5I.js} +4 -4
- package/dist/bundle/{chunk-OLKCJBZY.js → chunk-DSUOYJUL.js} +5 -5
- package/dist/bundle/{chunk-IZOYW4Z4.js → chunk-ECZSYLSL.js} +24 -9
- package/dist/bundle/{chunk-YNS2YVUR.js → chunk-ELPH22W6.js} +9 -9
- package/dist/bundle/{chunk-JG4MNYG2.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-HLXVUMZJ.js → chunk-FOTP6QLO.js} +2 -2
- package/dist/bundle/{chunk-SMTBV62X.js → chunk-FVVSBQGK.js} +29 -25
- package/dist/bundle/{chunk-XQYKIZMG.js → chunk-HBK6MRAL.js} +12 -9
- package/dist/bundle/{chunk-5QYK3LWS.js → chunk-IDOHT4Z3.js} +123 -42
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-KHBZ4OEP.js} +1 -1
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-CBYBZCQP.js → chunk-MY4LVD64.js} +3 -2
- package/dist/bundle/{chunk-OLLIWNFG.js → chunk-NZG6IRDW.js} +3 -3
- package/dist/bundle/{chunk-ND5H5ADM.js → chunk-OC3U2JAK.js} +4 -4
- package/dist/bundle/{chunk-KFB2X6KE.js → chunk-OCUKQRJ3.js} +201 -160
- package/dist/bundle/{chunk-PQMJ5BXH.js → chunk-OEPNLKHI.js} +4 -4
- package/dist/bundle/{chunk-GJRYZXBN.js → chunk-OPOEAGVB.js} +9 -9
- package/dist/bundle/{chunk-VFU7PVPQ.js → chunk-PA7LDYVX.js} +62 -60
- package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-A6BPOX5O.js → chunk-PRSXMM4I.js} +3825 -3516
- package/dist/bundle/{chunk-HEYVMAAQ.js → chunk-QQTSPQ2D.js} +2 -2
- package/dist/bundle/{chunk-IXO4SCKE.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-J4OYK4WL.js → chunk-R3A65A4D.js} +12 -12
- package/dist/bundle/{chunk-QQUY4MZY.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-XMDEM6BZ.js → chunk-RGQFVVBB.js} +276 -254
- package/dist/bundle/{chunk-FZZD4AFY.js → chunk-ROLHKFKB.js} +26 -18
- package/dist/bundle/{chunk-PP3YOAWG.js → chunk-RRLAFEPQ.js} +3 -3
- package/dist/bundle/{chunk-3XVR2ROR.js → chunk-S2QRW647.js} +35 -31
- package/dist/bundle/{chunk-G5LHHAW2.js → chunk-S7H7TAC3.js} +6 -6
- package/dist/bundle/{chunk-U6IQ6YQ2.js → chunk-SXKKOOA7.js} +8 -2
- package/dist/bundle/{chunk-MBFPFWCO.js → chunk-T7VERZP5.js} +27 -27
- package/dist/bundle/{chunk-ADKMBXY4.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-EXVY76VO.js → chunk-TKOZCIHU.js} +19 -18
- package/dist/bundle/{chunk-BC7PFQL7.js → chunk-UBH4UPZ7.js} +40 -2
- package/dist/bundle/{chunk-P6GXNT7Z.js → chunk-UEJVXUIO.js} +13 -13
- package/dist/bundle/{chunk-IACWKZWS.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-LGZPKKBN.js → chunk-VYZ37D2Q.js} +3 -2
- package/dist/bundle/{chunk-HJSJBNCJ.js → chunk-WMXUFUV3.js} +28 -9
- package/dist/bundle/{chunk-CIWWNBVW.js → chunk-WRHAX53U.js} +8 -8
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-XBL46B4V.js} +63 -5
- package/dist/bundle/{chunk-KK4HD3SI.js → chunk-XCYDTIVK.js} +7 -7
- package/dist/bundle/{chunk-PGC5TRH6.js → chunk-XM2THVMR.js} +3 -3
- package/dist/bundle/{chunk-MWGH3M46.js → chunk-ZSWSFKNE.js} +5 -7
- package/dist/bundle/{chunk-T27IMG6X.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/command-contract-MIJONVVG.js +36 -0
- package/dist/bundle/{command-server-entry-XMSSY5ID.js → command-server-entry-VHUFW3OZ.js} +25 -25
- package/dist/bundle/{decode-RYGB4PGT.js → decode-TIMTSVXM.js} +5 -5
- package/dist/bundle/{dispatch-PLQOIZG5.js → dispatch-DSVN7MNG.js} +8 -8
- package/dist/bundle/{dist-GY2AQETI.js → dist-IP25JFTN.js} +19 -15
- package/dist/bundle/{echarts-7CM2MCMW.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-FTBDPOPT.js → embed-4W527BCE.js} +6 -6
- package/dist/bundle/{embedder-B43WGNBD.js → embedder-LQE2SBJ3.js} +9 -9
- package/dist/bundle/{failure-XP5QYV2T.js → failure-COTPFUP4.js} +2 -2
- package/dist/bundle/{first-run-XIIUARNM.js → first-run-KZTKMEI4.js} +12 -12
- package/dist/bundle/first-screen-4LG5SJ6D.js +34 -0
- package/dist/bundle/{instructions-R7OHVAWH.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/mail.js +15 -20
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-3N2JGZ7V.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-WFJXW3CZ.js → node-sqlite-PVSKI4OS.js} +7 -7
- package/dist/bundle/{oauth-SVJLQTWV.js → oauth-TGYGAVGF.js} +7 -7
- package/dist/bundle/{open-ZDONVKSX.js → open-5YED4Q4C.js} +5 -5
- package/dist/bundle/{openai-XVEW6XOU.js → openai-XVJTML22.js} +21 -20
- package/dist/bundle/{process-YAHHUFR5.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-HU2UVMJE.js → program-TDHDXAQA.js} +1499 -998
- package/dist/bundle/{prompt-JAJ2CUJI.js → prompt-HPZANASN.js} +5 -5
- package/dist/bundle/{recognize-UFBWUNFR.js → recognize-PP5XQQHH.js} +4 -4
- package/dist/bundle/{remote-2GFOVLCR.js → remote-C2LU2WYG.js} +9 -9
- package/dist/bundle/{rerank-BGPSMXTL.js → rerank-WRHNOM4Z.js} +7 -7
- package/dist/bundle/{serve-CB3XJTH3.js → serve-RE3IV2QB.js} +9 -9
- package/dist/bundle/server-43V7HNFY.js +68 -0
- package/dist/bundle/{server-M7FQY7TX.js → server-52BJ7UTO.js} +44 -42
- package/dist/bundle/{sqlite-runtime-AEV6PGDR.js → sqlite-runtime-CRRL3MYX.js} +6 -6
- package/dist/bundle/{state-YLBEQLBI.js → state-YGJRPMWD.js} +6 -6
- package/dist/bundle/{store-EKWKY6GG.js → store-6AZ5LVJL.js} +21 -19
- package/dist/bundle/{store-CDUL3HKK.js → store-ESQE4VHP.js} +17 -17
- package/dist/bundle/store-maintenance-command-AKQMKUYO.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +57 -19
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -12
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +7 -2
- package/dist/discovery.js.map +1 -1
- package/dist/identity.d.ts +2 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +34 -0
- package/dist/identity.js.map +1 -1
- package/dist/mail/domain-age.d.ts +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +9 -3
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +4 -1
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/query.d.ts +2 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +16 -3
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/oauth.d.ts +3 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +48 -34
- package/dist/oauth.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -21
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +10 -9
- package/dist/bundle/chunk-K6HR6HCO.js +0 -32
- package/dist/bundle/command-contract-XSW2Q33S.js +0 -36
- package/dist/bundle/first-screen-Z7HC6PQU.js +0 -34
- package/dist/bundle/server-34GEF22R.js +0 -68
- package/dist/bundle/store-maintenance-command-XH2JUM5F.js +0 -58
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -13,20 +13,20 @@ import {
|
|
|
13
13
|
kindsIn,
|
|
14
14
|
providerNamed,
|
|
15
15
|
providers
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7BXOFLWJ.js";
|
|
17
17
|
import {
|
|
18
18
|
isCliFailure,
|
|
19
19
|
isStoreDamage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SXKKOOA7.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VYZ37D2Q.js";
|
|
24
24
|
import {
|
|
25
25
|
createRecordLog,
|
|
26
26
|
resolvePaths,
|
|
27
27
|
traceIdOf,
|
|
28
28
|
writeSecurely
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7MEVD5PI.js";
|
|
30
30
|
import {
|
|
31
31
|
array,
|
|
32
32
|
boolean,
|
|
@@ -45,25 +45,25 @@ import {
|
|
|
45
45
|
strictObject,
|
|
46
46
|
string,
|
|
47
47
|
unknown
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ECZSYLSL.js";
|
|
49
49
|
import {
|
|
50
50
|
CliError
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-7KCBPAQS.js";
|
|
52
52
|
import {
|
|
53
53
|
__name
|
|
54
54
|
} from "./chunk-ZVVMGPBJ.js";
|
|
55
55
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
57
57
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
58
58
|
import { randomBytes } from "node:crypto";
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
61
61
|
import { randomUUID } from "node:crypto";
|
|
62
62
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
63
63
|
import { userInfo } from "node:os";
|
|
64
64
|
import { join, sep } from "node:path";
|
|
65
65
|
|
|
66
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
67
67
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
68
68
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
69
69
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -76,7 +76,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
76
76
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
77
77
|
}), "snakeLogger");
|
|
78
78
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
79
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
80
80
|
var diagnostic = {
|
|
81
81
|
event: true,
|
|
82
82
|
operation: true,
|
|
@@ -150,7 +150,7 @@ var LOG_ATTRIBUTES = [
|
|
|
150
150
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
151
151
|
].sort();
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
154
154
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
155
155
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
156
156
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -517,7 +517,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
517
517
|
};
|
|
518
518
|
}, "metadataOf");
|
|
519
519
|
|
|
520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
521
521
|
var scopes = new AsyncLocalStorage();
|
|
522
522
|
var processScope;
|
|
523
523
|
var ownProcesses = new AsyncLocalStorage();
|
|
@@ -568,7 +568,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
568
568
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
569
569
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
570
570
|
|
|
571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
572
572
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
573
573
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
574
574
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -583,7 +583,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
583
583
|
}
|
|
584
584
|
__name(closeTask, "closeTask");
|
|
585
585
|
|
|
586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
587
587
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
588
588
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
589
589
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -612,7 +612,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
612
612
|
}, "priorityOf");
|
|
613
613
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
614
614
|
|
|
615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
616
616
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
617
617
|
async function find(id2) {
|
|
618
618
|
const task = await store.get(id2);
|
|
@@ -672,20 +672,20 @@ function median(values) {
|
|
|
672
672
|
}
|
|
673
673
|
__name(median, "median");
|
|
674
674
|
|
|
675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
676
676
|
function matches(task, filter) {
|
|
677
677
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
678
678
|
}
|
|
679
679
|
__name(matches, "matches");
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
682
682
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
683
683
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
684
684
|
var ERASED_TEXT = "[source erased]";
|
|
685
685
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
686
686
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
687
687
|
|
|
688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
689
689
|
var text = string();
|
|
690
690
|
var id = pipe(string(), minLength(1));
|
|
691
691
|
var time = isoTime;
|
|
@@ -710,7 +710,7 @@ var author = strictObject({
|
|
|
710
710
|
name: nullable(text)
|
|
711
711
|
});
|
|
712
712
|
|
|
713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
714
714
|
var organization = strictObject({
|
|
715
715
|
id,
|
|
716
716
|
ref: reference,
|
|
@@ -740,7 +740,7 @@ var reminder = strictObject({
|
|
|
740
740
|
receipt: nullable(text)
|
|
741
741
|
});
|
|
742
742
|
|
|
743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
744
744
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
745
745
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
746
746
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -748,7 +748,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
748
748
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
749
749
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
750
750
|
|
|
751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
752
752
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
753
753
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
754
754
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -869,7 +869,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
869
869
|
return { previous, cleared };
|
|
870
870
|
}, "recordDeepCheck");
|
|
871
871
|
|
|
872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
873
873
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
874
874
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
875
875
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -892,7 +892,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
892
892
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
893
893
|
}, "sourceOf");
|
|
894
894
|
|
|
895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
896
896
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
897
897
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
898
898
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1102,7 +1102,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1102
1102
|
return { accounts: [...chosen.values()], skipped };
|
|
1103
1103
|
}, "fitting");
|
|
1104
1104
|
|
|
1105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
1106
1106
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
1107
1107
|
var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
1108
1108
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -1112,7 +1112,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
}, "sourceOf");
|
|
1114
1114
|
|
|
1115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
1116
1116
|
var LINK_KINDS = [
|
|
1117
1117
|
"links-to",
|
|
1118
1118
|
"blocked-by",
|
|
@@ -1132,11 +1132,11 @@ var LINK_KINDS = [
|
|
|
1132
1132
|
"attached"
|
|
1133
1133
|
];
|
|
1134
1134
|
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
1135
|
-
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
1135
|
+
var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
1136
1136
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
1137
1137
|
var COUNTERPART_ROLE = "counterpart";
|
|
1138
1138
|
|
|
1139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1140
1140
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1141
1141
|
|
|
1142
1142
|
export {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
servicesFor,
|
|
17
17
|
throughWrapper,
|
|
18
18
|
withFileLockAsync
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AIZ225IA.js";
|
|
20
20
|
import {
|
|
21
21
|
servingProfiles
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XM2THVMR.js";
|
|
23
23
|
import {
|
|
24
24
|
asFirstWord,
|
|
25
25
|
baseContext,
|
|
@@ -33,44 +33,45 @@ import {
|
|
|
33
33
|
recalledAccount,
|
|
34
34
|
rememberAccount,
|
|
35
35
|
rootOf2 as rootOf
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-OCUKQRJ3.js";
|
|
37
37
|
import {
|
|
38
38
|
AUTHORITY_KEY,
|
|
39
39
|
CEILING_KEY,
|
|
40
40
|
DEFAULT_PERMISSIONS,
|
|
41
|
+
KEYED_UNDER_HOUSEKEEPING,
|
|
41
42
|
WRITE_KEYS,
|
|
42
43
|
keyForCommand,
|
|
43
44
|
levelFor,
|
|
44
45
|
readKeysForCommand,
|
|
45
46
|
skipFlagFor
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2FZMIJW7.js";
|
|
47
48
|
import {
|
|
48
49
|
providerErrorKey
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HBK6MRAL.js";
|
|
50
51
|
import {
|
|
51
52
|
openStore
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-PRSXMM4I.js";
|
|
53
54
|
import {
|
|
54
55
|
chatReferenceOf,
|
|
55
56
|
ensureAccount,
|
|
56
57
|
foldName,
|
|
57
58
|
isId,
|
|
58
59
|
pickPerson
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-RGQFVVBB.js";
|
|
60
61
|
import {
|
|
61
62
|
isCliFailure
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SXKKOOA7.js";
|
|
63
64
|
import {
|
|
64
65
|
resolvePaths
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-7MEVD5PI.js";
|
|
66
67
|
import {
|
|
67
68
|
CliError
|
|
68
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-7KCBPAQS.js";
|
|
69
70
|
import {
|
|
70
71
|
__name
|
|
71
72
|
} from "./chunk-ZVVMGPBJ.js";
|
|
72
73
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
74
75
|
import { openSync } from "node:fs";
|
|
75
76
|
import { createInterface } from "node:readline";
|
|
76
77
|
import { ReadStream } from "node:tty";
|
|
@@ -125,7 +126,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
125
126
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
126
127
|
}, "terminalAsker");
|
|
127
128
|
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
129
130
|
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
130
131
|
import { join } from "node:path";
|
|
131
132
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -220,7 +221,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
220
221
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
221
222
|
}, "waitForTurn");
|
|
222
223
|
|
|
223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
224
225
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
225
226
|
"help",
|
|
226
227
|
"guide",
|
|
@@ -234,7 +235,7 @@ var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
|
234
235
|
"mcp",
|
|
235
236
|
"runs"
|
|
236
237
|
]);
|
|
237
|
-
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) ? null : path.join("."), "commandPathKey");
|
|
238
|
+
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) && !KEYED_UNDER_HOUSEKEEPING.has(path.join(".")) ? null : path.join("."), "commandPathKey");
|
|
238
239
|
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
|
|
239
240
|
keyOf,
|
|
240
241
|
extra: [AUTHORITY_KEY, ...extra],
|
|
@@ -300,7 +301,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
300
301
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
301
302
|
}, "refuseUnknownPermissionKeys");
|
|
302
303
|
|
|
303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
304
305
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
305
306
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
306
307
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -397,7 +398,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
397
398
|
});
|
|
398
399
|
}, "flooded");
|
|
399
400
|
|
|
400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
401
402
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
402
403
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
403
404
|
const write = currentOperation();
|
|
@@ -496,7 +497,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
496
497
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
497
498
|
}, "byPart");
|
|
498
499
|
|
|
499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
500
501
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
501
502
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
502
503
|
let warned = false;
|
|
@@ -1072,7 +1073,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1072
1073
|
}
|
|
1073
1074
|
}, "keep");
|
|
1074
1075
|
|
|
1075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1076
1077
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1077
1078
|
let opened;
|
|
1078
1079
|
return {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ECZSYLSL.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var ENTRIES = [
|
|
@@ -12,6 +12,11 @@ var ENTRIES = [
|
|
|
12
12
|
["mail.host-unreachable", "network_error", "the mail server cannot be reached"],
|
|
13
13
|
["mail.no-password", "authentication_error", "no app password is stored for this profile"],
|
|
14
14
|
["mail.oauth-refused", "authentication_error", "the mail server refused the OAuth token even after a refresh"],
|
|
15
|
+
[
|
|
16
|
+
"mail.google-account-refused",
|
|
17
|
+
"authentication_error",
|
|
18
|
+
"Google refused the account check or gave no verified address"
|
|
19
|
+
],
|
|
15
20
|
["mail.smtp-auth-disabled", "authentication_error", "Microsoft refused the OAuth login for sending"],
|
|
16
21
|
["mail.uidvalidity-changed", "invalid_response", "the folder's UIDVALIDITY changed during the run"],
|
|
17
22
|
["mail.not-returned", "not_found", "the server did not return the email"],
|
|
@@ -52,7 +57,7 @@ var ENTRIES = [
|
|
|
52
57
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
53
58
|
|
|
54
59
|
// dist/version.js
|
|
55
|
-
var VERSION = "0.
|
|
60
|
+
var VERSION = "0.27.0";
|
|
56
61
|
|
|
57
62
|
// dist/identity.js
|
|
58
63
|
var PACKAGE = "@wirecat/mail-cli";
|
|
@@ -70,10 +75,43 @@ var IDENTITY = {
|
|
|
70
75
|
contentLanguages: ["ru", "en"],
|
|
71
76
|
errors: { reasons: REASONS }
|
|
72
77
|
};
|
|
78
|
+
var DESKTOP = {
|
|
79
|
+
...IDENTITY,
|
|
80
|
+
docs: "https://github.com/WireCatLabs/mail-cli#readme",
|
|
81
|
+
hosts: [
|
|
82
|
+
"login.microsoftonline.com",
|
|
83
|
+
"accounts.google.com",
|
|
84
|
+
"oauth2.googleapis.com",
|
|
85
|
+
"openidconnect.googleapis.com",
|
|
86
|
+
"autoconfig.thunderbird.net",
|
|
87
|
+
"data.iana.org",
|
|
88
|
+
"imap.yandex.com",
|
|
89
|
+
"smtp.yandex.ru",
|
|
90
|
+
"imap.gmail.com",
|
|
91
|
+
"smtp.gmail.com",
|
|
92
|
+
"imap.mail.me.com",
|
|
93
|
+
"smtp.mail.me.com",
|
|
94
|
+
"imap.mail.ru",
|
|
95
|
+
"smtp.mail.ru",
|
|
96
|
+
"imap.fastmail.com",
|
|
97
|
+
"smtp.fastmail.com",
|
|
98
|
+
"outlook.office365.com",
|
|
99
|
+
"smtp.office365.com",
|
|
100
|
+
"smtp-mail.outlook.com"
|
|
101
|
+
],
|
|
102
|
+
userHosts: "the mail server you sign in to, your domain's autoconfig file, and each sender domain's registry from IANA's list",
|
|
103
|
+
tagline: "Your mailbox over IMAP, searchable on your computer",
|
|
104
|
+
syncs: "mail from the folders you choose",
|
|
105
|
+
signIn: {
|
|
106
|
+
gives: "Lets your agent read, organise and send your mail.",
|
|
107
|
+
asks: "Your mail address and an app password, or a Microsoft or Google sign-in in the browser."
|
|
108
|
+
}
|
|
109
|
+
};
|
|
73
110
|
var SKILL = new URL("../skills/mail-cli/SKILL.md", new URL("../identity.js", import.meta.url).href);
|
|
74
111
|
|
|
75
112
|
export {
|
|
76
113
|
PACKAGE,
|
|
77
114
|
IDENTITY,
|
|
115
|
+
DESKTOP,
|
|
78
116
|
SKILL
|
|
79
117
|
};
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7KCBPAQS.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
resolvePaths
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7MEVD5PI.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { realpathSync } from "node:fs";
|
|
12
12
|
import { userInfo } from "node:os";
|
|
13
13
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -49,5 +49,6 @@ export {
|
|
|
49
49
|
storePath,
|
|
50
50
|
accountHome,
|
|
51
51
|
inOwnerFolder,
|
|
52
|
+
settled,
|
|
52
53
|
refuseOwnerStoreInTests
|
|
53
54
|
};
|