@wirecat/cli-memo 0.131.52 → 0.131.54
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-ZFVBLT2D.js → all-profiles-PJR2VHDP.js} +5 -5
- package/dist/bundle/{anthropic-UG2YHOT7.js → anthropic-ZUDIWREK.js} +3 -3
- package/dist/bundle/{app-server-AQYA4TB6.js → app-server-EYNQ4L2V.js} +35 -35
- package/dist/bundle/auto-3IGKVB3G.js +86 -0
- package/dist/bundle/{bun-QJUFWKEZ.js → bun-W2ZP6I6Z.js} +2 -2
- package/dist/bundle/{bun-sqlite-GWVRHYF4.js → bun-sqlite-T2CTJ6AR.js} +2 -2
- package/dist/bundle/{chunk-RYY4YRKQ.js → chunk-26QKDK5P.js} +5 -5
- package/dist/bundle/{chunk-EEEZGK2J.js → chunk-2NVP4FZH.js} +1 -1
- package/dist/bundle/{chunk-NNUP36UQ.js → chunk-34GJQ4ZR.js} +1 -1
- package/dist/bundle/{chunk-6PQIXQFD.js → chunk-3MWNNJII.js} +8 -8
- package/dist/bundle/{chunk-AU5GAMGM.js → chunk-4335SGVD.js} +2170 -1265
- package/dist/bundle/{chunk-M64NVDB4.js → chunk-4VQ7FPNW.js} +3 -3
- package/dist/bundle/{chunk-6BVWU2UM.js → chunk-5UM2OEOR.js} +2 -2
- package/dist/bundle/{chunk-S7X5ZMQN.js → chunk-643B3X4D.js} +2 -2
- package/dist/bundle/{chunk-G52Y3KOO.js → chunk-6NJ5OI2S.js} +1 -1
- package/dist/bundle/{chunk-X6XIW76O.js → chunk-7ZO2LAFF.js} +5 -5
- package/dist/bundle/{chunk-4ISZPK6D.js → chunk-AF2ZDP3M.js} +1 -1
- package/dist/bundle/{chunk-6GF4TIVM.js → chunk-AYY5CYJJ.js} +1 -1
- package/dist/bundle/{chunk-2CBOPOC7.js → chunk-B5VQSSL2.js} +12 -12
- package/dist/bundle/{chunk-G4Z4WSIG.js → chunk-BC7N6IQ6.js} +1 -1
- package/dist/bundle/{chunk-3O46NA2H.js → chunk-BEO6VJ2E.js} +47 -47
- package/dist/bundle/{chunk-NIUWQP7F.js → chunk-CADGAURO.js} +28 -28
- package/dist/bundle/{chunk-ETYAJPIT.js → chunk-DDD3CXHR.js} +20 -20
- package/dist/bundle/{chunk-ERZBEQAY.js → chunk-DIFRVXKQ.js} +297 -261
- package/dist/bundle/{chunk-U4ZD5SYO.js → chunk-FUINFNUC.js} +1 -1
- package/dist/bundle/{chunk-IALGFO44.js → chunk-GESLAB4N.js} +2 -2
- package/dist/bundle/{chunk-LUHMRW3P.js → chunk-HIF4YBD7.js} +4 -4
- package/dist/bundle/{chunk-FWCFEJWD.js → chunk-IRFHHNSX.js} +159 -151
- package/dist/bundle/{chunk-VOWEZBOJ.js → chunk-IVDBHH3N.js} +1 -1
- package/dist/bundle/{chunk-7SVHEGRO.js → chunk-JB43Q2QL.js} +1 -1
- package/dist/bundle/{chunk-ZVR6S4XB.js → chunk-JBQP2M7J.js} +7 -7
- package/dist/bundle/{chunk-MICF3K6S.js → chunk-JGY2PJ3N.js} +12 -12
- package/dist/bundle/{chunk-55GFDV24.js → chunk-JI4LJ563.js} +5 -5
- package/dist/bundle/{chunk-N5J6GT7C.js → chunk-K236JZLF.js} +4 -4
- package/dist/bundle/{chunk-NZKDNBYE.js → chunk-KK2ATSEC.js} +6 -6
- package/dist/bundle/{chunk-XIHQOSCT.js → chunk-KTVYCPJW.js} +1 -1
- package/dist/bundle/{chunk-ZKXIZD4C.js → chunk-LCE5LBZC.js} +4 -4
- package/dist/bundle/{chunk-EQUPZVV6.js → chunk-ME5RFKKD.js} +5 -5
- package/dist/bundle/{chunk-EKQNL6VJ.js → chunk-MFVZXEQN.js} +21 -21
- package/dist/bundle/{chunk-IKG2OPHU.js → chunk-MGDBKE7E.js} +6 -6
- package/dist/bundle/{chunk-6ZQK3L35.js → chunk-MU4MPJCU.js} +2 -2
- package/dist/bundle/{chunk-A36ASW3I.js → chunk-MV5W4FLV.js} +1 -1
- package/dist/bundle/{chunk-AGOUP5AH.js → chunk-O7CBAY6J.js} +4 -4
- package/dist/bundle/{chunk-I4LXP4HQ.js → chunk-OKERVM3M.js} +4 -4
- package/dist/bundle/{chunk-LX65W7IK.js → chunk-OQVLH2BS.js} +4 -4
- package/dist/bundle/{chunk-G7K4J3NS.js → chunk-OSPAMIIY.js} +3 -3
- package/dist/bundle/{chunk-5WT6SEXS.js → chunk-P3MKPY7D.js} +21 -9
- package/dist/bundle/{chunk-PKVXZZTM.js → chunk-P5UTNYA7.js} +2 -2
- package/dist/bundle/{chunk-2GEV2TXW.js → chunk-PHP3T567.js} +3 -3
- package/dist/bundle/{chunk-OIPJYDLZ.js → chunk-PSJB456T.js} +1 -1
- package/dist/bundle/{chunk-65576OCE.js → chunk-RSBROHX4.js} +1 -1
- package/dist/bundle/{chunk-NUQ3N3V3.js → chunk-RX6JTLKD.js} +7 -7
- package/dist/bundle/{chunk-KGPD3OCD.js → chunk-SR3ZNX24.js} +259 -154
- package/dist/bundle/{chunk-NOEXRGYH.js → chunk-T5WGWLY2.js} +10 -10
- package/dist/bundle/{chunk-ZVJAZXME.js → chunk-UBZN4EWJ.js} +4 -4
- package/dist/bundle/{chunk-OWS67HTV.js → chunk-VBYV6XQI.js} +2 -2
- package/dist/bundle/{chunk-ZYQEWB6P.js → chunk-VPCNLTME.js} +2 -2
- package/dist/bundle/{chunk-TM6R3Z45.js → chunk-VQTU4ILC.js} +1 -1
- package/dist/bundle/{chunk-PBM5GH7S.js → chunk-VXZ7FWKU.js} +2 -2
- package/dist/bundle/{chunk-TQS6ZKC3.js → chunk-WYZDNDQ5.js} +266 -265
- package/dist/bundle/{chunk-GJWNHWG7.js → chunk-YHHR7NQ3.js} +51 -36
- package/dist/bundle/{chunk-A7DXLOMS.js → chunk-ZRBXOHNH.js} +1 -1
- package/dist/bundle/{chunk-U6E3BGHO.js → chunk-ZTM4UUCP.js} +9 -9
- package/dist/bundle/{command-contract-7AADJ3UC.js → command-contract-EWPKHGAZ.js} +11 -11
- package/dist/bundle/{decode-XMIBTI5O.js → decode-UWT3Y66W.js} +2 -2
- package/dist/bundle/{echarts-W7DPDJA5.js → echarts-7VGTR45R.js} +2 -2
- package/dist/bundle/{embed-EP3KKO6Y.js → embed-CM2QSTNK.js} +3 -3
- package/dist/bundle/{embedder-ENGCALJ7.js → embedder-CDCAMVV7.js} +6 -6
- package/dist/bundle/{entry-BGSKREOS.js → entry-WHEWBNJL.js} +4 -4
- package/dist/bundle/failure-LGDSH47N.js +66 -0
- package/dist/bundle/{first-run-4EBMV2EM.js → first-run-ZBIQO5RZ.js} +5 -5
- package/dist/bundle/{first-screen-2TM3BF2Y.js → first-screen-CUAY5N6E.js} +12 -12
- package/dist/bundle/{instructions-A42XETMK.js → instructions-LYKSTUGQ.js} +1 -1
- package/dist/bundle/{mcp-5LAWRSJK.js → mcp-I72UY3QP.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-IRL66JK2.js → node-LFRTSZBZ.js} +2 -2
- package/dist/bundle/{node-sqlite-SOGTH72B.js → node-sqlite-Y47T5FTT.js} +3 -3
- package/dist/bundle/{oauth-RB5W3AC7.js → oauth-YM5C6VS3.js} +4 -4
- package/dist/bundle/{open-552EJ4JC.js → open-WPA4DW5G.js} +2 -2
- package/dist/bundle/{openai-ZLOHEEDH.js → openai-RCPT23DA.js} +7 -7
- package/dist/bundle/{process-46SUXGWW.js → process-P2X2KFMR.js} +1 -1
- package/dist/bundle/{program-ZLWKMT65.js → program-AJPT7C4I.js} +190 -106
- package/dist/bundle/{prompt-2NHJSYKX.js → prompt-65WPTVYC.js} +2 -2
- package/dist/bundle/{recognize-2LDM6KHL.js → recognize-MEFMK7HT.js} +1 -1
- package/dist/bundle/{remote-DBYHHENF.js → remote-4XIR3ZYK.js} +4 -4
- package/dist/bundle/{rerank-N5T2TIIY.js → rerank-YRLAXFFL.js} +4 -4
- package/dist/bundle/{serve-S6B54R2F.js → serve-6SPZH6CY.js} +6 -6
- package/dist/bundle/server-FB75UHSF.js +48 -0
- package/dist/bundle/server-IELXA6S2.js +61 -0
- package/dist/bundle/{server-QH6AKPRV.js → server-ISFSZGGI.js} +50 -50
- package/dist/bundle/{state-ZXZGIIJW.js → state-G34NVZ7F.js} +3 -3
- package/dist/bundle/{store-PNJNDMQ4.js → store-6U4SYK4Q.js} +17 -9
- package/dist/bundle/store-maintenance-command-ONVPBZLT.js +48 -0
- package/dist/bundle/update-SAJHFRB2.js +69 -0
- package/dist/knowledge/relationships.d.ts +5 -1
- package/dist/knowledge/relationships.d.ts.map +1 -1
- package/dist/schedule/mail-triage-input.d.ts +21 -5
- package/dist/schedule/mail-triage-input.d.ts.map +1 -1
- package/dist/schedule/mail-triage-input.js +111 -12
- package/dist/schedule/mail-triage-input.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/morning-digest/SKILL.md +38 -13
- package/dist/bundle/auto-2AY6K6DI.js +0 -86
- package/dist/bundle/failure-ZKQVXWAB.js +0 -66
- package/dist/bundle/server-KZZHFPTZ.js +0 -61
- package/dist/bundle/server-WAIPBBM7.js +0 -48
- package/dist/bundle/store-maintenance-command-2ZVV3DGA.js +0 -48
- package/dist/bundle/update-6HXLLGTQ.js +0 -69
- /package/dist/bundle/{chunk-DPRGC5YX.js → chunk-2H36DXV7.js} +0 -0
|
@@ -17,6 +17,8 @@ import {
|
|
|
17
17
|
backendRequest,
|
|
18
18
|
catchUpQuery,
|
|
19
19
|
checkPoints,
|
|
20
|
+
cursorOf,
|
|
21
|
+
findingsKeyOf,
|
|
20
22
|
noteServer,
|
|
21
23
|
pointsOf,
|
|
22
24
|
readPastMark,
|
|
@@ -25,19 +27,19 @@ import {
|
|
|
25
27
|
serverSearchOptions,
|
|
26
28
|
summaryOf,
|
|
27
29
|
unansweredHours
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DIFRVXKQ.js";
|
|
29
31
|
import {
|
|
30
32
|
MAIL_HIT_UNTRUSTED,
|
|
31
33
|
messagesAnswer,
|
|
32
34
|
offsetOf,
|
|
33
35
|
shownOf
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DDD3CXHR.js";
|
|
35
37
|
import {
|
|
36
38
|
messageItem
|
|
37
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-BEO6VJ2E.js";
|
|
38
40
|
import {
|
|
39
41
|
knownPermissionKeys
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MFVZXEQN.js";
|
|
41
43
|
import {
|
|
42
44
|
AGENDA_DEFAULTS,
|
|
43
45
|
DEFAULT_BACKEND,
|
|
@@ -60,7 +62,7 @@ import {
|
|
|
60
62
|
sourceKey,
|
|
61
63
|
typedQuery,
|
|
62
64
|
withQuery
|
|
63
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-WYZDNDQ5.js";
|
|
64
66
|
import {
|
|
65
67
|
Command,
|
|
66
68
|
FETCH,
|
|
@@ -92,11 +94,11 @@ import {
|
|
|
92
94
|
snakeKeys,
|
|
93
95
|
withSettingDefaults,
|
|
94
96
|
withoutSetting
|
|
95
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-IRFHHNSX.js";
|
|
96
98
|
import {
|
|
97
99
|
mailHolderVariable,
|
|
98
100
|
readOnlyLockOf
|
|
99
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-6NJ5OI2S.js";
|
|
100
102
|
import {
|
|
101
103
|
DEFAULT_DECISION_POLICY,
|
|
102
104
|
MESSAGE_PARSING,
|
|
@@ -109,7 +111,7 @@ import {
|
|
|
109
111
|
registrableOf,
|
|
110
112
|
scoreGroup,
|
|
111
113
|
validateFields
|
|
112
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-4335SGVD.js";
|
|
113
115
|
import {
|
|
114
116
|
count,
|
|
115
117
|
dateRange,
|
|
@@ -120,7 +122,7 @@ import {
|
|
|
120
122
|
time,
|
|
121
123
|
timezoneOf,
|
|
122
124
|
untrusted
|
|
123
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-SR3ZNX24.js";
|
|
124
126
|
import {
|
|
125
127
|
configFilePath,
|
|
126
128
|
resolvePaths,
|
|
@@ -157,7 +159,7 @@ import {
|
|
|
157
159
|
__toESM
|
|
158
160
|
} from "./chunk-ZVVMGPBJ.js";
|
|
159
161
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
161
163
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
162
164
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
163
165
|
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
@@ -196,7 +198,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
196
198
|
return files;
|
|
197
199
|
}, "readAttachments");
|
|
198
200
|
|
|
199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
200
202
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
201
203
|
...items.filter((item) => !suspicious(item)),
|
|
202
204
|
...items.filter(suspicious)
|
|
@@ -283,11 +285,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
283
285
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
284
286
|
}).join("\n"), "attachmentsText");
|
|
285
287
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
287
289
|
var BULK = "bulk";
|
|
288
290
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
289
291
|
|
|
290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
291
293
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
292
294
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
293
295
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -307,7 +309,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
307
309
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
308
310
|
}), "parsedEmail");
|
|
309
311
|
|
|
310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
311
313
|
var PRESETS = {
|
|
312
314
|
social: {
|
|
313
315
|
about: "notifications from social networks",
|
|
@@ -399,7 +401,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
399
401
|
return false;
|
|
400
402
|
}, "presetMatches");
|
|
401
403
|
|
|
402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
403
405
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
404
406
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
405
407
|
var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
|
|
@@ -467,7 +469,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
|
|
|
467
469
|
};
|
|
468
470
|
}, "probeMail");
|
|
469
471
|
|
|
470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
471
473
|
var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
472
474
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
473
475
|
if (!grouped)
|
|
@@ -5738,7 +5740,7 @@ var PostalMime = class _PostalMime {
|
|
|
5738
5740
|
}
|
|
5739
5741
|
};
|
|
5740
5742
|
|
|
5741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
5742
5744
|
var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
5743
5745
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
5744
5746
|
var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
|
|
@@ -5785,7 +5787,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
5785
5787
|
};
|
|
5786
5788
|
}, "mailHeadersOf");
|
|
5787
5789
|
|
|
5788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
5789
5791
|
var MAX_BODY_CHARS = 1e6;
|
|
5790
5792
|
var MAX_ATTACHMENTS = 50;
|
|
5791
5793
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -5850,13 +5852,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
5850
5852
|
};
|
|
5851
5853
|
}, "parseMail");
|
|
5852
5854
|
|
|
5853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
5854
5856
|
var PARTIAL = "partial";
|
|
5855
5857
|
|
|
5856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
5857
5859
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
5858
5860
|
|
|
5859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
5860
5862
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
5861
5863
|
var KINDS = {
|
|
5862
5864
|
from: "string",
|
|
@@ -5925,7 +5927,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
5925
5927
|
}, "storedMailRuleSet");
|
|
5926
5928
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
5927
5929
|
|
|
5928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
5929
5931
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
5930
5932
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
5931
5933
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -5997,7 +5999,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
|
|
|
5997
5999
|
}, "tagsOf");
|
|
5998
6000
|
var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
|
|
5999
6001
|
|
|
6000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
6001
6003
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
6002
6004
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
6003
6005
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -6027,7 +6029,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
6027
6029
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
6028
6030
|
}), "ruleInput");
|
|
6029
6031
|
|
|
6030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
6031
6033
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
6032
6034
|
const { details } = error;
|
|
6033
6035
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -6088,7 +6090,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
6088
6090
|
}
|
|
6089
6091
|
}, "settleRuleTags");
|
|
6090
6092
|
|
|
6091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
6092
6094
|
var DAY = 864e5;
|
|
6093
6095
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
6094
6096
|
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 +6163,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
|
|
|
6161
6163
|
};
|
|
6162
6164
|
}, "mailCriteriaOf");
|
|
6163
6165
|
|
|
6164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
6165
6167
|
var refusal = {
|
|
6166
6168
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
6167
6169
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -6376,7 +6378,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
6376
6378
|
return { report, sources };
|
|
6377
6379
|
}, "searchMailServer");
|
|
6378
6380
|
|
|
6379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
|
|
6380
6382
|
var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
6381
6383
|
var mailMark = strictObject({
|
|
6382
6384
|
holder: string(),
|
|
@@ -6474,7 +6476,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
6474
6476
|
});
|
|
6475
6477
|
}), "resetMarkCommand");
|
|
6476
6478
|
|
|
6477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
6478
6480
|
var REVIEW_THREADS = 50;
|
|
6479
6481
|
var REVIEW_PER_THREAD = 50;
|
|
6480
6482
|
var OWED_DAYS = 30;
|
|
@@ -6572,7 +6574,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
6572
6574
|
};
|
|
6573
6575
|
}, "reviewMail");
|
|
6574
6576
|
|
|
6575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
6576
6578
|
var DAY2 = 864e5;
|
|
6577
6579
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
6578
6580
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -6676,6 +6678,7 @@ var reviewAnswer = /* @__PURE__ */ __name((found, mailbox, fresh, step) => {
|
|
|
6676
6678
|
bulk: (message.marks?.bulk ?? false) || message.excerptOnly === true,
|
|
6677
6679
|
...message.excerptOnly ? { excerpt_only: true } : {},
|
|
6678
6680
|
...message.partialExcerpt ? { partial: true } : {},
|
|
6681
|
+
...message.through ? { cursor: message.through.cursor, findings_key: message.through.findingsKey } : {},
|
|
6679
6682
|
list_id: message.marks?.listId ?? null,
|
|
6680
6683
|
rule_id: message.marks?.ruleId ?? null,
|
|
6681
6684
|
...message.marks ? {
|
|
@@ -6698,14 +6701,25 @@ var holderReview = /* @__PURE__ */ __name(async (command, mail, holder, query) =
|
|
|
6698
6701
|
if (typedQuery(query).trim() || unanswered !== void 0 || waiting !== void 0)
|
|
6699
6702
|
throw new CliError("validation_error", "--holder reads past its own mark \u2014 not with a query, --unanswered or --waiting");
|
|
6700
6703
|
const triage = mail.bulkTriage?.(command) ?? BULK_TRIAGE_DEFAULTS;
|
|
6704
|
+
const now = Date.now();
|
|
6701
6705
|
const { read, mailbox, marks } = await mail.read(command, async (store, mailbox2) => {
|
|
6702
|
-
const read2 = await readPastMark(store, mailbox2, holder, { triage });
|
|
6706
|
+
const read2 = await readPastMark(store, mailbox2, holder, { triage, now });
|
|
6703
6707
|
const ids = [...read2.emails, ...read2.excerpts.map(({ email }) => email)].map((one) => one.id);
|
|
6704
6708
|
const account = ids.length ? await store.accounts.storedAccount(mailbox2) : void 0;
|
|
6705
6709
|
const marks2 = account ? await store.mail.emailMarks(account.id, ids) : /* @__PURE__ */ new Map();
|
|
6706
6710
|
return { read: read2, mailbox: mailbox2, marks: marks2 };
|
|
6707
6711
|
});
|
|
6708
|
-
const
|
|
6712
|
+
const markedThrough = read.mark?.throughId ?? 0;
|
|
6713
|
+
const heldThrough = [...read.emails, ...read.excerpts.map(({ email }) => email)].reduce((most, { storeId }) => storeId <= markedThrough ? Math.max(most, storeId) : most, 0);
|
|
6714
|
+
const through = /* @__PURE__ */ __name((id) => {
|
|
6715
|
+
const held = id <= markedThrough;
|
|
6716
|
+
const at = held ? markedThrough : id;
|
|
6717
|
+
return {
|
|
6718
|
+
cursor: cursorOf(at, now),
|
|
6719
|
+
findingsKey: findingsKeyOf(holder, at, read.mark?.resets ?? 0, held ? heldThrough : void 0)
|
|
6720
|
+
};
|
|
6721
|
+
}, "through");
|
|
6722
|
+
const listed2 = [
|
|
6709
6723
|
...read.emails.map((email) => ({ ...email, text: mailOwnText(email.text) })),
|
|
6710
6724
|
...read.excerpts.map(({ email, excerpt, partial }) => {
|
|
6711
6725
|
const subject = email.email?.subject;
|
|
@@ -6719,6 +6733,7 @@ ${excerpt}` : excerpt,
|
|
|
6719
6733
|
};
|
|
6720
6734
|
})
|
|
6721
6735
|
];
|
|
6736
|
+
const emails = listed2.map(({ storeId, ...email }) => ({ ...email, through: through(storeId) }));
|
|
6722
6737
|
const chats = /* @__PURE__ */ new Map();
|
|
6723
6738
|
for (const email of emails) {
|
|
6724
6739
|
const chat = chats.get(email.chatId) ?? {
|
|
@@ -6732,10 +6747,10 @@ ${excerpt}` : excerpt,
|
|
|
6732
6747
|
chat.messages.push(mark ? { ...email, marks: mark } : email);
|
|
6733
6748
|
chats.set(email.chatId, chat);
|
|
6734
6749
|
}
|
|
6735
|
-
const
|
|
6750
|
+
const until = new Date(now).toISOString();
|
|
6736
6751
|
const found = {
|
|
6737
|
-
since: read.mark?.throughAt ? new Date(read.mark.throughAt).toISOString() :
|
|
6738
|
-
until
|
|
6752
|
+
since: read.mark?.throughAt ? new Date(read.mark.throughAt).toISOString() : until,
|
|
6753
|
+
until,
|
|
6739
6754
|
complete: !read.more,
|
|
6740
6755
|
chats: [...chats.values()],
|
|
6741
6756
|
skipped: [],
|
|
@@ -6841,7 +6856,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
6841
6856
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
6842
6857
|
}), "mailReviewCommand");
|
|
6843
6858
|
|
|
6844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
6845
6860
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
6846
6861
|
var MAIL_BULK_SETTINGS = [
|
|
6847
6862
|
{
|
|
@@ -6897,7 +6912,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
6897
6912
|
};
|
|
6898
6913
|
}, "bulkTriageOf");
|
|
6899
6914
|
|
|
6900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
6901
6916
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
6902
6917
|
if (error instanceof CliError && error.code === "not_found")
|
|
6903
6918
|
return void 0;
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6NJ5OI2S.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7ZO2LAFF.js";
|
|
11
11
|
import {
|
|
12
12
|
catchCrashes
|
|
13
13
|
} from "./chunk-64JCY7XJ.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
25
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
28
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
29
29
|
import { readFileSync } from "node:fs";
|
|
30
30
|
import { dirname } from "node:path";
|
|
@@ -112,14 +112,14 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
112
112
|
});
|
|
113
113
|
}), "relay");
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
116
116
|
import { appendFileSync } from "node:fs";
|
|
117
117
|
var logVersion = /* @__PURE__ */ __name((file) => {
|
|
118
118
|
appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
|
|
119
119
|
`);
|
|
120
120
|
}, "logVersion");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
123
123
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
124
124
|
argv: process.argv,
|
|
125
125
|
env: process.env,
|
|
@@ -173,8 +173,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
173
173
|
if (command.optsWithGlobals().dryRun === true)
|
|
174
174
|
return;
|
|
175
175
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
176
|
-
import("./first-run-
|
|
177
|
-
import("./command-contract-
|
|
176
|
+
import("./first-run-ZBIQO5RZ.js"),
|
|
177
|
+
import("./command-contract-EWPKHGAZ.js")
|
|
178
178
|
]);
|
|
179
179
|
await setupAtStart({
|
|
180
180
|
command: entry.app.command,
|
|
@@ -189,7 +189,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
189
189
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
190
190
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
191
191
|
return false;
|
|
192
|
-
const { readSecret } = await import("./prompt-
|
|
192
|
+
const { readSecret } = await import("./prompt-65WPTVYC.js");
|
|
193
193
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
194
194
|
input: io.stdin,
|
|
195
195
|
output: io.stderr,
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
commandPathOf,
|
|
7
7
|
findCommand,
|
|
8
8
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-VXZ7FWKU.js";
|
|
10
|
+
import "./chunk-IRFHHNSX.js";
|
|
11
|
+
import "./chunk-MGDBKE7E.js";
|
|
12
|
+
import "./chunk-4VQ7FPNW.js";
|
|
13
|
+
import "./chunk-6NJ5OI2S.js";
|
|
14
|
+
import "./chunk-AYY5CYJJ.js";
|
|
15
|
+
import "./chunk-SR3ZNX24.js";
|
|
16
|
+
import "./chunk-P5UTNYA7.js";
|
|
17
|
+
import "./chunk-UBZN4EWJ.js";
|
|
18
|
+
import "./chunk-OSPAMIIY.js";
|
|
19
|
+
import "./chunk-RSBROHX4.js";
|
|
20
20
|
import "./chunk-SW6C6WH5.js";
|
|
21
21
|
import "./chunk-WLKDS65F.js";
|
|
22
22
|
import "./chunk-64JCY7XJ.js";
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
decodeChannels,
|
|
7
7
|
formatOf,
|
|
8
8
|
runFfmpeg
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-5UM2OEOR.js";
|
|
10
|
+
import "./chunk-PHP3T567.js";
|
|
11
11
|
import "./chunk-WLKDS65F.js";
|
|
12
12
|
import "./chunk-64JCY7XJ.js";
|
|
13
13
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -42399,7 +42399,7 @@ function install11(registers) {
|
|
|
42399
42399
|
}
|
|
42400
42400
|
__name(install11, "install");
|
|
42401
42401
|
|
|
42402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
|
|
42403
42403
|
var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
42404
42404
|
animation: false,
|
|
42405
42405
|
backgroundColor: "#111827",
|
|
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
|
42447
42447
|
} : {}
|
|
42448
42448
|
}), "echartsOption");
|
|
42449
42449
|
|
|
42450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/charts/echarts.js
|
|
42451
42451
|
use([install2, install, install6, install5, install10, install7, install11]);
|
|
42452
42452
|
var echartsRenderer = {
|
|
42453
42453
|
render: /* @__PURE__ */ __name(async (chart, size) => {
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-26QKDK5P.js";
|
|
17
|
+
import "./chunk-OSPAMIIY.js";
|
|
18
|
+
import "./chunk-RSBROHX4.js";
|
|
19
19
|
import "./chunk-WLKDS65F.js";
|
|
20
20
|
import "./chunk-64JCY7XJ.js";
|
|
21
21
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-26QKDK5P.js";
|
|
8
|
+
import "./chunk-OSPAMIIY.js";
|
|
9
|
+
import "./chunk-RSBROHX4.js";
|
|
10
10
|
import "./chunk-WLKDS65F.js";
|
|
11
11
|
import "./chunk-64JCY7XJ.js";
|
|
12
12
|
import {
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
24
24
|
import { join } from "node:path";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
|
|
27
27
|
var SIZE = 224;
|
|
28
28
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
29
29
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -62,7 +62,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
62
62
|
return pixels;
|
|
63
63
|
}, "preprocess");
|
|
64
64
|
|
|
65
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
65
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.606.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_66b8ac22c245eeaba8c329faa5b17078/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
66
66
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
67
67
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
68
68
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
openBrowser,
|
|
5
5
|
startCli
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ZTM4UUCP.js";
|
|
7
|
+
import "./chunk-6NJ5OI2S.js";
|
|
8
|
+
import "./chunk-7ZO2LAFF.js";
|
|
9
|
+
import "./chunk-MV5W4FLV.js";
|
|
10
10
|
import "./chunk-WLKDS65F.js";
|
|
11
11
|
import "./chunk-64JCY7XJ.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
errorObject,
|
|
5
|
+
mcpFailure,
|
|
6
|
+
recognisable,
|
|
7
|
+
reportFailure,
|
|
8
|
+
throwParseFailures
|
|
9
|
+
} from "./chunk-HIF4YBD7.js";
|
|
10
|
+
import "./chunk-DIFRVXKQ.js";
|
|
11
|
+
import "./chunk-34GJQ4ZR.js";
|
|
12
|
+
import "./chunk-JB43Q2QL.js";
|
|
13
|
+
import "./chunk-DDD3CXHR.js";
|
|
14
|
+
import "./chunk-BC7N6IQ6.js";
|
|
15
|
+
import "./chunk-P3MKPY7D.js";
|
|
16
|
+
import "./chunk-BEO6VJ2E.js";
|
|
17
|
+
import "./chunk-MFVZXEQN.js";
|
|
18
|
+
import "./chunk-WYZDNDQ5.js";
|
|
19
|
+
import "./chunk-JGY2PJ3N.js";
|
|
20
|
+
import "./chunk-KK2ATSEC.js";
|
|
21
|
+
import "./chunk-HTQTIKWP.js";
|
|
22
|
+
import "./chunk-VXZ7FWKU.js";
|
|
23
|
+
import "./chunk-IRFHHNSX.js";
|
|
24
|
+
import "./chunk-MGDBKE7E.js";
|
|
25
|
+
import "./chunk-T5WGWLY2.js";
|
|
26
|
+
import "./chunk-MZMJALJT.js";
|
|
27
|
+
import "./chunk-6G53ZFUT.js";
|
|
28
|
+
import "./chunk-4VQ7FPNW.js";
|
|
29
|
+
import "./chunk-ZTM4UUCP.js";
|
|
30
|
+
import "./chunk-6NJ5OI2S.js";
|
|
31
|
+
import "./chunk-OKERVM3M.js";
|
|
32
|
+
import "./chunk-MU4MPJCU.js";
|
|
33
|
+
import "./chunk-AYY5CYJJ.js";
|
|
34
|
+
import "./chunk-4335SGVD.js";
|
|
35
|
+
import "./chunk-SR3ZNX24.js";
|
|
36
|
+
import "./chunk-P5UTNYA7.js";
|
|
37
|
+
import "./chunk-RX6JTLKD.js";
|
|
38
|
+
import "./chunk-UBZN4EWJ.js";
|
|
39
|
+
import "./chunk-643B3X4D.js";
|
|
40
|
+
import "./chunk-PSJB456T.js";
|
|
41
|
+
import "./chunk-2NVP4FZH.js";
|
|
42
|
+
import "./chunk-KTVYCPJW.js";
|
|
43
|
+
import "./chunk-VPCNLTME.js";
|
|
44
|
+
import "./chunk-26QKDK5P.js";
|
|
45
|
+
import "./chunk-OSPAMIIY.js";
|
|
46
|
+
import "./chunk-RSBROHX4.js";
|
|
47
|
+
import "./chunk-BPGYTJNB.js";
|
|
48
|
+
import "./chunk-ZRBXOHNH.js";
|
|
49
|
+
import "./chunk-IK6KH3RE.js";
|
|
50
|
+
import "./chunk-SW6C6WH5.js";
|
|
51
|
+
import "./chunk-D72URWJE.js";
|
|
52
|
+
import "./chunk-7ZO2LAFF.js";
|
|
53
|
+
import "./chunk-MV5W4FLV.js";
|
|
54
|
+
import "./chunk-WLKDS65F.js";
|
|
55
|
+
import "./chunk-64JCY7XJ.js";
|
|
56
|
+
import "./chunk-Y5E2WNWB.js";
|
|
57
|
+
import "./chunk-4ZW6ZJ2V.js";
|
|
58
|
+
import "./chunk-VQTU4ILC.js";
|
|
59
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
60
|
+
export {
|
|
61
|
+
errorObject,
|
|
62
|
+
mcpFailure,
|
|
63
|
+
recognisable,
|
|
64
|
+
reportFailure,
|
|
65
|
+
throwParseFailures
|
|
66
|
+
};
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-T5WGWLY2.js";
|
|
9
9
|
import "./chunk-MZMJALJT.js";
|
|
10
10
|
import "./chunk-6G53ZFUT.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-4VQ7FPNW.js";
|
|
12
|
+
import "./chunk-RX6JTLKD.js";
|
|
13
|
+
import "./chunk-UBZN4EWJ.js";
|
|
14
|
+
import "./chunk-RSBROHX4.js";
|
|
15
15
|
import "./chunk-IK6KH3RE.js";
|
|
16
16
|
import "./chunk-D72URWJE.js";
|
|
17
17
|
import "./chunk-WLKDS65F.js";
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
WIRECAT_TOOLS,
|
|
5
5
|
firstScreen,
|
|
6
6
|
installHelp
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KK2ATSEC.js";
|
|
8
8
|
import "./chunk-HTQTIKWP.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-VXZ7FWKU.js";
|
|
10
|
+
import "./chunk-IRFHHNSX.js";
|
|
11
|
+
import "./chunk-MGDBKE7E.js";
|
|
12
|
+
import "./chunk-4VQ7FPNW.js";
|
|
13
|
+
import "./chunk-6NJ5OI2S.js";
|
|
14
|
+
import "./chunk-AYY5CYJJ.js";
|
|
15
|
+
import "./chunk-SR3ZNX24.js";
|
|
16
|
+
import "./chunk-P5UTNYA7.js";
|
|
17
|
+
import "./chunk-UBZN4EWJ.js";
|
|
18
|
+
import "./chunk-OSPAMIIY.js";
|
|
19
|
+
import "./chunk-RSBROHX4.js";
|
|
20
20
|
import "./chunk-SW6C6WH5.js";
|
|
21
21
|
import "./chunk-WLKDS65F.js";
|
|
22
22
|
import "./chunk-64JCY7XJ.js";
|