@wirecat/cli-memo 0.131.23 → 0.131.24
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/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-VIPS6NHI.js → all-profiles-ZCJTYGOL.js} +5 -5
- package/dist/bundle/{anthropic-2QZHSXBA.js → anthropic-7WVLAKTX.js} +3 -3
- package/dist/bundle/{app-server-NTSADYGW.js → app-server-6G3SXEHO.js} +35 -35
- package/dist/bundle/auto-JWPM5654.js +86 -0
- package/dist/bundle/{bun-KF5QK2YN.js → bun-JVBDJKBB.js} +2 -2
- package/dist/bundle/{bun-sqlite-XUCC2PWC.js → bun-sqlite-P4I7NVMQ.js} +2 -2
- package/dist/bundle/{chunk-L6FKTS3L.js → chunk-2IRCJT4O.js} +7 -7
- package/dist/bundle/{chunk-IJI62T4U.js → chunk-3KNXQZMO.js} +27 -27
- package/dist/bundle/{chunk-R4V63U6A.js → chunk-3MER7NE6.js} +2 -2
- package/dist/bundle/{chunk-QZXHMQCM.js → chunk-3U7OUQV2.js} +1 -1
- package/dist/bundle/{chunk-UJEO3VWA.js → chunk-5YCNCXL5.js} +1 -1
- package/dist/bundle/{chunk-DIP3ENSY.js → chunk-AIGMYGEL.js} +1 -1
- package/dist/bundle/{chunk-AHFMQAJT.js → chunk-AIVUS6WA.js} +9 -9
- package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-ALGIPJ6L.js} +1 -1
- package/dist/bundle/{chunk-5WCEWK2F.js → chunk-AWGV4VOA.js} +10 -10
- package/dist/bundle/{chunk-GDGY2KIX.js → chunk-BTQSFPIM.js} +4 -4
- package/dist/bundle/{chunk-AETJWLHX.js → chunk-CM2H7NRC.js} +3 -3
- package/dist/bundle/{chunk-QFO6K6CW.js → chunk-CPJEQK4V.js} +43 -43
- package/dist/bundle/{chunk-JRJIFGU2.js → chunk-DIMX5AEE.js} +3 -3
- package/dist/bundle/{chunk-32FPXLNY.js → chunk-DMQ3342A.js} +39 -37
- package/dist/bundle/{chunk-MJWFSOJN.js → chunk-EACY2ULS.js} +214 -173
- package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-EB7LKK4K.js} +1 -1
- package/dist/bundle/{chunk-YKZNFSQE.js → chunk-EGG3PGCM.js} +1 -1
- package/dist/bundle/{chunk-N5L6YYYW.js → chunk-EKTZEF3Q.js} +1 -1
- package/dist/bundle/{chunk-UMWR5PKA.js → chunk-ELKYINWL.js} +12 -12
- package/dist/bundle/{chunk-BSR4QZW5.js → chunk-F2ED6KG6.js} +2 -2
- package/dist/bundle/{chunk-Z7XHH2Q5.js → chunk-FXHN2UZW.js} +14 -9
- package/dist/bundle/{chunk-24P36RXS.js → chunk-GQOXFZBX.js} +481 -308
- package/dist/bundle/{chunk-6PXE6QSQ.js → chunk-GRXVN2X7.js} +1 -1
- package/dist/bundle/{chunk-46WO42ZW.js → chunk-GSEDSGJF.js} +291 -260
- package/dist/bundle/{chunk-V7Y5FOYJ.js → chunk-IC2TL7RW.js} +2 -2
- package/dist/bundle/{chunk-XTARXRP6.js → chunk-IJC6MFLP.js} +7 -7
- package/dist/bundle/{chunk-NY4IKP35.js → chunk-INTF3YPV.js} +2 -2
- package/dist/bundle/{chunk-QSN5NUVL.js → chunk-ITQBXFMC.js} +2 -2
- package/dist/bundle/{chunk-W53TRO7J.js → chunk-J6D34BFP.js} +646 -324
- package/dist/bundle/{chunk-37NN65PB.js → chunk-JDDVGGUV.js} +4 -4
- package/dist/bundle/{chunk-5M4KSMYN.js → chunk-KQSHIQSV.js} +133 -58
- package/dist/bundle/{chunk-4QY7XOVI.js → chunk-LNXFM4FD.js} +11 -11
- package/dist/bundle/{chunk-PDQFWOR5.js → chunk-LWIMGWKB.js} +2 -2
- package/dist/bundle/{chunk-V5ZID7KC.js → chunk-M43DAAZ7.js} +1 -1
- package/dist/bundle/{chunk-UQA5UFJ2.js → chunk-MLMSQK76.js} +1 -1
- package/dist/bundle/{chunk-CTT5VK66.js → chunk-MPVW7BQZ.js} +5 -5
- package/dist/bundle/{chunk-4DKMYDLT.js → chunk-MROFZXAB.js} +41 -28
- package/dist/bundle/{chunk-6I7XGWGH.js → chunk-N5H6I7WQ.js} +5 -5
- package/dist/bundle/{chunk-ZCPUKUST.js → chunk-NAH473ZR.js} +1 -1
- package/dist/bundle/{chunk-7PQOYNMA.js → chunk-ND3GBFEY.js} +1 -1
- package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-OQK2IKPB.js} +1 -1
- package/dist/bundle/{chunk-G4GEARGN.js → chunk-Q6MFBH6Q.js} +8 -8
- package/dist/bundle/{chunk-RE5SEGSR.js → chunk-R2LJDDZP.js} +3 -3
- package/dist/bundle/{chunk-2IKXEL4V.js → chunk-R3LNQ3I4.js} +1 -1
- package/dist/bundle/{chunk-STZMKXK5.js → chunk-RTESJ5O2.js} +3 -3
- package/dist/bundle/{chunk-H76MIWB2.js → chunk-SKTGBVYC.js} +4 -4
- package/dist/bundle/{chunk-JDNA36EX.js → chunk-UA2C4BCH.js} +7 -7
- package/dist/bundle/{chunk-CKLCJ6O7.js → chunk-UPXUE27A.js} +4 -4
- package/dist/bundle/{chunk-GQOFHKUX.js → chunk-UVR6U55E.js} +5 -5
- package/dist/bundle/{chunk-DIELPPLF.js → chunk-UXCDBNAY.js} +1 -1
- package/dist/bundle/{chunk-XRJIQC6P.js → chunk-UY2VH3QK.js} +1 -1
- package/dist/bundle/{chunk-BIYSJBQR.js → chunk-VLPMB3UU.js} +4 -4
- package/dist/bundle/{chunk-Z6YD3YK4.js → chunk-VVEFQEWP.js} +20 -20
- package/dist/bundle/{chunk-FXF34MI2.js → chunk-XF3LZ32F.js} +2 -2
- package/dist/bundle/{chunk-HBXZ7WIV.js → chunk-XSI5NYGB.js} +6 -6
- package/dist/bundle/{chunk-44NQLD5C.js → chunk-ZDOVR4PA.js} +4 -4
- package/dist/bundle/{chunk-O7OI5V7W.js → chunk-ZLZE5P6M.js} +5 -5
- package/dist/bundle/{chunk-BSDOH7DN.js → chunk-ZOYGY2PN.js} +1 -1
- package/dist/bundle/{command-contract-XBYNZVP5.js → command-contract-543RRFNU.js} +11 -11
- package/dist/bundle/{decode-LFASKQPE.js → decode-YHX3DQG2.js} +2 -2
- package/dist/bundle/{echarts-5AB3LFVD.js → echarts-FBVAP7BR.js} +2 -2
- package/dist/bundle/{embed-6KQN523T.js → embed-CQJ42S5C.js} +3 -3
- package/dist/bundle/{embedder-7SGPMINO.js → embedder-EDXLEJ27.js} +6 -6
- package/dist/bundle/{entry-CNZGHHZB.js → entry-HZEA7QFK.js} +4 -4
- package/dist/bundle/failure-62G7QSPX.js +66 -0
- package/dist/bundle/{first-run-UI6UT4OR.js → first-run-JZQN7R6M.js} +5 -5
- package/dist/bundle/{first-screen-3WDPZZXV.js → first-screen-56V3UOQE.js} +12 -12
- package/dist/bundle/{instructions-52W6ZQTU.js → instructions-NYVYNWVU.js} +1 -1
- package/dist/bundle/{mcp-JIOYIKWO.js → mcp-Y6IPYDS2.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-TL2PBNKO.js → node-2QE6UPGS.js} +2 -2
- package/dist/bundle/{node-sqlite-64QIEQ37.js → node-sqlite-SDHZJNY7.js} +3 -3
- package/dist/bundle/{oauth-GH7GLGEJ.js → oauth-FFUJREKS.js} +4 -4
- package/dist/bundle/{open-PCKU5XOH.js → open-NT2GYX6N.js} +2 -2
- package/dist/bundle/{openai-P5QVLTF6.js → openai-IQA2XR6Z.js} +7 -7
- package/dist/bundle/{process-PWAGP6YY.js → process-HIEJXYW6.js} +1 -1
- package/dist/bundle/{program-D7OTNHGU.js → program-DEMRKCZY.js} +90 -65
- package/dist/bundle/{prompt-FNBKJZLM.js → prompt-IOZAME2R.js} +2 -2
- package/dist/bundle/{recognize-5TKRMMA2.js → recognize-2XOAZJ5N.js} +1 -1
- package/dist/bundle/{remote-XZJ7ZAKJ.js → remote-2LE7OTDA.js} +4 -4
- package/dist/bundle/{rerank-JUH3QHX7.js → rerank-UKOVVZM6.js} +4 -4
- package/dist/bundle/{serve-JP6U3PUO.js → serve-S2UHPEBP.js} +6 -6
- package/dist/bundle/server-3YNOEPWU.js +61 -0
- package/dist/bundle/{server-VXI43PF5.js → server-BG4WWQHY.js} +50 -50
- package/dist/bundle/server-EZWQ5KP4.js +48 -0
- package/dist/bundle/{setup-YLI4S4TW.js → setup-2X7ADKFH.js} +39 -39
- package/dist/bundle/{state-G4NEN2OZ.js → state-F5KT3CBD.js} +3 -3
- package/dist/bundle/{store-NHFLFHD5.js → store-WBUUS7FO.js} +9 -9
- package/dist/bundle/store-maintenance-command-KLST56XF.js +48 -0
- package/dist/bundle/update-WH4CGJGP.js +69 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/auto-MJWSDIMF.js +0 -86
- package/dist/bundle/failure-LJAYEPTS.js +0 -66
- package/dist/bundle/server-5M4YI3V4.js +0 -48
- package/dist/bundle/server-XAHF22CQ.js +0 -61
- package/dist/bundle/store-maintenance-command-6UEORZWI.js +0 -48
- package/dist/bundle/update-6SD2JZUC.js +0 -69
- /package/dist/bundle/{chunk-WX2WLEEF.js → chunk-CWOKGEL3.js} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-QP3KNC5D.js";
|
|
6
6
|
import {
|
|
7
7
|
knownPermissionKeys
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VVEFQEWP.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_BACKEND,
|
|
11
11
|
SERVER_BOUNDS,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
searchStore,
|
|
19
19
|
senderIsMe,
|
|
20
20
|
sourceKey
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-J6D34BFP.js";
|
|
22
22
|
import {
|
|
23
23
|
KEEP_RUNS_FOR_DAYS,
|
|
24
24
|
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
@@ -32,19 +32,19 @@ import {
|
|
|
32
32
|
settingPathOf,
|
|
33
33
|
withSettingDefaults,
|
|
34
34
|
withoutSetting
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EACY2ULS.js";
|
|
36
36
|
import {
|
|
37
37
|
DEFAULT_DECISION_POLICY,
|
|
38
38
|
MESSAGE_PARSING,
|
|
39
39
|
isBusy,
|
|
40
40
|
parseLocator,
|
|
41
41
|
validateFields
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GQOXFZBX.js";
|
|
43
43
|
import {
|
|
44
44
|
dateRange,
|
|
45
45
|
parseLucene,
|
|
46
46
|
timezoneOf
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-KQSHIQSV.js";
|
|
48
48
|
import {
|
|
49
49
|
configFilePath,
|
|
50
50
|
resolvePaths,
|
|
@@ -9812,12 +9812,13 @@ var require_cjs = __commonJS({
|
|
|
9812
9812
|
}
|
|
9813
9813
|
});
|
|
9814
9814
|
|
|
9815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
9816
9816
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
9817
9817
|
|
|
9818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
9819
9819
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
9820
9820
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
9821
|
+
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
9821
9822
|
var FETCH_CHUNK = 50;
|
|
9822
9823
|
var addressOf = /* @__PURE__ */ __name(({ email, name }) => ({ address: email, name }), "addressOf");
|
|
9823
9824
|
var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngine, maxAttachmentChars, at, signal, policy }, log) => {
|
|
@@ -9854,11 +9855,11 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
9854
9855
|
return files;
|
|
9855
9856
|
}, "readAttachments");
|
|
9856
9857
|
|
|
9857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
9858
9859
|
var BULK = "bulk";
|
|
9859
9860
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
9860
9861
|
|
|
9861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
9862
9863
|
var import_disposable_email_domains_js = __toESM(require_dist2(), 1);
|
|
9863
9864
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
9864
9865
|
var WEIGHTS = {
|
|
@@ -9992,7 +9993,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
9992
9993
|
return { score: kept.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept };
|
|
9993
9994
|
}, "scoreGroup");
|
|
9994
9995
|
|
|
9995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
9996
9997
|
var PRESETS = {
|
|
9997
9998
|
social: {
|
|
9998
9999
|
about: "notifications from social networks",
|
|
@@ -10084,7 +10085,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
10084
10085
|
return false;
|
|
10085
10086
|
}, "presetMatches");
|
|
10086
10087
|
|
|
10087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
10088
10089
|
var SUGGEST_RULE = "suggest is skip when a group has at least 20 emails, at least 80% of them list or bulk mail (List-Id, List-Unsubscribe or Precedence: bulk) and the owner never sent mail to its sender";
|
|
10089
10090
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
10090
10091
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
@@ -10161,7 +10162,7 @@ var domainsToAge = /* @__PURE__ */ __name((groups, skip) => [
|
|
|
10161
10162
|
}))
|
|
10162
10163
|
], "domainsToAge");
|
|
10163
10164
|
|
|
10164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
10165
10166
|
var factsOf = /* @__PURE__ */ __name((listed, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
10166
10167
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
10167
10168
|
if (!grouped)
|
|
@@ -10179,7 +10180,7 @@ var factsOf = /* @__PURE__ */ __name((listed, rules, ages = /* @__PURE__ */ new
|
|
|
10179
10180
|
};
|
|
10180
10181
|
}, "factsOf");
|
|
10181
10182
|
|
|
10182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/folders.js
|
|
10183
10184
|
var GMAIL_ALL_MAIL = "[Gmail]/All Mail";
|
|
10184
10185
|
var mailFolders = /* @__PURE__ */ __name(async (account, source) => {
|
|
10185
10186
|
if (account.folders)
|
|
@@ -10190,7 +10191,7 @@ var mailFolders = /* @__PURE__ */ __name(async (account, source) => {
|
|
|
10190
10191
|
return [all ?? GMAIL_ALL_MAIL];
|
|
10191
10192
|
}, "mailFolders");
|
|
10192
10193
|
|
|
10193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/gone.js
|
|
10194
10195
|
var PAGE = 500;
|
|
10195
10196
|
var MAX_DELETED_SHARE = 0.2;
|
|
10196
10197
|
var MIN_DELETIONS_CAPPED = 5;
|
|
@@ -15489,7 +15490,7 @@ var PostalMime = class _PostalMime {
|
|
|
15489
15490
|
}
|
|
15490
15491
|
};
|
|
15491
15492
|
|
|
15492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
15493
15494
|
var HEADER_FIELDS = "FROM TO CC SUBJECT LIST-ID LIST-UNSUBSCRIBE PRECEDENCE REPLY-TO AUTHENTICATION-RESULTS CONTENT-TYPE";
|
|
15494
15495
|
var unfold = /* @__PURE__ */ __name((text) => text.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
15495
15496
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
@@ -15565,7 +15566,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
15565
15566
|
};
|
|
15566
15567
|
}, "mailHeadersOf");
|
|
15567
15568
|
|
|
15568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/ids.js
|
|
15569
15570
|
import { createHash } from "node:crypto";
|
|
15570
15571
|
var digest = /* @__PURE__ */ __name((id) => `imap:${createHash("sha256").update(id).digest("hex")}`, "digest");
|
|
15571
15572
|
var firstId = /* @__PURE__ */ __name((value) => /<[^<>\s]+>/.exec(value ?? "")?.[0], "firstId");
|
|
@@ -15576,7 +15577,7 @@ var mailIds = /* @__PURE__ */ __name(({ messageId, head, folder, validity, uid }
|
|
|
15576
15577
|
return { messageId: digest(identity), threadId: digest(root ?? identity) };
|
|
15577
15578
|
}, "mailIds");
|
|
15578
15579
|
|
|
15579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/labels.js
|
|
15580
15581
|
var SYSTEM_LABELS = {
|
|
15581
15582
|
inbox: "Inbox",
|
|
15582
15583
|
sent: "Sent",
|
|
@@ -15604,7 +15605,7 @@ var decodedLabelName = /* @__PURE__ */ __name((name) => {
|
|
|
15604
15605
|
}, "decodedLabelName");
|
|
15605
15606
|
var labelName = /* @__PURE__ */ __name((raw) => decodedLabelName(decodeMailboxName(raw)), "labelName");
|
|
15606
15607
|
|
|
15607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
15608
15609
|
var MAX_BODY_CHARS = 1e6;
|
|
15609
15610
|
var MAX_ATTACHMENTS = 50;
|
|
15610
15611
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -15669,7 +15670,7 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
15669
15670
|
};
|
|
15670
15671
|
}, "parseMail");
|
|
15671
15672
|
|
|
15672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
15673
15674
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
15674
15675
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
15675
15676
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -15689,7 +15690,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
15689
15690
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
15690
15691
|
}), "parsedEmail");
|
|
15691
15692
|
|
|
15692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
15693
15694
|
var PARTIAL = "partial";
|
|
15694
15695
|
var PARTIAL_PER_RUN = 100;
|
|
15695
15696
|
var PARTIAL_TRIES = 3;
|
|
@@ -15790,7 +15791,7 @@ var completePartial = /* @__PURE__ */ __name(async ({ store, source, accountId,
|
|
|
15790
15791
|
return { completed, left: total - completed - given, stuck: stuck + given };
|
|
15791
15792
|
}, "completePartial");
|
|
15792
15793
|
|
|
15793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/resume.js
|
|
15794
15795
|
import { createHash as createHash2 } from "node:crypto";
|
|
15795
15796
|
var FULL_PASS_MS = 864e5;
|
|
15796
15797
|
var resumeKey = /* @__PURE__ */ __name((folder) => `mail_resume:${folder}`, "resumeKey");
|
|
@@ -15844,7 +15845,7 @@ var parsePoint = /* @__PURE__ */ __name((value) => {
|
|
|
15844
15845
|
}
|
|
15845
15846
|
}, "parsePoint");
|
|
15846
15847
|
|
|
15847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
15848
15849
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
15849
15850
|
...items.filter((item) => !suspicious(item)),
|
|
15850
15851
|
...items.filter(suspicious)
|
|
@@ -15931,7 +15932,7 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
15931
15932
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
15932
15933
|
}).join("\n"), "attachmentsText");
|
|
15933
15934
|
|
|
15934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
15935
15936
|
var REVIEW_THREADS = 50;
|
|
15936
15937
|
var REVIEW_PER_THREAD = 50;
|
|
15937
15938
|
var OWED_DAYS = 30;
|
|
@@ -16029,7 +16030,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
16029
16030
|
};
|
|
16030
16031
|
}, "reviewMail");
|
|
16031
16032
|
|
|
16032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
16033
16034
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
16034
16035
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
16035
16036
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -16118,7 +16119,7 @@ var envelopeBoxOf = /* @__PURE__ */ __name((externalId) => {
|
|
|
16118
16119
|
return { externalId, name: `envelope: ${kind} ${value.join(":")}`, kind: ENVELOPE };
|
|
16119
16120
|
}, "envelopeBoxOf");
|
|
16120
16121
|
|
|
16121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
16122
16123
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
16123
16124
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
16124
16125
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -16148,7 +16149,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
16148
16149
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
16149
16150
|
}), "ruleInput");
|
|
16150
16151
|
|
|
16151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
16152
16153
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
16153
16154
|
var KINDS = {
|
|
16154
16155
|
from: "string",
|
|
@@ -16217,7 +16218,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
16217
16218
|
}, "storedMailRuleSet");
|
|
16218
16219
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
16219
16220
|
|
|
16220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
16221
16222
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
16222
16223
|
const { details } = error;
|
|
16223
16224
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -16278,7 +16279,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
16278
16279
|
}
|
|
16279
16280
|
}, "settleRuleTags");
|
|
16280
16281
|
|
|
16281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/stored.js
|
|
16282
16283
|
var listedOf = /* @__PURE__ */ __name((email) => {
|
|
16283
16284
|
const labels = email.mailboxes.filter(({ kind }) => kind === "label").map(({ name }) => name);
|
|
16284
16285
|
if (email.flagged && !labels.includes("Starred"))
|
|
@@ -16311,7 +16312,7 @@ var listedOf = /* @__PURE__ */ __name((email) => {
|
|
|
16311
16312
|
};
|
|
16312
16313
|
}, "listedOf");
|
|
16313
16314
|
|
|
16314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/sender-scores.js
|
|
16315
16316
|
var SCORED = "mail_sender_scores";
|
|
16316
16317
|
var SCORE_VERSION = 4;
|
|
16317
16318
|
var DEMOTE_AT = 3;
|
|
@@ -16390,7 +16391,7 @@ var demotedSenders = /* @__PURE__ */ __name(async (store) => {
|
|
|
16390
16391
|
return senders;
|
|
16391
16392
|
}, "demotedSenders");
|
|
16392
16393
|
|
|
16393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
16394
16395
|
var DAY2 = 864e5;
|
|
16395
16396
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
16396
16397
|
var narrows = /* @__PURE__ */ __name((criteria) => criteria.words.length + criteria.from.length + criteria.to.length + criteria.cc.length + criteria.subject.length + criteria.body.length > 0 || criteria.since !== void 0 || criteria.before !== void 0 || criteria.seen !== void 0 || criteria.flagged !== void 0, "narrows");
|
|
@@ -16463,7 +16464,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text, { exact, timezone } = {}) =>
|
|
|
16463
16464
|
};
|
|
16464
16465
|
}, "mailCriteriaOf");
|
|
16465
16466
|
|
|
16466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
16467
16468
|
var refusal = {
|
|
16468
16469
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
16469
16470
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -16678,14 +16679,14 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
16678
16679
|
return { report, sources };
|
|
16679
16680
|
}, "searchMailServer");
|
|
16680
16681
|
|
|
16681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/source.js
|
|
16682
16683
|
var SEARCH_REFUSED = "mail.search-refused";
|
|
16683
16684
|
var searchRefused = /* @__PURE__ */ __name((error) => error instanceof CliError && error.details.reason === SEARCH_REFUSED, "searchRefused");
|
|
16684
16685
|
|
|
16685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/sync.js
|
|
16686
16687
|
import { setTimeout as setTimeout2 } from "node:timers/promises";
|
|
16687
16688
|
|
|
16688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/locations.js
|
|
16689
16690
|
var flagsToRefresh = /* @__PURE__ */ __name((rows, listing) => {
|
|
16690
16691
|
const changes = /* @__PURE__ */ new Map();
|
|
16691
16692
|
for (const { uid, seen, flagged } of listing) {
|
|
@@ -16732,7 +16733,7 @@ var proveByLocation = /* @__PURE__ */ __name(async (store, accountId, { folders,
|
|
|
16732
16733
|
return { deleted };
|
|
16733
16734
|
}, "proveByLocation");
|
|
16734
16735
|
|
|
16735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/quick.js
|
|
16736
16737
|
var FETCH_SLICE = 50;
|
|
16737
16738
|
var keyOf = /* @__PURE__ */ __name((folder, uid) => `${folder}\0${uid}`, "keyOf");
|
|
16738
16739
|
var readQuick = /* @__PURE__ */ __name(async (source, since, folder, searched, done, max, plan, located) => {
|
|
@@ -16802,7 +16803,7 @@ var readQuick = /* @__PURE__ */ __name(async (source, since, folder, searched, d
|
|
|
16802
16803
|
return answer;
|
|
16803
16804
|
}, "readQuick");
|
|
16804
16805
|
|
|
16805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/retry.js
|
|
16806
16807
|
var RETRYABLE_ATTACHMENTS = ["engine-missing"];
|
|
16807
16808
|
var retryUnread = /* @__PURE__ */ __name(async ({ store, source, account, since, max, maxBodyChars, maxAttachmentChars, policy, now, loadEngine, index }) => {
|
|
16808
16809
|
const startedAt = now();
|
|
@@ -16902,7 +16903,7 @@ var retryUnread = /* @__PURE__ */ __name(async ({ store, source, account, since,
|
|
|
16902
16903
|
};
|
|
16903
16904
|
}, "retryUnread");
|
|
16904
16905
|
|
|
16905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.564.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_0a4d79b5da58b1179a36aa928f36b150/node_modules/@wirecat/cli-core/dist/mail/sync.js
|
|
16906
16907
|
var DAY3 = 864e5;
|
|
16907
16908
|
var EDGE = 2 * DAY3;
|
|
16908
16909
|
var SAVE_EVERY_MS = 3e4;
|
|
@@ -18037,6 +18038,7 @@ var migrateConfig = /* @__PURE__ */ __name((env = process.env) => {
|
|
|
18037
18038
|
}, "migrateConfig");
|
|
18038
18039
|
|
|
18039
18040
|
export {
|
|
18041
|
+
POLICY_SKIPS,
|
|
18040
18042
|
SCORE_RULE,
|
|
18041
18043
|
FREE_MAIL,
|
|
18042
18044
|
SUGGEST_RULE,
|