@wirecat/cli-memo 0.131.39 → 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-5CXMPAOF.js → all-profiles-ZTYUFM24.js} +5 -5
- package/dist/bundle/{anthropic-KJECM7MD.js → anthropic-BLXCM7J2.js} +3 -3
- package/dist/bundle/{app-server-ZO7Z7RMA.js → app-server-MXYDSTTW.js} +35 -35
- package/dist/bundle/auto-2RK6FE5A.js +86 -0
- package/dist/bundle/{bun-V2HGEGFF.js → bun-GFMA4TKJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-DSFSAFNQ.js → bun-sqlite-3V6EB3XP.js} +2 -2
- package/dist/bundle/{chunk-H4GQZLTW.js → chunk-2E4N5DVE.js} +27 -27
- package/dist/bundle/{chunk-72DBFKCI.js → chunk-2G66FZPO.js} +1 -1
- package/dist/bundle/{chunk-3ZEH35NH.js → chunk-2O2BSM4K.js} +1 -1
- package/dist/bundle/{chunk-4MFNKTQQ.js → chunk-3MVDNB6Y.js} +3 -3
- package/dist/bundle/{chunk-WBWFH7ZT.js → chunk-5KL7T2EP.js} +1 -1
- package/dist/bundle/{chunk-AKLFOL4C.js → chunk-6V6VCYOS.js} +3 -3
- package/dist/bundle/{chunk-P3QBCCBA.js → chunk-776YSJJY.js} +1 -1
- package/dist/bundle/{chunk-DMY2YVJ7.js → chunk-7AS5QFWJ.js} +5 -5
- package/dist/bundle/{chunk-GANKKP5F.js → chunk-7EOGXNLO.js} +4 -4
- package/dist/bundle/{chunk-Q3O7N35U.js → chunk-7GEK5BE5.js} +2 -2
- package/dist/bundle/{chunk-BHBLLZAO.js → chunk-A6HC2DWU.js} +90 -74
- package/dist/bundle/{chunk-CQJO22KN.js → chunk-ARNYYXLO.js} +20 -20
- package/dist/bundle/{chunk-UECWAAZ3.js → chunk-AYOFFZMO.js} +4 -4
- package/dist/bundle/{chunk-EP5U5WCQ.js → chunk-B5LF2FVU.js} +1 -1
- package/dist/bundle/{chunk-LXNWBHCK.js → chunk-BA3HPVBN.js} +4 -4
- package/dist/bundle/{chunk-4GA7IMXD.js → chunk-BFN5KXGH.js} +257 -257
- package/dist/bundle/{chunk-YFBNICKS.js → chunk-BJWDBPLF.js} +2 -2
- package/dist/bundle/{chunk-7VBSW2RI.js → chunk-DYSWDGOU.js} +5 -5
- package/dist/bundle/{chunk-G35CZBBF.js → chunk-F3OGJQWY.js} +5 -5
- package/dist/bundle/{chunk-UIUMG7AY.js → chunk-FVN42IND.js} +1 -1
- package/dist/bundle/{chunk-D7JMUN36.js → chunk-G6EOW6PY.js} +2 -2
- package/dist/bundle/{chunk-O6ZLAFWQ.js → chunk-IJJ4OEXK.js} +1 -1
- package/dist/bundle/{chunk-WDDYMCLD.js → chunk-IJS2X4AZ.js} +43 -43
- package/dist/bundle/{chunk-GRTELFME.js → chunk-ISVO2PHD.js} +4 -4
- package/dist/bundle/{chunk-CHAA2BOM.js → chunk-J364I2EL.js} +8 -8
- package/dist/bundle/{chunk-AX6AMVVY.js → chunk-JO3FC5B4.js} +7 -7
- package/dist/bundle/{chunk-QMDVWF3C.js → chunk-LGILT5CA.js} +2 -2
- package/dist/bundle/{chunk-EY42TTWE.js → chunk-LLL4RBDU.js} +11 -11
- package/dist/bundle/{chunk-7DMTHV2P.js → chunk-N2EY7NT3.js} +1 -1
- package/dist/bundle/{chunk-SB7V3HFM.js → chunk-NFN3JTGD.js} +12 -12
- package/dist/bundle/{chunk-WJCBQFEM.js → chunk-NKKC6SLX.js} +1 -1
- package/dist/bundle/{chunk-QZABT7XH.js → chunk-NP7Y3JQ7.js} +9 -9
- package/dist/bundle/{chunk-552IRBSA.js → chunk-NYNUDUFA.js} +4 -4
- package/dist/bundle/{chunk-QL2YLPB5.js → chunk-OLVBY6N6.js} +2 -2
- package/dist/bundle/{chunk-JQSFIPWA.js → chunk-ONJAEHOD.js} +7 -7
- package/dist/bundle/{chunk-U5B2ORUM.js → chunk-OY2CMEUW.js} +3 -3
- package/dist/bundle/{chunk-HB3YU52J.js → chunk-PPSIMMJM.js} +10 -9
- package/dist/bundle/{chunk-QUJXYDYY.js → chunk-QCE6BNKK.js} +2 -2
- package/dist/bundle/{chunk-PWVNSJBL.js → chunk-QUA7EHLA.js} +10 -10
- package/dist/bundle/{chunk-ER7SUNTY.js → chunk-RMJLG2D6.js} +4 -4
- package/dist/bundle/{chunk-OJBM56FX.js → chunk-RMMYPYNA.js} +20 -20
- package/dist/bundle/{chunk-Q35DHKBZ.js → chunk-RNINC74Q.js} +1 -1
- package/dist/bundle/{chunk-H4DBYU2J.js → chunk-RZUSWGAC.js} +2 -2
- package/dist/bundle/{chunk-S7W5GFOI.js → chunk-S7TVQ7ES.js} +305 -283
- package/dist/bundle/{chunk-KBDZG6XU.js → chunk-SCIU5WHL.js} +3 -3
- package/dist/bundle/{chunk-XED6NO7E.js → chunk-UA2H5FRV.js} +1 -1
- package/dist/bundle/{chunk-6BJPSIFE.js → chunk-ULDE2Y7M.js} +39 -35
- package/dist/bundle/{chunk-DZBNKSE2.js → chunk-V5TOZXBU.js} +371 -358
- package/dist/bundle/{chunk-TSGJRL2S.js → chunk-VF24JTL4.js} +1 -1
- package/dist/bundle/{chunk-B2YW6VOA.js → chunk-VT4PCMY2.js} +1 -1
- package/dist/bundle/{chunk-ZQTFPZ36.js → chunk-WFME7ILV.js} +5 -5
- package/dist/bundle/{chunk-SANEKFUF.js → chunk-WG3JJ7D5.js} +1 -1
- package/dist/bundle/{chunk-QAFJG52K.js → chunk-XXDWCZRM.js} +1 -1
- package/dist/bundle/{chunk-TOZ2COFV.js → chunk-Y4B4273X.js} +7 -7
- package/dist/bundle/{chunk-RBLUTSSL.js → chunk-Y7XDV4GQ.js} +6 -6
- package/dist/bundle/{chunk-5I75PUEK.js → chunk-YNYOWOKD.js} +208 -166
- package/dist/bundle/{chunk-P357OGUL.js → chunk-ZETAM63O.js} +1 -1
- package/dist/bundle/{command-contract-JXLIGF3U.js → command-contract-KCV6NNGF.js} +11 -11
- package/dist/bundle/{decode-HXMDIZKS.js → decode-SU7TIUXV.js} +2 -2
- package/dist/bundle/{echarts-MRWQC3FY.js → echarts-CJG2WVOX.js} +2 -2
- package/dist/bundle/{embed-IEJFYZ7N.js → embed-IBURCPTK.js} +3 -3
- package/dist/bundle/{embedder-N2TXC47Z.js → embedder-SK773RJG.js} +6 -6
- package/dist/bundle/{entry-VX4RACD7.js → entry-6WOJUMZN.js} +4 -4
- package/dist/bundle/failure-4N6GOEGN.js +66 -0
- package/dist/bundle/{first-run-2GXQUNFV.js → first-run-CMSDLJGE.js} +5 -5
- package/dist/bundle/{first-screen-JRKMDJPK.js → first-screen-6IZLOQ3Q.js} +12 -12
- package/dist/bundle/{instructions-FR4H42RI.js → instructions-RHGGUIBR.js} +1 -1
- package/dist/bundle/{mcp-IP3FEW24.js → mcp-HBKMY35O.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-QWBBKDHE.js → node-NBXEN7JU.js} +2 -2
- package/dist/bundle/{node-sqlite-GKJHUPHC.js → node-sqlite-WAGIYOYR.js} +3 -3
- package/dist/bundle/{oauth-ZQ7B32ZI.js → oauth-INSEXJD2.js} +4 -4
- package/dist/bundle/{open-TDGXVXNV.js → open-LXFV2C67.js} +2 -2
- package/dist/bundle/{openai-3T4YGUZM.js → openai-OCWAXC7E.js} +7 -7
- package/dist/bundle/{process-OBTDURL4.js → process-MRPJP32M.js} +1 -1
- package/dist/bundle/{program-6UJEO4TI.js → program-XKO4X6BB.js} +91 -69
- package/dist/bundle/{prompt-JZIIKSM4.js → prompt-ROLOHFNO.js} +2 -2
- package/dist/bundle/{recognize-47F6WJYE.js → recognize-63ZLC4DN.js} +1 -1
- package/dist/bundle/{remote-NHSYSI2S.js → remote-J4ZBFG3Y.js} +4 -4
- package/dist/bundle/{rerank-HONNCBTA.js → rerank-HUQCCGYO.js} +4 -4
- package/dist/bundle/{serve-63BFDEQS.js → serve-MFJYL4AB.js} +6 -6
- package/dist/bundle/{server-QWJPOH7K.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-ZLODXERO.js → state-AV5MO77W.js} +3 -3
- package/dist/bundle/{store-Q36VLED7.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/knowledge/project-status-command.js +1 -1
- package/dist/knowledge/project-status-command.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-MA47DOER.js +0 -86
- package/dist/bundle/failure-LU3CYK3U.js +0 -66
- package/dist/bundle/server-I6M5QH5W.js +0 -48
- package/dist/bundle/server-XYUNBCYP.js +0 -61
- package/dist/bundle/store-maintenance-command-EM53HVOY.js +0 -48
- package/dist/bundle/update-UKMV74FK.js +0 -69
- /package/dist/bundle/{chunk-TYQAAHHM.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(),
|
|
@@ -6428,6 +6428,8 @@ var mailMarkReset = strictObject({
|
|
|
6428
6428
|
bulk: number(),
|
|
6429
6429
|
/** Emails between the two marks it skips again: drafts, envelopes, suspicious senders, partial mail. */
|
|
6430
6430
|
skipped: number(),
|
|
6431
|
+
/** How often the owner moved this mark back, this reset counted even when the mark stays: the findings key names it. */
|
|
6432
|
+
resets: number(),
|
|
6431
6433
|
/** Nothing moved: `--dry-run` only counts. */
|
|
6432
6434
|
dry_run: boolean()
|
|
6433
6435
|
});
|
|
@@ -6443,7 +6445,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
6443
6445
|
`${mail.app.command} personal messages reset --holder mail-triage --last 8 --dry-run`,
|
|
6444
6446
|
`${mail.app.command} personal messages reset --holder mail-triage --since-time 2026-11-04T00:00:00Z`
|
|
6445
6447
|
]
|
|
6446
|
-
}), "mail_mark_reset", mailMarkReset).summary("move a holder's processing mark back, so it reads that mail again (owner only)").description("the owner moves a holder's mark back past the mail received since --since-time, or past the last --last emails it was given; its next reviews give that mail again. The answer says how many emails it reads again. An agent cannot: a holder only moves its own mark forward, with `messages acknowledge`").requiredOption("--holder <name>", "whose mark: lower-case letters, digits and dashes, such as mail-triage").option("--since-time <time>", "read again what was received since this ISO 8601 time, or 2d ago").option("--last <n>", "read again the last n emails the holder was given", wholeNumber).option("--dry-run", "count what would be read again, and move nothing").action(async function() {
|
|
6448
|
+
}), "mail_mark_reset", mailMarkReset).summary("move a holder's processing mark back, so it reads that mail again (owner only)").description("the owner moves a holder's mark back past the mail received since --since-time, or past the last --last emails it was given; its next reviews give that mail again. The answer says how many emails it reads again. Every reset counts, even one that leaves the mark where it is, so the holder's next findings key is new. An agent cannot: a holder only moves its own mark forward, with `messages acknowledge`").requiredOption("--holder <name>", "whose mark: lower-case letters, digits and dashes, such as mail-triage").option("--since-time <time>", "read again what was received since this ISO 8601 time, or 2d ago").option("--last <n>", "read again the last n emails the holder was given", wholeNumber).option("--dry-run", "count what would be read again, and move nothing").action(async function() {
|
|
6447
6449
|
const { holder, sinceTime, last, dryRun } = this.opts();
|
|
6448
6450
|
if (sinceTime === void 0 === (last === void 0))
|
|
6449
6451
|
throw new CliError("validation_error", "give --since-time or --last, one of them");
|
|
@@ -6461,16 +6463,17 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
6461
6463
|
again: reset.again,
|
|
6462
6464
|
bulk: reset.bulk,
|
|
6463
6465
|
skipped: reset.skipped,
|
|
6466
|
+
resets: reset.mark.resets,
|
|
6464
6467
|
dry_run: reset.dry
|
|
6465
6468
|
};
|
|
6466
6469
|
renderAnswer(this, outputFor(this), itemOf(item), () => {
|
|
6467
|
-
const mark = reset.mark.throughId === reset.fromId ? `
|
|
6470
|
+
const mark = reset.mark.throughId === reset.fromId ? `mark unchanged at ${reset.fromId}, ${reset.dry ? "would be counted" : "counted"} as a reset (resets ${reset.mark.resets}): the next run gets a new findings key` : `the mark ${reset.dry ? "would move" : "moved"} from ${reset.fromId} to ${reset.mark.throughId} (resets ${reset.mark.resets})`;
|
|
6468
6471
|
return `${holder} ${reset.dry ? "would read" : "reads"} ${reset.again} emails again, and ${reset.bulk} bulk ones as excerpts unless they are newsletters; ${reset.skipped} are skipped again; ${mark}
|
|
6469
6472
|
`;
|
|
6470
6473
|
});
|
|
6471
6474
|
}), "resetMarkCommand");
|
|
6472
6475
|
|
|
6473
|
-
// 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
|
|
6474
6477
|
var REVIEW_THREADS = 50;
|
|
6475
6478
|
var REVIEW_PER_THREAD = 50;
|
|
6476
6479
|
var OWED_DAYS = 30;
|
|
@@ -6568,7 +6571,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
6568
6571
|
};
|
|
6569
6572
|
}, "reviewMail");
|
|
6570
6573
|
|
|
6571
|
-
// 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
|
|
6572
6575
|
var DAY2 = 864e5;
|
|
6573
6576
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
6574
6577
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -6734,7 +6737,7 @@ ${excerpt}` : excerpt, excerptOnly: true };
|
|
|
6734
6737
|
const step = stepsFor(mail.mount, mailbox);
|
|
6735
6738
|
const answer = reviewAnswer(found, mailbox, true, step);
|
|
6736
6739
|
const skipped = Object.entries(read.skipped).filter(([, count2]) => count2 > 0);
|
|
6737
|
-
const stage = read.findingsKey === void 0 ? [] : step("mail-findings.add", { key: read.findingsKey });
|
|
6740
|
+
const stage = read.findingsKey === void 0 || emails.length === 0 ? [] : step("mail-findings.add", { key: read.findingsKey });
|
|
6738
6741
|
answer.next = [
|
|
6739
6742
|
...stage,
|
|
6740
6743
|
...step("mail-messages.acknowledge", { holder, cursor: read.cursor }),
|
|
@@ -6753,7 +6756,7 @@ ${excerpt}` : excerpt, excerptOnly: true };
|
|
|
6753
6756
|
];
|
|
6754
6757
|
const output = outputFor(command);
|
|
6755
6758
|
renderAnswer(command, output, answer, () => {
|
|
6756
|
-
output.renderer.note(read.mark ? `${holder}: past ${read.mark.throughId}
|
|
6759
|
+
output.renderer.note(read.mark ? `${holder}: past ${read.mark.throughId}${emails.length ? `; findings key ${read.findingsKey}` : ""}; acknowledge with --cursor ${read.cursor}${read.more ? "; more after these" : ""}` : `${holder} has no mark yet: it starts from now \u2014 acknowledge with --cursor ${read.cursor}`);
|
|
6757
6760
|
return emails.map((hit) => `${hitText(hit)}${markText2(marks.get(hit.id), hit.excerptOnly)}
|
|
6758
6761
|
`).join("");
|
|
6759
6762
|
});
|
|
@@ -6830,7 +6833,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
6830
6833
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
6831
6834
|
}), "mailReviewCommand");
|
|
6832
6835
|
|
|
6833
|
-
// 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
|
|
6834
6837
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
6835
6838
|
var MAIL_BULK_SETTINGS = [
|
|
6836
6839
|
{
|
|
@@ -6886,7 +6889,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
6886
6889
|
};
|
|
6887
6890
|
}, "bulkTriageOf");
|
|
6888
6891
|
|
|
6889
|
-
// 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
|
|
6890
6893
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
6891
6894
|
if (error instanceof CliError && error.code === "not_found")
|
|
6892
6895
|
return void 0;
|
|
@@ -7567,6 +7570,7 @@ export {
|
|
|
7567
7570
|
showMail,
|
|
7568
7571
|
hitText,
|
|
7569
7572
|
attachmentsText,
|
|
7573
|
+
mailMark,
|
|
7570
7574
|
markItem,
|
|
7571
7575
|
OWED_DAYS,
|
|
7572
7576
|
mailReadCommands,
|