@wirecat/tg-cli 0.131.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-TA637IRT.js → adapter-GSGX3WBH.js} +61 -60
- package/dist/bundle/{all-profiles-7M3GBCB6.js → all-profiles-VOCJ55YH.js} +9 -9
- package/dist/bundle/{anthropic-P3THLZWO.js → anthropic-J6CTLU3W.js} +5 -5
- package/dist/bundle/{app-server-OE5EAXIY.js → app-server-GVFGA4TJ.js} +57 -57
- package/dist/bundle/{bot-api-WYR2C4A5.js → bot-api-LWONPIGK.js} +62 -61
- package/dist/bundle/{bot-history-PKJTHU7L.js → bot-history-XOW7Y2GC.js} +22 -22
- package/dist/bundle/{bun-XMZJDDEA.js → bun-436CH6CP.js} +2 -2
- package/dist/bundle/{bun-sqlite-F5RWCB2N.js → bun-sqlite-ZLB5RK5Q.js} +6 -6
- package/dist/bundle/chunk-2KQDJHF3.js +88 -0
- package/dist/bundle/{chunk-WG6UZJ3E.js → chunk-54WLIPIQ.js} +1 -1
- package/dist/bundle/{chunk-LDSTUBLY.js → chunk-57KJ3TRS.js} +9 -9
- package/dist/bundle/{chunk-LTP4BYHJ.js → chunk-5HKPQPD4.js} +6 -6
- package/dist/bundle/{chunk-LJO6MMQG.js → chunk-5L44DSHV.js} +4 -4
- package/dist/bundle/{chunk-5AJ5RLJW.js → chunk-5LRTYBZW.js} +14 -13
- package/dist/bundle/{chunk-6BPM3LNR.js → chunk-6A44ZZFC.js} +6 -6
- package/dist/bundle/{chunk-HT6OFANN.js → chunk-6CHIGUCY.js} +20 -20
- package/dist/bundle/{chunk-34PRGA7E.js → chunk-6H2NW6HK.js} +3 -3
- package/dist/bundle/{chunk-JSE4OBYI.js → chunk-6S77EKZU.js} +13 -13
- package/dist/bundle/{chunk-TT6OHNV2.js → chunk-6VCSOQFL.js} +2 -2
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-Z2TCTTPJ.js → chunk-7NYP4RBO.js} +1910 -1015
- package/dist/bundle/{chunk-B6NQJAUC.js → chunk-BXVB42KJ.js} +2 -2
- package/dist/bundle/{chunk-PS7ZS5HD.js → chunk-CEJYNB3I.js} +4 -4
- package/dist/bundle/{chunk-6O5AD3GA.js → chunk-D2SJLZSH.js} +2 -2
- package/dist/bundle/{chunk-P6KGEZIS.js → chunk-H7ML7X3G.js} +5 -5
- package/dist/bundle/{chunk-BXW6FGLD.js → chunk-HB5DP6L5.js} +15 -15
- package/dist/bundle/{chunk-S2IET7WM.js → chunk-IBCXEVNY.js} +3 -3
- package/dist/bundle/{chunk-PHGH5N4C.js → chunk-IH4Z3KZU.js} +2 -2
- package/dist/bundle/{chunk-UGYC2FV5.js → chunk-IPPCQ7IK.js} +2 -2
- package/dist/bundle/{chunk-AJQ6JFLY.js → chunk-IYAXLLGR.js} +6 -6
- package/dist/bundle/{chunk-UUNQV4YL.js → chunk-JGMXBAGH.js} +111 -41
- package/dist/bundle/{chunk-O7X6RM5R.js → chunk-JKSD43L7.js} +6 -6
- package/dist/bundle/{chunk-AEIDEIVB.js → chunk-JPNVEPS4.js} +2331 -1406
- package/dist/bundle/{chunk-GNIROVSK.js → chunk-KEN4B57V.js} +2 -2
- package/dist/bundle/{chunk-NOZZHEMD.js → chunk-KHUXDSXN.js} +1 -1
- package/dist/bundle/{chunk-JUFLELQ7.js → chunk-KUA24HWG.js} +2 -2
- package/dist/bundle/{chunk-H655CMXJ.js → chunk-KVFUH5IT.js} +1 -1
- package/dist/bundle/{chunk-EZBMLKBK.js → chunk-LBZEZO32.js} +36 -36
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-SLT2PBFP.js → chunk-LOS4D6ZB.js} +67 -30
- package/dist/bundle/{chunk-6TJTQ4I4.js → chunk-LQQSDGQ6.js} +35 -36
- package/dist/bundle/{chunk-QGFUUJPL.js → chunk-M6QOM6SL.js} +1 -1
- package/dist/bundle/{chunk-JDLNI7BU.js → chunk-N3JUHGKM.js} +308 -285
- package/dist/bundle/{chunk-OOSX7K7G.js → chunk-N7QREPZW.js} +8 -8
- package/dist/bundle/{chunk-IULSIKEM.js → chunk-NAXOT35J.js} +3 -3
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-MYC3M4BY.js → chunk-NTWXL2QV.js} +2 -2
- package/dist/bundle/{chunk-WUIKJJ5A.js → chunk-O6JUVATT.js} +8 -8
- package/dist/bundle/{chunk-43KSYUZU.js → chunk-OWY52JBO.js} +7 -7
- package/dist/bundle/{chunk-2TOJQQKS.js → chunk-OX73ERZW.js} +1 -1
- package/dist/bundle/{chunk-NXNSEFGR.js → chunk-QGWISM4W.js} +24 -24
- package/dist/bundle/{chunk-AUNNJDVD.js → chunk-QVGEL66U.js} +28 -8
- package/dist/bundle/{chunk-5ZIT6JXP.js → chunk-QWO7L4UH.js} +7 -7
- package/dist/bundle/{chunk-PD4RREQB.js → chunk-QYLZD4DS.js} +1 -1
- package/dist/bundle/{chunk-LEPDRO3O.js → chunk-RABUG4KA.js} +76 -59
- package/dist/bundle/{chunk-ITYDJIRC.js → chunk-SMI2EUH4.js} +1 -1
- package/dist/bundle/{chunk-76UAXRDY.js → chunk-SMU6NA7F.js} +4 -4
- package/dist/bundle/{chunk-O73DZURO.js → chunk-TCI7I6YF.js} +10 -10
- package/dist/bundle/{chunk-VNJZXV7E.js → chunk-THYGLTRB.js} +9 -60
- package/dist/bundle/{chunk-OX5EAUKF.js → chunk-TPD37ECC.js} +3 -3
- package/dist/bundle/{chunk-2OXR2MRV.js → chunk-TTDZVWDU.js} +1 -1
- package/dist/bundle/{chunk-YZTMQE62.js → chunk-UGS57TT5.js} +2 -2
- package/dist/bundle/{chunk-OPG54IFH.js → chunk-UIAKLELF.js} +54 -54
- package/dist/bundle/{chunk-5N7TJ6TJ.js → chunk-UKBK2VWZ.js} +217 -165
- package/dist/bundle/{chunk-NTORQXAS.js → chunk-UQYL6TJ7.js} +4 -4
- package/dist/bundle/{chunk-2U6XE4HI.js → chunk-UZ63ORMY.js} +4 -4
- package/dist/bundle/{chunk-SQ2JLZFK.js → chunk-VCAOH45X.js} +1 -1
- package/dist/bundle/{chunk-YJ4BPNWI.js → chunk-VGN5YXYI.js} +3 -3
- package/dist/bundle/{chunk-XC2YJDDK.js → chunk-VTQMR3XG.js} +3 -3
- package/dist/bundle/{chunk-BFERGEBI.js → chunk-VWJTYAIQ.js} +17 -17
- package/dist/bundle/{chunk-JF4AJNCE.js → chunk-WCYKVX3B.js} +7 -7
- package/dist/bundle/{chunk-EXMJDHBM.js → chunk-XDQU5HBO.js} +12 -12
- package/dist/bundle/{chunk-SS5H2XAT.js → chunk-XKOMP3HV.js} +2 -2
- package/dist/bundle/{chunk-J2QQZVEN.js → chunk-XOX4BX5A.js} +4 -4
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-L2SMUTJY.js → chunk-YY6FGKGD.js} +2 -2
- package/dist/bundle/{chunk-VVUUP5NF.js → chunk-ZHO3TPHM.js} +13 -13
- package/dist/bundle/{chunk-LWSOCKOD.js → chunk-ZYAHZKYF.js} +3 -3
- package/dist/bundle/command-contract-TQIARAB4.js +37 -0
- package/dist/bundle/{command-server-entry-6FH3RXJ2.js → command-server-entry-AE27QXTE.js} +27 -27
- package/dist/bundle/{decode-UBRT2QDP.js → decode-RQPPZ72F.js} +5 -5
- package/dist/bundle/{dispatch-ST5FK2KI.js → dispatch-KQO2MCSH.js} +8 -8
- package/dist/bundle/{echarts-PG45GQLR.js → echarts-FZRIACN4.js} +2 -2
- package/dist/bundle/{embed-BUQDSZ57.js → embed-TOSWWMDL.js} +6 -6
- package/dist/bundle/{embedder-TXA3EV7O.js → embedder-JHIQSBGD.js} +9 -9
- package/dist/bundle/{entry-JWIEF57D.js → entry-DU4KRXTG.js} +9 -9
- package/dist/bundle/{failure-GMUQKQ5K.js → failure-3YC3YGYO.js} +2 -2
- package/dist/bundle/{first-run-5VTHKMK5.js → first-run-DQQT4FID.js} +12 -12
- package/dist/bundle/first-screen-7N4CTZSA.js +37 -0
- package/dist/bundle/{instructions-ZMEPWTFO.js → instructions-WI64CJQ6.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-3RAOFQ7M.js +23 -0
- package/dist/bundle/{meeting-model-5FVNZCTL.js → meeting-model-XNRSREIK.js} +11 -11
- package/dist/bundle/{meeting-semantic-HUMYFMO7.js → meeting-semantic-OOSCHQMB.js} +6 -6
- package/dist/bundle/{node-N4DQQJKK.js → node-JLKDNVKV.js} +2 -2
- package/dist/bundle/{node-sqlite-MG4KFXYY.js → node-sqlite-YOGH26O2.js} +7 -7
- package/dist/bundle/{oauth-NKDSXEH6.js → oauth-FOMXM5HP.js} +7 -7
- package/dist/bundle/{open-DV2YUU2M.js → open-SM2UXUKM.js} +5 -5
- package/dist/bundle/{openai-FEKMZOUJ.js → openai-J2H7S6ZF.js} +15 -15
- package/dist/bundle/{process-QZS3TE6A.js → process-HI7OZBOI.js} +1 -1
- package/dist/bundle/{program-FNDGXEVS.js → program-VY4HFU25.js} +64 -63
- package/dist/bundle/{prompt-C7RSBNH5.js → prompt-NUUVFMOF.js} +5 -5
- package/dist/bundle/{proxy-transport-A4MRO3PF.js → proxy-transport-AN4VMRRN.js} +5 -5
- package/dist/bundle/{recognize-5BL763FS.js → recognize-MALJHPDI.js} +4 -4
- package/dist/bundle/{remote-CXAKRC7X.js → remote-QUDRSTS2.js} +9 -9
- package/dist/bundle/{rerank-XAEXY5A4.js → rerank-2DSO3D3S.js} +7 -7
- package/dist/bundle/{serve-JLZGFTZH.js → serve-NCJ52MY3.js} +9 -9
- package/dist/bundle/server-CHGON5I2.js +70 -0
- package/dist/bundle/{server-GF3TV2U7.js → server-Y3M544AM.js} +49 -49
- package/dist/bundle/{sqlite-runtime-3OVQ7OTM.js → sqlite-runtime-NJUSXVKK.js} +6 -6
- package/dist/bundle/{state-FGJKQKC2.js → state-AVOWQVET.js} +6 -6
- package/dist/bundle/{store-WYLMNAAQ.js → store-BZ5ICDRP.js} +23 -19
- package/dist/bundle/{store-2J5VJZQY.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-DAQYQF6R.js +0 -37
- package/dist/bundle/first-screen-PTHIZ5ZF.js +0 -35
- package/dist/bundle/meeting-combined-DU3RJR6X.js +0 -23
- package/dist/bundle/server-GLPEWUYT.js +0 -69
- package/dist/bundle/store-maintenance-command-QN6QH6RA.js +0 -60
- /package/dist/bundle/{chunk-ZI3YTXSF.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,
|
|
@@ -298,6 +301,7 @@ import {
|
|
|
298
301
|
liftMeetingFields,
|
|
299
302
|
listed,
|
|
300
303
|
markedPassage,
|
|
304
|
+
meetingCallItem,
|
|
301
305
|
meetingCueFingerprint,
|
|
302
306
|
meetingDetailsBody,
|
|
303
307
|
meetingFieldFlag,
|
|
@@ -324,11 +328,11 @@ import {
|
|
|
324
328
|
validateQuery,
|
|
325
329
|
walkQuery,
|
|
326
330
|
windowOf
|
|
327
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-RABUG4KA.js";
|
|
328
332
|
import {
|
|
329
333
|
storePath,
|
|
330
334
|
wirecatDirectory
|
|
331
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-6VCSOQFL.js";
|
|
332
336
|
import {
|
|
333
337
|
Credentials,
|
|
334
338
|
logRecordOf,
|
|
@@ -336,7 +340,7 @@ import {
|
|
|
336
340
|
realSleep,
|
|
337
341
|
resolvePaths,
|
|
338
342
|
writeSecurely
|
|
339
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-6CHIGUCY.js";
|
|
340
344
|
import {
|
|
341
345
|
array,
|
|
342
346
|
boolean,
|
|
@@ -365,7 +369,7 @@ import {
|
|
|
365
369
|
trim,
|
|
366
370
|
union,
|
|
367
371
|
unknown
|
|
368
|
-
} from "./chunk-
|
|
372
|
+
} from "./chunk-QVGEL66U.js";
|
|
369
373
|
import {
|
|
370
374
|
importFrom,
|
|
371
375
|
resolveFrom
|
|
@@ -375,7 +379,7 @@ import {
|
|
|
375
379
|
isCliError,
|
|
376
380
|
singleLine,
|
|
377
381
|
visibleControls
|
|
378
|
-
} from "./chunk-
|
|
382
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
379
383
|
import {
|
|
380
384
|
__commonJS,
|
|
381
385
|
__name,
|
|
@@ -16991,7 +16995,7 @@ var require_lib3 = __commonJS({
|
|
|
16991
16995
|
}
|
|
16992
16996
|
});
|
|
16993
16997
|
|
|
16994
|
-
// 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
|
|
16995
16999
|
var RULES_VERSION = 5;
|
|
16996
17000
|
var LOOK_BACK = 50;
|
|
16997
17001
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17081,10 +17085,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17081
17085
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17082
17086
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17083
17087
|
|
|
17084
|
-
// 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
|
|
17085
17089
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17086
17090
|
|
|
17087
|
-
// 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
|
|
17088
17092
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17089
17093
|
import { open, stat } from "node:fs/promises";
|
|
17090
17094
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17184,15 +17188,15 @@ var CREDENTIAL_RUNS = [
|
|
|
17184
17188
|
["AppData", "Roaming", "GitHub CLI"]
|
|
17185
17189
|
];
|
|
17186
17190
|
var WIRECAT_APPS = [
|
|
17187
|
-
{ appName
|
|
17188
|
-
{ appName: "
|
|
17189
|
-
{ appName: "
|
|
17190
|
-
{ appName: "cli-memo", prefix: "MEMO" },
|
|
17191
|
-
{ 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" },
|
|
17192
17194
|
{ appName: "zm", prefix: "ZM" },
|
|
17193
17195
|
{ appName: "cli-messaging", prefix: "MESSAGING" },
|
|
17194
17196
|
{ appName: "cli-common", prefix: "CLI_COMMON" }
|
|
17195
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");
|
|
17196
17200
|
var realPathOf = /* @__PURE__ */ __name((path) => {
|
|
17197
17201
|
let ancestor = resolve(path);
|
|
17198
17202
|
for (; ; ) {
|
|
@@ -17234,7 +17238,7 @@ var refusedPlace = /* @__PURE__ */ __name((path, app, env, platform = process.pl
|
|
|
17234
17238
|
return names2.some((name, index) => parts.has(name) || /^\.env\./.test(name) || runs.some((run2) => run2.every((part, offset) => names2[index + offset] === part)));
|
|
17235
17239
|
}, "named");
|
|
17236
17240
|
const same2 = /* @__PURE__ */ __name((a, b) => fold2(a) === fold2(b), "same");
|
|
17237
|
-
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)));
|
|
17238
17242
|
}, "refusedPlace");
|
|
17239
17243
|
var inside = /* @__PURE__ */ __name((path, dir) => {
|
|
17240
17244
|
const way = relative(resolve(dir), path);
|
|
@@ -17251,6 +17255,9 @@ var readUpload = /* @__PURE__ */ __name(async (kind, path, { app, env = process.
|
|
|
17251
17255
|
if (kind === "voice" && !VOICE.has(extension)) {
|
|
17252
17256
|
throw new CliError("validation_error", `a voice message is Ogg Opus: .ogg, .oga or .opus \u2014 send ${path} as a file`);
|
|
17253
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
|
+
}
|
|
17254
17261
|
if (!anyFile && refusedPlace(path, app, env)) {
|
|
17255
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`);
|
|
17256
17263
|
}
|
|
@@ -17317,15 +17324,15 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
17317
17324
|
return { name, source };
|
|
17318
17325
|
}, "readStickerFile");
|
|
17319
17326
|
|
|
17320
|
-
// 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
|
|
17321
17328
|
import { randomBytes } from "node:crypto";
|
|
17322
17329
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17323
17330
|
var newOperationId = newSendId;
|
|
17324
17331
|
|
|
17325
|
-
// 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
|
|
17326
17333
|
import { randomUUID } from "node:crypto";
|
|
17327
17334
|
|
|
17328
|
-
// 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
|
|
17329
17336
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17330
17337
|
import { dirname as dirname2, join } from "node:path";
|
|
17331
17338
|
var MOST_DEADLINES = 50;
|
|
@@ -17409,11 +17416,11 @@ var FloodMemory = class {
|
|
|
17409
17416
|
}
|
|
17410
17417
|
};
|
|
17411
17418
|
|
|
17412
|
-
// 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
|
|
17413
17420
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17414
17421
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17415
17422
|
|
|
17416
|
-
// 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
|
|
17417
17424
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17418
17425
|
import { dirname as dirname3 } from "node:path";
|
|
17419
17426
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17480,7 +17487,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17480
17487
|
}
|
|
17481
17488
|
}, "lockTime");
|
|
17482
17489
|
|
|
17483
|
-
// 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
|
|
17484
17491
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17485
17492
|
var SendJournal = class {
|
|
17486
17493
|
static {
|
|
@@ -17557,7 +17564,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17557
17564
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17558
17565
|
}, "withSendId");
|
|
17559
17566
|
|
|
17560
|
-
// 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
|
|
17561
17568
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17562
17569
|
import { join as join3 } from "node:path";
|
|
17563
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");
|
|
@@ -17669,7 +17676,7 @@ var RecipientList = class {
|
|
|
17669
17676
|
}
|
|
17670
17677
|
};
|
|
17671
17678
|
|
|
17672
|
-
// 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
|
|
17673
17680
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17674
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");
|
|
17675
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");
|
|
@@ -17857,7 +17864,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17857
17864
|
}), "guardFor");
|
|
17858
17865
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17859
17866
|
|
|
17860
|
-
// 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
|
|
17861
17868
|
var COMMAND_NEEDS = {
|
|
17862
17869
|
"account update": ["updateProfile", "change the profile"],
|
|
17863
17870
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17907,7 +17914,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17907
17914
|
return group;
|
|
17908
17915
|
}, "hideNever");
|
|
17909
17916
|
|
|
17910
|
-
// 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
|
|
17911
17918
|
var AUDIT_PAGE = 200;
|
|
17912
17919
|
var AUDIT_BUDGET = 10;
|
|
17913
17920
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17987,7 +17994,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17987
17994
|
return found;
|
|
17988
17995
|
}, "burstJoins");
|
|
17989
17996
|
|
|
17990
|
-
// 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
|
|
17991
17998
|
var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
|
|
17992
17999
|
const found = readMoment(reference, flag, { ...at, now });
|
|
17993
18000
|
if (found === void 0)
|
|
@@ -18016,7 +18023,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18016
18023
|
};
|
|
18017
18024
|
}, "dateWindow");
|
|
18018
18025
|
|
|
18019
|
-
// 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
|
|
18020
18027
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
18021
18028
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
18022
18029
|
var minutes = /* @__PURE__ */ __name((text2) => {
|
|
@@ -18121,7 +18128,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
18121
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)));
|
|
18122
18129
|
}, "addMeetingManagementCommands");
|
|
18123
18130
|
|
|
18124
|
-
// 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
|
|
18125
18132
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
18126
18133
|
command.allowUnknownOption();
|
|
18127
18134
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -18141,7 +18148,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
18141
18148
|
return command;
|
|
18142
18149
|
}, "queryWordsAfterOptions");
|
|
18143
18150
|
|
|
18144
|
-
// 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
|
|
18145
18152
|
var count = /* @__PURE__ */ __name((value) => {
|
|
18146
18153
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18147
18154
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -18183,7 +18190,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
18183
18190
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
18184
18191
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
18185
18192
|
|
|
18186
|
-
// 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
|
|
18187
18194
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
18188
18195
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18189
18196
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18206,7 +18213,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18206
18213
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18207
18214
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18208
18215
|
|
|
18209
|
-
// 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
|
|
18210
18217
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18211
18218
|
const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
|
|
18212
18219
|
if (meta.timezone)
|
|
@@ -18285,7 +18292,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18285
18292
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18286
18293
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18287
18294
|
|
|
18288
|
-
// 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
|
|
18289
18296
|
var EVENT_UNTRUSTED = ["title", "description", "location"];
|
|
18290
18297
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18291
18298
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
@@ -18467,7 +18474,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18467
18474
|
}, "addMeetingCommandsDefinition");
|
|
18468
18475
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18469
18476
|
|
|
18470
|
-
// 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
|
|
18471
18478
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18472
18479
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18473
18480
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18558,9 +18565,11 @@ var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = [], neg
|
|
|
18558
18565
|
add(ast.root);
|
|
18559
18566
|
return terms;
|
|
18560
18567
|
}, "nativeTermLists");
|
|
18561
|
-
var queryTerms = /* @__PURE__ */ __name((words3, registry, command) => {
|
|
18568
|
+
var queryTerms = /* @__PURE__ */ __name((words3, registry, command, ranged = []) => {
|
|
18562
18569
|
const terms = /* @__PURE__ */ new Map();
|
|
18563
18570
|
for (const [field, node] of nativeTerms(listQuery(typedQuery(words3), registry, command), command)) {
|
|
18571
|
+
if (ranged.includes(field))
|
|
18572
|
+
continue;
|
|
18564
18573
|
if (node.operator !== "term" && node.operator !== "phrase")
|
|
18565
18574
|
queryError("query.unsupported-placement", node.span, `${field} takes one whole value here`, {
|
|
18566
18575
|
command,
|
|
@@ -18571,11 +18580,11 @@ var queryTerms = /* @__PURE__ */ __name((words3, registry, command) => {
|
|
|
18571
18580
|
}
|
|
18572
18581
|
return terms;
|
|
18573
18582
|
}, "queryTerms");
|
|
18574
|
-
var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf()) => {
|
|
18583
|
+
var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf(), now) => {
|
|
18575
18584
|
if (!term)
|
|
18576
18585
|
return {};
|
|
18577
18586
|
const upper = term.operator === "range" ? term.upper ?? "*" : term.value;
|
|
18578
|
-
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);
|
|
18579
18588
|
const until = range2.upper === void 0 ? void 0 : range2.upper - (range2.upper_inclusive ? 0 : 1);
|
|
18580
18589
|
return {
|
|
18581
18590
|
...range2.lower === void 0 ? {} : { since: range2.lower },
|
|
@@ -18601,7 +18610,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18601
18610
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18602
18611
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18603
18612
|
|
|
18604
|
-
// 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
|
|
18605
18614
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18606
18615
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18607
18616
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18628,7 +18637,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
18628
18637
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
18629
18638
|
}, "pagingOf");
|
|
18630
18639
|
|
|
18631
|
-
// 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
|
|
18632
18641
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18633
18642
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18634
18643
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18890,7 +18899,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18890
18899
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18891
18900
|
}), "sessionAnswer");
|
|
18892
18901
|
|
|
18893
|
-
// 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
|
|
18894
18903
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18895
18904
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18896
18905
|
if (key in own)
|
|
@@ -18907,7 +18916,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18907
18916
|
return found.bind(adapter);
|
|
18908
18917
|
}, "capability");
|
|
18909
18918
|
|
|
18910
|
-
// 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
|
|
18911
18920
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18912
18921
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18913
18922
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18969,7 +18978,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18969
18978
|
}), "storedDeps");
|
|
18970
18979
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18971
18980
|
|
|
18972
|
-
// 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
|
|
18973
18982
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18974
18983
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18975
18984
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18992,10 +19001,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18992
19001
|
}
|
|
18993
19002
|
}, "patiently");
|
|
18994
19003
|
|
|
18995
|
-
// 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
|
|
18996
19005
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18997
19006
|
|
|
18998
|
-
// 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
|
|
18999
19008
|
var REQUEST_MS = 400;
|
|
19000
19009
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
19001
19010
|
const lowest = ranges[0];
|
|
@@ -19018,13 +19027,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
19018
19027
|
};
|
|
19019
19028
|
}, "estimateBackfill");
|
|
19020
19029
|
|
|
19021
|
-
// 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
|
|
19022
19031
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
19023
19032
|
...error,
|
|
19024
19033
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
19025
19034
|
}), "withRecovery");
|
|
19026
19035
|
|
|
19027
|
-
// 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
|
|
19028
19037
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
19029
19038
|
if (isCliFailure(error))
|
|
19030
19039
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -19107,7 +19116,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
19107
19116
|
};
|
|
19108
19117
|
}, "mergeBatches");
|
|
19109
19118
|
|
|
19110
|
-
// 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
|
|
19111
19120
|
var ALL = "all";
|
|
19112
19121
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
19113
19122
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -19179,7 +19188,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
19179
19188
|
[ALL]: [ALL]
|
|
19180
19189
|
}), "groupEntries");
|
|
19181
19190
|
|
|
19182
|
-
// 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
|
|
19183
19192
|
var NO_MAIL = "no_mail";
|
|
19184
19193
|
var MAIL = "email";
|
|
19185
19194
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -19253,7 +19262,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
19253
19262
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
19254
19263
|
}, "accountsOfKind");
|
|
19255
19264
|
|
|
19256
|
-
// 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
|
|
19257
19266
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
19258
19267
|
if (deps.reads !== "store")
|
|
19259
19268
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19454,7 +19463,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
19454
19463
|
}, "chatsMatchingIn");
|
|
19455
19464
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
19456
19465
|
|
|
19457
|
-
// 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
|
|
19458
19467
|
var CONTEXT_MESSAGES = 3;
|
|
19459
19468
|
var CONTEXT_MINUTES = 10;
|
|
19460
19469
|
var MAX_CHARS = 1200;
|
|
@@ -19478,12 +19487,12 @@ var context = {
|
|
|
19478
19487
|
}, "describe")
|
|
19479
19488
|
};
|
|
19480
19489
|
|
|
19481
|
-
// 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
|
|
19482
19491
|
var BUILT_INS = [context];
|
|
19483
19492
|
var providers = [...BUILT_INS];
|
|
19484
19493
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19485
19494
|
|
|
19486
|
-
// 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
|
|
19487
19496
|
var READ_PAGE = 5e3;
|
|
19488
19497
|
var CHAIN = 50;
|
|
19489
19498
|
var CONVERSATION_QUERY = {
|
|
@@ -19635,7 +19644,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19635
19644
|
return size2;
|
|
19636
19645
|
}, "sized");
|
|
19637
19646
|
|
|
19638
|
-
// 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
|
|
19639
19648
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19640
19649
|
var MESSAGE_PAGE = 5e3;
|
|
19641
19650
|
var PER_SESSION = 8;
|
|
@@ -19654,7 +19663,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19654
19663
|
price: remote.price,
|
|
19655
19664
|
installed: true,
|
|
19656
19665
|
perBatch: PER_REQUEST * concurrency,
|
|
19657
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19666
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-QUDRSTS2.js")).openRemote(remote, apiKey, {
|
|
19658
19667
|
concurrency,
|
|
19659
19668
|
env: deps.env ?? process.env
|
|
19660
19669
|
}), "open")
|
|
@@ -19674,7 +19683,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19674
19683
|
if (!isTextModelInstalled(model, directory2))
|
|
19675
19684
|
throw notDownloaded(model.id);
|
|
19676
19685
|
if (apart) {
|
|
19677
|
-
const { openProcess } = await import("./process-
|
|
19686
|
+
const { openProcess } = await import("./process-HI7OZBOI.js");
|
|
19678
19687
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19679
19688
|
}
|
|
19680
19689
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19963,7 +19972,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19963
19972
|
return { ...one, state };
|
|
19964
19973
|
}, "shaped");
|
|
19965
19974
|
|
|
19966
|
-
// 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
|
|
19967
19976
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19968
19977
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19969
19978
|
for (const [key, value, maximum] of [
|
|
@@ -20016,7 +20025,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
20016
20025
|
}
|
|
20017
20026
|
}, "catchUpSearch");
|
|
20018
20027
|
|
|
20019
|
-
// 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
|
|
20020
20029
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
20021
20030
|
if (deps.reads === "store") {
|
|
20022
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`);
|
|
@@ -20397,7 +20406,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
20397
20406
|
return message?.timestamp ?? fallback;
|
|
20398
20407
|
}, "timeOfKey");
|
|
20399
20408
|
|
|
20400
|
-
// 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
|
|
20401
20410
|
var LINKS = /https?:\/\/\S+/g;
|
|
20402
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");
|
|
20403
20412
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -20427,7 +20436,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
20427
20436
|
});
|
|
20428
20437
|
}, "questions");
|
|
20429
20438
|
|
|
20430
|
-
// 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
|
|
20431
20440
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
20432
20441
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
20433
20442
|
const name = typed.trim().toLowerCase();
|
|
@@ -20484,7 +20493,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
20484
20493
|
return best.name;
|
|
20485
20494
|
}, "categorize");
|
|
20486
20495
|
|
|
20487
|
-
// 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
|
|
20488
20497
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
20489
20498
|
var RULES_IN = {
|
|
20490
20499
|
dialog: "all",
|
|
@@ -20690,11 +20699,11 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
20690
20699
|
return passes;
|
|
20691
20700
|
}, "applyTaskRulesToChats");
|
|
20692
20701
|
|
|
20693
|
-
// 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
|
|
20694
20703
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
20695
20704
|
var encoder = new TextEncoder();
|
|
20696
20705
|
|
|
20697
|
-
// 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
|
|
20698
20707
|
var DAY_MS = 864e5;
|
|
20699
20708
|
var NEW_DAYS = 30;
|
|
20700
20709
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20771,7 +20780,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20771
20780
|
};
|
|
20772
20781
|
}, "scorePerson");
|
|
20773
20782
|
|
|
20774
|
-
// 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
|
|
20775
20784
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20776
20785
|
const controller = new AbortController();
|
|
20777
20786
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20787,7 +20796,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
20787
20796
|
}
|
|
20788
20797
|
}, "withTimeLimit");
|
|
20789
20798
|
|
|
20790
|
-
// 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
|
|
20791
20800
|
var REGISTRIES = {
|
|
20792
20801
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20793
20802
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20874,7 +20883,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20874
20883
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20875
20884
|
})), "notCovered");
|
|
20876
20885
|
|
|
20877
|
-
// 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
|
|
20878
20887
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20879
20888
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20880
20889
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20962,7 +20971,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20962
20971
|
};
|
|
20963
20972
|
}, "botCheckService");
|
|
20964
20973
|
|
|
20965
|
-
// 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
|
|
20966
20975
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20967
20976
|
if (value === void 0)
|
|
20968
20977
|
return void 0;
|
|
@@ -20972,7 +20981,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20972
20981
|
return id2;
|
|
20973
20982
|
}, "threadIdOf");
|
|
20974
20983
|
|
|
20975
|
-
// 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
|
|
20976
20985
|
var TOP_POSTS = 5;
|
|
20977
20986
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20978
20987
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -21089,7 +21098,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
21089
21098
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
21090
21099
|
}, "median");
|
|
21091
21100
|
|
|
21092
|
-
// 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
|
|
21093
21102
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
21094
21103
|
const events = [];
|
|
21095
21104
|
for (const stay of stays) {
|
|
@@ -21121,7 +21130,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
21121
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));
|
|
21122
21131
|
}, "memberEvents");
|
|
21123
21132
|
|
|
21124
|
-
// 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
|
|
21125
21134
|
var EVENTS_DAYS = 7;
|
|
21126
21135
|
var TRACKED_DAYS = 30;
|
|
21127
21136
|
var STATS_PAGE = 1e3;
|
|
@@ -21416,7 +21425,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21416
21425
|
return members.length === 0 ? null : members;
|
|
21417
21426
|
}, "storedMembers");
|
|
21418
21427
|
|
|
21419
|
-
// 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
|
|
21420
21429
|
var INBOX_CHATS = 20;
|
|
21421
21430
|
var REVIEW_DAYS = 3;
|
|
21422
21431
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21624,7 +21633,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21624
21633
|
};
|
|
21625
21634
|
}, "inboxService");
|
|
21626
21635
|
|
|
21627
|
-
// 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
|
|
21628
21637
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
21629
21638
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
21630
21639
|
const { text: text2, spans } = formatted2;
|
|
@@ -21684,7 +21693,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
21684
21693
|
};
|
|
21685
21694
|
}, "visibleFormattedText");
|
|
21686
21695
|
|
|
21687
|
-
// 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
|
|
21688
21697
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
21689
21698
|
var LINK2 = /https?:\/\/\S+/i;
|
|
21690
21699
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -21872,7 +21881,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
21872
21881
|
}, "nextPoint");
|
|
21873
21882
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
21874
21883
|
|
|
21875
|
-
// 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
|
|
21876
21885
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync4 } from "node:fs";
|
|
21877
21886
|
import { join as join4 } from "node:path";
|
|
21878
21887
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -22024,8 +22033,26 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
22024
22033
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
22025
22034
|
}, "assign");
|
|
22026
22035
|
|
|
22027
|
-
// 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
|
|
22028
22053
|
var SCAN = 1e3;
|
|
22054
|
+
var SNIPPET = 200;
|
|
22055
|
+
var SNIPPET_ROWS = 6;
|
|
22029
22056
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
22030
22057
|
const byId2 = new Map(accounts.map((one) => [one.id, one]));
|
|
22031
22058
|
let cut = false;
|
|
@@ -22060,7 +22087,16 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
22060
22087
|
if (meeting === void 0 || meeting.deletedAt !== null)
|
|
22061
22088
|
continue;
|
|
22062
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(" ");
|
|
22063
22098
|
const account = byId2.get(accountId);
|
|
22099
|
+
const call = meetingCallItem(meeting);
|
|
22064
22100
|
items.push({
|
|
22065
22101
|
ref: formatMeetingReference({ type: "meeting", accountId, meetingId }),
|
|
22066
22102
|
meetingId,
|
|
@@ -22068,15 +22104,17 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
22068
22104
|
title: meeting.title,
|
|
22069
22105
|
startedAt: meeting.startedAt === null ? null : new Date(meeting.startedAt).toISOString(),
|
|
22070
22106
|
durationMs: meeting.durationMs,
|
|
22071
|
-
hasTranscript:
|
|
22107
|
+
hasTranscript: transcript !== void 0,
|
|
22108
|
+
snippet: said.trim() ? excerpt(said, "", SNIPPET) : null,
|
|
22072
22109
|
event: meeting.eventId === null ? null : `event:${meeting.eventId}`,
|
|
22073
|
-
people: who2
|
|
22110
|
+
people: who2,
|
|
22111
|
+
...call ? { call } : {}
|
|
22074
22112
|
});
|
|
22075
22113
|
}
|
|
22076
22114
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
22077
22115
|
}, "personMeetings");
|
|
22078
22116
|
|
|
22079
|
-
// 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
|
|
22080
22118
|
var CONTEXT_MESSAGES2 = 10;
|
|
22081
22119
|
var CONTEXT_BYTES = 64 * 1024;
|
|
22082
22120
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -22382,10 +22420,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
22382
22420
|
};
|
|
22383
22421
|
}, "personMessages");
|
|
22384
22422
|
|
|
22385
|
-
// 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
|
|
22386
22424
|
import { createHash } from "node:crypto";
|
|
22387
22425
|
|
|
22388
|
-
// 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
|
|
22389
22427
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
22390
22428
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
22391
22429
|
const parsed = parseMeetingReference(reference);
|
|
@@ -22403,7 +22441,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
22403
22441
|
return { parsed, meeting };
|
|
22404
22442
|
}, "authorizedMeetingMetadata");
|
|
22405
22443
|
|
|
22406
|
-
// 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
|
|
22407
22445
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
22408
22446
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
22409
22447
|
if (signal?.aborted)
|
|
@@ -22602,7 +22640,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22602
22640
|
return { ...packet, fingerprint: hash(packet) };
|
|
22603
22641
|
}, "readMeetingEvidence");
|
|
22604
22642
|
|
|
22605
|
-
// 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
|
|
22606
22644
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22607
22645
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22608
22646
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22701,7 +22739,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22701
22739
|
};
|
|
22702
22740
|
}, "personMeetingContext");
|
|
22703
22741
|
|
|
22704
|
-
// 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
|
|
22705
22743
|
var PREPARE_BYTES = 96 * 1024;
|
|
22706
22744
|
var MEETINGS = 5;
|
|
22707
22745
|
var CUES = 3;
|
|
@@ -22824,7 +22862,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22824
22862
|
}
|
|
22825
22863
|
}, "meetingsOf");
|
|
22826
22864
|
|
|
22827
|
-
// 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
|
|
22828
22866
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22829
22867
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22830
22868
|
const held = await storeIfOpen(deps);
|
|
@@ -22894,7 +22932,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22894
22932
|
complete: false
|
|
22895
22933
|
})), "quiet");
|
|
22896
22934
|
|
|
22897
|
-
// 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
|
|
22898
22936
|
var TIMELINE_ITEMS = 50;
|
|
22899
22937
|
var TIMELINE_MAX = 500;
|
|
22900
22938
|
var SCOPES = ["personal", "work"];
|
|
@@ -22956,7 +22994,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22956
22994
|
};
|
|
22957
22995
|
}, "personTimeline");
|
|
22958
22996
|
|
|
22959
|
-
// 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
|
|
22960
22998
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22961
22999
|
const ids = [...new Set(chatIds)];
|
|
22962
23000
|
if (ids.length === 0)
|
|
@@ -22982,7 +23020,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22982
23020
|
}));
|
|
22983
23021
|
}, "chatCoverage");
|
|
22984
23022
|
|
|
22985
|
-
// 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
|
|
22986
23024
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22987
23025
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22988
23026
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -23046,7 +23084,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
23046
23084
|
}
|
|
23047
23085
|
}, "validateContextEvidencePage");
|
|
23048
23086
|
|
|
23049
|
-
// 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
|
|
23050
23088
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
23051
23089
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
23052
23090
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -23099,7 +23137,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
23099
23137
|
};
|
|
23100
23138
|
}, "contextReadBudget");
|
|
23101
23139
|
|
|
23102
|
-
// 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
|
|
23103
23141
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
23104
23142
|
if (!port || typeof port.read !== "function")
|
|
23105
23143
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -23143,23 +23181,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
23143
23181
|
};
|
|
23144
23182
|
}, "createContextEvidenceReader");
|
|
23145
23183
|
|
|
23146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23147
|
-
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");
|
|
23148
|
-
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
23149
|
-
const flat = text2.replace(/\s+/g, " ").trim();
|
|
23150
|
-
if (flat.length <= size2)
|
|
23151
|
-
return flat;
|
|
23152
|
-
const lower = flat.toLowerCase();
|
|
23153
|
-
const literalWords = new Set((query.match(/[\p{L}\p{N}]+/gu) ?? []).map(fold));
|
|
23154
|
-
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);
|
|
23155
|
-
const at = found.reduce((minimum, index) => Math.min(minimum, index), found[0] ?? 0);
|
|
23156
|
-
const start = Math.max(0, Math.min(at - Math.floor(size2 / 3), flat.length - size2));
|
|
23157
|
-
const end = start + size2;
|
|
23158
|
-
return `${start > 0 ? "\u2026" : ""}${flat.slice(start, end).trim()}${end < flat.length ? "\u2026" : ""}`;
|
|
23159
|
-
}, "excerpt");
|
|
23160
|
-
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23161
|
-
|
|
23162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.672.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_45e526ef63b403e5407f6f52c7b6265f/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
|
|
23163
23185
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23164
23186
|
async around(ref, window3) {
|
|
23165
23187
|
const at = parseLocator(ref);
|
|
@@ -23254,7 +23276,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23254
23276
|
};
|
|
23255
23277
|
}, "storedNeighbours");
|
|
23256
23278
|
|
|
23257
|
-
// 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
|
|
23258
23280
|
import { createHash as createHash2 } from "node:crypto";
|
|
23259
23281
|
var DAY = 864e5;
|
|
23260
23282
|
var MAX_TIME = 864e13;
|
|
@@ -23570,7 +23592,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23570
23592
|
return value;
|
|
23571
23593
|
}, "decodeCheckpoint");
|
|
23572
23594
|
|
|
23573
|
-
// 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
|
|
23574
23596
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23575
23597
|
var PAGE3 = 20;
|
|
23576
23598
|
var PEOPLE = 20;
|
|
@@ -23974,7 +23996,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23974
23996
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23975
23997
|
}, "peopleOf");
|
|
23976
23998
|
|
|
23977
|
-
// 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
|
|
23978
24000
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23979
24001
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23980
24002
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24018,7 +24040,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24018
24040
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24019
24041
|
}, "matchVocabularyTerms");
|
|
24020
24042
|
|
|
24021
|
-
// 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
|
|
24022
24044
|
var KINDS = ["project", "tag", "topic"];
|
|
24023
24045
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
24024
24046
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24073,7 +24095,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24073
24095
|
};
|
|
24074
24096
|
}, "findEvidenceMentions");
|
|
24075
24097
|
|
|
24076
|
-
// 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
|
|
24077
24099
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
24078
24100
|
var DEFAULT_PURPOSES = ["work"];
|
|
24079
24101
|
var LINK_PURPOSE = "work";
|
|
@@ -24081,13 +24103,13 @@ var BUILT_IN_PURPOSE_CONFIG = { purposes: BUILT_IN_PURPOSES, defaults: DEFAULT_P
|
|
|
24081
24103
|
var unknown2 = /* @__PURE__ */ __name((asked, config) => {
|
|
24082
24104
|
const wrong = asked.filter((one) => !config.purposes.includes(one));
|
|
24083
24105
|
if (wrong.length)
|
|
24084
|
-
throw new CliError("validation_error", `unknown purpose ${wrong.join(", ")}; the configured ones are ${config.purposes.join(", ")}, or all`, { param: "
|
|
24106
|
+
throw new CliError("validation_error", `unknown purpose ${wrong.join(", ")}; the configured ones are ${config.purposes.join(", ")}, or all`, { param: "purposes", purposes: [...config.purposes] });
|
|
24085
24107
|
}, "unknown");
|
|
24086
24108
|
var purposesOf = /* @__PURE__ */ __name((asked, config = BUILT_IN_PURPOSE_CONFIG, project) => {
|
|
24087
24109
|
const words3 = (asked ?? []).map((one) => one.trim()).filter(Boolean);
|
|
24088
24110
|
if (words3.includes("all")) {
|
|
24089
24111
|
if (words3.length > 1)
|
|
24090
|
-
throw new CliError("validation_error", "--
|
|
24112
|
+
throw new CliError("validation_error", "--purposes all reads every purpose; give it alone");
|
|
24091
24113
|
return "all";
|
|
24092
24114
|
}
|
|
24093
24115
|
if (words3.length) {
|
|
@@ -24103,7 +24125,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
24103
24125
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
24104
24126
|
], "purposeList");
|
|
24105
24127
|
|
|
24106
|
-
// 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
|
|
24107
24129
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24108
24130
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24109
24131
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -24414,7 +24436,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24414
24436
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24415
24437
|
}, "purposeHintOf");
|
|
24416
24438
|
|
|
24417
|
-
// 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
|
|
24418
24440
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
24419
24441
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
24420
24442
|
const held = await storeIfOpen(deps);
|
|
@@ -24679,7 +24701,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24679
24701
|
return rest;
|
|
24680
24702
|
}, "withoutPhone");
|
|
24681
24703
|
|
|
24682
|
-
// 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
|
|
24683
24705
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24684
24706
|
var PERIOD_FIELD = "created";
|
|
24685
24707
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24810,7 +24832,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
24810
24832
|
}));
|
|
24811
24833
|
}, "meetingNames");
|
|
24812
24834
|
|
|
24813
|
-
// 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
|
|
24814
24836
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24815
24837
|
const tags = /* @__PURE__ */ new Map();
|
|
24816
24838
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24819,7 +24841,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24819
24841
|
return tags;
|
|
24820
24842
|
}, "taskTagFilters");
|
|
24821
24843
|
|
|
24822
|
-
// 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
|
|
24823
24845
|
var TASK_QUERY = {
|
|
24824
24846
|
entity: "task",
|
|
24825
24847
|
backend: "sql",
|
|
@@ -25319,7 +25341,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
25319
25341
|
};
|
|
25320
25342
|
}, "taskView");
|
|
25321
25343
|
|
|
25322
|
-
// 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
|
|
25323
25345
|
import { readFileSync as readFileSync5, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
25324
25346
|
import { join as join5 } from "node:path";
|
|
25325
25347
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -25414,7 +25436,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
25414
25436
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
25415
25437
|
}, "waitForTurn");
|
|
25416
25438
|
|
|
25417
|
-
// 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
|
|
25418
25440
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
25419
25441
|
if (newest === null)
|
|
25420
25442
|
return null;
|
|
@@ -25423,7 +25445,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
25423
25445
|
return newest.addressed ? "owed" : null;
|
|
25424
25446
|
}, "mailTurn");
|
|
25425
25447
|
|
|
25426
|
-
// 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
|
|
25427
25449
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
25428
25450
|
if (error instanceof CliError && error.code === "not_found")
|
|
25429
25451
|
return void 0;
|
|
@@ -25481,7 +25503,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
25481
25503
|
};
|
|
25482
25504
|
}, "mailActivity");
|
|
25483
25505
|
|
|
25484
|
-
// 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
|
|
25485
25507
|
var DAY2 = 864e5;
|
|
25486
25508
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
25487
25509
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25735,18 +25757,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25735
25757
|
};
|
|
25736
25758
|
}, "agendaItem");
|
|
25737
25759
|
|
|
25738
|
-
// 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
|
|
25739
25761
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25740
25762
|
|
|
25741
|
-
// 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
|
|
25742
25764
|
import { lstat } from "node:fs/promises";
|
|
25743
25765
|
|
|
25744
|
-
// 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
|
|
25745
25767
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25746
25768
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25747
25769
|
import { join as join7 } from "node:path";
|
|
25748
25770
|
|
|
25749
|
-
// 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
|
|
25750
25772
|
import { createHash as createHash3 } from "node:crypto";
|
|
25751
25773
|
var metadataLimit = 16384;
|
|
25752
25774
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25806,7 +25828,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25806
25828
|
}
|
|
25807
25829
|
}, "readPartialMetadata");
|
|
25808
25830
|
|
|
25809
|
-
// 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
|
|
25810
25832
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25811
25833
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25812
25834
|
import { join as join6 } from "node:path";
|
|
@@ -25898,7 +25920,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25898
25920
|
};
|
|
25899
25921
|
}, "partialWriter");
|
|
25900
25922
|
|
|
25901
|
-
// 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
|
|
25902
25924
|
var NativeRecordingPartialStore = class {
|
|
25903
25925
|
static {
|
|
25904
25926
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -26005,12 +26027,12 @@ var NativeRecordingPartialStore = class {
|
|
|
26005
26027
|
}
|
|
26006
26028
|
};
|
|
26007
26029
|
|
|
26008
|
-
// 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
|
|
26009
26031
|
import { createHash as createHash5 } from "node:crypto";
|
|
26010
26032
|
import { link as link2 } from "node:fs/promises";
|
|
26011
26033
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
26012
26034
|
|
|
26013
|
-
// 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
|
|
26014
26036
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
26015
26037
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
26016
26038
|
signal?.throwIfAborted();
|
|
@@ -26045,7 +26067,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
26045
26067
|
signal?.throwIfAborted();
|
|
26046
26068
|
}, "commitPublication");
|
|
26047
26069
|
|
|
26048
|
-
// 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
|
|
26049
26071
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
26050
26072
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
26051
26073
|
import { join as join8 } from "node:path";
|
|
@@ -26118,7 +26140,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26118
26140
|
}
|
|
26119
26141
|
}, "writePublicationJournal");
|
|
26120
26142
|
|
|
26121
|
-
// 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
|
|
26122
26144
|
var NativeRecordingPublication = class {
|
|
26123
26145
|
static {
|
|
26124
26146
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26191,7 +26213,7 @@ var NativeRecordingPublication = class {
|
|
|
26191
26213
|
}
|
|
26192
26214
|
};
|
|
26193
26215
|
|
|
26194
|
-
// 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
|
|
26195
26217
|
import { createHash as createHash6 } from "node:crypto";
|
|
26196
26218
|
import { readdir } from "node:fs/promises";
|
|
26197
26219
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -26278,7 +26300,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
26278
26300
|
beforePublish
|
|
26279
26301
|
}), "commitMediaEntry");
|
|
26280
26302
|
|
|
26281
|
-
// 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
|
|
26282
26304
|
var validator = '"media-completed-v1"';
|
|
26283
26305
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26284
26306
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26379,7 +26401,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26379
26401
|
return entry;
|
|
26380
26402
|
}, "archiveMediaFile");
|
|
26381
26403
|
|
|
26382
|
-
// 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
|
|
26383
26405
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26384
26406
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
26385
26407
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26446,7 +26468,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26446
26468
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26447
26469
|
}, "withMediaArchiveLocks");
|
|
26448
26470
|
|
|
26449
|
-
// 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
|
|
26450
26472
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
26451
26473
|
const entries = await readMediaManifests(root, signal);
|
|
26452
26474
|
if (!entries.length)
|
|
@@ -26589,7 +26611,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
26589
26611
|
}, { create: true });
|
|
26590
26612
|
}, "archiveMedia");
|
|
26591
26613
|
|
|
26592
|
-
// 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
|
|
26593
26615
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26594
26616
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
26595
26617
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26740,7 +26762,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26740
26762
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26741
26763
|
}, "moveMediaArchive");
|
|
26742
26764
|
|
|
26743
|
-
// 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
|
|
26744
26766
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
26745
26767
|
import { join as join13 } from "node:path";
|
|
26746
26768
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -26765,7 +26787,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26765
26787
|
`);
|
|
26766
26788
|
await nativeRuntime({ env, progress });
|
|
26767
26789
|
progress(`${model.id}: loading it once to check it works`);
|
|
26768
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26790
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-TOSWWMDL.js");
|
|
26769
26791
|
const embedder = await openEmbedder2(model, directory2);
|
|
26770
26792
|
try {
|
|
26771
26793
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26786,7 +26808,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26786
26808
|
}
|
|
26787
26809
|
await nativeRuntime({ env, progress });
|
|
26788
26810
|
progress(`${model.id}: loading it once to check it works`);
|
|
26789
|
-
const { openReranker } = await import("./rerank-
|
|
26811
|
+
const { openReranker } = await import("./rerank-2DSO3D3S.js");
|
|
26790
26812
|
const reranker = await openReranker(model, directory2);
|
|
26791
26813
|
try {
|
|
26792
26814
|
await reranker.score("check", ["check"]);
|
|
@@ -26804,7 +26826,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26804
26826
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26805
26827
|
}
|
|
26806
26828
|
progress(`${model.id}: loading it once to check it works`);
|
|
26807
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26829
|
+
const { openPictureEmbedder } = await import("./embedder-JHIQSBGD.js");
|
|
26808
26830
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26809
26831
|
try {
|
|
26810
26832
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26816,7 +26838,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26816
26838
|
return { model, directory: directory2 };
|
|
26817
26839
|
}, "downloadImageModel");
|
|
26818
26840
|
|
|
26819
|
-
// 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
|
|
26820
26842
|
var MONEY_REQUEST = "money-request";
|
|
26821
26843
|
var MONEY_DONE = "money-done";
|
|
26822
26844
|
var PROMISE = "promise";
|
|
@@ -26850,10 +26872,10 @@ var MONEY_WORDS = [
|
|
|
26850
26872
|
}
|
|
26851
26873
|
];
|
|
26852
26874
|
|
|
26853
|
-
// 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
|
|
26854
26876
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26855
26877
|
|
|
26856
|
-
// 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
|
|
26857
26879
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26858
26880
|
var MONEY_DONE_FORMS = words2([
|
|
26859
26881
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26893,7 +26915,7 @@ var PROMISE_FORMS = words2([
|
|
|
26893
26915
|
"estar\xE1 listo"
|
|
26894
26916
|
]);
|
|
26895
26917
|
|
|
26896
|
-
// 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
|
|
26897
26919
|
var EXCERPT_CHARS = 80;
|
|
26898
26920
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26899
26921
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26915,7 +26937,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26915
26937
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26916
26938
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26917
26939
|
|
|
26918
|
-
// 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
|
|
26919
26941
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26920
26942
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26921
26943
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26996,7 +27018,7 @@ var amounts = {
|
|
|
26996
27018
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26997
27019
|
};
|
|
26998
27020
|
|
|
26999
|
-
// 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
|
|
27000
27022
|
var children = {
|
|
27001
27023
|
id: "children",
|
|
27002
27024
|
version: 1,
|
|
@@ -27025,7 +27047,7 @@ var children = {
|
|
|
27025
27047
|
}, "read")
|
|
27026
27048
|
};
|
|
27027
27049
|
|
|
27028
|
-
// 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
|
|
27029
27051
|
var coverage = {
|
|
27030
27052
|
id: "coverage",
|
|
27031
27053
|
version: 1,
|
|
@@ -27054,7 +27076,7 @@ var coverage = {
|
|
|
27054
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")
|
|
27055
27077
|
};
|
|
27056
27078
|
|
|
27057
|
-
// 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
|
|
27058
27080
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
27059
27081
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
27060
27082
|
signal: "payments",
|
|
@@ -27104,7 +27126,7 @@ var payments = {
|
|
|
27104
27126
|
}, "read")
|
|
27105
27127
|
};
|
|
27106
27128
|
|
|
27107
|
-
// 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
|
|
27108
27130
|
var PATTERNS_PER_CHAT = 3;
|
|
27109
27131
|
var DAY3 = 864e5;
|
|
27110
27132
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27193,7 +27215,7 @@ var promises = {
|
|
|
27193
27215
|
}, "read")
|
|
27194
27216
|
};
|
|
27195
27217
|
|
|
27196
|
-
// 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
|
|
27197
27219
|
var PER_SIDE = 5;
|
|
27198
27220
|
var WEEK = 7 * 864e5;
|
|
27199
27221
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27224,7 +27246,7 @@ var questions2 = {
|
|
|
27224
27246
|
}, "attention")
|
|
27225
27247
|
};
|
|
27226
27248
|
|
|
27227
|
-
// 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
|
|
27228
27250
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27229
27251
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
27230
27252
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27292,7 +27314,7 @@ var replyNext = {
|
|
|
27292
27314
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27293
27315
|
};
|
|
27294
27316
|
|
|
27295
|
-
// 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
|
|
27296
27318
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27297
27319
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27298
27320
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27338,7 +27360,7 @@ var topics = {
|
|
|
27338
27360
|
}, "read")
|
|
27339
27361
|
};
|
|
27340
27362
|
|
|
27341
|
-
// 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
|
|
27342
27364
|
var STATUS_SIGNALS = [
|
|
27343
27365
|
replyNext,
|
|
27344
27366
|
questions2,
|
|
@@ -27350,7 +27372,7 @@ var STATUS_SIGNALS = [
|
|
|
27350
27372
|
children
|
|
27351
27373
|
];
|
|
27352
27374
|
|
|
27353
|
-
// 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
|
|
27354
27376
|
var DAY4 = 864e5;
|
|
27355
27377
|
var STATUS_WINDOW = 300;
|
|
27356
27378
|
var STATUS_CHATS = 16;
|
|
@@ -27539,7 +27561,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27539
27561
|
};
|
|
27540
27562
|
}, "projectStatus");
|
|
27541
27563
|
|
|
27542
|
-
// 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
|
|
27543
27565
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27544
27566
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27545
27567
|
if (deps.offline)
|
|
@@ -27611,7 +27633,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27611
27633
|
};
|
|
27612
27634
|
}, "accountService");
|
|
27613
27635
|
|
|
27614
|
-
// 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
|
|
27615
27637
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
27616
27638
|
const at = aheadOf(value, flag, now, {
|
|
27617
27639
|
...zone === void 0 ? {} : { zone },
|
|
@@ -27622,7 +27644,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27622
27644
|
return new Date(at - at % MINUTE).toISOString();
|
|
27623
27645
|
}, "sendTime");
|
|
27624
27646
|
|
|
27625
|
-
// 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
|
|
27626
27648
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
27627
27649
|
try {
|
|
27628
27650
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27869,7 +27891,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27869
27891
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27870
27892
|
}, "linkLimits");
|
|
27871
27893
|
|
|
27872
|
-
// 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
|
|
27873
27895
|
var THREADS_PAGE = 500;
|
|
27874
27896
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27875
27897
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27944,7 +27966,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
27944
27966
|
return thread.slice(Math.max(0, at - before), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27945
27967
|
}, "readMail");
|
|
27946
27968
|
|
|
27947
|
-
// 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
|
|
27948
27970
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27949
27971
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27950
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");
|
|
@@ -28311,7 +28333,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28311
28333
|
};
|
|
28312
28334
|
}, "statsLucene");
|
|
28313
28335
|
|
|
28314
|
-
// 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
|
|
28315
28337
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28316
28338
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28317
28339
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28480,7 +28502,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28480
28502
|
};
|
|
28481
28503
|
}, "readRankingSelection");
|
|
28482
28504
|
|
|
28483
|
-
// 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
|
|
28484
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");
|
|
28485
28507
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28486
28508
|
command,
|
|
@@ -28490,7 +28512,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28490
28512
|
fieldsVersion: FIELD_VERSION
|
|
28491
28513
|
}), "searchRecordOf");
|
|
28492
28514
|
|
|
28493
|
-
// 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
|
|
28494
28516
|
function invalid4(message) {
|
|
28495
28517
|
throw new CliError("validation_error", message);
|
|
28496
28518
|
}
|
|
@@ -28784,7 +28806,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28784
28806
|
}, "evidence")
|
|
28785
28807
|
}), "adminStatisticsService");
|
|
28786
28808
|
|
|
28787
|
-
// 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
|
|
28788
28810
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28789
28811
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28790
28812
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28921,12 +28943,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28921
28943
|
return { plan, repair };
|
|
28922
28944
|
}, "gapsService");
|
|
28923
28945
|
|
|
28924
|
-
// 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
|
|
28925
28947
|
import { createHash as createHash10 } from "node:crypto";
|
|
28926
28948
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28927
28949
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28928
28950
|
|
|
28929
|
-
// 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
|
|
28930
28952
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28931
28953
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
28932
28954
|
var MAX_FILES = 1e4;
|
|
@@ -28997,15 +29019,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28997
29019
|
return choices;
|
|
28998
29020
|
}, "directoryPaths");
|
|
28999
29021
|
|
|
29000
|
-
// 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
|
|
29001
29023
|
import { posix } from "node:path";
|
|
29002
29024
|
|
|
29003
|
-
// 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
|
|
29004
29026
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29005
29027
|
import { crc32 } from "node:zlib";
|
|
29006
29028
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29007
29029
|
|
|
29008
|
-
// 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
|
|
29009
29031
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29010
29032
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29011
29033
|
var SAMPLE = 65536;
|
|
@@ -29107,7 +29129,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29107
29129
|
return result.text;
|
|
29108
29130
|
}, "decodeXml");
|
|
29109
29131
|
|
|
29110
|
-
// 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
|
|
29111
29133
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29112
29134
|
var MAX_ENTRIES = 1e3;
|
|
29113
29135
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29322,7 +29344,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29322
29344
|
return found;
|
|
29323
29345
|
}, "elements");
|
|
29324
29346
|
|
|
29325
|
-
// 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
|
|
29326
29348
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29327
29349
|
let name = "";
|
|
29328
29350
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29377,7 +29399,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29377
29399
|
return { text: parts.join("").trim(), truncated: false };
|
|
29378
29400
|
}, "sheetText");
|
|
29379
29401
|
|
|
29380
|
-
// 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
|
|
29381
29403
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29382
29404
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29383
29405
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29777,10 +29799,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29777
29799
|
}
|
|
29778
29800
|
}, "readDocument");
|
|
29779
29801
|
|
|
29780
|
-
// 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
|
|
29781
29803
|
import { extname as extname3 } from "node:path";
|
|
29782
29804
|
|
|
29783
|
-
// 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
|
|
29784
29806
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
29785
29807
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
29786
29808
|
import { fileURLToPath } from "node:url";
|
|
@@ -29841,7 +29863,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29841
29863
|
}
|
|
29842
29864
|
}, "derived");
|
|
29843
29865
|
|
|
29844
|
-
// 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
|
|
29845
29867
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29846
29868
|
var image2 = {
|
|
29847
29869
|
id: "image",
|
|
@@ -29850,7 +29872,7 @@ var image2 = {
|
|
|
29850
29872
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29851
29873
|
};
|
|
29852
29874
|
|
|
29853
|
-
// 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
|
|
29854
29876
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29855
29877
|
var doc = {
|
|
29856
29878
|
id: "doc",
|
|
@@ -29862,7 +29884,7 @@ var doc = {
|
|
|
29862
29884
|
}), "read")
|
|
29863
29885
|
};
|
|
29864
29886
|
|
|
29865
|
-
// 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
|
|
29866
29888
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29867
29889
|
var docx = {
|
|
29868
29890
|
id: "docx",
|
|
@@ -29875,10 +29897,10 @@ var docx = {
|
|
|
29875
29897
|
}), "read")
|
|
29876
29898
|
};
|
|
29877
29899
|
|
|
29878
|
-
// 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
|
|
29879
29901
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29880
29902
|
|
|
29881
|
-
// 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
|
|
29882
29904
|
var NAMED = {
|
|
29883
29905
|
amp: "&",
|
|
29884
29906
|
lt: "<",
|
|
@@ -29930,7 +29952,7 @@ var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-
|
|
|
29930
29952
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
29931
29953
|
}), "decodeEntities");
|
|
29932
29954
|
|
|
29933
|
-
// 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
|
|
29934
29956
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29935
29957
|
"fonttbl",
|
|
29936
29958
|
"colortbl",
|
|
@@ -30096,7 +30118,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30096
30118
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
30097
30119
|
}, "htmlText");
|
|
30098
30120
|
|
|
30099
|
-
// 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
|
|
30100
30122
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30101
30123
|
var namesIn2 = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30102
30124
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30152,7 +30174,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30152
30174
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30153
30175
|
}, "markdownSections");
|
|
30154
30176
|
|
|
30155
|
-
// 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
|
|
30156
30178
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30157
30179
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30158
30180
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30223,7 +30245,7 @@ var html = {
|
|
|
30223
30245
|
}, "read")
|
|
30224
30246
|
};
|
|
30225
30247
|
|
|
30226
|
-
// 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
|
|
30227
30249
|
var office = {
|
|
30228
30250
|
id: "office",
|
|
30229
30251
|
version: documentExtractor("odt"),
|
|
@@ -30234,7 +30256,7 @@ var office = {
|
|
|
30234
30256
|
}, "read")
|
|
30235
30257
|
};
|
|
30236
30258
|
|
|
30237
|
-
// 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
|
|
30238
30260
|
var pdf = {
|
|
30239
30261
|
id: "pdf",
|
|
30240
30262
|
version: "unpdf",
|
|
@@ -30301,7 +30323,7 @@ var pdf = {
|
|
|
30301
30323
|
}), "read")
|
|
30302
30324
|
};
|
|
30303
30325
|
|
|
30304
|
-
// 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
|
|
30305
30327
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30306
30328
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30307
30329
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30321,7 +30343,7 @@ var plain = {
|
|
|
30321
30343
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30322
30344
|
};
|
|
30323
30345
|
|
|
30324
|
-
// 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
|
|
30325
30347
|
var rtf = {
|
|
30326
30348
|
id: "rtf",
|
|
30327
30349
|
version: "v1",
|
|
@@ -30329,10 +30351,10 @@ var rtf = {
|
|
|
30329
30351
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30330
30352
|
};
|
|
30331
30353
|
|
|
30332
|
-
// 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
|
|
30333
30355
|
import { basename as basename5 } from "node:path";
|
|
30334
30356
|
|
|
30335
|
-
// 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
|
|
30336
30358
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30337
30359
|
const cells = [];
|
|
30338
30360
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30370,7 +30392,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30370
30392
|
return { cells, truncated };
|
|
30371
30393
|
}, "delimitedSpans");
|
|
30372
30394
|
|
|
30373
|
-
// 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
|
|
30374
30396
|
var DELIMITED = {
|
|
30375
30397
|
".csv": ",",
|
|
30376
30398
|
".tsv": " ",
|
|
@@ -30409,7 +30431,7 @@ var sheets = {
|
|
|
30409
30431
|
}, "read")
|
|
30410
30432
|
};
|
|
30411
30433
|
|
|
30412
|
-
// 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
|
|
30413
30435
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30414
30436
|
var HEAD_BYTES = 1024;
|
|
30415
30437
|
var readers = [...BUILT_INS2];
|
|
@@ -30419,7 +30441,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30419
30441
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30420
30442
|
}, "readWithRegistry");
|
|
30421
30443
|
|
|
30422
|
-
// 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
|
|
30423
30445
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30424
30446
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30425
30447
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31498,7 +31520,7 @@ function imageSize(input) {
|
|
|
31498
31520
|
}
|
|
31499
31521
|
__name(imageSize, "imageSize");
|
|
31500
31522
|
|
|
31501
|
-
// 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
|
|
31502
31524
|
var MAX_PAGES = 20;
|
|
31503
31525
|
var MAX_PIXELS = 2e7;
|
|
31504
31526
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31658,7 +31680,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31658
31680
|
}
|
|
31659
31681
|
}, "ocrPdf");
|
|
31660
31682
|
|
|
31661
|
-
// 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
|
|
31662
31684
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31663
31685
|
const limits = pdfPreviewLimits(env);
|
|
31664
31686
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31735,7 +31757,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31735
31757
|
}
|
|
31736
31758
|
}, "pdfPreview");
|
|
31737
31759
|
|
|
31738
|
-
// 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
|
|
31739
31761
|
import { spawn } from "node:child_process";
|
|
31740
31762
|
import { mkdtempSync, readFileSync as readFileSync7, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
31741
31763
|
import { tmpdir } from "node:os";
|
|
@@ -31898,7 +31920,7 @@ Read the attached picture.`,
|
|
|
31898
31920
|
}
|
|
31899
31921
|
}, "readPictureWithAgent");
|
|
31900
31922
|
|
|
31901
|
-
// 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
|
|
31902
31924
|
import { createHash as createHash8 } from "node:crypto";
|
|
31903
31925
|
import { constants } from "node:fs";
|
|
31904
31926
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -32006,7 +32028,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
32006
32028
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
32007
32029
|
}, "transferMime");
|
|
32008
32030
|
|
|
32009
|
-
// 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
|
|
32010
32032
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
32011
32033
|
import { link as link3, rm } from "node:fs/promises";
|
|
32012
32034
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -32120,12 +32142,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32120
32142
|
}
|
|
32121
32143
|
}, "save");
|
|
32122
32144
|
|
|
32123
|
-
// 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
|
|
32124
32146
|
import { createHash as createHash9 } from "node:crypto";
|
|
32125
32147
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
32126
32148
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32127
32149
|
|
|
32128
|
-
// 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
|
|
32129
32151
|
var GROUP_SETTINGS = [
|
|
32130
32152
|
"allCanPin",
|
|
32131
32153
|
"onlyAdminsAdd",
|
|
@@ -32139,7 +32161,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32139
32161
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32140
32162
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32141
32163
|
|
|
32142
|
-
// 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
|
|
32143
32165
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32144
32166
|
var PICTURE_FLOOR = 0.25;
|
|
32145
32167
|
var PAGE4 = 50;
|
|
@@ -32180,7 +32202,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32180
32202
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32181
32203
|
if (!isImageModelInstalled(model2, directory2))
|
|
32182
32204
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32183
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32205
|
+
const { openPictureEmbedder } = await import("./embedder-JHIQSBGD.js");
|
|
32184
32206
|
return openPictureEmbedder(model2, directory2);
|
|
32185
32207
|
}, "open");
|
|
32186
32208
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32354,7 +32376,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32354
32376
|
}, "search")
|
|
32355
32377
|
}), "withPictures");
|
|
32356
32378
|
|
|
32357
|
-
// 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
|
|
32358
32380
|
var ATTACHMENT_QUERY = {
|
|
32359
32381
|
entity: "attachment",
|
|
32360
32382
|
backend: "sql",
|
|
@@ -32825,7 +32847,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32825
32847
|
}, "readPicture")
|
|
32826
32848
|
}), "attachmentsService");
|
|
32827
32849
|
|
|
32828
|
-
// 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
|
|
32829
32851
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32830
32852
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32831
32853
|
const store = await accountStore(deps);
|
|
@@ -32855,7 +32877,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32855
32877
|
}, "list")
|
|
32856
32878
|
}), "chatDocumentsService");
|
|
32857
32879
|
|
|
32858
|
-
// 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
|
|
32859
32881
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32860
32882
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32861
32883
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32942,7 +32964,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32942
32964
|
}
|
|
32943
32965
|
}, "isRetentionSelection");
|
|
32944
32966
|
|
|
32945
|
-
// 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
|
|
32946
32968
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32947
32969
|
const fields = text2.split(",").map((one) => one.trim());
|
|
32948
32970
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -33149,7 +33171,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33149
33171
|
};
|
|
33150
33172
|
}, "countersService");
|
|
33151
33173
|
|
|
33152
|
-
// 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
|
|
33153
33175
|
var SYNC_KEY = "messages.sync-first";
|
|
33154
33176
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
33155
33177
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -33281,7 +33303,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
33281
33303
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
33282
33304
|
}), "withRefresh");
|
|
33283
33305
|
|
|
33284
|
-
// 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
|
|
33285
33307
|
var CANDIDATES = 50;
|
|
33286
33308
|
var WORD_HITS = 200;
|
|
33287
33309
|
var RRF_K2 = 60;
|
|
@@ -33579,13 +33601,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33579
33601
|
return mean2.map((value) => value / length);
|
|
33580
33602
|
}, "meanOf");
|
|
33581
33603
|
|
|
33582
|
-
// 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
|
|
33583
33605
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33584
33606
|
...embeddingsMaintenance(deps),
|
|
33585
33607
|
...embeddingsSearch(deps)
|
|
33586
33608
|
}), "embeddingsService");
|
|
33587
33609
|
|
|
33588
|
-
// 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
|
|
33589
33611
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33590
33612
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33591
33613
|
if (deps.offline)
|
|
@@ -33726,7 +33748,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33726
33748
|
};
|
|
33727
33749
|
}, "foldersService");
|
|
33728
33750
|
|
|
33729
|
-
// 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
|
|
33730
33752
|
var REVIEW_COUNT = 500;
|
|
33731
33753
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33732
33754
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33805,7 +33827,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33805
33827
|
};
|
|
33806
33828
|
}, "mentionsService");
|
|
33807
33829
|
|
|
33808
|
-
// 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
|
|
33809
33831
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33810
33832
|
position,
|
|
33811
33833
|
kind,
|
|
@@ -33854,7 +33876,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33854
33876
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33855
33877
|
}, "validatePermalink");
|
|
33856
33878
|
|
|
33857
|
-
// 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
|
|
33858
33880
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33859
33881
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33860
33882
|
return `${seconds / 86400}d`;
|
|
@@ -33886,7 +33908,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33886
33908
|
return seconds;
|
|
33887
33909
|
}, "pinDurationOf");
|
|
33888
33910
|
|
|
33889
|
-
// 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
|
|
33890
33912
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33891
33913
|
if (sendAs === void 0) {
|
|
33892
33914
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33911,7 +33933,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33911
33933
|
return sendAs;
|
|
33912
33934
|
}, "typedSendAs");
|
|
33913
33935
|
|
|
33914
|
-
// 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
|
|
33915
33937
|
var TOTAL_CAP = 1e4;
|
|
33916
33938
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33917
33939
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33922,7 +33944,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33922
33944
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33923
33945
|
}, "totalOf");
|
|
33924
33946
|
|
|
33925
|
-
// 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
|
|
33926
33948
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33927
33949
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33928
33950
|
let narrows = false;
|
|
@@ -33951,7 +33973,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33951
33973
|
return wanted(root).join(" ").trim();
|
|
33952
33974
|
}, "meaningWords");
|
|
33953
33975
|
|
|
33954
|
-
// 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
|
|
33955
33977
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33956
33978
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33957
33979
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -34152,7 +34174,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
34152
34174
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
34153
34175
|
}, "signals");
|
|
34154
34176
|
|
|
34155
|
-
// 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
|
|
34156
34178
|
var MEANING_DEPTH = 100;
|
|
34157
34179
|
var RRF_K3 = 60;
|
|
34158
34180
|
var RERANK_DEPTH = 50;
|
|
@@ -34478,7 +34500,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34478
34500
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34479
34501
|
}, "mixedWithReranker");
|
|
34480
34502
|
|
|
34481
|
-
// 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
|
|
34482
34504
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34483
34505
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34484
34506
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34677,7 +34699,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34677
34699
|
return result;
|
|
34678
34700
|
}, "readThreadContext");
|
|
34679
34701
|
|
|
34680
|
-
// 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
|
|
34681
34703
|
var SEARCH_FILL_MS = 200;
|
|
34682
34704
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34683
34705
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34746,7 +34768,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34746
34768
|
}, "accountOf");
|
|
34747
34769
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34748
34770
|
|
|
34749
|
-
// 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
|
|
34750
34772
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34751
34773
|
const chosen = chosenTextModel(env);
|
|
34752
34774
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34761,7 +34783,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34761
34783
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34762
34784
|
}, "meaningModel");
|
|
34763
34785
|
|
|
34764
|
-
// 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
|
|
34765
34787
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34766
34788
|
try {
|
|
34767
34789
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34840,7 +34862,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34840
34862
|
}
|
|
34841
34863
|
}, "meaningLane");
|
|
34842
34864
|
|
|
34843
|
-
// 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
|
|
34844
34866
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34845
34867
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34846
34868
|
if (choice === "off")
|
|
@@ -34852,9 +34874,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34852
34874
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34853
34875
|
try {
|
|
34854
34876
|
const warm = deps.embedders;
|
|
34855
|
-
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, {
|
|
34856
34878
|
threads: defaultThreads()
|
|
34857
|
-
})) : await (await import("./rerank-
|
|
34879
|
+
})) : await (await import("./rerank-2DSO3D3S.js")).openReranker(model, directory2);
|
|
34858
34880
|
return {
|
|
34859
34881
|
model: model.id,
|
|
34860
34882
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34874,7 +34896,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34874
34896
|
};
|
|
34875
34897
|
}, "rerankLane");
|
|
34876
34898
|
|
|
34877
|
-
// 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
|
|
34878
34900
|
var DAY5 = 864e5;
|
|
34879
34901
|
var SPAN = { start: 0, end: 0 };
|
|
34880
34902
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34999,17 +35021,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34999
35021
|
};
|
|
35000
35022
|
}, "questionPeriod");
|
|
35001
35023
|
|
|
35002
|
-
// 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
|
|
35003
35025
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
35004
35026
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
35005
35027
|
const directory2 = imageModelsDirectory(env);
|
|
35006
35028
|
if (!isImageModelInstalled(model, directory2))
|
|
35007
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 });
|
|
35008
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35030
|
+
const { openPictureEmbedder } = await import("./embedder-JHIQSBGD.js");
|
|
35009
35031
|
return openPictureEmbedder(model, directory2);
|
|
35010
35032
|
}, "openPictureEmbedderFor");
|
|
35011
35033
|
|
|
35012
|
-
// 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
|
|
35013
35035
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
35014
35036
|
const metadata = note.frontMatter;
|
|
35015
35037
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -35031,7 +35053,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
35031
35053
|
};
|
|
35032
35054
|
}, "documentSource");
|
|
35033
35055
|
|
|
35034
|
-
// 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
|
|
35035
35057
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
35036
35058
|
const host = new URL(baseUrl).host;
|
|
35037
35059
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -35064,7 +35086,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
35064
35086
|
};
|
|
35065
35087
|
}, "embeddingKeys");
|
|
35066
35088
|
|
|
35067
|
-
// 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
|
|
35068
35090
|
var options = strictObject({
|
|
35069
35091
|
temperature: range(0, 2),
|
|
35070
35092
|
top_p: range(0, 1),
|
|
@@ -35131,7 +35153,7 @@ var openai = {
|
|
|
35131
35153
|
}), "complete")
|
|
35132
35154
|
};
|
|
35133
35155
|
|
|
35134
|
-
// 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
|
|
35135
35157
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
35136
35158
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
35137
35159
|
if (deps.signal?.aborted)
|
|
@@ -35146,7 +35168,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35146
35168
|
if (!adapter && target2.provider === "openai")
|
|
35147
35169
|
adapter = openai;
|
|
35148
35170
|
if (!adapter && target2.provider === "anthropic")
|
|
35149
|
-
adapter = (await import("./anthropic-
|
|
35171
|
+
adapter = (await import("./anthropic-J6CTLU3W.js")).anthropic;
|
|
35150
35172
|
if (!adapter)
|
|
35151
35173
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
35152
35174
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -35206,7 +35228,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35206
35228
|
}, "complete")
|
|
35207
35229
|
}), "modelGateway");
|
|
35208
35230
|
|
|
35209
|
-
// 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
|
|
35210
35232
|
var SECTION2 = "enrichment";
|
|
35211
35233
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
35212
35234
|
var DEFAULT_BASE_URLS = {
|
|
@@ -35281,7 +35303,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting2) => {
|
|
|
35281
35303
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
35282
35304
|
}, "costOf");
|
|
35283
35305
|
|
|
35284
|
-
// 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
|
|
35285
35307
|
var ENRICH_PER_RUN = 600;
|
|
35286
35308
|
var MAX_LINE = 400;
|
|
35287
35309
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -35357,7 +35379,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
35357
35379
|
};
|
|
35358
35380
|
}, "enrichmentState");
|
|
35359
35381
|
|
|
35360
|
-
// 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
|
|
35361
35383
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
35362
35384
|
let root;
|
|
35363
35385
|
try {
|
|
@@ -35384,7 +35406,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
35384
35406
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
35385
35407
|
}, "titleTiers");
|
|
35386
35408
|
|
|
35387
|
-
// 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
|
|
35388
35410
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
35389
35411
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
35390
35412
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35812,7 +35834,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35812
35834
|
};
|
|
35813
35835
|
}, "searchNotesOf");
|
|
35814
35836
|
|
|
35815
|
-
// 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
|
|
35816
35838
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35817
35839
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35818
35840
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35930,7 +35952,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35930
35952
|
};
|
|
35931
35953
|
}, "searchEvents");
|
|
35932
35954
|
|
|
35933
|
-
// 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
|
|
35934
35956
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35935
35957
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35936
35958
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35960,7 +35982,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35960
35982
|
};
|
|
35961
35983
|
}, "searchBusiness");
|
|
35962
35984
|
|
|
35963
|
-
// 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
|
|
35964
35986
|
var MOST_HITS_PER_MEETING = 3;
|
|
35965
35987
|
var PAGE_ROWS = 200;
|
|
35966
35988
|
var MOST_PAGES = 25;
|
|
@@ -36188,7 +36210,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
36188
36210
|
foundBy: ["title"]
|
|
36189
36211
|
}), "titleItem");
|
|
36190
36212
|
|
|
36191
|
-
// 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
|
|
36192
36214
|
var SECTION3 = "search_harder";
|
|
36193
36215
|
var HARDER_MODELS = {
|
|
36194
36216
|
anthropic: "claude-haiku-5-5",
|
|
@@ -36434,7 +36456,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
36434
36456
|
};
|
|
36435
36457
|
}, "reorderHarder");
|
|
36436
36458
|
|
|
36437
|
-
// 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
|
|
36438
36460
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
36439
36461
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
36440
36462
|
const { reason, span } = error.details ?? {};
|
|
@@ -36683,6 +36705,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
36683
36705
|
anyWord: anyWord || discover,
|
|
36684
36706
|
...request.exact ? { exact: true } : {},
|
|
36685
36707
|
...request.crmKinds === void 0 ? {} : { kinds: request.crmKinds },
|
|
36708
|
+
...request.crmViewers === void 0 ? {} : { viewers: request.crmViewers },
|
|
36686
36709
|
limit: Math.min(depth, 500),
|
|
36687
36710
|
...chosen2 === void 0 ? {} : { accounts: chosen2 }
|
|
36688
36711
|
});
|
|
@@ -36847,7 +36870,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36847
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);
|
|
36848
36871
|
}, "insidePeriodFirst");
|
|
36849
36872
|
|
|
36850
|
-
// 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
|
|
36851
36874
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36852
36875
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36853
36876
|
var DEFAULT_BACKEND = "both";
|
|
@@ -37038,7 +37061,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
37038
37061
|
return { report, sources };
|
|
37039
37062
|
}, "searchServer");
|
|
37040
37063
|
|
|
37041
|
-
// 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
|
|
37042
37065
|
var DELETE_AT_ONCE = 10;
|
|
37043
37066
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
37044
37067
|
const files = fileLinks(attachments);
|
|
@@ -37478,7 +37501,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
37478
37501
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
37479
37502
|
}, "checkMediaOptions");
|
|
37480
37503
|
|
|
37481
|
-
// 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
|
|
37482
37505
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
37483
37506
|
var RULES2 = {
|
|
37484
37507
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -37493,7 +37516,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
37493
37516
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
37494
37517
|
}), "classifyChannel");
|
|
37495
37518
|
|
|
37496
|
-
// 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
|
|
37497
37520
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
37498
37521
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
37499
37522
|
const store = await deps.store();
|
|
@@ -37579,7 +37602,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37579
37602
|
};
|
|
37580
37603
|
}, "metadataService");
|
|
37581
37604
|
|
|
37582
|
-
// 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
|
|
37583
37606
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37584
37607
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
37585
37608
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -37616,7 +37639,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
37616
37639
|
return { chatId, rows, notes };
|
|
37617
37640
|
}, "moderateWith");
|
|
37618
37641
|
|
|
37619
|
-
// 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
|
|
37620
37643
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37621
37644
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
37622
37645
|
const env = deps.env ?? process.env;
|
|
@@ -37701,7 +37724,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37701
37724
|
}, "removePerson")
|
|
37702
37725
|
}), "moderatorOf");
|
|
37703
37726
|
|
|
37704
|
-
// 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
|
|
37705
37728
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37706
37729
|
id: note.id,
|
|
37707
37730
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37745,7 +37768,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37745
37768
|
};
|
|
37746
37769
|
}, "privatePeopleService");
|
|
37747
37770
|
|
|
37748
|
-
// 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
|
|
37749
37772
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37750
37773
|
total: 0,
|
|
37751
37774
|
population: 0,
|
|
@@ -38001,7 +38024,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
38001
38024
|
}, "evidence")
|
|
38002
38025
|
}), "rankingsService");
|
|
38003
38026
|
|
|
38004
|
-
// 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
|
|
38005
38028
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
38006
38029
|
var WAITING_TAIL = 100;
|
|
38007
38030
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -38135,7 +38158,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38135
38158
|
};
|
|
38136
38159
|
}, "replyStatsService");
|
|
38137
38160
|
|
|
38138
|
-
// 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
|
|
38139
38162
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
38140
38163
|
id: one.id,
|
|
38141
38164
|
name: one.name,
|
|
@@ -38261,7 +38284,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
38261
38284
|
};
|
|
38262
38285
|
}, "searchesService");
|
|
38263
38286
|
|
|
38264
|
-
// 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
|
|
38265
38288
|
var TAGGING_QUERY = {
|
|
38266
38289
|
entity: "tagging",
|
|
38267
38290
|
backend: "sql",
|
|
@@ -38345,7 +38368,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38345
38368
|
};
|
|
38346
38369
|
}, "tagsService");
|
|
38347
38370
|
|
|
38348
|
-
// 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
|
|
38349
38372
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38350
38373
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
38351
38374
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38544,7 +38567,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38544
38567
|
};
|
|
38545
38568
|
}, "topicsService");
|
|
38546
38569
|
|
|
38547
|
-
// 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
|
|
38548
38571
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38549
38572
|
var CRM_WRITE_DEFAULTS = {
|
|
38550
38573
|
"deals.delete": "ask",
|
|
@@ -38552,10 +38575,10 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38552
38575
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38553
38576
|
};
|
|
38554
38577
|
|
|
38555
|
-
// 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
|
|
38556
38579
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38557
38580
|
|
|
38558
|
-
// 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
|
|
38559
38582
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
38560
38583
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38561
38584
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38629,7 +38652,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38629
38652
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
38630
38653
|
}, "prepareEvidencePacket");
|
|
38631
38654
|
|
|
38632
|
-
// 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
|
|
38633
38656
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
38634
38657
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38635
38658
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38649,7 +38672,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38649
38672
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38650
38673
|
}, "readEvidencePacket");
|
|
38651
38674
|
|
|
38652
|
-
// 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
|
|
38653
38676
|
var scopeKeys = [
|
|
38654
38677
|
"accountId",
|
|
38655
38678
|
"meetingId",
|
|
@@ -38671,7 +38694,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
38671
38694
|
"maxVocabularyReadBytes"
|
|
38672
38695
|
]);
|
|
38673
38696
|
|
|
38674
|
-
// 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
|
|
38675
38698
|
import { createHash as createHash12 } from "node:crypto";
|
|
38676
38699
|
import { existsSync as existsSync3 } from "node:fs";
|
|
38677
38700
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38802,14 +38825,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38802
38825
|
return { ...checked2.output, custom: true };
|
|
38803
38826
|
}, "addCustomTextModel");
|
|
38804
38827
|
|
|
38805
|
-
// 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
|
|
38806
38829
|
var DAY6 = 864e5;
|
|
38807
38830
|
var SLOTS_EVERY = 7 * DAY6;
|
|
38808
38831
|
|
|
38809
|
-
// 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
|
|
38810
38833
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
38811
38834
|
|
|
38812
|
-
// 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
|
|
38813
38836
|
var LIST = "events list";
|
|
38814
38837
|
var EVENT_TYPES = [
|
|
38815
38838
|
"default",
|
|
@@ -38868,7 +38891,7 @@ var EVENTS_QUERY = {
|
|
|
38868
38891
|
} : field)
|
|
38869
38892
|
};
|
|
38870
38893
|
|
|
38871
|
-
// 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
|
|
38872
38895
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
38873
38896
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
38874
38897
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -38886,7 +38909,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
38886
38909
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
38887
38910
|
};
|
|
38888
38911
|
|
|
38889
|
-
// 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
|
|
38890
38913
|
var communicationFields = {
|
|
38891
38914
|
sources: pipe(array(strictObject({
|
|
38892
38915
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38918,7 +38941,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38918
38941
|
return { ...input, after, before };
|
|
38919
38942
|
}, "communicationRequest");
|
|
38920
38943
|
|
|
38921
|
-
// 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
|
|
38922
38945
|
var MEETING_PREPARATION_LIMITS = {
|
|
38923
38946
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38924
38947
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38991,7 +39014,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38991
39014
|
};
|
|
38992
39015
|
}, "validateMeetingPreparationRequest");
|
|
38993
39016
|
|
|
38994
|
-
// 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
|
|
38995
39018
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38996
39019
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38997
39020
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -39039,7 +39062,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
39039
39062
|
}
|
|
39040
39063
|
}, "validatePreparationCommunications");
|
|
39041
39064
|
|
|
39042
|
-
// 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
|
|
39043
39066
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39044
39067
|
const installer = ports.installer();
|
|
39045
39068
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39104,7 +39127,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39104
39127
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39105
39128
|
}, "dayAfter");
|
|
39106
39129
|
|
|
39107
|
-
// 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
|
|
39108
39131
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39109
39132
|
const pictures = picturesService(deps);
|
|
39110
39133
|
const base = {
|
|
@@ -39141,7 +39164,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39141
39164
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39142
39165
|
}, "servicesFor");
|
|
39143
39166
|
|
|
39144
|
-
// 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
|
|
39145
39168
|
import { createHash as createHash13 } from "node:crypto";
|
|
39146
39169
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
|
|
39147
39170
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39362,7 +39385,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
39362
39385
|
}, () => finish({ error: stopped() }));
|
|
39363
39386
|
}), "relayCommand");
|
|
39364
39387
|
|
|
39365
|
-
// 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
|
|
39366
39389
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39367
39390
|
close: /* @__PURE__ */ __name(async () => {
|
|
39368
39391
|
}, "close"),
|