@wirecat/mail-cli 0.14.0 → 0.15.0
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/CHANGELOG.md +49 -0
- package/README.md +5 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-O7HQNZOF.js → all-profiles-PKXL5TKP.js} +10 -10
- package/dist/bundle/{anthropic-SNA6PTVO.js → anthropic-DFDNZU7C.js} +6 -6
- package/dist/bundle/{app-server-LBKMJMKN.js → app-server-WOZAOCKX.js} +47 -47
- package/dist/bundle/{bun-KF5QK2YN.js → bun-DKZAL6ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-2DKMM2PT.js → bun-sqlite-2A7FS5GD.js} +5 -5
- package/dist/bundle/{chunk-KLLKDOO2.js → chunk-2A4Z3WOC.js} +476 -304
- package/dist/bundle/{chunk-VERSKGJV.js → chunk-2BHY4GFP.js} +2 -2
- package/dist/bundle/{chunk-P62Z3Q35.js → chunk-3MKCLPQV.js} +14 -14
- package/dist/bundle/{chunk-FTGCXIQA.js → chunk-4DGOI6JB.js} +47 -33
- package/dist/bundle/{chunk-BP3TZ4EY.js → chunk-4HVY3QPF.js} +1 -1
- package/dist/bundle/{chunk-NGZW2JPK.js → chunk-4TPNRJER.js} +7 -7
- package/dist/bundle/{chunk-W643XZIR.js → chunk-4XRIALMN.js} +2 -2
- package/dist/bundle/{chunk-B5XAETYU.js → chunk-4YECCESG.js} +2 -2
- package/dist/bundle/{chunk-IPKXRW6W.js → chunk-5C3L2QER.js} +26 -25
- package/dist/bundle/{chunk-V5ZID7KC.js → chunk-5W7D5H2R.js} +1 -1
- package/dist/bundle/{chunk-E7BTD4P6.js → chunk-6AYJDBHT.js} +6 -6
- package/dist/bundle/{chunk-I7EWIIBC.js → chunk-6Z7VBDFR.js} +2 -3
- package/dist/bundle/{chunk-P547HU26.js → chunk-73SQQXSU.js} +10 -10
- package/dist/bundle/{chunk-ER6PJAPK.js → chunk-A6O3WHBD.js} +3 -3
- package/dist/bundle/{chunk-MQK2UNG4.js → chunk-BIKMEGC7.js} +8 -8
- package/dist/bundle/{chunk-AOVOIXGR.js → chunk-BKF7XIJ5.js} +10 -10
- package/dist/bundle/{chunk-NVQUK2DH.js → chunk-BY5S3JEZ.js} +47 -47
- package/dist/bundle/{chunk-CCHHEMPM.js → chunk-EB2IULWB.js} +3 -2
- package/dist/bundle/{chunk-2F7D6YMB.js → chunk-EDJQDR5X.js} +4 -4
- package/dist/bundle/{chunk-3YGYB3LJ.js → chunk-ENZTLYTS.js} +23 -5
- package/dist/bundle/{chunk-UHHARH5X.js → chunk-FEWWBU2I.js} +147 -73
- package/dist/bundle/{chunk-IVDUR5Y4.js → chunk-G6RG2AZV.js} +15 -8
- package/dist/bundle/{chunk-DIP3ENSY.js → chunk-HGOYQUT7.js} +1 -1
- package/dist/bundle/{chunk-XRJIQC6P.js → chunk-IA6U76ZY.js} +2 -2
- package/dist/bundle/{chunk-7LDC275M.js → chunk-JQTIB4WJ.js} +7 -7
- package/dist/bundle/{chunk-M2YIJDBL.js → chunk-K4N5UG64.js} +6 -6
- package/dist/bundle/{chunk-2A4BAMNF.js → chunk-KJYCA6IC.js} +4 -4
- package/dist/bundle/{chunk-ILHTNOIV.js → chunk-KV4267S4.js} +1 -1
- package/dist/bundle/{chunk-QZXHMQCM.js → chunk-LARQTWIL.js} +1 -1
- package/dist/bundle/{chunk-Q5EYTU3Q.js → chunk-LRBAQSU3.js} +3 -3
- package/dist/bundle/{chunk-UMWR5PKA.js → chunk-M5DF6QNT.js} +13 -13
- package/dist/bundle/{chunk-G53HRGTK.js → chunk-M5VHTDJZ.js} +17 -17
- package/dist/bundle/{chunk-RE5SEGSR.js → chunk-NDZK466U.js} +4 -4
- package/dist/bundle/{chunk-2KVR7FF3.js → chunk-NNLYS4IR.js} +9 -9
- package/dist/bundle/{chunk-WBJQEB6E.js → chunk-OJEIUOMW.js} +12 -12
- package/dist/bundle/{chunk-X5XIFNTI.js → chunk-OZVGHHFZ.js} +2 -2
- package/dist/bundle/{chunk-VA3JKERH.js → chunk-P4SV3VKP.js} +2 -2
- package/dist/bundle/{chunk-5C74F7XX.js → chunk-PI5P457W.js} +4 -4
- package/dist/bundle/{chunk-XPREXN3W.js → chunk-PXLVTHMH.js} +3 -3
- package/dist/bundle/{chunk-3EAAEF5U.js → chunk-QCNK3YUZ.js} +95 -36
- package/dist/bundle/{chunk-6EZ7XGRG.js → chunk-QJQV6KG2.js} +2 -2
- package/dist/bundle/{chunk-KQ5P5NLL.js → chunk-QSGT4ZH4.js} +1 -1
- package/dist/bundle/{chunk-OGK7LMYT.js → chunk-QTD3BVS5.js} +6 -6
- package/dist/bundle/{chunk-WVWNKZI4.js → chunk-R6UG66IM.js} +465 -280
- package/dist/bundle/{chunk-I62OTHDE.js → chunk-RBNL3DBQ.js} +3 -3
- package/dist/bundle/{chunk-7GSE57K3.js → chunk-RFDP45QO.js} +3 -3
- package/dist/bundle/{chunk-YG4OI3HJ.js → chunk-SPQY3PJX.js} +232 -180
- package/dist/bundle/{chunk-H7OQ4YZV.js → chunk-SRHKHE4C.js} +47 -28
- package/dist/bundle/{chunk-DPKHVBP3.js → chunk-U3VX3UUC.js} +5 -5
- package/dist/bundle/{chunk-6CZQJ5XR.js → chunk-VQQFOA4O.js} +8 -8
- package/dist/bundle/{chunk-UJEO3VWA.js → chunk-WIU733D2.js} +1 -1
- package/dist/bundle/{chunk-F5SZVO3A.js → chunk-WOV3ABQR.js} +4 -4
- package/dist/bundle/{chunk-KBFIKUCA.js → chunk-WTDYN3TQ.js} +28 -28
- package/dist/bundle/{chunk-EW3XTUPB.js → chunk-XBIPSSKI.js} +4 -4
- package/dist/bundle/{chunk-QWRBAQZ7.js → chunk-XGNC5OJG.js} +1 -1
- package/dist/bundle/{chunk-MXG4L7NH.js → chunk-XKUAEYJV.js} +10 -10
- package/dist/bundle/{chunk-PQLBPYJR.js → chunk-YPF6OS37.js} +1 -1
- package/dist/bundle/{chunk-H2ZURG7Q.js → chunk-YRHXVXLQ.js} +2 -2
- package/dist/bundle/{chunk-ZCPUKUST.js → chunk-YWIU4HOT.js} +1 -1
- package/dist/bundle/command-contract-4E4NYRR7.js +34 -0
- package/dist/bundle/{decode-X7Y2VSYZ.js → decode-LX4FPSI7.js} +5 -5
- package/dist/bundle/{dispatch-OWNO2CMC.js → dispatch-3ILCYZ4Q.js} +8 -8
- package/dist/bundle/{dist-L7FNC74Q.js → dist-HQIZDYNQ.js} +14 -14
- package/dist/bundle/{echarts-5AB3LFVD.js → echarts-BGBPRGR5.js} +2 -2
- package/dist/bundle/{embed-VBS5LRCE.js → embed-ASAE3H5I.js} +6 -6
- package/dist/bundle/{embedder-VFSYBDKK.js → embedder-QYDZRKBX.js} +9 -9
- package/dist/bundle/{failure-E534GZDF.js → failure-UDL5QZRZ.js} +2 -2
- package/dist/bundle/{first-run-NO2ODH2W.js → first-run-EFNNGFCB.js} +11 -11
- package/dist/bundle/first-screen-XHM3TT6G.js +32 -0
- package/dist/bundle/{instructions-52W6ZQTU.js → instructions-6LPDSKAD.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-MNI62HHE.js → mcp-PPVOM4SE.js} +2 -2
- package/dist/bundle/{node-TL2PBNKO.js → node-IB246NCQ.js} +2 -2
- package/dist/bundle/{node-sqlite-757HNQAD.js → node-sqlite-UROXM4VR.js} +6 -6
- package/dist/bundle/{oauth-VDRNJ7KN.js → oauth-VSCKHS4T.js} +7 -7
- package/dist/bundle/{open-NUWYOKPO.js → open-R4LVB63T.js} +5 -5
- package/dist/bundle/{openai-YLBFVK5X.js → openai-MKCEOFKL.js} +14 -14
- package/dist/bundle/{process-PWAGP6YY.js → process-SWPJGPQC.js} +1 -1
- package/dist/bundle/{program-PPUPVL7O.js → program-CJ2YDRUY.js} +11358 -10374
- package/dist/bundle/{prompt-M5U66RVJ.js → prompt-TWWJ5VAM.js} +5 -5
- package/dist/bundle/{recognize-DCMDZA2U.js → recognize-XMO5ETQU.js} +4 -4
- package/dist/bundle/{remote-4SHI5WJG.js → remote-N6VAWJWE.js} +7 -7
- package/dist/bundle/{rerank-DYMZMNPQ.js → rerank-XNAMC6FH.js} +7 -7
- package/dist/bundle/{serve-HO3WME4G.js → serve-IJ32WEBH.js} +9 -9
- package/dist/bundle/server-CRVR4L2E.js +64 -0
- package/dist/bundle/{server-R3TIPRZN.js → server-KEYSE5OL.js} +39 -39
- package/dist/bundle/{sqlite-runtime-DWRITUIH.js → sqlite-runtime-NFBRN7OF.js} +6 -6
- package/dist/bundle/{state-QOMUDOGF.js → state-7WPJEW2Z.js} +6 -6
- package/dist/bundle/{store-LHHMOE5V.js → store-KHVHOGQR.js} +21 -19
- package/dist/bundle/{store-RGO6IABA.js → store-PKQCNACC.js} +15 -15
- package/dist/bundle/store-maintenance-command-5MODJN6R.js +54 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +149 -3
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/context.d.ts +2 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -2
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.d.ts.map +1 -0
- package/dist/commands/import.js +92 -0
- package/dist/commands/import.js.map +1 -0
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +29 -3
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +9 -7
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/stats.d.ts.map +1 -1
- package/dist/commands/stats.js +49 -2
- package/dist/commands/stats.js.map +1 -1
- package/dist/commands/sync.d.ts +2 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +38 -4
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -0
- package/dist/config.js.map +1 -1
- package/dist/mail/doctor.d.ts +3 -2
- package/dist/mail/doctor.d.ts.map +1 -1
- package/dist/mail/doctor.js +14 -16
- package/dist/mail/doctor.js.map +1 -1
- package/dist/mail/domain-age.d.ts +29 -0
- package/dist/mail/domain-age.d.ts.map +1 -0
- package/dist/mail/domain-age.js +157 -0
- package/dist/mail/domain-age.js.map +1 -0
- package/dist/mail/mbox.d.ts +9 -0
- package/dist/mail/mbox.d.ts.map +1 -0
- package/dist/mail/mbox.js +230 -0
- package/dist/mail/mbox.js.map +1 -0
- package/dist/oauth.d.ts +13 -9
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +12 -25
- package/dist/oauth.js.map +1 -1
- package/dist/profile.d.ts +4 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +6 -1
- package/dist/profile.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +10 -1
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -1
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/mail-cli/SKILL.md +2 -0
- package/dist/bundle/command-contract-B3OGAIDB.js +0 -34
- package/dist/bundle/first-screen-7VJLGMJJ.js +0 -32
- package/dist/bundle/server-244FHPY4.js +0 -64
- package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +0 -54
- /package/dist/bundle/{chunk-NUN6OGOV.js → chunk-LU3WKZBA.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M5DF6QNT.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
someUndone,
|
|
27
27
|
validateFormattedText,
|
|
28
28
|
visibleFormattedText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-73SQQXSU.js";
|
|
30
30
|
import {
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QJQV6KG2.js";
|
|
33
33
|
import {
|
|
34
34
|
Command,
|
|
35
35
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -69,17 +69,17 @@ import {
|
|
|
69
69
|
typedCommand,
|
|
70
70
|
vectorModelKey,
|
|
71
71
|
withAttempt
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-SPQY3PJX.js";
|
|
73
73
|
import {
|
|
74
74
|
isCliFailure
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-NNLYS4IR.js";
|
|
76
76
|
import {
|
|
77
77
|
isNewer,
|
|
78
78
|
updateCommand
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-EDJQDR5X.js";
|
|
80
80
|
import {
|
|
81
81
|
remoteKey
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-RFDP45QO.js";
|
|
83
83
|
import {
|
|
84
84
|
Unzip,
|
|
85
85
|
UnzipInflate,
|
|
@@ -90,11 +90,11 @@ import {
|
|
|
90
90
|
placedText,
|
|
91
91
|
runEmbedders,
|
|
92
92
|
textModelsDirectory
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-QTD3BVS5.js";
|
|
94
94
|
import {
|
|
95
95
|
installFiles,
|
|
96
96
|
megabytes
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-WOV3ABQR.js";
|
|
98
98
|
import {
|
|
99
99
|
AGENDA_COLUMNS,
|
|
100
100
|
CHAT_COLUMNS,
|
|
@@ -155,8 +155,9 @@ import {
|
|
|
155
155
|
sourceOf,
|
|
156
156
|
threadConversation,
|
|
157
157
|
validateAst,
|
|
158
|
-
validateFields
|
|
159
|
-
|
|
158
|
+
validateFields,
|
|
159
|
+
withoutField
|
|
160
|
+
} from "./chunk-2A4Z3WOC.js";
|
|
160
161
|
import {
|
|
161
162
|
COUNTER_FIELDS,
|
|
162
163
|
INTERNAL_NOTES,
|
|
@@ -176,13 +177,13 @@ import {
|
|
|
176
177
|
providerNamed,
|
|
177
178
|
rankingOptions,
|
|
178
179
|
rankingQuestion
|
|
179
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-XKUAEYJV.js";
|
|
180
181
|
import {
|
|
181
182
|
TASK_KINDS,
|
|
182
183
|
TASK_STATES,
|
|
183
184
|
createTaskService,
|
|
184
185
|
isClosedState
|
|
185
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-4TPNRJER.js";
|
|
186
187
|
import {
|
|
187
188
|
EVENT_QUERY,
|
|
188
189
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -223,24 +224,24 @@ import {
|
|
|
223
224
|
validateQuery,
|
|
224
225
|
walkQuery,
|
|
225
226
|
zonedMoment
|
|
226
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-FEWWBU2I.js";
|
|
227
228
|
import {
|
|
228
229
|
DEFAULT_STEMMERS,
|
|
229
230
|
createStemmer,
|
|
230
231
|
fold,
|
|
231
232
|
normalize
|
|
232
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-BIKMEGC7.js";
|
|
233
234
|
import {
|
|
234
235
|
DEFAULT_TASK_CATEGORIES,
|
|
235
236
|
FALLBACK_CATEGORY
|
|
236
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-K4N5UG64.js";
|
|
237
238
|
import {
|
|
238
239
|
storePath,
|
|
239
240
|
wirecatDirectory
|
|
240
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-OZVGHHFZ.js";
|
|
241
242
|
import {
|
|
242
243
|
resolvePaths
|
|
243
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-QCNK3YUZ.js";
|
|
244
245
|
import {
|
|
245
246
|
array,
|
|
246
247
|
boolean,
|
|
@@ -257,7 +258,7 @@ import {
|
|
|
257
258
|
safeParse,
|
|
258
259
|
strictObject,
|
|
259
260
|
string
|
|
260
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-G6RG2AZV.js";
|
|
261
262
|
import {
|
|
262
263
|
importFrom,
|
|
263
264
|
resolveFrom
|
|
@@ -266,7 +267,7 @@ import {
|
|
|
266
267
|
CliError,
|
|
267
268
|
isCliError,
|
|
268
269
|
singleLine
|
|
269
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-EB2IULWB.js";
|
|
270
271
|
import {
|
|
271
272
|
__commonJS,
|
|
272
273
|
__name,
|
|
@@ -16882,10 +16883,10 @@ var require_lib3 = __commonJS({
|
|
|
16882
16883
|
}
|
|
16883
16884
|
});
|
|
16884
16885
|
|
|
16885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16886
16887
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16887
16888
|
|
|
16888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16889
16890
|
var RULES_VERSION = 5;
|
|
16890
16891
|
var LOOK_BACK = 50;
|
|
16891
16892
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16975,7 +16976,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16975
16976
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16976
16977
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16977
16978
|
|
|
16978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16979
16980
|
var COMMAND_NEEDS = {
|
|
16980
16981
|
"account update": ["updateProfile", "change the profile"],
|
|
16981
16982
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17025,7 +17026,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17025
17026
|
return group;
|
|
17026
17027
|
}, "hideNever");
|
|
17027
17028
|
|
|
17028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17029
17030
|
var AUDIT_PAGE = 200;
|
|
17030
17031
|
var AUDIT_BUDGET = 10;
|
|
17031
17032
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17105,7 +17106,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17105
17106
|
return found;
|
|
17106
17107
|
}, "burstJoins");
|
|
17107
17108
|
|
|
17108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17109
17110
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17110
17111
|
command.allowUnknownOption();
|
|
17111
17112
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17125,7 +17126,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17125
17126
|
return command;
|
|
17126
17127
|
}, "queryWordsAfterOptions");
|
|
17127
17128
|
|
|
17128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17129
17130
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17130
17131
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17131
17132
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17167,7 +17168,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17167
17168
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17168
17169
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17169
17170
|
|
|
17170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17171
17172
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17172
17173
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17173
17174
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17190,7 +17191,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17190
17191
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17191
17192
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17192
17193
|
|
|
17193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17194
17195
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17195
17196
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17196
17197
|
const zone = timezoneOf();
|
|
@@ -17276,7 +17277,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17276
17277
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17277
17278
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17278
17279
|
|
|
17279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17280
17281
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17281
17282
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17282
17283
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17408,7 +17409,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17408
17409
|
}, "addMeetingCommandsDefinition");
|
|
17409
17410
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17410
17411
|
|
|
17411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17412
17413
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17413
17414
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17414
17415
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17541,7 +17542,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17541
17542
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17542
17543
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17543
17544
|
|
|
17544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17545
17546
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17546
17547
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17547
17548
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17550,7 +17551,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17550
17551
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
17551
17552
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17552
17553
|
|
|
17553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17554
17555
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17555
17556
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17556
17557
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17812,7 +17813,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17812
17813
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17813
17814
|
}), "sessionAnswer");
|
|
17814
17815
|
|
|
17815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17816
17817
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17817
17818
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17818
17819
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17876,7 +17877,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17876
17877
|
}), "storedDeps");
|
|
17877
17878
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17878
17879
|
|
|
17879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17880
17881
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17881
17882
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17882
17883
|
if (key in own)
|
|
@@ -17893,12 +17894,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17893
17894
|
return found.bind(adapter);
|
|
17894
17895
|
}, "capability");
|
|
17895
17896
|
|
|
17896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17897
17898
|
import { randomBytes } from "node:crypto";
|
|
17898
17899
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17899
17900
|
var newOperationId = newSendId;
|
|
17900
17901
|
|
|
17901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17902
17903
|
var LINKS = /https?:\/\/\S+/g;
|
|
17903
17904
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
17904
17905
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17928,7 +17929,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17928
17929
|
});
|
|
17929
17930
|
}, "questions");
|
|
17930
17931
|
|
|
17931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17932
17933
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17933
17934
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17934
17935
|
const name = typed.trim().toLowerCase();
|
|
@@ -17985,7 +17986,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
17985
17986
|
return best.name;
|
|
17986
17987
|
}, "categorize");
|
|
17987
17988
|
|
|
17988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17989
17990
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17990
17991
|
var RULES_IN = {
|
|
17991
17992
|
dialog: "all",
|
|
@@ -18191,7 +18192,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18191
18192
|
return passes;
|
|
18192
18193
|
}, "applyTaskRulesToChats");
|
|
18193
18194
|
|
|
18194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18195
18196
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18196
18197
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18197
18198
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18231,7 +18232,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18231
18232
|
};
|
|
18232
18233
|
}, "dateWindow");
|
|
18233
18234
|
|
|
18234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18235
18236
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18236
18237
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18237
18238
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18254,10 +18255,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18254
18255
|
}
|
|
18255
18256
|
}, "patiently");
|
|
18256
18257
|
|
|
18257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18258
18259
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18259
18260
|
|
|
18260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18261
18262
|
var REQUEST_MS = 400;
|
|
18262
18263
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18263
18264
|
const lowest = ranges[0];
|
|
@@ -18280,13 +18281,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18280
18281
|
};
|
|
18281
18282
|
}, "estimateBackfill");
|
|
18282
18283
|
|
|
18283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18284
18285
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18285
18286
|
...error,
|
|
18286
18287
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18287
18288
|
}), "withRecovery");
|
|
18288
18289
|
|
|
18289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18290
18291
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18291
18292
|
if (isCliFailure(error))
|
|
18292
18293
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18369,7 +18370,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18369
18370
|
};
|
|
18370
18371
|
}, "mergeBatches");
|
|
18371
18372
|
|
|
18372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18373
18374
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18374
18375
|
if (deps.reads !== "store")
|
|
18375
18376
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18387,11 +18388,11 @@ var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account)
|
|
|
18387
18388
|
}, "readChatId");
|
|
18388
18389
|
var LEFT_EMPTY = "you left this chat, and the store holds none of its messages";
|
|
18389
18390
|
var storedChatId = /* @__PURE__ */ __name((messenger, reference, store, account, { includeLeft = false } = {}) => {
|
|
18390
|
-
const
|
|
18391
|
+
const renamed2 = /* @__PURE__ */ __name((id2) => store.chats.renamedChatId(account, id2), "renamed");
|
|
18391
18392
|
const profilesOn = profilesOnAccount(store, messenger.app?.command, account.provider);
|
|
18392
18393
|
const among = chatIdAmong(messenger, reference, account, {
|
|
18393
18394
|
held: /* @__PURE__ */ __name(() => store.chats.chats(account, {}), "held"),
|
|
18394
|
-
renamed,
|
|
18395
|
+
renamed: renamed2,
|
|
18395
18396
|
left: /* @__PURE__ */ __name(async (id2) => leftIn(await store.chats.chats(account, byId(id2))), "left"),
|
|
18396
18397
|
profilesOn
|
|
18397
18398
|
});
|
|
@@ -18402,17 +18403,17 @@ var storedChatId = /* @__PURE__ */ __name((messenger, reference, store, account,
|
|
|
18402
18403
|
throw error;
|
|
18403
18404
|
return chatIdAmong(messenger, reference, account, {
|
|
18404
18405
|
held: /* @__PURE__ */ __name(() => store.chats.chats(account, { includeLeft: true }), "held"),
|
|
18405
|
-
renamed,
|
|
18406
|
+
renamed: renamed2,
|
|
18406
18407
|
profilesOn
|
|
18407
18408
|
});
|
|
18408
18409
|
});
|
|
18409
18410
|
}, "storedChatId");
|
|
18410
18411
|
var keptChatId = /* @__PURE__ */ __name((messenger, reference, store, account) => storedChatId(messenger, reference, store, account, { includeLeft: true }), "keptChatId");
|
|
18411
18412
|
var chatIdIn = /* @__PURE__ */ __name((messenger, reference, store, { includeLeft = false } = {}) => {
|
|
18412
|
-
const
|
|
18413
|
+
const renamed2 = /* @__PURE__ */ __name((id2) => store.chats.renamedChatId(id2), "renamed");
|
|
18413
18414
|
const among = chatIdAmong(messenger, reference, store.account, {
|
|
18414
18415
|
held: /* @__PURE__ */ __name(() => store.chats.chats({}), "held"),
|
|
18415
|
-
renamed,
|
|
18416
|
+
renamed: renamed2,
|
|
18416
18417
|
left: /* @__PURE__ */ __name(async (id2) => leftIn(await store.chats.chats(byId(id2))), "left")
|
|
18417
18418
|
});
|
|
18418
18419
|
if (!includeLeft)
|
|
@@ -18422,7 +18423,7 @@ var chatIdIn = /* @__PURE__ */ __name((messenger, reference, store, { includeLef
|
|
|
18422
18423
|
throw error;
|
|
18423
18424
|
return chatIdAmong(messenger, reference, store.account, {
|
|
18424
18425
|
held: /* @__PURE__ */ __name(() => store.chats.chats({ includeLeft: true }), "held"),
|
|
18425
|
-
renamed
|
|
18426
|
+
renamed: renamed2
|
|
18426
18427
|
});
|
|
18427
18428
|
});
|
|
18428
18429
|
}, "chatIdIn");
|
|
@@ -18437,7 +18438,7 @@ var profilesOnAccount = /* @__PURE__ */ __name((store, app, provider) => async (
|
|
|
18437
18438
|
return void 0;
|
|
18438
18439
|
return Object.entries((await store.accounts.profiles())[app] ?? {}).filter(([, key]) => key.provider === provider && key.account === account).map(([name]) => name);
|
|
18439
18440
|
}, "profilesOnAccount");
|
|
18440
|
-
var chatIdAmong = /* @__PURE__ */ __name(async (messenger, reference, account, { held, renamed, left, profilesOn }) => {
|
|
18441
|
+
var chatIdAmong = /* @__PURE__ */ __name(async (messenger, reference, account, { held, renamed: renamed2, left, profilesOn }) => {
|
|
18441
18442
|
const trimmed = reference.trim();
|
|
18442
18443
|
if (messenger.savedChatId && ["me", "self", "saved"].includes(trimmed.toLowerCase())) {
|
|
18443
18444
|
return messenger.savedChatId(account);
|
|
@@ -18447,7 +18448,7 @@ var chatIdAmong = /* @__PURE__ */ __name(async (messenger, reference, account, {
|
|
|
18447
18448
|
await ensureAccount(named2, { account: account.account }, profilesOn);
|
|
18448
18449
|
if (named2 || /^-?\d+$/.test(trimmed)) {
|
|
18449
18450
|
const typed = named2?.chat ?? trimmed;
|
|
18450
|
-
const id2 = await
|
|
18451
|
+
const id2 = await renamed2(typed) ?? typed;
|
|
18451
18452
|
if (await left?.(id2))
|
|
18452
18453
|
throw new CliError("not_found", `you left chat ${id2}`);
|
|
18453
18454
|
return id2;
|
|
@@ -18456,7 +18457,7 @@ var chatIdAmong = /* @__PURE__ */ __name(async (messenger, reference, account, {
|
|
|
18456
18457
|
const exact = chats.find((one) => one.id === trimmed);
|
|
18457
18458
|
if (exact)
|
|
18458
18459
|
return exact.id;
|
|
18459
|
-
const moved = await
|
|
18460
|
+
const moved = await renamed2(trimmed);
|
|
18460
18461
|
if (moved !== void 0 && chats.some((one) => one.id === moved))
|
|
18461
18462
|
return moved;
|
|
18462
18463
|
if (trimmed.startsWith("@")) {
|
|
@@ -18528,7 +18529,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18528
18529
|
}
|
|
18529
18530
|
}, "senderAmong");
|
|
18530
18531
|
|
|
18531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18532
18533
|
var CONTEXT_MESSAGES = 3;
|
|
18533
18534
|
var CONTEXT_MINUTES = 10;
|
|
18534
18535
|
var MAX_CHARS = 1200;
|
|
@@ -18552,12 +18553,12 @@ var context = {
|
|
|
18552
18553
|
}, "describe")
|
|
18553
18554
|
};
|
|
18554
18555
|
|
|
18555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18556
18557
|
var BUILT_INS = [context];
|
|
18557
18558
|
var providers = [...BUILT_INS];
|
|
18558
18559
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18559
18560
|
|
|
18560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18561
18562
|
var READ_PAGE = 5e3;
|
|
18562
18563
|
var CHAIN = 50;
|
|
18563
18564
|
var CONVERSATION_QUERY = {
|
|
@@ -18709,7 +18710,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18709
18710
|
return size2;
|
|
18710
18711
|
}, "sized");
|
|
18711
18712
|
|
|
18712
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18713
18714
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18714
18715
|
var MESSAGE_PAGE = 5e3;
|
|
18715
18716
|
var PER_SESSION = 8;
|
|
@@ -18728,7 +18729,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18728
18729
|
price: remote.price,
|
|
18729
18730
|
installed: true,
|
|
18730
18731
|
perBatch: PER_REQUEST * concurrency,
|
|
18731
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18732
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-N6VAWJWE.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18732
18733
|
};
|
|
18733
18734
|
}
|
|
18734
18735
|
const model = textModel(choice);
|
|
@@ -18745,7 +18746,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18745
18746
|
if (!isTextModelInstalled(model, directory2))
|
|
18746
18747
|
throw notDownloaded(model.id);
|
|
18747
18748
|
if (apart) {
|
|
18748
|
-
const { openProcess } = await import("./process-
|
|
18749
|
+
const { openProcess } = await import("./process-SWPJGPQC.js");
|
|
18749
18750
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18750
18751
|
}
|
|
18751
18752
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19034,7 +19035,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19034
19035
|
return { ...one, state };
|
|
19035
19036
|
}, "shaped");
|
|
19036
19037
|
|
|
19037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19038
19039
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19039
19040
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19040
19041
|
for (const [key, value, maximum] of [
|
|
@@ -19087,7 +19088,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19087
19088
|
}
|
|
19088
19089
|
}, "catchUpSearch");
|
|
19089
19090
|
|
|
19090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19091
19092
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19092
19093
|
if (deps.reads === "store") {
|
|
19093
19094
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19453,7 +19454,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19453
19454
|
return message?.timestamp ?? fallback;
|
|
19454
19455
|
}, "timeOfKey");
|
|
19455
19456
|
|
|
19456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
19457
19458
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
19458
19459
|
import { open, stat } from "node:fs/promises";
|
|
19459
19460
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -19655,7 +19656,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
19655
19656
|
return { name, source };
|
|
19656
19657
|
}, "readStickerFile");
|
|
19657
19658
|
|
|
19658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19659
19660
|
var DAY_MS = 864e5;
|
|
19660
19661
|
var NEW_DAYS = 30;
|
|
19661
19662
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19732,7 +19733,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19732
19733
|
};
|
|
19733
19734
|
}, "scorePerson");
|
|
19734
19735
|
|
|
19735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19736
19737
|
var REGISTRIES = {
|
|
19737
19738
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19738
19739
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19817,7 +19818,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19817
19818
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19818
19819
|
})), "notCovered");
|
|
19819
19820
|
|
|
19820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19821
19822
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19822
19823
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19823
19824
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19905,7 +19906,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19905
19906
|
};
|
|
19906
19907
|
}, "botCheckService");
|
|
19907
19908
|
|
|
19908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19909
19910
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19910
19911
|
if (value === void 0)
|
|
19911
19912
|
return void 0;
|
|
@@ -19915,7 +19916,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19915
19916
|
return id2;
|
|
19916
19917
|
}, "threadIdOf");
|
|
19917
19918
|
|
|
19918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19919
19920
|
var TOP_POSTS = 5;
|
|
19920
19921
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19921
19922
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20032,7 +20033,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20032
20033
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20033
20034
|
}, "median");
|
|
20034
20035
|
|
|
20035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20036
20037
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20037
20038
|
const events = [];
|
|
20038
20039
|
for (const stay of stays) {
|
|
@@ -20064,7 +20065,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20064
20065
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20065
20066
|
}, "memberEvents");
|
|
20066
20067
|
|
|
20067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20068
20069
|
var EVENTS_DAYS = 7;
|
|
20069
20070
|
var TRACKED_DAYS = 30;
|
|
20070
20071
|
var STATS_PAGE = 1e3;
|
|
@@ -20359,7 +20360,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20359
20360
|
return members.length === 0 ? null : members;
|
|
20360
20361
|
}, "storedMembers");
|
|
20361
20362
|
|
|
20362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20363
20364
|
var INBOX_CHATS = 20;
|
|
20364
20365
|
var REVIEW_DAYS = 3;
|
|
20365
20366
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20567,7 +20568,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20567
20568
|
};
|
|
20568
20569
|
}, "inboxService");
|
|
20569
20570
|
|
|
20570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20571
20572
|
var CONTEXT_MESSAGES2 = 10;
|
|
20572
20573
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20573
20574
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20828,10 +20829,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20828
20829
|
};
|
|
20829
20830
|
}, "personMessages");
|
|
20830
20831
|
|
|
20831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20832
20833
|
import { createHash } from "node:crypto";
|
|
20833
20834
|
|
|
20834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20835
20836
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20836
20837
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20837
20838
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20849,7 +20850,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20849
20850
|
return { parsed, meeting };
|
|
20850
20851
|
}, "authorizedMeetingMetadata");
|
|
20851
20852
|
|
|
20852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20853
20854
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20854
20855
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20855
20856
|
if (signal?.aborted)
|
|
@@ -21048,7 +21049,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21048
21049
|
return { ...packet, fingerprint: hash(packet) };
|
|
21049
21050
|
}, "readMeetingEvidence");
|
|
21050
21051
|
|
|
21051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21052
21053
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21053
21054
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21054
21055
|
const requestedAccounts = options.accountIds;
|
|
@@ -21147,7 +21148,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21147
21148
|
};
|
|
21148
21149
|
}, "personMeetingContext");
|
|
21149
21150
|
|
|
21150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21151
21152
|
var PREPARE_BYTES = 96 * 1024;
|
|
21152
21153
|
var MEETINGS = 5;
|
|
21153
21154
|
var CUES = 3;
|
|
@@ -21264,7 +21265,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21264
21265
|
}
|
|
21265
21266
|
}, "meetingsOf");
|
|
21266
21267
|
|
|
21267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21268
21269
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21269
21270
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21270
21271
|
const held = await storeIfOpen(deps);
|
|
@@ -21334,7 +21335,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21334
21335
|
complete: false
|
|
21335
21336
|
})), "quiet");
|
|
21336
21337
|
|
|
21337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21338
21339
|
var TIMELINE_ITEMS = 50;
|
|
21339
21340
|
var TIMELINE_MAX = 500;
|
|
21340
21341
|
var SCOPES = ["personal", "work"];
|
|
@@ -21389,7 +21390,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21389
21390
|
};
|
|
21390
21391
|
}, "personTimeline");
|
|
21391
21392
|
|
|
21392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21393
21394
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21394
21395
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21395
21396
|
const held = await storeIfOpen(deps);
|
|
@@ -21616,7 +21617,110 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21616
21617
|
return rest;
|
|
21617
21618
|
}, "withoutPhone");
|
|
21618
21619
|
|
|
21619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21620
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21621
|
+
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21622
|
+
var PERIOD_FIELD = "created";
|
|
21623
|
+
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
21624
|
+
if (node.kind === "predicate")
|
|
21625
|
+
return;
|
|
21626
|
+
const optional2 = node.clauses.some(({ occur }) => occur === "should");
|
|
21627
|
+
for (const { occur, node: inner } of node.clauses) {
|
|
21628
|
+
if (!walkQuery(inner).some(({ field }) => field === PERIOD_FIELD))
|
|
21629
|
+
continue;
|
|
21630
|
+
if (!top || optional2 || occur !== "must")
|
|
21631
|
+
throw new CliError("validation_error", `${PERIOD_FIELD}: sets the period of stats tasks show: give it as a required term, not inside OR or NOT`);
|
|
21632
|
+
refuseNestedPeriod(inner, top);
|
|
21633
|
+
}
|
|
21634
|
+
}, "refuseNestedPeriod");
|
|
21635
|
+
var renamed = /* @__PURE__ */ __name((node, from, to) => node.kind === "predicate" ? node.field === from ? { ...node, field: to } : node : { ...node, clauses: node.clauses.map((clause) => ({ ...clause, node: renamed(clause.node, from, to) })) }, "renamed");
|
|
21636
|
+
var median2 = /* @__PURE__ */ __name((values) => {
|
|
21637
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
21638
|
+
const middle = Math.floor(sorted.length / 2);
|
|
21639
|
+
const upper = sorted[middle] ?? 0;
|
|
21640
|
+
return sorted.length % 2 === 1 ? upper : ((sorted[middle - 1] ?? 0) + upper) / 2;
|
|
21641
|
+
}, "median");
|
|
21642
|
+
var mean = /* @__PURE__ */ __name((values) => Math.round(values.reduce((sum2, one) => sum2 + one, 0) / values.length), "mean");
|
|
21643
|
+
var spread = /* @__PURE__ */ __name((open7, closeMs, now) => ({
|
|
21644
|
+
...closeMs.length > 0 ? { medianCloseMs: median2(closeMs) } : {},
|
|
21645
|
+
...open7.length > 0 ? { meanOpenAgeMs: mean(open7.map(({ createdAt }) => now - createdAt)) } : {}
|
|
21646
|
+
}), "spread");
|
|
21647
|
+
var and = /* @__PURE__ */ __name((parts) => parts.length === 0 ? void 0 : { sql: parts.map(({ sql }) => `(${sql})`).join(" AND "), params: parts.flatMap(({ params }) => params) }, "and");
|
|
21648
|
+
var taskStatsOf = /* @__PURE__ */ __name(async (store, account, { by = "chat", query, timezone, group, kind }, columns, now = Date.now()) => {
|
|
21649
|
+
if (query)
|
|
21650
|
+
refuseNestedPeriod(query.root);
|
|
21651
|
+
const time = /* @__PURE__ */ __name((sql) => ({ type: "time", sql }), "time");
|
|
21652
|
+
const read = { ...columns, [PERIOD_FIELD]: time("t.created_at"), closed: time("t.closed_at") };
|
|
21653
|
+
const fixed = [
|
|
21654
|
+
...group === void 0 ? [] : [{ sql: "t.source_group = ?", params: [group] }],
|
|
21655
|
+
...kind === void 0 ? [] : [{ sql: "t.type = ?", params: [kind] }],
|
|
21656
|
+
...by === "meeting" ? [{ sql: "t.source_kind = 'meeting'", params: [] }] : []
|
|
21657
|
+
];
|
|
21658
|
+
const options = { command: "stats tasks show", now, ...timezone === void 0 ? {} : { zone: timezone } };
|
|
21659
|
+
const where = /* @__PURE__ */ __name((ast, more = []) => and([...fixed, ...more, ...ast ? [queryFilter(ast, read, options)] : []]), "where");
|
|
21660
|
+
const scope = by === "project" ? { board: true } : { account: taskAccount(account) };
|
|
21661
|
+
const all = await store.tasks.statRows(scope, where(withoutField(query, PERIOD_FIELD)));
|
|
21662
|
+
const created = await store.tasks.statRows(scope, where(query));
|
|
21663
|
+
const closed = await store.tasks.statRows(scope, where(query && { ...query, root: renamed(query.root, PERIOD_FIELD, "closed") }, [
|
|
21664
|
+
{ sql: "t.closed_at IS NOT NULL", params: [] }
|
|
21665
|
+
]));
|
|
21666
|
+
const keyOf5 = /* @__PURE__ */ __name((row) => by === "project" ? String(row.projectId) : row.group ?? "", "keyOf");
|
|
21667
|
+
const groups = /* @__PURE__ */ new Map();
|
|
21668
|
+
const slot = /* @__PURE__ */ __name((row) => {
|
|
21669
|
+
const key = keyOf5(row);
|
|
21670
|
+
const found = groups.get(key) ?? { open: [], created: 0, closeMs: [] };
|
|
21671
|
+
groups.set(key, found);
|
|
21672
|
+
return found;
|
|
21673
|
+
}, "slot");
|
|
21674
|
+
for (const row of all)
|
|
21675
|
+
if (!isClosedState(row.state))
|
|
21676
|
+
slot(row).open.push(row);
|
|
21677
|
+
for (const row of created)
|
|
21678
|
+
slot(row).created++;
|
|
21679
|
+
for (const row of closed)
|
|
21680
|
+
slot(row).closeMs.push((row.closedAt ?? row.createdAt) - row.createdAt);
|
|
21681
|
+
const kept2 = [...groups].filter(([, one]) => one.open.length + one.created + one.closeMs.length > 0);
|
|
21682
|
+
const ids = kept2.map(([key]) => key);
|
|
21683
|
+
const names2 = by === "chat" ? await store.tasks.statNames("chat", ids, taskAccount(account)) : by === "project" ? await store.tasks.statNames("project", ids) : await meetingNames(store, ids);
|
|
21684
|
+
const rows = kept2.map(([key, one]) => ({
|
|
21685
|
+
group: key,
|
|
21686
|
+
name: names2.get(key) ?? null,
|
|
21687
|
+
open: one.open.length,
|
|
21688
|
+
created: one.created,
|
|
21689
|
+
closed: one.closeMs.length,
|
|
21690
|
+
...one.open[0] ? { oldestOpenAt: new Date(one.open[0].createdAt) } : {},
|
|
21691
|
+
...spread(one.open, one.closeMs, now)
|
|
21692
|
+
}));
|
|
21693
|
+
const open7 = kept2.flatMap(([, one]) => one.open);
|
|
21694
|
+
const closeMs = kept2.flatMap(([, one]) => one.closeMs);
|
|
21695
|
+
return {
|
|
21696
|
+
by,
|
|
21697
|
+
open: open7.length,
|
|
21698
|
+
created: created.length,
|
|
21699
|
+
closed: closeMs.length,
|
|
21700
|
+
...spread(open7, closeMs, now),
|
|
21701
|
+
rows
|
|
21702
|
+
};
|
|
21703
|
+
}, "taskStatsOf");
|
|
21704
|
+
var meetingIdOf = /* @__PURE__ */ __name((group) => {
|
|
21705
|
+
try {
|
|
21706
|
+
return String(parseMeetingReference(group).meetingId);
|
|
21707
|
+
} catch {
|
|
21708
|
+
return void 0;
|
|
21709
|
+
}
|
|
21710
|
+
}, "meetingIdOf");
|
|
21711
|
+
var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
21712
|
+
const meetingOf = new Map(groups.flatMap((group) => {
|
|
21713
|
+
const id2 = meetingIdOf(group);
|
|
21714
|
+
return id2 === void 0 ? [] : [[group, id2]];
|
|
21715
|
+
}));
|
|
21716
|
+
const titles = await store.tasks.statNames("meeting", [...new Set(meetingOf.values())]);
|
|
21717
|
+
return new Map([...meetingOf].flatMap(([group, id2]) => {
|
|
21718
|
+
const title = titles.get(id2);
|
|
21719
|
+
return title === void 0 ? [] : [[group, title]];
|
|
21720
|
+
}));
|
|
21721
|
+
}, "meetingNames");
|
|
21722
|
+
|
|
21723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21620
21724
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21621
21725
|
const tags = /* @__PURE__ */ new Map();
|
|
21622
21726
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21625,7 +21729,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21625
21729
|
return tags;
|
|
21626
21730
|
}, "taskTagFilters");
|
|
21627
21731
|
|
|
21628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21629
21733
|
var TASK_QUERY = {
|
|
21630
21734
|
entity: "task",
|
|
21631
21735
|
backend: "sql",
|
|
@@ -21656,6 +21760,20 @@ var TASK_QUERY = {
|
|
|
21656
21760
|
}
|
|
21657
21761
|
})
|
|
21658
21762
|
};
|
|
21763
|
+
var TASK_STATS_QUERY = {
|
|
21764
|
+
entity: "task",
|
|
21765
|
+
backend: "sql",
|
|
21766
|
+
fields: [
|
|
21767
|
+
...TASK_QUERY.fields.filter(({ name }) => name !== "created_at" && name !== "closed_at"),
|
|
21768
|
+
{
|
|
21769
|
+
name: PERIOD_FIELD,
|
|
21770
|
+
type: "time",
|
|
21771
|
+
operators: OPERATORS_BY_TYPE.time,
|
|
21772
|
+
example: `${PERIOD_FIELD}>=30d`,
|
|
21773
|
+
relation: "the period: created counts the tasks opened in it, closed the tasks done or dismissed in it; open is open now"
|
|
21774
|
+
}
|
|
21775
|
+
]
|
|
21776
|
+
};
|
|
21659
21777
|
var PAIR_DECISIONS = ["review", "unsure"];
|
|
21660
21778
|
var TASK_PAIR_QUERY = {
|
|
21661
21779
|
entity: "task_pair",
|
|
@@ -21742,6 +21860,13 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
21742
21860
|
const inStore = /* @__PURE__ */ __name(async (work) => work(await deps.store(), await deps.account()), "inStore");
|
|
21743
21861
|
const service = /* @__PURE__ */ __name((store) => createTaskService({ store: store.tasks }), "service");
|
|
21744
21862
|
const groupOf = /* @__PURE__ */ __name(async (store, account, chat) => chat === void 0 ? void 0 : storedChatId(deps.messenger, chat, store, account, { includeLeft: true }), "groupOf");
|
|
21863
|
+
const queryColumns = /* @__PURE__ */ __name(async (store, account, query) => {
|
|
21864
|
+
const groups = /* @__PURE__ */ new Map();
|
|
21865
|
+
for (const node of query ? walkQuery(query.root) : [])
|
|
21866
|
+
if (node.field === "chat" && node.operator !== "wildcard" && !groups.has(node.value))
|
|
21867
|
+
groups.set(node.value, await storedChatId(deps.messenger, node.value, store, account, { includeLeft: true }));
|
|
21868
|
+
return taskColumns(groups, await taskTagFilters(store, query));
|
|
21869
|
+
}, "queryColumns");
|
|
21745
21870
|
const refuseBare = /* @__PURE__ */ __name((target2) => {
|
|
21746
21871
|
throw new CliError("validation_error", `no task ${singleLine(target2)} \u2014 write task:${singleLine(target2)} for a task`);
|
|
21747
21872
|
}, "refuseBare");
|
|
@@ -21796,12 +21921,7 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
21796
21921
|
const reviewAfterLink = /* @__PURE__ */ __name(async (store, id2) => !isClosedState((await store.tasks.get(id2))?.state ?? "done") ? store.tasks.reviewDuplicates(id2, { linked: true }) : 0, "reviewAfterLink");
|
|
21797
21922
|
return {
|
|
21798
21923
|
list: /* @__PURE__ */ __name(({ query, limit, offset, previews }) => inStore(async (store, account) => {
|
|
21799
|
-
const
|
|
21800
|
-
for (const node of query ? walkQuery(query.root) : [])
|
|
21801
|
-
if (node.field === "chat" && node.operator !== "wildcard" && !groups.has(node.value))
|
|
21802
|
-
groups.set(node.value, await storedChatId(deps.messenger, node.value, store, account, { includeLeft: true }));
|
|
21803
|
-
const tags = await taskTagFilters(store, query);
|
|
21804
|
-
const where = query ? queryFilter(query, taskColumns(groups, tags), { command: "tasks list" }) : void 0;
|
|
21924
|
+
const where = query ? queryFilter(query, await queryColumns(store, account, query), { command: "tasks list" }) : void 0;
|
|
21805
21925
|
const rows = await store.tasks.query(taskAccount(account), where, { limit: limit + 1, offset });
|
|
21806
21926
|
const shown = rows.slice(0, limit);
|
|
21807
21927
|
return {
|
|
@@ -22048,13 +22168,9 @@ var tasksService = /* @__PURE__ */ __name((deps, categories) => {
|
|
|
22048
22168
|
await owned(store, account, subject);
|
|
22049
22169
|
return store.tasks.similar({ task: subject }, options);
|
|
22050
22170
|
}), "similar"),
|
|
22051
|
-
stats: /* @__PURE__ */ __name((
|
|
22052
|
-
const group = await groupOf(store, account,
|
|
22053
|
-
|
|
22054
|
-
account: taskAccount(account),
|
|
22055
|
-
...filter.type === void 0 ? {} : { kind: filter.type }
|
|
22056
|
-
});
|
|
22057
|
-
return group === void 0 ? rows : rows.filter((one) => one.group === group);
|
|
22171
|
+
stats: /* @__PURE__ */ __name(({ chat, ...request } = {}) => inStore(async (store, account) => {
|
|
22172
|
+
const group = await groupOf(store, account, chat);
|
|
22173
|
+
return taskStatsOf(store, account, { ...request, ...group === void 0 ? {} : { group } }, await queryColumns(store, account, request.query));
|
|
22058
22174
|
}), "stats")
|
|
22059
22175
|
};
|
|
22060
22176
|
}, "tasksService");
|
|
@@ -22105,7 +22221,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22105
22221
|
};
|
|
22106
22222
|
}, "taskView");
|
|
22107
22223
|
|
|
22108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22109
22225
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22110
22226
|
if (newest === null)
|
|
22111
22227
|
return null;
|
|
@@ -22114,7 +22230,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22114
22230
|
return newest.addressed ? "owed" : null;
|
|
22115
22231
|
}, "mailTurn");
|
|
22116
22232
|
|
|
22117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22118
22234
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22119
22235
|
if (error instanceof CliError && error.code === "not_found")
|
|
22120
22236
|
return void 0;
|
|
@@ -22172,7 +22288,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22172
22288
|
};
|
|
22173
22289
|
}, "mailActivity");
|
|
22174
22290
|
|
|
22175
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22176
22292
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22177
22293
|
const ids = [...new Set(chatIds)];
|
|
22178
22294
|
if (ids.length === 0)
|
|
@@ -22198,7 +22314,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22198
22314
|
}));
|
|
22199
22315
|
}, "chatCoverage");
|
|
22200
22316
|
|
|
22201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22202
22318
|
var DAY = 864e5;
|
|
22203
22319
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22204
22320
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22445,7 +22561,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22445
22561
|
};
|
|
22446
22562
|
}, "agendaItem");
|
|
22447
22563
|
|
|
22448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22449
22565
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22450
22566
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22451
22567
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22509,7 +22625,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22509
22625
|
}
|
|
22510
22626
|
}, "validateContextEvidencePage");
|
|
22511
22627
|
|
|
22512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22513
22629
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22514
22630
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22515
22631
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22562,7 +22678,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22562
22678
|
};
|
|
22563
22679
|
}, "contextReadBudget");
|
|
22564
22680
|
|
|
22565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22566
22682
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22567
22683
|
if (!port || typeof port.read !== "function")
|
|
22568
22684
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22606,7 +22722,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22606
22722
|
};
|
|
22607
22723
|
}, "createContextEvidenceReader");
|
|
22608
22724
|
|
|
22609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22610
22726
|
var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
|
|
22611
22727
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22612
22728
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22622,7 +22738,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22622
22738
|
}, "excerpt");
|
|
22623
22739
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22624
22740
|
|
|
22625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22626
22742
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22627
22743
|
var DEFAULT_PURPOSES = ["work"];
|
|
22628
22744
|
var LINK_PURPOSE = "work";
|
|
@@ -22652,7 +22768,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22652
22768
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22653
22769
|
], "purposeList");
|
|
22654
22770
|
|
|
22655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22656
22772
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22657
22773
|
async around(ref, window3) {
|
|
22658
22774
|
const at = parseLocator(ref);
|
|
@@ -22747,7 +22863,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22747
22863
|
};
|
|
22748
22864
|
}, "storedNeighbours");
|
|
22749
22865
|
|
|
22750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22751
22867
|
import { createHash as createHash2 } from "node:crypto";
|
|
22752
22868
|
var DAY2 = 864e5;
|
|
22753
22869
|
var MAX_TIME = 864e13;
|
|
@@ -23063,7 +23179,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23063
23179
|
return value;
|
|
23064
23180
|
}, "decodeCheckpoint");
|
|
23065
23181
|
|
|
23066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23067
23183
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23068
23184
|
var PAGE2 = 20;
|
|
23069
23185
|
var PEOPLE = 20;
|
|
@@ -23467,7 +23583,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23467
23583
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23468
23584
|
}, "peopleOf");
|
|
23469
23585
|
|
|
23470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23471
23587
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23472
23588
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23473
23589
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23511,7 +23627,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23511
23627
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23512
23628
|
}, "matchVocabularyTerms");
|
|
23513
23629
|
|
|
23514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23515
23631
|
var KINDS = ["project", "tag", "topic"];
|
|
23516
23632
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23517
23633
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23566,7 +23682,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23566
23682
|
};
|
|
23567
23683
|
}, "findEvidenceMentions");
|
|
23568
23684
|
|
|
23569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23570
23686
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23571
23687
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23572
23688
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23872,18 +23988,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23872
23988
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23873
23989
|
}, "purposeHintOf");
|
|
23874
23990
|
|
|
23875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
23876
23992
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
23877
23993
|
|
|
23878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
23879
23995
|
import { lstat } from "node:fs/promises";
|
|
23880
23996
|
|
|
23881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
23882
23998
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
23883
23999
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
23884
24000
|
import { join as join2 } from "node:path";
|
|
23885
24001
|
|
|
23886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
23887
24003
|
import { createHash as createHash3 } from "node:crypto";
|
|
23888
24004
|
var metadataLimit = 16384;
|
|
23889
24005
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -23943,7 +24059,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
23943
24059
|
}
|
|
23944
24060
|
}, "readPartialMetadata");
|
|
23945
24061
|
|
|
23946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
23947
24063
|
import { randomUUID } from "node:crypto";
|
|
23948
24064
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
23949
24065
|
import { join } from "node:path";
|
|
@@ -24035,7 +24151,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24035
24151
|
};
|
|
24036
24152
|
}, "partialWriter");
|
|
24037
24153
|
|
|
24038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24039
24155
|
var NativeRecordingPartialStore = class {
|
|
24040
24156
|
static {
|
|
24041
24157
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24142,12 +24258,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24142
24258
|
}
|
|
24143
24259
|
};
|
|
24144
24260
|
|
|
24145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24146
24262
|
import { createHash as createHash5 } from "node:crypto";
|
|
24147
24263
|
import { link as link2 } from "node:fs/promises";
|
|
24148
24264
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
24149
24265
|
|
|
24150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24266
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24151
24267
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24152
24268
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24153
24269
|
signal?.throwIfAborted();
|
|
@@ -24182,7 +24298,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24182
24298
|
signal?.throwIfAborted();
|
|
24183
24299
|
}, "commitPublication");
|
|
24184
24300
|
|
|
24185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24186
24302
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24187
24303
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24188
24304
|
import { join as join3 } from "node:path";
|
|
@@ -24255,7 +24371,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24255
24371
|
}
|
|
24256
24372
|
}, "writePublicationJournal");
|
|
24257
24373
|
|
|
24258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24259
24375
|
var NativeRecordingPublication = class {
|
|
24260
24376
|
static {
|
|
24261
24377
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24328,7 +24444,7 @@ var NativeRecordingPublication = class {
|
|
|
24328
24444
|
}
|
|
24329
24445
|
};
|
|
24330
24446
|
|
|
24331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24332
24448
|
import { createHash as createHash6 } from "node:crypto";
|
|
24333
24449
|
import { readdir } from "node:fs/promises";
|
|
24334
24450
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -24415,7 +24531,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24415
24531
|
beforePublish
|
|
24416
24532
|
}), "commitMediaEntry");
|
|
24417
24533
|
|
|
24418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24419
24535
|
var validator = '"media-completed-v1"';
|
|
24420
24536
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24421
24537
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24516,7 +24632,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24516
24632
|
return entry;
|
|
24517
24633
|
}, "archiveMediaFile");
|
|
24518
24634
|
|
|
24519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24520
24636
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24521
24637
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
24522
24638
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24583,7 +24699,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24583
24699
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24584
24700
|
}, "withMediaArchiveLocks");
|
|
24585
24701
|
|
|
24586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24587
24703
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24588
24704
|
if (value === void 0)
|
|
24589
24705
|
return void 0;
|
|
@@ -24736,7 +24852,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24736
24852
|
}, { create: true });
|
|
24737
24853
|
}, "archiveMedia");
|
|
24738
24854
|
|
|
24739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24740
24856
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24741
24857
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
24742
24858
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -24889,7 +25005,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
24889
25005
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
24890
25006
|
}, "moveMediaArchive");
|
|
24891
25007
|
|
|
24892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
24893
25009
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
24894
25010
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
24895
25011
|
}, "progress") }) => {
|
|
@@ -24912,7 +25028,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24912
25028
|
}
|
|
24913
25029
|
await nativeRuntime({ env, progress });
|
|
24914
25030
|
progress(`${model.id}: loading it once to check it works`);
|
|
24915
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25031
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-ASAE3H5I.js");
|
|
24916
25032
|
const embedder = await openEmbedder2(model, directory2);
|
|
24917
25033
|
try {
|
|
24918
25034
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -24933,7 +25049,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
24933
25049
|
}
|
|
24934
25050
|
await nativeRuntime({ env, progress });
|
|
24935
25051
|
progress(`${model.id}: loading it once to check it works`);
|
|
24936
|
-
const { openReranker } = await import("./rerank-
|
|
25052
|
+
const { openReranker } = await import("./rerank-XNAMC6FH.js");
|
|
24937
25053
|
const reranker = await openReranker(model, directory2);
|
|
24938
25054
|
try {
|
|
24939
25055
|
await reranker.score("check", ["check"]);
|
|
@@ -24951,7 +25067,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24951
25067
|
await installFiles(placedImage(model, directory2), { progress });
|
|
24952
25068
|
}
|
|
24953
25069
|
progress(`${model.id}: loading it once to check it works`);
|
|
24954
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25070
|
+
const { openPictureEmbedder } = await import("./embedder-QYDZRKBX.js");
|
|
24955
25071
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
24956
25072
|
try {
|
|
24957
25073
|
const vector = await embedder.embedQuery("check");
|
|
@@ -24963,7 +25079,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
24963
25079
|
return { model, directory: directory2 };
|
|
24964
25080
|
}, "downloadImageModel");
|
|
24965
25081
|
|
|
24966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
24967
25083
|
var MONEY_REQUEST = "money-request";
|
|
24968
25084
|
var MONEY_DONE = "money-done";
|
|
24969
25085
|
var PROMISE = "promise";
|
|
@@ -24997,10 +25113,10 @@ var MONEY_WORDS = [
|
|
|
24997
25113
|
}
|
|
24998
25114
|
];
|
|
24999
25115
|
|
|
25000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25001
25117
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25002
25118
|
|
|
25003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25004
25120
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25005
25121
|
var MONEY_DONE_FORMS = words([
|
|
25006
25122
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25040,7 +25156,7 @@ var PROMISE_FORMS = words([
|
|
|
25040
25156
|
"estar\xE1 listo"
|
|
25041
25157
|
]);
|
|
25042
25158
|
|
|
25043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25044
25160
|
var EXCERPT_CHARS = 80;
|
|
25045
25161
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25046
25162
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25062,7 +25178,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25062
25178
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25063
25179
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25064
25180
|
|
|
25065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25066
25182
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25067
25183
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25068
25184
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25142,7 +25258,7 @@ var amounts = {
|
|
|
25142
25258
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
25143
25259
|
};
|
|
25144
25260
|
|
|
25145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25146
25262
|
var children = {
|
|
25147
25263
|
id: "children",
|
|
25148
25264
|
version: 1,
|
|
@@ -25171,7 +25287,7 @@ var children = {
|
|
|
25171
25287
|
}, "read")
|
|
25172
25288
|
};
|
|
25173
25289
|
|
|
25174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25175
25291
|
var coverage = {
|
|
25176
25292
|
id: "coverage",
|
|
25177
25293
|
version: 1,
|
|
@@ -25200,7 +25316,7 @@ var coverage = {
|
|
|
25200
25316
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state !== "complete" && item2.data.beforeHeld ? [{ chat: item2.chat, weight: 3, why: "held in part" }] : []), "attention")
|
|
25201
25317
|
};
|
|
25202
25318
|
|
|
25203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/last-message.js
|
|
25204
25320
|
var lastMessage = {
|
|
25205
25321
|
id: "last-message",
|
|
25206
25322
|
version: 1,
|
|
@@ -25222,7 +25338,7 @@ var lastMessage = {
|
|
|
25222
25338
|
}, "read")
|
|
25223
25339
|
};
|
|
25224
25340
|
|
|
25225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25226
25342
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25227
25343
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25228
25344
|
signal: "payments",
|
|
@@ -25272,7 +25388,7 @@ var payments = {
|
|
|
25272
25388
|
}, "read")
|
|
25273
25389
|
};
|
|
25274
25390
|
|
|
25275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25276
25392
|
var PATTERNS_PER_CHAT = 3;
|
|
25277
25393
|
var DAY3 = 864e5;
|
|
25278
25394
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25361,7 +25477,7 @@ var promises = {
|
|
|
25361
25477
|
}, "read")
|
|
25362
25478
|
};
|
|
25363
25479
|
|
|
25364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25365
25481
|
var PER_SIDE = 5;
|
|
25366
25482
|
var WEEK = 7 * 864e5;
|
|
25367
25483
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25392,7 +25508,7 @@ var questions2 = {
|
|
|
25392
25508
|
}, "attention")
|
|
25393
25509
|
};
|
|
25394
25510
|
|
|
25395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25396
25512
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25397
25513
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25398
25514
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25460,7 +25576,7 @@ var replyNext = {
|
|
|
25460
25576
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25461
25577
|
};
|
|
25462
25578
|
|
|
25463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25464
25580
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25465
25581
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25466
25582
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25506,7 +25622,7 @@ var topics = {
|
|
|
25506
25622
|
}, "read")
|
|
25507
25623
|
};
|
|
25508
25624
|
|
|
25509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25510
25626
|
var STATUS_SIGNALS = [
|
|
25511
25627
|
lastMessage,
|
|
25512
25628
|
replyNext,
|
|
@@ -25519,7 +25635,7 @@ var STATUS_SIGNALS = [
|
|
|
25519
25635
|
children
|
|
25520
25636
|
];
|
|
25521
25637
|
|
|
25522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25523
25639
|
var DAY4 = 864e5;
|
|
25524
25640
|
var STATUS_WINDOW = 300;
|
|
25525
25641
|
var STATUS_CHATS = 16;
|
|
@@ -25701,7 +25817,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25701
25817
|
};
|
|
25702
25818
|
}, "projectStatus");
|
|
25703
25819
|
|
|
25704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25705
25821
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25706
25822
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25707
25823
|
if (deps.offline)
|
|
@@ -25773,7 +25889,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25773
25889
|
};
|
|
25774
25890
|
}, "accountService");
|
|
25775
25891
|
|
|
25776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25777
25893
|
var MINUTE = 6e4;
|
|
25778
25894
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25779
25895
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25792,7 +25908,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25792
25908
|
return new Date(at - at % MINUTE).toISOString();
|
|
25793
25909
|
}, "sendTime");
|
|
25794
25910
|
|
|
25795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25796
25912
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
25797
25913
|
try {
|
|
25798
25914
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26039,7 +26155,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26039
26155
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26040
26156
|
}, "linkLimits");
|
|
26041
26157
|
|
|
26042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26043
26159
|
var THREADS_PAGE = 500;
|
|
26044
26160
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26045
26161
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26118,7 +26234,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26118
26234
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26119
26235
|
}, "readMail");
|
|
26120
26236
|
|
|
26121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26122
26238
|
var NO_MAIL = "no_mail";
|
|
26123
26239
|
var MAIL = "email";
|
|
26124
26240
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26165,7 +26281,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26165
26281
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26166
26282
|
}, "accountsOfKind");
|
|
26167
26283
|
|
|
26168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26169
26285
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26170
26286
|
var positiveSources = /* @__PURE__ */ __name((node) => node.kind === "predicate" ? node.field === "in" ? [node.value.toLowerCase()] : [] : node.clauses.filter(({ occur }) => occur !== "must_not").flatMap(({ node: node2 }) => positiveSources(node2)), "positiveSources");
|
|
26171
26287
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26513,7 +26629,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26513
26629
|
};
|
|
26514
26630
|
}, "statsLucene");
|
|
26515
26631
|
|
|
26516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26517
26633
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26518
26634
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26519
26635
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26682,7 +26798,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26682
26798
|
};
|
|
26683
26799
|
}, "readRankingSelection");
|
|
26684
26800
|
|
|
26685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26686
26802
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
|
|
26687
26803
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26688
26804
|
command,
|
|
@@ -26692,7 +26808,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26692
26808
|
fieldsVersion: FIELD_VERSION
|
|
26693
26809
|
}), "searchRecordOf");
|
|
26694
26810
|
|
|
26695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26696
26812
|
function invalid2(message) {
|
|
26697
26813
|
throw new CliError("validation_error", message);
|
|
26698
26814
|
}
|
|
@@ -26986,7 +27102,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
26986
27102
|
}, "evidence")
|
|
26987
27103
|
}), "adminStatisticsService");
|
|
26988
27104
|
|
|
26989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
26990
27106
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
26991
27107
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
26992
27108
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27123,12 +27239,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27123
27239
|
return { plan, repair };
|
|
27124
27240
|
}, "gapsService");
|
|
27125
27241
|
|
|
27126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27127
27243
|
import { createHash as createHash9 } from "node:crypto";
|
|
27128
27244
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27129
27245
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27130
27246
|
|
|
27131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27132
27248
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27133
27249
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27134
27250
|
var MAX_FILES = 1e4;
|
|
@@ -27199,15 +27315,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27199
27315
|
return choices;
|
|
27200
27316
|
}, "directoryPaths");
|
|
27201
27317
|
|
|
27202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27203
27319
|
import { posix } from "node:path";
|
|
27204
27320
|
|
|
27205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27206
27322
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27207
27323
|
import { crc32 } from "node:zlib";
|
|
27208
27324
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27209
27325
|
|
|
27210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27211
27327
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27212
27328
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27213
27329
|
var SAMPLE = 65536;
|
|
@@ -27309,7 +27425,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27309
27425
|
return result.text;
|
|
27310
27426
|
}, "decodeXml");
|
|
27311
27427
|
|
|
27312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27313
27429
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27314
27430
|
var MAX_ENTRIES = 1e3;
|
|
27315
27431
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27524,7 +27640,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27524
27640
|
return found;
|
|
27525
27641
|
}, "elements");
|
|
27526
27642
|
|
|
27527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27528
27644
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27529
27645
|
let name = "";
|
|
27530
27646
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27579,7 +27695,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27579
27695
|
return { text: parts.join("").trim(), truncated: false };
|
|
27580
27696
|
}, "sheetText");
|
|
27581
27697
|
|
|
27582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27583
27699
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27584
27700
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27585
27701
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -27979,10 +28095,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
27979
28095
|
}
|
|
27980
28096
|
}, "readDocument");
|
|
27981
28097
|
|
|
27982
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27983
28099
|
import { extname as extname3 } from "node:path";
|
|
27984
28100
|
|
|
27985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
27986
28102
|
import { readFileSync } from "node:fs";
|
|
27987
28103
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
27988
28104
|
import { fileURLToPath } from "node:url";
|
|
@@ -28043,7 +28159,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
28043
28159
|
}
|
|
28044
28160
|
}, "derived");
|
|
28045
28161
|
|
|
28046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28047
28163
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28048
28164
|
var image2 = {
|
|
28049
28165
|
id: "image",
|
|
@@ -28052,7 +28168,7 @@ var image2 = {
|
|
|
28052
28168
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28053
28169
|
};
|
|
28054
28170
|
|
|
28055
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28056
28172
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28057
28173
|
var doc = {
|
|
28058
28174
|
id: "doc",
|
|
@@ -28064,7 +28180,7 @@ var doc = {
|
|
|
28064
28180
|
}), "read")
|
|
28065
28181
|
};
|
|
28066
28182
|
|
|
28067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28068
28184
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28069
28185
|
var docx = {
|
|
28070
28186
|
id: "docx",
|
|
@@ -28077,7 +28193,7 @@ var docx = {
|
|
|
28077
28193
|
}), "read")
|
|
28078
28194
|
};
|
|
28079
28195
|
|
|
28080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28081
28197
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28082
28198
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28083
28199
|
"fonttbl",
|
|
@@ -28253,7 +28369,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28253
28369
|
}, "htmlText");
|
|
28254
28370
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28255
28371
|
|
|
28256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28257
28373
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28258
28374
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28259
28375
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28309,7 +28425,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28309
28425
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28310
28426
|
}, "markdownSections");
|
|
28311
28427
|
|
|
28312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28313
28429
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28314
28430
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28315
28431
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28380,7 +28496,7 @@ var html = {
|
|
|
28380
28496
|
}, "read")
|
|
28381
28497
|
};
|
|
28382
28498
|
|
|
28383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28384
28500
|
var office = {
|
|
28385
28501
|
id: "office",
|
|
28386
28502
|
version: documentExtractor("odt"),
|
|
@@ -28391,7 +28507,7 @@ var office = {
|
|
|
28391
28507
|
}, "read")
|
|
28392
28508
|
};
|
|
28393
28509
|
|
|
28394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28395
28511
|
var pdf = {
|
|
28396
28512
|
id: "pdf",
|
|
28397
28513
|
version: "unpdf",
|
|
@@ -28458,7 +28574,7 @@ var pdf = {
|
|
|
28458
28574
|
}), "read")
|
|
28459
28575
|
};
|
|
28460
28576
|
|
|
28461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28462
28578
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28463
28579
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28464
28580
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28478,7 +28594,7 @@ var plain = {
|
|
|
28478
28594
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28479
28595
|
};
|
|
28480
28596
|
|
|
28481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28482
28598
|
var rtf = {
|
|
28483
28599
|
id: "rtf",
|
|
28484
28600
|
version: "v1",
|
|
@@ -28486,10 +28602,10 @@ var rtf = {
|
|
|
28486
28602
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28487
28603
|
};
|
|
28488
28604
|
|
|
28489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28490
28606
|
import { basename as basename5 } from "node:path";
|
|
28491
28607
|
|
|
28492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28493
28609
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28494
28610
|
const cells = [];
|
|
28495
28611
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28527,7 +28643,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28527
28643
|
return { cells, truncated };
|
|
28528
28644
|
}, "delimitedSpans");
|
|
28529
28645
|
|
|
28530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28531
28647
|
var DELIMITED = {
|
|
28532
28648
|
".csv": ",",
|
|
28533
28649
|
".tsv": " ",
|
|
@@ -28566,7 +28682,7 @@ var sheets = {
|
|
|
28566
28682
|
}, "read")
|
|
28567
28683
|
};
|
|
28568
28684
|
|
|
28569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28570
28686
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28571
28687
|
var HEAD_BYTES = 1024;
|
|
28572
28688
|
var readers = [...BUILT_INS2];
|
|
@@ -28576,7 +28692,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28576
28692
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28577
28693
|
}, "readWithRegistry");
|
|
28578
28694
|
|
|
28579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28580
28696
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28581
28697
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28582
28698
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29655,7 +29771,7 @@ function imageSize(input) {
|
|
|
29655
29771
|
}
|
|
29656
29772
|
__name(imageSize, "imageSize");
|
|
29657
29773
|
|
|
29658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29659
29775
|
var MAX_PAGES = 20;
|
|
29660
29776
|
var MAX_PIXELS = 2e7;
|
|
29661
29777
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29806,7 +29922,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29806
29922
|
}
|
|
29807
29923
|
}, "ocrPdf");
|
|
29808
29924
|
|
|
29809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29810
29926
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29811
29927
|
const limits = pdfPreviewLimits(env);
|
|
29812
29928
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -29883,7 +29999,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29883
29999
|
}
|
|
29884
30000
|
}, "pdfPreview");
|
|
29885
30001
|
|
|
29886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29887
30003
|
import { createHash as createHash8 } from "node:crypto";
|
|
29888
30004
|
import { constants } from "node:fs";
|
|
29889
30005
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -29991,7 +30107,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
29991
30107
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
29992
30108
|
}, "transferMime");
|
|
29993
30109
|
|
|
29994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
29995
30111
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
29996
30112
|
import { link as link3, rm } from "node:fs/promises";
|
|
29997
30113
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30105,7 +30221,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30105
30221
|
}
|
|
30106
30222
|
}, "save");
|
|
30107
30223
|
|
|
30108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30109
30225
|
var ATTACHMENT_QUERY = {
|
|
30110
30226
|
entity: "attachment",
|
|
30111
30227
|
backend: "sql",
|
|
@@ -30528,7 +30644,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30528
30644
|
}, "setText")
|
|
30529
30645
|
}), "attachmentsService");
|
|
30530
30646
|
|
|
30531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30532
30648
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30533
30649
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30534
30650
|
const store = await accountStore(deps);
|
|
@@ -30558,7 +30674,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30558
30674
|
}, "list")
|
|
30559
30675
|
}), "chatDocumentsService");
|
|
30560
30676
|
|
|
30561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30562
30678
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30563
30679
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30564
30680
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30645,7 +30761,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30645
30761
|
}
|
|
30646
30762
|
}, "isRetentionSelection");
|
|
30647
30763
|
|
|
30648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30649
30765
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30650
30766
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30651
30767
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30852,7 +30968,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30852
30968
|
};
|
|
30853
30969
|
}, "countersService");
|
|
30854
30970
|
|
|
30855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30856
30972
|
var SYNC_KEY = "messages.sync-first";
|
|
30857
30973
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30858
30974
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30984,7 +31100,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30984
31100
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30985
31101
|
}), "withRefresh");
|
|
30986
31102
|
|
|
30987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30988
31104
|
var CANDIDATES = 50;
|
|
30989
31105
|
var WORD_HITS = 200;
|
|
30990
31106
|
var RRF_K = 60;
|
|
@@ -31250,22 +31366,22 @@ var searchReadiness = /* @__PURE__ */ __name((chats, meaning, outside) => {
|
|
|
31250
31366
|
};
|
|
31251
31367
|
}, "searchReadiness");
|
|
31252
31368
|
var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
31253
|
-
const
|
|
31369
|
+
const mean2 = new Float32Array(vectors[0]?.length ?? 0);
|
|
31254
31370
|
for (const vector of vectors) {
|
|
31255
|
-
for (let index = 0; index <
|
|
31256
|
-
|
|
31371
|
+
for (let index = 0; index < mean2.length; index++)
|
|
31372
|
+
mean2[index] = mean2[index] + vector[index];
|
|
31257
31373
|
}
|
|
31258
|
-
const length = Math.hypot(...
|
|
31259
|
-
return
|
|
31374
|
+
const length = Math.hypot(...mean2) || 1;
|
|
31375
|
+
return mean2.map((value) => value / length);
|
|
31260
31376
|
}, "meanOf");
|
|
31261
31377
|
|
|
31262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31263
31379
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31264
31380
|
...embeddingsMaintenance(deps),
|
|
31265
31381
|
...embeddingsSearch(deps)
|
|
31266
31382
|
}), "embeddingsService");
|
|
31267
31383
|
|
|
31268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31269
31385
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31270
31386
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31271
31387
|
if (deps.offline)
|
|
@@ -31406,7 +31522,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31406
31522
|
};
|
|
31407
31523
|
}, "foldersService");
|
|
31408
31524
|
|
|
31409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31410
31526
|
var REVIEW_COUNT = 500;
|
|
31411
31527
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31412
31528
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31485,7 +31601,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31485
31601
|
};
|
|
31486
31602
|
}, "mentionsService");
|
|
31487
31603
|
|
|
31488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31489
31605
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31490
31606
|
position,
|
|
31491
31607
|
kind,
|
|
@@ -31534,7 +31650,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31534
31650
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31535
31651
|
}, "validatePermalink");
|
|
31536
31652
|
|
|
31537
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31538
31654
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31539
31655
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31540
31656
|
return `${seconds / 86400}d`;
|
|
@@ -31566,7 +31682,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31566
31682
|
return seconds;
|
|
31567
31683
|
}, "pinDurationOf");
|
|
31568
31684
|
|
|
31569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31570
31686
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31571
31687
|
if (sendAs === void 0) {
|
|
31572
31688
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31591,7 +31707,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31591
31707
|
return sendAs;
|
|
31592
31708
|
}, "typedSendAs");
|
|
31593
31709
|
|
|
31594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31595
31711
|
var TOTAL_CAP = 1e4;
|
|
31596
31712
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31597
31713
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31602,7 +31718,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31602
31718
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31603
31719
|
}, "totalOf");
|
|
31604
31720
|
|
|
31605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31606
31722
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31607
31723
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31608
31724
|
let narrows = false;
|
|
@@ -31631,7 +31747,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31631
31747
|
return wanted(root).join(" ").trim();
|
|
31632
31748
|
}, "meaningWords");
|
|
31633
31749
|
|
|
31634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31635
31751
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31636
31752
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
31637
31753
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31745,8 +31861,25 @@ function planQuestion(text2, strict = false) {
|
|
|
31745
31861
|
return { changed: true, natural: true, queries, scope, terms, rankingTerms: original, removed, aliases: changes };
|
|
31746
31862
|
}
|
|
31747
31863
|
__name(planQuestion, "planQuestion");
|
|
31864
|
+
var questionText = /* @__PURE__ */ __name((text2) => text2.replace(new RegExp("(?<=\\p{L})\\?(?=\\s|$)", "gu"), "").replace(/"(?:[^"\\]|\\.)*"|(?<=\d):(?=\d)/gu, (found) => found === ":" ? " " : found), "questionText");
|
|
31865
|
+
var lookupTerms = /* @__PURE__ */ __name((plan) => [
|
|
31866
|
+
...new Set(plan.terms.concat(plan.aliases.flatMap((alias) => words2(alias.split(" -> ")[1] ?? ""))))
|
|
31867
|
+
], "lookupTerms");
|
|
31868
|
+
var anyOfTerms = /* @__PURE__ */ __name((terms, scope) => `(${terms.join(" OR ")})${scope ? ` ${scope}` : ""}`, "anyOfTerms");
|
|
31869
|
+
var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
31870
|
+
let plan;
|
|
31871
|
+
try {
|
|
31872
|
+
plan = planQuestion(questionText(text2));
|
|
31873
|
+
} catch (error) {
|
|
31874
|
+
if (error instanceof CliError)
|
|
31875
|
+
return void 0;
|
|
31876
|
+
throw error;
|
|
31877
|
+
}
|
|
31878
|
+
const terms = plan.changed ? lookupTerms(plan) : [];
|
|
31879
|
+
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31880
|
+
}, "questionLookup");
|
|
31748
31881
|
|
|
31749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31750
31883
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31751
31884
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31752
31885
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -31939,7 +32072,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31939
32072
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
31940
32073
|
}, "signals");
|
|
31941
32074
|
|
|
31942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31943
32076
|
var MEANING_DEPTH = 100;
|
|
31944
32077
|
var RRF_K2 = 60;
|
|
31945
32078
|
var RERANK_DEPTH = 50;
|
|
@@ -31961,10 +32094,7 @@ var EVERY_MESSAGE = {
|
|
|
31961
32094
|
upper_inclusive: true
|
|
31962
32095
|
};
|
|
31963
32096
|
var scopeOf2 = /* @__PURE__ */ __name((root) => root === void 0 ? {} : { ast: { version: 1, language: "lucene-v1", root } }, "scopeOf");
|
|
31964
|
-
var discoveryRequest = /* @__PURE__ */ __name((asked) => asked.ast !== void 0 || asked.exact || !asked.text ? asked : {
|
|
31965
|
-
...asked,
|
|
31966
|
-
text: asked.text.replace(new RegExp("(?<=\\p{L})\\?(?=\\s|$)", "gu"), "").replace(/"(?:[^"\\]|\\.)*"|(?<=\d):(?=\d)/gu, (found) => found === ":" ? " " : found)
|
|
31967
|
-
}, "discoveryRequest");
|
|
32097
|
+
var discoveryRequest = /* @__PURE__ */ __name((asked) => asked.ast !== void 0 || asked.exact || !asked.text ? asked : { ...asked, text: questionText(asked.text) }, "discoveryRequest");
|
|
31968
32098
|
var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messenger = {}, meaning, rerank) => {
|
|
31969
32099
|
const request = discoveryRequest(asked);
|
|
31970
32100
|
const original = await prepareLucene(store, account, request, messenger);
|
|
@@ -31978,7 +32108,7 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messe
|
|
|
31978
32108
|
const question = root === void 0 ? text2 : meaningWords(root);
|
|
31979
32109
|
if (!question)
|
|
31980
32110
|
return searchLucene(store, account, request, messenger);
|
|
31981
|
-
const terms = root === void 0 ?
|
|
32111
|
+
const terms = root === void 0 ? lookupTerms(plan) : [...new Set(words2(question))];
|
|
31982
32112
|
if (!terms.length)
|
|
31983
32113
|
return searchLucene(store, account, request, messenger);
|
|
31984
32114
|
if (terms.length > 64)
|
|
@@ -32015,7 +32145,7 @@ var searchDiscovery = /* @__PURE__ */ __name(async (store, account, asked, messe
|
|
|
32015
32145
|
truncated ||= found.hasMore || found.query.combined.truncated;
|
|
32016
32146
|
}
|
|
32017
32147
|
check2();
|
|
32018
|
-
const relaxed = root === void 0 ?
|
|
32148
|
+
const relaxed = root === void 0 ? anyOfTerms(terms, plan.scope) : text2;
|
|
32019
32149
|
const partialRequest = { ...request, text: relaxed, ast: void 0, limit: 300, context: 0, thread: void 0 };
|
|
32020
32150
|
const partial = await searchLucene(store, account, partialRequest, messenger);
|
|
32021
32151
|
add(partial.items);
|
|
@@ -32267,7 +32397,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32267
32397
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32268
32398
|
}, "mixedWithReranker");
|
|
32269
32399
|
|
|
32270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32271
32401
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32272
32402
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32273
32403
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32466,7 +32596,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32466
32596
|
return result;
|
|
32467
32597
|
}, "readThreadContext");
|
|
32468
32598
|
|
|
32469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32470
32600
|
var SEARCH_FILL_MS = 200;
|
|
32471
32601
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32472
32602
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32533,12 +32663,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32533
32663
|
}, "accountOf");
|
|
32534
32664
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32535
32665
|
|
|
32536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32537
32667
|
import { createHash as createHash10 } from "node:crypto";
|
|
32538
32668
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32539
32669
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32540
32670
|
|
|
32541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32542
32672
|
var GROUP_SETTINGS = [
|
|
32543
32673
|
"allCanPin",
|
|
32544
32674
|
"onlyAdminsAdd",
|
|
@@ -32552,7 +32682,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32552
32682
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32553
32683
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32554
32684
|
|
|
32555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32556
32686
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32557
32687
|
var PICTURE_FLOOR = 0.25;
|
|
32558
32688
|
var PAGE4 = 50;
|
|
@@ -32569,7 +32699,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32569
32699
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32570
32700
|
if (!isImageModelInstalled(model2, directory2))
|
|
32571
32701
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32572
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32702
|
+
const { openPictureEmbedder } = await import("./embedder-QYDZRKBX.js");
|
|
32573
32703
|
return openPictureEmbedder(model2, directory2);
|
|
32574
32704
|
}, "open");
|
|
32575
32705
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32766,7 +32896,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32766
32896
|
}, "search")
|
|
32767
32897
|
}), "withPictures");
|
|
32768
32898
|
|
|
32769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32770
32900
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32771
32901
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32772
32902
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32777,9 +32907,16 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32777
32907
|
const store = await deps.store();
|
|
32778
32908
|
const ready = [];
|
|
32779
32909
|
const without = [];
|
|
32780
|
-
|
|
32781
|
-
|
|
32782
|
-
|
|
32910
|
+
const mail = /* @__PURE__ */ new Map();
|
|
32911
|
+
const stored = await store.accounts.storedAccounts();
|
|
32912
|
+
for (const one of accounts) {
|
|
32913
|
+
const id2 = one.provider === "email" ? stored.find(({ provider, account }) => provider === one.provider && account === one.account)?.id : void 0;
|
|
32914
|
+
if (id2 !== void 0)
|
|
32915
|
+
mail.set(one, Number(id2));
|
|
32916
|
+
else
|
|
32917
|
+
(await store.vectors.hasMessageVectors(one, target2.key) ? ready : without).push(one);
|
|
32918
|
+
}
|
|
32919
|
+
if (ready.length === 0 && mail.size === 0)
|
|
32783
32920
|
return skipped("no message has a vector yet", "conversations.rebuild");
|
|
32784
32921
|
const words3 = plainWords(question);
|
|
32785
32922
|
try {
|
|
@@ -32797,12 +32934,24 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32797
32934
|
for (const { chatId, messageId, score } of near2)
|
|
32798
32935
|
ranked.push({ ...one, chatId, id: messageId, score });
|
|
32799
32936
|
}
|
|
32937
|
+
for (const [one, accountId] of mail) {
|
|
32938
|
+
const near2 = await store.mail.nearest(target2.key, query, {
|
|
32939
|
+
accountId,
|
|
32940
|
+
limit: MEANING_DEPTH
|
|
32941
|
+
});
|
|
32942
|
+
if (near2.length === 0)
|
|
32943
|
+
without.push(one);
|
|
32944
|
+
for (const { threadExternalId, externalId, score } of near2)
|
|
32945
|
+
ranked.push({ ...one, chatId: threadExternalId, id: externalId, score });
|
|
32946
|
+
}
|
|
32800
32947
|
}, "lookUp");
|
|
32801
32948
|
if (shared && !deps.embedders)
|
|
32802
32949
|
await lookUp(await shared.get(target2.key, () => target2.open()));
|
|
32803
32950
|
else
|
|
32804
32951
|
await withEmbedder(deps, target2, DEFAULT_TEXT_MODEL, {}, lookUp);
|
|
32805
32952
|
}
|
|
32953
|
+
if (ranked.length === 0 && without.length === accounts.length)
|
|
32954
|
+
return skipped("no message has a vector yet", "conversations.rebuild");
|
|
32806
32955
|
return {
|
|
32807
32956
|
model: target2.id,
|
|
32808
32957
|
ranked: ranked.sort((a, b) => b.score - a.score).slice(0, MEANING_DEPTH),
|
|
@@ -32815,7 +32964,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32815
32964
|
}
|
|
32816
32965
|
}, "meaningLane");
|
|
32817
32966
|
|
|
32818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32819
32968
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32820
32969
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32821
32970
|
if (choice === "off")
|
|
@@ -32827,9 +32976,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32827
32976
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32828
32977
|
try {
|
|
32829
32978
|
const warm = deps.embedders;
|
|
32830
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32979
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-SWPJGPQC.js")).openRerankerProcess(model, directory2, {
|
|
32831
32980
|
threads: defaultThreads()
|
|
32832
|
-
})) : await (await import("./rerank-
|
|
32981
|
+
})) : await (await import("./rerank-XNAMC6FH.js")).openReranker(model, directory2);
|
|
32833
32982
|
return {
|
|
32834
32983
|
model: model.id,
|
|
32835
32984
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32849,17 +32998,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32849
32998
|
};
|
|
32850
32999
|
}, "rerankLane");
|
|
32851
33000
|
|
|
32852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32853
33002
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
32854
33003
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
32855
33004
|
const directory2 = imageModelsDirectory(env);
|
|
32856
33005
|
if (!isImageModelInstalled(model, directory2))
|
|
32857
33006
|
throw new CliError("not_found", `the picture model is not downloaded \u2014 ${command === void 0 ? "install it with a WireCat CLI that has `images models download` (tg, max or wa); they share the model folder" : `\`${command} images models download ${model.id}\` fetches it`}`, { reason: "model.not-downloaded", model: model.id });
|
|
32858
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33007
|
+
const { openPictureEmbedder } = await import("./embedder-QYDZRKBX.js");
|
|
32859
33008
|
return openPictureEmbedder(model, directory2);
|
|
32860
33009
|
}, "openPictureEmbedderFor");
|
|
32861
33010
|
|
|
32862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
32863
33012
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
32864
33013
|
const metadata = note.frontMatter;
|
|
32865
33014
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -32874,7 +33023,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
32874
33023
|
};
|
|
32875
33024
|
}, "documentSource");
|
|
32876
33025
|
|
|
32877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
32878
33027
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
32879
33028
|
let root;
|
|
32880
33029
|
try {
|
|
@@ -32901,7 +33050,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
32901
33050
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
32902
33051
|
}, "titleTiers");
|
|
32903
33052
|
|
|
32904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
32905
33054
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
32906
33055
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
32907
33056
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33116,19 +33265,21 @@ var notesTotal = /* @__PURE__ */ __name(async (store, text2, { exact, scope, sho
|
|
|
33116
33265
|
const count4 = (/* @__PURE__ */ new Set([...words3.refs, ...others])).size + (words3.hasMore ? 1 : 0);
|
|
33117
33266
|
return totalOf(count4, shown, hasMore, othersComplete);
|
|
33118
33267
|
}, "notesTotal");
|
|
33119
|
-
var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, tag, filter: expression, folderIds, withInternal, source: given, exact = false, timezone, env, command, embedders, pictures: withPictures2 = false, pictureLimit = 5, pictureEmbedder } = {}) => {
|
|
33268
|
+
var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, tag, filter: expression, folderIds, withInternal, source: given, exact = false, discover = false, timezone, env, command, embedders, pictures: withPictures2 = false, pictureLimit = 5, pictureEmbedder } = {}) => {
|
|
33120
33269
|
const typed = noteSourceOfQuery(query);
|
|
33121
33270
|
const source = given ?? typed.source;
|
|
33122
33271
|
const rest = typed.source !== void 0 && typed.source === source ? typed.rest : query;
|
|
33123
33272
|
const label = tag === void 0 ? void 0 : normalizeTag(tag);
|
|
33124
33273
|
const filter = [expression ? `(${expression})` : "", label === void 0 ? "" : `tag:${label}`].filter(Boolean).join(" AND ") || void 0;
|
|
33125
|
-
const
|
|
33274
|
+
const lookup = discover && !exact ? questionLookup(query) : void 0;
|
|
33275
|
+
const parsed = query.trim() ? parsedQuery(lookup === void 0 ? query : questionText(query), exact) : void 0;
|
|
33126
33276
|
const words3 = parsed === void 0 ? "" : meaningWords(parsed);
|
|
33127
33277
|
const narrowing = allOf([
|
|
33128
33278
|
...parsed === void 0 ? [] : [fieldsOfQuery2(parsed)].filter((node) => node !== void 0),
|
|
33129
33279
|
...filter === void 0 ? [] : [parsedQuery(filter)]
|
|
33130
33280
|
]);
|
|
33131
|
-
const
|
|
33281
|
+
const asked = lookup ?? query;
|
|
33282
|
+
const text2 = [asked.trim() ? `(${asked})` : "", filter ?? ""].filter(Boolean).join(" AND ");
|
|
33132
33283
|
const window3 = offset + limit;
|
|
33133
33284
|
const scope = {
|
|
33134
33285
|
...folderIds === void 0 ? {} : { folderIds },
|
|
@@ -33138,6 +33289,7 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33138
33289
|
};
|
|
33139
33290
|
let meaningSkipped;
|
|
33140
33291
|
let meaning;
|
|
33292
|
+
const cosines = /* @__PURE__ */ new Map();
|
|
33141
33293
|
let meaningRefs;
|
|
33142
33294
|
let meaningComplete = true;
|
|
33143
33295
|
if (exact)
|
|
@@ -33164,8 +33316,10 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33164
33316
|
nearest = ranked2.slice(0, depth);
|
|
33165
33317
|
}
|
|
33166
33318
|
const allowed = await matching(store, nearest.map(({ ref }) => ref), narrowing, scope);
|
|
33167
|
-
meaning = nearest.flatMap(({ ref }) => {
|
|
33319
|
+
meaning = nearest.flatMap(({ ref, score }) => {
|
|
33168
33320
|
const found = allowed.get(ref);
|
|
33321
|
+
if (found)
|
|
33322
|
+
cosines.set(ref, score);
|
|
33169
33323
|
return found ? [{ ref, ...found }] : [];
|
|
33170
33324
|
});
|
|
33171
33325
|
meaningRefs ??= new Set(meaning.map(({ ref }) => ref));
|
|
@@ -33196,9 +33350,11 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33196
33350
|
if (tierRefs.has(ref))
|
|
33197
33351
|
return;
|
|
33198
33352
|
const held = ranked.get(ref) ?? { note, at, score: 0, foundBy: [] };
|
|
33199
|
-
held.score += 1 / (RRF_K3 + rank + 1);
|
|
33200
33353
|
held.foundBy.push(by);
|
|
33201
33354
|
ranked.set(ref, held);
|
|
33355
|
+
if (by === "meaning" && lookup !== void 0 && held.foundBy.includes("words"))
|
|
33356
|
+
return;
|
|
33357
|
+
held.score += 1 / (RRF_K3 + rank + 1);
|
|
33202
33358
|
}), "add");
|
|
33203
33359
|
add(matched.items, "words");
|
|
33204
33360
|
if (meaning !== void 0)
|
|
@@ -33231,7 +33387,8 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33231
33387
|
updated_at: at,
|
|
33232
33388
|
excerpt: firstLine(note.text, words3),
|
|
33233
33389
|
links,
|
|
33234
|
-
found_by: foundBy
|
|
33390
|
+
found_by: foundBy,
|
|
33391
|
+
...cosines.has(ref) ? { meaning_score: cosines.get(ref) } : {}
|
|
33235
33392
|
});
|
|
33236
33393
|
for (const link4 of new Map(links.map((link5) => [link5.to ?? `?${link5.target_text}`, link5])).values()) {
|
|
33237
33394
|
const key = link4.to ?? `?${link4.target_text}`;
|
|
@@ -33310,7 +33467,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33310
33467
|
};
|
|
33311
33468
|
}, "searchNotesOf");
|
|
33312
33469
|
|
|
33313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33314
33471
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33315
33472
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33316
33473
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33344,17 +33501,18 @@ var nearestEvents = /* @__PURE__ */ __name(async (store, words3, { limit, accoun
|
|
|
33344
33501
|
return (await store.calendar.nearest(key, vector, { limit, ...accountIds ? { accountIds } : {} })).filter(({ score }) => score > floor);
|
|
33345
33502
|
}, "nearestEvents");
|
|
33346
33503
|
var keyOf4 = /* @__PURE__ */ __name(({ event }) => event.eventSeriesId === null ? `e${event.id}` : `s${event.eventSeriesId}`, "keyOf");
|
|
33347
|
-
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, newest, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
33504
|
+
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, discover, newest, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
33348
33505
|
if (!query.trim())
|
|
33349
33506
|
throw new CliError("validation_error", "say what to find in the events");
|
|
33350
|
-
const
|
|
33507
|
+
const asked = discover && !exact && !newest ? questionLookup(query) : void 0;
|
|
33508
|
+
const { root, stemmer } = await storeQuery(store, asked ?? query, {
|
|
33351
33509
|
...exact ? { exact: true } : {},
|
|
33352
33510
|
...timezone === void 0 ? {} : { timezone }
|
|
33353
33511
|
});
|
|
33354
33512
|
const accountIds = accounts === void 0 ? void 0 : await accountIdsOf(store, accounts);
|
|
33355
33513
|
if (accountIds?.length === 0)
|
|
33356
33514
|
return { query, by: "words", hits: [], has_more: false };
|
|
33357
|
-
const words3 = plainQueryWords(query);
|
|
33515
|
+
const words3 = plainQueryWords(asked === void 0 ? query : questionText(query));
|
|
33358
33516
|
const window3 = offset + limit;
|
|
33359
33517
|
let meaningSkipped;
|
|
33360
33518
|
let meaning;
|
|
@@ -33410,19 +33568,23 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33410
33568
|
}), "add");
|
|
33411
33569
|
add(found.items, "words");
|
|
33412
33570
|
add(meaning, "meaning");
|
|
33571
|
+
const cosines = new Map(meaning.map((hit) => [keyOf4(hit), hit.score]));
|
|
33413
33572
|
const ordered = [...ranked.values()].sort((a, b) => b.score - a.score);
|
|
33414
33573
|
const hasMore = ordered.length > window3 || found.hasMore;
|
|
33415
33574
|
return {
|
|
33416
33575
|
query,
|
|
33417
33576
|
by,
|
|
33418
|
-
hits: ordered.slice(offset, window3).map(({ hit, by: halves }) =>
|
|
33577
|
+
hits: ordered.slice(offset, window3).map(({ hit, by: halves }) => {
|
|
33578
|
+
const cosine = cosines.get(keyOf4(hit));
|
|
33579
|
+
return { ...foundEvent(hit, query, halves), ...cosine === void 0 ? {} : { meaning_score: cosine } };
|
|
33580
|
+
}),
|
|
33419
33581
|
has_more: hasMore,
|
|
33420
33582
|
...hasMore && window3 <= MAX_EVENTS_OFFSET ? { next_offset: window3 } : {},
|
|
33421
33583
|
...truncated
|
|
33422
33584
|
};
|
|
33423
33585
|
}, "searchEvents");
|
|
33424
33586
|
|
|
33425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33426
33588
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
33427
33589
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33428
33590
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -33447,11 +33609,14 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33447
33609
|
let hasMore = false;
|
|
33448
33610
|
let notes;
|
|
33449
33611
|
let events;
|
|
33450
|
-
|
|
33612
|
+
const by = {};
|
|
33451
33613
|
let server;
|
|
33614
|
+
const discover = !request.exact && questionLookup(request.text) !== void 0;
|
|
33615
|
+
const cosines = /* @__PURE__ */ new Map();
|
|
33452
33616
|
let coverage2;
|
|
33453
33617
|
const messagesOf = /* @__PURE__ */ __name(async (kind) => {
|
|
33454
33618
|
const given = request.scope?.[kind];
|
|
33619
|
+
const discovers = discover && (kind === "mail" || request.backend !== "server");
|
|
33455
33620
|
const query = {
|
|
33456
33621
|
text: request.text,
|
|
33457
33622
|
kind,
|
|
@@ -33464,6 +33629,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33464
33629
|
} : {},
|
|
33465
33630
|
limit: window3,
|
|
33466
33631
|
...request.exact ? { exact: true } : {},
|
|
33632
|
+
...discovers ? { discover: true } : {},
|
|
33467
33633
|
...request.timezone === void 0 ? {} : { timezone: request.timezone },
|
|
33468
33634
|
...request.signal === void 0 ? {} : { signal: request.signal }
|
|
33469
33635
|
};
|
|
@@ -33496,7 +33662,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33496
33662
|
};
|
|
33497
33663
|
}, "itemOf");
|
|
33498
33664
|
const byWords = found.items.map((hit) => itemOf3(hit, ["words"]));
|
|
33499
|
-
if (
|
|
33665
|
+
if (!meaning || request.exact || kind === "messages" && request.backend === "server")
|
|
33500
33666
|
return byWords;
|
|
33501
33667
|
const filters = filtersBeside(request.text);
|
|
33502
33668
|
const lane = filters === void 0 ? {
|
|
@@ -33506,19 +33672,22 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33506
33672
|
}
|
|
33507
33673
|
} : await meaning(request.text, read, embedders);
|
|
33508
33674
|
if ("skipped" in lane) {
|
|
33509
|
-
|
|
33675
|
+
by[kind] = { by: "words", meaningSkipped: lane.skipped };
|
|
33510
33676
|
return byWords;
|
|
33511
33677
|
}
|
|
33512
|
-
|
|
33678
|
+
by[kind] = { by: "words and meaning", ...lane.partly ? { meaningSkipped: lane.partly } : {} };
|
|
33513
33679
|
const near2 = await nearEligible(store, account, query, messenger, lane.ranked, filters ? { text: filters } : {});
|
|
33514
33680
|
const fused2 = /* @__PURE__ */ new Map();
|
|
33515
33681
|
byWords.forEach((item2, rank) => {
|
|
33516
33682
|
fused2.set(item2.ref, { item: item2, score: 1 / (RRF_K3 + rank + 1) });
|
|
33517
33683
|
});
|
|
33518
33684
|
near2.forEach((hit, rank) => {
|
|
33685
|
+
cosines.set(hit.locator, hit.cosine);
|
|
33519
33686
|
const held = fused2.get(hit.locator);
|
|
33520
33687
|
if (held)
|
|
33521
33688
|
held.item.foundBy = ["words", "meaning"];
|
|
33689
|
+
if (held && discovers)
|
|
33690
|
+
return;
|
|
33522
33691
|
fused2.set(hit.locator, {
|
|
33523
33692
|
item: held?.item ?? itemOf3(hit, ["meaning"]),
|
|
33524
33693
|
score: (held?.score ?? 0) + 1 / (RRF_K3 + rank + 1)
|
|
@@ -33538,6 +33707,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33538
33707
|
embedders,
|
|
33539
33708
|
...chosen === void 0 ? {} : notesScopeOf(chosen),
|
|
33540
33709
|
...request.exact ? { exact: true } : {},
|
|
33710
|
+
...discover ? { discover: true } : {},
|
|
33541
33711
|
...request.timezone === void 0 ? {} : { timezone: request.timezone },
|
|
33542
33712
|
...request.env === void 0 ? {} : { env: request.env }
|
|
33543
33713
|
});
|
|
@@ -33546,6 +33716,9 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33546
33716
|
by: found.by,
|
|
33547
33717
|
...found.meaning_skipped === void 0 ? {} : { meaningSkipped: found.meaning_skipped }
|
|
33548
33718
|
};
|
|
33719
|
+
for (const hit of found.hits)
|
|
33720
|
+
if (hit.meaning_score !== void 0)
|
|
33721
|
+
cosines.set(hit.ref, hit.meaning_score);
|
|
33549
33722
|
lists.push(found.hits.map((hit) => ({
|
|
33550
33723
|
kind: hit.kind ?? "note",
|
|
33551
33724
|
ref: hit.ref,
|
|
@@ -33574,6 +33747,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33574
33747
|
...command === void 0 ? {} : { command },
|
|
33575
33748
|
...request.env === void 0 ? {} : { env: request.env },
|
|
33576
33749
|
...request.exact ? { exact: true } : {},
|
|
33750
|
+
...discover ? { discover: true } : {},
|
|
33577
33751
|
...request.timezone === void 0 ? {} : { timezone: request.timezone },
|
|
33578
33752
|
...request.signal === void 0 ? {} : { signal: request.signal }
|
|
33579
33753
|
});
|
|
@@ -33582,6 +33756,9 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33582
33756
|
by: found.by,
|
|
33583
33757
|
...found.meaning_skipped === void 0 ? {} : { meaningSkipped: found.meaning_skipped }
|
|
33584
33758
|
};
|
|
33759
|
+
for (const hit of found.hits)
|
|
33760
|
+
if (hit.meaning_score !== void 0)
|
|
33761
|
+
cosines.set(hit.ref, hit.meaning_score);
|
|
33585
33762
|
lists.push(found.hits.map((hit) => ({
|
|
33586
33763
|
kind: "event",
|
|
33587
33764
|
ref: hit.ref,
|
|
@@ -33606,14 +33783,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33606
33783
|
} finally {
|
|
33607
33784
|
await embedders.close();
|
|
33608
33785
|
}
|
|
33609
|
-
const
|
|
33610
|
-
for (const list2 of lists)
|
|
33611
|
-
list2.forEach((item2, rank) => {
|
|
33612
|
-
const held = ranked.get(item2.ref) ?? { item: item2, score: 0 };
|
|
33613
|
-
held.score += 1 / (RRF_K3 + rank + 1);
|
|
33614
|
-
ranked.set(item2.ref, held);
|
|
33615
|
-
});
|
|
33616
|
-
const ordered = [...ranked.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
33786
|
+
const ordered = oneList(lists, cosines);
|
|
33617
33787
|
const more = hasMore || ordered.length > window3;
|
|
33618
33788
|
return {
|
|
33619
33789
|
query: request.text,
|
|
@@ -33625,13 +33795,25 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33625
33795
|
skipped,
|
|
33626
33796
|
...notes === void 0 ? {} : { notes },
|
|
33627
33797
|
...events === void 0 ? {} : { events },
|
|
33628
|
-
...
|
|
33798
|
+
...by.messages === void 0 ? {} : { messages: by.messages },
|
|
33799
|
+
...by.mail === void 0 ? {} : { mail: by.mail },
|
|
33629
33800
|
...server === void 0 ? {} : { server },
|
|
33630
33801
|
...coverage2 === void 0 ? {} : { coverage: coverage2 }
|
|
33631
33802
|
};
|
|
33632
33803
|
}, "searchAll");
|
|
33804
|
+
var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
33805
|
+
const place = /* @__PURE__ */ new Map();
|
|
33806
|
+
for (const list2 of lists)
|
|
33807
|
+
list2.forEach((item2, rank) => {
|
|
33808
|
+
const held = place.get(item2.ref);
|
|
33809
|
+
if (!held || rank < held.rank)
|
|
33810
|
+
place.set(item2.ref, { item: item2, rank });
|
|
33811
|
+
});
|
|
33812
|
+
const cosine = /* @__PURE__ */ __name((ref) => cosines.get(ref) ?? Number.NEGATIVE_INFINITY, "cosine");
|
|
33813
|
+
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33814
|
+
}, "oneList");
|
|
33633
33815
|
|
|
33634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33635
33817
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33636
33818
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33637
33819
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -33884,7 +34066,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
33884
34066
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
33885
34067
|
}, "searchAllOfSource");
|
|
33886
34068
|
|
|
33887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
33888
34070
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
33889
34071
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
33890
34072
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34073,7 +34255,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34073
34255
|
return { report, sources };
|
|
34074
34256
|
}, "searchServer");
|
|
34075
34257
|
|
|
34076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34077
34259
|
var DELETE_AT_ONCE = 10;
|
|
34078
34260
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34079
34261
|
const files = fileLinks(attachments);
|
|
@@ -34089,18 +34271,18 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34089
34271
|
return;
|
|
34090
34272
|
await ensureAccount({ text: target2.text, account: target2.account }, { account: account.account, ...deps.profile === void 0 ? {} : { profile: deps.profile } });
|
|
34091
34273
|
}, "ownTarget");
|
|
34092
|
-
const serverThenStore = /* @__PURE__ */ __name(async (store, account, query) => {
|
|
34274
|
+
const serverThenStore = /* @__PURE__ */ __name(async (store, account, query, lanes = true) => {
|
|
34093
34275
|
const server = await searchServer(deps, query);
|
|
34094
34276
|
const only = query.backend === "server" && server ? [...server.sources.keys()].map((key) => {
|
|
34095
34277
|
const [chatId, id2] = JSON.parse(key);
|
|
34096
34278
|
return { ...account, chatId, id: id2 };
|
|
34097
34279
|
}) : void 0;
|
|
34098
|
-
const found = await searchStore(store, account, only ? { ...query, only } : query, deps.messenger, query.discover && query.kind !== "mail" ? meaningLane(deps) : void 0, query.discover && query.kind !== "mail" ? rerankLane(deps) : void 0);
|
|
34280
|
+
const found = await searchStore(store, account, only ? { ...query, only } : query, deps.messenger, lanes && query.discover && query.kind !== "mail" ? meaningLane(deps) : void 0, lanes && query.discover && query.kind !== "mail" ? rerankLane(deps) : void 0);
|
|
34099
34281
|
return { found, server };
|
|
34100
34282
|
}, "serverThenStore");
|
|
34101
34283
|
const unifiedMessages = /* @__PURE__ */ __name((store, account) => async (query) => {
|
|
34102
34284
|
await topUp(store);
|
|
34103
|
-
const { found, server } = await serverThenStore(store, account, query);
|
|
34285
|
+
const { found, server } = await serverThenStore(store, account, query, false);
|
|
34104
34286
|
return withServer(found, account, server);
|
|
34105
34287
|
}, "unifiedMessages");
|
|
34106
34288
|
const remember = /* @__PURE__ */ __name(async (store, command, query) => {
|
|
@@ -34514,7 +34696,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34514
34696
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34515
34697
|
}, "checkMediaOptions");
|
|
34516
34698
|
|
|
34517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34518
34700
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34519
34701
|
var RULES = {
|
|
34520
34702
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34529,7 +34711,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34529
34711
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34530
34712
|
}), "classifyChannel");
|
|
34531
34713
|
|
|
34532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34533
34715
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34534
34716
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34535
34717
|
const store = await deps.store();
|
|
@@ -34615,7 +34797,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34615
34797
|
};
|
|
34616
34798
|
}, "metadataService");
|
|
34617
34799
|
|
|
34618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
34619
34801
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
34620
34802
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
34621
34803
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -34652,7 +34834,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
34652
34834
|
return { chatId, rows, notes };
|
|
34653
34835
|
}, "moderateWith");
|
|
34654
34836
|
|
|
34655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
34656
34838
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
34657
34839
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
34658
34840
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34730,7 +34912,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34730
34912
|
}, "removePerson")
|
|
34731
34913
|
}), "moderatorOf");
|
|
34732
34914
|
|
|
34733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34734
34916
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34735
34917
|
id: note.id,
|
|
34736
34918
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -34774,7 +34956,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34774
34956
|
};
|
|
34775
34957
|
}, "privatePeopleService");
|
|
34776
34958
|
|
|
34777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34778
34960
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34779
34961
|
total: 0,
|
|
34780
34962
|
population: 0,
|
|
@@ -35030,7 +35212,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35030
35212
|
}, "evidence")
|
|
35031
35213
|
}), "rankingsService");
|
|
35032
35214
|
|
|
35033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35034
35216
|
var FIELDS = ["date", "chat", "kind"];
|
|
35035
35217
|
var WAITING_TAIL = 100;
|
|
35036
35218
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35157,7 +35339,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35157
35339
|
};
|
|
35158
35340
|
}, "replyStatsService");
|
|
35159
35341
|
|
|
35160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35161
35343
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35162
35344
|
id: one.id,
|
|
35163
35345
|
name: one.name,
|
|
@@ -35286,7 +35468,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35286
35468
|
};
|
|
35287
35469
|
}, "searchesService");
|
|
35288
35470
|
|
|
35289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35290
35472
|
var TAGGING_QUERY = {
|
|
35291
35473
|
entity: "tagging",
|
|
35292
35474
|
backend: "sql",
|
|
@@ -35370,7 +35552,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35370
35552
|
};
|
|
35371
35553
|
}, "tagsService");
|
|
35372
35554
|
|
|
35373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
35374
35556
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
35375
35557
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
35376
35558
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -35569,7 +35751,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35569
35751
|
};
|
|
35570
35752
|
}, "topicsService");
|
|
35571
35753
|
|
|
35572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
35573
35755
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
35574
35756
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35575
35757
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -35643,7 +35825,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
35643
35825
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
35644
35826
|
}, "prepareEvidencePacket");
|
|
35645
35827
|
|
|
35646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
35647
35829
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
35648
35830
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
35649
35831
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -35663,7 +35845,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
35663
35845
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
35664
35846
|
}, "readEvidencePacket");
|
|
35665
35847
|
|
|
35666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
35667
35849
|
var scopeKeys = [
|
|
35668
35850
|
"accountId",
|
|
35669
35851
|
"meetingId",
|
|
@@ -35685,7 +35867,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
35685
35867
|
"maxVocabularyReadBytes"
|
|
35686
35868
|
]);
|
|
35687
35869
|
|
|
35688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
35689
35871
|
var communicationFields = {
|
|
35690
35872
|
sources: pipe(array(strictObject({
|
|
35691
35873
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -35717,7 +35899,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
35717
35899
|
return { ...input, after, before: before2 };
|
|
35718
35900
|
}, "communicationRequest");
|
|
35719
35901
|
|
|
35720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
35721
35903
|
var MEETING_PREPARATION_LIMITS = {
|
|
35722
35904
|
meetings: { min: 1, max: 20, default: 5 },
|
|
35723
35905
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -35790,7 +35972,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
35790
35972
|
};
|
|
35791
35973
|
}, "validateMeetingPreparationRequest");
|
|
35792
35974
|
|
|
35793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
35794
35976
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
35795
35977
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
35796
35978
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -35838,7 +36020,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
35838
36020
|
}
|
|
35839
36021
|
}, "validatePreparationCommunications");
|
|
35840
36022
|
|
|
35841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
35842
36024
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
35843
36025
|
const installer = ports.installer();
|
|
35844
36026
|
const argv = updateCommand(installer, packageName);
|
|
@@ -35903,7 +36085,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
35903
36085
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
35904
36086
|
}, "dayAfter");
|
|
35905
36087
|
|
|
35906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
35907
36089
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
35908
36090
|
const pictures = picturesService(deps);
|
|
35909
36091
|
const base = {
|
|
@@ -35940,7 +36122,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
35940
36122
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
35941
36123
|
}, "servicesFor");
|
|
35942
36124
|
|
|
35943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
35944
36126
|
import { createHash as createHash12 } from "node:crypto";
|
|
35945
36127
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
35946
36128
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36161,7 +36343,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36161
36343
|
}, () => finish({ error: stopped() }));
|
|
36162
36344
|
}), "relayCommand");
|
|
36163
36345
|
|
|
36164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.566.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_2c70ab84360472ff0036a7904a884c42/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36165
36347
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36166
36348
|
close: /* @__PURE__ */ __name(async () => {
|
|
36167
36349
|
}, "close"),
|
|
@@ -36297,6 +36479,7 @@ export {
|
|
|
36297
36479
|
projectStatus,
|
|
36298
36480
|
sendTime,
|
|
36299
36481
|
readMail,
|
|
36482
|
+
prepareLucene,
|
|
36300
36483
|
momentOf,
|
|
36301
36484
|
aheadOf,
|
|
36302
36485
|
dateWindow,
|
|
@@ -36364,7 +36547,9 @@ export {
|
|
|
36364
36547
|
withoutPhone,
|
|
36365
36548
|
savedSearchItem,
|
|
36366
36549
|
TAGGING_QUERY,
|
|
36550
|
+
TASK_STATS_BY,
|
|
36367
36551
|
TASK_QUERY,
|
|
36552
|
+
TASK_STATS_QUERY,
|
|
36368
36553
|
TASK_PAIR_QUERY,
|
|
36369
36554
|
CLAIM_LEASE_MS,
|
|
36370
36555
|
taskTypeOf,
|