@wirecat/cli-memo 0.131.47 → 0.131.48
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-75EGCXK3.js → all-profiles-5YVSKBEV.js} +9 -9
- package/dist/bundle/{anthropic-PTAYBCPR.js → anthropic-BMK6F36V.js} +6 -6
- package/dist/bundle/{app-server-YSUBXGGB.js → app-server-PUBWKHUG.js} +42 -42
- package/dist/bundle/auto-FXCXORUF.js +86 -0
- package/dist/bundle/{bun-3AIG5ML4.js → bun-ZBM364I6.js} +2 -2
- package/dist/bundle/{bun-sqlite-5FCGI6EO.js → bun-sqlite-YLBILWBE.js} +5 -5
- package/dist/bundle/{chunk-GA3KFYEZ.js → chunk-2O32QNK3.js} +7 -7
- package/dist/bundle/{chunk-KWM7HLAI.js → chunk-3A3KPJHP.js} +4 -4
- package/dist/bundle/{chunk-N63KZFH4.js → chunk-3LA6OE35.js} +9 -9
- package/dist/bundle/{chunk-DWBTCOF2.js → chunk-4FDK7LVF.js} +7 -7
- package/dist/bundle/{chunk-25RDNYKZ.js → chunk-5BDWOMH6.js} +6 -6
- package/dist/bundle/{chunk-N5QQFDNV.js → chunk-66KZBRZN.js} +3 -3
- package/dist/bundle/{chunk-JY34MQW4.js → chunk-7RNHFNHX.js} +4 -4
- package/dist/bundle/{chunk-V3B5COFP.js → chunk-ADV7DNGM.js} +5 -5
- package/dist/bundle/{chunk-G4W42RGE.js → chunk-BRLVX4V6.js} +1 -1
- package/dist/bundle/{chunk-RZ54DSVU.js → chunk-BXTDAGM4.js} +2 -2
- package/dist/bundle/{chunk-ELKK5M66.js → chunk-C3I6L7JZ.js} +6 -6
- package/dist/bundle/{chunk-MCMEBL3C.js → chunk-C6UTJATA.js} +30 -14
- package/dist/bundle/{chunk-UFVGAFID.js → chunk-CSPAEYKK.js} +4 -4
- package/dist/bundle/{chunk-FSAMZHIM.js → chunk-DGLSE6XA.js} +6 -6
- package/dist/bundle/{chunk-32QM6X5H.js → chunk-DHO2JWF7.js} +3 -3
- package/dist/bundle/{chunk-SYTYLLYO.js → chunk-DMI3SFLF.js} +2 -2
- package/dist/bundle/{chunk-3HPFTKDH.js → chunk-DNZYXNMB.js} +4 -4
- package/dist/bundle/{chunk-Y4ZXDJQF.js → chunk-DPQL5JK6.js} +2 -2
- package/dist/bundle/{chunk-6TKWJKPS.js → chunk-E4YCKC3F.js} +12 -12
- package/dist/bundle/{chunk-SN63VOE6.js → chunk-EBNNONF5.js} +8 -8
- package/dist/bundle/{chunk-6QNPOBR5.js → chunk-EGVRMA2C.js} +198 -81
- package/dist/bundle/{chunk-GQLSVXS2.js → chunk-EQ237UYC.js} +22 -22
- package/dist/bundle/{chunk-ZKH6LC5P.js → chunk-F7S25YVA.js} +9 -9
- package/dist/bundle/{chunk-DMTLG2GD.js → chunk-FTRFN3MU.js} +8 -8
- package/dist/bundle/{chunk-W2JVP7GK.js → chunk-H4726KFZ.js} +1 -1
- package/dist/bundle/{chunk-UE4GMPBY.js → chunk-HE56X542.js} +1 -1
- package/dist/bundle/{chunk-IPMBB6W5.js → chunk-IGYOKYG7.js} +4 -4
- package/dist/bundle/{chunk-W3T45MMN.js → chunk-IHFK634F.js} +8 -8
- package/dist/bundle/{chunk-GOFPCOEI.js → chunk-IWEL7QCT.js} +11 -11
- package/dist/bundle/{chunk-V6OYLCCM.js → chunk-J737T3RM.js} +3 -3
- package/dist/bundle/{chunk-CODD5SXC.js → chunk-KNUUZW42.js} +29 -29
- package/dist/bundle/{chunk-HVTW2M6T.js → chunk-LDHFV34C.js} +2 -2
- package/dist/bundle/{chunk-LE7NROV6.js → chunk-LDXCFBIC.js} +34 -34
- package/dist/bundle/{chunk-YMK35KVV.js → chunk-MIMLBSUQ.js} +2 -2
- package/dist/bundle/{chunk-J324GKJM.js → chunk-MKLDUZ7N.js} +2 -2
- package/dist/bundle/{chunk-MMJDQQFX.js → chunk-MN3SFFTU.js} +287 -277
- package/dist/bundle/{chunk-U35N3EC7.js → chunk-NWRITJ7F.js} +2 -2
- package/dist/bundle/{chunk-2R2Z2VWL.js → chunk-O3ZOYXH3.js} +20 -20
- package/dist/bundle/{chunk-CID4MNRQ.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-I2RDACUF.js → chunk-PUZ2G2KS.js} +8 -8
- package/dist/bundle/{chunk-Y5CAKD4X.js → chunk-QOGYHU3Q.js} +4 -4
- package/dist/bundle/{chunk-PGVADNDD.js → chunk-QTBFV5RL.js} +3 -3
- package/dist/bundle/{chunk-5N6HWFXN.js → chunk-QUQJZSRF.js} +320 -275
- package/dist/bundle/{chunk-R44PUK7G.js → chunk-RCEDN42Q.js} +1 -1
- package/dist/bundle/{chunk-ZLIARJU4.js → chunk-RSJJGXZP.js} +1 -1
- package/dist/bundle/{chunk-ILK5BCBB.js → chunk-SGDTAVMU.js} +2 -2
- package/dist/bundle/{chunk-KLBZJZD2.js → chunk-T56R3TF2.js} +216 -143
- package/dist/bundle/{chunk-EFQCDCLY.js → chunk-TW643BIA.js} +99 -74
- package/dist/bundle/{chunk-MSBRZ5QD.js → chunk-TYOZC3BU.js} +3 -3
- package/dist/bundle/{chunk-BNIWLVWG.js → chunk-TZROQCQ5.js} +18 -4
- package/dist/bundle/{chunk-F4HMPMET.js → chunk-U2EFWFDN.js} +10 -10
- package/dist/bundle/{chunk-EVZI54B5.js → chunk-U64G664E.js} +6 -6
- package/dist/bundle/{chunk-XRRPQCTS.js → chunk-UHWQ2YXW.js} +1 -1
- package/dist/bundle/{chunk-HCZV537M.js → chunk-UK2MMZFW.js} +2 -2
- package/dist/bundle/{chunk-HYEYRFWX.js → chunk-VICARVCN.js} +1 -1
- package/dist/bundle/{chunk-OSCRP52P.js → chunk-VJJCF52V.js} +640 -399
- package/dist/bundle/{chunk-G3YSCD77.js → chunk-VOJU5FVA.js} +173 -156
- package/dist/bundle/{chunk-LER7G4XY.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-DS4DOK75.js → chunk-X3KMQW2Z.js} +25 -24
- package/dist/bundle/{chunk-6IVHND3S.js → chunk-X7UITQ66.js} +5 -5
- package/dist/bundle/{chunk-DDADFHR7.js → chunk-XR4N2MYB.js} +13 -13
- package/dist/bundle/{chunk-U75ANK5K.js → chunk-YBN7UF2Y.js} +1 -1
- package/dist/bundle/{chunk-IPLPMD6H.js → chunk-YO7AUGUT.js} +2 -2
- package/dist/bundle/{chunk-4LWX2WOB.js → chunk-YZEIVLAG.js} +4 -4
- package/dist/bundle/command-contract-BRZAKY6L.js +32 -0
- package/dist/bundle/{decode-F2A2BLIA.js → decode-WW5ZMB5R.js} +5 -5
- package/dist/bundle/{dispatch-MLRETSNQ.js → dispatch-HCRXCPCF.js} +8 -8
- package/dist/bundle/{echarts-JL55HJCM.js → echarts-ODD3E2RQ.js} +2 -2
- package/dist/bundle/{embed-74KVORNN.js → embed-3ETM2WYU.js} +6 -6
- package/dist/bundle/{embedder-GACNPCZN.js → embedder-6YL3WFBR.js} +9 -9
- package/dist/bundle/{entry-7FI2H4RQ.js → entry-F2UGXKZ3.js} +7 -7
- package/dist/bundle/{failure-UJBGB2GP.js → failure-G4DCTWFD.js} +2 -2
- package/dist/bundle/failure-X7CYCJWD.js +66 -0
- package/dist/bundle/{first-run-D4VBIJ7H.js → first-run-OHQHOP5U.js} +11 -11
- package/dist/bundle/first-screen-ULF26GYG.js +30 -0
- package/dist/bundle/{instructions-QNPIVGKX.js → instructions-RS5VERM7.js} +1 -1
- package/dist/bundle/{mcp-YMXA6IH6.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/mcp-TS2UAN5I.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-SPFML2D5.js → node-BU6NHYHF.js} +2 -2
- package/dist/bundle/{node-sqlite-T3KILRCP.js → node-sqlite-WAF44CWS.js} +6 -6
- package/dist/bundle/{oauth-ZOGSHZF3.js → oauth-T7RCNIYO.js} +7 -7
- package/dist/bundle/{open-XXFVCGCA.js → open-QLX2IVTC.js} +5 -5
- package/dist/bundle/{openai-JRHZLFKD.js → openai-O25HCJEY.js} +10 -10
- package/dist/bundle/{process-OGYYVVLG.js → process-SB2X3TKY.js} +1 -1
- package/dist/bundle/{program-EFCQACPD.js → program-SDLIDODQ.js} +62 -62
- package/dist/bundle/{prompt-53D5WVD3.js → prompt-OHVHUNV4.js} +5 -5
- package/dist/bundle/{recognize-7GYZKJCD.js → recognize-SESVG7O3.js} +4 -4
- package/dist/bundle/{remote-V5GUFZCG.js → remote-DNGLVDYJ.js} +7 -7
- package/dist/bundle/{rerank-FUNVBYFI.js → rerank-SF3OUPEB.js} +7 -7
- package/dist/bundle/{serve-ZLUYFAXC.js → serve-6RK7QFZ2.js} +9 -9
- package/dist/bundle/server-JKWE764O.js +61 -0
- package/dist/bundle/{server-HJRMD3XD.js → server-N6PCX7K7.js} +57 -57
- package/dist/bundle/server-RKGTOY4D.js +48 -0
- package/dist/bundle/{state-4P7H6KBM.js → state-J6WLL4TQ.js} +6 -6
- package/dist/bundle/{store-NILJK24C.js → store-R2PHK3FR.js} +13 -13
- package/dist/bundle/store-maintenance-command-LRZ5R3UM.js +48 -0
- package/dist/bundle/update-RV2WSULI.js +69 -0
- package/dist/doctor/command.d.ts +2 -0
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/auto-GB35FRTV.js +0 -86
- package/dist/bundle/command-contract-YYILWWYQ.js +0 -32
- package/dist/bundle/failure-AHPPXHAW.js +0 -66
- package/dist/bundle/first-screen-D7Q2U7VP.js +0 -30
- package/dist/bundle/mcp-AFXHH33V.js +0 -90
- package/dist/bundle/server-4OJC7ZWM.js +0 -61
- package/dist/bundle/server-CGUUZBLB.js +0 -48
- package/dist/bundle/store-maintenance-command-VP7CIBSS.js +0 -48
- package/dist/bundle/update-NPK4DT2E.js +0 -69
- /package/dist/bundle/{chunk-AT5Y62SD.js → chunk-IO44XLFM.js} +0 -0
- /package/dist/bundle/{chunk-JPGEFBRW.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -25,19 +25,19 @@ import {
|
|
|
25
25
|
serverSearchOptions,
|
|
26
26
|
summaryOf,
|
|
27
27
|
unansweredHours
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MN3SFFTU.js";
|
|
29
29
|
import {
|
|
30
30
|
MAIL_HIT_UNTRUSTED,
|
|
31
31
|
messagesAnswer,
|
|
32
32
|
offsetOf,
|
|
33
33
|
shownOf
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-X3KMQW2Z.js";
|
|
35
35
|
import {
|
|
36
36
|
messageItem
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-T56R3TF2.js";
|
|
38
38
|
import {
|
|
39
39
|
knownPermissionKeys
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EQ237UYC.js";
|
|
41
41
|
import {
|
|
42
42
|
AGENDA_DEFAULTS,
|
|
43
43
|
DEFAULT_BACKEND,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
sourceKey,
|
|
61
61
|
typedQuery,
|
|
62
62
|
withQuery
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-QUQJZSRF.js";
|
|
64
64
|
import {
|
|
65
65
|
Command,
|
|
66
66
|
FETCH,
|
|
@@ -92,11 +92,11 @@ import {
|
|
|
92
92
|
snakeKeys,
|
|
93
93
|
withSettingDefaults,
|
|
94
94
|
withoutSetting
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-VOJU5FVA.js";
|
|
96
96
|
import {
|
|
97
97
|
mailHolderVariable,
|
|
98
98
|
readOnlyLockOf
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-DMI3SFLF.js";
|
|
100
100
|
import {
|
|
101
101
|
DEFAULT_DECISION_POLICY,
|
|
102
102
|
MESSAGE_PARSING,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
registrableOf,
|
|
110
110
|
scoreGroup,
|
|
111
111
|
validateFields
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-VJJCF52V.js";
|
|
113
113
|
import {
|
|
114
114
|
count,
|
|
115
115
|
dateRange,
|
|
@@ -120,12 +120,12 @@ import {
|
|
|
120
120
|
time,
|
|
121
121
|
timezoneOf,
|
|
122
122
|
untrusted
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-TW643BIA.js";
|
|
124
124
|
import {
|
|
125
125
|
configFilePath,
|
|
126
126
|
resolvePaths,
|
|
127
127
|
saveConfigFile
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-O3ZOYXH3.js";
|
|
129
129
|
import {
|
|
130
130
|
MAX_NEXT_STEPS,
|
|
131
131
|
array,
|
|
@@ -148,16 +148,16 @@ import {
|
|
|
148
148
|
string,
|
|
149
149
|
union,
|
|
150
150
|
unknown
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-EBNNONF5.js";
|
|
152
152
|
import {
|
|
153
153
|
CliError
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-BXTDAGM4.js";
|
|
155
155
|
import {
|
|
156
156
|
__name,
|
|
157
157
|
__toESM
|
|
158
158
|
} from "./chunk-ZVVMGPBJ.js";
|
|
159
159
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
161
161
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
162
162
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
163
163
|
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
@@ -196,7 +196,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
196
196
|
return files;
|
|
197
197
|
}, "readAttachments");
|
|
198
198
|
|
|
199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
200
200
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
201
201
|
...items.filter((item) => !suspicious(item)),
|
|
202
202
|
...items.filter(suspicious)
|
|
@@ -283,11 +283,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
283
283
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
284
284
|
}).join("\n"), "attachmentsText");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
287
287
|
var BULK = "bulk";
|
|
288
288
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
289
289
|
|
|
290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
291
291
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
292
292
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
293
293
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -307,7 +307,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
307
307
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
308
308
|
}), "parsedEmail");
|
|
309
309
|
|
|
310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
311
311
|
var PRESETS = {
|
|
312
312
|
social: {
|
|
313
313
|
about: "notifications from social networks",
|
|
@@ -399,7 +399,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
399
399
|
return false;
|
|
400
400
|
}, "presetMatches");
|
|
401
401
|
|
|
402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
403
403
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
404
404
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
405
405
|
var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
|
|
@@ -467,7 +467,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
|
|
|
467
467
|
};
|
|
468
468
|
}, "probeMail");
|
|
469
469
|
|
|
470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
471
471
|
var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
472
472
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
473
473
|
if (!grouped)
|
|
@@ -5738,7 +5738,7 @@ var PostalMime = class _PostalMime {
|
|
|
5738
5738
|
}
|
|
5739
5739
|
};
|
|
5740
5740
|
|
|
5741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
5742
5742
|
var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
5743
5743
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
5744
5744
|
var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
|
|
@@ -5785,7 +5785,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
5785
5785
|
};
|
|
5786
5786
|
}, "mailHeadersOf");
|
|
5787
5787
|
|
|
5788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
5789
5789
|
var MAX_BODY_CHARS = 1e6;
|
|
5790
5790
|
var MAX_ATTACHMENTS = 50;
|
|
5791
5791
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -5850,13 +5850,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
5850
5850
|
};
|
|
5851
5851
|
}, "parseMail");
|
|
5852
5852
|
|
|
5853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
5854
5854
|
var PARTIAL = "partial";
|
|
5855
5855
|
|
|
5856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
5857
5857
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
5858
5858
|
|
|
5859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
5860
5860
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
5861
5861
|
var KINDS = {
|
|
5862
5862
|
from: "string",
|
|
@@ -5925,7 +5925,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
5925
5925
|
}, "storedMailRuleSet");
|
|
5926
5926
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
5927
5927
|
|
|
5928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
5929
5929
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
5930
5930
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
5931
5931
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -5997,7 +5997,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
|
|
|
5997
5997
|
}, "tagsOf");
|
|
5998
5998
|
var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
|
|
5999
5999
|
|
|
6000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
6001
6001
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
6002
6002
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
6003
6003
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -6027,7 +6027,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
6027
6027
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
6028
6028
|
}), "ruleInput");
|
|
6029
6029
|
|
|
6030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
6031
6031
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
6032
6032
|
const { details } = error;
|
|
6033
6033
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -6088,7 +6088,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
6088
6088
|
}
|
|
6089
6089
|
}, "settleRuleTags");
|
|
6090
6090
|
|
|
6091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
6092
6092
|
var DAY = 864e5;
|
|
6093
6093
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
6094
6094
|
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");
|
|
@@ -6161,7 +6161,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
|
|
|
6161
6161
|
};
|
|
6162
6162
|
}, "mailCriteriaOf");
|
|
6163
6163
|
|
|
6164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
6165
6165
|
var refusal = {
|
|
6166
6166
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
6167
6167
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -6376,7 +6376,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
6376
6376
|
return { report, sources };
|
|
6377
6377
|
}, "searchMailServer");
|
|
6378
6378
|
|
|
6379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
|
|
6380
6380
|
var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
6381
6381
|
var mailMark = strictObject({
|
|
6382
6382
|
holder: string(),
|
|
@@ -6474,7 +6474,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
6474
6474
|
});
|
|
6475
6475
|
}), "resetMarkCommand");
|
|
6476
6476
|
|
|
6477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
6478
6478
|
var REVIEW_THREADS = 50;
|
|
6479
6479
|
var REVIEW_PER_THREAD = 50;
|
|
6480
6480
|
var OWED_DAYS = 30;
|
|
@@ -6572,7 +6572,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
6572
6572
|
};
|
|
6573
6573
|
}, "reviewMail");
|
|
6574
6574
|
|
|
6575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
6576
6576
|
var DAY2 = 864e5;
|
|
6577
6577
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
6578
6578
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -6841,7 +6841,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
6841
6841
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
6842
6842
|
}), "mailReviewCommand");
|
|
6843
6843
|
|
|
6844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
6845
6845
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
6846
6846
|
var MAIL_BULK_SETTINGS = [
|
|
6847
6847
|
{
|
|
@@ -6897,7 +6897,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
6897
6897
|
};
|
|
6898
6898
|
}, "bulkTriageOf");
|
|
6899
6899
|
|
|
6900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
6901
6901
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
6902
6902
|
if (error instanceof CliError && error.code === "not_found")
|
|
6903
6903
|
return void 0;
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F7S25YVA.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -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-BXTDAGM4.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.602.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_87bcf484fc0706f541e30693101b5a29/node_modules/@wirecat/cli-core/dist/http/public-url.js
|
|
11
11
|
var EXAMPLE = "--public-url https://<name>.ts.net";
|
|
12
12
|
var publicUrlOf = /* @__PURE__ */ __name((given, { missing, reaches, path = false }) => {
|
|
13
13
|
if (!given)
|