@wirecat/notion-cli 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +9 -2
- package/contracts/wirecat.json +97 -0
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/{all-profiles-JGYLQZ5C.js → all-profiles-4IONYZB6.js} +10 -10
- package/dist/bundle/{anthropic-S2VSMIKQ.js → anthropic-OXF74J4P.js} +6 -6
- package/dist/bundle/{app-server-SASYDBCA.js → app-server-M2VF6ABM.js} +59 -59
- package/dist/bundle/{bun-LU5LP3JI.js → bun-DLA6QRLL.js} +2 -2
- package/dist/bundle/{bun-sqlite-JBSINB4O.js → bun-sqlite-F4BYLW3F.js} +7 -7
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-2MHMKNWD.js} +1 -1
- package/dist/bundle/{chunk-SHJQ6JKG.js → chunk-4KUJTSHG.js} +2 -2
- package/dist/bundle/{chunk-SWAOWNKW.js → chunk-4TQVZXOV.js} +3 -3
- package/dist/bundle/{chunk-ODBZNSZ6.js → chunk-5LBJNTEJ.js} +6 -6
- package/dist/bundle/{chunk-SZOVLP44.js → chunk-5UA2TYMI.js} +2 -2
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-5XP4KQ2F.js} +1 -1
- package/dist/bundle/{chunk-4IPURN72.js → chunk-6GN7KU7X.js} +9 -9
- package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-6JBLIQQN.js} +1 -1
- package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-OTV53F34.js → chunk-7NGFGFE5.js} +9 -60
- package/dist/bundle/{chunk-VBHETQVV.js → chunk-7NVPM55S.js} +1908 -1013
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-7YZPBAQX.js} +1 -1
- package/dist/bundle/{chunk-3AL7QUS3.js → chunk-AYU5TFDU.js} +20 -20
- package/dist/bundle/{chunk-FPY6EJ7B.js → chunk-BEPFGITI.js} +55 -55
- package/dist/bundle/{chunk-NQWV4WQO.js → chunk-CDGZZNGY.js} +6 -6
- package/dist/bundle/{chunk-DH5PRHT4.js → chunk-CIVXTBJY.js} +13 -13
- package/dist/bundle/{chunk-B26TQZKZ.js → chunk-COH7OEER.js} +14 -13
- package/dist/bundle/{chunk-XF26XKTS.js → chunk-D6RCRBDH.js} +2 -2
- package/dist/bundle/{chunk-YMYUBZWT.js → chunk-EQPAZ33O.js} +17 -17
- package/dist/bundle/{chunk-LAYPFBOM.js → chunk-EY6S7FV3.js} +6 -6
- package/dist/bundle/chunk-FEMHUSGO.js +88 -0
- package/dist/bundle/{chunk-VCIALTEM.js → chunk-FIHXADRF.js} +14 -4
- package/dist/bundle/{chunk-FWVBPRL4.js → chunk-FSJHASRQ.js} +79 -62
- package/dist/bundle/{chunk-TPX2M45D.js → chunk-GBFEEHQC.js} +10 -10
- package/dist/bundle/{chunk-5IYKVRH2.js → chunk-GCCPFKSU.js} +434 -343
- package/dist/bundle/{chunk-3Z4YTSRY.js → chunk-GK4GLPG2.js} +3 -3
- package/dist/bundle/{chunk-GZOUFX3C.js → chunk-GSNE7OB4.js} +4 -4
- package/dist/bundle/{chunk-TSDBSIFM.js → chunk-HTKSCSJU.js} +4 -4
- package/dist/bundle/{chunk-5NFK5EM2.js → chunk-IJMFG7HB.js} +7 -7
- package/dist/bundle/{chunk-D7QSEEYW.js → chunk-JIRRF6BM.js} +4 -4
- package/dist/bundle/{chunk-5RSC54NA.js → chunk-JODE2XED.js} +25 -25
- package/dist/bundle/{chunk-RV64YUQX.js → chunk-K5I64ZVI.js} +9 -9
- package/dist/bundle/{chunk-AOCUKEAX.js → chunk-KL3P5TQK.js} +4 -4
- package/dist/bundle/{chunk-2LWO3PDX.js → chunk-L62XTC7N.js} +11 -11
- package/dist/bundle/{chunk-LLG2POQ7.js → chunk-L6H7PY4X.js} +3 -3
- package/dist/bundle/{chunk-5RDNBG7D.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-WF4D56CA.js → chunk-M2EEIYBU.js} +2 -2
- package/dist/bundle/{chunk-MZU2YFBZ.js → chunk-M6DGZ2O6.js} +8 -8
- package/dist/bundle/{chunk-FXEJY4OL.js → chunk-MRA62W5K.js} +233 -167
- package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-WCSOH4JS.js → chunk-OCDJ4FFA.js} +4 -4
- package/dist/bundle/{chunk-2F4QQ7WB.js → chunk-OI5DWZJG.js} +3 -3
- package/dist/bundle/{chunk-EUIVXFLJ.js → chunk-P3P6DA6K.js} +6 -6
- package/dist/bundle/{chunk-MY742GAD.js → chunk-QX3TPFEX.js} +37 -37
- package/dist/bundle/{chunk-6RA3EABS.js → chunk-R6SDRSZK.js} +62 -32
- package/dist/bundle/{chunk-5QIQEUOG.js → chunk-RMJMID5D.js} +8 -8
- package/dist/bundle/{chunk-BNPTZ5ZB.js → chunk-SGBS5QCU.js} +4 -4
- package/dist/bundle/{chunk-YNTLT3Z3.js → chunk-T5UNSFES.js} +8 -8
- package/dist/bundle/{chunk-M7S2NDWB.js → chunk-TFNRCCGR.js} +4 -4
- package/dist/bundle/{chunk-B7ON6KPT.js → chunk-TJCPTRYD.js} +7 -7
- package/dist/bundle/{chunk-KM6WHPHI.js → chunk-TXONV3HW.js} +2 -2
- package/dist/bundle/{chunk-NOQ7B5N7.js → chunk-TZ2QJ53V.js} +2 -2
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-UKE3CGHK.js} +1 -1
- package/dist/bundle/{chunk-6EVKHZKN.js → chunk-UROEWCOG.js} +3 -3
- package/dist/bundle/{chunk-WJHZMR2W.js → chunk-WHJWURZB.js} +6 -6
- package/dist/bundle/{chunk-G3EZFRSS.js → chunk-WU3XHGOB.js} +112 -42
- package/dist/bundle/{chunk-2F6VO5HA.js → chunk-WZEEEQGC.js} +3 -3
- package/dist/bundle/{chunk-M3KB25D3.js → chunk-XCTOCVMW.js} +14 -14
- package/dist/bundle/{chunk-FT3LN3HP.js → chunk-Y5LAJWR5.js} +1 -1
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-YFWLHTNO.js} +1 -1
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-YGCI3DHS.js} +1 -1
- package/dist/bundle/{chunk-KCLOUUYF.js → chunk-Z53LYX4M.js} +3 -3
- package/dist/bundle/{chunk-ZKAEZXUP.js → chunk-ZC6ZQQ55.js} +36 -37
- package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
- package/dist/bundle/{command-server-entry-UFSG7KRO.js → command-server-entry-2SORMVRM.js} +27 -27
- package/dist/bundle/{decode-7LLWTSPT.js → decode-5O7IEFPN.js} +6 -6
- package/dist/bundle/{dispatch-2GY6JIJH.js → dispatch-YHQX6FEJ.js} +8 -8
- package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ARLMVQC7.js} +2 -2
- package/dist/bundle/{embed-JXFNBTKH.js → embed-FUDUKQ3K.js} +7 -7
- package/dist/bundle/{embedder-57YZ44KO.js → embedder-HDRV7GX3.js} +10 -10
- package/dist/bundle/{failure-MYT4HPE3.js → failure-JHXICWIL.js} +3 -3
- package/dist/bundle/first-run-BGEFTXOE.js +29 -0
- package/dist/bundle/first-screen-F5F3VS6Y.js +38 -0
- package/dist/bundle/{instructions-2VECIDXF.js → instructions-MEFIKCDI.js} +1 -1
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
- package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
- package/dist/bundle/{meeting-semantic-ETN3A4BJ.js → meeting-semantic-R4CSLVRG.js} +7 -7
- package/dist/bundle/{node-MPEQSFI3.js → node-MAQALPLA.js} +2 -2
- package/dist/bundle/{node-sqlite-WA32MYSJ.js → node-sqlite-J7IJYNBO.js} +8 -8
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/{oauth-IAFZG3IR.js → oauth-AMV4YGJD.js} +8 -8
- package/dist/bundle/{open-M3JQUC5G.js → open-AB27MTGR.js} +6 -6
- package/dist/bundle/{openai-HXUEHUSD.js → openai-D77MU5XV.js} +17 -17
- package/dist/bundle/{process-F6TKXWWA.js → process-SIOWTRJ6.js} +1 -1
- package/dist/bundle/{program-Y7JAB6TG.js → program-7K34KI27.js} +3230 -1722
- package/dist/bundle/{prompt-IMUQLZD2.js → prompt-W77YDHA6.js} +6 -6
- package/dist/bundle/{recognize-2MZAYHAA.js → recognize-3JAXQQ36.js} +5 -5
- package/dist/bundle/{remote-OV4LB6VR.js → remote-PSOJXCXO.js} +11 -11
- package/dist/bundle/{rerank-ZIULUS34.js → rerank-EE44ZTGL.js} +8 -8
- package/dist/bundle/{schemas-DIVZS6TU.js → schemas-LBYUMBC6.js} +2 -2
- package/dist/bundle/{serve-YU7QBP6L.js → serve-XJMGAMFW.js} +10 -10
- package/dist/bundle/{server-LGMNONSB.js → server-ASU6CP5R.js} +51 -51
- package/dist/bundle/server-WSPQ5EOA.js +72 -0
- package/dist/bundle/{services-5WY4DCPJ.js → services-PT4PA4J6.js} +46 -39
- package/dist/bundle/{sqlite-runtime-5MXZDETH.js → sqlite-runtime-YHXRTVXE.js} +7 -7
- package/dist/bundle/{state-LWMZH2KI.js → state-T6ZKFWGD.js} +7 -7
- package/dist/bundle/{store-EPZYV4VW.js → store-3MUCZEI3.js} +20 -18
- package/dist/bundle/{store-QE6FEIZD.js → store-E5EE25FY.js} +24 -20
- package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +63 -0
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +13 -4
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/comments.d.ts +4 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +80 -0
- package/dist/commands/comments.js.map +1 -0
- package/dist/commands/documents.d.ts +8 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +74 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/files.d.ts +4 -0
- package/dist/commands/files.d.ts.map +1 -0
- package/dist/commands/files.js +57 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +50 -9
- package/dist/commands/library.js.map +1 -1
- package/dist/commands/writing.d.ts +32 -0
- package/dist/commands/writing.d.ts.map +1 -0
- package/dist/commands/writing.js +126 -0
- package/dist/commands/writing.js.map +1 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +76 -5
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +3 -0
- package/dist/context.js.map +1 -1
- package/dist/generated/types.d.ts +485 -375
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/notion/errors.d.ts +5 -0
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +9 -0
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/notion.d.ts +38 -0
- package/dist/notion/notion.d.ts.map +1 -1
- package/dist/notion/notion.js +43 -0
- package/dist/notion/notion.js.map +1 -1
- package/dist/notion/writes.d.ts +78 -0
- package/dist/notion/writes.d.ts.map +1 -0
- package/dist/notion/writes.js +185 -0
- package/dist/notion/writes.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -0
- package/dist/program.js.map +1 -1
- package/dist/sync/browse.d.ts +30 -0
- package/dist/sync/browse.d.ts.map +1 -0
- package/dist/sync/browse.js +67 -0
- package/dist/sync/browse.js.map +1 -0
- package/dist/sync/cursor.d.ts +29 -0
- package/dist/sync/cursor.d.ts.map +1 -1
- package/dist/sync/cursor.js +28 -0
- package/dist/sync/cursor.js.map +1 -1
- package/dist/sync/files.d.ts +11 -0
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js +29 -0
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/source.d.ts +3 -3
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +81 -63
- package/dist/sync/source.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/notion-cli/SKILL.md +6 -0
- package/dist/bundle/command-contract-JS5V27NX.js +0 -38
- package/dist/bundle/first-run-3PF7T74J.js +0 -29
- package/dist/bundle/first-screen-7BEROEQR.js +0 -36
- package/dist/bundle/meeting-combined-PPUQ3KBR.js +0 -24
- package/dist/bundle/meeting-model-ZNMYKMCD.js +0 -26
- package/dist/bundle/server-FKQET4ZO.js +0 -71
- package/dist/bundle/store-maintenance-command-ZUUUFCHL.js +0 -62
- /package/dist/bundle/{chunk-VKE77B3F.js → chunk-SHTHNBHG.js} +0 -0
|
@@ -8,11 +8,14 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CIVXTBJY.js";
|
|
12
|
+
import {
|
|
13
|
+
WIRECAT_TOOLS
|
|
14
|
+
} from "./chunk-FEMHUSGO.js";
|
|
12
15
|
import {
|
|
13
16
|
isNewer,
|
|
14
17
|
updateCommand
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OCDJ4FFA.js";
|
|
16
19
|
import {
|
|
17
20
|
EmptyAnswer,
|
|
18
21
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -21,7 +24,7 @@ import {
|
|
|
21
24
|
range,
|
|
22
25
|
systemFor,
|
|
23
26
|
validateImages
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TFNRCCGR.js";
|
|
25
28
|
import {
|
|
26
29
|
anyOfTerms,
|
|
27
30
|
isFunctionWord,
|
|
@@ -33,7 +36,7 @@ import {
|
|
|
33
36
|
resolveMeetingSelection,
|
|
34
37
|
searchMeetingHits,
|
|
35
38
|
words
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GBFEEHQC.js";
|
|
37
40
|
import {
|
|
38
41
|
CEILING_KEY,
|
|
39
42
|
Command,
|
|
@@ -52,6 +55,7 @@ import {
|
|
|
52
55
|
attachment,
|
|
53
56
|
codeOf,
|
|
54
57
|
conversation,
|
|
58
|
+
deadlineMargin,
|
|
55
59
|
envName,
|
|
56
60
|
guardedWrite,
|
|
57
61
|
historyWindow,
|
|
@@ -72,7 +76,7 @@ import {
|
|
|
72
76
|
stops,
|
|
73
77
|
tagging,
|
|
74
78
|
task
|
|
75
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-MRA62W5K.js";
|
|
76
80
|
import {
|
|
77
81
|
CustomTextModelShape,
|
|
78
82
|
DEFAULT_RERANK_MODEL,
|
|
@@ -86,7 +90,7 @@ import {
|
|
|
86
90
|
textModels,
|
|
87
91
|
vectorModelKey,
|
|
88
92
|
writeTextModelsSection
|
|
89
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-WHJWURZB.js";
|
|
90
94
|
import {
|
|
91
95
|
AGENDA_COLUMNS,
|
|
92
96
|
BUSINESS_FIND_MAX,
|
|
@@ -177,11 +181,11 @@ import {
|
|
|
177
181
|
threadConversation,
|
|
178
182
|
waitingPointer,
|
|
179
183
|
withoutField
|
|
180
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-7NVPM55S.js";
|
|
181
185
|
import {
|
|
182
186
|
DEFAULT_STEMMERS,
|
|
183
187
|
createStemmer
|
|
184
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-T5UNSFES.js";
|
|
185
189
|
import {
|
|
186
190
|
FIELD_VERSION,
|
|
187
191
|
MESSAGE_PARSING,
|
|
@@ -198,11 +202,11 @@ import {
|
|
|
198
202
|
searchError,
|
|
199
203
|
validateAst,
|
|
200
204
|
validateFields
|
|
201
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-M6DGZ2O6.js";
|
|
202
206
|
import {
|
|
203
207
|
fold,
|
|
204
208
|
normalize
|
|
205
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-6JBLIQQN.js";
|
|
206
210
|
import {
|
|
207
211
|
CATEGORIES,
|
|
208
212
|
DEAL_KINDS,
|
|
@@ -250,14 +254,14 @@ import {
|
|
|
250
254
|
sourceOf3 as sourceOf2,
|
|
251
255
|
typedCommand,
|
|
252
256
|
withAttempt
|
|
253
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-QX3TPFEX.js";
|
|
254
258
|
import {
|
|
255
259
|
isCliFailure,
|
|
256
260
|
sqliteCode
|
|
257
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-UROEWCOG.js";
|
|
258
262
|
import {
|
|
259
263
|
normalizeTag
|
|
260
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-5UA2TYMI.js";
|
|
261
265
|
import {
|
|
262
266
|
BACKENDS,
|
|
263
267
|
CALLBACK_WITHIN_MS,
|
|
@@ -291,6 +295,7 @@ import {
|
|
|
291
295
|
liftMeetingFields,
|
|
292
296
|
listed,
|
|
293
297
|
markedPassage,
|
|
298
|
+
meetingCallItem,
|
|
294
299
|
meetingCueFingerprint,
|
|
295
300
|
meetingDetailsBody,
|
|
296
301
|
meetingFieldFlag,
|
|
@@ -324,26 +329,26 @@ import {
|
|
|
324
329
|
validateQuery,
|
|
325
330
|
walkQuery,
|
|
326
331
|
windowOf
|
|
327
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-FSJHASRQ.js";
|
|
328
333
|
import {
|
|
329
334
|
localOnly,
|
|
330
335
|
refuseOffComputer,
|
|
331
336
|
remoteKey
|
|
332
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-K5I64ZVI.js";
|
|
333
338
|
import {
|
|
334
339
|
PLAIN_HTTP_REFUSED,
|
|
335
340
|
endpoint,
|
|
336
341
|
endpointFetch,
|
|
337
342
|
modelAddressAllowed,
|
|
338
343
|
onThisComputer
|
|
339
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-WZEEEQGC.js";
|
|
340
345
|
import {
|
|
341
346
|
DEFAULT_TASK_CATEGORIES,
|
|
342
347
|
FALLBACK_CATEGORY,
|
|
343
348
|
readSharedSection,
|
|
344
349
|
sharedConfigPath,
|
|
345
350
|
writeSharedSection
|
|
346
|
-
} from "./chunk-
|
|
351
|
+
} from "./chunk-TJCPTRYD.js";
|
|
347
352
|
import {
|
|
348
353
|
Unzip,
|
|
349
354
|
UnzipInflate,
|
|
@@ -354,15 +359,15 @@ import {
|
|
|
354
359
|
placedText,
|
|
355
360
|
runEmbedders,
|
|
356
361
|
textModelsDirectory
|
|
357
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-5LBJNTEJ.js";
|
|
358
363
|
import {
|
|
359
364
|
installFiles,
|
|
360
365
|
megabytes
|
|
361
|
-
} from "./chunk-
|
|
366
|
+
} from "./chunk-JIRRF6BM.js";
|
|
362
367
|
import {
|
|
363
368
|
storePath,
|
|
364
369
|
wirecatDirectory
|
|
365
|
-
} from "./chunk-
|
|
370
|
+
} from "./chunk-M2EEIYBU.js";
|
|
366
371
|
import {
|
|
367
372
|
Credentials,
|
|
368
373
|
logRecordOf,
|
|
@@ -370,7 +375,7 @@ import {
|
|
|
370
375
|
realSleep,
|
|
371
376
|
resolvePaths,
|
|
372
377
|
writeSecurely
|
|
373
|
-
} from "./chunk-
|
|
378
|
+
} from "./chunk-AYU5TFDU.js";
|
|
374
379
|
import {
|
|
375
380
|
array,
|
|
376
381
|
check,
|
|
@@ -398,7 +403,7 @@ import {
|
|
|
398
403
|
trim,
|
|
399
404
|
union,
|
|
400
405
|
unknown
|
|
401
|
-
} from "./chunk-
|
|
406
|
+
} from "./chunk-MVA5HVKL.js";
|
|
402
407
|
import {
|
|
403
408
|
importFrom,
|
|
404
409
|
resolveFrom
|
|
@@ -408,7 +413,7 @@ import {
|
|
|
408
413
|
isCliError,
|
|
409
414
|
singleLine,
|
|
410
415
|
visibleControls
|
|
411
|
-
} from "./chunk-
|
|
416
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
412
417
|
import {
|
|
413
418
|
__commonJS,
|
|
414
419
|
__name,
|
|
@@ -17024,7 +17029,7 @@ var require_lib3 = __commonJS({
|
|
|
17024
17029
|
}
|
|
17025
17030
|
});
|
|
17026
17031
|
|
|
17027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17028
17033
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17029
17034
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17030
17035
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17099,7 +17104,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account, { app, env }) => {
|
|
|
17099
17104
|
return { ...storedDeps(messenger, store, account, guard), ...env === void 0 ? {} : { env } };
|
|
17100
17105
|
}, "storeOnlyDeps");
|
|
17101
17106
|
|
|
17102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
17103
17108
|
var DAY_MS = 864e5;
|
|
17104
17109
|
var NEW_DAYS = 30;
|
|
17105
17110
|
var SAME_TEXT_MIN = 20;
|
|
@@ -17176,7 +17181,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
17176
17181
|
};
|
|
17177
17182
|
}, "scorePerson");
|
|
17178
17183
|
|
|
17179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
17180
17185
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
17181
17186
|
const controller = new AbortController();
|
|
17182
17187
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -17192,7 +17197,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
17192
17197
|
}
|
|
17193
17198
|
}, "withTimeLimit");
|
|
17194
17199
|
|
|
17195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
17196
17201
|
var REGISTRIES = {
|
|
17197
17202
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
17198
17203
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -17279,7 +17284,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
17279
17284
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
17280
17285
|
})), "notCovered");
|
|
17281
17286
|
|
|
17282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
17283
17288
|
var ACTIVITY_MESSAGES = 1e3;
|
|
17284
17289
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
17285
17290
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -17367,7 +17372,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
17367
17372
|
};
|
|
17368
17373
|
}, "botCheckService");
|
|
17369
17374
|
|
|
17370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
17371
17376
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
17372
17377
|
if (newest === null)
|
|
17373
17378
|
return null;
|
|
@@ -17376,7 +17381,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
17376
17381
|
return newest.addressed ? "owed" : null;
|
|
17377
17382
|
}, "mailTurn");
|
|
17378
17383
|
|
|
17379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
17380
17385
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
17381
17386
|
if (error instanceof CliError && error.code === "not_found")
|
|
17382
17387
|
return void 0;
|
|
@@ -17434,7 +17439,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
17434
17439
|
};
|
|
17435
17440
|
}, "mailActivity");
|
|
17436
17441
|
|
|
17437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
17438
17443
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
17439
17444
|
const ids = [...new Set(chatIds)];
|
|
17440
17445
|
if (ids.length === 0)
|
|
@@ -17460,7 +17465,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
17460
17465
|
}));
|
|
17461
17466
|
}, "chatCoverage");
|
|
17462
17467
|
|
|
17463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
17464
17469
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
17465
17470
|
if (value === void 0)
|
|
17466
17471
|
return void 0;
|
|
@@ -17470,7 +17475,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
17470
17475
|
return id2;
|
|
17471
17476
|
}, "threadIdOf");
|
|
17472
17477
|
|
|
17473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17474
17479
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17475
17480
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17476
17481
|
if (key in own)
|
|
@@ -17487,15 +17492,15 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17487
17492
|
return found.bind(adapter);
|
|
17488
17493
|
}, "capability");
|
|
17489
17494
|
|
|
17490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17491
17496
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17492
17497
|
|
|
17493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17494
17499
|
import { randomBytes } from "node:crypto";
|
|
17495
17500
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17496
17501
|
var newOperationId = newSendId;
|
|
17497
17502
|
|
|
17498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17499
17504
|
var LINKS = /https?:\/\/\S+/g;
|
|
17500
17505
|
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");
|
|
17501
17506
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17525,7 +17530,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17525
17530
|
});
|
|
17526
17531
|
}, "questions");
|
|
17527
17532
|
|
|
17528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
17529
17534
|
var TOP_POSTS = 5;
|
|
17530
17535
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
17531
17536
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -17642,7 +17647,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
17642
17647
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
17643
17648
|
}, "median");
|
|
17644
17649
|
|
|
17645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
17646
17651
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
17647
17652
|
const events = [];
|
|
17648
17653
|
for (const stay of stays) {
|
|
@@ -17674,7 +17679,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
17674
17679
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
17675
17680
|
}, "memberEvents");
|
|
17676
17681
|
|
|
17677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17678
17683
|
var AUDIT_PAGE = 200;
|
|
17679
17684
|
var AUDIT_BUDGET = 10;
|
|
17680
17685
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17754,7 +17759,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17754
17759
|
return found;
|
|
17755
17760
|
}, "burstJoins");
|
|
17756
17761
|
|
|
17757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
17758
17763
|
var ALL = "all";
|
|
17759
17764
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
17760
17765
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -17889,7 +17894,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run2, request, context2) => {
|
|
|
17889
17894
|
return scoped;
|
|
17890
17895
|
}, "scopeToGroup");
|
|
17891
17896
|
|
|
17892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
17893
17898
|
var NO_MAIL = "no_mail";
|
|
17894
17899
|
var MAIL = "email";
|
|
17895
17900
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -17963,7 +17968,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
17963
17968
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
17964
17969
|
}, "accountsOfKind");
|
|
17965
17970
|
|
|
17966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
17967
17972
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
17968
17973
|
if (deps.reads !== "store")
|
|
17969
17974
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18164,7 +18169,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18164
18169
|
}, "chatsMatchingIn");
|
|
18165
18170
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18166
18171
|
|
|
18167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
18168
18173
|
var EVENTS_DAYS = 7;
|
|
18169
18174
|
var TRACKED_DAYS = 30;
|
|
18170
18175
|
var STATS_PAGE = 1e3;
|
|
@@ -18459,7 +18464,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
18459
18464
|
return members.length === 0 ? null : members;
|
|
18460
18465
|
}, "storedMembers");
|
|
18461
18466
|
|
|
18462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18463
18468
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18464
18469
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18465
18470
|
const name = typed.trim().toLowerCase();
|
|
@@ -18516,7 +18521,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18516
18521
|
return best.name;
|
|
18517
18522
|
}, "categorize");
|
|
18518
18523
|
|
|
18519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18520
18525
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18521
18526
|
var RULES_IN = {
|
|
18522
18527
|
dialog: "all",
|
|
@@ -18722,7 +18727,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18722
18727
|
return passes;
|
|
18723
18728
|
}, "applyTaskRulesToChats");
|
|
18724
18729
|
|
|
18725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
18726
18731
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
18727
18732
|
const tags = /* @__PURE__ */ new Map();
|
|
18728
18733
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -18731,7 +18736,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
18731
18736
|
return tags;
|
|
18732
18737
|
}, "taskTagFilters");
|
|
18733
18738
|
|
|
18734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
18735
18740
|
var DAY = 864e5;
|
|
18736
18741
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
18737
18742
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -18985,7 +18990,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
18985
18990
|
};
|
|
18986
18991
|
}, "agendaItem");
|
|
18987
18992
|
|
|
18988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
18989
18994
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
18990
18995
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
18991
18996
|
const fail5 = /* @__PURE__ */ __name(() => {
|
|
@@ -19049,7 +19054,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
19049
19054
|
}
|
|
19050
19055
|
}, "validateContextEvidencePage");
|
|
19051
19056
|
|
|
19052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
19053
19058
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
19054
19059
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
19055
19060
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -19102,7 +19107,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
19102
19107
|
};
|
|
19103
19108
|
}, "contextReadBudget");
|
|
19104
19109
|
|
|
19105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
19106
19111
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
19107
19112
|
if (!port || typeof port.read !== "function")
|
|
19108
19113
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -19146,7 +19151,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
19146
19151
|
};
|
|
19147
19152
|
}, "createContextEvidenceReader");
|
|
19148
19153
|
|
|
19149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
19150
19155
|
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");
|
|
19151
19156
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {}) => {
|
|
19152
19157
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -19162,10 +19167,10 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options2 = {})
|
|
|
19162
19167
|
}, "excerpt");
|
|
19163
19168
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
19164
19169
|
|
|
19165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19166
19171
|
import { createInterface } from "node:readline";
|
|
19167
19172
|
|
|
19168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
19169
19174
|
import { createHash } from "node:crypto";
|
|
19170
19175
|
var MAX_ID = 512;
|
|
19171
19176
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -19395,7 +19400,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text2, { provider, account, batchI
|
|
|
19395
19400
|
};
|
|
19396
19401
|
}, "envelopeOfVcard");
|
|
19397
19402
|
|
|
19398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
19399
19404
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
19400
19405
|
dryRun,
|
|
19401
19406
|
source: null,
|
|
@@ -19495,7 +19500,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text2, { provider, batchI
|
|
|
19495
19500
|
return { ...await ingest(store, envelope, options2), vcard: issues };
|
|
19496
19501
|
}, "ingestVcard");
|
|
19497
19502
|
|
|
19498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
19499
19504
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
19500
19505
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
19501
19506
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -19539,7 +19544,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
19539
19544
|
var remembered = /* @__PURE__ */ __name((input, key, read2) => input.remember ? input.remember(key, read2) : read2(), "remembered");
|
|
19540
19545
|
var chatsWithOf = /* @__PURE__ */ __name((input, key, id2) => remembered(input, `chats-with\0${key.provider}\0${key.account}\0${id2}`, () => input.store.chats.chatsWith(key, id2)), "chatsWithOf");
|
|
19541
19546
|
|
|
19542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
19543
19548
|
var SEARCH_LIMIT = 500;
|
|
19544
19549
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
19545
19550
|
var aliasHits = {
|
|
@@ -19588,7 +19593,7 @@ var aliasHits = {
|
|
|
19588
19593
|
}, "candidates")
|
|
19589
19594
|
};
|
|
19590
19595
|
|
|
19591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
19592
19597
|
var WEIGHT = 0.5;
|
|
19593
19598
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
19594
19599
|
var LARGE_GROUP = 30;
|
|
@@ -19660,7 +19665,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
19660
19665
|
return found;
|
|
19661
19666
|
}, "sendersOf");
|
|
19662
19667
|
|
|
19663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
19664
19669
|
var WEIGHT2 = 0.7;
|
|
19665
19670
|
var chatTitle = {
|
|
19666
19671
|
id: "chat-title",
|
|
@@ -19699,7 +19704,7 @@ var chatTitle = {
|
|
|
19699
19704
|
}, "candidates")
|
|
19700
19705
|
};
|
|
19701
19706
|
|
|
19702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
19703
19708
|
var WEIGHT3 = 0.3;
|
|
19704
19709
|
var CONTACTS = 500;
|
|
19705
19710
|
var MOST_PAIRS = 200;
|
|
@@ -19760,7 +19765,7 @@ var emailDomain = {
|
|
|
19760
19765
|
}, "candidates")
|
|
19761
19766
|
};
|
|
19762
19767
|
|
|
19763
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
19764
19769
|
var NAMED = 0.7;
|
|
19765
19770
|
var MEMBER_ONLY = 0.3;
|
|
19766
19771
|
var READ_LIMIT2 = 500;
|
|
@@ -19834,7 +19839,7 @@ var mailThread = {
|
|
|
19834
19839
|
}, "candidates")
|
|
19835
19840
|
};
|
|
19836
19841
|
|
|
19837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
19838
19843
|
var WEIGHT4 = 0.5;
|
|
19839
19844
|
var memberChats = {
|
|
19840
19845
|
id: "member-chats",
|
|
@@ -19876,7 +19881,7 @@ var memberChats = {
|
|
|
19876
19881
|
}, "candidates")
|
|
19877
19882
|
};
|
|
19878
19883
|
|
|
19879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
19880
19885
|
var WEIGHT5 = 0.6;
|
|
19881
19886
|
var memberDialog = {
|
|
19882
19887
|
id: "member-dialog",
|
|
@@ -19909,7 +19914,7 @@ var memberDialog = {
|
|
|
19909
19914
|
}, "candidates")
|
|
19910
19915
|
};
|
|
19911
19916
|
|
|
19912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
19913
19918
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
19914
19919
|
var DEFAULT_PURPOSES = ["work"];
|
|
19915
19920
|
var LINK_PURPOSE = "work";
|
|
@@ -19917,13 +19922,13 @@ var BUILT_IN_PURPOSE_CONFIG = { purposes: BUILT_IN_PURPOSES, defaults: DEFAULT_P
|
|
|
19917
19922
|
var unknown2 = /* @__PURE__ */ __name((asked, config) => {
|
|
19918
19923
|
const wrong = asked.filter((one2) => !config.purposes.includes(one2));
|
|
19919
19924
|
if (wrong.length)
|
|
19920
|
-
throw new CliError("validation_error", `unknown purpose ${wrong.join(", ")}; the configured ones are ${config.purposes.join(", ")}, or all`, { param: "
|
|
19925
|
+
throw new CliError("validation_error", `unknown purpose ${wrong.join(", ")}; the configured ones are ${config.purposes.join(", ")}, or all`, { param: "purposes", purposes: [...config.purposes] });
|
|
19921
19926
|
}, "unknown");
|
|
19922
19927
|
var purposesOf = /* @__PURE__ */ __name((asked, config = BUILT_IN_PURPOSE_CONFIG, project) => {
|
|
19923
19928
|
const words4 = (asked ?? []).map((one2) => one2.trim()).filter(Boolean);
|
|
19924
19929
|
if (words4.includes("all")) {
|
|
19925
19930
|
if (words4.length > 1)
|
|
19926
|
-
throw new CliError("validation_error", "--
|
|
19931
|
+
throw new CliError("validation_error", "--purposes all reads every purpose; give it alone");
|
|
19927
19932
|
return "all";
|
|
19928
19933
|
}
|
|
19929
19934
|
if (words4.length) {
|
|
@@ -19939,7 +19944,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
19939
19944
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
19940
19945
|
], "purposeList");
|
|
19941
19946
|
|
|
19942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
19943
19948
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
19944
19949
|
async around(ref2, window2) {
|
|
19945
19950
|
const at = parseLocator(ref2);
|
|
@@ -20035,7 +20040,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
20035
20040
|
};
|
|
20036
20041
|
}, "storedNeighbours");
|
|
20037
20042
|
|
|
20038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20043
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
20039
20044
|
import { createHash as createHash2 } from "node:crypto";
|
|
20040
20045
|
var DAY2 = 864e5;
|
|
20041
20046
|
var MAX_TIME = 864e13;
|
|
@@ -20351,7 +20356,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
20351
20356
|
return value;
|
|
20352
20357
|
}, "decodeCheckpoint");
|
|
20353
20358
|
|
|
20354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
20355
20360
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
20356
20361
|
var PAGE = 20;
|
|
20357
20362
|
var PEOPLE = 20;
|
|
@@ -20755,7 +20760,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
20755
20760
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
20756
20761
|
}, "peopleOf");
|
|
20757
20762
|
|
|
20758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
20759
20764
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
20760
20765
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
20761
20766
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -20820,7 +20825,7 @@ var matchProjectCandidates = /* @__PURE__ */ __name((catalog, input) => matchVoc
|
|
|
20820
20825
|
omittedMatches: omitted
|
|
20821
20826
|
})), "matchProjectCandidates");
|
|
20822
20827
|
|
|
20823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
20824
20829
|
var KINDS = ["project", "tag", "topic"];
|
|
20825
20830
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
20826
20831
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -20875,7 +20880,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
20875
20880
|
};
|
|
20876
20881
|
}, "findEvidenceMentions");
|
|
20877
20882
|
|
|
20878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
20879
20884
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
20880
20885
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
20881
20886
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -21186,7 +21191,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
21186
21191
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
21187
21192
|
}, "purposeHintOf");
|
|
21188
21193
|
|
|
21189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
21190
21195
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
21191
21196
|
var PERSON_SCORERS = [emailDomain];
|
|
21192
21197
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -21442,18 +21447,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
21442
21447
|
}, "referenceOf");
|
|
21443
21448
|
var rejectedReversed = /* @__PURE__ */ __name(async (store, candidate) => candidate.kind === "related-to" && candidate.to.startsWith("person:") && ((await store.knowledge.relationState(null, { from: candidate.to, to: candidate.from, kind: candidate.kind }))?.rejected ?? false), "rejectedReversed");
|
|
21444
21449
|
|
|
21445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
21446
21451
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21447
21452
|
|
|
21448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21449
21454
|
import { lstat } from "node:fs/promises";
|
|
21450
21455
|
|
|
21451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21452
21457
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
21453
21458
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
21454
21459
|
import { join as join2 } from "node:path";
|
|
21455
21460
|
|
|
21456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
21457
21462
|
import { createHash as createHash3 } from "node:crypto";
|
|
21458
21463
|
var metadataLimit = 16384;
|
|
21459
21464
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -21513,7 +21518,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
21513
21518
|
}
|
|
21514
21519
|
}, "readPartialMetadata");
|
|
21515
21520
|
|
|
21516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
21517
21522
|
import { randomUUID } from "node:crypto";
|
|
21518
21523
|
import { open, rename, unlink } from "node:fs/promises";
|
|
21519
21524
|
import { join } from "node:path";
|
|
@@ -21605,7 +21610,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
21605
21610
|
};
|
|
21606
21611
|
}, "partialWriter");
|
|
21607
21612
|
|
|
21608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
21609
21614
|
var NativeRecordingPartialStore = class {
|
|
21610
21615
|
static {
|
|
21611
21616
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -21712,12 +21717,12 @@ var NativeRecordingPartialStore = class {
|
|
|
21712
21717
|
}
|
|
21713
21718
|
};
|
|
21714
21719
|
|
|
21715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21716
21721
|
import { createHash as createHash5 } from "node:crypto";
|
|
21717
21722
|
import { link } from "node:fs/promises";
|
|
21718
21723
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
21719
21724
|
|
|
21720
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
21721
21726
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
21722
21727
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
21723
21728
|
signal?.throwIfAborted();
|
|
@@ -21752,7 +21757,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
21752
21757
|
signal?.throwIfAborted();
|
|
21753
21758
|
}, "commitPublication");
|
|
21754
21759
|
|
|
21755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
21756
21761
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
21757
21762
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
21758
21763
|
import { join as join3 } from "node:path";
|
|
@@ -21825,7 +21830,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
21825
21830
|
}
|
|
21826
21831
|
}, "writePublicationJournal");
|
|
21827
21832
|
|
|
21828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
21829
21834
|
var NativeRecordingPublication = class {
|
|
21830
21835
|
static {
|
|
21831
21836
|
__name(this, "NativeRecordingPublication");
|
|
@@ -21898,7 +21903,7 @@ var NativeRecordingPublication = class {
|
|
|
21898
21903
|
}
|
|
21899
21904
|
};
|
|
21900
21905
|
|
|
21901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
21902
21907
|
import { createHash as createHash6 } from "node:crypto";
|
|
21903
21908
|
import { readdir } from "node:fs/promises";
|
|
21904
21909
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -21985,7 +21990,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
21985
21990
|
beforePublish
|
|
21986
21991
|
}), "commitMediaEntry");
|
|
21987
21992
|
|
|
21988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21993
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
21989
21994
|
var validator = '"media-completed-v1"';
|
|
21990
21995
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
21991
21996
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -22086,7 +22091,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
22086
22091
|
return entry;
|
|
22087
22092
|
}, "archiveMediaFile");
|
|
22088
22093
|
|
|
22089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
22090
22095
|
import { mkdir, realpath } from "node:fs/promises";
|
|
22091
22096
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
22092
22097
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -22153,7 +22158,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
22153
22158
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
22154
22159
|
}, "withMediaArchiveLocks");
|
|
22155
22160
|
|
|
22156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
22157
22162
|
var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
|
|
22158
22163
|
const found = readMoment(reference, flag, { ...at, now });
|
|
22159
22164
|
if (found === void 0)
|
|
@@ -22182,7 +22187,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
22182
22187
|
};
|
|
22183
22188
|
}, "dateWindow");
|
|
22184
22189
|
|
|
22185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
22186
22191
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
22187
22192
|
const entries = await readMediaManifests(root, signal);
|
|
22188
22193
|
if (!entries.length)
|
|
@@ -22325,7 +22330,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
22325
22330
|
}, { create: true });
|
|
22326
22331
|
}, "archiveMedia");
|
|
22327
22332
|
|
|
22328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
22329
22334
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
22330
22335
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
22331
22336
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -22476,7 +22481,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
22476
22481
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
22477
22482
|
}, "moveMediaArchive");
|
|
22478
22483
|
|
|
22479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
22480
22485
|
import { writeFileSync } from "node:fs";
|
|
22481
22486
|
import { join as join8 } from "node:path";
|
|
22482
22487
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -22501,7 +22506,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22501
22506
|
`);
|
|
22502
22507
|
await nativeRuntime({ env, progress });
|
|
22503
22508
|
progress(`${model.id}: loading it once to check it works`);
|
|
22504
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
22509
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-FUDUKQ3K.js");
|
|
22505
22510
|
const embedder = await openEmbedder2(model, directory2);
|
|
22506
22511
|
try {
|
|
22507
22512
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -22522,7 +22527,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
22522
22527
|
}
|
|
22523
22528
|
await nativeRuntime({ env, progress });
|
|
22524
22529
|
progress(`${model.id}: loading it once to check it works`);
|
|
22525
|
-
const { openReranker } = await import("./rerank-
|
|
22530
|
+
const { openReranker } = await import("./rerank-EE44ZTGL.js");
|
|
22526
22531
|
const reranker = await openReranker(model, directory2);
|
|
22527
22532
|
try {
|
|
22528
22533
|
await reranker.score("check", ["check"]);
|
|
@@ -22540,7 +22545,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22540
22545
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
22541
22546
|
}
|
|
22542
22547
|
progress(`${model.id}: loading it once to check it works`);
|
|
22543
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
22548
|
+
const { openPictureEmbedder } = await import("./embedder-HDRV7GX3.js");
|
|
22544
22549
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
22545
22550
|
try {
|
|
22546
22551
|
const vector = await embedder.embedQuery("check");
|
|
@@ -22552,7 +22557,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
22552
22557
|
return { model, directory: directory2 };
|
|
22553
22558
|
}, "downloadImageModel");
|
|
22554
22559
|
|
|
22555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
22556
22561
|
var MONEY_REQUEST = "money-request";
|
|
22557
22562
|
var MONEY_DONE = "money-done";
|
|
22558
22563
|
var PROMISE = "promise";
|
|
@@ -22586,10 +22591,10 @@ var MONEY_WORDS = [
|
|
|
22586
22591
|
}
|
|
22587
22592
|
];
|
|
22588
22593
|
|
|
22589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
22590
22595
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
22591
22596
|
|
|
22592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
22593
22598
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
22594
22599
|
var MONEY_DONE_FORMS = words2([
|
|
22595
22600
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -22629,7 +22634,7 @@ var PROMISE_FORMS = words2([
|
|
|
22629
22634
|
"estar\xE1 listo"
|
|
22630
22635
|
]);
|
|
22631
22636
|
|
|
22632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
22633
22638
|
var EXCERPT_CHARS = 80;
|
|
22634
22639
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
22635
22640
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22651,7 +22656,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
22651
22656
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
22652
22657
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
22653
22658
|
|
|
22654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
22655
22660
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
22656
22661
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
22657
22662
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -22732,7 +22737,7 @@ var amounts = {
|
|
|
22732
22737
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
22733
22738
|
};
|
|
22734
22739
|
|
|
22735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
22736
22741
|
var children = {
|
|
22737
22742
|
id: "children",
|
|
22738
22743
|
version: 1,
|
|
@@ -22761,7 +22766,7 @@ var children = {
|
|
|
22761
22766
|
}, "read")
|
|
22762
22767
|
};
|
|
22763
22768
|
|
|
22764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
22765
22770
|
var coverage = {
|
|
22766
22771
|
id: "coverage",
|
|
22767
22772
|
version: 1,
|
|
@@ -22790,7 +22795,7 @@ var coverage = {
|
|
|
22790
22795
|
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")
|
|
22791
22796
|
};
|
|
22792
22797
|
|
|
22793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
22794
22799
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
22795
22800
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
22796
22801
|
signal: "payments",
|
|
@@ -22840,7 +22845,7 @@ var payments = {
|
|
|
22840
22845
|
}, "read")
|
|
22841
22846
|
};
|
|
22842
22847
|
|
|
22843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
22844
22849
|
var PATTERNS_PER_CHAT = 3;
|
|
22845
22850
|
var DAY3 = 864e5;
|
|
22846
22851
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -22929,7 +22934,7 @@ var promises = {
|
|
|
22929
22934
|
}, "read")
|
|
22930
22935
|
};
|
|
22931
22936
|
|
|
22932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
22933
22938
|
var PER_SIDE = 5;
|
|
22934
22939
|
var WEEK = 7 * 864e5;
|
|
22935
22940
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -22960,7 +22965,7 @@ var questions2 = {
|
|
|
22960
22965
|
}, "attention")
|
|
22961
22966
|
};
|
|
22962
22967
|
|
|
22963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
22964
22969
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
22965
22970
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
22966
22971
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -23028,7 +23033,7 @@ var replyNext = {
|
|
|
23028
23033
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
23029
23034
|
};
|
|
23030
23035
|
|
|
23031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
23032
23037
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
23033
23038
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
23034
23039
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -23074,7 +23079,7 @@ var topics = {
|
|
|
23074
23079
|
}, "read")
|
|
23075
23080
|
};
|
|
23076
23081
|
|
|
23077
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
23078
23083
|
var STATUS_SIGNALS = [
|
|
23079
23084
|
replyNext,
|
|
23080
23085
|
questions2,
|
|
@@ -23086,7 +23091,7 @@ var STATUS_SIGNALS = [
|
|
|
23086
23091
|
children
|
|
23087
23092
|
];
|
|
23088
23093
|
|
|
23089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
23090
23095
|
var DAY4 = 864e5;
|
|
23091
23096
|
var STATUS_WINDOW = 300;
|
|
23092
23097
|
var STATUS_CHATS = 16;
|
|
@@ -23275,7 +23280,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23275
23280
|
};
|
|
23276
23281
|
}, "projectStatus");
|
|
23277
23282
|
|
|
23278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/project-activity.js
|
|
23279
23284
|
var TOP = 3;
|
|
23280
23285
|
var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
23281
23286
|
const until = input.until ?? Date.now();
|
|
@@ -23337,7 +23342,7 @@ var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23337
23342
|
}, "projectActivity");
|
|
23338
23343
|
var refOf = /* @__PURE__ */ __name((chat) => formatReference({ type: "chat", provider: chat.provider, account: chat.account, chat: chat.chat }), "refOf");
|
|
23339
23344
|
|
|
23340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
23341
23346
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
23342
23347
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
23343
23348
|
if (deps.offline)
|
|
@@ -23409,7 +23414,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
23409
23414
|
};
|
|
23410
23415
|
}, "accountService");
|
|
23411
23416
|
|
|
23412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
23413
23418
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
23414
23419
|
const at = aheadOf(value, flag, now, {
|
|
23415
23420
|
...zone === void 0 ? {} : { zone },
|
|
@@ -23420,7 +23425,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
23420
23425
|
return new Date(at - at % MINUTE).toISOString();
|
|
23421
23426
|
}, "sendTime");
|
|
23422
23427
|
|
|
23423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
23424
23429
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
23425
23430
|
try {
|
|
23426
23431
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -23667,7 +23672,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
23667
23672
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
23668
23673
|
}, "linkLimits");
|
|
23669
23674
|
|
|
23670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
23671
23676
|
var THREADS_PAGE = 500;
|
|
23672
23677
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
23673
23678
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -23742,7 +23747,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
23742
23747
|
return thread.slice(Math.max(0, at - before), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
23743
23748
|
}, "readMail");
|
|
23744
23749
|
|
|
23745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
23746
23751
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
23747
23752
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
23748
23753
|
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");
|
|
@@ -24109,7 +24114,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
24109
24114
|
};
|
|
24110
24115
|
}, "statsLucene");
|
|
24111
24116
|
|
|
24112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
24113
24118
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
24114
24119
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
24115
24120
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -24278,7 +24283,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
24278
24283
|
};
|
|
24279
24284
|
}, "readRankingSelection");
|
|
24280
24285
|
|
|
24281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
24282
24287
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one2) => canonical(one2, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one2]) => one2 !== void 0 && (nested || one2 !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one2]) => [key, canonical(one2, true)])) : value, "canonical");
|
|
24283
24288
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
24284
24289
|
command,
|
|
@@ -24288,7 +24293,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
24288
24293
|
fieldsVersion: FIELD_VERSION
|
|
24289
24294
|
}), "searchRecordOf");
|
|
24290
24295
|
|
|
24291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
24292
24297
|
function invalid2(message) {
|
|
24293
24298
|
throw new CliError("validation_error", message);
|
|
24294
24299
|
}
|
|
@@ -24582,10 +24587,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
24582
24587
|
}, "evidence")
|
|
24583
24588
|
}), "adminStatisticsService");
|
|
24584
24589
|
|
|
24585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
24586
24591
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
24587
24592
|
|
|
24588
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
24589
24594
|
var REQUEST_MS = 400;
|
|
24590
24595
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
24591
24596
|
const lowest = ranges[0];
|
|
@@ -24608,13 +24613,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
24608
24613
|
};
|
|
24609
24614
|
}, "estimateBackfill");
|
|
24610
24615
|
|
|
24611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
24612
24617
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
24613
24618
|
...error,
|
|
24614
24619
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
24615
24620
|
}), "withRecovery");
|
|
24616
24621
|
|
|
24617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
24618
24623
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
24619
24624
|
if (isCliFailure(error))
|
|
24620
24625
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -24697,7 +24702,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
24697
24702
|
};
|
|
24698
24703
|
}, "mergeBatches");
|
|
24699
24704
|
|
|
24700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
24701
24706
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
24702
24707
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
24703
24708
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -24720,7 +24725,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
24720
24725
|
}
|
|
24721
24726
|
}, "patiently");
|
|
24722
24727
|
|
|
24723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24728
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
24724
24729
|
var RULES_VERSION = 5;
|
|
24725
24730
|
var LOOK_BACK = 50;
|
|
24726
24731
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -24810,7 +24815,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
24810
24815
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
24811
24816
|
var link2 = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
24812
24817
|
|
|
24813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
24814
24819
|
var CONTEXT_MESSAGES = 3;
|
|
24815
24820
|
var CONTEXT_MINUTES = 10;
|
|
24816
24821
|
var MAX_CHARS = 1200;
|
|
@@ -24834,12 +24839,12 @@ var context = {
|
|
|
24834
24839
|
}, "describe")
|
|
24835
24840
|
};
|
|
24836
24841
|
|
|
24837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
24838
24843
|
var BUILT_INS = [context];
|
|
24839
24844
|
var providers = [...BUILT_INS];
|
|
24840
24845
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
24841
24846
|
|
|
24842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
24843
24848
|
var READ_PAGE = 5e3;
|
|
24844
24849
|
var CHAIN = 50;
|
|
24845
24850
|
var CONVERSATION_QUERY = {
|
|
@@ -24991,7 +24996,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
24991
24996
|
return size4;
|
|
24992
24997
|
}, "sized");
|
|
24993
24998
|
|
|
24994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
24995
25000
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
24996
25001
|
var MESSAGE_PAGE = 5e3;
|
|
24997
25002
|
var PER_SESSION = 8;
|
|
@@ -25010,7 +25015,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25010
25015
|
price: remote.price,
|
|
25011
25016
|
installed: true,
|
|
25012
25017
|
perBatch: PER_REQUEST * concurrency,
|
|
25013
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
25018
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-PSOJXCXO.js")).openRemote(remote, apiKey, {
|
|
25014
25019
|
concurrency,
|
|
25015
25020
|
env: deps.env ?? process.env
|
|
25016
25021
|
}), "open")
|
|
@@ -25030,7 +25035,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
25030
25035
|
if (!isTextModelInstalled(model, directory2))
|
|
25031
25036
|
throw notDownloaded(model.id);
|
|
25032
25037
|
if (apart) {
|
|
25033
|
-
const { openProcess } = await import("./process-
|
|
25038
|
+
const { openProcess } = await import("./process-SIOWTRJ6.js");
|
|
25034
25039
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
25035
25040
|
}
|
|
25036
25041
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -25319,7 +25324,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
25319
25324
|
return { ...one2, state };
|
|
25320
25325
|
}, "shaped");
|
|
25321
25326
|
|
|
25322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
25323
25328
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
25324
25329
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
25325
25330
|
for (const [key, value, maximum] of [
|
|
@@ -25372,7 +25377,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
25372
25377
|
}
|
|
25373
25378
|
}, "catchUpSearch");
|
|
25374
25379
|
|
|
25375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
25376
25381
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
25377
25382
|
if (deps.reads === "store") {
|
|
25378
25383
|
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`);
|
|
@@ -25753,7 +25758,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
25753
25758
|
return message?.timestamp ?? fallback;
|
|
25754
25759
|
}, "timeOfKey");
|
|
25755
25760
|
|
|
25756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
25757
25762
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
25758
25763
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
25759
25764
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -25890,16 +25895,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
25890
25895
|
return { plan, repair };
|
|
25891
25896
|
}, "gapsService");
|
|
25892
25897
|
|
|
25893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
25894
25899
|
import { createHash as createHash10 } from "node:crypto";
|
|
25895
25900
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
25896
25901
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
25897
25902
|
|
|
25898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
25899
25904
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
25900
25905
|
import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
25901
25906
|
|
|
25902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
25903
25908
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
25904
25909
|
import { open as open4, stat } from "node:fs/promises";
|
|
25905
25910
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -25980,15 +25985,15 @@ var CREDENTIAL_RUNS = [
|
|
|
25980
25985
|
["AppData", "Roaming", "GitHub CLI"]
|
|
25981
25986
|
];
|
|
25982
25987
|
var WIRECAT_APPS = [
|
|
25983
|
-
{ appName
|
|
25984
|
-
{ appName: "
|
|
25985
|
-
{ appName: "
|
|
25986
|
-
{ appName: "cli-memo", prefix: "MEMO" },
|
|
25987
|
-
{ appName: "drive-cli", prefix: "DRIVE" },
|
|
25988
|
+
...WIRECAT_TOOLS.map(({ appName, envPrefix }) => ({ appName, prefix: envPrefix })),
|
|
25989
|
+
{ appName: "amo-cli", prefix: "AMO" },
|
|
25990
|
+
{ appName: "beeline-cli", prefix: "BEELINE" },
|
|
25988
25991
|
{ appName: "zm", prefix: "ZM" },
|
|
25989
25992
|
{ appName: "cli-messaging", prefix: "MESSAGING" },
|
|
25990
25993
|
{ appName: "cli-common", prefix: "CLI_COMMON" }
|
|
25991
25994
|
];
|
|
25995
|
+
var SYSTEM_ROOTS = ["/proc", "/sys", "/dev"];
|
|
25996
|
+
var systemPlace = /* @__PURE__ */ __name((path, platform) => platform !== "win32" && SYSTEM_ROOTS.some((root) => inside(path, root)), "systemPlace");
|
|
25992
25997
|
var realPathOf = /* @__PURE__ */ __name((path) => {
|
|
25993
25998
|
let ancestor = resolve5(path);
|
|
25994
25999
|
for (; ; ) {
|
|
@@ -26030,7 +26035,7 @@ var refusedPlace = /* @__PURE__ */ __name((path, app, env, platform = process.pl
|
|
|
26030
26035
|
return names2.some((name, index) => parts.has(name) || /^\.env\./.test(name) || runs.some((run2) => run2.every((part, offset) => names2[index + offset] === part)));
|
|
26031
26036
|
}, "named");
|
|
26032
26037
|
const same2 = /* @__PURE__ */ __name((a, b) => fold2(a) === fold2(b), "same");
|
|
26033
|
-
return [resolve5(path), real].some((candidate) => named3(candidate) || own.some((dir) => inside(fold2(candidate), fold2(dir))) || [store, `${store}-wal`, `${store}-shm`].some((file2) => same2(candidate, file2)));
|
|
26038
|
+
return [resolve5(path), real].some((candidate) => systemPlace(candidate, platform) || named3(candidate) || own.some((dir) => inside(fold2(candidate), fold2(dir))) || [store, `${store}-wal`, `${store}-shm`].some((file2) => same2(candidate, file2)));
|
|
26034
26039
|
}, "refusedPlace");
|
|
26035
26040
|
var inside = /* @__PURE__ */ __name((path, dir) => {
|
|
26036
26041
|
const way = relative(resolve5(dir), path);
|
|
@@ -26047,6 +26052,9 @@ var readUpload = /* @__PURE__ */ __name(async (kind, path, { app, env = process.
|
|
|
26047
26052
|
if (kind === "voice" && !VOICE.has(extension)) {
|
|
26048
26053
|
throw new CliError("validation_error", `a voice message is Ogg Opus: .ogg, .oga or .opus \u2014 send ${path} as a file`);
|
|
26049
26054
|
}
|
|
26055
|
+
if ([resolve5(path), realPathOf(path)].some((candidate) => systemPlace(candidate, process.platform))) {
|
|
26056
|
+
throw new CliError("validation_error", `cannot send ${path}: a file under /proc, /sys or /dev is never sent`);
|
|
26057
|
+
}
|
|
26050
26058
|
if (!anyFile && refusedPlace(path, app, env)) {
|
|
26051
26059
|
throw new CliError("validation_error", `cannot send ${path}: known credential files, browser profiles, the WireCat apps' folders and the message store are not sent \u2014 the owner adds --allow-any-file to the command if this file is meant to go`);
|
|
26052
26060
|
}
|
|
@@ -26113,7 +26121,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read2) => {
|
|
|
26113
26121
|
return { name, source };
|
|
26114
26122
|
}, "readStickerFile");
|
|
26115
26123
|
|
|
26116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26124
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
26117
26125
|
var MAX_FILES = 1e4;
|
|
26118
26126
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app, env) => {
|
|
26119
26127
|
if (refusedPlace(directory2, app, env))
|
|
@@ -26182,15 +26190,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
26182
26190
|
return choices;
|
|
26183
26191
|
}, "directoryPaths");
|
|
26184
26192
|
|
|
26185
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26186
26194
|
import { posix } from "node:path";
|
|
26187
26195
|
|
|
26188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26189
26197
|
import { setImmediate as tick } from "node:timers/promises";
|
|
26190
26198
|
import { crc32 } from "node:zlib";
|
|
26191
26199
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
26192
26200
|
|
|
26193
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
26194
26202
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
26195
26203
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
26196
26204
|
var SAMPLE = 65536;
|
|
@@ -26292,7 +26300,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
26292
26300
|
return result.text;
|
|
26293
26301
|
}, "decodeXml");
|
|
26294
26302
|
|
|
26295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
26296
26304
|
var MAX_PART = 10 * 1024 * 1024;
|
|
26297
26305
|
var MAX_ENTRIES = 1e3;
|
|
26298
26306
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -26507,7 +26515,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
26507
26515
|
return found;
|
|
26508
26516
|
}, "elements");
|
|
26509
26517
|
|
|
26510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
26511
26519
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
26512
26520
|
let name = "";
|
|
26513
26521
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -26562,7 +26570,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
26562
26570
|
return { text: parts.join("").trim(), truncated: false };
|
|
26563
26571
|
}, "sheetText");
|
|
26564
26572
|
|
|
26565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
26566
26574
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
26567
26575
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
26568
26576
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -26962,10 +26970,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
26962
26970
|
}
|
|
26963
26971
|
}, "readDocument");
|
|
26964
26972
|
|
|
26965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
26966
26974
|
import { extname as extname3 } from "node:path";
|
|
26967
26975
|
|
|
26968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
26969
26977
|
import { readFileSync } from "node:fs";
|
|
26970
26978
|
import { dirname as dirname4, extname as extname2, join as join10 } from "node:path";
|
|
26971
26979
|
import { fileURLToPath } from "node:url";
|
|
@@ -27026,7 +27034,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
27026
27034
|
}
|
|
27027
27035
|
}, "derived");
|
|
27028
27036
|
|
|
27029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
27030
27038
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
27031
27039
|
var image2 = {
|
|
27032
27040
|
id: "image",
|
|
@@ -27035,7 +27043,7 @@ var image2 = {
|
|
|
27035
27043
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
27036
27044
|
};
|
|
27037
27045
|
|
|
27038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
27039
27047
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
27040
27048
|
var doc = {
|
|
27041
27049
|
id: "doc",
|
|
@@ -27047,7 +27055,7 @@ var doc = {
|
|
|
27047
27055
|
}), "read")
|
|
27048
27056
|
};
|
|
27049
27057
|
|
|
27050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
27051
27059
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
27052
27060
|
var docx = {
|
|
27053
27061
|
id: "docx",
|
|
@@ -27060,10 +27068,10 @@ var docx = {
|
|
|
27060
27068
|
}), "read")
|
|
27061
27069
|
};
|
|
27062
27070
|
|
|
27063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27064
27072
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
27065
27073
|
|
|
27066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27074
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
27067
27075
|
var NAMED2 = {
|
|
27068
27076
|
amp: "&",
|
|
27069
27077
|
lt: "<",
|
|
@@ -27115,7 +27123,7 @@ var decodeEntities = /* @__PURE__ */ __name((text2) => text2.replace(/&(#x[0-9a-
|
|
|
27115
27123
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity) : character(Number(body.slice(1)), entity);
|
|
27116
27124
|
}), "decodeEntities");
|
|
27117
27125
|
|
|
27118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
27119
27127
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
27120
27128
|
"fonttbl",
|
|
27121
27129
|
"colortbl",
|
|
@@ -27281,7 +27289,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
27281
27289
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
27282
27290
|
}, "htmlText");
|
|
27283
27291
|
|
|
27284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
27285
27293
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
27286
27294
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
27287
27295
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -27337,7 +27345,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
27337
27345
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
27338
27346
|
}, "markdownSections");
|
|
27339
27347
|
|
|
27340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
27341
27349
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
27342
27350
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
27343
27351
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -27408,7 +27416,7 @@ var html = {
|
|
|
27408
27416
|
}, "read")
|
|
27409
27417
|
};
|
|
27410
27418
|
|
|
27411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
27412
27420
|
var office = {
|
|
27413
27421
|
id: "office",
|
|
27414
27422
|
version: documentExtractor("odt"),
|
|
@@ -27419,7 +27427,7 @@ var office = {
|
|
|
27419
27427
|
}, "read")
|
|
27420
27428
|
};
|
|
27421
27429
|
|
|
27422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
27423
27431
|
var pdf = {
|
|
27424
27432
|
id: "pdf",
|
|
27425
27433
|
version: "unpdf",
|
|
@@ -27486,7 +27494,7 @@ var pdf = {
|
|
|
27486
27494
|
}), "read")
|
|
27487
27495
|
};
|
|
27488
27496
|
|
|
27489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
27490
27498
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
27491
27499
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
27492
27500
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -27506,7 +27514,7 @@ var plain = {
|
|
|
27506
27514
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
27507
27515
|
};
|
|
27508
27516
|
|
|
27509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
27510
27518
|
var rtf = {
|
|
27511
27519
|
id: "rtf",
|
|
27512
27520
|
version: "v1",
|
|
@@ -27514,10 +27522,10 @@ var rtf = {
|
|
|
27514
27522
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
27515
27523
|
};
|
|
27516
27524
|
|
|
27517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27518
27526
|
import { basename as basename5 } from "node:path";
|
|
27519
27527
|
|
|
27520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
27521
27529
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
27522
27530
|
const cells = [];
|
|
27523
27531
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -27555,7 +27563,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
27555
27563
|
return { cells, truncated };
|
|
27556
27564
|
}, "delimitedSpans");
|
|
27557
27565
|
|
|
27558
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
27559
27567
|
var DELIMITED = {
|
|
27560
27568
|
".csv": ",",
|
|
27561
27569
|
".tsv": " ",
|
|
@@ -27594,7 +27602,7 @@ var sheets = {
|
|
|
27594
27602
|
}, "read")
|
|
27595
27603
|
};
|
|
27596
27604
|
|
|
27597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
27598
27606
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
27599
27607
|
var HEAD_BYTES = 1024;
|
|
27600
27608
|
var readers = [...BUILT_INS2];
|
|
@@ -27604,7 +27612,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
27604
27612
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
27605
27613
|
}, "readWithRegistry");
|
|
27606
27614
|
|
|
27607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
27608
27616
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
27609
27617
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
27610
27618
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -28683,7 +28691,7 @@ function imageSize(input) {
|
|
|
28683
28691
|
}
|
|
28684
28692
|
__name(imageSize, "imageSize");
|
|
28685
28693
|
|
|
28686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
28687
28695
|
var MAX_PAGES = 20;
|
|
28688
28696
|
var MAX_PIXELS = 2e7;
|
|
28689
28697
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -28843,7 +28851,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
28843
28851
|
}
|
|
28844
28852
|
}, "ocrPdf");
|
|
28845
28853
|
|
|
28846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
28847
28855
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
28848
28856
|
const limits = pdfPreviewLimits(env);
|
|
28849
28857
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -28920,7 +28928,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
28920
28928
|
}
|
|
28921
28929
|
}, "pdfPreview");
|
|
28922
28930
|
|
|
28923
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
28924
28932
|
import { spawn } from "node:child_process";
|
|
28925
28933
|
import { mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
28926
28934
|
import { tmpdir } from "node:os";
|
|
@@ -29083,7 +29091,7 @@ Read the attached picture.`,
|
|
|
29083
29091
|
}
|
|
29084
29092
|
}, "readPictureWithAgent");
|
|
29085
29093
|
|
|
29086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
29087
29095
|
import { createHash as createHash8 } from "node:crypto";
|
|
29088
29096
|
import { constants } from "node:fs";
|
|
29089
29097
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -29191,7 +29199,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
29191
29199
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
29192
29200
|
}, "transferMime");
|
|
29193
29201
|
|
|
29194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
29195
29203
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
29196
29204
|
import { link as link3, rm } from "node:fs/promises";
|
|
29197
29205
|
import { join as join12, resolve as resolve6 } from "node:path";
|
|
@@ -29305,12 +29313,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
29305
29313
|
}
|
|
29306
29314
|
}, "save");
|
|
29307
29315
|
|
|
29308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
29309
29317
|
import { createHash as createHash9 } from "node:crypto";
|
|
29310
29318
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
29311
29319
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
29312
29320
|
|
|
29313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
29314
29322
|
var GROUP_SETTINGS = [
|
|
29315
29323
|
"allCanPin",
|
|
29316
29324
|
"onlyAdminsAdd",
|
|
@@ -29324,7 +29332,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
29324
29332
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
29325
29333
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
29326
29334
|
|
|
29327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
29328
29336
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
29329
29337
|
var PICTURE_FLOOR = 0.25;
|
|
29330
29338
|
var PAGE3 = 50;
|
|
@@ -29365,7 +29373,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
29365
29373
|
const directory2 = imageModelsDirectory(deps.env);
|
|
29366
29374
|
if (!isImageModelInstalled(model2, directory2))
|
|
29367
29375
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
29368
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
29376
|
+
const { openPictureEmbedder } = await import("./embedder-HDRV7GX3.js");
|
|
29369
29377
|
return openPictureEmbedder(model2, directory2);
|
|
29370
29378
|
}, "open");
|
|
29371
29379
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -29539,7 +29547,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
29539
29547
|
}, "search")
|
|
29540
29548
|
}), "withPictures");
|
|
29541
29549
|
|
|
29542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
29543
29551
|
var ATTACHMENT_QUERY = {
|
|
29544
29552
|
entity: "attachment",
|
|
29545
29553
|
backend: "sql",
|
|
@@ -30010,7 +30018,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30010
30018
|
}, "readPicture")
|
|
30011
30019
|
}), "attachmentsService");
|
|
30012
30020
|
|
|
30013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30014
30022
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30015
30023
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref: ref2 }) => {
|
|
30016
30024
|
const store = await accountStore(deps);
|
|
@@ -30040,7 +30048,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30040
30048
|
}, "list")
|
|
30041
30049
|
}), "chatDocumentsService");
|
|
30042
30050
|
|
|
30043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30044
30052
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30045
30053
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30046
30054
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30127,7 +30135,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30127
30135
|
}
|
|
30128
30136
|
}, "isRetentionSelection");
|
|
30129
30137
|
|
|
30130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30131
30139
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30132
30140
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
30133
30141
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -30334,7 +30342,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30334
30342
|
};
|
|
30335
30343
|
}, "countersService");
|
|
30336
30344
|
|
|
30337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30338
30346
|
var SYNC_KEY = "messages.sync-first";
|
|
30339
30347
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30340
30348
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -30466,7 +30474,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
30466
30474
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
30467
30475
|
}), "withRefresh");
|
|
30468
30476
|
|
|
30469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
30470
30478
|
var CANDIDATES = 50;
|
|
30471
30479
|
var WORD_HITS = 200;
|
|
30472
30480
|
var RRF_K2 = 60;
|
|
@@ -30764,13 +30772,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
30764
30772
|
return mean2.map((value) => value / length);
|
|
30765
30773
|
}, "meanOf");
|
|
30766
30774
|
|
|
30767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
30768
30776
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
30769
30777
|
...embeddingsMaintenance(deps),
|
|
30770
30778
|
...embeddingsSearch(deps)
|
|
30771
30779
|
}), "embeddingsService");
|
|
30772
30780
|
|
|
30773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
30774
30782
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
30775
30783
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
30776
30784
|
if (deps.offline)
|
|
@@ -30911,7 +30919,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30911
30919
|
};
|
|
30912
30920
|
}, "foldersService");
|
|
30913
30921
|
|
|
30914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
30915
30923
|
var INBOX_CHATS = 20;
|
|
30916
30924
|
var REVIEW_DAYS = 3;
|
|
30917
30925
|
var UNANSWERED_HOURS = 24;
|
|
@@ -31119,7 +31127,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
31119
31127
|
};
|
|
31120
31128
|
}, "inboxService");
|
|
31121
31129
|
|
|
31122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31123
31131
|
var REVIEW_COUNT = 500;
|
|
31124
31132
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31125
31133
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31198,7 +31206,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31198
31206
|
};
|
|
31199
31207
|
}, "mentionsService");
|
|
31200
31208
|
|
|
31201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
31202
31210
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
31203
31211
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
31204
31212
|
const { text: text2, spans } = formatted2;
|
|
@@ -31258,7 +31266,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
31258
31266
|
};
|
|
31259
31267
|
}, "visibleFormattedText");
|
|
31260
31268
|
|
|
31261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31262
31270
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31263
31271
|
position,
|
|
31264
31272
|
kind,
|
|
@@ -31307,7 +31315,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31307
31315
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31308
31316
|
}, "validatePermalink");
|
|
31309
31317
|
|
|
31310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31311
31319
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31312
31320
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31313
31321
|
return `${seconds / 86400}d`;
|
|
@@ -31339,7 +31347,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31339
31347
|
return seconds;
|
|
31340
31348
|
}, "pinDurationOf");
|
|
31341
31349
|
|
|
31342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31343
31351
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31344
31352
|
if (sendAs === void 0) {
|
|
31345
31353
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31364,7 +31372,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31364
31372
|
return sendAs;
|
|
31365
31373
|
}, "typedSendAs");
|
|
31366
31374
|
|
|
31367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31368
31376
|
var TOTAL_CAP = 1e4;
|
|
31369
31377
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31370
31378
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31375,7 +31383,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31375
31383
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31376
31384
|
}, "totalOf");
|
|
31377
31385
|
|
|
31378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31379
31387
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31380
31388
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31381
31389
|
let narrows = false;
|
|
@@ -31404,7 +31412,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31404
31412
|
return wanted(root).join(" ").trim();
|
|
31405
31413
|
}, "meaningWords");
|
|
31406
31414
|
|
|
31407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31408
31416
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31409
31417
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31410
31418
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -31605,7 +31613,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
31605
31613
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
31606
31614
|
}, "signals");
|
|
31607
31615
|
|
|
31608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
31609
31617
|
var MEANING_DEPTH = 100;
|
|
31610
31618
|
var RRF_K3 = 60;
|
|
31611
31619
|
var RERANK_DEPTH = 50;
|
|
@@ -31931,7 +31939,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
31931
31939
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
31932
31940
|
}, "mixedWithReranker");
|
|
31933
31941
|
|
|
31934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
31935
31943
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
31936
31944
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
31937
31945
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -32130,7 +32138,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32130
32138
|
return result;
|
|
32131
32139
|
}, "readThreadContext");
|
|
32132
32140
|
|
|
32133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32134
32142
|
var SEARCH_FILL_MS = 200;
|
|
32135
32143
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32136
32144
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32199,7 +32207,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32199
32207
|
}, "accountOf");
|
|
32200
32208
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32201
32209
|
|
|
32202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
32203
32211
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
32204
32212
|
const chosen = chosenTextModel(env);
|
|
32205
32213
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -32214,7 +32222,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
32214
32222
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
32215
32223
|
}, "meaningModel");
|
|
32216
32224
|
|
|
32217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32218
32226
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
32219
32227
|
try {
|
|
32220
32228
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -32293,7 +32301,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32293
32301
|
}
|
|
32294
32302
|
}, "meaningLane");
|
|
32295
32303
|
|
|
32296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32297
32305
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32298
32306
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32299
32307
|
if (choice === "off")
|
|
@@ -32305,9 +32313,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32305
32313
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32306
32314
|
try {
|
|
32307
32315
|
const warm = deps.embedders;
|
|
32308
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32316
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-SIOWTRJ6.js")).openRerankerProcess(model, directory2, {
|
|
32309
32317
|
threads: defaultThreads()
|
|
32310
|
-
})) : await (await import("./rerank-
|
|
32318
|
+
})) : await (await import("./rerank-EE44ZTGL.js")).openReranker(model, directory2);
|
|
32311
32319
|
return {
|
|
32312
32320
|
model: model.id,
|
|
32313
32321
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32327,7 +32335,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32327
32335
|
};
|
|
32328
32336
|
}, "rerankLane");
|
|
32329
32337
|
|
|
32330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
32331
32339
|
var DAY5 = 864e5;
|
|
32332
32340
|
var SPAN = { start: 0, end: 0 };
|
|
32333
32341
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -32452,7 +32460,7 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
32452
32460
|
};
|
|
32453
32461
|
}, "questionPeriod");
|
|
32454
32462
|
|
|
32455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
32456
32464
|
import { createHash as createHash11 } from "node:crypto";
|
|
32457
32465
|
var refOf2 = /* @__PURE__ */ __name((target2) => target2.ref ?? `document:${target2.documentId}`, "refOf");
|
|
32458
32466
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
@@ -32460,7 +32468,7 @@ var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}
|
|
|
32460
32468
|
const directory2 = imageModelsDirectory(env);
|
|
32461
32469
|
if (!isImageModelInstalled(model, directory2))
|
|
32462
32470
|
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 });
|
|
32463
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32471
|
+
const { openPictureEmbedder } = await import("./embedder-HDRV7GX3.js");
|
|
32464
32472
|
return openPictureEmbedder(model, directory2);
|
|
32465
32473
|
}, "openPictureEmbedderFor");
|
|
32466
32474
|
var savePicture = /* @__PURE__ */ __name(async (store, target2, bytes2, options2 = {}) => {
|
|
@@ -32481,7 +32489,7 @@ var savePicture = /* @__PURE__ */ __name(async (store, target2, bytes2, options2
|
|
|
32481
32489
|
}, "savePicture");
|
|
32482
32490
|
var removePicture = /* @__PURE__ */ __name((store, target2) => store.notes.removePicture(refOf2(target2)), "removePicture");
|
|
32483
32491
|
|
|
32484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
32485
32493
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
32486
32494
|
const metadata = note.frontMatter;
|
|
32487
32495
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -32503,7 +32511,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
32503
32511
|
};
|
|
32504
32512
|
}, "documentSource");
|
|
32505
32513
|
|
|
32506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
32507
32515
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
32508
32516
|
const host = new URL(baseUrl).host;
|
|
32509
32517
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -32536,7 +32544,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
32536
32544
|
};
|
|
32537
32545
|
}, "embeddingKeys");
|
|
32538
32546
|
|
|
32539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
32540
32548
|
var options = strictObject({
|
|
32541
32549
|
temperature: range(0, 2),
|
|
32542
32550
|
top_p: range(0, 1),
|
|
@@ -32603,7 +32611,7 @@ var openai = {
|
|
|
32603
32611
|
}), "complete")
|
|
32604
32612
|
};
|
|
32605
32613
|
|
|
32606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
32607
32615
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
32608
32616
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
32609
32617
|
if (deps.signal?.aborted)
|
|
@@ -32618,7 +32626,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
32618
32626
|
if (!adapter && target2.provider === "openai")
|
|
32619
32627
|
adapter = openai;
|
|
32620
32628
|
if (!adapter && target2.provider === "anthropic")
|
|
32621
|
-
adapter = (await import("./anthropic-
|
|
32629
|
+
adapter = (await import("./anthropic-OXF74J4P.js")).anthropic;
|
|
32622
32630
|
if (!adapter)
|
|
32623
32631
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
32624
32632
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -32678,7 +32686,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
32678
32686
|
}, "complete")
|
|
32679
32687
|
}), "modelGateway");
|
|
32680
32688
|
|
|
32681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
32682
32690
|
var SECTION2 = "enrichment";
|
|
32683
32691
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
32684
32692
|
var DEFAULT_BASE_URLS = {
|
|
@@ -32753,7 +32761,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting2) => {
|
|
|
32753
32761
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
32754
32762
|
}, "costOf");
|
|
32755
32763
|
|
|
32756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
32757
32765
|
var ENRICH_PER_RUN = 600;
|
|
32758
32766
|
var BATCH = 20;
|
|
32759
32767
|
var CONCURRENCY = 4;
|
|
@@ -33017,7 +33025,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
33017
33025
|
};
|
|
33018
33026
|
}, "enrichmentState");
|
|
33019
33027
|
|
|
33020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33021
33029
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33022
33030
|
let root;
|
|
33023
33031
|
try {
|
|
@@ -33044,7 +33052,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
33044
33052
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33045
33053
|
}, "titleTiers");
|
|
33046
33054
|
|
|
33047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33048
33056
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33049
33057
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33050
33058
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33108,14 +33116,29 @@ var withLocal = /* @__PURE__ */ __name(async (model, directory2, threads, work,
|
|
|
33108
33116
|
await embedder.close();
|
|
33109
33117
|
}
|
|
33110
33118
|
}, "withLocal");
|
|
33111
|
-
var
|
|
33119
|
+
var stopsAt = /* @__PURE__ */ __name((deadline) => deadline ? deadline.endsAt - deadlineMargin(deadline) : Number.POSITIVE_INFINITY, "stopsAt");
|
|
33120
|
+
var embedChunks = /* @__PURE__ */ __name(async (store, source, { model: choice, maxChunks = Number.POSITIVE_INFINITY, env, threads, command, deadline, signal } = {}) => {
|
|
33112
33121
|
const { model, directory: directory2, key } = localModel(choice, env, command);
|
|
33113
33122
|
if ((await source.chunksToEmbed(key, { limit: 1 })).length === 0)
|
|
33114
33123
|
return { model: model.id, embedded: 0, left: false };
|
|
33124
|
+
const until = stopsAt(deadline);
|
|
33125
|
+
const stopped = /* @__PURE__ */ __name((slowest) => signal?.aborted ? "cancelled" : Date.now() + slowest >= until ? "deadline" : void 0, "stopped");
|
|
33126
|
+
const stop = /* @__PURE__ */ __name(async (embedded, why) => {
|
|
33127
|
+
const remaining = await source.chunksLeft?.(key);
|
|
33128
|
+
return { model: model.id, embedded, left: true, stopped: why, ...remaining === void 0 ? {} : { remaining } };
|
|
33129
|
+
}, "stop");
|
|
33130
|
+
const early = stopped(0);
|
|
33131
|
+
if (early)
|
|
33132
|
+
return stop(0, early);
|
|
33115
33133
|
return withLocal(model, directory2, threads, async (embedder) => {
|
|
33116
33134
|
let embedded = 0;
|
|
33117
33135
|
let after;
|
|
33136
|
+
let slowest = 0;
|
|
33118
33137
|
while (embedded < maxChunks) {
|
|
33138
|
+
const why = stopped(slowest);
|
|
33139
|
+
if (why)
|
|
33140
|
+
return stop(embedded, why);
|
|
33141
|
+
const started = Date.now();
|
|
33119
33142
|
const batch = await source.chunksToEmbed(key, {
|
|
33120
33143
|
limit: Math.min(NOTE_BATCH, maxChunks - embedded),
|
|
33121
33144
|
...after === void 0 ? {} : { after }
|
|
@@ -33126,6 +33149,7 @@ var embedChunks = /* @__PURE__ */ __name(async (store, source, { model: choice,
|
|
|
33126
33149
|
const vectors = await embedder.embed(batch.map(({ text: text2 }) => text2), "passage");
|
|
33127
33150
|
await store.vectors.saveVectors(key, model.dims, batch.map(({ hash: hash3 }, index) => ({ hash: hash3, vector: vectors[index] })));
|
|
33128
33151
|
embedded += batch.length;
|
|
33152
|
+
slowest = Math.max(slowest, Date.now() - started);
|
|
33129
33153
|
}
|
|
33130
33154
|
const left = (await source.chunksToEmbed(key, { limit: 1, ...after === void 0 ? {} : { after } })).length > 0;
|
|
33131
33155
|
return { model: model.id, embedded, left };
|
|
@@ -33133,13 +33157,21 @@ var embedChunks = /* @__PURE__ */ __name(async (store, source, { model: choice,
|
|
|
33133
33157
|
}, "embedChunks");
|
|
33134
33158
|
var enrichedFirst = /* @__PURE__ */ __name(async (store, types2, options2, embed) => {
|
|
33135
33159
|
let enrichment;
|
|
33160
|
+
const time = stopsAt(options2.deadline) - Date.now();
|
|
33161
|
+
if (time <= 0 || options2.signal?.aborted)
|
|
33162
|
+
return embed();
|
|
33163
|
+
const signals2 = [
|
|
33164
|
+
...options2.signal ? [options2.signal] : [],
|
|
33165
|
+
...Number.isFinite(time) ? [AbortSignal.timeout(time)] : []
|
|
33166
|
+
];
|
|
33136
33167
|
try {
|
|
33137
33168
|
const run2 = await enrichRecords(store, {
|
|
33138
33169
|
env: options2.env ?? process.env,
|
|
33139
33170
|
narrow: { types: types2 },
|
|
33140
33171
|
...options2.app ? { app: options2.app } : {},
|
|
33141
33172
|
...options2.keyring ? { keyring: options2.keyring } : {},
|
|
33142
|
-
...options2.enrichWith
|
|
33173
|
+
...options2.enrichWith,
|
|
33174
|
+
...signals2.length ? { signal: AbortSignal.any(signals2) } : {}
|
|
33143
33175
|
});
|
|
33144
33176
|
if (run2.status !== "off")
|
|
33145
33177
|
enrichment = run2;
|
|
@@ -33531,7 +33563,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33531
33563
|
};
|
|
33532
33564
|
}, "searchNotesOf");
|
|
33533
33565
|
|
|
33534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33535
33567
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33536
33568
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33537
33569
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33649,7 +33681,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33649
33681
|
};
|
|
33650
33682
|
}, "searchEvents");
|
|
33651
33683
|
|
|
33652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
33653
33685
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
33654
33686
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
33655
33687
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -33679,7 +33711,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
33679
33711
|
};
|
|
33680
33712
|
}, "searchBusiness");
|
|
33681
33713
|
|
|
33682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33683
33715
|
var MOST_HITS_PER_MEETING = 3;
|
|
33684
33716
|
var PAGE_ROWS = 200;
|
|
33685
33717
|
var MOST_PAGES = 25;
|
|
@@ -33907,7 +33939,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
33907
33939
|
foundBy: ["title"]
|
|
33908
33940
|
}), "titleItem");
|
|
33909
33941
|
|
|
33910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
33911
33943
|
var SECTION3 = "search_harder";
|
|
33912
33944
|
var HARDER_MODELS = {
|
|
33913
33945
|
anthropic: "claude-haiku-5-5",
|
|
@@ -34169,7 +34201,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
34169
34201
|
};
|
|
34170
34202
|
}, "reorderHarder");
|
|
34171
34203
|
|
|
34172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
34173
34205
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
34174
34206
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
34175
34207
|
const { reason, span } = error.details ?? {};
|
|
@@ -34418,6 +34450,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
34418
34450
|
anyWord: anyWord || discover,
|
|
34419
34451
|
...request.exact ? { exact: true } : {},
|
|
34420
34452
|
...request.crmKinds === void 0 ? {} : { kinds: request.crmKinds },
|
|
34453
|
+
...request.crmViewers === void 0 ? {} : { viewers: request.crmViewers },
|
|
34421
34454
|
limit: Math.min(depth, 500),
|
|
34422
34455
|
...chosen2 === void 0 ? {} : { accounts: chosen2 }
|
|
34423
34456
|
});
|
|
@@ -34582,7 +34615,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
34582
34615
|
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);
|
|
34583
34616
|
}, "insidePeriodFirst");
|
|
34584
34617
|
|
|
34585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34586
34619
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34587
34620
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34588
34621
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34773,7 +34806,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34773
34806
|
return { report, sources };
|
|
34774
34807
|
}, "searchServer");
|
|
34775
34808
|
|
|
34776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34777
34810
|
var DELETE_AT_ONCE = 10;
|
|
34778
34811
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34779
34812
|
const files = fileLinks(attachments);
|
|
@@ -35213,7 +35246,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
35213
35246
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
35214
35247
|
}, "checkMediaOptions");
|
|
35215
35248
|
|
|
35216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
35217
35250
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
35218
35251
|
var RULES2 = {
|
|
35219
35252
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -35228,7 +35261,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
35228
35261
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
35229
35262
|
}), "classifyChannel");
|
|
35230
35263
|
|
|
35231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
35232
35265
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
35233
35266
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
35234
35267
|
const store = await deps.store();
|
|
@@ -35314,7 +35347,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
35314
35347
|
};
|
|
35315
35348
|
}, "metadataService");
|
|
35316
35349
|
|
|
35317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
35318
35351
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
35319
35352
|
var LINK2 = /https?:\/\/\S+/i;
|
|
35320
35353
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -35502,7 +35535,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
35502
35535
|
}, "nextPoint");
|
|
35503
35536
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
35504
35537
|
|
|
35505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
35506
35539
|
import { existsSync, readdirSync, readFileSync as readFileSync3 } from "node:fs";
|
|
35507
35540
|
import { join as join13 } from "node:path";
|
|
35508
35541
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -35654,7 +35687,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
35654
35687
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
35655
35688
|
}, "assign");
|
|
35656
35689
|
|
|
35657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
35658
35691
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
35659
35692
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
35660
35693
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -35691,7 +35724,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
35691
35724
|
return { chatId, rows, notes };
|
|
35692
35725
|
}, "moderateWith");
|
|
35693
35726
|
|
|
35694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
35695
35728
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
35696
35729
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
35697
35730
|
const env = deps.env ?? process.env;
|
|
@@ -35776,8 +35809,10 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
35776
35809
|
}, "removePerson")
|
|
35777
35810
|
}), "moderatorOf");
|
|
35778
35811
|
|
|
35779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
35780
35813
|
var SCAN = 1e3;
|
|
35814
|
+
var SNIPPET = 200;
|
|
35815
|
+
var SNIPPET_ROWS = 6;
|
|
35781
35816
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
35782
35817
|
const byId2 = new Map(accounts.map((one2) => [one2.id, one2]));
|
|
35783
35818
|
let cut = false;
|
|
@@ -35812,7 +35847,16 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
35812
35847
|
if (meeting === void 0 || meeting.deletedAt !== null)
|
|
35813
35848
|
continue;
|
|
35814
35849
|
const transcripts = await store.meetings.transcripts({ accountId, meetingId, limit: 1 });
|
|
35850
|
+
const [transcript] = transcripts.items;
|
|
35851
|
+
const rows = transcript === void 0 ? [] : (await store.meetings.transcriptRows({
|
|
35852
|
+
accountId,
|
|
35853
|
+
meetingId,
|
|
35854
|
+
transcriptId: transcript.id,
|
|
35855
|
+
limit: SNIPPET_ROWS
|
|
35856
|
+
})).rows;
|
|
35857
|
+
const said = rows.map(({ text: text2 }) => text2).join(" ");
|
|
35815
35858
|
const account = byId2.get(accountId);
|
|
35859
|
+
const call = meetingCallItem(meeting);
|
|
35816
35860
|
items.push({
|
|
35817
35861
|
ref: formatMeetingReference({ type: "meeting", accountId, meetingId }),
|
|
35818
35862
|
meetingId,
|
|
@@ -35820,15 +35864,17 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
35820
35864
|
title: meeting.title,
|
|
35821
35865
|
startedAt: meeting.startedAt === null ? null : new Date(meeting.startedAt).toISOString(),
|
|
35822
35866
|
durationMs: meeting.durationMs,
|
|
35823
|
-
hasTranscript:
|
|
35867
|
+
hasTranscript: transcript !== void 0,
|
|
35868
|
+
snippet: said.trim() ? excerpt(said, "", SNIPPET) : null,
|
|
35824
35869
|
event: meeting.eventId === null ? null : `event:${meeting.eventId}`,
|
|
35825
|
-
people: who2
|
|
35870
|
+
people: who2,
|
|
35871
|
+
...call ? { call } : {}
|
|
35826
35872
|
});
|
|
35827
35873
|
}
|
|
35828
35874
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
35829
35875
|
}, "personMeetings");
|
|
35830
35876
|
|
|
35831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
35832
35878
|
var CONTEXT_MESSAGES2 = 10;
|
|
35833
35879
|
var CONTEXT_BYTES = 64 * 1024;
|
|
35834
35880
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -36134,10 +36180,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
36134
36180
|
};
|
|
36135
36181
|
}, "personMessages");
|
|
36136
36182
|
|
|
36137
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36138
36184
|
import { createHash as createHash12 } from "node:crypto";
|
|
36139
36185
|
|
|
36140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
36141
36187
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
36142
36188
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
36143
36189
|
const parsed = parseMeetingReference(reference);
|
|
@@ -36185,7 +36231,7 @@ var resolveMeetingReference = /* @__PURE__ */ __name(async (store, accountId, re
|
|
|
36185
36231
|
};
|
|
36186
36232
|
}, "resolveMeetingReference");
|
|
36187
36233
|
|
|
36188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
36189
36235
|
var hash = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
36190
36236
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
36191
36237
|
if (signal?.aborted)
|
|
@@ -36384,7 +36430,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
36384
36430
|
return { ...packet, fingerprint: hash(packet) };
|
|
36385
36431
|
}, "readMeetingEvidence");
|
|
36386
36432
|
|
|
36387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
36388
36434
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
36389
36435
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
36390
36436
|
const requestedAccounts = options2.accountIds;
|
|
@@ -36483,7 +36529,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
36483
36529
|
};
|
|
36484
36530
|
}, "personMeetingContext");
|
|
36485
36531
|
|
|
36486
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
36487
36533
|
var PREPARE_BYTES = 96 * 1024;
|
|
36488
36534
|
var MEETINGS = 5;
|
|
36489
36535
|
var CUES = 3;
|
|
@@ -36606,7 +36652,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
36606
36652
|
}
|
|
36607
36653
|
}, "meetingsOf");
|
|
36608
36654
|
|
|
36609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
36610
36656
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
36611
36657
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
36612
36658
|
const held = await storeIfOpen(deps);
|
|
@@ -36676,7 +36722,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
36676
36722
|
complete: false
|
|
36677
36723
|
})), "quiet");
|
|
36678
36724
|
|
|
36679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
36680
36726
|
var TIMELINE_ITEMS = 50;
|
|
36681
36727
|
var TIMELINE_MAX = 500;
|
|
36682
36728
|
var SCOPES = ["personal", "work"];
|
|
@@ -36738,7 +36784,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
36738
36784
|
};
|
|
36739
36785
|
}, "personTimeline");
|
|
36740
36786
|
|
|
36741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
36742
36788
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
36743
36789
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
36744
36790
|
const held = await storeIfOpen(deps);
|
|
@@ -37003,7 +37049,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
37003
37049
|
return rest;
|
|
37004
37050
|
}, "withoutPhone");
|
|
37005
37051
|
|
|
37006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37007
37053
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37008
37054
|
id: note.id,
|
|
37009
37055
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37047,7 +37093,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37047
37093
|
};
|
|
37048
37094
|
}, "privatePeopleService");
|
|
37049
37095
|
|
|
37050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37051
37097
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37052
37098
|
total: 0,
|
|
37053
37099
|
population: 0,
|
|
@@ -37303,7 +37349,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37303
37349
|
}, "evidence")
|
|
37304
37350
|
}), "rankingsService");
|
|
37305
37351
|
|
|
37306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37307
37353
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37308
37354
|
var WAITING_TAIL = 100;
|
|
37309
37355
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37437,7 +37483,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37437
37483
|
};
|
|
37438
37484
|
}, "replyStatsService");
|
|
37439
37485
|
|
|
37440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37441
37487
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
37442
37488
|
id: one2.id,
|
|
37443
37489
|
name: one2.name,
|
|
@@ -37563,7 +37609,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37563
37609
|
};
|
|
37564
37610
|
}, "searchesService");
|
|
37565
37611
|
|
|
37566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37567
37613
|
var TAGGING_QUERY = {
|
|
37568
37614
|
entity: "tagging",
|
|
37569
37615
|
backend: "sql",
|
|
@@ -37647,7 +37693,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37647
37693
|
};
|
|
37648
37694
|
}, "tagsService");
|
|
37649
37695
|
|
|
37650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
37651
37697
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
37652
37698
|
var PERIOD_FIELD = "created";
|
|
37653
37699
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -37778,7 +37824,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
37778
37824
|
}));
|
|
37779
37825
|
}, "meetingNames");
|
|
37780
37826
|
|
|
37781
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
37782
37828
|
var TASK_QUERY = {
|
|
37783
37829
|
entity: "task",
|
|
37784
37830
|
backend: "sql",
|
|
@@ -38278,7 +38324,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
38278
38324
|
};
|
|
38279
38325
|
}, "taskView");
|
|
38280
38326
|
|
|
38281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38282
38328
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38283
38329
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
38284
38330
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38477,7 +38523,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38477
38523
|
};
|
|
38478
38524
|
}, "topicsService");
|
|
38479
38525
|
|
|
38480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
38481
38527
|
import { closeSync, mkdirSync as mkdirSync3, openSync, statSync, unlinkSync } from "node:fs";
|
|
38482
38528
|
import { dirname as dirname5 } from "node:path";
|
|
38483
38529
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -38544,7 +38590,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
38544
38590
|
}
|
|
38545
38591
|
}, "lockTime");
|
|
38546
38592
|
|
|
38547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
38548
38594
|
import { readFileSync as readFileSync4, renameSync, writeFileSync as writeFileSync3 } from "node:fs";
|
|
38549
38595
|
import { join as join14 } from "node:path";
|
|
38550
38596
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -38639,7 +38685,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
38639
38685
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
38640
38686
|
}, "waitForTurn");
|
|
38641
38687
|
|
|
38642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
38643
38689
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
38644
38690
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
38645
38691
|
var minutes = /* @__PURE__ */ __name((text2) => {
|
|
@@ -38744,7 +38790,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
38744
38790
|
}).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)));
|
|
38745
38791
|
}, "addMeetingManagementCommands");
|
|
38746
38792
|
|
|
38747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
38748
38794
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
38749
38795
|
command.allowUnknownOption();
|
|
38750
38796
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -38764,7 +38810,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
38764
38810
|
return command;
|
|
38765
38811
|
}, "queryWordsAfterOptions");
|
|
38766
38812
|
|
|
38767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
38768
38814
|
var count3 = /* @__PURE__ */ __name((value) => {
|
|
38769
38815
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
38770
38816
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -38806,7 +38852,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
38806
38852
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
38807
38853
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
38808
38854
|
|
|
38809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
38810
38856
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
38811
38857
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
38812
38858
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -38829,7 +38875,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
38829
38875
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
38830
38876
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
38831
38877
|
|
|
38832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
38833
38879
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
38834
38880
|
const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
|
|
38835
38881
|
if (meta.timezone)
|
|
@@ -38908,7 +38954,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
38908
38954
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
38909
38955
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
38910
38956
|
|
|
38911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
38912
38958
|
var EVENT_UNTRUSTED = ["title", "description", "location"];
|
|
38913
38959
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
38914
38960
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
@@ -39090,7 +39136,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
39090
39136
|
}, "addMeetingCommandsDefinition");
|
|
39091
39137
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
39092
39138
|
|
|
39093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
39094
39140
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
39095
39141
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
39096
39142
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -39187,9 +39233,11 @@ var nativeTermLists = /* @__PURE__ */ __name((ast, command, repeatable = [], neg
|
|
|
39187
39233
|
add(ast.root);
|
|
39188
39234
|
return terms;
|
|
39189
39235
|
}, "nativeTermLists");
|
|
39190
|
-
var queryTerms = /* @__PURE__ */ __name((words4, registry, command) => {
|
|
39236
|
+
var queryTerms = /* @__PURE__ */ __name((words4, registry, command, ranged = []) => {
|
|
39191
39237
|
const terms = /* @__PURE__ */ new Map();
|
|
39192
39238
|
for (const [field, node] of nativeTerms(listQuery(typedQuery(words4), registry, command), command)) {
|
|
39239
|
+
if (ranged.includes(field))
|
|
39240
|
+
continue;
|
|
39193
39241
|
if (node.operator !== "term" && node.operator !== "phrase")
|
|
39194
39242
|
queryError("query.unsupported-placement", node.span, `${field} takes one whole value here`, {
|
|
39195
39243
|
command,
|
|
@@ -39200,11 +39248,11 @@ var queryTerms = /* @__PURE__ */ __name((words4, registry, command) => {
|
|
|
39200
39248
|
}
|
|
39201
39249
|
return terms;
|
|
39202
39250
|
}, "queryTerms");
|
|
39203
|
-
var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf()) => {
|
|
39251
|
+
var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf(), now) => {
|
|
39204
39252
|
if (!term)
|
|
39205
39253
|
return {};
|
|
39206
39254
|
const upper = term.operator === "range" ? term.upper ?? "*" : term.value;
|
|
39207
|
-
const range3 = dateRange(term.value, upper, term.operator === "range" ? term.lower_inclusive !== false : true, term.operator === "range" ? term.upper_inclusive !== false : true, zone, term.span);
|
|
39255
|
+
const range3 = dateRange(term.value, upper, term.operator === "range" ? term.lower_inclusive !== false : true, term.operator === "range" ? term.upper_inclusive !== false : true, zone, term.span, now);
|
|
39208
39256
|
const until = range3.upper === void 0 ? void 0 : range3.upper - (range3.upper_inclusive ? 0 : 1);
|
|
39209
39257
|
return {
|
|
39210
39258
|
...range3.lower === void 0 ? {} : { since: range3.lower },
|
|
@@ -39230,10 +39278,10 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
39230
39278
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
39231
39279
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
39232
39280
|
|
|
39233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
39234
39282
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
39235
39283
|
|
|
39236
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
39237
39285
|
import { mkdirSync as mkdirSync4, readFileSync as readFileSync5, renameSync as renameSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
39238
39286
|
import { dirname as dirname6, join as join15 } from "node:path";
|
|
39239
39287
|
var MOST_DEADLINES = 50;
|
|
@@ -39317,7 +39365,7 @@ var FloodMemory = class {
|
|
|
39317
39365
|
}
|
|
39318
39366
|
};
|
|
39319
39367
|
|
|
39320
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
39321
39369
|
import { appendFileSync, mkdirSync as mkdirSync5, readFileSync as readFileSync6 } from "node:fs";
|
|
39322
39370
|
import { dirname as dirname7, join as join16 } from "node:path";
|
|
39323
39371
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join16(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
@@ -39396,7 +39444,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
39396
39444
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
39397
39445
|
}, "withSendId");
|
|
39398
39446
|
|
|
39399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
39400
39448
|
import { existsSync as existsSync2, readFileSync as readFileSync7, rmSync as rmSync2 } from "node:fs";
|
|
39401
39449
|
import { join as join17 } from "node:path";
|
|
39402
39450
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join17(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -39508,7 +39556,7 @@ var RecipientList = class {
|
|
|
39508
39556
|
}
|
|
39509
39557
|
};
|
|
39510
39558
|
|
|
39511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
39512
39560
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
39513
39561
|
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");
|
|
39514
39562
|
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");
|
|
@@ -39696,7 +39744,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
39696
39744
|
}), "guardFor");
|
|
39697
39745
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
39698
39746
|
|
|
39699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
39700
39748
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
39701
39749
|
let question;
|
|
39702
39750
|
let answered = false;
|
|
@@ -39739,7 +39787,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
39739
39787
|
};
|
|
39740
39788
|
}, "keyedGuard");
|
|
39741
39789
|
|
|
39742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
39743
39791
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
39744
39792
|
var CRM_WRITE_DEFAULTS = {
|
|
39745
39793
|
"deals.delete": "ask",
|
|
@@ -39747,7 +39795,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
39747
39795
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
39748
39796
|
};
|
|
39749
39797
|
|
|
39750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
39751
39799
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
39752
39800
|
var GAPS = "crm:gaps";
|
|
39753
39801
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
@@ -39759,7 +39807,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
|
39759
39807
|
}
|
|
39760
39808
|
}, "crmGapsOf");
|
|
39761
39809
|
|
|
39762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
39763
39811
|
var SECTION_LIMIT = 20;
|
|
39764
39812
|
var STORE_PAGE = 500;
|
|
39765
39813
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -39883,7 +39931,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
39883
39931
|
}, "coverageFor");
|
|
39884
39932
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
39885
39933
|
|
|
39886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/call-stats.js
|
|
39887
39935
|
var callsOf = /* @__PURE__ */ __name((stored) => stored.map(callOf).filter((one2) => one2 !== null), "callsOf");
|
|
39888
39936
|
var readCallStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
39889
39937
|
const { timeZone, callbackWithinMs, missedLimit, ...selection } = request;
|
|
@@ -39914,10 +39962,13 @@ var readCallStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
39914
39962
|
};
|
|
39915
39963
|
}, "readCallStats");
|
|
39916
39964
|
|
|
39917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
39918
39966
|
var MAIL_ROWS = 500;
|
|
39919
39967
|
var EVENT_ROWS2 = 1e3;
|
|
39920
39968
|
var RECORDED_ROWS = 100;
|
|
39969
|
+
var TEXT2 = 200;
|
|
39970
|
+
var HISTORY_ITEMS = 10;
|
|
39971
|
+
var HISTORY_MAX = 200;
|
|
39921
39972
|
var calendarsOf = /* @__PURE__ */ __name(async (store, stored) => {
|
|
39922
39973
|
const held = [];
|
|
39923
39974
|
for (const account of stored)
|
|
@@ -40010,7 +40061,8 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
40010
40061
|
kind: "message",
|
|
40011
40062
|
ref: formatLocator({ ...key, chat: chat.id, message: message.id }),
|
|
40012
40063
|
title: chat.title,
|
|
40013
|
-
at: message.timestamp
|
|
40064
|
+
at: message.timestamp,
|
|
40065
|
+
text: message.text ? excerpt(message.text, "", TEXT2) : null
|
|
40014
40066
|
}, person.uid);
|
|
40015
40067
|
}
|
|
40016
40068
|
}
|
|
@@ -40040,7 +40092,14 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
40040
40092
|
for (const meeting of recorded.items) {
|
|
40041
40093
|
read2.add(keyOf6(meeting.account));
|
|
40042
40094
|
const event2 = meeting.event === null ? void 0 : Number(meeting.event.slice("event:".length));
|
|
40043
|
-
|
|
40095
|
+
const recording = {
|
|
40096
|
+
text: meeting.snippet,
|
|
40097
|
+
durationMs: meeting.durationMs,
|
|
40098
|
+
...meeting.call ? { call: meeting.call } : {}
|
|
40099
|
+
};
|
|
40100
|
+
const calendar = event2 === void 0 ? void 0 : meetings.get(event2);
|
|
40101
|
+
if (calendar) {
|
|
40102
|
+
Object.assign(calendar, recording);
|
|
40044
40103
|
held++;
|
|
40045
40104
|
continue;
|
|
40046
40105
|
}
|
|
@@ -40049,7 +40108,8 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
40049
40108
|
ref: meeting.ref,
|
|
40050
40109
|
title: meeting.title,
|
|
40051
40110
|
at: meeting.startedAt,
|
|
40052
|
-
people: meeting.people
|
|
40111
|
+
people: meeting.people,
|
|
40112
|
+
...recording
|
|
40053
40113
|
});
|
|
40054
40114
|
}
|
|
40055
40115
|
return {
|
|
@@ -40059,8 +40119,36 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
40059
40119
|
coverage: coverageOf2(people, read2, calendars.length > 0)
|
|
40060
40120
|
};
|
|
40061
40121
|
}, "communicationsOf");
|
|
40122
|
+
var personHistory = /* @__PURE__ */ __name(async (store, reference, { accounts, deniedKinds, since, until, limit = HISTORY_ITEMS } = {}) => {
|
|
40123
|
+
if (!Number.isSafeInteger(limit) || limit < 1 || limit > HISTORY_MAX)
|
|
40124
|
+
throw new CliError("validation_error", `the history's limit takes 1\u2013${HISTORY_MAX}`);
|
|
40125
|
+
if (since !== void 0 && until !== void 0 && since > until)
|
|
40126
|
+
throw new CliError("validation_error", "the start of the range is after its end");
|
|
40127
|
+
const uid = /^person:(\d+)$/.exec(reference.trim())?.[1];
|
|
40128
|
+
if (uid === void 0)
|
|
40129
|
+
throw new CliError("validation_error", "a person is person:<id>");
|
|
40130
|
+
const record2 = await store.people.personByUid(uid);
|
|
40131
|
+
if (!record2)
|
|
40132
|
+
throw new CliError("not_found", `no person:${uid} in the store`);
|
|
40133
|
+
const talks = await communicationsOf(store, [record2], scopeOf4(accounts, deniedKinds), {
|
|
40134
|
+
...since === void 0 ? {} : { since },
|
|
40135
|
+
...until === void 0 ? {} : { until },
|
|
40136
|
+
// One past the page per chat: a dialog alone may hold the next page's first message.
|
|
40137
|
+
limit: limit + 1
|
|
40138
|
+
});
|
|
40139
|
+
const dated = talks.items.filter((item2) => item2.at !== null);
|
|
40140
|
+
const items = dated.slice(0, limit);
|
|
40141
|
+
const last = items.at(-1);
|
|
40142
|
+
const hasMore = dated.length > limit;
|
|
40143
|
+
return {
|
|
40144
|
+
items,
|
|
40145
|
+
hasMore,
|
|
40146
|
+
next: hasMore && last?.at ? new Date(Date.parse(last.at) - 1).toISOString() : null,
|
|
40147
|
+
coverage: talks.coverage
|
|
40148
|
+
};
|
|
40149
|
+
}, "personHistory");
|
|
40062
40150
|
|
|
40063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
40064
40152
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
40065
40153
|
ref: invoice.ref,
|
|
40066
40154
|
title: invoice.title,
|
|
@@ -40132,7 +40220,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
40132
40220
|
};
|
|
40133
40221
|
}, "moneyOf");
|
|
40134
40222
|
|
|
40135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
40136
40224
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
40137
40225
|
ref: deal.ref,
|
|
40138
40226
|
kind: deal.kind,
|
|
@@ -40275,7 +40363,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
40275
40363
|
};
|
|
40276
40364
|
}, "organizationContext");
|
|
40277
40365
|
|
|
40278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
40279
40367
|
var DAY6 = 864e5;
|
|
40280
40368
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
40281
40369
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -40400,7 +40488,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
40400
40488
|
notRead: context2.coverage.notRead
|
|
40401
40489
|
}), "dealBrief");
|
|
40402
40490
|
|
|
40403
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
40404
40492
|
import { createHash as createHash13, randomUUID as randomUUID6 } from "node:crypto";
|
|
40405
40493
|
var hash2 = /* @__PURE__ */ __name((value) => createHash13("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
40406
40494
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -40474,7 +40562,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
40474
40562
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
40475
40563
|
}, "prepareEvidencePacket");
|
|
40476
40564
|
|
|
40477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
40478
40566
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
40479
40567
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
40480
40568
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -40494,7 +40582,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
40494
40582
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
40495
40583
|
}, "readEvidencePacket");
|
|
40496
40584
|
|
|
40497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-links.js
|
|
40498
40586
|
var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
40499
40587
|
const { maxMessages, url, ...selecting } = request;
|
|
40500
40588
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -40533,7 +40621,7 @@ var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
40533
40621
|
};
|
|
40534
40622
|
}, "readMeetingLinks");
|
|
40535
40623
|
|
|
40536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-meaning.js
|
|
40537
40625
|
var bounded = /* @__PURE__ */ __name((value, maximum) => value === void 0 || Number.isSafeInteger(value) && value > 0 && value <= maximum, "bounded");
|
|
40538
40626
|
var validateMeetingModel = /* @__PURE__ */ __name((options2) => {
|
|
40539
40627
|
if (typeof options2.model !== "string" || !options2.model.trim() || options2.model.length > 1e3)
|
|
@@ -40564,9 +40652,9 @@ var validateMeetingEmbeddings = /* @__PURE__ */ __name((options2) => {
|
|
|
40564
40652
|
}, "validateMeetingEmbeddings");
|
|
40565
40653
|
var loadApi = /* @__PURE__ */ __name(async () => {
|
|
40566
40654
|
const [model, combined, semantic] = await Promise.all([
|
|
40567
|
-
import("./meeting-model-
|
|
40568
|
-
import("./meeting-combined-
|
|
40569
|
-
import("./meeting-semantic-
|
|
40655
|
+
import("./meeting-model-REZVYGQW.js"),
|
|
40656
|
+
import("./meeting-combined-HNSS3FQY.js"),
|
|
40657
|
+
import("./meeting-semantic-R4CSLVRG.js")
|
|
40570
40658
|
]);
|
|
40571
40659
|
return { ...model, ...combined, ...semantic };
|
|
40572
40660
|
}, "loadApi");
|
|
@@ -40664,10 +40752,10 @@ var meetingMeaning = /* @__PURE__ */ __name((store, accountId, options2 = {}) =>
|
|
|
40664
40752
|
};
|
|
40665
40753
|
}, "meetingMeaning");
|
|
40666
40754
|
|
|
40667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
40668
40756
|
import { createHash as createHash14 } from "node:crypto";
|
|
40669
40757
|
|
|
40670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-validation.js
|
|
40671
40759
|
function invalid5(field, response = false) {
|
|
40672
40760
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid project candidate ${field}`);
|
|
40673
40761
|
}
|
|
@@ -40786,7 +40874,7 @@ var candidateCatalog = /* @__PURE__ */ __name((catalog, limits) => {
|
|
|
40786
40874
|
}
|
|
40787
40875
|
}, "candidateCatalog");
|
|
40788
40876
|
|
|
40789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
40790
40878
|
var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
40791
40879
|
const fixed = snapshotMeetingScope(scope);
|
|
40792
40880
|
if (!Number.isSafeInteger(accountId) || accountId < 1 || typeof ports?.vocabulary?.vocabulary !== "function")
|
|
@@ -40839,7 +40927,7 @@ var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, account
|
|
|
40839
40927
|
};
|
|
40840
40928
|
}, "createMeetingProjectCandidateReader");
|
|
40841
40929
|
|
|
40842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
40843
40931
|
import { createHash as createHash15 } from "node:crypto";
|
|
40844
40932
|
var scopeKeys = [
|
|
40845
40933
|
"accountId",
|
|
@@ -40974,7 +41062,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
40974
41062
|
};
|
|
40975
41063
|
}, "readMeetingProjectDiscovery");
|
|
40976
41064
|
|
|
40977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-review.js
|
|
40978
41066
|
var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
40979
41067
|
const { limit, ...selecting } = request;
|
|
40980
41068
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -40982,7 +41070,7 @@ var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
40982
41070
|
return { ...review, selection };
|
|
40983
41071
|
}, "readMeetingReview");
|
|
40984
41072
|
|
|
40985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-searches.js
|
|
40986
41074
|
var KIND = ["meetings-search"];
|
|
40987
41075
|
var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
40988
41076
|
const found = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -41012,7 +41100,7 @@ var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
|
41012
41100
|
};
|
|
41013
41101
|
}, "meetingSearchesService");
|
|
41014
41102
|
|
|
41015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41103
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-stats.js
|
|
41016
41104
|
var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
41017
41105
|
const { timeZone, maxRows, ...selecting } = request;
|
|
41018
41106
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -41035,7 +41123,7 @@ var readMeetingCounts = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
41035
41123
|
return { ...counts, selection };
|
|
41036
41124
|
}, "readMeetingCounts");
|
|
41037
41125
|
|
|
41038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-tags.js
|
|
41039
41127
|
var keyOf7 = /* @__PURE__ */ __name(async (store, accountId) => {
|
|
41040
41128
|
const owner = await store.meetings.account(accountId);
|
|
41041
41129
|
if (!owner)
|
|
@@ -41109,7 +41197,7 @@ var meetingTags = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
41109
41197
|
};
|
|
41110
41198
|
}, "meetingTags");
|
|
41111
41199
|
|
|
41112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
41113
41201
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
41114
41202
|
const ref2 = `person:${uid}`;
|
|
41115
41203
|
const { edges, full } = await edgesOf(store, ref2, scope);
|
|
@@ -41167,7 +41255,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
41167
41255
|
};
|
|
41168
41256
|
}, "canonicalPersonContext");
|
|
41169
41257
|
|
|
41170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
41171
41259
|
import { createHash as createHash16 } from "node:crypto";
|
|
41172
41260
|
import { existsSync as existsSync3 } from "node:fs";
|
|
41173
41261
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -41298,7 +41386,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
41298
41386
|
return { ...checked2.output, custom: true };
|
|
41299
41387
|
}, "addCustomTextModel");
|
|
41300
41388
|
|
|
41301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
41302
41390
|
var SCOPES2 = ["personal", "work"];
|
|
41303
41391
|
var scopeOf5 = /* @__PURE__ */ __name((scope) => {
|
|
41304
41392
|
if (!SCOPES2.includes(scope))
|
|
@@ -41420,7 +41508,7 @@ var setChatScope = /* @__PURE__ */ __name(async (at, change) => {
|
|
|
41420
41508
|
return { ...key, chat: change.chat, own: scope, scope: effective };
|
|
41421
41509
|
}, "setChatScope");
|
|
41422
41510
|
|
|
41423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
41424
41512
|
var refOf3 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
41425
41513
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
41426
41514
|
const group = groupLockOf(app, env);
|
|
@@ -41531,14 +41619,14 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
41531
41619
|
};
|
|
41532
41620
|
}, "lockedRegistry");
|
|
41533
41621
|
|
|
41534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
41535
41623
|
var DAY7 = 864e5;
|
|
41536
41624
|
var SLOTS_EVERY = 7 * DAY7;
|
|
41537
41625
|
|
|
41538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
41539
41627
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
41540
41628
|
|
|
41541
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
41542
41630
|
var eventIdOf = /* @__PURE__ */ __name((reference) => {
|
|
41543
41631
|
const text2 = String(reference).replace(/^event:/u, "");
|
|
41544
41632
|
if (!/^[1-9]\d*$/u.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
@@ -41603,11 +41691,11 @@ var EVENTS_QUERY = {
|
|
|
41603
41691
|
} : field)
|
|
41604
41692
|
};
|
|
41605
41693
|
|
|
41606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/calendar/recurrence.js
|
|
41607
41695
|
var RULE_LINE = /^RRULE:/iu;
|
|
41608
41696
|
var ruleLine = /* @__PURE__ */ __name((lines) => lines.find((line3) => RULE_LINE.test(line3)), "ruleLine");
|
|
41609
41697
|
|
|
41610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
41611
41699
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
41612
41700
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
41613
41701
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -41625,7 +41713,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
41625
41713
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
41626
41714
|
};
|
|
41627
41715
|
|
|
41628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/listings.js
|
|
41629
41717
|
var DOCUMENT_TEXT_CANDIDATES = 2e3;
|
|
41630
41718
|
var webUrl = /* @__PURE__ */ __name((url) => url !== null && /^https:\/\//iu.test(url) ? url : null, "webUrl");
|
|
41631
41719
|
var iso4 = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
@@ -41898,7 +41986,7 @@ var showMeetingEntry = /* @__PURE__ */ __name(async (store, reference, lines) =>
|
|
|
41898
41986
|
};
|
|
41899
41987
|
}, "showMeetingEntry");
|
|
41900
41988
|
|
|
41901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
41902
41990
|
import { createHash as createHash17 } from "node:crypto";
|
|
41903
41991
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
41904
41992
|
ref: cue.reference,
|
|
@@ -42016,7 +42104,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
42016
42104
|
return { ...packet, fingerprint: createHash17("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
42017
42105
|
}, "readMeetingHitContext");
|
|
42018
42106
|
|
|
42019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
42020
42108
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
42021
42109
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
42022
42110
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -42092,7 +42180,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
42092
42180
|
return { packet, content };
|
|
42093
42181
|
}, "readMeetingPassage");
|
|
42094
42182
|
|
|
42095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-batch.js
|
|
42096
42184
|
var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
42097
42185
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
42098
42186
|
throw new CliError("validation_error", "choose a positive meeting account");
|
|
@@ -42106,7 +42194,7 @@ var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
42106
42194
|
};
|
|
42107
42195
|
}, "createMeetingBatchReader");
|
|
42108
42196
|
|
|
42109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-context.js
|
|
42110
42198
|
var meetingReferences = /* @__PURE__ */ __name((values) => values.map((value) => formatMeetingReference(parseMeetingReference(value))), "meetingReferences");
|
|
42111
42199
|
var checkCancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
42112
42200
|
if (!signal?.aborted)
|
|
@@ -42213,7 +42301,7 @@ var createMeetingContextService = /* @__PURE__ */ __name(async (store, input, op
|
|
|
42213
42301
|
};
|
|
42214
42302
|
}, "createMeetingContextService");
|
|
42215
42303
|
|
|
42216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
42217
42305
|
var communicationFields = {
|
|
42218
42306
|
sources: pipe(array(strictObject({
|
|
42219
42307
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -42245,7 +42333,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
42245
42333
|
return { ...input, after, before };
|
|
42246
42334
|
}, "communicationRequest");
|
|
42247
42335
|
|
|
42248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
42249
42337
|
var MEETING_PREPARATION_LIMITS = {
|
|
42250
42338
|
meetings: { min: 1, max: 20, default: 5 },
|
|
42251
42339
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -42331,7 +42419,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
42331
42419
|
return { ...input, history };
|
|
42332
42420
|
}, "preparationRequest");
|
|
42333
42421
|
|
|
42334
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
42335
42423
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
42336
42424
|
const section = {
|
|
42337
42425
|
readUsage: plan.reader.usage(),
|
|
@@ -42436,7 +42524,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read2) =>
|
|
|
42436
42524
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
42437
42525
|
}, "appendPreparationCommunications");
|
|
42438
42526
|
|
|
42439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
42440
42528
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
42441
42529
|
if (port === void 0)
|
|
42442
42530
|
return void 0;
|
|
@@ -42541,7 +42629,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
42541
42629
|
}
|
|
42542
42630
|
}, "validatePreparationCommunications");
|
|
42543
42631
|
|
|
42544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
42545
42633
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
42546
42634
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
42547
42635
|
}, "invalid");
|
|
@@ -42610,7 +42698,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
42610
42698
|
}
|
|
42611
42699
|
}, "appendKnowledgePreparation");
|
|
42612
42700
|
|
|
42613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
42614
42702
|
var invalid8 = /* @__PURE__ */ __name(() => {
|
|
42615
42703
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
42616
42704
|
}, "invalid");
|
|
@@ -42684,7 +42772,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
42684
42772
|
}
|
|
42685
42773
|
}, "appendNotesPreparation");
|
|
42686
42774
|
|
|
42687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
42688
42776
|
var PAGE_LIMIT = 4;
|
|
42689
42777
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
42690
42778
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -42734,7 +42822,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
42734
42822
|
}
|
|
42735
42823
|
}, "appendProjectPreparation");
|
|
42736
42824
|
|
|
42737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
42738
42826
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
42739
42827
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
42740
42828
|
return;
|
|
@@ -42806,7 +42894,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
42806
42894
|
}
|
|
42807
42895
|
}, "appendRelatedPreparation");
|
|
42808
42896
|
|
|
42809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
42810
42898
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
42811
42899
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
42812
42900
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -42944,7 +43032,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
42944
43032
|
};
|
|
42945
43033
|
}, "createMeetingPreparationService");
|
|
42946
43034
|
|
|
42947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-task-proposal.js
|
|
42948
43036
|
import { createHash as createHash18 } from "node:crypto";
|
|
42949
43037
|
var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, reference, kind) => {
|
|
42950
43038
|
if (!TASK_KINDS.includes(kind))
|
|
@@ -42964,7 +43052,7 @@ var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
42964
43052
|
};
|
|
42965
43053
|
}, "proposeMeetingTask");
|
|
42966
43054
|
|
|
42967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/meeting-tasks.js
|
|
42968
43056
|
var accountSnapshot = /* @__PURE__ */ __name((key) => {
|
|
42969
43057
|
const { provider, account, scope } = key;
|
|
42970
43058
|
if (!provider.trim() || provider.includes(":") || !account.trim())
|
|
@@ -43027,7 +43115,7 @@ var readMeetingTask = /* @__PURE__ */ __name(async (store, account, id2) => {
|
|
|
43027
43115
|
}
|
|
43028
43116
|
}, "readMeetingTask");
|
|
43029
43117
|
|
|
43030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
43031
43119
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
43032
43120
|
const installer = ports.installer();
|
|
43033
43121
|
const argv = updateCommand(installer, packageName);
|
|
@@ -43092,7 +43180,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
43092
43180
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
43093
43181
|
}, "dayAfter");
|
|
43094
43182
|
|
|
43095
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
43096
43184
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
43097
43185
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
43098
43186
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -43115,7 +43203,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
43115
43203
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
43116
43204
|
}, "approveAsTask");
|
|
43117
43205
|
|
|
43118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
43119
43207
|
var MAX_IDS = 500;
|
|
43120
43208
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
43121
43209
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -43157,7 +43245,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
43157
43245
|
return ids;
|
|
43158
43246
|
}, "parseProposalIds");
|
|
43159
43247
|
|
|
43160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
43161
43249
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
43162
43250
|
if (author.type === "person")
|
|
43163
43251
|
return { type: "person", id: author.id };
|
|
@@ -43230,7 +43318,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
43230
43318
|
}, "decide")
|
|
43231
43319
|
}), "reviewedKind");
|
|
43232
43320
|
|
|
43233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
43234
43322
|
var FACT_SUMMARIES = {
|
|
43235
43323
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
43236
43324
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -43305,7 +43393,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
43305
43393
|
};
|
|
43306
43394
|
}, "findingsKind");
|
|
43307
43395
|
|
|
43308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
43309
43397
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
43310
43398
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
43311
43399
|
var rowOf2 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -43361,7 +43449,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43361
43449
|
}, "decide")
|
|
43362
43450
|
}), "organizationKind");
|
|
43363
43451
|
|
|
43364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
43365
43453
|
var rowOf3 = /* @__PURE__ */ __name((action2) => ({
|
|
43366
43454
|
id: action2.id,
|
|
43367
43455
|
kind: "action",
|
|
@@ -43401,7 +43489,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
43401
43489
|
}, "decide")
|
|
43402
43490
|
}), "actionKind");
|
|
43403
43491
|
|
|
43404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
43405
43493
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
43406
43494
|
type: "contract",
|
|
43407
43495
|
list: /* @__PURE__ */ __name((options2) => store.contracts.list(options2), "list"),
|
|
@@ -43410,7 +43498,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
43410
43498
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.contracts.confirm(id2, by, reason) : await store.contracts.reject(id2, by, reason)).ref, "decide")
|
|
43411
43499
|
}), "contractKind");
|
|
43412
43500
|
|
|
43413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
43414
43502
|
var STATUS = {
|
|
43415
43503
|
proposed: "proposed",
|
|
43416
43504
|
accepted: "confirmed",
|
|
@@ -43453,7 +43541,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43453
43541
|
}, "decide")
|
|
43454
43542
|
}), "factKind");
|
|
43455
43543
|
|
|
43456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
43457
43545
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
43458
43546
|
type: "invoice",
|
|
43459
43547
|
list: /* @__PURE__ */ __name((options2) => store.finance.invoices(options2), "list"),
|
|
@@ -43469,7 +43557,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
43469
43557
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.finance.confirm(id2, by, reason) : await store.finance.reject(id2, by, reason)).ref, "decide")
|
|
43470
43558
|
}), "paymentKind");
|
|
43471
43559
|
|
|
43472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
43473
43561
|
var rowOf5 = /* @__PURE__ */ __name((action2) => {
|
|
43474
43562
|
const payload = action2.payload;
|
|
43475
43563
|
const [from, to] = payload.persons;
|
|
@@ -43516,7 +43604,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43516
43604
|
}, "decide")
|
|
43517
43605
|
}), "identityLinkKind");
|
|
43518
43606
|
|
|
43519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
43520
43608
|
var summaryOf = /* @__PURE__ */ __name((payload, person) => payload.split === "unmerge" ? `undo ${payload.merge}: ${payload.identities.join(", ")} go back to their own person` : `${payload.identities.join(", ")} may not be ${person}: they would move to a person of their own`, "summaryOf");
|
|
43521
43609
|
var dropped = /* @__PURE__ */ __name((action2) => action2.status !== "proposed" && action2.status !== "rejected" && typeof action2.result?.person !== "string", "dropped");
|
|
43522
43610
|
var rowOf6 = /* @__PURE__ */ __name((store) => async (action2) => {
|
|
@@ -43571,7 +43659,7 @@ var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43571
43659
|
}, "decide")
|
|
43572
43660
|
}), "identitySplitKind");
|
|
43573
43661
|
|
|
43574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
43575
43663
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
43576
43664
|
id: `key:${link4.id}`,
|
|
43577
43665
|
kind: "key_document",
|
|
@@ -43639,7 +43727,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
43639
43727
|
};
|
|
43640
43728
|
}, "keyDocumentKind");
|
|
43641
43729
|
|
|
43642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
43643
43731
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
43644
43732
|
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
43645
43733
|
switch (finding.kind) {
|
|
@@ -43730,7 +43818,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
43730
43818
|
};
|
|
43731
43819
|
}, "mailFindingsKind");
|
|
43732
43820
|
|
|
43733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
43734
43822
|
var rowOf8 = /* @__PURE__ */ __name((action2, batch) => {
|
|
43735
43823
|
const findings = batch.input.findings;
|
|
43736
43824
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -43797,7 +43885,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
43797
43885
|
};
|
|
43798
43886
|
}, "meetingFindingsKind");
|
|
43799
43887
|
|
|
43800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
43801
43889
|
var STATUS2 = {
|
|
43802
43890
|
proposed: "proposed",
|
|
43803
43891
|
confirmed: "confirmed",
|
|
@@ -43838,7 +43926,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43838
43926
|
}, "decide")
|
|
43839
43927
|
}), "memoryKind");
|
|
43840
43928
|
|
|
43841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
43842
43930
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
43843
43931
|
type: "order",
|
|
43844
43932
|
list: /* @__PURE__ */ __name((options2) => store.orders.list(options2), "list"),
|
|
@@ -43847,7 +43935,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
43847
43935
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.orders.confirm(id2, by, reason) : await store.orders.reject(id2, by, reason)).ref, "decide")
|
|
43848
43936
|
}), "orderKind");
|
|
43849
43937
|
|
|
43850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
43851
43939
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
43852
43940
|
id: `link:${link4.id}`,
|
|
43853
43941
|
kind: "relationship",
|
|
@@ -43922,7 +44010,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
43922
44010
|
};
|
|
43923
44011
|
}, "relationshipKind");
|
|
43924
44012
|
|
|
43925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
43926
44014
|
var KIND2 = "relationship_update";
|
|
43927
44015
|
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
43928
44016
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -43972,7 +44060,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
43972
44060
|
}, "decide")
|
|
43973
44061
|
}), "relationshipUpdateKind");
|
|
43974
44062
|
|
|
43975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
43976
44064
|
var rowOf11 = /* @__PURE__ */ __name((action2) => {
|
|
43977
44065
|
const payload = action2.payload;
|
|
43978
44066
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -44015,7 +44103,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
44015
44103
|
}, "decide")
|
|
44016
44104
|
}), "sourceReviewKind");
|
|
44017
44105
|
|
|
44018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
44019
44107
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
44020
44108
|
type: "subscription",
|
|
44021
44109
|
list: /* @__PURE__ */ __name((options2) => store.subscriptions.list(options2), "list"),
|
|
@@ -44034,7 +44122,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
44034
44122
|
}, "decide")
|
|
44035
44123
|
}), "subscriptionPriceKind");
|
|
44036
44124
|
|
|
44037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
44038
44126
|
var rowOf12 = /* @__PURE__ */ __name((task2) => {
|
|
44039
44127
|
const suggestion = task2.closeSuggestion;
|
|
44040
44128
|
if (suggestion === null)
|
|
@@ -44102,7 +44190,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
44102
44190
|
};
|
|
44103
44191
|
}, "taskCloseKind");
|
|
44104
44192
|
|
|
44105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
44106
44194
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
44107
44195
|
type: "transaction",
|
|
44108
44196
|
list: /* @__PURE__ */ __name((options2) => store.transactions.list(options2), "list"),
|
|
@@ -44111,7 +44199,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
44111
44199
|
decide: /* @__PURE__ */ __name(async (id2, confirm, { by, reason }) => (confirm ? await store.transactions.confirm(id2, by, reason) : await store.transactions.reject(id2, by, reason)).ref, "decide")
|
|
44112
44200
|
}), "transactionKind");
|
|
44113
44201
|
|
|
44114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
44115
44203
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
44116
44204
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
44117
44205
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -44246,7 +44334,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
44246
44334
|
return registry;
|
|
44247
44335
|
}, "proposalRegistry");
|
|
44248
44336
|
|
|
44249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/search-all-deprecated.js
|
|
44250
44338
|
var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account, { meetingAccount, maxMeetings: _maxMeetings, meetingCursor: _meetingCursor, ...request }, messenger = {}, searchMessages, meaning) => {
|
|
44251
44339
|
const { meetings: _meetings, ...found } = await searchAll(store, account, {
|
|
44252
44340
|
...request,
|
|
@@ -44256,7 +44344,7 @@ var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account, {
|
|
|
44256
44344
|
return found;
|
|
44257
44345
|
}, "searchAllIncludingMeetings");
|
|
44258
44346
|
|
|
44259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidate-validation.js
|
|
44260
44348
|
var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, options2) => {
|
|
44261
44349
|
const invalid9 = /* @__PURE__ */ __name((field) => {
|
|
44262
44350
|
throw new CliError("validation_error", `invalid stored project candidate ${field}`);
|
|
@@ -44298,7 +44386,7 @@ var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, optio
|
|
|
44298
44386
|
return { reference, limits, after, afterTranscriptId, signal };
|
|
44299
44387
|
}, "storedCandidateRequest");
|
|
44300
44388
|
|
|
44301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidates.js
|
|
44302
44390
|
var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
44303
44391
|
const fixed = snapshotMeetingScope(scope);
|
|
44304
44392
|
const store = ports?.meetings;
|
|
@@ -44390,7 +44478,7 @@ var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, a
|
|
|
44390
44478
|
};
|
|
44391
44479
|
}, "createStoredMeetingProjectCandidateReader");
|
|
44392
44480
|
|
|
44393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
44481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
44394
44482
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
44395
44483
|
const pictures = picturesService(deps);
|
|
44396
44484
|
const base = {
|
|
@@ -44747,6 +44835,9 @@ export {
|
|
|
44747
44835
|
SECTION_LIMIT,
|
|
44748
44836
|
organizationCategories,
|
|
44749
44837
|
readCallStats,
|
|
44838
|
+
HISTORY_ITEMS,
|
|
44839
|
+
HISTORY_MAX,
|
|
44840
|
+
personHistory,
|
|
44750
44841
|
organizationContext,
|
|
44751
44842
|
dealContext,
|
|
44752
44843
|
dealBrief,
|