@wirecat/cli-memo 0.131.40 → 0.131.41
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-QFW2NKJY.js → all-profiles-ZTYUFM24.js} +5 -5
- package/dist/bundle/{anthropic-IARLHPYJ.js → anthropic-BLXCM7J2.js} +3 -3
- package/dist/bundle/{app-server-L4N5IWJF.js → app-server-MXYDSTTW.js} +35 -35
- package/dist/bundle/auto-2RK6FE5A.js +86 -0
- package/dist/bundle/{bun-NWKIEX53.js → bun-GFMA4TKJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-HORFVNNY.js → bun-sqlite-3V6EB3XP.js} +2 -2
- package/dist/bundle/{chunk-FTX3OPWV.js → chunk-2E4N5DVE.js} +27 -27
- package/dist/bundle/{chunk-RZ3UQFLE.js → chunk-2G66FZPO.js} +1 -1
- package/dist/bundle/{chunk-YWWTEWX3.js → chunk-2O2BSM4K.js} +1 -1
- package/dist/bundle/{chunk-ASVVDNAS.js → chunk-3MVDNB6Y.js} +3 -3
- package/dist/bundle/{chunk-M7UHHXSH.js → chunk-5KL7T2EP.js} +1 -1
- package/dist/bundle/{chunk-JGDZ3G4P.js → chunk-6V6VCYOS.js} +3 -3
- package/dist/bundle/{chunk-2YJBI3NK.js → chunk-776YSJJY.js} +1 -1
- package/dist/bundle/{chunk-WU6PDHXY.js → chunk-7AS5QFWJ.js} +5 -5
- package/dist/bundle/{chunk-QR5KWOZ2.js → chunk-7EOGXNLO.js} +4 -4
- package/dist/bundle/{chunk-OZF7QBTS.js → chunk-7GEK5BE5.js} +2 -2
- package/dist/bundle/{chunk-CB34NXQP.js → chunk-A6HC2DWU.js} +57 -56
- package/dist/bundle/{chunk-WAZWM4KZ.js → chunk-ARNYYXLO.js} +20 -20
- package/dist/bundle/{chunk-ADMB7OK5.js → chunk-AYOFFZMO.js} +4 -4
- package/dist/bundle/{chunk-UGHYNVWQ.js → chunk-B5LF2FVU.js} +1 -1
- package/dist/bundle/{chunk-6E4DCMJ5.js → chunk-BA3HPVBN.js} +4 -4
- package/dist/bundle/{chunk-AKSNCK5L.js → chunk-BFN5KXGH.js} +257 -257
- package/dist/bundle/{chunk-THIXDXP3.js → chunk-BJWDBPLF.js} +2 -2
- package/dist/bundle/{chunk-G3IO2TLK.js → chunk-DYSWDGOU.js} +5 -5
- package/dist/bundle/{chunk-EQQWJM6B.js → chunk-F3OGJQWY.js} +5 -5
- package/dist/bundle/{chunk-XAWB4WEC.js → chunk-FVN42IND.js} +1 -1
- package/dist/bundle/{chunk-ZH43Q2JO.js → chunk-G6EOW6PY.js} +2 -2
- package/dist/bundle/{chunk-W3SMUCMB.js → chunk-IJJ4OEXK.js} +1 -1
- package/dist/bundle/{chunk-5HXLRQ4Q.js → chunk-IJS2X4AZ.js} +43 -43
- package/dist/bundle/{chunk-UEG3BDCX.js → chunk-ISVO2PHD.js} +4 -4
- package/dist/bundle/{chunk-ATR65D7K.js → chunk-J364I2EL.js} +8 -8
- package/dist/bundle/{chunk-WHWACGZX.js → chunk-JO3FC5B4.js} +7 -7
- package/dist/bundle/{chunk-A7MXWBIX.js → chunk-LGILT5CA.js} +2 -2
- package/dist/bundle/{chunk-6RAU7FD2.js → chunk-LLL4RBDU.js} +11 -11
- package/dist/bundle/{chunk-5HSR6U4Z.js → chunk-N2EY7NT3.js} +1 -1
- package/dist/bundle/{chunk-TWC6UJD2.js → chunk-NFN3JTGD.js} +12 -12
- package/dist/bundle/{chunk-FBREYLY5.js → chunk-NKKC6SLX.js} +1 -1
- package/dist/bundle/{chunk-LXQQ7Q34.js → chunk-NP7Y3JQ7.js} +9 -9
- package/dist/bundle/{chunk-EGRI2NUT.js → chunk-NYNUDUFA.js} +4 -4
- package/dist/bundle/{chunk-756VKGKO.js → chunk-OLVBY6N6.js} +2 -2
- package/dist/bundle/{chunk-LL5HPYW5.js → chunk-ONJAEHOD.js} +7 -7
- package/dist/bundle/{chunk-NCC3RXUX.js → chunk-OY2CMEUW.js} +3 -3
- package/dist/bundle/{chunk-B4XRE67Q.js → chunk-PPSIMMJM.js} +9 -9
- package/dist/bundle/{chunk-MLHRER2H.js → chunk-QCE6BNKK.js} +2 -2
- package/dist/bundle/{chunk-5G3NNIJQ.js → chunk-QUA7EHLA.js} +10 -10
- package/dist/bundle/{chunk-XV7M6VWX.js → chunk-RMJLG2D6.js} +4 -4
- package/dist/bundle/{chunk-PAE2NZ7S.js → chunk-RMMYPYNA.js} +20 -20
- package/dist/bundle/{chunk-SRYOICSG.js → chunk-RNINC74Q.js} +1 -1
- package/dist/bundle/{chunk-EGQCBZVM.js → chunk-RZUSWGAC.js} +2 -2
- package/dist/bundle/{chunk-OSDA5EZW.js → chunk-S7TVQ7ES.js} +268 -258
- package/dist/bundle/{chunk-DNZH53VQ.js → chunk-SCIU5WHL.js} +3 -3
- package/dist/bundle/{chunk-BWNNUEHG.js → chunk-UA2H5FRV.js} +1 -1
- package/dist/bundle/{chunk-XF7TG5VK.js → chunk-ULDE2Y7M.js} +32 -31
- package/dist/bundle/{chunk-A7M74RZH.js → chunk-V5TOZXBU.js} +297 -278
- package/dist/bundle/{chunk-EIFPQD57.js → chunk-VF24JTL4.js} +1 -1
- package/dist/bundle/{chunk-Z6OKSDP3.js → chunk-VT4PCMY2.js} +1 -1
- package/dist/bundle/{chunk-KGXVJO2V.js → chunk-WFME7ILV.js} +5 -5
- package/dist/bundle/{chunk-OGHWLR5E.js → chunk-WG3JJ7D5.js} +1 -1
- package/dist/bundle/{chunk-4EZK5PGX.js → chunk-XXDWCZRM.js} +1 -1
- package/dist/bundle/{chunk-KWGNPUIV.js → chunk-Y4B4273X.js} +7 -7
- package/dist/bundle/{chunk-U5WIWLWM.js → chunk-Y7XDV4GQ.js} +6 -6
- package/dist/bundle/{chunk-KAU67PDK.js → chunk-YNYOWOKD.js} +159 -150
- package/dist/bundle/{chunk-2SZEKYBN.js → chunk-ZETAM63O.js} +1 -1
- package/dist/bundle/{command-contract-ZRJPMWWI.js → command-contract-KCV6NNGF.js} +11 -11
- package/dist/bundle/{decode-MDCEP64X.js → decode-SU7TIUXV.js} +2 -2
- package/dist/bundle/{echarts-RFIQAWMT.js → echarts-CJG2WVOX.js} +2 -2
- package/dist/bundle/{embed-443F7XR4.js → embed-IBURCPTK.js} +3 -3
- package/dist/bundle/{embedder-VRDPZFWC.js → embedder-SK773RJG.js} +6 -6
- package/dist/bundle/{entry-36KBOBA4.js → entry-6WOJUMZN.js} +4 -4
- package/dist/bundle/failure-4N6GOEGN.js +66 -0
- package/dist/bundle/{first-run-CYZSGJTG.js → first-run-CMSDLJGE.js} +5 -5
- package/dist/bundle/{first-screen-UY54KNVU.js → first-screen-6IZLOQ3Q.js} +12 -12
- package/dist/bundle/{instructions-RI2WFMBA.js → instructions-RHGGUIBR.js} +1 -1
- package/dist/bundle/{mcp-DHX4GF3A.js → mcp-HBKMY35O.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-H7LWGE5H.js → node-NBXEN7JU.js} +2 -2
- package/dist/bundle/{node-sqlite-N4POELFM.js → node-sqlite-WAGIYOYR.js} +3 -3
- package/dist/bundle/{oauth-OOUASPSL.js → oauth-INSEXJD2.js} +4 -4
- package/dist/bundle/{open-2T52CQDG.js → open-LXFV2C67.js} +2 -2
- package/dist/bundle/{openai-76CJYDRJ.js → openai-OCWAXC7E.js} +7 -7
- package/dist/bundle/{process-7YATIAKW.js → process-MRPJP32M.js} +1 -1
- package/dist/bundle/{program-O4I2BGM2.js → program-XKO4X6BB.js} +90 -68
- package/dist/bundle/{prompt-MHD5EI75.js → prompt-ROLOHFNO.js} +2 -2
- package/dist/bundle/{recognize-ARCD7XPJ.js → recognize-63ZLC4DN.js} +1 -1
- package/dist/bundle/{remote-OQ7TUXN3.js → remote-J4ZBFG3Y.js} +4 -4
- package/dist/bundle/{rerank-422D4DZR.js → rerank-HUQCCGYO.js} +4 -4
- package/dist/bundle/{serve-ZOT62JRM.js → serve-MFJYL4AB.js} +6 -6
- package/dist/bundle/{server-HAZC3T7X.js → server-2JQ5K33G.js} +50 -50
- package/dist/bundle/server-RKPGL53W.js +48 -0
- package/dist/bundle/server-ZN2KC4EE.js +61 -0
- package/dist/bundle/{state-KBW7BI2G.js → state-AV5MO77W.js} +3 -3
- package/dist/bundle/{store-KZY5FZPD.js → store-H4HCVN4H.js} +9 -9
- package/dist/bundle/store-maintenance-command-4GYOMUXE.js +48 -0
- package/dist/bundle/update-ATXEHV72.js +69 -0
- package/dist/finance/finance.d.ts +1 -1
- package/dist/finance/finance.d.ts.map +1 -1
- package/dist/finance/finance.js +2 -0
- package/dist/finance/finance.js.map +1 -1
- package/dist/mail/findings-command.d.ts.map +1 -1
- package/dist/mail/findings-command.js +9 -13
- package/dist/mail/findings-command.js.map +1 -1
- package/dist/review/command.d.ts +40 -0
- package/dist/review/command.d.ts.map +1 -1
- package/dist/review/command.js +25 -1
- package/dist/review/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/mail-triage/SKILL.md +8 -9
- package/dist/bundle/auto-24I3FBUW.js +0 -86
- package/dist/bundle/failure-QKFNHYKC.js +0 -66
- package/dist/bundle/server-EISBI6O6.js +0 -61
- package/dist/bundle/server-NNQ3YRBV.js +0 -48
- package/dist/bundle/store-maintenance-command-ZFQOMCLZ.js +0 -48
- package/dist/bundle/update-SAX5XN2C.js +0 -69
- /package/dist/bundle/{chunk-5VKETWNU.js → chunk-VVDYRHYP.js} +0 -0
|
@@ -3,19 +3,19 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
agentResult,
|
|
5
5
|
failureContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PPSIMMJM.js";
|
|
7
7
|
import {
|
|
8
8
|
CommanderError,
|
|
9
9
|
judgedEffects,
|
|
10
10
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YNYOWOKD.js";
|
|
12
12
|
import {
|
|
13
13
|
interactiveOf,
|
|
14
14
|
optionsOf
|
|
15
15
|
} from "./chunk-BPGYTJNB.js";
|
|
16
16
|
import {
|
|
17
17
|
APP
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2G66FZPO.js";
|
|
19
19
|
import {
|
|
20
20
|
ValiError,
|
|
21
21
|
errorObjectOf,
|
|
@@ -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.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -24,19 +24,19 @@ import {
|
|
|
24
24
|
serverSearchOptions,
|
|
25
25
|
summaryOf,
|
|
26
26
|
unansweredHours
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-S7TVQ7ES.js";
|
|
28
28
|
import {
|
|
29
29
|
MAIL_HIT_UNTRUSTED,
|
|
30
30
|
messagesAnswer,
|
|
31
31
|
offsetOf,
|
|
32
32
|
shownOf
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RMMYPYNA.js";
|
|
34
34
|
import {
|
|
35
35
|
messageItem
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-IJS2X4AZ.js";
|
|
37
37
|
import {
|
|
38
38
|
knownPermissionKeys
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ARNYYXLO.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENDA_DEFAULTS,
|
|
42
42
|
DEFAULT_BACKEND,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
sourceKey,
|
|
60
60
|
typedQuery,
|
|
61
61
|
withQuery
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BFN5KXGH.js";
|
|
63
63
|
import {
|
|
64
64
|
Command,
|
|
65
65
|
FETCH,
|
|
@@ -91,11 +91,11 @@ import {
|
|
|
91
91
|
snakeKeys,
|
|
92
92
|
withSettingDefaults,
|
|
93
93
|
withoutSetting
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-YNYOWOKD.js";
|
|
95
95
|
import {
|
|
96
96
|
mailHolderVariable,
|
|
97
97
|
readOnlyLockOf
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-B5LF2FVU.js";
|
|
99
99
|
import {
|
|
100
100
|
DEFAULT_DECISION_POLICY,
|
|
101
101
|
MESSAGE_PARSING,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
registrableOf,
|
|
109
109
|
scoreGroup,
|
|
110
110
|
validateFields
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-V5TOZXBU.js";
|
|
112
112
|
import {
|
|
113
113
|
count,
|
|
114
114
|
dateRange,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
time,
|
|
120
120
|
timezoneOf,
|
|
121
121
|
untrusted
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-A6HC2DWU.js";
|
|
123
123
|
import {
|
|
124
124
|
configFilePath,
|
|
125
125
|
resolvePaths,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
__toESM
|
|
157
157
|
} from "./chunk-ZVVMGPBJ.js";
|
|
158
158
|
|
|
159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
160
160
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
161
161
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
162
162
|
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
@@ -195,7 +195,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
195
195
|
return files;
|
|
196
196
|
}, "readAttachments");
|
|
197
197
|
|
|
198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
199
199
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
200
200
|
...items.filter((item) => !suspicious(item)),
|
|
201
201
|
...items.filter(suspicious)
|
|
@@ -282,11 +282,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
282
282
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
283
283
|
}).join("\n"), "attachmentsText");
|
|
284
284
|
|
|
285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
286
286
|
var BULK = "bulk";
|
|
287
287
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
288
288
|
|
|
289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
290
290
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
291
291
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
292
292
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -306,7 +306,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
306
306
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
307
307
|
}), "parsedEmail");
|
|
308
308
|
|
|
309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
310
310
|
var PRESETS = {
|
|
311
311
|
social: {
|
|
312
312
|
about: "notifications from social networks",
|
|
@@ -398,7 +398,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
398
398
|
return false;
|
|
399
399
|
}, "presetMatches");
|
|
400
400
|
|
|
401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
402
402
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
403
403
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
404
404
|
var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
|
|
@@ -466,7 +466,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
|
|
|
466
466
|
};
|
|
467
467
|
}, "probeMail");
|
|
468
468
|
|
|
469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
470
470
|
var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
471
471
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
472
472
|
if (!grouped)
|
|
@@ -5737,7 +5737,7 @@ var PostalMime = class _PostalMime {
|
|
|
5737
5737
|
}
|
|
5738
5738
|
};
|
|
5739
5739
|
|
|
5740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
5741
5741
|
var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
5742
5742
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
5743
5743
|
var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
|
|
@@ -5784,7 +5784,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
5784
5784
|
};
|
|
5785
5785
|
}, "mailHeadersOf");
|
|
5786
5786
|
|
|
5787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
5788
5788
|
var MAX_BODY_CHARS = 1e6;
|
|
5789
5789
|
var MAX_ATTACHMENTS = 50;
|
|
5790
5790
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -5849,13 +5849,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
5849
5849
|
};
|
|
5850
5850
|
}, "parseMail");
|
|
5851
5851
|
|
|
5852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
5853
5853
|
var PARTIAL = "partial";
|
|
5854
5854
|
|
|
5855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
5856
5856
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
5857
5857
|
|
|
5858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
5859
5859
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
5860
5860
|
var KINDS = {
|
|
5861
5861
|
from: "string",
|
|
@@ -5924,7 +5924,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
5924
5924
|
}, "storedMailRuleSet");
|
|
5925
5925
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
5926
5926
|
|
|
5927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
5928
5928
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
5929
5929
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
5930
5930
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -5996,7 +5996,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
|
|
|
5996
5996
|
}, "tagsOf");
|
|
5997
5997
|
var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
|
|
5998
5998
|
|
|
5999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
6000
6000
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
6001
6001
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
6002
6002
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -6026,7 +6026,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
6026
6026
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
6027
6027
|
}), "ruleInput");
|
|
6028
6028
|
|
|
6029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
6030
6030
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
6031
6031
|
const { details } = error;
|
|
6032
6032
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -6087,7 +6087,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
6087
6087
|
}
|
|
6088
6088
|
}, "settleRuleTags");
|
|
6089
6089
|
|
|
6090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
6091
6091
|
var DAY = 864e5;
|
|
6092
6092
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
6093
6093
|
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");
|
|
@@ -6160,7 +6160,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
|
|
|
6160
6160
|
};
|
|
6161
6161
|
}, "mailCriteriaOf");
|
|
6162
6162
|
|
|
6163
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
6164
6164
|
var refusal = {
|
|
6165
6165
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
6166
6166
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -6375,7 +6375,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
6375
6375
|
return { report, sources };
|
|
6376
6376
|
}, "searchMailServer");
|
|
6377
6377
|
|
|
6378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
|
|
6379
6379
|
var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
6380
6380
|
var mailMark = strictObject({
|
|
6381
6381
|
holder: string(),
|
|
@@ -6473,7 +6473,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
6473
6473
|
});
|
|
6474
6474
|
}), "resetMarkCommand");
|
|
6475
6475
|
|
|
6476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
6477
6477
|
var REVIEW_THREADS = 50;
|
|
6478
6478
|
var REVIEW_PER_THREAD = 50;
|
|
6479
6479
|
var OWED_DAYS = 30;
|
|
@@ -6571,7 +6571,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
6571
6571
|
};
|
|
6572
6572
|
}, "reviewMail");
|
|
6573
6573
|
|
|
6574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
6575
6575
|
var DAY2 = 864e5;
|
|
6576
6576
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
6577
6577
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -6833,7 +6833,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
6833
6833
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
6834
6834
|
}), "mailReviewCommand");
|
|
6835
6835
|
|
|
6836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
6837
6837
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
6838
6838
|
var MAIL_BULK_SETTINGS = [
|
|
6839
6839
|
{
|
|
@@ -6889,7 +6889,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
6889
6889
|
};
|
|
6890
6890
|
}, "bulkTriageOf");
|
|
6891
6891
|
|
|
6892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.584.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_ded3b38d9f479071bd35502124c4f129/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
6893
6893
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
6894
6894
|
if (error instanceof CliError && error.code === "not_found")
|
|
6895
6895
|
return void 0;
|
|
@@ -7570,6 +7570,7 @@ export {
|
|
|
7570
7570
|
showMail,
|
|
7571
7571
|
hitText,
|
|
7572
7572
|
attachmentsText,
|
|
7573
|
+
mailMark,
|
|
7573
7574
|
markItem,
|
|
7574
7575
|
OWED_DAYS,
|
|
7575
7576
|
mailReadCommands,
|