@wirecat/tg-cli 0.132.0 → 0.133.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/README.md +138 -317
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-OXVMOWVE.js → adapter-GSGX3WBH.js} +61 -60
- package/dist/bundle/{all-profiles-6OQC7PBL.js → all-profiles-VOCJ55YH.js} +9 -9
- package/dist/bundle/{anthropic-YFMIHFW5.js → anthropic-J6CTLU3W.js} +5 -5
- package/dist/bundle/{app-server-S7CJPJXN.js → app-server-GVFGA4TJ.js} +57 -57
- package/dist/bundle/{bot-api-KJ6EZ4R6.js → bot-api-LWONPIGK.js} +62 -61
- package/dist/bundle/{bot-history-JYCXDFW4.js → bot-history-XOW7Y2GC.js} +22 -22
- package/dist/bundle/{bun-FVTOBYZ2.js → bun-436CH6CP.js} +2 -2
- package/dist/bundle/{bun-sqlite-KDGWBNOR.js → bun-sqlite-ZLB5RK5Q.js} +6 -6
- package/dist/bundle/chunk-2KQDJHF3.js +88 -0
- package/dist/bundle/{chunk-4CKYANQH.js → chunk-54WLIPIQ.js} +1 -1
- package/dist/bundle/{chunk-IY7CTAOQ.js → chunk-57KJ3TRS.js} +9 -9
- package/dist/bundle/{chunk-YAPO7QNO.js → chunk-5HKPQPD4.js} +6 -6
- package/dist/bundle/{chunk-EPR67IRV.js → chunk-5L44DSHV.js} +4 -4
- package/dist/bundle/{chunk-IYJ4B632.js → chunk-5LRTYBZW.js} +12 -12
- package/dist/bundle/{chunk-AUZWIBHJ.js → chunk-6A44ZZFC.js} +6 -6
- package/dist/bundle/{chunk-44A2XRDE.js → chunk-6CHIGUCY.js} +19 -19
- package/dist/bundle/{chunk-42MXCMW6.js → chunk-6H2NW6HK.js} +3 -3
- package/dist/bundle/{chunk-JPSRC732.js → chunk-6S77EKZU.js} +13 -13
- package/dist/bundle/{chunk-FPSRT2TX.js → chunk-6VCSOQFL.js} +2 -2
- package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-Y57EKZZK.js → chunk-7NYP4RBO.js} +1617 -963
- package/dist/bundle/{chunk-BLZEQVP4.js → chunk-BXVB42KJ.js} +2 -2
- package/dist/bundle/{chunk-A5D3J7XZ.js → chunk-CEJYNB3I.js} +4 -4
- package/dist/bundle/{chunk-LZ3HFDYL.js → chunk-D2SJLZSH.js} +2 -2
- package/dist/bundle/{chunk-LF6FACSW.js → chunk-H7ML7X3G.js} +5 -5
- package/dist/bundle/{chunk-O3AM32YN.js → chunk-HB5DP6L5.js} +15 -15
- package/dist/bundle/{chunk-NWCFO37P.js → chunk-IBCXEVNY.js} +3 -3
- package/dist/bundle/{chunk-U7PHJSTX.js → chunk-IH4Z3KZU.js} +2 -2
- package/dist/bundle/{chunk-LMGVPDXN.js → chunk-IPPCQ7IK.js} +2 -2
- package/dist/bundle/{chunk-OIRNHSAH.js → chunk-IYAXLLGR.js} +6 -6
- package/dist/bundle/{chunk-5UPEEMEF.js → chunk-JGMXBAGH.js} +104 -41
- package/dist/bundle/{chunk-4YB7JU2W.js → chunk-JKSD43L7.js} +6 -6
- package/dist/bundle/{chunk-YSNQGOUI.js → chunk-JPNVEPS4.js} +439 -394
- package/dist/bundle/{chunk-74UPKW7H.js → chunk-KEN4B57V.js} +2 -2
- package/dist/bundle/{chunk-PYECFCPD.js → chunk-KHUXDSXN.js} +1 -1
- package/dist/bundle/{chunk-2UGSIHLV.js → chunk-KUA24HWG.js} +2 -2
- package/dist/bundle/{chunk-JMJOWT4N.js → chunk-KVFUH5IT.js} +1 -1
- package/dist/bundle/{chunk-KJICORS4.js → chunk-LBZEZO32.js} +36 -36
- package/dist/bundle/{chunk-5RDNBG7D.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-ESOFH7PA.js → chunk-LOS4D6ZB.js} +60 -30
- package/dist/bundle/{chunk-PR4F3TYK.js → chunk-LQQSDGQ6.js} +35 -36
- package/dist/bundle/{chunk-BSXS7VAC.js → chunk-M6QOM6SL.js} +1 -1
- package/dist/bundle/{chunk-B4LGDOG5.js → chunk-N3JUHGKM.js} +302 -282
- package/dist/bundle/{chunk-CFWFESBO.js → chunk-N7QREPZW.js} +8 -8
- package/dist/bundle/{chunk-7SEVVE3X.js → chunk-NAXOT35J.js} +3 -3
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-DXPGMUOR.js → chunk-NTWXL2QV.js} +2 -2
- package/dist/bundle/{chunk-BMI2NWFI.js → chunk-O6JUVATT.js} +8 -8
- package/dist/bundle/{chunk-FKGYXIN7.js → chunk-OWY52JBO.js} +7 -7
- package/dist/bundle/{chunk-UGD4SCUI.js → chunk-OX73ERZW.js} +1 -1
- package/dist/bundle/{chunk-ZRW3DF25.js → chunk-QGWISM4W.js} +24 -24
- package/dist/bundle/{chunk-4EDJJQJI.js → chunk-QVGEL66U.js} +8 -8
- package/dist/bundle/{chunk-LG3K5NHX.js → chunk-QWO7L4UH.js} +7 -7
- package/dist/bundle/{chunk-DSJNZXTP.js → chunk-QYLZD4DS.js} +1 -1
- package/dist/bundle/{chunk-PG37E63A.js → chunk-RABUG4KA.js} +60 -60
- package/dist/bundle/{chunk-HBSKP7OV.js → chunk-SMI2EUH4.js} +1 -1
- package/dist/bundle/{chunk-2LZD2VFV.js → chunk-SMU6NA7F.js} +4 -4
- package/dist/bundle/{chunk-AERP2QR6.js → chunk-TCI7I6YF.js} +10 -10
- package/dist/bundle/{chunk-SMQ45RZX.js → chunk-THYGLTRB.js} +9 -60
- package/dist/bundle/{chunk-NLRGMP7M.js → chunk-TPD37ECC.js} +3 -3
- package/dist/bundle/{chunk-FIUH52FE.js → chunk-TTDZVWDU.js} +1 -1
- package/dist/bundle/{chunk-YRXSNH3R.js → chunk-UGS57TT5.js} +2 -2
- package/dist/bundle/{chunk-OGZZUDJJ.js → chunk-UIAKLELF.js} +54 -54
- package/dist/bundle/{chunk-O43PARFS.js → chunk-UKBK2VWZ.js} +208 -161
- package/dist/bundle/{chunk-JNWKV3QV.js → chunk-UQYL6TJ7.js} +4 -4
- package/dist/bundle/{chunk-3QHKZLBU.js → chunk-UZ63ORMY.js} +4 -4
- package/dist/bundle/{chunk-UAFSDTID.js → chunk-VCAOH45X.js} +1 -1
- package/dist/bundle/{chunk-6LPUK62N.js → chunk-VGN5YXYI.js} +3 -3
- package/dist/bundle/{chunk-N5LZ6L4D.js → chunk-VTQMR3XG.js} +3 -3
- package/dist/bundle/{chunk-QS46C5SW.js → chunk-VWJTYAIQ.js} +17 -17
- package/dist/bundle/{chunk-M2TV6BDB.js → chunk-WCYKVX3B.js} +7 -7
- package/dist/bundle/{chunk-QNEAPLOP.js → chunk-XDQU5HBO.js} +12 -12
- package/dist/bundle/{chunk-ZJIGVT6Z.js → chunk-XKOMP3HV.js} +2 -2
- package/dist/bundle/{chunk-JDNDWZYS.js → chunk-XOX4BX5A.js} +4 -4
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-JZJV3DYK.js → chunk-YY6FGKGD.js} +2 -2
- package/dist/bundle/{chunk-WAVRUADL.js → chunk-ZHO3TPHM.js} +13 -13
- package/dist/bundle/{chunk-NWDADTPE.js → chunk-ZYAHZKYF.js} +3 -3
- package/dist/bundle/command-contract-TQIARAB4.js +37 -0
- package/dist/bundle/{command-server-entry-TM264M2J.js → command-server-entry-AE27QXTE.js} +27 -27
- package/dist/bundle/{decode-RJFOSHCE.js → decode-RQPPZ72F.js} +5 -5
- package/dist/bundle/{dispatch-7OZP3X4O.js → dispatch-KQO2MCSH.js} +8 -8
- package/dist/bundle/{echarts-PYKF4D7B.js → echarts-FZRIACN4.js} +2 -2
- package/dist/bundle/{embed-JFN6Z5TG.js → embed-TOSWWMDL.js} +6 -6
- package/dist/bundle/{embedder-WN54JIMY.js → embedder-JHIQSBGD.js} +9 -9
- package/dist/bundle/{entry-Z6LO6N6S.js → entry-DU4KRXTG.js} +9 -9
- package/dist/bundle/{failure-UONA2IA5.js → failure-3YC3YGYO.js} +2 -2
- package/dist/bundle/{first-run-WQAKES7G.js → first-run-DQQT4FID.js} +12 -12
- package/dist/bundle/first-screen-7N4CTZSA.js +37 -0
- package/dist/bundle/{instructions-PR4BBBTM.js → instructions-WI64CJQ6.js} +1 -1
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-3RAOFQ7M.js +23 -0
- package/dist/bundle/{meeting-model-YVTUOM4H.js → meeting-model-XNRSREIK.js} +11 -11
- package/dist/bundle/{meeting-semantic-X4KG6RNV.js → meeting-semantic-OOSCHQMB.js} +6 -6
- package/dist/bundle/{node-OVS5LTVZ.js → node-JLKDNVKV.js} +2 -2
- package/dist/bundle/{node-sqlite-LC44SM4Z.js → node-sqlite-YOGH26O2.js} +7 -7
- package/dist/bundle/{oauth-NSVUFQCW.js → oauth-FOMXM5HP.js} +7 -7
- package/dist/bundle/{open-XN5SJFVY.js → open-SM2UXUKM.js} +5 -5
- package/dist/bundle/{openai-WOYZHJNL.js → openai-J2H7S6ZF.js} +15 -15
- package/dist/bundle/{process-UFBRGTQC.js → process-HI7OZBOI.js} +1 -1
- package/dist/bundle/{program-RAGBRRQH.js → program-VY4HFU25.js} +64 -63
- package/dist/bundle/{prompt-6HAKBUQN.js → prompt-NUUVFMOF.js} +5 -5
- package/dist/bundle/{proxy-transport-5EJVFUTC.js → proxy-transport-AN4VMRRN.js} +5 -5
- package/dist/bundle/{recognize-CN5COBVJ.js → recognize-MALJHPDI.js} +4 -4
- package/dist/bundle/{remote-STX5AMGE.js → remote-QUDRSTS2.js} +9 -9
- package/dist/bundle/{rerank-ZCOWTXIJ.js → rerank-2DSO3D3S.js} +7 -7
- package/dist/bundle/{serve-XMQEOIG2.js → serve-NCJ52MY3.js} +9 -9
- package/dist/bundle/server-CHGON5I2.js +70 -0
- package/dist/bundle/{server-PGGUD3DM.js → server-Y3M544AM.js} +49 -49
- package/dist/bundle/{sqlite-runtime-PS4DSOIU.js → sqlite-runtime-NJUSXVKK.js} +6 -6
- package/dist/bundle/{state-GL4ZC57O.js → state-AVOWQVET.js} +6 -6
- package/dist/bundle/{store-HJ76TLWD.js → store-BZ5ICDRP.js} +23 -19
- package/dist/bundle/{store-VISFXSHL.js → store-MMIYOL4H.js} +19 -17
- package/dist/bundle/store-maintenance-command-VKZ4WHUB.js +61 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +78 -576
- package/skills/tg-cli/references/files.md +64 -0
- package/skills/tg-cli/references/history.md +22 -0
- package/skills/tg-cli/references/mcp-and-bots.md +54 -0
- package/skills/tg-cli/references/messages.md +111 -0
- package/skills/tg-cli/references/people.md +85 -0
- package/skills/tg-cli/references/search.md +130 -0
- package/skills/tg-cli/references/setup.md +91 -0
- package/skills/tg-cli/references/stats.md +45 -0
- package/skills/tg-cli/references/tasks.md +54 -0
- package/dist/bundle/command-contract-FRH7LBGE.js +0 -37
- package/dist/bundle/first-screen-4RFG22SA.js +0 -35
- package/dist/bundle/meeting-combined-MHWTZOF2.js +0 -23
- package/dist/bundle/server-WTNYWCZ4.js +0 -69
- package/dist/bundle/store-maintenance-command-SMARMN5C.js +0 -60
- /package/dist/bundle/{chunk-VKE77B3F.js → chunk-SHTHNBHG.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZHO3TPHM.js";
|
|
12
12
|
import {
|
|
13
13
|
anyOfTerms,
|
|
14
14
|
isFunctionWord,
|
|
@@ -19,16 +19,19 @@ import {
|
|
|
19
19
|
questionText,
|
|
20
20
|
resolveMeetingSelection,
|
|
21
21
|
words
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TCI7I6YF.js";
|
|
23
|
+
import {
|
|
24
|
+
WIRECAT_TOOLS
|
|
25
|
+
} from "./chunk-2KQDJHF3.js";
|
|
23
26
|
import {
|
|
24
27
|
isNewer,
|
|
25
28
|
updateCommand
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CEJYNB3I.js";
|
|
27
30
|
import {
|
|
28
31
|
localOnly,
|
|
29
32
|
refuseOffComputer,
|
|
30
33
|
remoteKey
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-57KJ3TRS.js";
|
|
32
35
|
import {
|
|
33
36
|
Unzip,
|
|
34
37
|
UnzipInflate,
|
|
@@ -39,7 +42,7 @@ import {
|
|
|
39
42
|
placedText,
|
|
40
43
|
runEmbedders,
|
|
41
44
|
textModelsDirectory
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-6A44ZZFC.js";
|
|
43
46
|
import {
|
|
44
47
|
AGENDA_COLUMNS,
|
|
45
48
|
BUSINESS_FIND_MAX,
|
|
@@ -110,7 +113,7 @@ import {
|
|
|
110
113
|
readMoment,
|
|
111
114
|
threadConversation,
|
|
112
115
|
withoutField
|
|
113
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-7NYP4RBO.js";
|
|
114
117
|
import {
|
|
115
118
|
FIELD_VERSION,
|
|
116
119
|
MESSAGE_PARSING,
|
|
@@ -127,15 +130,15 @@ import {
|
|
|
127
130
|
searchError,
|
|
128
131
|
validateAst,
|
|
129
132
|
validateFields
|
|
130
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-N7QREPZW.js";
|
|
131
134
|
import {
|
|
132
135
|
DEFAULT_STEMMERS,
|
|
133
136
|
createStemmer
|
|
134
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-O6JUVATT.js";
|
|
135
138
|
import {
|
|
136
139
|
fold,
|
|
137
140
|
normalize
|
|
138
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-TTDZVWDU.js";
|
|
139
142
|
import {
|
|
140
143
|
EmptyAnswer,
|
|
141
144
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -144,7 +147,7 @@ import {
|
|
|
144
147
|
range,
|
|
145
148
|
systemFor,
|
|
146
149
|
validateImages
|
|
147
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-XOX4BX5A.js";
|
|
148
151
|
import {
|
|
149
152
|
CEILING_KEY,
|
|
150
153
|
Command,
|
|
@@ -185,14 +188,14 @@ import {
|
|
|
185
188
|
tagging,
|
|
186
189
|
task,
|
|
187
190
|
withAgentLevels
|
|
188
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-UKBK2VWZ.js";
|
|
189
192
|
import {
|
|
190
193
|
MESSENGER_CHANGE_REFUSAL,
|
|
191
194
|
ancestorValue,
|
|
192
195
|
envName,
|
|
193
196
|
readOnlyLockOf,
|
|
194
197
|
readOnlyRefusal
|
|
195
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-KEN4B57V.js";
|
|
196
199
|
import {
|
|
197
200
|
CustomTextModelShape,
|
|
198
201
|
DEFAULT_RERANK_MODEL,
|
|
@@ -206,18 +209,18 @@ import {
|
|
|
206
209
|
textModels,
|
|
207
210
|
vectorModelKey,
|
|
208
211
|
writeTextModelsSection
|
|
209
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-JKSD43L7.js";
|
|
210
213
|
import {
|
|
211
214
|
PLAIN_HTTP_REFUSED,
|
|
212
215
|
endpoint,
|
|
213
216
|
endpointFetch,
|
|
214
217
|
modelAddressAllowed,
|
|
215
218
|
onThisComputer
|
|
216
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-H7ML7X3G.js";
|
|
217
220
|
import {
|
|
218
221
|
installFiles,
|
|
219
222
|
megabytes
|
|
220
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-5L44DSHV.js";
|
|
221
224
|
import {
|
|
222
225
|
INTERNAL_NOTES,
|
|
223
226
|
LOG_ATTRIBUTES,
|
|
@@ -256,21 +259,21 @@ import {
|
|
|
256
259
|
sourceOf3 as sourceOf2,
|
|
257
260
|
typedCommand,
|
|
258
261
|
withAttempt
|
|
259
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-LBZEZO32.js";
|
|
260
263
|
import {
|
|
261
264
|
isCliFailure,
|
|
262
265
|
sqliteCode
|
|
263
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-ZYAHZKYF.js";
|
|
264
267
|
import {
|
|
265
268
|
normalizeTag
|
|
266
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-IH4Z3KZU.js";
|
|
267
270
|
import {
|
|
268
271
|
DEFAULT_TASK_CATEGORIES,
|
|
269
272
|
FALLBACK_CATEGORY,
|
|
270
273
|
readSharedSection,
|
|
271
274
|
sharedConfigPath,
|
|
272
275
|
writeSharedSection
|
|
273
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-WCYKVX3B.js";
|
|
274
277
|
import {
|
|
275
278
|
BACKENDS,
|
|
276
279
|
EVENT_QUERY,
|
|
@@ -325,11 +328,11 @@ import {
|
|
|
325
328
|
validateQuery,
|
|
326
329
|
walkQuery,
|
|
327
330
|
windowOf
|
|
328
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-RABUG4KA.js";
|
|
329
332
|
import {
|
|
330
333
|
storePath,
|
|
331
334
|
wirecatDirectory
|
|
332
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-6VCSOQFL.js";
|
|
333
336
|
import {
|
|
334
337
|
Credentials,
|
|
335
338
|
logRecordOf,
|
|
@@ -337,7 +340,7 @@ import {
|
|
|
337
340
|
realSleep,
|
|
338
341
|
resolvePaths,
|
|
339
342
|
writeSecurely
|
|
340
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-6CHIGUCY.js";
|
|
341
344
|
import {
|
|
342
345
|
array,
|
|
343
346
|
boolean,
|
|
@@ -366,7 +369,7 @@ import {
|
|
|
366
369
|
trim,
|
|
367
370
|
union,
|
|
368
371
|
unknown
|
|
369
|
-
} from "./chunk-
|
|
372
|
+
} from "./chunk-QVGEL66U.js";
|
|
370
373
|
import {
|
|
371
374
|
importFrom,
|
|
372
375
|
resolveFrom
|
|
@@ -376,7 +379,7 @@ import {
|
|
|
376
379
|
isCliError,
|
|
377
380
|
singleLine,
|
|
378
381
|
visibleControls
|
|
379
|
-
} from "./chunk-
|
|
382
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
380
383
|
import {
|
|
381
384
|
__commonJS,
|
|
382
385
|
__name,
|
|
@@ -16992,7 +16995,7 @@ var require_lib3 = __commonJS({
|
|
|
16992
16995
|
}
|
|
16993
16996
|
});
|
|
16994
16997
|
|
|
16995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16996
16999
|
var RULES_VERSION = 5;
|
|
16997
17000
|
var LOOK_BACK = 50;
|
|
16998
17001
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17082,10 +17085,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17082
17085
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17083
17086
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17084
17087
|
|
|
17085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17086
17089
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17087
17090
|
|
|
17088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17089
17092
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17090
17093
|
import { open, stat } from "node:fs/promises";
|
|
17091
17094
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17185,15 +17188,15 @@ var CREDENTIAL_RUNS = [
|
|
|
17185
17188
|
["AppData", "Roaming", "GitHub CLI"]
|
|
17186
17189
|
];
|
|
17187
17190
|
var WIRECAT_APPS = [
|
|
17188
|
-
{ appName
|
|
17189
|
-
{ appName: "
|
|
17190
|
-
{ appName: "
|
|
17191
|
-
{ appName: "cli-memo", prefix: "MEMO" },
|
|
17192
|
-
{ appName: "drive-cli", prefix: "DRIVE" },
|
|
17191
|
+
...WIRECAT_TOOLS.map(({ appName, envPrefix }) => ({ appName, prefix: envPrefix })),
|
|
17192
|
+
{ appName: "amo-cli", prefix: "AMO" },
|
|
17193
|
+
{ appName: "beeline-cli", prefix: "BEELINE" },
|
|
17193
17194
|
{ appName: "zm", prefix: "ZM" },
|
|
17194
17195
|
{ appName: "cli-messaging", prefix: "MESSAGING" },
|
|
17195
17196
|
{ appName: "cli-common", prefix: "CLI_COMMON" }
|
|
17196
17197
|
];
|
|
17198
|
+
var SYSTEM_ROOTS = ["/proc", "/sys", "/dev"];
|
|
17199
|
+
var systemPlace = /* @__PURE__ */ __name((path, platform) => platform !== "win32" && SYSTEM_ROOTS.some((root) => inside(path, root)), "systemPlace");
|
|
17197
17200
|
var realPathOf = /* @__PURE__ */ __name((path) => {
|
|
17198
17201
|
let ancestor = resolve(path);
|
|
17199
17202
|
for (; ; ) {
|
|
@@ -17235,7 +17238,7 @@ var refusedPlace = /* @__PURE__ */ __name((path, app, env, platform = process.pl
|
|
|
17235
17238
|
return names2.some((name, index) => parts.has(name) || /^\.env\./.test(name) || runs.some((run2) => run2.every((part, offset) => names2[index + offset] === part)));
|
|
17236
17239
|
}, "named");
|
|
17237
17240
|
const same2 = /* @__PURE__ */ __name((a, b) => fold2(a) === fold2(b), "same");
|
|
17238
|
-
return [resolve(path), real].some((candidate) => named2(candidate) || own.some((dir) => inside(fold2(candidate), fold2(dir))) || [store, `${store}-wal`, `${store}-shm`].some((file2) => same2(candidate, file2)));
|
|
17241
|
+
return [resolve(path), real].some((candidate) => systemPlace(candidate, platform) || named2(candidate) || own.some((dir) => inside(fold2(candidate), fold2(dir))) || [store, `${store}-wal`, `${store}-shm`].some((file2) => same2(candidate, file2)));
|
|
17239
17242
|
}, "refusedPlace");
|
|
17240
17243
|
var inside = /* @__PURE__ */ __name((path, dir) => {
|
|
17241
17244
|
const way = relative(resolve(dir), path);
|
|
@@ -17252,6 +17255,9 @@ var readUpload = /* @__PURE__ */ __name(async (kind, path, { app, env = process.
|
|
|
17252
17255
|
if (kind === "voice" && !VOICE.has(extension)) {
|
|
17253
17256
|
throw new CliError("validation_error", `a voice message is Ogg Opus: .ogg, .oga or .opus \u2014 send ${path} as a file`);
|
|
17254
17257
|
}
|
|
17258
|
+
if ([resolve(path), realPathOf(path)].some((candidate) => systemPlace(candidate, process.platform))) {
|
|
17259
|
+
throw new CliError("validation_error", `cannot send ${path}: a file under /proc, /sys or /dev is never sent`);
|
|
17260
|
+
}
|
|
17255
17261
|
if (!anyFile && refusedPlace(path, app, env)) {
|
|
17256
17262
|
throw new CliError("validation_error", `cannot send ${path}: known credential files, browser profiles, the WireCat apps' folders and the message store are not sent \u2014 the owner adds --allow-any-file to the command if this file is meant to go`);
|
|
17257
17263
|
}
|
|
@@ -17318,15 +17324,15 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
17318
17324
|
return { name, source };
|
|
17319
17325
|
}, "readStickerFile");
|
|
17320
17326
|
|
|
17321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17322
17328
|
import { randomBytes } from "node:crypto";
|
|
17323
17329
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17324
17330
|
var newOperationId = newSendId;
|
|
17325
17331
|
|
|
17326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17327
17333
|
import { randomUUID } from "node:crypto";
|
|
17328
17334
|
|
|
17329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17330
17336
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17331
17337
|
import { dirname as dirname2, join } from "node:path";
|
|
17332
17338
|
var MOST_DEADLINES = 50;
|
|
@@ -17410,11 +17416,11 @@ var FloodMemory = class {
|
|
|
17410
17416
|
}
|
|
17411
17417
|
};
|
|
17412
17418
|
|
|
17413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17414
17420
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17415
17421
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17416
17422
|
|
|
17417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17418
17424
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17419
17425
|
import { dirname as dirname3 } from "node:path";
|
|
17420
17426
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17481,7 +17487,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17481
17487
|
}
|
|
17482
17488
|
}, "lockTime");
|
|
17483
17489
|
|
|
17484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17485
17491
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17486
17492
|
var SendJournal = class {
|
|
17487
17493
|
static {
|
|
@@ -17558,7 +17564,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17558
17564
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17559
17565
|
}, "withSendId");
|
|
17560
17566
|
|
|
17561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17562
17568
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17563
17569
|
import { join as join3 } from "node:path";
|
|
17564
17570
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17670,7 +17676,7 @@ var RecipientList = class {
|
|
|
17670
17676
|
}
|
|
17671
17677
|
};
|
|
17672
17678
|
|
|
17673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17674
17680
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17675
17681
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind = "message", action: action2, notify }) => kind === "message" || kind === "forward" || kind === "edit" || kind === "delete" || kind === "pin" && notify === true || action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "join" || action2 === "contact-import", "countsTowardLimit");
|
|
17676
17682
|
var weightOf = /* @__PURE__ */ __name(({ kind = "message", action: action2, count: count4, people }) => kind === "delete" || kind === "message" && action2 === void 0 ? Math.max(1, count4 ?? 1) : action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "contact-import" ? Math.max(1, people ?? count4 ?? 1) : 1, "weightOf");
|
|
@@ -17858,7 +17864,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17858
17864
|
}), "guardFor");
|
|
17859
17865
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17860
17866
|
|
|
17861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17862
17868
|
var COMMAND_NEEDS = {
|
|
17863
17869
|
"account update": ["updateProfile", "change the profile"],
|
|
17864
17870
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17908,7 +17914,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17908
17914
|
return group;
|
|
17909
17915
|
}, "hideNever");
|
|
17910
17916
|
|
|
17911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17912
17918
|
var AUDIT_PAGE = 200;
|
|
17913
17919
|
var AUDIT_BUDGET = 10;
|
|
17914
17920
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17988,7 +17994,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17988
17994
|
return found;
|
|
17989
17995
|
}, "burstJoins");
|
|
17990
17996
|
|
|
17991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
17992
17998
|
var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
|
|
17993
17999
|
const found = readMoment(reference, flag, { ...at, now });
|
|
17994
18000
|
if (found === void 0)
|
|
@@ -18017,7 +18023,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18017
18023
|
};
|
|
18018
18024
|
}, "dateWindow");
|
|
18019
18025
|
|
|
18020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
18021
18027
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
18022
18028
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
18023
18029
|
var minutes = /* @__PURE__ */ __name((text2) => {
|
|
@@ -18122,7 +18128,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
18122
18128
|
}).description("the invitation text the service writes for a meeting"))).action(async (id2, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id2, signalled()), untrusted: ["invitation"] } }, command)));
|
|
18123
18129
|
}, "addMeetingManagementCommands");
|
|
18124
18130
|
|
|
18125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
18126
18132
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
18127
18133
|
command.allowUnknownOption();
|
|
18128
18134
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -18142,7 +18148,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
18142
18148
|
return command;
|
|
18143
18149
|
}, "queryWordsAfterOptions");
|
|
18144
18150
|
|
|
18145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
18146
18152
|
var count = /* @__PURE__ */ __name((value) => {
|
|
18147
18153
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18148
18154
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -18184,7 +18190,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
18184
18190
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
18185
18191
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
18186
18192
|
|
|
18187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
18188
18194
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
18189
18195
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18190
18196
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18207,7 +18213,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18207
18213
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18208
18214
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18209
18215
|
|
|
18210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18211
18217
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18212
18218
|
const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
|
|
18213
18219
|
if (meta.timezone)
|
|
@@ -18286,7 +18292,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18286
18292
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18287
18293
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18288
18294
|
|
|
18289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18290
18296
|
var EVENT_UNTRUSTED = ["title", "description", "location"];
|
|
18291
18297
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18292
18298
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
@@ -18468,7 +18474,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18468
18474
|
}, "addMeetingCommandsDefinition");
|
|
18469
18475
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18470
18476
|
|
|
18471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18472
18478
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18473
18479
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18474
18480
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18559,9 +18565,11 @@ var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = [], neg
|
|
|
18559
18565
|
add(ast.root);
|
|
18560
18566
|
return terms;
|
|
18561
18567
|
}, "nativeTermLists");
|
|
18562
|
-
var queryTerms = /* @__PURE__ */ __name((words3, registry, command) => {
|
|
18568
|
+
var queryTerms = /* @__PURE__ */ __name((words3, registry, command, ranged = []) => {
|
|
18563
18569
|
const terms = /* @__PURE__ */ new Map();
|
|
18564
18570
|
for (const [field, node] of nativeTerms(listQuery(typedQuery(words3), registry, command), command)) {
|
|
18571
|
+
if (ranged.includes(field))
|
|
18572
|
+
continue;
|
|
18565
18573
|
if (node.operator !== "term" && node.operator !== "phrase")
|
|
18566
18574
|
queryError("query.unsupported-placement", node.span, `${field} takes one whole value here`, {
|
|
18567
18575
|
command,
|
|
@@ -18572,11 +18580,11 @@ var queryTerms = /* @__PURE__ */ __name((words3, registry, command) => {
|
|
|
18572
18580
|
}
|
|
18573
18581
|
return terms;
|
|
18574
18582
|
}, "queryTerms");
|
|
18575
|
-
var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf()) => {
|
|
18583
|
+
var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf(), now) => {
|
|
18576
18584
|
if (!term)
|
|
18577
18585
|
return {};
|
|
18578
18586
|
const upper = term.operator === "range" ? term.upper ?? "*" : term.value;
|
|
18579
|
-
const range2 = dateRange(term.value, upper, term.operator === "range" ? term.lower_inclusive !== false : true, term.operator === "range" ? term.upper_inclusive !== false : true, zone, term.span);
|
|
18587
|
+
const range2 = dateRange(term.value, upper, term.operator === "range" ? term.lower_inclusive !== false : true, term.operator === "range" ? term.upper_inclusive !== false : true, zone, term.span, now);
|
|
18580
18588
|
const until = range2.upper === void 0 ? void 0 : range2.upper - (range2.upper_inclusive ? 0 : 1);
|
|
18581
18589
|
return {
|
|
18582
18590
|
...range2.lower === void 0 ? {} : { since: range2.lower },
|
|
@@ -18602,7 +18610,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18602
18610
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18603
18611
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18604
18612
|
|
|
18605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18606
18614
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18607
18615
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18608
18616
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18629,7 +18637,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
18629
18637
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
18630
18638
|
}, "pagingOf");
|
|
18631
18639
|
|
|
18632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18633
18641
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18634
18642
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18635
18643
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18891,7 +18899,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18891
18899
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18892
18900
|
}), "sessionAnswer");
|
|
18893
18901
|
|
|
18894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18895
18903
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18896
18904
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18897
18905
|
if (key in own)
|
|
@@ -18908,7 +18916,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18908
18916
|
return found.bind(adapter);
|
|
18909
18917
|
}, "capability");
|
|
18910
18918
|
|
|
18911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18912
18920
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18913
18921
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18914
18922
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18970,7 +18978,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18970
18978
|
}), "storedDeps");
|
|
18971
18979
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18972
18980
|
|
|
18973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18974
18982
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18975
18983
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18976
18984
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18993,10 +19001,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18993
19001
|
}
|
|
18994
19002
|
}, "patiently");
|
|
18995
19003
|
|
|
18996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18997
19005
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18998
19006
|
|
|
18999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
19000
19008
|
var REQUEST_MS = 400;
|
|
19001
19009
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
19002
19010
|
const lowest = ranges[0];
|
|
@@ -19019,13 +19027,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
19019
19027
|
};
|
|
19020
19028
|
}, "estimateBackfill");
|
|
19021
19029
|
|
|
19022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
19023
19031
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
19024
19032
|
...error,
|
|
19025
19033
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
19026
19034
|
}), "withRecovery");
|
|
19027
19035
|
|
|
19028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
19029
19037
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
19030
19038
|
if (isCliFailure(error))
|
|
19031
19039
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -19108,7 +19116,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
19108
19116
|
};
|
|
19109
19117
|
}, "mergeBatches");
|
|
19110
19118
|
|
|
19111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
19112
19120
|
var ALL = "all";
|
|
19113
19121
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
19114
19122
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -19180,7 +19188,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
19180
19188
|
[ALL]: [ALL]
|
|
19181
19189
|
}), "groupEntries");
|
|
19182
19190
|
|
|
19183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
19184
19192
|
var NO_MAIL = "no_mail";
|
|
19185
19193
|
var MAIL = "email";
|
|
19186
19194
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -19254,7 +19262,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
19254
19262
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
19255
19263
|
}, "accountsOfKind");
|
|
19256
19264
|
|
|
19257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
19258
19266
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
19259
19267
|
if (deps.reads !== "store")
|
|
19260
19268
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19455,7 +19463,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
19455
19463
|
}, "chatsMatchingIn");
|
|
19456
19464
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
19457
19465
|
|
|
19458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19459
19467
|
var CONTEXT_MESSAGES = 3;
|
|
19460
19468
|
var CONTEXT_MINUTES = 10;
|
|
19461
19469
|
var MAX_CHARS = 1200;
|
|
@@ -19479,12 +19487,12 @@ var context = {
|
|
|
19479
19487
|
}, "describe")
|
|
19480
19488
|
};
|
|
19481
19489
|
|
|
19482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19483
19491
|
var BUILT_INS = [context];
|
|
19484
19492
|
var providers = [...BUILT_INS];
|
|
19485
19493
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19486
19494
|
|
|
19487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19488
19496
|
var READ_PAGE = 5e3;
|
|
19489
19497
|
var CHAIN = 50;
|
|
19490
19498
|
var CONVERSATION_QUERY = {
|
|
@@ -19636,7 +19644,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19636
19644
|
return size2;
|
|
19637
19645
|
}, "sized");
|
|
19638
19646
|
|
|
19639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19640
19648
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19641
19649
|
var MESSAGE_PAGE = 5e3;
|
|
19642
19650
|
var PER_SESSION = 8;
|
|
@@ -19655,7 +19663,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19655
19663
|
price: remote.price,
|
|
19656
19664
|
installed: true,
|
|
19657
19665
|
perBatch: PER_REQUEST * concurrency,
|
|
19658
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19666
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-QUDRSTS2.js")).openRemote(remote, apiKey, {
|
|
19659
19667
|
concurrency,
|
|
19660
19668
|
env: deps.env ?? process.env
|
|
19661
19669
|
}), "open")
|
|
@@ -19675,7 +19683,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19675
19683
|
if (!isTextModelInstalled(model, directory2))
|
|
19676
19684
|
throw notDownloaded(model.id);
|
|
19677
19685
|
if (apart) {
|
|
19678
|
-
const { openProcess } = await import("./process-
|
|
19686
|
+
const { openProcess } = await import("./process-HI7OZBOI.js");
|
|
19679
19687
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19680
19688
|
}
|
|
19681
19689
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19964,7 +19972,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19964
19972
|
return { ...one, state };
|
|
19965
19973
|
}, "shaped");
|
|
19966
19974
|
|
|
19967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19968
19976
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19969
19977
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19970
19978
|
for (const [key, value, maximum] of [
|
|
@@ -20017,7 +20025,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
20017
20025
|
}
|
|
20018
20026
|
}, "catchUpSearch");
|
|
20019
20027
|
|
|
20020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
20021
20029
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
20022
20030
|
if (deps.reads === "store") {
|
|
20023
20031
|
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`);
|
|
@@ -20398,7 +20406,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
20398
20406
|
return message?.timestamp ?? fallback;
|
|
20399
20407
|
}, "timeOfKey");
|
|
20400
20408
|
|
|
20401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
20402
20410
|
var LINKS = /https?:\/\/\S+/g;
|
|
20403
20411
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before).map(({ question }) => question), "unanswered");
|
|
20404
20412
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -20428,7 +20436,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
20428
20436
|
});
|
|
20429
20437
|
}, "questions");
|
|
20430
20438
|
|
|
20431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
20432
20440
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
20433
20441
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
20434
20442
|
const name = typed.trim().toLowerCase();
|
|
@@ -20485,7 +20493,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
20485
20493
|
return best.name;
|
|
20486
20494
|
}, "categorize");
|
|
20487
20495
|
|
|
20488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
20489
20497
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
20490
20498
|
var RULES_IN = {
|
|
20491
20499
|
dialog: "all",
|
|
@@ -20691,11 +20699,11 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
20691
20699
|
return passes;
|
|
20692
20700
|
}, "applyTaskRulesToChats");
|
|
20693
20701
|
|
|
20694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
20695
20703
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
20696
20704
|
var encoder = new TextEncoder();
|
|
20697
20705
|
|
|
20698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20699
20707
|
var DAY_MS = 864e5;
|
|
20700
20708
|
var NEW_DAYS = 30;
|
|
20701
20709
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20772,7 +20780,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20772
20780
|
};
|
|
20773
20781
|
}, "scorePerson");
|
|
20774
20782
|
|
|
20775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20776
20784
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20777
20785
|
const controller = new AbortController();
|
|
20778
20786
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20788,7 +20796,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
20788
20796
|
}
|
|
20789
20797
|
}, "withTimeLimit");
|
|
20790
20798
|
|
|
20791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20792
20800
|
var REGISTRIES = {
|
|
20793
20801
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20794
20802
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20875,7 +20883,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20875
20883
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20876
20884
|
})), "notCovered");
|
|
20877
20885
|
|
|
20878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20879
20887
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20880
20888
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20881
20889
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20963,7 +20971,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20963
20971
|
};
|
|
20964
20972
|
}, "botCheckService");
|
|
20965
20973
|
|
|
20966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20967
20975
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20968
20976
|
if (value === void 0)
|
|
20969
20977
|
return void 0;
|
|
@@ -20973,7 +20981,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20973
20981
|
return id2;
|
|
20974
20982
|
}, "threadIdOf");
|
|
20975
20983
|
|
|
20976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20977
20985
|
var TOP_POSTS = 5;
|
|
20978
20986
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20979
20987
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -21090,7 +21098,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
21090
21098
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
21091
21099
|
}, "median");
|
|
21092
21100
|
|
|
21093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
21094
21102
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
21095
21103
|
const events = [];
|
|
21096
21104
|
for (const stay of stays) {
|
|
@@ -21122,7 +21130,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
21122
21130
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
21123
21131
|
}, "memberEvents");
|
|
21124
21132
|
|
|
21125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
21126
21134
|
var EVENTS_DAYS = 7;
|
|
21127
21135
|
var TRACKED_DAYS = 30;
|
|
21128
21136
|
var STATS_PAGE = 1e3;
|
|
@@ -21417,7 +21425,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21417
21425
|
return members.length === 0 ? null : members;
|
|
21418
21426
|
}, "storedMembers");
|
|
21419
21427
|
|
|
21420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21421
21429
|
var INBOX_CHATS = 20;
|
|
21422
21430
|
var REVIEW_DAYS = 3;
|
|
21423
21431
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21625,7 +21633,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21625
21633
|
};
|
|
21626
21634
|
}, "inboxService");
|
|
21627
21635
|
|
|
21628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
21629
21637
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
21630
21638
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
21631
21639
|
const { text: text2, spans } = formatted2;
|
|
@@ -21685,7 +21693,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
21685
21693
|
};
|
|
21686
21694
|
}, "visibleFormattedText");
|
|
21687
21695
|
|
|
21688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
21689
21697
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
21690
21698
|
var LINK2 = /https?:\/\/\S+/i;
|
|
21691
21699
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -21873,7 +21881,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
21873
21881
|
}, "nextPoint");
|
|
21874
21882
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
21875
21883
|
|
|
21876
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
21877
21885
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync4 } from "node:fs";
|
|
21878
21886
|
import { join as join4 } from "node:path";
|
|
21879
21887
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -22025,8 +22033,26 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
22025
22033
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
22026
22034
|
}, "assign");
|
|
22027
22035
|
|
|
22028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22037
|
+
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");
|
|
22038
|
+
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
22039
|
+
const flat = text2.replace(/\s+/g, " ").trim();
|
|
22040
|
+
if (flat.length <= size2)
|
|
22041
|
+
return flat;
|
|
22042
|
+
const lower = flat.toLowerCase();
|
|
22043
|
+
const literalWords = new Set((query.match(/[\p{L}\p{N}]+/gu) ?? []).map(fold));
|
|
22044
|
+
const found = options2.literal ? [...flat.matchAll(/[\p{L}\p{N}\p{M}]+/gu)].filter((match) => literalWords.has(fold(match[0]))).map((match) => match.index) : queryWords(query).map((word) => lower.indexOf(word)).filter((index) => index >= 0);
|
|
22045
|
+
const at = found.reduce((minimum, index) => Math.min(minimum, index), found[0] ?? 0);
|
|
22046
|
+
const start = Math.max(0, Math.min(at - Math.floor(size2 / 3), flat.length - size2));
|
|
22047
|
+
const end = start + size2;
|
|
22048
|
+
return `${start > 0 ? "\u2026" : ""}${flat.slice(start, end).trim()}${end < flat.length ? "\u2026" : ""}`;
|
|
22049
|
+
}, "excerpt");
|
|
22050
|
+
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22051
|
+
|
|
22052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
22029
22053
|
var SCAN = 1e3;
|
|
22054
|
+
var SNIPPET = 200;
|
|
22055
|
+
var SNIPPET_ROWS = 6;
|
|
22030
22056
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
22031
22057
|
const byId2 = new Map(accounts.map((one) => [one.id, one]));
|
|
22032
22058
|
let cut = false;
|
|
@@ -22061,6 +22087,14 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
22061
22087
|
if (meeting === void 0 || meeting.deletedAt !== null)
|
|
22062
22088
|
continue;
|
|
22063
22089
|
const transcripts = await store.meetings.transcripts({ accountId, meetingId, limit: 1 });
|
|
22090
|
+
const [transcript] = transcripts.items;
|
|
22091
|
+
const rows = transcript === void 0 ? [] : (await store.meetings.transcriptRows({
|
|
22092
|
+
accountId,
|
|
22093
|
+
meetingId,
|
|
22094
|
+
transcriptId: transcript.id,
|
|
22095
|
+
limit: SNIPPET_ROWS
|
|
22096
|
+
})).rows;
|
|
22097
|
+
const said = rows.map(({ text: text2 }) => text2).join(" ");
|
|
22064
22098
|
const account = byId2.get(accountId);
|
|
22065
22099
|
const call = meetingCallItem(meeting);
|
|
22066
22100
|
items.push({
|
|
@@ -22070,7 +22104,8 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
22070
22104
|
title: meeting.title,
|
|
22071
22105
|
startedAt: meeting.startedAt === null ? null : new Date(meeting.startedAt).toISOString(),
|
|
22072
22106
|
durationMs: meeting.durationMs,
|
|
22073
|
-
hasTranscript:
|
|
22107
|
+
hasTranscript: transcript !== void 0,
|
|
22108
|
+
snippet: said.trim() ? excerpt(said, "", SNIPPET) : null,
|
|
22074
22109
|
event: meeting.eventId === null ? null : `event:${meeting.eventId}`,
|
|
22075
22110
|
people: who2,
|
|
22076
22111
|
...call ? { call } : {}
|
|
@@ -22079,7 +22114,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
22079
22114
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
22080
22115
|
}, "personMeetings");
|
|
22081
22116
|
|
|
22082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
22083
22118
|
var CONTEXT_MESSAGES2 = 10;
|
|
22084
22119
|
var CONTEXT_BYTES = 64 * 1024;
|
|
22085
22120
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -22385,10 +22420,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
22385
22420
|
};
|
|
22386
22421
|
}, "personMessages");
|
|
22387
22422
|
|
|
22388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22389
22424
|
import { createHash } from "node:crypto";
|
|
22390
22425
|
|
|
22391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
22392
22427
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
22393
22428
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
22394
22429
|
const parsed = parseMeetingReference(reference);
|
|
@@ -22406,7 +22441,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
22406
22441
|
return { parsed, meeting };
|
|
22407
22442
|
}, "authorizedMeetingMetadata");
|
|
22408
22443
|
|
|
22409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22410
22445
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
22411
22446
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
22412
22447
|
if (signal?.aborted)
|
|
@@ -22605,7 +22640,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22605
22640
|
return { ...packet, fingerprint: hash(packet) };
|
|
22606
22641
|
}, "readMeetingEvidence");
|
|
22607
22642
|
|
|
22608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22609
22644
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22610
22645
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22611
22646
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22704,7 +22739,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22704
22739
|
};
|
|
22705
22740
|
}, "personMeetingContext");
|
|
22706
22741
|
|
|
22707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22708
22743
|
var PREPARE_BYTES = 96 * 1024;
|
|
22709
22744
|
var MEETINGS = 5;
|
|
22710
22745
|
var CUES = 3;
|
|
@@ -22827,7 +22862,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22827
22862
|
}
|
|
22828
22863
|
}, "meetingsOf");
|
|
22829
22864
|
|
|
22830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22831
22866
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22832
22867
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22833
22868
|
const held = await storeIfOpen(deps);
|
|
@@ -22897,7 +22932,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22897
22932
|
complete: false
|
|
22898
22933
|
})), "quiet");
|
|
22899
22934
|
|
|
22900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22901
22936
|
var TIMELINE_ITEMS = 50;
|
|
22902
22937
|
var TIMELINE_MAX = 500;
|
|
22903
22938
|
var SCOPES = ["personal", "work"];
|
|
@@ -22959,7 +22994,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22959
22994
|
};
|
|
22960
22995
|
}, "personTimeline");
|
|
22961
22996
|
|
|
22962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22963
22998
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22964
22999
|
const ids = [...new Set(chatIds)];
|
|
22965
23000
|
if (ids.length === 0)
|
|
@@ -22985,7 +23020,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22985
23020
|
}));
|
|
22986
23021
|
}, "chatCoverage");
|
|
22987
23022
|
|
|
22988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22989
23024
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22990
23025
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22991
23026
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -23049,7 +23084,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
23049
23084
|
}
|
|
23050
23085
|
}, "validateContextEvidencePage");
|
|
23051
23086
|
|
|
23052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
23053
23088
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
23054
23089
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
23055
23090
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -23102,7 +23137,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
23102
23137
|
};
|
|
23103
23138
|
}, "contextReadBudget");
|
|
23104
23139
|
|
|
23105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
23106
23141
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
23107
23142
|
if (!port || typeof port.read !== "function")
|
|
23108
23143
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -23146,23 +23181,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
23146
23181
|
};
|
|
23147
23182
|
}, "createContextEvidenceReader");
|
|
23148
23183
|
|
|
23149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23150
|
-
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");
|
|
23151
|
-
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
23152
|
-
const flat = text2.replace(/\s+/g, " ").trim();
|
|
23153
|
-
if (flat.length <= size2)
|
|
23154
|
-
return flat;
|
|
23155
|
-
const lower = flat.toLowerCase();
|
|
23156
|
-
const literalWords = new Set((query.match(/[\p{L}\p{N}]+/gu) ?? []).map(fold));
|
|
23157
|
-
const found = options2.literal ? [...flat.matchAll(/[\p{L}\p{N}\p{M}]+/gu)].filter((match) => literalWords.has(fold(match[0]))).map((match) => match.index) : queryWords(query).map((word) => lower.indexOf(word)).filter((index) => index >= 0);
|
|
23158
|
-
const at = found.reduce((minimum, index) => Math.min(minimum, index), found[0] ?? 0);
|
|
23159
|
-
const start = Math.max(0, Math.min(at - Math.floor(size2 / 3), flat.length - size2));
|
|
23160
|
-
const end = start + size2;
|
|
23161
|
-
return `${start > 0 ? "\u2026" : ""}${flat.slice(start, end).trim()}${end < flat.length ? "\u2026" : ""}`;
|
|
23162
|
-
}, "excerpt");
|
|
23163
|
-
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23164
|
-
|
|
23165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23166
23185
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23167
23186
|
async around(ref, window3) {
|
|
23168
23187
|
const at = parseLocator(ref);
|
|
@@ -23257,7 +23276,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23257
23276
|
};
|
|
23258
23277
|
}, "storedNeighbours");
|
|
23259
23278
|
|
|
23260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23261
23280
|
import { createHash as createHash2 } from "node:crypto";
|
|
23262
23281
|
var DAY = 864e5;
|
|
23263
23282
|
var MAX_TIME = 864e13;
|
|
@@ -23573,7 +23592,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23573
23592
|
return value;
|
|
23574
23593
|
}, "decodeCheckpoint");
|
|
23575
23594
|
|
|
23576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23577
23596
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23578
23597
|
var PAGE3 = 20;
|
|
23579
23598
|
var PEOPLE = 20;
|
|
@@ -23977,7 +23996,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23977
23996
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23978
23997
|
}, "peopleOf");
|
|
23979
23998
|
|
|
23980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23981
24000
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23982
24001
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23983
24002
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24021,7 +24040,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24021
24040
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24022
24041
|
}, "matchVocabularyTerms");
|
|
24023
24042
|
|
|
24024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24025
24044
|
var KINDS = ["project", "tag", "topic"];
|
|
24026
24045
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
24027
24046
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24076,7 +24095,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24076
24095
|
};
|
|
24077
24096
|
}, "findEvidenceMentions");
|
|
24078
24097
|
|
|
24079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
24080
24099
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
24081
24100
|
var DEFAULT_PURPOSES = ["work"];
|
|
24082
24101
|
var LINK_PURPOSE = "work";
|
|
@@ -24106,7 +24125,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
24106
24125
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
24107
24126
|
], "purposeList");
|
|
24108
24127
|
|
|
24109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
24110
24129
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24111
24130
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24112
24131
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -24417,7 +24436,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24417
24436
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24418
24437
|
}, "purposeHintOf");
|
|
24419
24438
|
|
|
24420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
24421
24440
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
24422
24441
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
24423
24442
|
const held = await storeIfOpen(deps);
|
|
@@ -24682,7 +24701,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24682
24701
|
return rest;
|
|
24683
24702
|
}, "withoutPhone");
|
|
24684
24703
|
|
|
24685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
24686
24705
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24687
24706
|
var PERIOD_FIELD = "created";
|
|
24688
24707
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24813,7 +24832,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
24813
24832
|
}));
|
|
24814
24833
|
}, "meetingNames");
|
|
24815
24834
|
|
|
24816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
24817
24836
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24818
24837
|
const tags = /* @__PURE__ */ new Map();
|
|
24819
24838
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24822,7 +24841,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24822
24841
|
return tags;
|
|
24823
24842
|
}, "taskTagFilters");
|
|
24824
24843
|
|
|
24825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
24826
24845
|
var TASK_QUERY = {
|
|
24827
24846
|
entity: "task",
|
|
24828
24847
|
backend: "sql",
|
|
@@ -25322,7 +25341,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
25322
25341
|
};
|
|
25323
25342
|
}, "taskView");
|
|
25324
25343
|
|
|
25325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
25326
25345
|
import { readFileSync as readFileSync5, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
25327
25346
|
import { join as join5 } from "node:path";
|
|
25328
25347
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -25417,7 +25436,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
25417
25436
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
25418
25437
|
}, "waitForTurn");
|
|
25419
25438
|
|
|
25420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
25421
25440
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
25422
25441
|
if (newest === null)
|
|
25423
25442
|
return null;
|
|
@@ -25426,7 +25445,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
25426
25445
|
return newest.addressed ? "owed" : null;
|
|
25427
25446
|
}, "mailTurn");
|
|
25428
25447
|
|
|
25429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
25430
25449
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
25431
25450
|
if (error instanceof CliError && error.code === "not_found")
|
|
25432
25451
|
return void 0;
|
|
@@ -25484,7 +25503,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
25484
25503
|
};
|
|
25485
25504
|
}, "mailActivity");
|
|
25486
25505
|
|
|
25487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
25488
25507
|
var DAY2 = 864e5;
|
|
25489
25508
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
25490
25509
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25738,18 +25757,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25738
25757
|
};
|
|
25739
25758
|
}, "agendaItem");
|
|
25740
25759
|
|
|
25741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25742
25761
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25743
25762
|
|
|
25744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25745
25764
|
import { lstat } from "node:fs/promises";
|
|
25746
25765
|
|
|
25747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25748
25767
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25749
25768
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25750
25769
|
import { join as join7 } from "node:path";
|
|
25751
25770
|
|
|
25752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25753
25772
|
import { createHash as createHash3 } from "node:crypto";
|
|
25754
25773
|
var metadataLimit = 16384;
|
|
25755
25774
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25809,7 +25828,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25809
25828
|
}
|
|
25810
25829
|
}, "readPartialMetadata");
|
|
25811
25830
|
|
|
25812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25813
25832
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25814
25833
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25815
25834
|
import { join as join6 } from "node:path";
|
|
@@ -25901,7 +25920,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25901
25920
|
};
|
|
25902
25921
|
}, "partialWriter");
|
|
25903
25922
|
|
|
25904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25905
25924
|
var NativeRecordingPartialStore = class {
|
|
25906
25925
|
static {
|
|
25907
25926
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -26008,12 +26027,12 @@ var NativeRecordingPartialStore = class {
|
|
|
26008
26027
|
}
|
|
26009
26028
|
};
|
|
26010
26029
|
|
|
26011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26012
26031
|
import { createHash as createHash5 } from "node:crypto";
|
|
26013
26032
|
import { link as link2 } from "node:fs/promises";
|
|
26014
26033
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
26015
26034
|
|
|
26016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
26017
26036
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
26018
26037
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
26019
26038
|
signal?.throwIfAborted();
|
|
@@ -26048,7 +26067,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
26048
26067
|
signal?.throwIfAborted();
|
|
26049
26068
|
}, "commitPublication");
|
|
26050
26069
|
|
|
26051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
26052
26071
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
26053
26072
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
26054
26073
|
import { join as join8 } from "node:path";
|
|
@@ -26121,7 +26140,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26121
26140
|
}
|
|
26122
26141
|
}, "writePublicationJournal");
|
|
26123
26142
|
|
|
26124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26125
26144
|
var NativeRecordingPublication = class {
|
|
26126
26145
|
static {
|
|
26127
26146
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26194,7 +26213,7 @@ var NativeRecordingPublication = class {
|
|
|
26194
26213
|
}
|
|
26195
26214
|
};
|
|
26196
26215
|
|
|
26197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26198
26217
|
import { createHash as createHash6 } from "node:crypto";
|
|
26199
26218
|
import { readdir } from "node:fs/promises";
|
|
26200
26219
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -26281,7 +26300,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
26281
26300
|
beforePublish
|
|
26282
26301
|
}), "commitMediaEntry");
|
|
26283
26302
|
|
|
26284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26285
26304
|
var validator = '"media-completed-v1"';
|
|
26286
26305
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26287
26306
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26382,7 +26401,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26382
26401
|
return entry;
|
|
26383
26402
|
}, "archiveMediaFile");
|
|
26384
26403
|
|
|
26385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26386
26405
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26387
26406
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
26388
26407
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26449,7 +26468,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26449
26468
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26450
26469
|
}, "withMediaArchiveLocks");
|
|
26451
26470
|
|
|
26452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26453
26472
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
26454
26473
|
const entries = await readMediaManifests(root, signal);
|
|
26455
26474
|
if (!entries.length)
|
|
@@ -26592,7 +26611,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
26592
26611
|
}, { create: true });
|
|
26593
26612
|
}, "archiveMedia");
|
|
26594
26613
|
|
|
26595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26596
26615
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26597
26616
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
26598
26617
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26743,7 +26762,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26743
26762
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26744
26763
|
}, "moveMediaArchive");
|
|
26745
26764
|
|
|
26746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26747
26766
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
26748
26767
|
import { join as join13 } from "node:path";
|
|
26749
26768
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -26768,7 +26787,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26768
26787
|
`);
|
|
26769
26788
|
await nativeRuntime({ env, progress });
|
|
26770
26789
|
progress(`${model.id}: loading it once to check it works`);
|
|
26771
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26790
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-TOSWWMDL.js");
|
|
26772
26791
|
const embedder = await openEmbedder2(model, directory2);
|
|
26773
26792
|
try {
|
|
26774
26793
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26789,7 +26808,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26789
26808
|
}
|
|
26790
26809
|
await nativeRuntime({ env, progress });
|
|
26791
26810
|
progress(`${model.id}: loading it once to check it works`);
|
|
26792
|
-
const { openReranker } = await import("./rerank-
|
|
26811
|
+
const { openReranker } = await import("./rerank-2DSO3D3S.js");
|
|
26793
26812
|
const reranker = await openReranker(model, directory2);
|
|
26794
26813
|
try {
|
|
26795
26814
|
await reranker.score("check", ["check"]);
|
|
@@ -26807,7 +26826,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26807
26826
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26808
26827
|
}
|
|
26809
26828
|
progress(`${model.id}: loading it once to check it works`);
|
|
26810
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26829
|
+
const { openPictureEmbedder } = await import("./embedder-JHIQSBGD.js");
|
|
26811
26830
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26812
26831
|
try {
|
|
26813
26832
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26819,7 +26838,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26819
26838
|
return { model, directory: directory2 };
|
|
26820
26839
|
}, "downloadImageModel");
|
|
26821
26840
|
|
|
26822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26841
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26823
26842
|
var MONEY_REQUEST = "money-request";
|
|
26824
26843
|
var MONEY_DONE = "money-done";
|
|
26825
26844
|
var PROMISE = "promise";
|
|
@@ -26853,10 +26872,10 @@ var MONEY_WORDS = [
|
|
|
26853
26872
|
}
|
|
26854
26873
|
];
|
|
26855
26874
|
|
|
26856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26857
26876
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26858
26877
|
|
|
26859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26860
26879
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26861
26880
|
var MONEY_DONE_FORMS = words2([
|
|
26862
26881
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26896,7 +26915,7 @@ var PROMISE_FORMS = words2([
|
|
|
26896
26915
|
"estar\xE1 listo"
|
|
26897
26916
|
]);
|
|
26898
26917
|
|
|
26899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26900
26919
|
var EXCERPT_CHARS = 80;
|
|
26901
26920
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26902
26921
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26918,7 +26937,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26918
26937
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26919
26938
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26920
26939
|
|
|
26921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26940
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26922
26941
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26923
26942
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26924
26943
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26999,7 +27018,7 @@ var amounts = {
|
|
|
26999
27018
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
27000
27019
|
};
|
|
27001
27020
|
|
|
27002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
27003
27022
|
var children = {
|
|
27004
27023
|
id: "children",
|
|
27005
27024
|
version: 1,
|
|
@@ -27028,7 +27047,7 @@ var children = {
|
|
|
27028
27047
|
}, "read")
|
|
27029
27048
|
};
|
|
27030
27049
|
|
|
27031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
27032
27051
|
var coverage = {
|
|
27033
27052
|
id: "coverage",
|
|
27034
27053
|
version: 1,
|
|
@@ -27057,7 +27076,7 @@ var coverage = {
|
|
|
27057
27076
|
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")
|
|
27058
27077
|
};
|
|
27059
27078
|
|
|
27060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
27061
27080
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
27062
27081
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
27063
27082
|
signal: "payments",
|
|
@@ -27107,7 +27126,7 @@ var payments = {
|
|
|
27107
27126
|
}, "read")
|
|
27108
27127
|
};
|
|
27109
27128
|
|
|
27110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
27111
27130
|
var PATTERNS_PER_CHAT = 3;
|
|
27112
27131
|
var DAY3 = 864e5;
|
|
27113
27132
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27196,7 +27215,7 @@ var promises = {
|
|
|
27196
27215
|
}, "read")
|
|
27197
27216
|
};
|
|
27198
27217
|
|
|
27199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27200
27219
|
var PER_SIDE = 5;
|
|
27201
27220
|
var WEEK = 7 * 864e5;
|
|
27202
27221
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27227,7 +27246,7 @@ var questions2 = {
|
|
|
27227
27246
|
}, "attention")
|
|
27228
27247
|
};
|
|
27229
27248
|
|
|
27230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27231
27250
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27232
27251
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
27233
27252
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27295,7 +27314,7 @@ var replyNext = {
|
|
|
27295
27314
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27296
27315
|
};
|
|
27297
27316
|
|
|
27298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27299
27318
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27300
27319
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27301
27320
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27341,7 +27360,7 @@ var topics = {
|
|
|
27341
27360
|
}, "read")
|
|
27342
27361
|
};
|
|
27343
27362
|
|
|
27344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27345
27364
|
var STATUS_SIGNALS = [
|
|
27346
27365
|
replyNext,
|
|
27347
27366
|
questions2,
|
|
@@ -27353,7 +27372,7 @@ var STATUS_SIGNALS = [
|
|
|
27353
27372
|
children
|
|
27354
27373
|
];
|
|
27355
27374
|
|
|
27356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27357
27376
|
var DAY4 = 864e5;
|
|
27358
27377
|
var STATUS_WINDOW = 300;
|
|
27359
27378
|
var STATUS_CHATS = 16;
|
|
@@ -27542,7 +27561,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27542
27561
|
};
|
|
27543
27562
|
}, "projectStatus");
|
|
27544
27563
|
|
|
27545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27546
27565
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27547
27566
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27548
27567
|
if (deps.offline)
|
|
@@ -27614,7 +27633,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27614
27633
|
};
|
|
27615
27634
|
}, "accountService");
|
|
27616
27635
|
|
|
27617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27618
27637
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
27619
27638
|
const at = aheadOf(value, flag, now, {
|
|
27620
27639
|
...zone === void 0 ? {} : { zone },
|
|
@@ -27625,7 +27644,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27625
27644
|
return new Date(at - at % MINUTE).toISOString();
|
|
27626
27645
|
}, "sendTime");
|
|
27627
27646
|
|
|
27628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27629
27648
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
27630
27649
|
try {
|
|
27631
27650
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27872,7 +27891,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27872
27891
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27873
27892
|
}, "linkLimits");
|
|
27874
27893
|
|
|
27875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27876
27895
|
var THREADS_PAGE = 500;
|
|
27877
27896
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27878
27897
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27947,7 +27966,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
27947
27966
|
return thread.slice(Math.max(0, at - before), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27948
27967
|
}, "readMail");
|
|
27949
27968
|
|
|
27950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27951
27970
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27952
27971
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27953
27972
|
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");
|
|
@@ -28314,7 +28333,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28314
28333
|
};
|
|
28315
28334
|
}, "statsLucene");
|
|
28316
28335
|
|
|
28317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28318
28337
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28319
28338
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28320
28339
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28483,7 +28502,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28483
28502
|
};
|
|
28484
28503
|
}, "readRankingSelection");
|
|
28485
28504
|
|
|
28486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28487
28506
|
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");
|
|
28488
28507
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28489
28508
|
command,
|
|
@@ -28493,7 +28512,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28493
28512
|
fieldsVersion: FIELD_VERSION
|
|
28494
28513
|
}), "searchRecordOf");
|
|
28495
28514
|
|
|
28496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28497
28516
|
function invalid4(message) {
|
|
28498
28517
|
throw new CliError("validation_error", message);
|
|
28499
28518
|
}
|
|
@@ -28787,7 +28806,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28787
28806
|
}, "evidence")
|
|
28788
28807
|
}), "adminStatisticsService");
|
|
28789
28808
|
|
|
28790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28791
28810
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28792
28811
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28793
28812
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28924,12 +28943,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28924
28943
|
return { plan, repair };
|
|
28925
28944
|
}, "gapsService");
|
|
28926
28945
|
|
|
28927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28928
28947
|
import { createHash as createHash10 } from "node:crypto";
|
|
28929
28948
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28930
28949
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28931
28950
|
|
|
28932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28933
28952
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28934
28953
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
28935
28954
|
var MAX_FILES = 1e4;
|
|
@@ -29000,15 +29019,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
29000
29019
|
return choices;
|
|
29001
29020
|
}, "directoryPaths");
|
|
29002
29021
|
|
|
29003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29004
29023
|
import { posix } from "node:path";
|
|
29005
29024
|
|
|
29006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29007
29026
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29008
29027
|
import { crc32 } from "node:zlib";
|
|
29009
29028
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29010
29029
|
|
|
29011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29012
29031
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29013
29032
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29014
29033
|
var SAMPLE = 65536;
|
|
@@ -29110,7 +29129,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29110
29129
|
return result.text;
|
|
29111
29130
|
}, "decodeXml");
|
|
29112
29131
|
|
|
29113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29114
29133
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29115
29134
|
var MAX_ENTRIES = 1e3;
|
|
29116
29135
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29325,7 +29344,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29325
29344
|
return found;
|
|
29326
29345
|
}, "elements");
|
|
29327
29346
|
|
|
29328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29329
29348
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29330
29349
|
let name = "";
|
|
29331
29350
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29380,7 +29399,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29380
29399
|
return { text: parts.join("").trim(), truncated: false };
|
|
29381
29400
|
}, "sheetText");
|
|
29382
29401
|
|
|
29383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29384
29403
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29385
29404
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29386
29405
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29780,10 +29799,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29780
29799
|
}
|
|
29781
29800
|
}, "readDocument");
|
|
29782
29801
|
|
|
29783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29784
29803
|
import { extname as extname3 } from "node:path";
|
|
29785
29804
|
|
|
29786
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29787
29806
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
29788
29807
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
29789
29808
|
import { fileURLToPath } from "node:url";
|
|
@@ -29844,7 +29863,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29844
29863
|
}
|
|
29845
29864
|
}, "derived");
|
|
29846
29865
|
|
|
29847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29848
29867
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29849
29868
|
var image2 = {
|
|
29850
29869
|
id: "image",
|
|
@@ -29853,7 +29872,7 @@ var image2 = {
|
|
|
29853
29872
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29854
29873
|
};
|
|
29855
29874
|
|
|
29856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29857
29876
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29858
29877
|
var doc = {
|
|
29859
29878
|
id: "doc",
|
|
@@ -29865,7 +29884,7 @@ var doc = {
|
|
|
29865
29884
|
}), "read")
|
|
29866
29885
|
};
|
|
29867
29886
|
|
|
29868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29869
29888
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29870
29889
|
var docx = {
|
|
29871
29890
|
id: "docx",
|
|
@@ -29878,10 +29897,10 @@ var docx = {
|
|
|
29878
29897
|
}), "read")
|
|
29879
29898
|
};
|
|
29880
29899
|
|
|
29881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29882
29901
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29883
29902
|
|
|
29884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
29885
29904
|
var NAMED = {
|
|
29886
29905
|
amp: "&",
|
|
29887
29906
|
lt: "<",
|
|
@@ -29933,7 +29952,7 @@ var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-
|
|
|
29933
29952
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
29934
29953
|
}), "decodeEntities");
|
|
29935
29954
|
|
|
29936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29937
29956
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29938
29957
|
"fonttbl",
|
|
29939
29958
|
"colortbl",
|
|
@@ -30099,7 +30118,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30099
30118
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
30100
30119
|
}, "htmlText");
|
|
30101
30120
|
|
|
30102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30103
30122
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30104
30123
|
var namesIn2 = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30105
30124
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30155,7 +30174,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30155
30174
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30156
30175
|
}, "markdownSections");
|
|
30157
30176
|
|
|
30158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30159
30178
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30160
30179
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30161
30180
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30226,7 +30245,7 @@ var html = {
|
|
|
30226
30245
|
}, "read")
|
|
30227
30246
|
};
|
|
30228
30247
|
|
|
30229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30230
30249
|
var office = {
|
|
30231
30250
|
id: "office",
|
|
30232
30251
|
version: documentExtractor("odt"),
|
|
@@ -30237,7 +30256,7 @@ var office = {
|
|
|
30237
30256
|
}, "read")
|
|
30238
30257
|
};
|
|
30239
30258
|
|
|
30240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30241
30260
|
var pdf = {
|
|
30242
30261
|
id: "pdf",
|
|
30243
30262
|
version: "unpdf",
|
|
@@ -30304,7 +30323,7 @@ var pdf = {
|
|
|
30304
30323
|
}), "read")
|
|
30305
30324
|
};
|
|
30306
30325
|
|
|
30307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30308
30327
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30309
30328
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30310
30329
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30324,7 +30343,7 @@ var plain = {
|
|
|
30324
30343
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30325
30344
|
};
|
|
30326
30345
|
|
|
30327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30328
30347
|
var rtf = {
|
|
30329
30348
|
id: "rtf",
|
|
30330
30349
|
version: "v1",
|
|
@@ -30332,10 +30351,10 @@ var rtf = {
|
|
|
30332
30351
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30333
30352
|
};
|
|
30334
30353
|
|
|
30335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30336
30355
|
import { basename as basename5 } from "node:path";
|
|
30337
30356
|
|
|
30338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30339
30358
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30340
30359
|
const cells = [];
|
|
30341
30360
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30373,7 +30392,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30373
30392
|
return { cells, truncated };
|
|
30374
30393
|
}, "delimitedSpans");
|
|
30375
30394
|
|
|
30376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30377
30396
|
var DELIMITED = {
|
|
30378
30397
|
".csv": ",",
|
|
30379
30398
|
".tsv": " ",
|
|
@@ -30412,7 +30431,7 @@ var sheets = {
|
|
|
30412
30431
|
}, "read")
|
|
30413
30432
|
};
|
|
30414
30433
|
|
|
30415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30434
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30416
30435
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30417
30436
|
var HEAD_BYTES = 1024;
|
|
30418
30437
|
var readers = [...BUILT_INS2];
|
|
@@ -30422,7 +30441,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30422
30441
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30423
30442
|
}, "readWithRegistry");
|
|
30424
30443
|
|
|
30425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30426
30445
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30427
30446
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30428
30447
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31501,7 +31520,7 @@ function imageSize(input) {
|
|
|
31501
31520
|
}
|
|
31502
31521
|
__name(imageSize, "imageSize");
|
|
31503
31522
|
|
|
31504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31505
31524
|
var MAX_PAGES = 20;
|
|
31506
31525
|
var MAX_PIXELS = 2e7;
|
|
31507
31526
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31661,7 +31680,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31661
31680
|
}
|
|
31662
31681
|
}, "ocrPdf");
|
|
31663
31682
|
|
|
31664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31665
31684
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31666
31685
|
const limits = pdfPreviewLimits(env);
|
|
31667
31686
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31738,7 +31757,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31738
31757
|
}
|
|
31739
31758
|
}, "pdfPreview");
|
|
31740
31759
|
|
|
31741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
31742
31761
|
import { spawn } from "node:child_process";
|
|
31743
31762
|
import { mkdtempSync, readFileSync as readFileSync7, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
31744
31763
|
import { tmpdir } from "node:os";
|
|
@@ -31901,7 +31920,7 @@ Read the attached picture.`,
|
|
|
31901
31920
|
}
|
|
31902
31921
|
}, "readPictureWithAgent");
|
|
31903
31922
|
|
|
31904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31923
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31905
31924
|
import { createHash as createHash8 } from "node:crypto";
|
|
31906
31925
|
import { constants } from "node:fs";
|
|
31907
31926
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -32009,7 +32028,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
32009
32028
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
32010
32029
|
}, "transferMime");
|
|
32011
32030
|
|
|
32012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
32013
32032
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
32014
32033
|
import { link as link3, rm } from "node:fs/promises";
|
|
32015
32034
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -32123,12 +32142,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32123
32142
|
}
|
|
32124
32143
|
}, "save");
|
|
32125
32144
|
|
|
32126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32127
32146
|
import { createHash as createHash9 } from "node:crypto";
|
|
32128
32147
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
32129
32148
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32130
32149
|
|
|
32131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32132
32151
|
var GROUP_SETTINGS = [
|
|
32133
32152
|
"allCanPin",
|
|
32134
32153
|
"onlyAdminsAdd",
|
|
@@ -32142,7 +32161,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32142
32161
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32143
32162
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32144
32163
|
|
|
32145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32146
32165
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32147
32166
|
var PICTURE_FLOOR = 0.25;
|
|
32148
32167
|
var PAGE4 = 50;
|
|
@@ -32183,7 +32202,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32183
32202
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32184
32203
|
if (!isImageModelInstalled(model2, directory2))
|
|
32185
32204
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32186
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32205
|
+
const { openPictureEmbedder } = await import("./embedder-JHIQSBGD.js");
|
|
32187
32206
|
return openPictureEmbedder(model2, directory2);
|
|
32188
32207
|
}, "open");
|
|
32189
32208
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32357,7 +32376,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32357
32376
|
}, "search")
|
|
32358
32377
|
}), "withPictures");
|
|
32359
32378
|
|
|
32360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32361
32380
|
var ATTACHMENT_QUERY = {
|
|
32362
32381
|
entity: "attachment",
|
|
32363
32382
|
backend: "sql",
|
|
@@ -32828,7 +32847,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32828
32847
|
}, "readPicture")
|
|
32829
32848
|
}), "attachmentsService");
|
|
32830
32849
|
|
|
32831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32832
32851
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32833
32852
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32834
32853
|
const store = await accountStore(deps);
|
|
@@ -32858,7 +32877,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32858
32877
|
}, "list")
|
|
32859
32878
|
}), "chatDocumentsService");
|
|
32860
32879
|
|
|
32861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32862
32881
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32863
32882
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32864
32883
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32945,7 +32964,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32945
32964
|
}
|
|
32946
32965
|
}, "isRetentionSelection");
|
|
32947
32966
|
|
|
32948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32949
32968
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32950
32969
|
const fields = text2.split(",").map((one) => one.trim());
|
|
32951
32970
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -33152,7 +33171,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33152
33171
|
};
|
|
33153
33172
|
}, "countersService");
|
|
33154
33173
|
|
|
33155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
33156
33175
|
var SYNC_KEY = "messages.sync-first";
|
|
33157
33176
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
33158
33177
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -33284,7 +33303,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
33284
33303
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
33285
33304
|
}), "withRefresh");
|
|
33286
33305
|
|
|
33287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
33288
33307
|
var CANDIDATES = 50;
|
|
33289
33308
|
var WORD_HITS = 200;
|
|
33290
33309
|
var RRF_K2 = 60;
|
|
@@ -33582,13 +33601,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33582
33601
|
return mean2.map((value) => value / length);
|
|
33583
33602
|
}, "meanOf");
|
|
33584
33603
|
|
|
33585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33586
33605
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33587
33606
|
...embeddingsMaintenance(deps),
|
|
33588
33607
|
...embeddingsSearch(deps)
|
|
33589
33608
|
}), "embeddingsService");
|
|
33590
33609
|
|
|
33591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33592
33611
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33593
33612
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33594
33613
|
if (deps.offline)
|
|
@@ -33729,7 +33748,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33729
33748
|
};
|
|
33730
33749
|
}, "foldersService");
|
|
33731
33750
|
|
|
33732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33733
33752
|
var REVIEW_COUNT = 500;
|
|
33734
33753
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33735
33754
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33808,7 +33827,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33808
33827
|
};
|
|
33809
33828
|
}, "mentionsService");
|
|
33810
33829
|
|
|
33811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33812
33831
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33813
33832
|
position,
|
|
33814
33833
|
kind,
|
|
@@ -33857,7 +33876,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33857
33876
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33858
33877
|
}, "validatePermalink");
|
|
33859
33878
|
|
|
33860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33861
33880
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33862
33881
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33863
33882
|
return `${seconds / 86400}d`;
|
|
@@ -33889,7 +33908,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33889
33908
|
return seconds;
|
|
33890
33909
|
}, "pinDurationOf");
|
|
33891
33910
|
|
|
33892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33893
33912
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33894
33913
|
if (sendAs === void 0) {
|
|
33895
33914
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33914,7 +33933,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33914
33933
|
return sendAs;
|
|
33915
33934
|
}, "typedSendAs");
|
|
33916
33935
|
|
|
33917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33918
33937
|
var TOTAL_CAP = 1e4;
|
|
33919
33938
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33920
33939
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33925,7 +33944,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33925
33944
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33926
33945
|
}, "totalOf");
|
|
33927
33946
|
|
|
33928
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33929
33948
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33930
33949
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33931
33950
|
let narrows = false;
|
|
@@ -33954,7 +33973,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33954
33973
|
return wanted(root).join(" ").trim();
|
|
33955
33974
|
}, "meaningWords");
|
|
33956
33975
|
|
|
33957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33958
33977
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33959
33978
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33960
33979
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -34155,7 +34174,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
34155
34174
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
34156
34175
|
}, "signals");
|
|
34157
34176
|
|
|
34158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
34159
34178
|
var MEANING_DEPTH = 100;
|
|
34160
34179
|
var RRF_K3 = 60;
|
|
34161
34180
|
var RERANK_DEPTH = 50;
|
|
@@ -34481,7 +34500,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34481
34500
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34482
34501
|
}, "mixedWithReranker");
|
|
34483
34502
|
|
|
34484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34485
34504
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34486
34505
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34487
34506
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34680,7 +34699,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34680
34699
|
return result;
|
|
34681
34700
|
}, "readThreadContext");
|
|
34682
34701
|
|
|
34683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34684
34703
|
var SEARCH_FILL_MS = 200;
|
|
34685
34704
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34686
34705
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34749,7 +34768,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34749
34768
|
}, "accountOf");
|
|
34750
34769
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34751
34770
|
|
|
34752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
34753
34772
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34754
34773
|
const chosen = chosenTextModel(env);
|
|
34755
34774
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34764,7 +34783,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34764
34783
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34765
34784
|
}, "meaningModel");
|
|
34766
34785
|
|
|
34767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34768
34787
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34769
34788
|
try {
|
|
34770
34789
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34843,7 +34862,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34843
34862
|
}
|
|
34844
34863
|
}, "meaningLane");
|
|
34845
34864
|
|
|
34846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34847
34866
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34848
34867
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34849
34868
|
if (choice === "off")
|
|
@@ -34855,9 +34874,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34855
34874
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34856
34875
|
try {
|
|
34857
34876
|
const warm = deps.embedders;
|
|
34858
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34877
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-HI7OZBOI.js")).openRerankerProcess(model, directory2, {
|
|
34859
34878
|
threads: defaultThreads()
|
|
34860
|
-
})) : await (await import("./rerank-
|
|
34879
|
+
})) : await (await import("./rerank-2DSO3D3S.js")).openReranker(model, directory2);
|
|
34861
34880
|
return {
|
|
34862
34881
|
model: model.id,
|
|
34863
34882
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34877,7 +34896,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34877
34896
|
};
|
|
34878
34897
|
}, "rerankLane");
|
|
34879
34898
|
|
|
34880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34881
34900
|
var DAY5 = 864e5;
|
|
34882
34901
|
var SPAN = { start: 0, end: 0 };
|
|
34883
34902
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -35002,17 +35021,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
35002
35021
|
};
|
|
35003
35022
|
}, "questionPeriod");
|
|
35004
35023
|
|
|
35005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
35006
35025
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
35007
35026
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
35008
35027
|
const directory2 = imageModelsDirectory(env);
|
|
35009
35028
|
if (!isImageModelInstalled(model, directory2))
|
|
35010
35029
|
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 });
|
|
35011
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35030
|
+
const { openPictureEmbedder } = await import("./embedder-JHIQSBGD.js");
|
|
35012
35031
|
return openPictureEmbedder(model, directory2);
|
|
35013
35032
|
}, "openPictureEmbedderFor");
|
|
35014
35033
|
|
|
35015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35034
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
35016
35035
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
35017
35036
|
const metadata = note.frontMatter;
|
|
35018
35037
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -35034,7 +35053,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
35034
35053
|
};
|
|
35035
35054
|
}, "documentSource");
|
|
35036
35055
|
|
|
35037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
35038
35057
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
35039
35058
|
const host = new URL(baseUrl).host;
|
|
35040
35059
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -35067,7 +35086,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
35067
35086
|
};
|
|
35068
35087
|
}, "embeddingKeys");
|
|
35069
35088
|
|
|
35070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
35071
35090
|
var options = strictObject({
|
|
35072
35091
|
temperature: range(0, 2),
|
|
35073
35092
|
top_p: range(0, 1),
|
|
@@ -35134,7 +35153,7 @@ var openai = {
|
|
|
35134
35153
|
}), "complete")
|
|
35135
35154
|
};
|
|
35136
35155
|
|
|
35137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
35138
35157
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
35139
35158
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
35140
35159
|
if (deps.signal?.aborted)
|
|
@@ -35149,7 +35168,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35149
35168
|
if (!adapter && target2.provider === "openai")
|
|
35150
35169
|
adapter = openai;
|
|
35151
35170
|
if (!adapter && target2.provider === "anthropic")
|
|
35152
|
-
adapter = (await import("./anthropic-
|
|
35171
|
+
adapter = (await import("./anthropic-J6CTLU3W.js")).anthropic;
|
|
35153
35172
|
if (!adapter)
|
|
35154
35173
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
35155
35174
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -35209,7 +35228,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35209
35228
|
}, "complete")
|
|
35210
35229
|
}), "modelGateway");
|
|
35211
35230
|
|
|
35212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
35213
35232
|
var SECTION2 = "enrichment";
|
|
35214
35233
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
35215
35234
|
var DEFAULT_BASE_URLS = {
|
|
@@ -35284,7 +35303,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting2) => {
|
|
|
35284
35303
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
35285
35304
|
}, "costOf");
|
|
35286
35305
|
|
|
35287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
35288
35307
|
var ENRICH_PER_RUN = 600;
|
|
35289
35308
|
var MAX_LINE = 400;
|
|
35290
35309
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -35360,7 +35379,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
35360
35379
|
};
|
|
35361
35380
|
}, "enrichmentState");
|
|
35362
35381
|
|
|
35363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
35364
35383
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
35365
35384
|
let root;
|
|
35366
35385
|
try {
|
|
@@ -35387,7 +35406,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
35387
35406
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
35388
35407
|
}, "titleTiers");
|
|
35389
35408
|
|
|
35390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
35391
35410
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
35392
35411
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
35393
35412
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35815,7 +35834,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35815
35834
|
};
|
|
35816
35835
|
}, "searchNotesOf");
|
|
35817
35836
|
|
|
35818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35819
35838
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35820
35839
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35821
35840
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35933,7 +35952,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35933
35952
|
};
|
|
35934
35953
|
}, "searchEvents");
|
|
35935
35954
|
|
|
35936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35937
35956
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35938
35957
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35939
35958
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35963,7 +35982,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35963
35982
|
};
|
|
35964
35983
|
}, "searchBusiness");
|
|
35965
35984
|
|
|
35966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35967
35986
|
var MOST_HITS_PER_MEETING = 3;
|
|
35968
35987
|
var PAGE_ROWS = 200;
|
|
35969
35988
|
var MOST_PAGES = 25;
|
|
@@ -36191,7 +36210,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
36191
36210
|
foundBy: ["title"]
|
|
36192
36211
|
}), "titleItem");
|
|
36193
36212
|
|
|
36194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
36195
36214
|
var SECTION3 = "search_harder";
|
|
36196
36215
|
var HARDER_MODELS = {
|
|
36197
36216
|
anthropic: "claude-haiku-5-5",
|
|
@@ -36437,7 +36456,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
36437
36456
|
};
|
|
36438
36457
|
}, "reorderHarder");
|
|
36439
36458
|
|
|
36440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
36441
36460
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
36442
36461
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
36443
36462
|
const { reason, span } = error.details ?? {};
|
|
@@ -36686,6 +36705,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
36686
36705
|
anyWord: anyWord || discover,
|
|
36687
36706
|
...request.exact ? { exact: true } : {},
|
|
36688
36707
|
...request.crmKinds === void 0 ? {} : { kinds: request.crmKinds },
|
|
36708
|
+
...request.crmViewers === void 0 ? {} : { viewers: request.crmViewers },
|
|
36689
36709
|
limit: Math.min(depth, 500),
|
|
36690
36710
|
...chosen2 === void 0 ? {} : { accounts: chosen2 }
|
|
36691
36711
|
});
|
|
@@ -36850,7 +36870,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36850
36870
|
return ordered.map((item2, rank) => ({ item: item2, score: 1 - rank / PERIOD_DEPTH + (inside2(item2) ? PERIOD_BOOST : 0) })).sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2);
|
|
36851
36871
|
}, "insidePeriodFirst");
|
|
36852
36872
|
|
|
36853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36854
36874
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36855
36875
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36856
36876
|
var DEFAULT_BACKEND = "both";
|
|
@@ -37041,7 +37061,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
37041
37061
|
return { report, sources };
|
|
37042
37062
|
}, "searchServer");
|
|
37043
37063
|
|
|
37044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
37045
37065
|
var DELETE_AT_ONCE = 10;
|
|
37046
37066
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
37047
37067
|
const files = fileLinks(attachments);
|
|
@@ -37481,7 +37501,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
37481
37501
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
37482
37502
|
}, "checkMediaOptions");
|
|
37483
37503
|
|
|
37484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
37485
37505
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
37486
37506
|
var RULES2 = {
|
|
37487
37507
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -37496,7 +37516,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
37496
37516
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
37497
37517
|
}), "classifyChannel");
|
|
37498
37518
|
|
|
37499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37519
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
37500
37520
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
37501
37521
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
37502
37522
|
const store = await deps.store();
|
|
@@ -37582,7 +37602,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37582
37602
|
};
|
|
37583
37603
|
}, "metadataService");
|
|
37584
37604
|
|
|
37585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37586
37606
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37587
37607
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
37588
37608
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -37619,7 +37639,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
37619
37639
|
return { chatId, rows, notes };
|
|
37620
37640
|
}, "moderateWith");
|
|
37621
37641
|
|
|
37622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37623
37643
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37624
37644
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
37625
37645
|
const env = deps.env ?? process.env;
|
|
@@ -37704,7 +37724,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37704
37724
|
}, "removePerson")
|
|
37705
37725
|
}), "moderatorOf");
|
|
37706
37726
|
|
|
37707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37708
37728
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37709
37729
|
id: note.id,
|
|
37710
37730
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37748,7 +37768,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37748
37768
|
};
|
|
37749
37769
|
}, "privatePeopleService");
|
|
37750
37770
|
|
|
37751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37771
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37752
37772
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37753
37773
|
total: 0,
|
|
37754
37774
|
population: 0,
|
|
@@ -38004,7 +38024,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
38004
38024
|
}, "evidence")
|
|
38005
38025
|
}), "rankingsService");
|
|
38006
38026
|
|
|
38007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
38008
38028
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
38009
38029
|
var WAITING_TAIL = 100;
|
|
38010
38030
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -38138,7 +38158,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38138
38158
|
};
|
|
38139
38159
|
}, "replyStatsService");
|
|
38140
38160
|
|
|
38141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
38142
38162
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
38143
38163
|
id: one.id,
|
|
38144
38164
|
name: one.name,
|
|
@@ -38264,7 +38284,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
38264
38284
|
};
|
|
38265
38285
|
}, "searchesService");
|
|
38266
38286
|
|
|
38267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
38268
38288
|
var TAGGING_QUERY = {
|
|
38269
38289
|
entity: "tagging",
|
|
38270
38290
|
backend: "sql",
|
|
@@ -38348,7 +38368,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38348
38368
|
};
|
|
38349
38369
|
}, "tagsService");
|
|
38350
38370
|
|
|
38351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38352
38372
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38353
38373
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
38354
38374
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38547,7 +38567,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38547
38567
|
};
|
|
38548
38568
|
}, "topicsService");
|
|
38549
38569
|
|
|
38550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
38551
38571
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38552
38572
|
var CRM_WRITE_DEFAULTS = {
|
|
38553
38573
|
"deals.delete": "ask",
|
|
@@ -38555,10 +38575,10 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38555
38575
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38556
38576
|
};
|
|
38557
38577
|
|
|
38558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
38559
38579
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38560
38580
|
|
|
38561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38562
38582
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
38563
38583
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38564
38584
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38632,7 +38652,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38632
38652
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
38633
38653
|
}, "prepareEvidencePacket");
|
|
38634
38654
|
|
|
38635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38636
38656
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
38637
38657
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38638
38658
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38652,7 +38672,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38652
38672
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38653
38673
|
}, "readEvidencePacket");
|
|
38654
38674
|
|
|
38655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38656
38676
|
var scopeKeys = [
|
|
38657
38677
|
"accountId",
|
|
38658
38678
|
"meetingId",
|
|
@@ -38674,7 +38694,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
38674
38694
|
"maxVocabularyReadBytes"
|
|
38675
38695
|
]);
|
|
38676
38696
|
|
|
38677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
38678
38698
|
import { createHash as createHash12 } from "node:crypto";
|
|
38679
38699
|
import { existsSync as existsSync3 } from "node:fs";
|
|
38680
38700
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38805,14 +38825,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38805
38825
|
return { ...checked2.output, custom: true };
|
|
38806
38826
|
}, "addCustomTextModel");
|
|
38807
38827
|
|
|
38808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
38809
38829
|
var DAY6 = 864e5;
|
|
38810
38830
|
var SLOTS_EVERY = 7 * DAY6;
|
|
38811
38831
|
|
|
38812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
38813
38833
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
38814
38834
|
|
|
38815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
38816
38836
|
var LIST = "events list";
|
|
38817
38837
|
var EVENT_TYPES = [
|
|
38818
38838
|
"default",
|
|
@@ -38871,7 +38891,7 @@ var EVENTS_QUERY = {
|
|
|
38871
38891
|
} : field)
|
|
38872
38892
|
};
|
|
38873
38893
|
|
|
38874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
38875
38895
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
38876
38896
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
38877
38897
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -38889,7 +38909,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
38889
38909
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
38890
38910
|
};
|
|
38891
38911
|
|
|
38892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38893
38913
|
var communicationFields = {
|
|
38894
38914
|
sources: pipe(array(strictObject({
|
|
38895
38915
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38921,7 +38941,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38921
38941
|
return { ...input, after, before };
|
|
38922
38942
|
}, "communicationRequest");
|
|
38923
38943
|
|
|
38924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38925
38945
|
var MEETING_PREPARATION_LIMITS = {
|
|
38926
38946
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38927
38947
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38994,7 +39014,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38994
39014
|
};
|
|
38995
39015
|
}, "validateMeetingPreparationRequest");
|
|
38996
39016
|
|
|
38997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38998
39018
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38999
39019
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
39000
39020
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -39042,7 +39062,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
39042
39062
|
}
|
|
39043
39063
|
}, "validatePreparationCommunications");
|
|
39044
39064
|
|
|
39045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39046
39066
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39047
39067
|
const installer = ports.installer();
|
|
39048
39068
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39107,7 +39127,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39107
39127
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39108
39128
|
}, "dayAfter");
|
|
39109
39129
|
|
|
39110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39111
39131
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39112
39132
|
const pictures = picturesService(deps);
|
|
39113
39133
|
const base = {
|
|
@@ -39144,7 +39164,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39144
39164
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39145
39165
|
}, "servicesFor");
|
|
39146
39166
|
|
|
39147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39148
39168
|
import { createHash as createHash13 } from "node:crypto";
|
|
39149
39169
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
|
|
39150
39170
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39365,7 +39385,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
39365
39385
|
}, () => finish({ error: stopped() }));
|
|
39366
39386
|
}), "relayCommand");
|
|
39367
39387
|
|
|
39368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.681.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.106.0_commander@15_8d845c31697914d824aa80d8eec93941/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39369
39389
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39370
39390
|
close: /* @__PURE__ */ __name(async () => {
|
|
39371
39391
|
}, "close"),
|