@wirecat/cli-memo 0.131.38 → 0.131.39
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-W26PFZ2J.js → all-profiles-5CXMPAOF.js} +5 -5
- package/dist/bundle/{anthropic-SY6QPTQW.js → anthropic-KJECM7MD.js} +3 -3
- package/dist/bundle/{app-server-WUXDTYU4.js → app-server-ZO7Z7RMA.js} +35 -35
- package/dist/bundle/auto-MA47DOER.js +86 -0
- package/dist/bundle/{bun-O3KE32D7.js → bun-V2HGEGFF.js} +2 -2
- package/dist/bundle/{bun-sqlite-5X2NBSLA.js → bun-sqlite-DSFSAFNQ.js} +2 -2
- package/dist/bundle/{chunk-TJXVMLK4.js → chunk-3ZEH35NH.js} +1 -1
- package/dist/bundle/{chunk-2EDP7PDR.js → chunk-4GA7IMXD.js} +279 -303
- package/dist/bundle/{chunk-QTLYWZXB.js → chunk-4MFNKTQQ.js} +3 -3
- package/dist/bundle/{chunk-DVHDIQBI.js → chunk-552IRBSA.js} +4 -4
- package/dist/bundle/{chunk-J7FP7PRV.js → chunk-5I75PUEK.js} +531 -583
- package/dist/bundle/{chunk-5ZKNRR6O.js → chunk-6BJPSIFE.js} +36 -36
- package/dist/bundle/{chunk-L2CXODLV.js → chunk-72DBFKCI.js} +1 -1
- package/dist/bundle/{chunk-ZP7F76D3.js → chunk-7DMTHV2P.js} +1 -1
- package/dist/bundle/{chunk-M3TUIVRK.js → chunk-7VBSW2RI.js} +5 -5
- package/dist/bundle/{chunk-CXWKBOKQ.js → chunk-AKLFOL4C.js} +3 -3
- package/dist/bundle/{chunk-F4BXYTIW.js → chunk-AX6AMVVY.js} +7 -7
- package/dist/bundle/{chunk-WVXTZWH3.js → chunk-B2YW6VOA.js} +1 -1
- package/dist/bundle/{chunk-WRZP6DJT.js → chunk-BHBLLZAO.js} +279 -210
- package/dist/bundle/{chunk-75QQ7MLH.js → chunk-CHAA2BOM.js} +8 -8
- package/dist/bundle/{chunk-GXCXOITM.js → chunk-CQJO22KN.js} +20 -20
- package/dist/bundle/{chunk-CEOXSWU3.js → chunk-D7JMUN36.js} +2 -2
- package/dist/bundle/{chunk-HJTDA7AE.js → chunk-DMY2YVJ7.js} +5 -5
- package/dist/bundle/{chunk-XCAGVFRC.js → chunk-DZBNKSE2.js} +487 -421
- package/dist/bundle/{chunk-4NJQJZRO.js → chunk-EP5U5WCQ.js} +1 -1
- package/dist/bundle/{chunk-CVCL77DZ.js → chunk-ER7SUNTY.js} +4 -4
- package/dist/bundle/{chunk-LV6FBPUQ.js → chunk-EY42TTWE.js} +11 -11
- package/dist/bundle/{chunk-374FSLTB.js → chunk-G35CZBBF.js} +5 -5
- package/dist/bundle/{chunk-SSQDA7X6.js → chunk-GANKKP5F.js} +4 -4
- package/dist/bundle/{chunk-B4LT2DHH.js → chunk-GRTELFME.js} +4 -4
- package/dist/bundle/{chunk-K3GMQLFM.js → chunk-H4DBYU2J.js} +2 -2
- package/dist/bundle/{chunk-S5KSC4B3.js → chunk-H4GQZLTW.js} +27 -27
- package/dist/bundle/{chunk-3G63U4VK.js → chunk-HB3YU52J.js} +9 -9
- package/dist/bundle/{chunk-JT36R23P.js → chunk-JQSFIPWA.js} +7 -7
- package/dist/bundle/{chunk-RS5WAI7D.js → chunk-KBDZG6XU.js} +3 -3
- package/dist/bundle/{chunk-UUD4QHAN.js → chunk-LXNWBHCK.js} +4 -4
- package/dist/bundle/{chunk-4OF64T67.js → chunk-O6ZLAFWQ.js} +1 -1
- package/dist/bundle/{chunk-QM5CNTGT.js → chunk-OJBM56FX.js} +20 -20
- package/dist/bundle/{chunk-5EBYGKZB.js → chunk-P357OGUL.js} +1 -1
- package/dist/bundle/{chunk-5J5RTJUJ.js → chunk-P3QBCCBA.js} +1 -1
- package/dist/bundle/{chunk-SDIKN2OR.js → chunk-PWVNSJBL.js} +10 -10
- package/dist/bundle/{chunk-FOQBIEL5.js → chunk-Q35DHKBZ.js} +1 -1
- package/dist/bundle/{chunk-AOFYLQK2.js → chunk-Q3O7N35U.js} +2 -2
- package/dist/bundle/{chunk-32WLB6I3.js → chunk-QAFJG52K.js} +1 -1
- package/dist/bundle/{chunk-2Q4DYGNU.js → chunk-QL2YLPB5.js} +2 -2
- package/dist/bundle/{chunk-UWJ3RJF4.js → chunk-QMDVWF3C.js} +2 -2
- package/dist/bundle/{chunk-ZMZVRVCK.js → chunk-QUJXYDYY.js} +2 -2
- package/dist/bundle/{chunk-2IST54UV.js → chunk-QZABT7XH.js} +9 -9
- package/dist/bundle/{chunk-CEENCS5P.js → chunk-RBLUTSSL.js} +6 -6
- package/dist/bundle/{chunk-AJ4SVCBD.js → chunk-S7W5GFOI.js} +249 -249
- package/dist/bundle/{chunk-TXJYVD5U.js → chunk-SANEKFUF.js} +1 -1
- package/dist/bundle/{chunk-S2K3FWLA.js → chunk-SB7V3HFM.js} +12 -12
- package/dist/bundle/{chunk-7P3PM3OL.js → chunk-TOZ2COFV.js} +7 -7
- package/dist/bundle/{chunk-4AXSD77N.js → chunk-TSGJRL2S.js} +1 -1
- package/dist/bundle/{chunk-XLUOKHFN.js → chunk-U5B2ORUM.js} +3 -3
- package/dist/bundle/{chunk-GSVNF5TX.js → chunk-UECWAAZ3.js} +4 -4
- package/dist/bundle/{chunk-4CADISNA.js → chunk-UIUMG7AY.js} +1 -1
- package/dist/bundle/{chunk-43CMY3YD.js → chunk-WBWFH7ZT.js} +1 -1
- package/dist/bundle/{chunk-TJNW4L7P.js → chunk-WDDYMCLD.js} +43 -43
- package/dist/bundle/{chunk-O762IE2F.js → chunk-WJCBQFEM.js} +1 -1
- package/dist/bundle/{chunk-L2M3LTQQ.js → chunk-XED6NO7E.js} +1 -1
- package/dist/bundle/{chunk-QP7BTVMT.js → chunk-YFBNICKS.js} +2 -2
- package/dist/bundle/{chunk-4CD37FZU.js → chunk-ZQTFPZ36.js} +5 -5
- package/dist/bundle/{command-contract-FRRW2Z4S.js → command-contract-JXLIGF3U.js} +11 -11
- package/dist/bundle/{decode-RVPTVZ3W.js → decode-HXMDIZKS.js} +2 -2
- package/dist/bundle/{echarts-CW6DTALT.js → echarts-MRWQC3FY.js} +2 -2
- package/dist/bundle/{embed-VXWYSZ7X.js → embed-IEJFYZ7N.js} +3 -3
- package/dist/bundle/{embedder-QX3GSPBN.js → embedder-N2TXC47Z.js} +6 -6
- package/dist/bundle/{entry-LBDVYMDG.js → entry-VX4RACD7.js} +4 -4
- package/dist/bundle/failure-LU3CYK3U.js +66 -0
- package/dist/bundle/{first-run-VPR5YFMD.js → first-run-2GXQUNFV.js} +5 -5
- package/dist/bundle/{first-screen-WRKQ4GAM.js → first-screen-JRKMDJPK.js} +12 -12
- package/dist/bundle/{instructions-2XLUHPQH.js → instructions-FR4H42RI.js} +1 -1
- package/dist/bundle/{mcp-RD54TNKO.js → mcp-IP3FEW24.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-AQ7O3PGH.js → node-QWBBKDHE.js} +2 -2
- package/dist/bundle/{node-sqlite-RKDBK624.js → node-sqlite-GKJHUPHC.js} +3 -3
- package/dist/bundle/{oauth-ZQCL2HPA.js → oauth-ZQ7B32ZI.js} +4 -4
- package/dist/bundle/{open-ME6M3BWL.js → open-TDGXVXNV.js} +2 -2
- package/dist/bundle/{openai-PHW5QKNC.js → openai-3T4YGUZM.js} +7 -7
- package/dist/bundle/{process-4HJLMEHS.js → process-OBTDURL4.js} +1 -1
- package/dist/bundle/{program-EVPU3PMC.js → program-6UJEO4TI.js} +80 -59
- package/dist/bundle/{prompt-U5JMQJPC.js → prompt-JZIIKSM4.js} +2 -2
- package/dist/bundle/{recognize-OYKFXOLL.js → recognize-47F6WJYE.js} +1 -1
- package/dist/bundle/{remote-IXABNXVH.js → remote-NHSYSI2S.js} +4 -4
- package/dist/bundle/{rerank-6ASLHI5I.js → rerank-HONNCBTA.js} +4 -4
- package/dist/bundle/{serve-ZYQO2Z23.js → serve-63BFDEQS.js} +6 -6
- package/dist/bundle/server-I6M5QH5W.js +48 -0
- package/dist/bundle/{server-5XHYKDVY.js → server-QWJPOH7K.js} +50 -50
- package/dist/bundle/server-XYUNBCYP.js +61 -0
- package/dist/bundle/{state-5W7BQVQO.js → state-ZLODXERO.js} +3 -3
- package/dist/bundle/{store-6WW7XV2O.js → store-Q36VLED7.js} +9 -9
- package/dist/bundle/store-maintenance-command-EM53HVOY.js +48 -0
- package/dist/bundle/update-UKMV74FK.js +69 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +5 -1
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +23 -1
- package/dist/knowledge/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-2TNLCAEM.js +0 -86
- package/dist/bundle/failure-NBJBRA6G.js +0 -66
- package/dist/bundle/server-BMXFJO2T.js +0 -61
- package/dist/bundle/server-V7JU6YLA.js +0 -48
- package/dist/bundle/store-maintenance-command-YPNP663U.js +0 -48
- package/dist/bundle/update-CVHXLX72.js +0 -69
- /package/dist/bundle/{chunk-FEJOKQPV.js → chunk-TYQAAHHM.js} +0 -0
|
@@ -24,19 +24,19 @@ import {
|
|
|
24
24
|
serverSearchOptions,
|
|
25
25
|
summaryOf,
|
|
26
26
|
unansweredHours
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-S7W5GFOI.js";
|
|
28
28
|
import {
|
|
29
29
|
MAIL_HIT_UNTRUSTED,
|
|
30
30
|
messagesAnswer,
|
|
31
31
|
offsetOf,
|
|
32
32
|
shownOf
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OJBM56FX.js";
|
|
34
34
|
import {
|
|
35
35
|
messageItem
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WDDYMCLD.js";
|
|
37
37
|
import {
|
|
38
38
|
knownPermissionKeys
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-CQJO22KN.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-4GA7IMXD.js";
|
|
63
63
|
import {
|
|
64
64
|
Command,
|
|
65
65
|
FETCH,
|
|
@@ -74,7 +74,6 @@ import {
|
|
|
74
74
|
answerEntity,
|
|
75
75
|
atDetail,
|
|
76
76
|
checkConfigText,
|
|
77
|
-
count,
|
|
78
77
|
deadlineMargin,
|
|
79
78
|
environmentOf,
|
|
80
79
|
issueMessage,
|
|
@@ -90,16 +89,13 @@ import {
|
|
|
90
89
|
settingPathOf,
|
|
91
90
|
sharedCommand,
|
|
92
91
|
snakeKeys,
|
|
93
|
-
text,
|
|
94
|
-
time,
|
|
95
|
-
untrusted,
|
|
96
92
|
withSettingDefaults,
|
|
97
93
|
withoutSetting
|
|
98
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-5I75PUEK.js";
|
|
99
95
|
import {
|
|
100
96
|
mailHolderVariable,
|
|
101
97
|
readOnlyLockOf
|
|
102
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-EP5U5WCQ.js";
|
|
103
99
|
import {
|
|
104
100
|
DEFAULT_DECISION_POLICY,
|
|
105
101
|
MESSAGE_PARSING,
|
|
@@ -112,14 +108,18 @@ import {
|
|
|
112
108
|
registrableOf,
|
|
113
109
|
scoreGroup,
|
|
114
110
|
validateFields
|
|
115
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-DZBNKSE2.js";
|
|
116
112
|
import {
|
|
113
|
+
count,
|
|
117
114
|
dateRange,
|
|
118
115
|
defineQuery,
|
|
119
116
|
parseLucene,
|
|
120
117
|
queryFieldsOf,
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
text,
|
|
119
|
+
time,
|
|
120
|
+
timezoneOf,
|
|
121
|
+
untrusted
|
|
122
|
+
} from "./chunk-BHBLLZAO.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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/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(),
|
|
@@ -6470,7 +6470,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
6470
6470
|
});
|
|
6471
6471
|
}), "resetMarkCommand");
|
|
6472
6472
|
|
|
6473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
6474
6474
|
var REVIEW_THREADS = 50;
|
|
6475
6475
|
var REVIEW_PER_THREAD = 50;
|
|
6476
6476
|
var OWED_DAYS = 30;
|
|
@@ -6568,7 +6568,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
6568
6568
|
};
|
|
6569
6569
|
}, "reviewMail");
|
|
6570
6570
|
|
|
6571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
6572
6572
|
var DAY2 = 864e5;
|
|
6573
6573
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
6574
6574
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -6830,7 +6830,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
6830
6830
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
6831
6831
|
}), "mailReviewCommand");
|
|
6832
6832
|
|
|
6833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
6834
6834
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
6835
6835
|
var MAIL_BULK_SETTINGS = [
|
|
6836
6836
|
{
|
|
@@ -6886,7 +6886,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
6886
6886
|
};
|
|
6887
6887
|
}, "bulkTriageOf");
|
|
6888
6888
|
|
|
6889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
6890
6890
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
6891
6891
|
if (error instanceof CliError && error.code === "not_found")
|
|
6892
6892
|
return void 0;
|
|
@@ -7,7 +7,7 @@ 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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6BJPSIFE.js";
|
|
6
6
|
import {
|
|
7
7
|
upgradeCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S7W5GFOI.js";
|
|
9
9
|
import {
|
|
10
10
|
FETCH,
|
|
11
11
|
annotate,
|
|
12
12
|
overrideSharedContract
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5I75PUEK.js";
|
|
14
14
|
import {
|
|
15
15
|
latestVersion,
|
|
16
16
|
runUpdate,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
APP,
|
|
21
21
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-72DBFKCI.js";
|
|
23
23
|
import {
|
|
24
24
|
installerOf
|
|
25
25
|
} from "./chunk-CID4MNRQ.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
// dist/update.js
|
|
35
35
|
import { join } from "node:path";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
38
38
|
import { realpathSync } from "node:fs";
|
|
39
39
|
import { fileURLToPath } from "node:url";
|
|
40
40
|
var QUIET_WORDS = [
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -3,17 +3,17 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AKLFOL4C.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENAI_URL
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D7JMUN36.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_TRANSCRIBE_MODEL,
|
|
12
12
|
VAD,
|
|
13
13
|
filesPresent,
|
|
14
14
|
modelsDirectory,
|
|
15
15
|
vadPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4MFNKTQQ.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_RETRY,
|
|
19
19
|
backoffMs
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
29
29
|
import { setTimeout as wait } from "node:timers/promises";
|
|
30
30
|
|
|
31
31
|
// node_modules/.pnpm/@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
@@ -52,7 +52,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
52
52
|
}, "parseRateLimitReset");
|
|
53
53
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
54
54
|
|
|
55
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
55
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
56
56
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
57
57
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
58
58
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -73,7 +73,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
73
73
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
74
74
|
}, "encodeWav");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
77
77
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
78
78
|
var JOINED_SECONDS = 0.2;
|
|
79
79
|
var PAD_SECONDS = 0.2;
|
|
@@ -195,7 +195,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
195
195
|
return pieces;
|
|
196
196
|
}, "piecesOf");
|
|
197
197
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
198
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
198
|
+
const { openSpeechCutter } = await import("./recognize-47F6WJYE.js");
|
|
199
199
|
return openSpeechCutter(vadModel);
|
|
200
200
|
}, "openCutter");
|
|
201
201
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -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.582.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_97f64d51523dd4ecc03951217aefe0ba/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|