@wirecat/tg-cli 0.131.0 → 0.132.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/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-TA637IRT.js → adapter-OXVMOWVE.js} +60 -60
- package/dist/bundle/{all-profiles-7M3GBCB6.js → all-profiles-6OQC7PBL.js} +9 -9
- package/dist/bundle/{anthropic-P3THLZWO.js → anthropic-YFMIHFW5.js} +5 -5
- package/dist/bundle/{app-server-OE5EAXIY.js → app-server-S7CJPJXN.js} +52 -52
- package/dist/bundle/{bot-api-WYR2C4A5.js → bot-api-KJ6EZ4R6.js} +61 -61
- package/dist/bundle/{bot-history-PKJTHU7L.js → bot-history-JYCXDFW4.js} +22 -22
- package/dist/bundle/{bun-XMZJDDEA.js → bun-FVTOBYZ2.js} +2 -2
- package/dist/bundle/{bun-sqlite-F5RWCB2N.js → bun-sqlite-KDGWBNOR.js} +6 -6
- package/dist/bundle/{chunk-76UAXRDY.js → chunk-2LZD2VFV.js} +4 -4
- package/dist/bundle/{chunk-JUFLELQ7.js → chunk-2UGSIHLV.js} +2 -2
- package/dist/bundle/{chunk-2U6XE4HI.js → chunk-3QHKZLBU.js} +4 -4
- package/dist/bundle/{chunk-34PRGA7E.js → chunk-42MXCMW6.js} +3 -3
- package/dist/bundle/{chunk-HT6OFANN.js → chunk-44A2XRDE.js} +20 -20
- package/dist/bundle/{chunk-WG6UZJ3E.js → chunk-4CKYANQH.js} +1 -1
- package/dist/bundle/{chunk-AUNNJDVD.js → chunk-4EDJJQJI.js} +28 -8
- package/dist/bundle/{chunk-O7X6RM5R.js → chunk-4YB7JU2W.js} +6 -6
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-4ZTVJHWU.js} +4 -4
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-5RDNBG7D.js} +2 -2
- package/dist/bundle/{chunk-UUNQV4YL.js → chunk-5UPEEMEF.js} +22 -15
- package/dist/bundle/{chunk-YJ4BPNWI.js → chunk-6LPUK62N.js} +3 -3
- package/dist/bundle/{chunk-GNIROVSK.js → chunk-74UPKW7H.js} +2 -2
- package/dist/bundle/{chunk-IULSIKEM.js → chunk-7SEVVE3X.js} +3 -3
- package/dist/bundle/{chunk-PS7ZS5HD.js → chunk-A5D3J7XZ.js} +4 -4
- package/dist/bundle/{chunk-O73DZURO.js → chunk-AERP2QR6.js} +10 -10
- package/dist/bundle/{chunk-6BPM3LNR.js → chunk-AUZWIBHJ.js} +6 -6
- package/dist/bundle/{chunk-JDLNI7BU.js → chunk-B4LGDOG5.js} +263 -260
- package/dist/bundle/{chunk-B6NQJAUC.js → chunk-BLZEQVP4.js} +2 -2
- package/dist/bundle/{chunk-WUIKJJ5A.js → chunk-BMI2NWFI.js} +8 -8
- package/dist/bundle/{chunk-QGFUUJPL.js → chunk-BSXS7VAC.js} +1 -1
- package/dist/bundle/{chunk-OOSX7K7G.js → chunk-CFWFESBO.js} +8 -8
- package/dist/bundle/{chunk-PD4RREQB.js → chunk-DSJNZXTP.js} +1 -1
- package/dist/bundle/{chunk-MYC3M4BY.js → chunk-DXPGMUOR.js} +2 -2
- package/dist/bundle/{chunk-LJO6MMQG.js → chunk-EPR67IRV.js} +4 -4
- package/dist/bundle/{chunk-SLT2PBFP.js → chunk-ESOFH7PA.js} +37 -30
- package/dist/bundle/{chunk-2OXR2MRV.js → chunk-FIUH52FE.js} +1 -1
- package/dist/bundle/{chunk-43KSYUZU.js → chunk-FKGYXIN7.js} +7 -7
- package/dist/bundle/{chunk-TT6OHNV2.js → chunk-FPSRT2TX.js} +2 -2
- package/dist/bundle/{chunk-ITYDJIRC.js → chunk-HBSKP7OV.js} +1 -1
- package/dist/bundle/{chunk-LDSTUBLY.js → chunk-IY7CTAOQ.js} +9 -9
- package/dist/bundle/{chunk-5AJ5RLJW.js → chunk-IYJ4B632.js} +14 -13
- package/dist/bundle/{chunk-J2QQZVEN.js → chunk-JDNDWZYS.js} +4 -4
- package/dist/bundle/{chunk-H655CMXJ.js → chunk-JMJOWT4N.js} +1 -1
- package/dist/bundle/{chunk-NTORQXAS.js → chunk-JNWKV3QV.js} +4 -4
- package/dist/bundle/{chunk-JSE4OBYI.js → chunk-JPSRC732.js} +13 -13
- package/dist/bundle/{chunk-L2SMUTJY.js → chunk-JZJV3DYK.js} +2 -2
- package/dist/bundle/{chunk-EZBMLKBK.js → chunk-KJICORS4.js} +36 -36
- package/dist/bundle/{chunk-P6KGEZIS.js → chunk-LF6FACSW.js} +5 -5
- package/dist/bundle/{chunk-5ZIT6JXP.js → chunk-LG3K5NHX.js} +7 -7
- package/dist/bundle/{chunk-UGYC2FV5.js → chunk-LMGVPDXN.js} +2 -2
- package/dist/bundle/{chunk-6O5AD3GA.js → chunk-LZ3HFDYL.js} +2 -2
- package/dist/bundle/{chunk-JF4AJNCE.js → chunk-M2TV6BDB.js} +7 -7
- package/dist/bundle/{chunk-XC2YJDDK.js → chunk-N5LZ6L4D.js} +3 -3
- package/dist/bundle/{chunk-OX5EAUKF.js → chunk-NLRGMP7M.js} +3 -3
- package/dist/bundle/{chunk-S2IET7WM.js → chunk-NWCFO37P.js} +3 -3
- package/dist/bundle/{chunk-LWSOCKOD.js → chunk-NWDADTPE.js} +3 -3
- package/dist/bundle/{chunk-BXW6FGLD.js → chunk-O3AM32YN.js} +15 -15
- package/dist/bundle/{chunk-5N7TJ6TJ.js → chunk-O43PARFS.js} +166 -161
- package/dist/bundle/{chunk-OPG54IFH.js → chunk-OGZZUDJJ.js} +54 -54
- package/dist/bundle/{chunk-AJQ6JFLY.js → chunk-OIRNHSAH.js} +6 -6
- package/dist/bundle/{chunk-LEPDRO3O.js → chunk-PG37E63A.js} +76 -59
- package/dist/bundle/{chunk-6TJTQ4I4.js → chunk-PR4F3TYK.js} +30 -30
- package/dist/bundle/{chunk-NOZZHEMD.js → chunk-PYECFCPD.js} +1 -1
- package/dist/bundle/{chunk-EXMJDHBM.js → chunk-QNEAPLOP.js} +12 -12
- package/dist/bundle/{chunk-BFERGEBI.js → chunk-QS46C5SW.js} +17 -17
- package/dist/bundle/{chunk-VNJZXV7E.js → chunk-SMQ45RZX.js} +6 -6
- package/dist/bundle/{chunk-PHGH5N4C.js → chunk-U7PHJSTX.js} +2 -2
- package/dist/bundle/{chunk-SQ2JLZFK.js → chunk-UAFSDTID.js} +1 -1
- package/dist/bundle/{chunk-2TOJQQKS.js → chunk-UGD4SCUI.js} +1 -1
- package/dist/bundle/{chunk-VVUUP5NF.js → chunk-WAVRUADL.js} +13 -13
- package/dist/bundle/{chunk-Z2TCTTPJ.js → chunk-Y57EKZZK.js} +676 -435
- package/dist/bundle/{chunk-LTP4BYHJ.js → chunk-YAPO7QNO.js} +6 -6
- package/dist/bundle/{chunk-YZTMQE62.js → chunk-YRXSNH3R.js} +2 -2
- package/dist/bundle/{chunk-AEIDEIVB.js → chunk-YSNQGOUI.js} +2235 -1355
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-SS5H2XAT.js → chunk-ZJIGVT6Z.js} +2 -2
- package/dist/bundle/{chunk-NXNSEFGR.js → chunk-ZRW3DF25.js} +24 -24
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/command-contract-FRH7LBGE.js +37 -0
- package/dist/bundle/{command-server-entry-6FH3RXJ2.js → command-server-entry-TM264M2J.js} +27 -27
- package/dist/bundle/{decode-UBRT2QDP.js → decode-RJFOSHCE.js} +5 -5
- package/dist/bundle/{dispatch-ST5FK2KI.js → dispatch-7OZP3X4O.js} +8 -8
- package/dist/bundle/{echarts-PG45GQLR.js → echarts-PYKF4D7B.js} +2 -2
- package/dist/bundle/{embed-BUQDSZ57.js → embed-JFN6Z5TG.js} +6 -6
- package/dist/bundle/{embedder-TXA3EV7O.js → embedder-WN54JIMY.js} +9 -9
- package/dist/bundle/{entry-JWIEF57D.js → entry-Z6LO6N6S.js} +9 -9
- package/dist/bundle/{failure-GMUQKQ5K.js → failure-UONA2IA5.js} +2 -2
- package/dist/bundle/{first-run-5VTHKMK5.js → first-run-WQAKES7G.js} +12 -12
- package/dist/bundle/first-screen-4RFG22SA.js +35 -0
- package/dist/bundle/{instructions-ZMEPWTFO.js → instructions-PR4BBBTM.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/meeting-combined-MHWTZOF2.js +23 -0
- package/dist/bundle/{meeting-model-5FVNZCTL.js → meeting-model-YVTUOM4H.js} +11 -11
- package/dist/bundle/{meeting-semantic-HUMYFMO7.js → meeting-semantic-X4KG6RNV.js} +6 -6
- package/dist/bundle/{node-N4DQQJKK.js → node-OVS5LTVZ.js} +2 -2
- package/dist/bundle/{node-sqlite-MG4KFXYY.js → node-sqlite-LC44SM4Z.js} +7 -7
- package/dist/bundle/{oauth-NKDSXEH6.js → oauth-NSVUFQCW.js} +7 -7
- package/dist/bundle/{open-DV2YUU2M.js → open-XN5SJFVY.js} +5 -5
- package/dist/bundle/{openai-FEKMZOUJ.js → openai-WOYZHJNL.js} +15 -15
- package/dist/bundle/{process-QZS3TE6A.js → process-UFBRGTQC.js} +1 -1
- package/dist/bundle/{program-FNDGXEVS.js → program-RAGBRRQH.js} +63 -63
- package/dist/bundle/{prompt-C7RSBNH5.js → prompt-6HAKBUQN.js} +5 -5
- package/dist/bundle/{proxy-transport-A4MRO3PF.js → proxy-transport-5EJVFUTC.js} +5 -5
- package/dist/bundle/{recognize-5BL763FS.js → recognize-CN5COBVJ.js} +4 -4
- package/dist/bundle/{remote-CXAKRC7X.js → remote-STX5AMGE.js} +9 -9
- package/dist/bundle/{rerank-XAEXY5A4.js → rerank-ZCOWTXIJ.js} +7 -7
- package/dist/bundle/{serve-JLZGFTZH.js → serve-XMQEOIG2.js} +9 -9
- package/dist/bundle/{server-GF3TV2U7.js → server-PGGUD3DM.js} +44 -44
- package/dist/bundle/server-WTNYWCZ4.js +69 -0
- package/dist/bundle/{sqlite-runtime-3OVQ7OTM.js → sqlite-runtime-PS4DSOIU.js} +6 -6
- package/dist/bundle/{state-FGJKQKC2.js → state-GL4ZC57O.js} +6 -6
- package/dist/bundle/{store-WYLMNAAQ.js → store-HJ76TLWD.js} +19 -19
- package/dist/bundle/{store-2J5VJZQY.js → store-VISFXSHL.js} +17 -17
- package/dist/bundle/store-maintenance-command-SMARMN5C.js +60 -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/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-VKE77B3F.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WAVRUADL.js";
|
|
12
12
|
import {
|
|
13
13
|
anyOfTerms,
|
|
14
14
|
isFunctionWord,
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
questionText,
|
|
20
20
|
resolveMeetingSelection,
|
|
21
21
|
words
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AERP2QR6.js";
|
|
23
23
|
import {
|
|
24
24
|
isNewer,
|
|
25
25
|
updateCommand
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A5D3J7XZ.js";
|
|
27
27
|
import {
|
|
28
28
|
localOnly,
|
|
29
29
|
refuseOffComputer,
|
|
30
30
|
remoteKey
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IY7CTAOQ.js";
|
|
32
32
|
import {
|
|
33
33
|
Unzip,
|
|
34
34
|
UnzipInflate,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
placedText,
|
|
40
40
|
runEmbedders,
|
|
41
41
|
textModelsDirectory
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-AUZWIBHJ.js";
|
|
43
43
|
import {
|
|
44
44
|
AGENDA_COLUMNS,
|
|
45
45
|
BUSINESS_FIND_MAX,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
readMoment,
|
|
111
111
|
threadConversation,
|
|
112
112
|
withoutField
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-Y57EKZZK.js";
|
|
114
114
|
import {
|
|
115
115
|
FIELD_VERSION,
|
|
116
116
|
MESSAGE_PARSING,
|
|
@@ -127,15 +127,15 @@ import {
|
|
|
127
127
|
searchError,
|
|
128
128
|
validateAst,
|
|
129
129
|
validateFields
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-CFWFESBO.js";
|
|
131
131
|
import {
|
|
132
132
|
DEFAULT_STEMMERS,
|
|
133
133
|
createStemmer
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-BMI2NWFI.js";
|
|
135
135
|
import {
|
|
136
136
|
fold,
|
|
137
137
|
normalize
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-FIUH52FE.js";
|
|
139
139
|
import {
|
|
140
140
|
EmptyAnswer,
|
|
141
141
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
range,
|
|
145
145
|
systemFor,
|
|
146
146
|
validateImages
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-JDNDWZYS.js";
|
|
148
148
|
import {
|
|
149
149
|
CEILING_KEY,
|
|
150
150
|
Command,
|
|
@@ -185,14 +185,14 @@ import {
|
|
|
185
185
|
tagging,
|
|
186
186
|
task,
|
|
187
187
|
withAgentLevels
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-O43PARFS.js";
|
|
189
189
|
import {
|
|
190
190
|
MESSENGER_CHANGE_REFUSAL,
|
|
191
191
|
ancestorValue,
|
|
192
192
|
envName,
|
|
193
193
|
readOnlyLockOf,
|
|
194
194
|
readOnlyRefusal
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-74UPKW7H.js";
|
|
196
196
|
import {
|
|
197
197
|
CustomTextModelShape,
|
|
198
198
|
DEFAULT_RERANK_MODEL,
|
|
@@ -206,18 +206,18 @@ import {
|
|
|
206
206
|
textModels,
|
|
207
207
|
vectorModelKey,
|
|
208
208
|
writeTextModelsSection
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-4YB7JU2W.js";
|
|
210
210
|
import {
|
|
211
211
|
PLAIN_HTTP_REFUSED,
|
|
212
212
|
endpoint,
|
|
213
213
|
endpointFetch,
|
|
214
214
|
modelAddressAllowed,
|
|
215
215
|
onThisComputer
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-LF6FACSW.js";
|
|
217
217
|
import {
|
|
218
218
|
installFiles,
|
|
219
219
|
megabytes
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-EPR67IRV.js";
|
|
221
221
|
import {
|
|
222
222
|
INTERNAL_NOTES,
|
|
223
223
|
LOG_ATTRIBUTES,
|
|
@@ -256,21 +256,21 @@ import {
|
|
|
256
256
|
sourceOf3 as sourceOf2,
|
|
257
257
|
typedCommand,
|
|
258
258
|
withAttempt
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-KJICORS4.js";
|
|
260
260
|
import {
|
|
261
261
|
isCliFailure,
|
|
262
262
|
sqliteCode
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-NWDADTPE.js";
|
|
264
264
|
import {
|
|
265
265
|
normalizeTag
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-U7PHJSTX.js";
|
|
267
267
|
import {
|
|
268
268
|
DEFAULT_TASK_CATEGORIES,
|
|
269
269
|
FALLBACK_CATEGORY,
|
|
270
270
|
readSharedSection,
|
|
271
271
|
sharedConfigPath,
|
|
272
272
|
writeSharedSection
|
|
273
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-M2TV6BDB.js";
|
|
274
274
|
import {
|
|
275
275
|
BACKENDS,
|
|
276
276
|
EVENT_QUERY,
|
|
@@ -298,6 +298,7 @@ import {
|
|
|
298
298
|
liftMeetingFields,
|
|
299
299
|
listed,
|
|
300
300
|
markedPassage,
|
|
301
|
+
meetingCallItem,
|
|
301
302
|
meetingCueFingerprint,
|
|
302
303
|
meetingDetailsBody,
|
|
303
304
|
meetingFieldFlag,
|
|
@@ -324,11 +325,11 @@ import {
|
|
|
324
325
|
validateQuery,
|
|
325
326
|
walkQuery,
|
|
326
327
|
windowOf
|
|
327
|
-
} from "./chunk-
|
|
328
|
+
} from "./chunk-PG37E63A.js";
|
|
328
329
|
import {
|
|
329
330
|
storePath,
|
|
330
331
|
wirecatDirectory
|
|
331
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-FPSRT2TX.js";
|
|
332
333
|
import {
|
|
333
334
|
Credentials,
|
|
334
335
|
logRecordOf,
|
|
@@ -336,7 +337,7 @@ import {
|
|
|
336
337
|
realSleep,
|
|
337
338
|
resolvePaths,
|
|
338
339
|
writeSecurely
|
|
339
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-44A2XRDE.js";
|
|
340
341
|
import {
|
|
341
342
|
array,
|
|
342
343
|
boolean,
|
|
@@ -365,7 +366,7 @@ import {
|
|
|
365
366
|
trim,
|
|
366
367
|
union,
|
|
367
368
|
unknown
|
|
368
|
-
} from "./chunk-
|
|
369
|
+
} from "./chunk-4EDJJQJI.js";
|
|
369
370
|
import {
|
|
370
371
|
importFrom,
|
|
371
372
|
resolveFrom
|
|
@@ -375,7 +376,7 @@ import {
|
|
|
375
376
|
isCliError,
|
|
376
377
|
singleLine,
|
|
377
378
|
visibleControls
|
|
378
|
-
} from "./chunk-
|
|
379
|
+
} from "./chunk-5RDNBG7D.js";
|
|
379
380
|
import {
|
|
380
381
|
__commonJS,
|
|
381
382
|
__name,
|
|
@@ -16991,7 +16992,7 @@ var require_lib3 = __commonJS({
|
|
|
16991
16992
|
}
|
|
16992
16993
|
});
|
|
16993
16994
|
|
|
16994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16995
16996
|
var RULES_VERSION = 5;
|
|
16996
16997
|
var LOOK_BACK = 50;
|
|
16997
16998
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17081,10 +17082,10 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17081
17082
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17082
17083
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17083
17084
|
|
|
17084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17085
17086
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17086
17087
|
|
|
17087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17088
17089
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17089
17090
|
import { open, stat } from "node:fs/promises";
|
|
17090
17091
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17317,15 +17318,15 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
17317
17318
|
return { name, source };
|
|
17318
17319
|
}, "readStickerFile");
|
|
17319
17320
|
|
|
17320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17321
17322
|
import { randomBytes } from "node:crypto";
|
|
17322
17323
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17323
17324
|
var newOperationId = newSendId;
|
|
17324
17325
|
|
|
17325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17326
17327
|
import { randomUUID } from "node:crypto";
|
|
17327
17328
|
|
|
17328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17329
17330
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17330
17331
|
import { dirname as dirname2, join } from "node:path";
|
|
17331
17332
|
var MOST_DEADLINES = 50;
|
|
@@ -17409,11 +17410,11 @@ var FloodMemory = class {
|
|
|
17409
17410
|
}
|
|
17410
17411
|
};
|
|
17411
17412
|
|
|
17412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17413
17414
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17414
17415
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17415
17416
|
|
|
17416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17417
17418
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17418
17419
|
import { dirname as dirname3 } from "node:path";
|
|
17419
17420
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17480,7 +17481,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17480
17481
|
}
|
|
17481
17482
|
}, "lockTime");
|
|
17482
17483
|
|
|
17483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17484
17485
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17485
17486
|
var SendJournal = class {
|
|
17486
17487
|
static {
|
|
@@ -17557,7 +17558,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17557
17558
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17558
17559
|
}, "withSendId");
|
|
17559
17560
|
|
|
17560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17561
17562
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17562
17563
|
import { join as join3 } from "node:path";
|
|
17563
17564
|
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 +17670,7 @@ var RecipientList = class {
|
|
|
17669
17670
|
}
|
|
17670
17671
|
};
|
|
17671
17672
|
|
|
17672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17673
17674
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17674
17675
|
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
17676
|
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 +17858,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17857
17858
|
}), "guardFor");
|
|
17858
17859
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17859
17860
|
|
|
17860
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17861
17862
|
var COMMAND_NEEDS = {
|
|
17862
17863
|
"account update": ["updateProfile", "change the profile"],
|
|
17863
17864
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17907,7 +17908,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17907
17908
|
return group;
|
|
17908
17909
|
}, "hideNever");
|
|
17909
17910
|
|
|
17910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17911
17912
|
var AUDIT_PAGE = 200;
|
|
17912
17913
|
var AUDIT_BUDGET = 10;
|
|
17913
17914
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17987,7 +17988,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17987
17988
|
return found;
|
|
17988
17989
|
}, "burstJoins");
|
|
17989
17990
|
|
|
17990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
17991
17992
|
var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
|
|
17992
17993
|
const found = readMoment(reference, flag, { ...at, now });
|
|
17993
17994
|
if (found === void 0)
|
|
@@ -18016,7 +18017,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18016
18017
|
};
|
|
18017
18018
|
}, "dateWindow");
|
|
18018
18019
|
|
|
18019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
18020
18021
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
18021
18022
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
18022
18023
|
var minutes = /* @__PURE__ */ __name((text2) => {
|
|
@@ -18121,7 +18122,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
18121
18122
|
}).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
18123
|
}, "addMeetingManagementCommands");
|
|
18123
18124
|
|
|
18124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
18125
18126
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
18126
18127
|
command.allowUnknownOption();
|
|
18127
18128
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -18141,7 +18142,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
18141
18142
|
return command;
|
|
18142
18143
|
}, "queryWordsAfterOptions");
|
|
18143
18144
|
|
|
18144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
18145
18146
|
var count = /* @__PURE__ */ __name((value) => {
|
|
18146
18147
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18147
18148
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -18183,7 +18184,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
18183
18184
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
18184
18185
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
18185
18186
|
|
|
18186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
18187
18188
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
18188
18189
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18189
18190
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18206,7 +18207,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18206
18207
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18207
18208
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18208
18209
|
|
|
18209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18210
18211
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18211
18212
|
const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
|
|
18212
18213
|
if (meta.timezone)
|
|
@@ -18285,7 +18286,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18285
18286
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18286
18287
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18287
18288
|
|
|
18288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18289
18290
|
var EVENT_UNTRUSTED = ["title", "description", "location"];
|
|
18290
18291
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18291
18292
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
@@ -18467,7 +18468,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18467
18468
|
}, "addMeetingCommandsDefinition");
|
|
18468
18469
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18469
18470
|
|
|
18470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18471
18472
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18472
18473
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18473
18474
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18601,7 +18602,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18601
18602
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18602
18603
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18603
18604
|
|
|
18604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18605
18606
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18606
18607
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18607
18608
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18628,7 +18629,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
18628
18629
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
18629
18630
|
}, "pagingOf");
|
|
18630
18631
|
|
|
18631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18632
18633
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18633
18634
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18634
18635
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18890,7 +18891,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18890
18891
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18891
18892
|
}), "sessionAnswer");
|
|
18892
18893
|
|
|
18893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18894
18895
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18895
18896
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18896
18897
|
if (key in own)
|
|
@@ -18907,7 +18908,7 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18907
18908
|
return found.bind(adapter);
|
|
18908
18909
|
}, "capability");
|
|
18909
18910
|
|
|
18910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18911
18912
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18912
18913
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18913
18914
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18969,7 +18970,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18969
18970
|
}), "storedDeps");
|
|
18970
18971
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18971
18972
|
|
|
18972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18973
18974
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18974
18975
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18975
18976
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18992,10 +18993,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18992
18993
|
}
|
|
18993
18994
|
}, "patiently");
|
|
18994
18995
|
|
|
18995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18996
18997
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18997
18998
|
|
|
18998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18999
19000
|
var REQUEST_MS = 400;
|
|
19000
19001
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
19001
19002
|
const lowest = ranges[0];
|
|
@@ -19018,13 +19019,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
19018
19019
|
};
|
|
19019
19020
|
}, "estimateBackfill");
|
|
19020
19021
|
|
|
19021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
19022
19023
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
19023
19024
|
...error,
|
|
19024
19025
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
19025
19026
|
}), "withRecovery");
|
|
19026
19027
|
|
|
19027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
19028
19029
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
19029
19030
|
if (isCliFailure(error))
|
|
19030
19031
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -19107,7 +19108,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
19107
19108
|
};
|
|
19108
19109
|
}, "mergeBatches");
|
|
19109
19110
|
|
|
19110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
19111
19112
|
var ALL = "all";
|
|
19112
19113
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
19113
19114
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -19179,7 +19180,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
19179
19180
|
[ALL]: [ALL]
|
|
19180
19181
|
}), "groupEntries");
|
|
19181
19182
|
|
|
19182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
19183
19184
|
var NO_MAIL = "no_mail";
|
|
19184
19185
|
var MAIL = "email";
|
|
19185
19186
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -19253,7 +19254,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
19253
19254
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
19254
19255
|
}, "accountsOfKind");
|
|
19255
19256
|
|
|
19256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
19257
19258
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
19258
19259
|
if (deps.reads !== "store")
|
|
19259
19260
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19454,7 +19455,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
19454
19455
|
}, "chatsMatchingIn");
|
|
19455
19456
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
19456
19457
|
|
|
19457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19458
19459
|
var CONTEXT_MESSAGES = 3;
|
|
19459
19460
|
var CONTEXT_MINUTES = 10;
|
|
19460
19461
|
var MAX_CHARS = 1200;
|
|
@@ -19478,12 +19479,12 @@ var context = {
|
|
|
19478
19479
|
}, "describe")
|
|
19479
19480
|
};
|
|
19480
19481
|
|
|
19481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19482
19483
|
var BUILT_INS = [context];
|
|
19483
19484
|
var providers = [...BUILT_INS];
|
|
19484
19485
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19485
19486
|
|
|
19486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19487
19488
|
var READ_PAGE = 5e3;
|
|
19488
19489
|
var CHAIN = 50;
|
|
19489
19490
|
var CONVERSATION_QUERY = {
|
|
@@ -19635,7 +19636,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19635
19636
|
return size2;
|
|
19636
19637
|
}, "sized");
|
|
19637
19638
|
|
|
19638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19639
19640
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19640
19641
|
var MESSAGE_PAGE = 5e3;
|
|
19641
19642
|
var PER_SESSION = 8;
|
|
@@ -19654,7 +19655,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19654
19655
|
price: remote.price,
|
|
19655
19656
|
installed: true,
|
|
19656
19657
|
perBatch: PER_REQUEST * concurrency,
|
|
19657
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19658
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-STX5AMGE.js")).openRemote(remote, apiKey, {
|
|
19658
19659
|
concurrency,
|
|
19659
19660
|
env: deps.env ?? process.env
|
|
19660
19661
|
}), "open")
|
|
@@ -19674,7 +19675,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19674
19675
|
if (!isTextModelInstalled(model, directory2))
|
|
19675
19676
|
throw notDownloaded(model.id);
|
|
19676
19677
|
if (apart) {
|
|
19677
|
-
const { openProcess } = await import("./process-
|
|
19678
|
+
const { openProcess } = await import("./process-UFBRGTQC.js");
|
|
19678
19679
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19679
19680
|
}
|
|
19680
19681
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19963,7 +19964,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19963
19964
|
return { ...one, state };
|
|
19964
19965
|
}, "shaped");
|
|
19965
19966
|
|
|
19966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19967
19968
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19968
19969
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19969
19970
|
for (const [key, value, maximum] of [
|
|
@@ -20016,7 +20017,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
20016
20017
|
}
|
|
20017
20018
|
}, "catchUpSearch");
|
|
20018
20019
|
|
|
20019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
20020
20021
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
20021
20022
|
if (deps.reads === "store") {
|
|
20022
20023
|
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 +20398,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
20397
20398
|
return message?.timestamp ?? fallback;
|
|
20398
20399
|
}, "timeOfKey");
|
|
20399
20400
|
|
|
20400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
20401
20402
|
var LINKS = /https?:\/\/\S+/g;
|
|
20402
20403
|
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
20404
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -20427,7 +20428,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
20427
20428
|
});
|
|
20428
20429
|
}, "questions");
|
|
20429
20430
|
|
|
20430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
20431
20432
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
20432
20433
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
20433
20434
|
const name = typed.trim().toLowerCase();
|
|
@@ -20484,7 +20485,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
20484
20485
|
return best.name;
|
|
20485
20486
|
}, "categorize");
|
|
20486
20487
|
|
|
20487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
20488
20489
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
20489
20490
|
var RULES_IN = {
|
|
20490
20491
|
dialog: "all",
|
|
@@ -20690,11 +20691,11 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
20690
20691
|
return passes;
|
|
20691
20692
|
}, "applyTaskRulesToChats");
|
|
20692
20693
|
|
|
20693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
20694
20695
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
20695
20696
|
var encoder = new TextEncoder();
|
|
20696
20697
|
|
|
20697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20698
20699
|
var DAY_MS = 864e5;
|
|
20699
20700
|
var NEW_DAYS = 30;
|
|
20700
20701
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20771,7 +20772,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20771
20772
|
};
|
|
20772
20773
|
}, "scorePerson");
|
|
20773
20774
|
|
|
20774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20775
20776
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20776
20777
|
const controller = new AbortController();
|
|
20777
20778
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20787,7 +20788,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
20787
20788
|
}
|
|
20788
20789
|
}, "withTimeLimit");
|
|
20789
20790
|
|
|
20790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20791
20792
|
var REGISTRIES = {
|
|
20792
20793
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20793
20794
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20874,7 +20875,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20874
20875
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20875
20876
|
})), "notCovered");
|
|
20876
20877
|
|
|
20877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20878
20879
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20879
20880
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20880
20881
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20962,7 +20963,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20962
20963
|
};
|
|
20963
20964
|
}, "botCheckService");
|
|
20964
20965
|
|
|
20965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20966
20967
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20967
20968
|
if (value === void 0)
|
|
20968
20969
|
return void 0;
|
|
@@ -20972,7 +20973,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20972
20973
|
return id2;
|
|
20973
20974
|
}, "threadIdOf");
|
|
20974
20975
|
|
|
20975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20976
20977
|
var TOP_POSTS = 5;
|
|
20977
20978
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20978
20979
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -21089,7 +21090,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
21089
21090
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
21090
21091
|
}, "median");
|
|
21091
21092
|
|
|
21092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
21093
21094
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
21094
21095
|
const events = [];
|
|
21095
21096
|
for (const stay of stays) {
|
|
@@ -21121,7 +21122,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
21121
21122
|
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
21123
|
}, "memberEvents");
|
|
21123
21124
|
|
|
21124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
21125
21126
|
var EVENTS_DAYS = 7;
|
|
21126
21127
|
var TRACKED_DAYS = 30;
|
|
21127
21128
|
var STATS_PAGE = 1e3;
|
|
@@ -21416,7 +21417,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21416
21417
|
return members.length === 0 ? null : members;
|
|
21417
21418
|
}, "storedMembers");
|
|
21418
21419
|
|
|
21419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21420
21421
|
var INBOX_CHATS = 20;
|
|
21421
21422
|
var REVIEW_DAYS = 3;
|
|
21422
21423
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21624,7 +21625,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21624
21625
|
};
|
|
21625
21626
|
}, "inboxService");
|
|
21626
21627
|
|
|
21627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
21628
21629
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
21629
21630
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
21630
21631
|
const { text: text2, spans } = formatted2;
|
|
@@ -21684,7 +21685,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
21684
21685
|
};
|
|
21685
21686
|
}, "visibleFormattedText");
|
|
21686
21687
|
|
|
21687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
21688
21689
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
21689
21690
|
var LINK2 = /https?:\/\/\S+/i;
|
|
21690
21691
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -21872,7 +21873,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
21872
21873
|
}, "nextPoint");
|
|
21873
21874
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
21874
21875
|
|
|
21875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21876
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
21876
21877
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync4 } from "node:fs";
|
|
21877
21878
|
import { join as join4 } from "node:path";
|
|
21878
21879
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -22024,7 +22025,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
22024
22025
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
22025
22026
|
}, "assign");
|
|
22026
22027
|
|
|
22027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
22028
22029
|
var SCAN = 1e3;
|
|
22029
22030
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
22030
22031
|
const byId2 = new Map(accounts.map((one) => [one.id, one]));
|
|
@@ -22061,6 +22062,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
22061
22062
|
continue;
|
|
22062
22063
|
const transcripts = await store.meetings.transcripts({ accountId, meetingId, limit: 1 });
|
|
22063
22064
|
const account = byId2.get(accountId);
|
|
22065
|
+
const call = meetingCallItem(meeting);
|
|
22064
22066
|
items.push({
|
|
22065
22067
|
ref: formatMeetingReference({ type: "meeting", accountId, meetingId }),
|
|
22066
22068
|
meetingId,
|
|
@@ -22070,13 +22072,14 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
22070
22072
|
durationMs: meeting.durationMs,
|
|
22071
22073
|
hasTranscript: transcripts.items.length > 0,
|
|
22072
22074
|
event: meeting.eventId === null ? null : `event:${meeting.eventId}`,
|
|
22073
|
-
people: who2
|
|
22075
|
+
people: who2,
|
|
22076
|
+
...call ? { call } : {}
|
|
22074
22077
|
});
|
|
22075
22078
|
}
|
|
22076
22079
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
22077
22080
|
}, "personMeetings");
|
|
22078
22081
|
|
|
22079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
22080
22083
|
var CONTEXT_MESSAGES2 = 10;
|
|
22081
22084
|
var CONTEXT_BYTES = 64 * 1024;
|
|
22082
22085
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -22382,10 +22385,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
22382
22385
|
};
|
|
22383
22386
|
}, "personMessages");
|
|
22384
22387
|
|
|
22385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22386
22389
|
import { createHash } from "node:crypto";
|
|
22387
22390
|
|
|
22388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
22389
22392
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
22390
22393
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
22391
22394
|
const parsed = parseMeetingReference(reference);
|
|
@@ -22403,7 +22406,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
22403
22406
|
return { parsed, meeting };
|
|
22404
22407
|
}, "authorizedMeetingMetadata");
|
|
22405
22408
|
|
|
22406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22407
22410
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
22408
22411
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
22409
22412
|
if (signal?.aborted)
|
|
@@ -22602,7 +22605,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22602
22605
|
return { ...packet, fingerprint: hash(packet) };
|
|
22603
22606
|
}, "readMeetingEvidence");
|
|
22604
22607
|
|
|
22605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22606
22609
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22607
22610
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22608
22611
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22701,7 +22704,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22701
22704
|
};
|
|
22702
22705
|
}, "personMeetingContext");
|
|
22703
22706
|
|
|
22704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22705
22708
|
var PREPARE_BYTES = 96 * 1024;
|
|
22706
22709
|
var MEETINGS = 5;
|
|
22707
22710
|
var CUES = 3;
|
|
@@ -22824,7 +22827,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22824
22827
|
}
|
|
22825
22828
|
}, "meetingsOf");
|
|
22826
22829
|
|
|
22827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22828
22831
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22829
22832
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22830
22833
|
const held = await storeIfOpen(deps);
|
|
@@ -22894,7 +22897,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22894
22897
|
complete: false
|
|
22895
22898
|
})), "quiet");
|
|
22896
22899
|
|
|
22897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22898
22901
|
var TIMELINE_ITEMS = 50;
|
|
22899
22902
|
var TIMELINE_MAX = 500;
|
|
22900
22903
|
var SCOPES = ["personal", "work"];
|
|
@@ -22956,7 +22959,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22956
22959
|
};
|
|
22957
22960
|
}, "personTimeline");
|
|
22958
22961
|
|
|
22959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22960
22963
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22961
22964
|
const ids = [...new Set(chatIds)];
|
|
22962
22965
|
if (ids.length === 0)
|
|
@@ -22982,7 +22985,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22982
22985
|
}));
|
|
22983
22986
|
}, "chatCoverage");
|
|
22984
22987
|
|
|
22985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22988
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22986
22989
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22987
22990
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22988
22991
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -23046,7 +23049,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
23046
23049
|
}
|
|
23047
23050
|
}, "validateContextEvidencePage");
|
|
23048
23051
|
|
|
23049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
23050
23053
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
23051
23054
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
23052
23055
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -23099,7 +23102,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
23099
23102
|
};
|
|
23100
23103
|
}, "contextReadBudget");
|
|
23101
23104
|
|
|
23102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
23103
23106
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
23104
23107
|
if (!port || typeof port.read !== "function")
|
|
23105
23108
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -23143,7 +23146,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
23143
23146
|
};
|
|
23144
23147
|
}, "createContextEvidenceReader");
|
|
23145
23148
|
|
|
23146
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23147
23150
|
var queryWords = /* @__PURE__ */ __name((query) => query.toLowerCase().split(/\s+/).map((word) => word.replace(/^[\p{L}_]+:/u, "").replace(/~\d+$/u, "").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((word) => word.length > 2 && !["and", "or", "not"].includes(word)), "queryWords");
|
|
23148
23151
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
23149
23152
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -23159,7 +23162,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
23159
23162
|
}, "excerpt");
|
|
23160
23163
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23161
23164
|
|
|
23162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
23163
23166
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23164
23167
|
async around(ref, window3) {
|
|
23165
23168
|
const at = parseLocator(ref);
|
|
@@ -23254,7 +23257,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23254
23257
|
};
|
|
23255
23258
|
}, "storedNeighbours");
|
|
23256
23259
|
|
|
23257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23258
23261
|
import { createHash as createHash2 } from "node:crypto";
|
|
23259
23262
|
var DAY = 864e5;
|
|
23260
23263
|
var MAX_TIME = 864e13;
|
|
@@ -23570,7 +23573,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23570
23573
|
return value;
|
|
23571
23574
|
}, "decodeCheckpoint");
|
|
23572
23575
|
|
|
23573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23574
23577
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23575
23578
|
var PAGE3 = 20;
|
|
23576
23579
|
var PEOPLE = 20;
|
|
@@ -23974,7 +23977,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23974
23977
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23975
23978
|
}, "peopleOf");
|
|
23976
23979
|
|
|
23977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23978
23981
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23979
23982
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23980
23983
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -24018,7 +24021,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
24018
24021
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
24019
24022
|
}, "matchVocabularyTerms");
|
|
24020
24023
|
|
|
24021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
24022
24025
|
var KINDS = ["project", "tag", "topic"];
|
|
24023
24026
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
24024
24027
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -24073,7 +24076,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
24073
24076
|
};
|
|
24074
24077
|
}, "findEvidenceMentions");
|
|
24075
24078
|
|
|
24076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
24077
24080
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
24078
24081
|
var DEFAULT_PURPOSES = ["work"];
|
|
24079
24082
|
var LINK_PURPOSE = "work";
|
|
@@ -24081,13 +24084,13 @@ var BUILT_IN_PURPOSE_CONFIG = { purposes: BUILT_IN_PURPOSES, defaults: DEFAULT_P
|
|
|
24081
24084
|
var unknown2 = /* @__PURE__ */ __name((asked, config) => {
|
|
24082
24085
|
const wrong = asked.filter((one) => !config.purposes.includes(one));
|
|
24083
24086
|
if (wrong.length)
|
|
24084
|
-
throw new CliError("validation_error", `unknown purpose ${wrong.join(", ")}; the configured ones are ${config.purposes.join(", ")}, or all`, { param: "
|
|
24087
|
+
throw new CliError("validation_error", `unknown purpose ${wrong.join(", ")}; the configured ones are ${config.purposes.join(", ")}, or all`, { param: "purposes", purposes: [...config.purposes] });
|
|
24085
24088
|
}, "unknown");
|
|
24086
24089
|
var purposesOf = /* @__PURE__ */ __name((asked, config = BUILT_IN_PURPOSE_CONFIG, project) => {
|
|
24087
24090
|
const words3 = (asked ?? []).map((one) => one.trim()).filter(Boolean);
|
|
24088
24091
|
if (words3.includes("all")) {
|
|
24089
24092
|
if (words3.length > 1)
|
|
24090
|
-
throw new CliError("validation_error", "--
|
|
24093
|
+
throw new CliError("validation_error", "--purposes all reads every purpose; give it alone");
|
|
24091
24094
|
return "all";
|
|
24092
24095
|
}
|
|
24093
24096
|
if (words3.length) {
|
|
@@ -24103,7 +24106,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
24103
24106
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
24104
24107
|
], "purposeList");
|
|
24105
24108
|
|
|
24106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
24107
24110
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
24108
24111
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
24109
24112
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -24414,7 +24417,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24414
24417
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24415
24418
|
}, "purposeHintOf");
|
|
24416
24419
|
|
|
24417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
24418
24421
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
24419
24422
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
24420
24423
|
const held = await storeIfOpen(deps);
|
|
@@ -24679,7 +24682,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24679
24682
|
return rest;
|
|
24680
24683
|
}, "withoutPhone");
|
|
24681
24684
|
|
|
24682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
24683
24686
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24684
24687
|
var PERIOD_FIELD = "created";
|
|
24685
24688
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24810,7 +24813,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
24810
24813
|
}));
|
|
24811
24814
|
}, "meetingNames");
|
|
24812
24815
|
|
|
24813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
24814
24817
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24815
24818
|
const tags = /* @__PURE__ */ new Map();
|
|
24816
24819
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24819,7 +24822,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24819
24822
|
return tags;
|
|
24820
24823
|
}, "taskTagFilters");
|
|
24821
24824
|
|
|
24822
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
24823
24826
|
var TASK_QUERY = {
|
|
24824
24827
|
entity: "task",
|
|
24825
24828
|
backend: "sql",
|
|
@@ -25319,7 +25322,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
25319
25322
|
};
|
|
25320
25323
|
}, "taskView");
|
|
25321
25324
|
|
|
25322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
25323
25326
|
import { readFileSync as readFileSync5, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
25324
25327
|
import { join as join5 } from "node:path";
|
|
25325
25328
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -25414,7 +25417,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
25414
25417
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
25415
25418
|
}, "waitForTurn");
|
|
25416
25419
|
|
|
25417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
25418
25421
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
25419
25422
|
if (newest === null)
|
|
25420
25423
|
return null;
|
|
@@ -25423,7 +25426,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
25423
25426
|
return newest.addressed ? "owed" : null;
|
|
25424
25427
|
}, "mailTurn");
|
|
25425
25428
|
|
|
25426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
25427
25430
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
25428
25431
|
if (error instanceof CliError && error.code === "not_found")
|
|
25429
25432
|
return void 0;
|
|
@@ -25481,7 +25484,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
25481
25484
|
};
|
|
25482
25485
|
}, "mailActivity");
|
|
25483
25486
|
|
|
25484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
25485
25488
|
var DAY2 = 864e5;
|
|
25486
25489
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
25487
25490
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25735,18 +25738,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25735
25738
|
};
|
|
25736
25739
|
}, "agendaItem");
|
|
25737
25740
|
|
|
25738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25739
25742
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25740
25743
|
|
|
25741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25742
25745
|
import { lstat } from "node:fs/promises";
|
|
25743
25746
|
|
|
25744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25745
25748
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25746
25749
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25747
25750
|
import { join as join7 } from "node:path";
|
|
25748
25751
|
|
|
25749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25750
25753
|
import { createHash as createHash3 } from "node:crypto";
|
|
25751
25754
|
var metadataLimit = 16384;
|
|
25752
25755
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25806,7 +25809,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25806
25809
|
}
|
|
25807
25810
|
}, "readPartialMetadata");
|
|
25808
25811
|
|
|
25809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25810
25813
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25811
25814
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25812
25815
|
import { join as join6 } from "node:path";
|
|
@@ -25898,7 +25901,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25898
25901
|
};
|
|
25899
25902
|
}, "partialWriter");
|
|
25900
25903
|
|
|
25901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25902
25905
|
var NativeRecordingPartialStore = class {
|
|
25903
25906
|
static {
|
|
25904
25907
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -26005,12 +26008,12 @@ var NativeRecordingPartialStore = class {
|
|
|
26005
26008
|
}
|
|
26006
26009
|
};
|
|
26007
26010
|
|
|
26008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26009
26012
|
import { createHash as createHash5 } from "node:crypto";
|
|
26010
26013
|
import { link as link2 } from "node:fs/promises";
|
|
26011
26014
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
26012
26015
|
|
|
26013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
26014
26017
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
26015
26018
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
26016
26019
|
signal?.throwIfAborted();
|
|
@@ -26045,7 +26048,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
26045
26048
|
signal?.throwIfAborted();
|
|
26046
26049
|
}, "commitPublication");
|
|
26047
26050
|
|
|
26048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
26049
26052
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
26050
26053
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
26051
26054
|
import { join as join8 } from "node:path";
|
|
@@ -26118,7 +26121,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
26118
26121
|
}
|
|
26119
26122
|
}, "writePublicationJournal");
|
|
26120
26123
|
|
|
26121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
26122
26125
|
var NativeRecordingPublication = class {
|
|
26123
26126
|
static {
|
|
26124
26127
|
__name(this, "NativeRecordingPublication");
|
|
@@ -26191,7 +26194,7 @@ var NativeRecordingPublication = class {
|
|
|
26191
26194
|
}
|
|
26192
26195
|
};
|
|
26193
26196
|
|
|
26194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
26195
26198
|
import { createHash as createHash6 } from "node:crypto";
|
|
26196
26199
|
import { readdir } from "node:fs/promises";
|
|
26197
26200
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -26278,7 +26281,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
26278
26281
|
beforePublish
|
|
26279
26282
|
}), "commitMediaEntry");
|
|
26280
26283
|
|
|
26281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26282
26285
|
var validator = '"media-completed-v1"';
|
|
26283
26286
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26284
26287
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26379,7 +26382,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
26379
26382
|
return entry;
|
|
26380
26383
|
}, "archiveMediaFile");
|
|
26381
26384
|
|
|
26382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26383
26386
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26384
26387
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
26385
26388
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26446,7 +26449,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26446
26449
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26447
26450
|
}, "withMediaArchiveLocks");
|
|
26448
26451
|
|
|
26449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26450
26453
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
26451
26454
|
const entries = await readMediaManifests(root, signal);
|
|
26452
26455
|
if (!entries.length)
|
|
@@ -26589,7 +26592,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
26589
26592
|
}, { create: true });
|
|
26590
26593
|
}, "archiveMedia");
|
|
26591
26594
|
|
|
26592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26593
26596
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26594
26597
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
26595
26598
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26740,7 +26743,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26740
26743
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26741
26744
|
}, "moveMediaArchive");
|
|
26742
26745
|
|
|
26743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26744
26747
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
26745
26748
|
import { join as join13 } from "node:path";
|
|
26746
26749
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -26765,7 +26768,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26765
26768
|
`);
|
|
26766
26769
|
await nativeRuntime({ env, progress });
|
|
26767
26770
|
progress(`${model.id}: loading it once to check it works`);
|
|
26768
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26771
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-JFN6Z5TG.js");
|
|
26769
26772
|
const embedder = await openEmbedder2(model, directory2);
|
|
26770
26773
|
try {
|
|
26771
26774
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26786,7 +26789,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26786
26789
|
}
|
|
26787
26790
|
await nativeRuntime({ env, progress });
|
|
26788
26791
|
progress(`${model.id}: loading it once to check it works`);
|
|
26789
|
-
const { openReranker } = await import("./rerank-
|
|
26792
|
+
const { openReranker } = await import("./rerank-ZCOWTXIJ.js");
|
|
26790
26793
|
const reranker = await openReranker(model, directory2);
|
|
26791
26794
|
try {
|
|
26792
26795
|
await reranker.score("check", ["check"]);
|
|
@@ -26804,7 +26807,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26804
26807
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26805
26808
|
}
|
|
26806
26809
|
progress(`${model.id}: loading it once to check it works`);
|
|
26807
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26810
|
+
const { openPictureEmbedder } = await import("./embedder-WN54JIMY.js");
|
|
26808
26811
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26809
26812
|
try {
|
|
26810
26813
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26816,7 +26819,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26816
26819
|
return { model, directory: directory2 };
|
|
26817
26820
|
}, "downloadImageModel");
|
|
26818
26821
|
|
|
26819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26822
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26820
26823
|
var MONEY_REQUEST = "money-request";
|
|
26821
26824
|
var MONEY_DONE = "money-done";
|
|
26822
26825
|
var PROMISE = "promise";
|
|
@@ -26850,10 +26853,10 @@ var MONEY_WORDS = [
|
|
|
26850
26853
|
}
|
|
26851
26854
|
];
|
|
26852
26855
|
|
|
26853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26854
26857
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26855
26858
|
|
|
26856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26857
26860
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26858
26861
|
var MONEY_DONE_FORMS = words2([
|
|
26859
26862
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26893,7 +26896,7 @@ var PROMISE_FORMS = words2([
|
|
|
26893
26896
|
"estar\xE1 listo"
|
|
26894
26897
|
]);
|
|
26895
26898
|
|
|
26896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26897
26900
|
var EXCERPT_CHARS = 80;
|
|
26898
26901
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26899
26902
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26915,7 +26918,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26915
26918
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26916
26919
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26917
26920
|
|
|
26918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26919
26922
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26920
26923
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26921
26924
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26996,7 +26999,7 @@ var amounts = {
|
|
|
26996
26999
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26997
27000
|
};
|
|
26998
27001
|
|
|
26999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
27000
27003
|
var children = {
|
|
27001
27004
|
id: "children",
|
|
27002
27005
|
version: 1,
|
|
@@ -27025,7 +27028,7 @@ var children = {
|
|
|
27025
27028
|
}, "read")
|
|
27026
27029
|
};
|
|
27027
27030
|
|
|
27028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
27029
27032
|
var coverage = {
|
|
27030
27033
|
id: "coverage",
|
|
27031
27034
|
version: 1,
|
|
@@ -27054,7 +27057,7 @@ var coverage = {
|
|
|
27054
27057
|
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
27058
|
};
|
|
27056
27059
|
|
|
27057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
27058
27061
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
27059
27062
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
27060
27063
|
signal: "payments",
|
|
@@ -27104,7 +27107,7 @@ var payments = {
|
|
|
27104
27107
|
}, "read")
|
|
27105
27108
|
};
|
|
27106
27109
|
|
|
27107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
27108
27111
|
var PATTERNS_PER_CHAT = 3;
|
|
27109
27112
|
var DAY3 = 864e5;
|
|
27110
27113
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -27193,7 +27196,7 @@ var promises = {
|
|
|
27193
27196
|
}, "read")
|
|
27194
27197
|
};
|
|
27195
27198
|
|
|
27196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
27197
27200
|
var PER_SIDE = 5;
|
|
27198
27201
|
var WEEK = 7 * 864e5;
|
|
27199
27202
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -27224,7 +27227,7 @@ var questions2 = {
|
|
|
27224
27227
|
}, "attention")
|
|
27225
27228
|
};
|
|
27226
27229
|
|
|
27227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
27228
27231
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
27229
27232
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
27230
27233
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27292,7 +27295,7 @@ var replyNext = {
|
|
|
27292
27295
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27293
27296
|
};
|
|
27294
27297
|
|
|
27295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27296
27299
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27297
27300
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27298
27301
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27338,7 +27341,7 @@ var topics = {
|
|
|
27338
27341
|
}, "read")
|
|
27339
27342
|
};
|
|
27340
27343
|
|
|
27341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27344
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27342
27345
|
var STATUS_SIGNALS = [
|
|
27343
27346
|
replyNext,
|
|
27344
27347
|
questions2,
|
|
@@ -27350,7 +27353,7 @@ var STATUS_SIGNALS = [
|
|
|
27350
27353
|
children
|
|
27351
27354
|
];
|
|
27352
27355
|
|
|
27353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27354
27357
|
var DAY4 = 864e5;
|
|
27355
27358
|
var STATUS_WINDOW = 300;
|
|
27356
27359
|
var STATUS_CHATS = 16;
|
|
@@ -27539,7 +27542,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27539
27542
|
};
|
|
27540
27543
|
}, "projectStatus");
|
|
27541
27544
|
|
|
27542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27543
27546
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27544
27547
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27545
27548
|
if (deps.offline)
|
|
@@ -27611,7 +27614,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27611
27614
|
};
|
|
27612
27615
|
}, "accountService");
|
|
27613
27616
|
|
|
27614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27617
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27615
27618
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
27616
27619
|
const at = aheadOf(value, flag, now, {
|
|
27617
27620
|
...zone === void 0 ? {} : { zone },
|
|
@@ -27622,7 +27625,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27622
27625
|
return new Date(at - at % MINUTE).toISOString();
|
|
27623
27626
|
}, "sendTime");
|
|
27624
27627
|
|
|
27625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27626
27629
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
27627
27630
|
try {
|
|
27628
27631
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27869,7 +27872,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27869
27872
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27870
27873
|
}, "linkLimits");
|
|
27871
27874
|
|
|
27872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27873
27876
|
var THREADS_PAGE = 500;
|
|
27874
27877
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27875
27878
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27944,7 +27947,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
27944
27947
|
return thread.slice(Math.max(0, at - before), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27945
27948
|
}, "readMail");
|
|
27946
27949
|
|
|
27947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27948
27951
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27949
27952
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27950
27953
|
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 +28314,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28311
28314
|
};
|
|
28312
28315
|
}, "statsLucene");
|
|
28313
28316
|
|
|
28314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28315
28318
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28316
28319
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28317
28320
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28480,7 +28483,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28480
28483
|
};
|
|
28481
28484
|
}, "readRankingSelection");
|
|
28482
28485
|
|
|
28483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28484
28487
|
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
28488
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28486
28489
|
command,
|
|
@@ -28490,7 +28493,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28490
28493
|
fieldsVersion: FIELD_VERSION
|
|
28491
28494
|
}), "searchRecordOf");
|
|
28492
28495
|
|
|
28493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28494
28497
|
function invalid4(message) {
|
|
28495
28498
|
throw new CliError("validation_error", message);
|
|
28496
28499
|
}
|
|
@@ -28784,7 +28787,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28784
28787
|
}, "evidence")
|
|
28785
28788
|
}), "adminStatisticsService");
|
|
28786
28789
|
|
|
28787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28788
28791
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28789
28792
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28790
28793
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28921,12 +28924,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28921
28924
|
return { plan, repair };
|
|
28922
28925
|
}, "gapsService");
|
|
28923
28926
|
|
|
28924
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28925
28928
|
import { createHash as createHash10 } from "node:crypto";
|
|
28926
28929
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28927
28930
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28928
28931
|
|
|
28929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28930
28933
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28931
28934
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
28932
28935
|
var MAX_FILES = 1e4;
|
|
@@ -28997,15 +29000,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28997
29000
|
return choices;
|
|
28998
29001
|
}, "directoryPaths");
|
|
28999
29002
|
|
|
29000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29001
29004
|
import { posix } from "node:path";
|
|
29002
29005
|
|
|
29003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29004
29007
|
import { setImmediate as tick } from "node:timers/promises";
|
|
29005
29008
|
import { crc32 } from "node:zlib";
|
|
29006
29009
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
29007
29010
|
|
|
29008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29011
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
29009
29012
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
29010
29013
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
29011
29014
|
var SAMPLE = 65536;
|
|
@@ -29107,7 +29110,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
29107
29110
|
return result.text;
|
|
29108
29111
|
}, "decodeXml");
|
|
29109
29112
|
|
|
29110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
29111
29114
|
var MAX_PART = 10 * 1024 * 1024;
|
|
29112
29115
|
var MAX_ENTRIES = 1e3;
|
|
29113
29116
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29322,7 +29325,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29322
29325
|
return found;
|
|
29323
29326
|
}, "elements");
|
|
29324
29327
|
|
|
29325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29326
29329
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29327
29330
|
let name = "";
|
|
29328
29331
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29377,7 +29380,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29377
29380
|
return { text: parts.join("").trim(), truncated: false };
|
|
29378
29381
|
}, "sheetText");
|
|
29379
29382
|
|
|
29380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29381
29384
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29382
29385
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29383
29386
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29777,10 +29780,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29777
29780
|
}
|
|
29778
29781
|
}, "readDocument");
|
|
29779
29782
|
|
|
29780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29781
29784
|
import { extname as extname3 } from "node:path";
|
|
29782
29785
|
|
|
29783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29784
29787
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
29785
29788
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
29786
29789
|
import { fileURLToPath } from "node:url";
|
|
@@ -29841,7 +29844,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
29841
29844
|
}
|
|
29842
29845
|
}, "derived");
|
|
29843
29846
|
|
|
29844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29845
29848
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29846
29849
|
var image2 = {
|
|
29847
29850
|
id: "image",
|
|
@@ -29850,7 +29853,7 @@ var image2 = {
|
|
|
29850
29853
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29851
29854
|
};
|
|
29852
29855
|
|
|
29853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29854
29857
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29855
29858
|
var doc = {
|
|
29856
29859
|
id: "doc",
|
|
@@ -29862,7 +29865,7 @@ var doc = {
|
|
|
29862
29865
|
}), "read")
|
|
29863
29866
|
};
|
|
29864
29867
|
|
|
29865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29866
29869
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29867
29870
|
var docx = {
|
|
29868
29871
|
id: "docx",
|
|
@@ -29875,10 +29878,10 @@ var docx = {
|
|
|
29875
29878
|
}), "read")
|
|
29876
29879
|
};
|
|
29877
29880
|
|
|
29878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29879
29882
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29880
29883
|
|
|
29881
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
29882
29885
|
var NAMED = {
|
|
29883
29886
|
amp: "&",
|
|
29884
29887
|
lt: "<",
|
|
@@ -29930,7 +29933,7 @@ var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-
|
|
|
29930
29933
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
29931
29934
|
}), "decodeEntities");
|
|
29932
29935
|
|
|
29933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29934
29937
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29935
29938
|
"fonttbl",
|
|
29936
29939
|
"colortbl",
|
|
@@ -30096,7 +30099,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
30096
30099
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
30097
30100
|
}, "htmlText");
|
|
30098
30101
|
|
|
30099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
30100
30103
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
30101
30104
|
var namesIn2 = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
30102
30105
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -30152,7 +30155,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
30152
30155
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
30153
30156
|
}, "markdownSections");
|
|
30154
30157
|
|
|
30155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
30156
30159
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
30157
30160
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
30158
30161
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -30223,7 +30226,7 @@ var html = {
|
|
|
30223
30226
|
}, "read")
|
|
30224
30227
|
};
|
|
30225
30228
|
|
|
30226
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
30227
30230
|
var office = {
|
|
30228
30231
|
id: "office",
|
|
30229
30232
|
version: documentExtractor("odt"),
|
|
@@ -30234,7 +30237,7 @@ var office = {
|
|
|
30234
30237
|
}, "read")
|
|
30235
30238
|
};
|
|
30236
30239
|
|
|
30237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
30238
30241
|
var pdf = {
|
|
30239
30242
|
id: "pdf",
|
|
30240
30243
|
version: "unpdf",
|
|
@@ -30301,7 +30304,7 @@ var pdf = {
|
|
|
30301
30304
|
}), "read")
|
|
30302
30305
|
};
|
|
30303
30306
|
|
|
30304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30305
30308
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30306
30309
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30307
30310
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30321,7 +30324,7 @@ var plain = {
|
|
|
30321
30324
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30322
30325
|
};
|
|
30323
30326
|
|
|
30324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30325
30328
|
var rtf = {
|
|
30326
30329
|
id: "rtf",
|
|
30327
30330
|
version: "v1",
|
|
@@ -30329,10 +30332,10 @@ var rtf = {
|
|
|
30329
30332
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30330
30333
|
};
|
|
30331
30334
|
|
|
30332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30333
30336
|
import { basename as basename5 } from "node:path";
|
|
30334
30337
|
|
|
30335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30336
30339
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
30337
30340
|
const cells = [];
|
|
30338
30341
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30370,7 +30373,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
30370
30373
|
return { cells, truncated };
|
|
30371
30374
|
}, "delimitedSpans");
|
|
30372
30375
|
|
|
30373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30374
30377
|
var DELIMITED = {
|
|
30375
30378
|
".csv": ",",
|
|
30376
30379
|
".tsv": " ",
|
|
@@ -30409,7 +30412,7 @@ var sheets = {
|
|
|
30409
30412
|
}, "read")
|
|
30410
30413
|
};
|
|
30411
30414
|
|
|
30412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30413
30416
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30414
30417
|
var HEAD_BYTES = 1024;
|
|
30415
30418
|
var readers = [...BUILT_INS2];
|
|
@@ -30419,7 +30422,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30419
30422
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30420
30423
|
}, "readWithRegistry");
|
|
30421
30424
|
|
|
30422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30423
30426
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30424
30427
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
30425
30428
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31498,7 +31501,7 @@ function imageSize(input) {
|
|
|
31498
31501
|
}
|
|
31499
31502
|
__name(imageSize, "imageSize");
|
|
31500
31503
|
|
|
31501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31502
31505
|
var MAX_PAGES = 20;
|
|
31503
31506
|
var MAX_PIXELS = 2e7;
|
|
31504
31507
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31658,7 +31661,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31658
31661
|
}
|
|
31659
31662
|
}, "ocrPdf");
|
|
31660
31663
|
|
|
31661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31662
31665
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31663
31666
|
const limits = pdfPreviewLimits(env);
|
|
31664
31667
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31735,7 +31738,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31735
31738
|
}
|
|
31736
31739
|
}, "pdfPreview");
|
|
31737
31740
|
|
|
31738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
31739
31742
|
import { spawn } from "node:child_process";
|
|
31740
31743
|
import { mkdtempSync, readFileSync as readFileSync7, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
31741
31744
|
import { tmpdir } from "node:os";
|
|
@@ -31898,7 +31901,7 @@ Read the attached picture.`,
|
|
|
31898
31901
|
}
|
|
31899
31902
|
}, "readPictureWithAgent");
|
|
31900
31903
|
|
|
31901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31902
31905
|
import { createHash as createHash8 } from "node:crypto";
|
|
31903
31906
|
import { constants } from "node:fs";
|
|
31904
31907
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -32006,7 +32009,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
32006
32009
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
32007
32010
|
}, "transferMime");
|
|
32008
32011
|
|
|
32009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
32010
32013
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
32011
32014
|
import { link as link3, rm } from "node:fs/promises";
|
|
32012
32015
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -32120,12 +32123,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
32120
32123
|
}
|
|
32121
32124
|
}, "save");
|
|
32122
32125
|
|
|
32123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32124
32127
|
import { createHash as createHash9 } from "node:crypto";
|
|
32125
32128
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
32126
32129
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32127
32130
|
|
|
32128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32129
32132
|
var GROUP_SETTINGS = [
|
|
32130
32133
|
"allCanPin",
|
|
32131
32134
|
"onlyAdminsAdd",
|
|
@@ -32139,7 +32142,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32139
32142
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32140
32143
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32141
32144
|
|
|
32142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32143
32146
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32144
32147
|
var PICTURE_FLOOR = 0.25;
|
|
32145
32148
|
var PAGE4 = 50;
|
|
@@ -32180,7 +32183,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32180
32183
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32181
32184
|
if (!isImageModelInstalled(model2, directory2))
|
|
32182
32185
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32183
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32186
|
+
const { openPictureEmbedder } = await import("./embedder-WN54JIMY.js");
|
|
32184
32187
|
return openPictureEmbedder(model2, directory2);
|
|
32185
32188
|
}, "open");
|
|
32186
32189
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32354,7 +32357,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32354
32357
|
}, "search")
|
|
32355
32358
|
}), "withPictures");
|
|
32356
32359
|
|
|
32357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32358
32361
|
var ATTACHMENT_QUERY = {
|
|
32359
32362
|
entity: "attachment",
|
|
32360
32363
|
backend: "sql",
|
|
@@ -32825,7 +32828,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32825
32828
|
}, "readPicture")
|
|
32826
32829
|
}), "attachmentsService");
|
|
32827
32830
|
|
|
32828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32829
32832
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32830
32833
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32831
32834
|
const store = await accountStore(deps);
|
|
@@ -32855,7 +32858,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32855
32858
|
}, "list")
|
|
32856
32859
|
}), "chatDocumentsService");
|
|
32857
32860
|
|
|
32858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32859
32862
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32860
32863
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32861
32864
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32942,7 +32945,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32942
32945
|
}
|
|
32943
32946
|
}, "isRetentionSelection");
|
|
32944
32947
|
|
|
32945
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32946
32949
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32947
32950
|
const fields = text2.split(",").map((one) => one.trim());
|
|
32948
32951
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -33149,7 +33152,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33149
33152
|
};
|
|
33150
33153
|
}, "countersService");
|
|
33151
33154
|
|
|
33152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
33153
33156
|
var SYNC_KEY = "messages.sync-first";
|
|
33154
33157
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
33155
33158
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -33281,7 +33284,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
33281
33284
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
33282
33285
|
}), "withRefresh");
|
|
33283
33286
|
|
|
33284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
33285
33288
|
var CANDIDATES = 50;
|
|
33286
33289
|
var WORD_HITS = 200;
|
|
33287
33290
|
var RRF_K2 = 60;
|
|
@@ -33579,13 +33582,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33579
33582
|
return mean2.map((value) => value / length);
|
|
33580
33583
|
}, "meanOf");
|
|
33581
33584
|
|
|
33582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33583
33586
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33584
33587
|
...embeddingsMaintenance(deps),
|
|
33585
33588
|
...embeddingsSearch(deps)
|
|
33586
33589
|
}), "embeddingsService");
|
|
33587
33590
|
|
|
33588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33589
33592
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33590
33593
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33591
33594
|
if (deps.offline)
|
|
@@ -33726,7 +33729,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33726
33729
|
};
|
|
33727
33730
|
}, "foldersService");
|
|
33728
33731
|
|
|
33729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33732
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33730
33733
|
var REVIEW_COUNT = 500;
|
|
33731
33734
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33732
33735
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33805,7 +33808,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33805
33808
|
};
|
|
33806
33809
|
}, "mentionsService");
|
|
33807
33810
|
|
|
33808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33809
33812
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33810
33813
|
position,
|
|
33811
33814
|
kind,
|
|
@@ -33854,7 +33857,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33854
33857
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33855
33858
|
}, "validatePermalink");
|
|
33856
33859
|
|
|
33857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33858
33861
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33859
33862
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33860
33863
|
return `${seconds / 86400}d`;
|
|
@@ -33886,7 +33889,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33886
33889
|
return seconds;
|
|
33887
33890
|
}, "pinDurationOf");
|
|
33888
33891
|
|
|
33889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33890
33893
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33891
33894
|
if (sendAs === void 0) {
|
|
33892
33895
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33911,7 +33914,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33911
33914
|
return sendAs;
|
|
33912
33915
|
}, "typedSendAs");
|
|
33913
33916
|
|
|
33914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33915
33918
|
var TOTAL_CAP = 1e4;
|
|
33916
33919
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33917
33920
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33922,7 +33925,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33922
33925
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33923
33926
|
}, "totalOf");
|
|
33924
33927
|
|
|
33925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33926
33929
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33927
33930
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33928
33931
|
let narrows = false;
|
|
@@ -33951,7 +33954,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33951
33954
|
return wanted(root).join(" ").trim();
|
|
33952
33955
|
}, "meaningWords");
|
|
33953
33956
|
|
|
33954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33955
33958
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33956
33959
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33957
33960
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -34152,7 +34155,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
34152
34155
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
34153
34156
|
}, "signals");
|
|
34154
34157
|
|
|
34155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
34156
34159
|
var MEANING_DEPTH = 100;
|
|
34157
34160
|
var RRF_K3 = 60;
|
|
34158
34161
|
var RERANK_DEPTH = 50;
|
|
@@ -34478,7 +34481,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34478
34481
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34479
34482
|
}, "mixedWithReranker");
|
|
34480
34483
|
|
|
34481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34482
34485
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34483
34486
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34484
34487
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34677,7 +34680,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34677
34680
|
return result;
|
|
34678
34681
|
}, "readThreadContext");
|
|
34679
34682
|
|
|
34680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34681
34684
|
var SEARCH_FILL_MS = 200;
|
|
34682
34685
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34683
34686
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34746,7 +34749,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34746
34749
|
}, "accountOf");
|
|
34747
34750
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34748
34751
|
|
|
34749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
34750
34753
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34751
34754
|
const chosen = chosenTextModel(env);
|
|
34752
34755
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34761,7 +34764,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34761
34764
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34762
34765
|
}, "meaningModel");
|
|
34763
34766
|
|
|
34764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34765
34768
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34766
34769
|
try {
|
|
34767
34770
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34840,7 +34843,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34840
34843
|
}
|
|
34841
34844
|
}, "meaningLane");
|
|
34842
34845
|
|
|
34843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34844
34847
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34845
34848
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34846
34849
|
if (choice === "off")
|
|
@@ -34852,9 +34855,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34852
34855
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34853
34856
|
try {
|
|
34854
34857
|
const warm = deps.embedders;
|
|
34855
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34858
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-UFBRGTQC.js")).openRerankerProcess(model, directory2, {
|
|
34856
34859
|
threads: defaultThreads()
|
|
34857
|
-
})) : await (await import("./rerank-
|
|
34860
|
+
})) : await (await import("./rerank-ZCOWTXIJ.js")).openReranker(model, directory2);
|
|
34858
34861
|
return {
|
|
34859
34862
|
model: model.id,
|
|
34860
34863
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34874,7 +34877,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34874
34877
|
};
|
|
34875
34878
|
}, "rerankLane");
|
|
34876
34879
|
|
|
34877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34878
34881
|
var DAY5 = 864e5;
|
|
34879
34882
|
var SPAN = { start: 0, end: 0 };
|
|
34880
34883
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34999,17 +35002,17 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34999
35002
|
};
|
|
35000
35003
|
}, "questionPeriod");
|
|
35001
35004
|
|
|
35002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
35003
35006
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
35004
35007
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
35005
35008
|
const directory2 = imageModelsDirectory(env);
|
|
35006
35009
|
if (!isImageModelInstalled(model, directory2))
|
|
35007
35010
|
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-
|
|
35011
|
+
const { openPictureEmbedder } = await import("./embedder-WN54JIMY.js");
|
|
35009
35012
|
return openPictureEmbedder(model, directory2);
|
|
35010
35013
|
}, "openPictureEmbedderFor");
|
|
35011
35014
|
|
|
35012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
35013
35016
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
35014
35017
|
const metadata = note.frontMatter;
|
|
35015
35018
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -35031,7 +35034,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
35031
35034
|
};
|
|
35032
35035
|
}, "documentSource");
|
|
35033
35036
|
|
|
35034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
35035
35038
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
35036
35039
|
const host = new URL(baseUrl).host;
|
|
35037
35040
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -35064,7 +35067,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
35064
35067
|
};
|
|
35065
35068
|
}, "embeddingKeys");
|
|
35066
35069
|
|
|
35067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
35068
35071
|
var options = strictObject({
|
|
35069
35072
|
temperature: range(0, 2),
|
|
35070
35073
|
top_p: range(0, 1),
|
|
@@ -35131,7 +35134,7 @@ var openai = {
|
|
|
35131
35134
|
}), "complete")
|
|
35132
35135
|
};
|
|
35133
35136
|
|
|
35134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
35135
35138
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
35136
35139
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
35137
35140
|
if (deps.signal?.aborted)
|
|
@@ -35146,7 +35149,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35146
35149
|
if (!adapter && target2.provider === "openai")
|
|
35147
35150
|
adapter = openai;
|
|
35148
35151
|
if (!adapter && target2.provider === "anthropic")
|
|
35149
|
-
adapter = (await import("./anthropic-
|
|
35152
|
+
adapter = (await import("./anthropic-YFMIHFW5.js")).anthropic;
|
|
35150
35153
|
if (!adapter)
|
|
35151
35154
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
35152
35155
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -35206,7 +35209,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35206
35209
|
}, "complete")
|
|
35207
35210
|
}), "modelGateway");
|
|
35208
35211
|
|
|
35209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
35210
35213
|
var SECTION2 = "enrichment";
|
|
35211
35214
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
35212
35215
|
var DEFAULT_BASE_URLS = {
|
|
@@ -35281,7 +35284,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting2) => {
|
|
|
35281
35284
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
35282
35285
|
}, "costOf");
|
|
35283
35286
|
|
|
35284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
35285
35288
|
var ENRICH_PER_RUN = 600;
|
|
35286
35289
|
var MAX_LINE = 400;
|
|
35287
35290
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -35357,7 +35360,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
35357
35360
|
};
|
|
35358
35361
|
}, "enrichmentState");
|
|
35359
35362
|
|
|
35360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
35361
35364
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
35362
35365
|
let root;
|
|
35363
35366
|
try {
|
|
@@ -35384,7 +35387,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
35384
35387
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
35385
35388
|
}, "titleTiers");
|
|
35386
35389
|
|
|
35387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
35388
35391
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
35389
35392
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
35390
35393
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35812,7 +35815,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35812
35815
|
};
|
|
35813
35816
|
}, "searchNotesOf");
|
|
35814
35817
|
|
|
35815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35816
35819
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35817
35820
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35818
35821
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35930,7 +35933,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35930
35933
|
};
|
|
35931
35934
|
}, "searchEvents");
|
|
35932
35935
|
|
|
35933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35934
35937
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35935
35938
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35936
35939
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35960,7 +35963,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35960
35963
|
};
|
|
35961
35964
|
}, "searchBusiness");
|
|
35962
35965
|
|
|
35963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35964
35967
|
var MOST_HITS_PER_MEETING = 3;
|
|
35965
35968
|
var PAGE_ROWS = 200;
|
|
35966
35969
|
var MOST_PAGES = 25;
|
|
@@ -36188,7 +36191,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
36188
36191
|
foundBy: ["title"]
|
|
36189
36192
|
}), "titleItem");
|
|
36190
36193
|
|
|
36191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
36192
36195
|
var SECTION3 = "search_harder";
|
|
36193
36196
|
var HARDER_MODELS = {
|
|
36194
36197
|
anthropic: "claude-haiku-5-5",
|
|
@@ -36434,7 +36437,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
36434
36437
|
};
|
|
36435
36438
|
}, "reorderHarder");
|
|
36436
36439
|
|
|
36437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
36438
36441
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
36439
36442
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
36440
36443
|
const { reason, span } = error.details ?? {};
|
|
@@ -36847,7 +36850,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36847
36850
|
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
36851
|
}, "insidePeriodFirst");
|
|
36849
36852
|
|
|
36850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36851
36854
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36852
36855
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36853
36856
|
var DEFAULT_BACKEND = "both";
|
|
@@ -37038,7 +37041,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
37038
37041
|
return { report, sources };
|
|
37039
37042
|
}, "searchServer");
|
|
37040
37043
|
|
|
37041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
37042
37045
|
var DELETE_AT_ONCE = 10;
|
|
37043
37046
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
37044
37047
|
const files = fileLinks(attachments);
|
|
@@ -37478,7 +37481,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
37478
37481
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
37479
37482
|
}, "checkMediaOptions");
|
|
37480
37483
|
|
|
37481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
37482
37485
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
37483
37486
|
var RULES2 = {
|
|
37484
37487
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -37493,7 +37496,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
37493
37496
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
37494
37497
|
}), "classifyChannel");
|
|
37495
37498
|
|
|
37496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
37497
37500
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
37498
37501
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
37499
37502
|
const store = await deps.store();
|
|
@@ -37579,7 +37582,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37579
37582
|
};
|
|
37580
37583
|
}, "metadataService");
|
|
37581
37584
|
|
|
37582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37583
37586
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37584
37587
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
37585
37588
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -37616,7 +37619,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
37616
37619
|
return { chatId, rows, notes };
|
|
37617
37620
|
}, "moderateWith");
|
|
37618
37621
|
|
|
37619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37620
37623
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37621
37624
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
37622
37625
|
const env = deps.env ?? process.env;
|
|
@@ -37701,7 +37704,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37701
37704
|
}, "removePerson")
|
|
37702
37705
|
}), "moderatorOf");
|
|
37703
37706
|
|
|
37704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37705
37708
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37706
37709
|
id: note.id,
|
|
37707
37710
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37745,7 +37748,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37745
37748
|
};
|
|
37746
37749
|
}, "privatePeopleService");
|
|
37747
37750
|
|
|
37748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37749
37752
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37750
37753
|
total: 0,
|
|
37751
37754
|
population: 0,
|
|
@@ -38001,7 +38004,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
38001
38004
|
}, "evidence")
|
|
38002
38005
|
}), "rankingsService");
|
|
38003
38006
|
|
|
38004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
38005
38008
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
38006
38009
|
var WAITING_TAIL = 100;
|
|
38007
38010
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -38135,7 +38138,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38135
38138
|
};
|
|
38136
38139
|
}, "replyStatsService");
|
|
38137
38140
|
|
|
38138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
38139
38142
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
38140
38143
|
id: one.id,
|
|
38141
38144
|
name: one.name,
|
|
@@ -38261,7 +38264,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
38261
38264
|
};
|
|
38262
38265
|
}, "searchesService");
|
|
38263
38266
|
|
|
38264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
38265
38268
|
var TAGGING_QUERY = {
|
|
38266
38269
|
entity: "tagging",
|
|
38267
38270
|
backend: "sql",
|
|
@@ -38345,7 +38348,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38345
38348
|
};
|
|
38346
38349
|
}, "tagsService");
|
|
38347
38350
|
|
|
38348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38351
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38349
38352
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38350
38353
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
38351
38354
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38544,7 +38547,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38544
38547
|
};
|
|
38545
38548
|
}, "topicsService");
|
|
38546
38549
|
|
|
38547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
38548
38551
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
38549
38552
|
var CRM_WRITE_DEFAULTS = {
|
|
38550
38553
|
"deals.delete": "ask",
|
|
@@ -38552,10 +38555,10 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
38552
38555
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
38553
38556
|
};
|
|
38554
38557
|
|
|
38555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
38556
38559
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
38557
38560
|
|
|
38558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38559
38562
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
38560
38563
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38561
38564
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38629,7 +38632,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
38629
38632
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
38630
38633
|
}, "prepareEvidencePacket");
|
|
38631
38634
|
|
|
38632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38633
38636
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
38634
38637
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38635
38638
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38649,7 +38652,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38649
38652
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38650
38653
|
}, "readEvidencePacket");
|
|
38651
38654
|
|
|
38652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38653
38656
|
var scopeKeys = [
|
|
38654
38657
|
"accountId",
|
|
38655
38658
|
"meetingId",
|
|
@@ -38671,7 +38674,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
38671
38674
|
"maxVocabularyReadBytes"
|
|
38672
38675
|
]);
|
|
38673
38676
|
|
|
38674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
38675
38678
|
import { createHash as createHash12 } from "node:crypto";
|
|
38676
38679
|
import { existsSync as existsSync3 } from "node:fs";
|
|
38677
38680
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38802,14 +38805,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38802
38805
|
return { ...checked2.output, custom: true };
|
|
38803
38806
|
}, "addCustomTextModel");
|
|
38804
38807
|
|
|
38805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
38806
38809
|
var DAY6 = 864e5;
|
|
38807
38810
|
var SLOTS_EVERY = 7 * DAY6;
|
|
38808
38811
|
|
|
38809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
38810
38813
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
38811
38814
|
|
|
38812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
38813
38816
|
var LIST = "events list";
|
|
38814
38817
|
var EVENT_TYPES = [
|
|
38815
38818
|
"default",
|
|
@@ -38868,7 +38871,7 @@ var EVENTS_QUERY = {
|
|
|
38868
38871
|
} : field)
|
|
38869
38872
|
};
|
|
38870
38873
|
|
|
38871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
38872
38875
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
38873
38876
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
38874
38877
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -38886,7 +38889,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
38886
38889
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
38887
38890
|
};
|
|
38888
38891
|
|
|
38889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38890
38893
|
var communicationFields = {
|
|
38891
38894
|
sources: pipe(array(strictObject({
|
|
38892
38895
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38918,7 +38921,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38918
38921
|
return { ...input, after, before };
|
|
38919
38922
|
}, "communicationRequest");
|
|
38920
38923
|
|
|
38921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38922
38925
|
var MEETING_PREPARATION_LIMITS = {
|
|
38923
38926
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38924
38927
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38991,7 +38994,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38991
38994
|
};
|
|
38992
38995
|
}, "validateMeetingPreparationRequest");
|
|
38993
38996
|
|
|
38994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38995
38998
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38996
38999
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38997
39000
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -39039,7 +39042,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
39039
39042
|
}
|
|
39040
39043
|
}, "validatePreparationCommunications");
|
|
39041
39044
|
|
|
39042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39043
39046
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39044
39047
|
const installer = ports.installer();
|
|
39045
39048
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39104,7 +39107,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39104
39107
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39105
39108
|
}, "dayAfter");
|
|
39106
39109
|
|
|
39107
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39108
39111
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39109
39112
|
const pictures = picturesService(deps);
|
|
39110
39113
|
const base = {
|
|
@@ -39141,7 +39144,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
39141
39144
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
39142
39145
|
}, "servicesFor");
|
|
39143
39146
|
|
|
39144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
39145
39148
|
import { createHash as createHash13 } from "node:crypto";
|
|
39146
39149
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
|
|
39147
39150
|
import { createConnection, createServer } from "node:net";
|
|
@@ -39362,7 +39365,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
39362
39365
|
}, () => finish({ error: stopped() }));
|
|
39363
39366
|
}), "relayCommand");
|
|
39364
39367
|
|
|
39365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.675.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.102.1_commander@15_4538b457841b7e7d546b8c440ab6644a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
39366
39369
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
39367
39370
|
close: /* @__PURE__ */ __name(async () => {
|
|
39368
39371
|
}, "close"),
|