@wirecat/drive-cli 0.66.0 → 0.68.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/contracts/wirecat.json +29 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-WCQLIHUG.js → all-profiles-BU6XUFUP.js} +14 -14
- package/dist/bundle/{anthropic-5RJMB6O7.js → anthropic-ZP5B7S2Z.js} +8 -8
- package/dist/bundle/{app-server-3RGYXPKG.js → app-server-EB4DH6T7.js} +60 -56
- package/dist/bundle/{bun-L34VEKGG.js → bun-PWMM6L45.js} +2 -2
- package/dist/bundle/{bun-sqlite-H6IAXQXI.js → bun-sqlite-6VPR2SVC.js} +9 -9
- package/dist/bundle/{chunk-HPKE2GDP.js → chunk-2UHQVRH2.js} +18 -18
- package/dist/bundle/{chunk-2AF77WMH.js → chunk-2VYEGKQ3.js} +1 -1
- package/dist/bundle/{chunk-TAHISPDE.js → chunk-43NEDPXB.js} +39 -35
- package/dist/bundle/{chunk-OT7SQQJK.js → chunk-5G2BY4B6.js} +17 -17
- package/dist/bundle/{chunk-NYZS2LKF.js → chunk-5TK2YQCO.js} +2 -2
- package/dist/bundle/{chunk-5XLU4NN6.js → chunk-5W65QTYS.js} +4 -4
- package/dist/bundle/{chunk-YTIPTHEE.js → chunk-6HFZZ2PW.js} +2 -2
- package/dist/bundle/{chunk-GY4DAJSK.js → chunk-6QR7NKMG.js} +35 -6
- package/dist/bundle/{chunk-BIJW6AYA.js → chunk-6WAC2LOS.js} +3698 -3594
- package/dist/bundle/{chunk-VR3YKXHL.js → chunk-74NCZKRW.js} +33 -20
- package/dist/bundle/{chunk-5HVJK3ZJ.js → chunk-7A77GYCE.js} +4 -4
- package/dist/bundle/{chunk-7ZGJRVBH.js → chunk-7BXVI7XF.js} +4 -4
- package/dist/bundle/{chunk-UNTIVT47.js → chunk-7JKECODO.js} +1 -1
- package/dist/bundle/{chunk-FKKPVPZR.js → chunk-7TNQZKRD.js} +57 -57
- package/dist/bundle/{chunk-3SDJIMZB.js → chunk-AIEMFRBU.js} +1 -1
- package/dist/bundle/{chunk-QJ57PV55.js → chunk-AXYG2DDY.js} +136 -90
- package/dist/bundle/{chunk-T3ULDA7C.js → chunk-BXHFJTU5.js} +3 -3
- package/dist/bundle/{chunk-HPSHQVJU.js → chunk-CK2SQ2CE.js} +28 -22
- package/dist/bundle/{chunk-KRG5X5PH.js → chunk-CMWFYZ45.js} +2 -2
- package/dist/bundle/{chunk-3QFUDXMQ.js → chunk-CRIEW4FP.js} +3 -2
- package/dist/bundle/{chunk-V2WXTILT.js → chunk-CVAJMRRD.js} +6 -6
- package/dist/bundle/{chunk-JCHF7LZT.js → chunk-D4MVEOU2.js} +4 -4
- package/dist/bundle/{chunk-FHBTQPA3.js → chunk-DIZBJLPM.js} +41 -37
- package/dist/bundle/{chunk-VUUPFDRU.js → chunk-DU23ET2O.js} +113 -39
- package/dist/bundle/{chunk-IRNDYNQX.js → chunk-DYLYH7VE.js} +4 -4
- package/dist/bundle/{chunk-IIHZTV6V.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-AP4MX247.js → chunk-EEE4H2PA.js} +12 -12
- package/dist/bundle/{chunk-UAKX6DP4.js → chunk-EOC7RHJ2.js} +5 -5
- package/dist/bundle/{chunk-HHRJPLFO.js → chunk-EXWZCI5G.js} +1 -1
- package/dist/bundle/{chunk-KOY5HUBY.js → chunk-F7KAMSXA.js} +4 -4
- package/dist/bundle/{chunk-D4MIMH2N.js → chunk-FAMXUI2X.js} +5 -5
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-XVZNFA2P.js → chunk-GTLXBAJV.js} +309 -278
- package/dist/bundle/{chunk-JQXK3M5M.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-NK4GVFJH.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-MZWXTJ4O.js → chunk-IVOG6T6P.js} +3 -3
- package/dist/bundle/{chunk-PKM55ZRR.js → chunk-J5LXL435.js} +20 -20
- package/dist/bundle/{chunk-G4TNKBDX.js → chunk-JMZQBRRZ.js} +7 -7
- package/dist/bundle/{chunk-VQKNKJYL.js → chunk-JRFKCYMW.js} +6 -6
- package/dist/bundle/{chunk-XLGDNI4S.js → chunk-JZ3MT7IE.js} +5 -40
- package/dist/bundle/{chunk-UG3GHFGY.js → chunk-KPKIHJIT.js} +6 -8
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-5PLINHEY.js → chunk-MLSXHTUB.js} +153 -149
- package/dist/bundle/{chunk-Y5U4HIZS.js → chunk-MOKEB656.js} +2 -2
- package/dist/bundle/{chunk-6X3KUFRQ.js → chunk-MW46BLWH.js} +20 -20
- package/dist/bundle/{chunk-I5R5CMQR.js → chunk-MWCPKUU4.js} +5 -5
- package/dist/bundle/{chunk-6UJCCOZC.js → chunk-NV75QPML.js} +4 -4
- package/dist/bundle/{chunk-OZOQLAWK.js → chunk-O7T3WGCV.js} +6 -6
- package/dist/bundle/{chunk-H7XL6WTW.js → chunk-PGPHEC2X.js} +2 -2
- package/dist/bundle/{chunk-UQPW42HF.js → chunk-PJ3FKBXG.js} +1 -1
- package/dist/bundle/{chunk-ALE67WRR.js → chunk-PV3AWPHR.js} +5 -5
- package/dist/bundle/{chunk-HQBLJLYH.js → chunk-PWIEOATY.js} +8 -8
- package/dist/bundle/{chunk-WYTYHUFH.js → chunk-Q6BD6RUH.js} +43 -43
- package/dist/bundle/{chunk-BQXSE645.js → chunk-QKY24RWV.js} +12 -12
- package/dist/bundle/{chunk-2S3E2HVV.js → chunk-QRSPFCRY.js} +17 -17
- package/dist/bundle/{chunk-3NYH756U.js → chunk-QTRYJZL7.js} +11 -6
- package/dist/bundle/{chunk-QF7VL4C3.js → chunk-QVJMFZFW.js} +1 -1
- package/dist/bundle/{chunk-ULXEW6FT.js → chunk-QWGEOQHA.js} +1 -1
- package/dist/bundle/{chunk-JLCR24UM.js → chunk-R5FTCNLJ.js} +1 -1
- package/dist/bundle/{chunk-M7543RUJ.js → chunk-RT5NT62B.js} +220 -15
- package/dist/bundle/{chunk-SZ6JFOL4.js → chunk-SOS4U2RF.js} +62 -41
- package/dist/bundle/{chunk-PUMDOCAF.js → chunk-TI2OANJZ.js} +1 -1
- package/dist/bundle/{chunk-COGWKO2T.js → chunk-U52QE4QV.js} +3 -3
- package/dist/bundle/{chunk-LVAPSAHF.js → chunk-UFPRP7MG.js} +8 -8
- package/dist/bundle/{chunk-5VDVGDOC.js → chunk-UIKVP23D.js} +1 -1
- package/dist/bundle/{chunk-7LT2G5BC.js → chunk-ULNN3LCY.js} +29 -27
- package/dist/bundle/{chunk-GVA3KTCD.js → chunk-UPCEHSIZ.js} +10 -10
- package/dist/bundle/{chunk-4UHBJSMI.js → chunk-UUQJVKPB.js} +516 -458
- package/dist/bundle/{chunk-O53WLYX3.js → chunk-UYBLNGZ2.js} +2 -2
- package/dist/bundle/{chunk-D7KOAPG6.js → chunk-WCNTDETD.js} +2 -2
- package/dist/bundle/{chunk-JHMEETXI.js → chunk-WGX4DZPW.js} +2 -2
- package/dist/bundle/{chunk-P7HQFII6.js → chunk-WUFZGPXX.js} +7 -7
- package/dist/bundle/{chunk-5K54RZBK.js → chunk-Y2QVNVHK.js} +1 -1
- package/dist/bundle/{chunk-7EP4AU6A.js → chunk-YUGTJBV3.js} +3 -3
- package/dist/bundle/{chunk-QSELSDWE.js → chunk-YYIWPH53.js} +13 -13
- package/dist/bundle/{chunk-E2F2XIX6.js → chunk-Z5BMYI2V.js} +8 -8
- package/dist/bundle/{chunk-TYLEICTX.js → chunk-ZAIE3G5I.js} +3 -3
- package/dist/bundle/{chunk-SOOU5WO6.js → chunk-ZSVMZH5O.js} +2 -2
- package/dist/bundle/{chunk-FA2TNA5X.js → chunk-ZVQDOKDY.js} +1 -1
- package/dist/bundle/{cli-KW6QQVS5.js → cli-L7P36YUH.js} +61 -61
- package/dist/bundle/command-contract-EYFGMKIG.js +41 -0
- package/dist/bundle/{command-server-entry-OC4E4DED.js → command-server-entry-H3VGPOLJ.js} +31 -31
- package/dist/bundle/{decode-AH5ZLLDK.js → decode-JEU6JWCV.js} +8 -8
- package/dist/bundle/{dispatch-CDWZZ54Q.js → dispatch-WBEOHZDV.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-VC7MTXWY.js → echarts-SDZA2SWG.js} +2 -2
- package/dist/bundle/{embed-EPSQY6QG.js → embed-WUKOASQG.js} +9 -9
- package/dist/bundle/{embedder-TK4U4TJR.js → embedder-UBRAXRDZ.js} +12 -12
- package/dist/bundle/entry-C4NUQFTF.js +25 -0
- package/dist/bundle/{failure-WSVZOPFE.js → failure-X6PSLVSO.js} +4 -4
- package/dist/bundle/first-run-PKHBS7B4.js +30 -0
- package/dist/bundle/first-screen-QOVOM4BF.js +39 -0
- package/dist/bundle/google-XXHSMTVK.js +45 -0
- package/dist/bundle/{google-api-AV4X2JH3.js → google-api-SQQ4BSNR.js} +63 -63
- package/dist/bundle/grants-2U4JVT6O.js +111 -0
- package/dist/bundle/{identity-CGHHF7AK.js → identity-SRL6RSU2.js} +6 -6
- package/dist/bundle/{instructions-24PHDBBE.js → instructions-7T6JJIFS.js} +1 -1
- package/dist/bundle/{login-XHFESAFM.js → login-N243GGEE.js} +69 -69
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-GIDULTV5.js → node-BZDMUFTW.js} +2 -2
- package/dist/bundle/{node-sqlite-LINBOAWK.js → node-sqlite-SZQCCMV2.js} +10 -10
- package/dist/bundle/oauth-CMAFXX6A.js +22 -0
- package/dist/bundle/{open-RYFKPNCJ.js → open-RVTPKDA3.js} +8 -8
- package/dist/bundle/{openai-Q7YYUHJF.js → openai-6NN63BMH.js} +19 -19
- package/dist/bundle/{process-VPIZTIJR.js → process-756VBE7E.js} +1 -1
- package/dist/bundle/{program-IUXFRBZA.js → program-B4QBJYB5.js} +187 -228
- package/dist/bundle/{prompt-LF4KX3XL.js → prompt-HGP2DSRW.js} +8 -8
- package/dist/bundle/{reasons-JPYOU5GV.js → reasons-KSYP5VDJ.js} +5 -5
- package/dist/bundle/{recognize-KEWTJXFH.js → recognize-26SHB7HI.js} +7 -7
- package/dist/bundle/{remote-HGGLB76S.js → remote-Z4PWHZ5N.js} +13 -13
- package/dist/bundle/{rerank-TDUKETFT.js → rerank-QHJZJK3Q.js} +10 -10
- package/dist/bundle/{serve-XFYMKW5W.js → serve-MYJW5IEM.js} +12 -12
- package/dist/bundle/server-HBZPIHDX.js +74 -0
- package/dist/bundle/{server-PXIPSGFP.js → server-XFW3V7CR.js} +49 -47
- package/dist/bundle/{services-2BOCGMJU.js → services-IQG2RVTO.js} +36 -36
- package/dist/bundle/{sqlite-runtime-R7M5XUMW.js → sqlite-runtime-X4GB5PBV.js} +9 -9
- package/dist/bundle/{start-YRLT4MQZ.js → start-C6EXYXAL.js} +7 -7
- package/dist/bundle/{state-NZ7WRJWH.js → state-ATQK2X3W.js} +9 -9
- package/dist/bundle/{store-ICDGPSEN.js → store-MEHEUOJH.js} +19 -19
- package/dist/bundle/{store-7LCVDO7G.js → store-QUBUPK6F.js} +21 -21
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +65 -0
- package/dist/bundle/tokens-A2GP4F34.js +111 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +5 -3
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/search.js +4 -4
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +2 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/transcripts.d.ts +4 -0
- package/dist/commands/transcripts.d.ts.map +1 -0
- package/dist/commands/transcripts.js +42 -0
- package/dist/commands/transcripts.js.map +1 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +14 -1
- package/dist/config.js.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +31 -28
- package/dist/google.js.map +1 -1
- package/dist/list-queries.d.ts +10 -0
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +12 -1
- package/dist/list-queries.js.map +1 -1
- package/dist/model.d.ts +4 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/policy.d.ts +2 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -2
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +5 -2
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +2 -0
- package/dist/state.js.map +1 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -1
- package/dist/sync.js.map +1 -1
- package/dist/transcripts.d.ts +21 -0
- package/dist/transcripts.d.ts.map +1 -0
- package/dist/transcripts.js +48 -0
- package/dist/transcripts.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-CE543JBN.js +0 -41
- package/dist/bundle/entry-3VN23M7M.js +0 -25
- package/dist/bundle/first-run-7ZYJ7EB3.js +0 -30
- package/dist/bundle/first-screen-CZDH7QY3.js +0 -39
- package/dist/bundle/google-OBZMWA7J.js +0 -45
- package/dist/bundle/grants-WTRLN4ZI.js +0 -111
- package/dist/bundle/oauth-JHUX3KE3.js +0 -22
- package/dist/bundle/server-BDEV3CZJ.js +0 -74
- package/dist/bundle/store-maintenance-command-SJPLY6IH.js +0 -65
- package/dist/bundle/tokens-FGTBE7VW.js +0 -111
- /package/dist/bundle/{chunk-HVJJWJYQ.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
readPictureWithAgent,
|
|
20
20
|
withRecovery,
|
|
21
21
|
withTimeLimit
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Q6BD6RUH.js";
|
|
23
23
|
import {
|
|
24
24
|
acquireLock,
|
|
25
25
|
openOrdinaryFile,
|
|
@@ -28,20 +28,20 @@ import {
|
|
|
28
28
|
sameOrdinaryFile,
|
|
29
29
|
syncDirectory,
|
|
30
30
|
writeFileAtomic
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YYIWPH53.js";
|
|
32
32
|
import {
|
|
33
33
|
isNewer,
|
|
34
34
|
updateCommand
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-D4MVEOU2.js";
|
|
36
36
|
import {
|
|
37
37
|
OPENAI_URL,
|
|
38
38
|
openRemote,
|
|
39
39
|
remoteKey,
|
|
40
40
|
remoteModel
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-FAMXUI2X.js";
|
|
42
42
|
import {
|
|
43
43
|
localOnly
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-O7T3WGCV.js";
|
|
45
45
|
import {
|
|
46
46
|
defaultThreads,
|
|
47
47
|
installNativeRuntime,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
placedText,
|
|
51
51
|
runEmbedders,
|
|
52
52
|
textModelsDirectory
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-MWCPKUU4.js";
|
|
54
54
|
import {
|
|
55
55
|
CEILING_KEY,
|
|
56
56
|
CustomTextModelShape,
|
|
@@ -87,24 +87,24 @@ import {
|
|
|
87
87
|
textModels,
|
|
88
88
|
vectorModelKey,
|
|
89
89
|
writeTextModelsSection
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-J5LXL435.js";
|
|
91
91
|
import {
|
|
92
92
|
MESSENGER_CHANGE_REFUSAL,
|
|
93
93
|
ancestorValue,
|
|
94
94
|
envName,
|
|
95
95
|
readOnlyLockOf,
|
|
96
96
|
readOnlyRefusal
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-MOKEB656.js";
|
|
98
98
|
import {
|
|
99
99
|
endpoint,
|
|
100
100
|
endpointFetch,
|
|
101
101
|
modelAddressAllowed,
|
|
102
102
|
onThisComputer
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-6QR7NKMG.js";
|
|
104
104
|
import {
|
|
105
105
|
installFiles,
|
|
106
106
|
megabytes
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5W65QTYS.js";
|
|
108
108
|
import {
|
|
109
109
|
AGENDA_COLUMNS,
|
|
110
110
|
BUSINESS_FIND_MAX,
|
|
@@ -198,20 +198,20 @@ import {
|
|
|
198
198
|
validateFields,
|
|
199
199
|
waitingPointer,
|
|
200
200
|
withoutField
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-6WAC2LOS.js";
|
|
202
202
|
import {
|
|
203
203
|
MAX_TEXT_CHARS,
|
|
204
204
|
attachmentMaxBytes,
|
|
205
205
|
googleDocumentId,
|
|
206
206
|
googleDocumentLinks,
|
|
207
207
|
pdfPreviewLimits
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-BXHFJTU5.js";
|
|
209
209
|
import {
|
|
210
210
|
DEFAULT_STEMMERS,
|
|
211
211
|
createStemmer,
|
|
212
212
|
fold,
|
|
213
213
|
normalize
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-UFPRP7MG.js";
|
|
215
215
|
import {
|
|
216
216
|
CATEGORIES,
|
|
217
217
|
DEAL_KINDS,
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
validateMeetingPassage,
|
|
280
280
|
validateMeetingSeriesHistory,
|
|
281
281
|
withAttempt
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-AXYG2DDY.js";
|
|
283
283
|
import {
|
|
284
284
|
OPERATORS_BY_TYPE,
|
|
285
285
|
dateRange,
|
|
@@ -291,32 +291,32 @@ import {
|
|
|
291
291
|
timezoneOf,
|
|
292
292
|
validateQuery,
|
|
293
293
|
walkQuery
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-UPCEHSIZ.js";
|
|
295
295
|
import {
|
|
296
296
|
isCliFailure,
|
|
297
297
|
sqliteCode
|
|
298
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-UYBLNGZ2.js";
|
|
299
299
|
import {
|
|
300
300
|
DEFAULT_TASK_CATEGORIES,
|
|
301
301
|
FALLBACK_CATEGORY,
|
|
302
302
|
readSharedSection,
|
|
303
303
|
sharedConfigPath,
|
|
304
304
|
writeSharedSection
|
|
305
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-PWIEOATY.js";
|
|
306
306
|
import {
|
|
307
307
|
storePath,
|
|
308
308
|
wirecatDirectory
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-CRIEW4FP.js";
|
|
310
310
|
import {
|
|
311
311
|
logRecordOf,
|
|
312
312
|
realSleep,
|
|
313
313
|
resolvePaths,
|
|
314
314
|
writeSecurely
|
|
315
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-MW46BLWH.js";
|
|
316
316
|
import {
|
|
317
317
|
singleLine,
|
|
318
318
|
visibleControls
|
|
319
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-HCZYJMBP.js";
|
|
320
320
|
import {
|
|
321
321
|
array,
|
|
322
322
|
check,
|
|
@@ -343,16 +343,16 @@ import {
|
|
|
343
343
|
transform,
|
|
344
344
|
trim,
|
|
345
345
|
unknown
|
|
346
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-JRFKCYMW.js";
|
|
347
347
|
import {
|
|
348
348
|
CliError,
|
|
349
349
|
isCliError
|
|
350
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-EA2OB75T.js";
|
|
351
351
|
import {
|
|
352
352
|
__name
|
|
353
353
|
} from "./chunk-ZVVMGPBJ.js";
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
356
356
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
357
357
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
358
358
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -427,7 +427,7 @@ var storeOnlyDeps = /* @__PURE__ */ __name((store, account2, { app, env }) => {
|
|
|
427
427
|
return { ...storedDeps(messenger, store, account2, guard), ...env === void 0 ? {} : { env } };
|
|
428
428
|
}, "storeOnlyDeps");
|
|
429
429
|
|
|
430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
431
431
|
var DAY_MS = 864e5;
|
|
432
432
|
var NEW_DAYS = 30;
|
|
433
433
|
var SAME_TEXT_MIN = 20;
|
|
@@ -504,7 +504,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
504
504
|
};
|
|
505
505
|
}, "scorePerson");
|
|
506
506
|
|
|
507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
508
508
|
var REGISTRIES = {
|
|
509
509
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
510
510
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -591,7 +591,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
591
591
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
592
592
|
})), "notCovered");
|
|
593
593
|
|
|
594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
595
595
|
var ACTIVITY_MESSAGES = 1e3;
|
|
596
596
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
597
597
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -679,7 +679,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
679
679
|
};
|
|
680
680
|
}, "botCheckService");
|
|
681
681
|
|
|
682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
683
683
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
684
684
|
if (newest === null)
|
|
685
685
|
return null;
|
|
@@ -688,7 +688,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
688
688
|
return newest.addressed ? "owed" : null;
|
|
689
689
|
}, "mailTurn");
|
|
690
690
|
|
|
691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
692
692
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
693
693
|
if (error instanceof CliError && error.code === "not_found")
|
|
694
694
|
return void 0;
|
|
@@ -746,7 +746,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account2, since, chats)
|
|
|
746
746
|
};
|
|
747
747
|
}, "mailActivity");
|
|
748
748
|
|
|
749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
750
750
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account2, chatIds) => {
|
|
751
751
|
const ids = [...new Set(chatIds)];
|
|
752
752
|
if (ids.length === 0)
|
|
@@ -772,7 +772,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account2, chatIds) => {
|
|
|
772
772
|
}));
|
|
773
773
|
}, "chatCoverage");
|
|
774
774
|
|
|
775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
776
776
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
777
777
|
if (value === void 0)
|
|
778
778
|
return void 0;
|
|
@@ -782,7 +782,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
782
782
|
return id2;
|
|
783
783
|
}, "threadIdOf");
|
|
784
784
|
|
|
785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
786
786
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
787
787
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
788
788
|
if (key in own)
|
|
@@ -799,15 +799,15 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
799
799
|
return found.bind(adapter);
|
|
800
800
|
}, "capability");
|
|
801
801
|
|
|
802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
803
803
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
804
804
|
|
|
805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
806
806
|
import { randomBytes } from "node:crypto";
|
|
807
807
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
808
808
|
var newOperationId = newSendId;
|
|
809
809
|
|
|
810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
810
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
811
811
|
var LINKS = /https?:\/\/\S+/g;
|
|
812
812
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
813
813
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -837,7 +837,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
837
837
|
});
|
|
838
838
|
}, "questions");
|
|
839
839
|
|
|
840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
841
841
|
var TOP_POSTS = 5;
|
|
842
842
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
843
843
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -954,7 +954,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
954
954
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
955
955
|
}, "median");
|
|
956
956
|
|
|
957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
958
958
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
959
959
|
const events = [];
|
|
960
960
|
for (const stay of stays) {
|
|
@@ -986,7 +986,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
986
986
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
987
987
|
}, "memberEvents");
|
|
988
988
|
|
|
989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
990
990
|
var AUDIT_PAGE = 200;
|
|
991
991
|
var AUDIT_BUDGET = 10;
|
|
992
992
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -1066,7 +1066,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
1066
1066
|
return found;
|
|
1067
1067
|
}, "burstJoins");
|
|
1068
1068
|
|
|
1069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
1070
1070
|
var ALL = "all";
|
|
1071
1071
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
1072
1072
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -1201,7 +1201,7 @@ var scopeToGroup = /* @__PURE__ */ __name((run, request, context2) => {
|
|
|
1201
1201
|
return scoped;
|
|
1202
1202
|
}, "scopeToGroup");
|
|
1203
1203
|
|
|
1204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
1205
1205
|
var NO_MAIL = "no_mail";
|
|
1206
1206
|
var MAIL = "email";
|
|
1207
1207
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -1275,7 +1275,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
1275
1275
|
return chosenMail.map(({ provider, account: account2 }) => ({ provider, account: account2 }));
|
|
1276
1276
|
}, "accountsOfKind");
|
|
1277
1277
|
|
|
1278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
1279
1279
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account2) => {
|
|
1280
1280
|
if (deps.reads !== "store")
|
|
1281
1281
|
return keptChatId(deps.messenger, reference, store, account2);
|
|
@@ -1474,7 +1474,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
1474
1474
|
}, "chatsMatchingIn");
|
|
1475
1475
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
1476
1476
|
|
|
1477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
1478
1478
|
var EVENTS_DAYS = 7;
|
|
1479
1479
|
var TRACKED_DAYS = 30;
|
|
1480
1480
|
var STATS_PAGE = 1e3;
|
|
@@ -1769,7 +1769,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
1769
1769
|
return members.length === 0 ? null : members;
|
|
1770
1770
|
}, "storedMembers");
|
|
1771
1771
|
|
|
1772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
1773
1773
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
1774
1774
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
1775
1775
|
const name = typed.trim().toLowerCase();
|
|
@@ -1826,7 +1826,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
1826
1826
|
return best.name;
|
|
1827
1827
|
}, "categorize");
|
|
1828
1828
|
|
|
1829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
1830
1830
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}:${account2}`, "taskAccount");
|
|
1831
1831
|
var RULES_IN = {
|
|
1832
1832
|
dialog: "all",
|
|
@@ -2032,7 +2032,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account2, chatI
|
|
|
2032
2032
|
return passes;
|
|
2033
2033
|
}, "applyTaskRulesToChats");
|
|
2034
2034
|
|
|
2035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
2036
2036
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
2037
2037
|
const tags = /* @__PURE__ */ new Map();
|
|
2038
2038
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -2041,7 +2041,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
2041
2041
|
return tags;
|
|
2042
2042
|
}, "taskTagFilters");
|
|
2043
2043
|
|
|
2044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
2045
2045
|
var DAY = 864e5;
|
|
2046
2046
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
2047
2047
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -2295,7 +2295,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
2295
2295
|
};
|
|
2296
2296
|
}, "agendaItem");
|
|
2297
2297
|
|
|
2298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
2299
2299
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
2300
2300
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
2301
2301
|
const fail5 = /* @__PURE__ */ __name(() => {
|
|
@@ -2359,7 +2359,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
}, "validateContextEvidencePage");
|
|
2361
2361
|
|
|
2362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
2363
2363
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
2364
2364
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
2365
2365
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -2412,7 +2412,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
2412
2412
|
};
|
|
2413
2413
|
}, "contextReadBudget");
|
|
2414
2414
|
|
|
2415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
2416
2416
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
2417
2417
|
if (!port || typeof port.read !== "function")
|
|
2418
2418
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -2456,7 +2456,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
2456
2456
|
};
|
|
2457
2457
|
}, "createContextEvidenceReader");
|
|
2458
2458
|
|
|
2459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
2460
2460
|
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");
|
|
2461
2461
|
var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) => {
|
|
2462
2462
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -2472,10 +2472,10 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size4 = 240, options = {}) =
|
|
|
2472
2472
|
}, "excerpt");
|
|
2473
2473
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
2474
2474
|
|
|
2475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
2476
2476
|
import { createInterface } from "node:readline";
|
|
2477
2477
|
|
|
2478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
2479
2479
|
import { createHash } from "node:crypto";
|
|
2480
2480
|
var MAX_ID = 512;
|
|
2481
2481
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
@@ -2705,7 +2705,7 @@ var envelopeOfVcard = /* @__PURE__ */ __name((text2, { provider, account: accoun
|
|
|
2705
2705
|
};
|
|
2706
2706
|
}, "envelopeOfVcard");
|
|
2707
2707
|
|
|
2708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/ingest.js
|
|
2709
2709
|
var emptyReceipt = /* @__PURE__ */ __name((dryRun, errors) => ({
|
|
2710
2710
|
dryRun,
|
|
2711
2711
|
source: null,
|
|
@@ -2805,7 +2805,7 @@ var ingestVcard = /* @__PURE__ */ __name(async (store, text2, { provider, batchI
|
|
|
2805
2805
|
return { ...await ingest(store, envelope, options), vcard: issues };
|
|
2806
2806
|
}, "ingestVcard");
|
|
2807
2807
|
|
|
2808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/shared.js
|
|
2809
2809
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
2810
2810
|
var folded = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "folded");
|
|
2811
2811
|
var wholeWords = /* @__PURE__ */ __name((term) => new RegExp(`(?<![\\p{L}\\p{N}\\p{M}_])${escaped(normalizeVocabularyName(term))}(?![\\p{L}\\p{N}\\p{M}_])`, "u"), "wholeWords");
|
|
@@ -2849,7 +2849,7 @@ var identitiesIn = /* @__PURE__ */ __name(async (store, people, provider) => {
|
|
|
2849
2849
|
var remembered = /* @__PURE__ */ __name((input, key, read) => input.remember ? input.remember(key, read) : read(), "remembered");
|
|
2850
2850
|
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");
|
|
2851
2851
|
|
|
2852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/alias-hits.js
|
|
2853
2853
|
var SEARCH_LIMIT = 500;
|
|
2854
2854
|
var aliasWeight = /* @__PURE__ */ __name((hits) => hits >= 10 ? 0.55 : hits >= 3 ? 0.35 : 0, "aliasWeight");
|
|
2855
2855
|
var aliasHits = {
|
|
@@ -2898,7 +2898,7 @@ var aliasHits = {
|
|
|
2898
2898
|
}, "candidates")
|
|
2899
2899
|
};
|
|
2900
2900
|
|
|
2901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-senders.js
|
|
2902
2902
|
var WEIGHT = 0.5;
|
|
2903
2903
|
var LARGE_GROUP_WEIGHT = 0.2;
|
|
2904
2904
|
var LARGE_GROUP = 30;
|
|
@@ -2970,7 +2970,7 @@ var sendersOf2 = /* @__PURE__ */ __name(async (input, chat, reference, key) => {
|
|
|
2970
2970
|
return found;
|
|
2971
2971
|
}, "sendersOf");
|
|
2972
2972
|
|
|
2973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/chat-title.js
|
|
2974
2974
|
var WEIGHT2 = 0.7;
|
|
2975
2975
|
var chatTitle = {
|
|
2976
2976
|
id: "chat-title",
|
|
@@ -3009,7 +3009,7 @@ var chatTitle = {
|
|
|
3009
3009
|
}, "candidates")
|
|
3010
3010
|
};
|
|
3011
3011
|
|
|
3012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/email-domain.js
|
|
3013
3013
|
var WEIGHT3 = 0.3;
|
|
3014
3014
|
var CONTACTS = 500;
|
|
3015
3015
|
var MOST_PAIRS = 200;
|
|
@@ -3070,7 +3070,7 @@ var emailDomain = {
|
|
|
3070
3070
|
}, "candidates")
|
|
3071
3071
|
};
|
|
3072
3072
|
|
|
3073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/mail-thread.js
|
|
3074
3074
|
var NAMED = 0.7;
|
|
3075
3075
|
var MEMBER_ONLY = 0.3;
|
|
3076
3076
|
var READ_LIMIT2 = 500;
|
|
@@ -3144,7 +3144,7 @@ var mailThread = {
|
|
|
3144
3144
|
}, "candidates")
|
|
3145
3145
|
};
|
|
3146
3146
|
|
|
3147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-chats.js
|
|
3148
3148
|
var WEIGHT4 = 0.5;
|
|
3149
3149
|
var memberChats = {
|
|
3150
3150
|
id: "member-chats",
|
|
@@ -3186,7 +3186,7 @@ var memberChats = {
|
|
|
3186
3186
|
}, "candidates")
|
|
3187
3187
|
};
|
|
3188
3188
|
|
|
3189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/member-dialog.js
|
|
3190
3190
|
var WEIGHT5 = 0.6;
|
|
3191
3191
|
var memberDialog = {
|
|
3192
3192
|
id: "member-dialog",
|
|
@@ -3219,7 +3219,7 @@ var memberDialog = {
|
|
|
3219
3219
|
}, "candidates")
|
|
3220
3220
|
};
|
|
3221
3221
|
|
|
3222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
3223
3223
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
3224
3224
|
var DEFAULT_PURPOSES = ["work"];
|
|
3225
3225
|
var LINK_PURPOSE = "work";
|
|
@@ -3249,7 +3249,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
3249
3249
|
...value.split(",").map((one2) => one2.trim()).filter(Boolean)
|
|
3250
3250
|
], "purposeList");
|
|
3251
3251
|
|
|
3252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
3253
3253
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
3254
3254
|
async around(ref, window2) {
|
|
3255
3255
|
const at = parseLocator(ref);
|
|
@@ -3345,7 +3345,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
3345
3345
|
};
|
|
3346
3346
|
}, "storedNeighbours");
|
|
3347
3347
|
|
|
3348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3348
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
3349
3349
|
import { createHash as createHash2 } from "node:crypto";
|
|
3350
3350
|
var DAY2 = 864e5;
|
|
3351
3351
|
var MAX_TIME = 864e13;
|
|
@@ -3661,7 +3661,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
3661
3661
|
return value;
|
|
3662
3662
|
}, "decodeCheckpoint");
|
|
3663
3663
|
|
|
3664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
3665
3665
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
3666
3666
|
var PAGE = 20;
|
|
3667
3667
|
var PEOPLE = 20;
|
|
@@ -4065,7 +4065,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
4065
4065
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
4066
4066
|
}, "peopleOf");
|
|
4067
4067
|
|
|
4068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
4069
4069
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
4070
4070
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
4071
4071
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -4130,7 +4130,7 @@ var matchProjectCandidates = /* @__PURE__ */ __name((catalog, input) => matchVoc
|
|
|
4130
4130
|
omittedMatches: omitted
|
|
4131
4131
|
})), "matchProjectCandidates");
|
|
4132
4132
|
|
|
4133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
4134
4134
|
var KINDS = ["project", "tag", "topic"];
|
|
4135
4135
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
4136
4136
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -4185,7 +4185,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
4185
4185
|
};
|
|
4186
4186
|
}, "findEvidenceMentions");
|
|
4187
4187
|
|
|
4188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
4189
4189
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account2, chatId, { since, until }) => {
|
|
4190
4190
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
4191
4191
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -4496,7 +4496,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
4496
4496
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
4497
4497
|
}, "purposeHintOf");
|
|
4498
4498
|
|
|
4499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/link-scorers/scan.js
|
|
4500
4500
|
var SCORERS = [chatTitle, aliasHits, memberChats, memberDialog, chatSenders, mailThread];
|
|
4501
4501
|
var PERSON_SCORERS = [emailDomain];
|
|
4502
4502
|
var SCAN_BOT = { bot: "memo-scan", kind: "rule" };
|
|
@@ -4752,18 +4752,18 @@ var referenceOf = /* @__PURE__ */ __name((text2) => {
|
|
|
4752
4752
|
}, "referenceOf");
|
|
4753
4753
|
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");
|
|
4754
4754
|
|
|
4755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
4756
4756
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
4757
4757
|
|
|
4758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4758
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
4759
4759
|
import { lstat } from "node:fs/promises";
|
|
4760
4760
|
|
|
4761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
4762
4762
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
4763
4763
|
import { open as open2, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
4764
4764
|
import { join as join2 } from "node:path";
|
|
4765
4765
|
|
|
4766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
4767
4767
|
import { createHash as createHash3 } from "node:crypto";
|
|
4768
4768
|
var metadataLimit = 16384;
|
|
4769
4769
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -4823,7 +4823,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
4823
4823
|
}
|
|
4824
4824
|
}, "readPartialMetadata");
|
|
4825
4825
|
|
|
4826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
4827
4827
|
import { randomUUID } from "node:crypto";
|
|
4828
4828
|
import { open, rename, unlink } from "node:fs/promises";
|
|
4829
4829
|
import { join } from "node:path";
|
|
@@ -4915,7 +4915,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
4915
4915
|
};
|
|
4916
4916
|
}, "partialWriter");
|
|
4917
4917
|
|
|
4918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
4919
4919
|
var NativeRecordingPartialStore = class {
|
|
4920
4920
|
static {
|
|
4921
4921
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -5022,12 +5022,12 @@ var NativeRecordingPartialStore = class {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
};
|
|
5024
5024
|
|
|
5025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
5026
5026
|
import { createHash as createHash5 } from "node:crypto";
|
|
5027
5027
|
import { link } from "node:fs/promises";
|
|
5028
5028
|
import { basename, dirname, join as join4, resolve } from "node:path";
|
|
5029
5029
|
|
|
5030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
5031
5031
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
5032
5032
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
5033
5033
|
signal?.throwIfAborted();
|
|
@@ -5062,7 +5062,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
5062
5062
|
signal?.throwIfAborted();
|
|
5063
5063
|
}, "commitPublication");
|
|
5064
5064
|
|
|
5065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
5066
5066
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
5067
5067
|
import { open as open3, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
5068
5068
|
import { join as join3 } from "node:path";
|
|
@@ -5135,7 +5135,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
5135
5135
|
}
|
|
5136
5136
|
}, "writePublicationJournal");
|
|
5137
5137
|
|
|
5138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
5139
5139
|
var NativeRecordingPublication = class {
|
|
5140
5140
|
static {
|
|
5141
5141
|
__name(this, "NativeRecordingPublication");
|
|
@@ -5208,7 +5208,7 @@ var NativeRecordingPublication = class {
|
|
|
5208
5208
|
}
|
|
5209
5209
|
};
|
|
5210
5210
|
|
|
5211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
5212
5212
|
import { createHash as createHash6 } from "node:crypto";
|
|
5213
5213
|
import { readdir } from "node:fs/promises";
|
|
5214
5214
|
import { isAbsolute, join as join5, resolve as resolve2 } from "node:path";
|
|
@@ -5295,7 +5295,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one2, beforePublish) => wri
|
|
|
5295
5295
|
beforePublish
|
|
5296
5296
|
}), "commitMediaEntry");
|
|
5297
5297
|
|
|
5298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
5299
5299
|
var validator = '"media-completed-v1"';
|
|
5300
5300
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
5301
5301
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -5396,7 +5396,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file2
|
|
|
5396
5396
|
return entry;
|
|
5397
5397
|
}, "archiveMediaFile");
|
|
5398
5398
|
|
|
5399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
5400
5400
|
import { mkdir, realpath } from "node:fs/promises";
|
|
5401
5401
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
5402
5402
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -5463,7 +5463,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory, signal, run
|
|
|
5463
5463
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
5464
5464
|
}, "withMediaArchiveLocks");
|
|
5465
5465
|
|
|
5466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
5467
5467
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
5468
5468
|
if (value === void 0)
|
|
5469
5469
|
return void 0;
|
|
@@ -5616,7 +5616,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
5616
5616
|
}, { create: true });
|
|
5617
5617
|
}, "archiveMedia");
|
|
5618
5618
|
|
|
5619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
5620
5620
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
5621
5621
|
import { basename as basename2, dirname as dirname2, join as join7, resolve as resolve4 } from "node:path";
|
|
5622
5622
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory) => {
|
|
@@ -5769,7 +5769,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
5769
5769
|
}, { additional: [target], createAdditional: !options.dryRun });
|
|
5770
5770
|
}, "moveMediaArchive");
|
|
5771
5771
|
|
|
5772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
5773
5773
|
import { writeFileSync } from "node:fs";
|
|
5774
5774
|
import { join as join8 } from "node:path";
|
|
5775
5775
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -5794,7 +5794,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
5794
5794
|
`);
|
|
5795
5795
|
await nativeRuntime({ env, progress });
|
|
5796
5796
|
progress(`${model.id}: loading it once to check it works`);
|
|
5797
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
5797
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-WUKOASQG.js");
|
|
5798
5798
|
const embedder = await openEmbedder2(model, directory);
|
|
5799
5799
|
try {
|
|
5800
5800
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -5815,7 +5815,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
5815
5815
|
}
|
|
5816
5816
|
await nativeRuntime({ env, progress });
|
|
5817
5817
|
progress(`${model.id}: loading it once to check it works`);
|
|
5818
|
-
const { openReranker } = await import("./rerank-
|
|
5818
|
+
const { openReranker } = await import("./rerank-QHJZJK3Q.js");
|
|
5819
5819
|
const reranker = await openReranker(model, directory);
|
|
5820
5820
|
try {
|
|
5821
5821
|
await reranker.score("check", ["check"]);
|
|
@@ -5833,7 +5833,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
5833
5833
|
await installFiles(placedImage(model, directory), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
5834
5834
|
}
|
|
5835
5835
|
progress(`${model.id}: loading it once to check it works`);
|
|
5836
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
5836
|
+
const { openPictureEmbedder } = await import("./embedder-UBRAXRDZ.js");
|
|
5837
5837
|
const embedder = await openPictureEmbedder(model, directory);
|
|
5838
5838
|
try {
|
|
5839
5839
|
const vector = await embedder.embedQuery("check");
|
|
@@ -5845,7 +5845,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
5845
5845
|
return { model, directory };
|
|
5846
5846
|
}, "downloadImageModel");
|
|
5847
5847
|
|
|
5848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
5849
5849
|
var MONEY_REQUEST = "money-request";
|
|
5850
5850
|
var MONEY_DONE = "money-done";
|
|
5851
5851
|
var PROMISE = "promise";
|
|
@@ -5879,10 +5879,10 @@ var MONEY_WORDS = [
|
|
|
5879
5879
|
}
|
|
5880
5880
|
];
|
|
5881
5881
|
|
|
5882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
5883
5883
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
5884
5884
|
|
|
5885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
5886
5886
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
5887
5887
|
var MONEY_DONE_FORMS = words([
|
|
5888
5888
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -5922,7 +5922,7 @@ var PROMISE_FORMS = words([
|
|
|
5922
5922
|
"estar\xE1 listo"
|
|
5923
5923
|
]);
|
|
5924
5924
|
|
|
5925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
5926
5926
|
var EXCERPT_CHARS = 80;
|
|
5927
5927
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
5928
5928
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -5944,7 +5944,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
5944
5944
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
5945
5945
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
5946
5946
|
|
|
5947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
5948
5948
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
5949
5949
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
5950
5950
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -6025,7 +6025,7 @@ var amounts = {
|
|
|
6025
6025
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
6026
6026
|
};
|
|
6027
6027
|
|
|
6028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
6029
6029
|
var children = {
|
|
6030
6030
|
id: "children",
|
|
6031
6031
|
version: 1,
|
|
@@ -6054,7 +6054,7 @@ var children = {
|
|
|
6054
6054
|
}, "read")
|
|
6055
6055
|
};
|
|
6056
6056
|
|
|
6057
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
6058
6058
|
var coverage = {
|
|
6059
6059
|
id: "coverage",
|
|
6060
6060
|
version: 1,
|
|
@@ -6083,7 +6083,7 @@ var coverage = {
|
|
|
6083
6083
|
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")
|
|
6084
6084
|
};
|
|
6085
6085
|
|
|
6086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
6087
6087
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
6088
6088
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
6089
6089
|
signal: "payments",
|
|
@@ -6133,7 +6133,7 @@ var payments = {
|
|
|
6133
6133
|
}, "read")
|
|
6134
6134
|
};
|
|
6135
6135
|
|
|
6136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
6137
6137
|
var PATTERNS_PER_CHAT = 3;
|
|
6138
6138
|
var DAY3 = 864e5;
|
|
6139
6139
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -6222,7 +6222,7 @@ var promises = {
|
|
|
6222
6222
|
}, "read")
|
|
6223
6223
|
};
|
|
6224
6224
|
|
|
6225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
6226
6226
|
var PER_SIDE = 5;
|
|
6227
6227
|
var WEEK = 7 * 864e5;
|
|
6228
6228
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -6253,7 +6253,7 @@ var questions2 = {
|
|
|
6253
6253
|
}, "attention")
|
|
6254
6254
|
};
|
|
6255
6255
|
|
|
6256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
6257
6257
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
6258
6258
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one2) => one2.id === id2), "byId");
|
|
6259
6259
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -6321,7 +6321,7 @@ var replyNext = {
|
|
|
6321
6321
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
6322
6322
|
};
|
|
6323
6323
|
|
|
6324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
6325
6325
|
var escaped2 = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
6326
6326
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped2(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
6327
6327
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -6367,7 +6367,7 @@ var topics = {
|
|
|
6367
6367
|
}, "read")
|
|
6368
6368
|
};
|
|
6369
6369
|
|
|
6370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
6371
6371
|
var STATUS_SIGNALS = [
|
|
6372
6372
|
replyNext,
|
|
6373
6373
|
questions2,
|
|
@@ -6379,7 +6379,7 @@ var STATUS_SIGNALS = [
|
|
|
6379
6379
|
children
|
|
6380
6380
|
];
|
|
6381
6381
|
|
|
6382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
6383
6383
|
var DAY4 = 864e5;
|
|
6384
6384
|
var STATUS_WINDOW = 300;
|
|
6385
6385
|
var STATUS_CHATS = 16;
|
|
@@ -6568,7 +6568,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
6568
6568
|
};
|
|
6569
6569
|
}, "projectStatus");
|
|
6570
6570
|
|
|
6571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/project-activity.js
|
|
6572
6572
|
var TOP = 3;
|
|
6573
6573
|
var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
6574
6574
|
const until = input.until ?? Date.now();
|
|
@@ -6630,7 +6630,7 @@ var projectActivity = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
6630
6630
|
}, "projectActivity");
|
|
6631
6631
|
var refOf = /* @__PURE__ */ __name((chat) => formatReference({ type: "chat", provider: chat.provider, account: chat.account, chat: chat.chat }), "refOf");
|
|
6632
6632
|
|
|
6633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
6634
6634
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
6635
6635
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
6636
6636
|
if (deps.offline)
|
|
@@ -6702,7 +6702,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
6702
6702
|
};
|
|
6703
6703
|
}, "accountService");
|
|
6704
6704
|
|
|
6705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
6706
6706
|
var MINUTE = 6e4;
|
|
6707
6707
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
6708
6708
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -6721,7 +6721,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
6721
6721
|
return new Date(at - at % MINUTE).toISOString();
|
|
6722
6722
|
}, "sendTime");
|
|
6723
6723
|
|
|
6724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
6725
6725
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
6726
6726
|
try {
|
|
6727
6727
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -6968,7 +6968,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
6968
6968
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
6969
6969
|
}, "linkLimits");
|
|
6970
6970
|
|
|
6971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
6972
6972
|
var THREADS_PAGE = 500;
|
|
6973
6973
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
6974
6974
|
const account2 = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -7047,7 +7047,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
7047
7047
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
7048
7048
|
}, "readMail");
|
|
7049
7049
|
|
|
7050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
7051
7051
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
7052
7052
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
7053
7053
|
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");
|
|
@@ -7416,7 +7416,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account2, request, messen
|
|
|
7416
7416
|
};
|
|
7417
7417
|
}, "statsLucene");
|
|
7418
7418
|
|
|
7419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
7420
7420
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
7421
7421
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
7422
7422
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -7456,7 +7456,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
7456
7456
|
};
|
|
7457
7457
|
}, "dateWindow");
|
|
7458
7458
|
|
|
7459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
7460
7460
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
7461
7461
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
7462
7462
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -7625,7 +7625,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
7625
7625
|
};
|
|
7626
7626
|
}, "readRankingSelection");
|
|
7627
7627
|
|
|
7628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
7629
7629
|
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");
|
|
7630
7630
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
7631
7631
|
command,
|
|
@@ -7635,7 +7635,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
7635
7635
|
fieldsVersion: FIELD_VERSION
|
|
7636
7636
|
}), "searchRecordOf");
|
|
7637
7637
|
|
|
7638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
7639
7639
|
function invalid2(message) {
|
|
7640
7640
|
throw new CliError("validation_error", message);
|
|
7641
7641
|
}
|
|
@@ -7929,10 +7929,10 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
7929
7929
|
}, "evidence")
|
|
7930
7930
|
}), "adminStatisticsService");
|
|
7931
7931
|
|
|
7932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
7933
7933
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
7934
7934
|
|
|
7935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
7936
7936
|
var REQUEST_MS = 400;
|
|
7937
7937
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
7938
7938
|
const lowest = ranges[0];
|
|
@@ -7955,7 +7955,7 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
7955
7955
|
};
|
|
7956
7956
|
}, "estimateBackfill");
|
|
7957
7957
|
|
|
7958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
7959
7959
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
7960
7960
|
if (isCliFailure(error))
|
|
7961
7961
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -8038,7 +8038,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
8038
8038
|
};
|
|
8039
8039
|
}, "mergeBatches");
|
|
8040
8040
|
|
|
8041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
8042
8042
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
8043
8043
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
8044
8044
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -8061,7 +8061,7 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
8061
8061
|
}
|
|
8062
8062
|
}, "patiently");
|
|
8063
8063
|
|
|
8064
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
8065
8065
|
var RULES_VERSION = 5;
|
|
8066
8066
|
var LOOK_BACK = 50;
|
|
8067
8067
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -8151,7 +8151,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
8151
8151
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
8152
8152
|
var link2 = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
8153
8153
|
|
|
8154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
8155
8155
|
var CONTEXT_MESSAGES = 3;
|
|
8156
8156
|
var CONTEXT_MINUTES = 10;
|
|
8157
8157
|
var MAX_CHARS = 1200;
|
|
@@ -8175,12 +8175,12 @@ var context = {
|
|
|
8175
8175
|
}, "describe")
|
|
8176
8176
|
};
|
|
8177
8177
|
|
|
8178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
8179
8179
|
var BUILT_INS = [context];
|
|
8180
8180
|
var providers = [...BUILT_INS];
|
|
8181
8181
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
8182
8182
|
|
|
8183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
8184
8184
|
var READ_PAGE = 5e3;
|
|
8185
8185
|
var CHAIN = 50;
|
|
8186
8186
|
var CONVERSATION_QUERY = {
|
|
@@ -8332,7 +8332,7 @@ var sized = /* @__PURE__ */ __name((size4) => {
|
|
|
8332
8332
|
return size4;
|
|
8333
8333
|
}, "sized");
|
|
8334
8334
|
|
|
8335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
8336
8336
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
8337
8337
|
var MESSAGE_PAGE = 5e3;
|
|
8338
8338
|
var PER_SESSION = 8;
|
|
@@ -8351,7 +8351,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
8351
8351
|
price: remote.price,
|
|
8352
8352
|
installed: true,
|
|
8353
8353
|
perBatch: PER_REQUEST * concurrency,
|
|
8354
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
8354
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-Z4PWHZ5N.js")).openRemote(remote, apiKey, {
|
|
8355
8355
|
concurrency,
|
|
8356
8356
|
env: deps.env ?? process.env
|
|
8357
8357
|
}), "open")
|
|
@@ -8371,7 +8371,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
8371
8371
|
if (!isTextModelInstalled(model, directory))
|
|
8372
8372
|
throw notDownloaded(model.id);
|
|
8373
8373
|
if (apart) {
|
|
8374
|
-
const { openProcess } = await import("./process-
|
|
8374
|
+
const { openProcess } = await import("./process-756VBE7E.js");
|
|
8375
8375
|
return openProcess(model, directory, { threads: threads ?? defaultThreads() });
|
|
8376
8376
|
}
|
|
8377
8377
|
return openEmbedder(model, directory, { threads: threads ?? defaultThreads() });
|
|
@@ -8660,7 +8660,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
8660
8660
|
return { ...one2, state };
|
|
8661
8661
|
}, "shaped");
|
|
8662
8662
|
|
|
8663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
8664
8664
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
8665
8665
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
8666
8666
|
for (const [key, value, maximum] of [
|
|
@@ -8713,7 +8713,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
8713
8713
|
}
|
|
8714
8714
|
}, "catchUpSearch");
|
|
8715
8715
|
|
|
8716
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
8717
8717
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
8718
8718
|
if (deps.reads === "store") {
|
|
8719
8719
|
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`);
|
|
@@ -9094,7 +9094,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account2, chatId, key, byTi
|
|
|
9094
9094
|
return message?.timestamp ?? fallback;
|
|
9095
9095
|
}, "timeOfKey");
|
|
9096
9096
|
|
|
9097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
9098
9098
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
9099
9099
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
9100
9100
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -9231,16 +9231,16 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
9231
9231
|
return { plan, repair };
|
|
9232
9232
|
}, "gapsService");
|
|
9233
9233
|
|
|
9234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9234
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
9235
9235
|
import { createHash as createHash10 } from "node:crypto";
|
|
9236
9236
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
9237
9237
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
9238
9238
|
|
|
9239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9239
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
9240
9240
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
9241
9241
|
import { basename as basename4, join as join9, relative as relative2, sep as sep2 } from "node:path";
|
|
9242
9242
|
|
|
9243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
9244
9244
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
9245
9245
|
import { open as open4, stat } from "node:fs/promises";
|
|
9246
9246
|
import { basename as basename3, dirname as dirname3, extname, isAbsolute as isAbsolute2, relative, resolve as resolve5, sep } from "node:path";
|
|
@@ -9454,7 +9454,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
9454
9454
|
return { name, source };
|
|
9455
9455
|
}, "readStickerFile");
|
|
9456
9456
|
|
|
9457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
9458
9458
|
var MAX_FILES = 1e4;
|
|
9459
9459
|
var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory, app, env) => {
|
|
9460
9460
|
if (refusedPlace(directory, app, env))
|
|
@@ -9523,7 +9523,7 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory, app,
|
|
|
9523
9523
|
return choices;
|
|
9524
9524
|
}, "directoryPaths");
|
|
9525
9525
|
|
|
9526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
9527
9527
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
9528
9528
|
const limits = pdfPreviewLimits(env);
|
|
9529
9529
|
const cancelled2 = /* @__PURE__ */ __name(() => {
|
|
@@ -9600,7 +9600,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
9600
9600
|
}
|
|
9601
9601
|
}, "pdfPreview");
|
|
9602
9602
|
|
|
9603
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
9604
9604
|
import { createHash as createHash8 } from "node:crypto";
|
|
9605
9605
|
import { constants } from "node:fs";
|
|
9606
9606
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -9708,7 +9708,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
9708
9708
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
9709
9709
|
}, "transferMime");
|
|
9710
9710
|
|
|
9711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
9712
9712
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
9713
9713
|
import { link as link3, rm } from "node:fs/promises";
|
|
9714
9714
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -9822,12 +9822,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory, fallbackName, { uniqu
|
|
|
9822
9822
|
}
|
|
9823
9823
|
}, "save");
|
|
9824
9824
|
|
|
9825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
9826
9826
|
import { createHash as createHash9 } from "node:crypto";
|
|
9827
9827
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
9828
9828
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
9829
9829
|
|
|
9830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
9831
9831
|
var GROUP_SETTINGS = [
|
|
9832
9832
|
"allCanPin",
|
|
9833
9833
|
"onlyAdminsAdd",
|
|
@@ -9841,7 +9841,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
9841
9841
|
var senderIsMe = /* @__PURE__ */ __name((message, account2) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account2, "senderIsMe");
|
|
9842
9842
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
9843
9843
|
|
|
9844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
9845
9845
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
9846
9846
|
var PICTURE_FLOOR = 0.25;
|
|
9847
9847
|
var PAGE3 = 50;
|
|
@@ -9882,7 +9882,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
9882
9882
|
const directory = imageModelsDirectory(deps.env);
|
|
9883
9883
|
if (!isImageModelInstalled(model2, directory))
|
|
9884
9884
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
9885
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
9885
|
+
const { openPictureEmbedder } = await import("./embedder-UBRAXRDZ.js");
|
|
9886
9886
|
return openPictureEmbedder(model2, directory);
|
|
9887
9887
|
}, "open");
|
|
9888
9888
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -10056,7 +10056,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
10056
10056
|
}, "search")
|
|
10057
10057
|
}), "withPictures");
|
|
10058
10058
|
|
|
10059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
10060
10060
|
var ATTACHMENT_QUERY = {
|
|
10061
10061
|
entity: "attachment",
|
|
10062
10062
|
backend: "sql",
|
|
@@ -10527,7 +10527,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
10527
10527
|
}, "readPicture")
|
|
10528
10528
|
}), "attachmentsService");
|
|
10529
10529
|
|
|
10530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
10531
10531
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
10532
10532
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
10533
10533
|
const store = await accountStore(deps);
|
|
@@ -10557,7 +10557,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
10557
10557
|
}, "list")
|
|
10558
10558
|
}), "chatDocumentsService");
|
|
10559
10559
|
|
|
10560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
10561
10561
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
10562
10562
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
10563
10563
|
const units = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -10644,7 +10644,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
10644
10644
|
}
|
|
10645
10645
|
}, "isRetentionSelection");
|
|
10646
10646
|
|
|
10647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
10648
10648
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
10649
10649
|
const fields = text2.split(",").map((one2) => one2.trim());
|
|
10650
10650
|
if (!fields.length || fields.some((one2) => !COUNTER_FIELDS.includes(one2)) || new Set(fields).size !== fields.length)
|
|
@@ -10851,7 +10851,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
10851
10851
|
};
|
|
10852
10852
|
}, "countersService");
|
|
10853
10853
|
|
|
10854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
10855
10855
|
var SYNC_KEY = "messages.sync-first";
|
|
10856
10856
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
10857
10857
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -10983,7 +10983,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
10983
10983
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
10984
10984
|
}), "withRefresh");
|
|
10985
10985
|
|
|
10986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
10987
10987
|
var CANDIDATES = 50;
|
|
10988
10988
|
var WORD_HITS = 200;
|
|
10989
10989
|
var RRF_K = 60;
|
|
@@ -11258,13 +11258,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
11258
11258
|
return mean2.map((value) => value / length);
|
|
11259
11259
|
}, "meanOf");
|
|
11260
11260
|
|
|
11261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
11262
11262
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
11263
11263
|
...embeddingsMaintenance(deps),
|
|
11264
11264
|
...embeddingsSearch(deps)
|
|
11265
11265
|
}), "embeddingsService");
|
|
11266
11266
|
|
|
11267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
11268
11268
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
11269
11269
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
11270
11270
|
if (deps.offline)
|
|
@@ -11405,7 +11405,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
11405
11405
|
};
|
|
11406
11406
|
}, "foldersService");
|
|
11407
11407
|
|
|
11408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
11409
11409
|
var INBOX_CHATS = 20;
|
|
11410
11410
|
var REVIEW_DAYS = 3;
|
|
11411
11411
|
var UNANSWERED_HOURS = 24;
|
|
@@ -11613,7 +11613,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
11613
11613
|
};
|
|
11614
11614
|
}, "inboxService");
|
|
11615
11615
|
|
|
11616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
11617
11617
|
var REVIEW_COUNT = 500;
|
|
11618
11618
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
11619
11619
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -11692,7 +11692,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
11692
11692
|
};
|
|
11693
11693
|
}, "mentionsService");
|
|
11694
11694
|
|
|
11695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
11696
11696
|
var invalid3 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
11697
11697
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
11698
11698
|
const { text: text2, spans } = formatted2;
|
|
@@ -11752,7 +11752,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
11752
11752
|
};
|
|
11753
11753
|
}, "visibleFormattedText");
|
|
11754
11754
|
|
|
11755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
11756
11756
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
11757
11757
|
position,
|
|
11758
11758
|
kind,
|
|
@@ -11801,7 +11801,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
11801
11801
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
11802
11802
|
}, "validatePermalink");
|
|
11803
11803
|
|
|
11804
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
11805
11805
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
11806
11806
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
11807
11807
|
return `${seconds / 86400}d`;
|
|
@@ -11833,7 +11833,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
11833
11833
|
return seconds;
|
|
11834
11834
|
}, "pinDurationOf");
|
|
11835
11835
|
|
|
11836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
11837
11837
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
11838
11838
|
if (sendAs === void 0) {
|
|
11839
11839
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -11858,7 +11858,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
11858
11858
|
return sendAs;
|
|
11859
11859
|
}, "typedSendAs");
|
|
11860
11860
|
|
|
11861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
11862
11862
|
var TOTAL_CAP = 1e4;
|
|
11863
11863
|
var totalOf = /* @__PURE__ */ __name((count2, shown, hasMore, exact = true) => {
|
|
11864
11864
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -11869,7 +11869,7 @@ var totalOf = /* @__PURE__ */ __name((count2, shown, hasMore, exact = true) => {
|
|
|
11869
11869
|
return { value: count2, relation: exact ? "eq" : "gte" };
|
|
11870
11870
|
}, "totalOf");
|
|
11871
11871
|
|
|
11872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
11873
11873
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
11874
11874
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
11875
11875
|
let narrows = false;
|
|
@@ -11898,7 +11898,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
11898
11898
|
return wanted(root).join(" ").trim();
|
|
11899
11899
|
}, "meaningWords");
|
|
11900
11900
|
|
|
11901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
11902
11902
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
11903
11903
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
11904
11904
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -12032,7 +12032,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
12032
12032
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
12033
12033
|
}, "questionLookup");
|
|
12034
12034
|
|
|
12035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
12036
12036
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
12037
12037
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
12038
12038
|
var searchCombined = /* @__PURE__ */ __name(async (store, account2, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -12226,7 +12226,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
12226
12226
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
12227
12227
|
}, "signals");
|
|
12228
12228
|
|
|
12229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
12230
12230
|
var MEANING_DEPTH = 100;
|
|
12231
12231
|
var RRF_K2 = 60;
|
|
12232
12232
|
var RERANK_DEPTH = 50;
|
|
@@ -12552,7 +12552,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
12552
12552
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
12553
12553
|
}, "mixedWithReranker");
|
|
12554
12554
|
|
|
12555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
12556
12556
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
12557
12557
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
12558
12558
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -12751,7 +12751,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account2, chat, mes
|
|
|
12751
12751
|
return result;
|
|
12752
12752
|
}, "readThreadContext");
|
|
12753
12753
|
|
|
12754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
12755
12755
|
var SEARCH_FILL_MS = 200;
|
|
12756
12756
|
var statsStore = /* @__PURE__ */ __name(async (store, account2, request, messenger = {}) => {
|
|
12757
12757
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -12820,7 +12820,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
12820
12820
|
}, "accountOf");
|
|
12821
12821
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account: account2 }) => `${provider}/${account2}`, "keyOf");
|
|
12822
12822
|
|
|
12823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
12824
12824
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
12825
12825
|
const chosen = chosenTextModel(env);
|
|
12826
12826
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -12835,7 +12835,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
12835
12835
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
12836
12836
|
}, "meaningModel");
|
|
12837
12837
|
|
|
12838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
12839
12839
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
12840
12840
|
try {
|
|
12841
12841
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -12914,7 +12914,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
12914
12914
|
}
|
|
12915
12915
|
}, "meaningLane");
|
|
12916
12916
|
|
|
12917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
12918
12918
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
12919
12919
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
12920
12920
|
if (choice === "off")
|
|
@@ -12926,9 +12926,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
12926
12926
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
12927
12927
|
try {
|
|
12928
12928
|
const warm = deps.embedders;
|
|
12929
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
12929
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-756VBE7E.js")).openRerankerProcess(model, directory, {
|
|
12930
12930
|
threads: defaultThreads()
|
|
12931
|
-
})) : await (await import("./rerank-
|
|
12931
|
+
})) : await (await import("./rerank-QHJZJK3Q.js")).openReranker(model, directory);
|
|
12932
12932
|
return {
|
|
12933
12933
|
model: model.id,
|
|
12934
12934
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -12948,7 +12948,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
12948
12948
|
};
|
|
12949
12949
|
}, "rerankLane");
|
|
12950
12950
|
|
|
12951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
12952
12952
|
var DAY5 = 864e5;
|
|
12953
12953
|
var SPAN = { start: 0, end: 0 };
|
|
12954
12954
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -13073,7 +13073,7 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
13073
13073
|
};
|
|
13074
13074
|
}, "questionPeriod");
|
|
13075
13075
|
|
|
13076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
13077
13077
|
import { createHash as createHash11 } from "node:crypto";
|
|
13078
13078
|
var refOf2 = /* @__PURE__ */ __name((target) => target.ref ?? `document:${target.documentId}`, "refOf");
|
|
13079
13079
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
@@ -13081,7 +13081,7 @@ var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}
|
|
|
13081
13081
|
const directory = imageModelsDirectory(env);
|
|
13082
13082
|
if (!isImageModelInstalled(model, directory))
|
|
13083
13083
|
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 });
|
|
13084
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
13084
|
+
const { openPictureEmbedder } = await import("./embedder-UBRAXRDZ.js");
|
|
13085
13085
|
return openPictureEmbedder(model, directory);
|
|
13086
13086
|
}, "openPictureEmbedderFor");
|
|
13087
13087
|
var savePicture = /* @__PURE__ */ __name(async (store, target, bytes2, options = {}) => {
|
|
@@ -13102,7 +13102,7 @@ var savePicture = /* @__PURE__ */ __name(async (store, target, bytes2, options =
|
|
|
13102
13102
|
}, "savePicture");
|
|
13103
13103
|
var removePicture = /* @__PURE__ */ __name((store, target) => store.notes.removePicture(refOf2(target)), "removePicture");
|
|
13104
13104
|
|
|
13105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
13106
13106
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
13107
13107
|
const metadata = note.frontMatter;
|
|
13108
13108
|
const account2 = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -13124,7 +13124,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
13124
13124
|
};
|
|
13125
13125
|
}, "documentSource");
|
|
13126
13126
|
|
|
13127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
13128
13128
|
var SECTION = "enrichment";
|
|
13129
13129
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
13130
13130
|
var DEFAULT_BASE_URLS = {
|
|
@@ -13199,7 +13199,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
13199
13199
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
13200
13200
|
}, "costOf");
|
|
13201
13201
|
|
|
13202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
13203
13203
|
var ENRICH_PER_RUN = 600;
|
|
13204
13204
|
var BATCH = 20;
|
|
13205
13205
|
var CONCURRENCY = 4;
|
|
@@ -13463,7 +13463,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
13463
13463
|
};
|
|
13464
13464
|
}, "enrichmentState");
|
|
13465
13465
|
|
|
13466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
13467
13467
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
13468
13468
|
let root;
|
|
13469
13469
|
try {
|
|
@@ -13490,7 +13490,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words4) => {
|
|
|
13490
13490
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
13491
13491
|
}, "titleTiers");
|
|
13492
13492
|
|
|
13493
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
13494
13494
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
13495
13495
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
13496
13496
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -13978,7 +13978,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account2, text2, { acco
|
|
|
13978
13978
|
};
|
|
13979
13979
|
}, "searchNotesOf");
|
|
13980
13980
|
|
|
13981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
13982
13982
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
13983
13983
|
var iso = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
13984
13984
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -14096,7 +14096,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
14096
14096
|
};
|
|
14097
14097
|
}, "searchEvents");
|
|
14098
14098
|
|
|
14099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
14100
14100
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
14101
14101
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
14102
14102
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -14126,7 +14126,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words4, anyWo
|
|
|
14126
14126
|
};
|
|
14127
14127
|
}, "searchBusiness");
|
|
14128
14128
|
|
|
14129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
14130
14130
|
var refreshMeetingIndex = /* @__PURE__ */ __name(async (meetings, accountId, signal) => {
|
|
14131
14131
|
let before2 = Number.POSITIVE_INFINITY;
|
|
14132
14132
|
for (; ; ) {
|
|
@@ -14188,7 +14188,7 @@ var searchMeetingHits = /* @__PURE__ */ __name(async (store, query, request, opt
|
|
|
14188
14188
|
return { ...result, selection };
|
|
14189
14189
|
}, "searchMeetingHits");
|
|
14190
14190
|
|
|
14191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
14192
14192
|
var MOST_HITS_PER_MEETING = 3;
|
|
14193
14193
|
var PAGE_ROWS = 200;
|
|
14194
14194
|
var MOST_PAGES = 25;
|
|
@@ -14416,7 +14416,7 @@ var titleItem = /* @__PURE__ */ __name((account2, meeting, query) => ({
|
|
|
14416
14416
|
foundBy: ["title"]
|
|
14417
14417
|
}), "titleItem");
|
|
14418
14418
|
|
|
14419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
14420
14420
|
var SECTION2 = "search_harder";
|
|
14421
14421
|
var HARDER_MODELS = {
|
|
14422
14422
|
anthropic: "claude-haiku-5-5",
|
|
@@ -14678,7 +14678,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
14678
14678
|
};
|
|
14679
14679
|
}, "reorderHarder");
|
|
14680
14680
|
|
|
14681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
14682
14682
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
14683
14683
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
14684
14684
|
const { reason, span } = error.details ?? {};
|
|
@@ -14757,6 +14757,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
14757
14757
|
const discover = !request.exact && questionLookup(request.text) !== void 0;
|
|
14758
14758
|
const cosines = /* @__PURE__ */ new Map();
|
|
14759
14759
|
let coverage2;
|
|
14760
|
+
const meetingAccountsRead = /* @__PURE__ */ new Set();
|
|
14760
14761
|
let meetings;
|
|
14761
14762
|
const messagesOf = /* @__PURE__ */ __name(async (kind) => {
|
|
14762
14763
|
const given = scope?.[kind];
|
|
@@ -14976,6 +14977,8 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
14976
14977
|
continue;
|
|
14977
14978
|
hasMore ||= found.hasMore;
|
|
14978
14979
|
meetings = found.coverage;
|
|
14980
|
+
for (const { id: id2 } of found.read)
|
|
14981
|
+
meetingAccountsRead.add(id2);
|
|
14979
14982
|
lists.push(found.items);
|
|
14980
14983
|
for (const { provider, account: account3 } of found.read)
|
|
14981
14984
|
accounts.push({ resource, provider, account: account3 });
|
|
@@ -14991,7 +14994,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
14991
14994
|
} finally {
|
|
14992
14995
|
await embedders.close();
|
|
14993
14996
|
}
|
|
14994
|
-
let ordered = insidePeriodFirst(oneList(lists, cosines), period);
|
|
14997
|
+
let ordered = insidePeriodFirst(oneList(await withMeetingDocuments(store, lists, meetingAccountsRead), cosines), period);
|
|
14995
14998
|
let harder;
|
|
14996
14999
|
if (request.harder) {
|
|
14997
15000
|
const asking = {
|
|
@@ -15032,6 +15035,34 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
15032
15035
|
...harder === void 0 ? {} : { harder }
|
|
15033
15036
|
};
|
|
15034
15037
|
}, "searchAll");
|
|
15038
|
+
var withMeetingDocuments = /* @__PURE__ */ __name(async (store, lists, read) => {
|
|
15039
|
+
if (!read.size)
|
|
15040
|
+
return lists;
|
|
15041
|
+
const documentOf = /* @__PURE__ */ __name((item2) => item2.kind === "document" && /^document:\d+$/.test(item2.ref) ? Number(item2.ref.slice("document:".length)) : void 0, "documentOf");
|
|
15042
|
+
const documents = lists.flat().flatMap((item2) => documentOf(item2) ?? []);
|
|
15043
|
+
if (!documents.length)
|
|
15044
|
+
return lists;
|
|
15045
|
+
const owners = await store.meetings.documentMeetings(documents);
|
|
15046
|
+
if (!owners.size)
|
|
15047
|
+
return lists;
|
|
15048
|
+
const meetings = new Set(lists.flat().flatMap((item2) => item2.kind === "meeting" ? [item2.meetingId] : []));
|
|
15049
|
+
return lists.map((list3) => list3.flatMap((item2) => {
|
|
15050
|
+
const document = documentOf(item2);
|
|
15051
|
+
const owner = document === void 0 ? void 0 : owners.get(document);
|
|
15052
|
+
if (owner === void 0 || item2.kind === "meeting")
|
|
15053
|
+
return [item2];
|
|
15054
|
+
if (owner.role === "transcript" && meetings.has(owner.meetingId))
|
|
15055
|
+
return [];
|
|
15056
|
+
if (!read.has(owner.accountId))
|
|
15057
|
+
return [item2];
|
|
15058
|
+
return [
|
|
15059
|
+
{
|
|
15060
|
+
...item2,
|
|
15061
|
+
meeting: formatMeetingReference({ type: "meeting", accountId: owner.accountId, meetingId: owner.meetingId })
|
|
15062
|
+
}
|
|
15063
|
+
];
|
|
15064
|
+
}));
|
|
15065
|
+
}, "withMeetingDocuments");
|
|
15035
15066
|
var hitKey = /* @__PURE__ */ __name((item2) => item2.kind === "meeting" ? `${item2.ref}\0${item2.scope}\0${item2.id}` : item2.ref, "hitKey");
|
|
15036
15067
|
var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
15037
15068
|
const place = /* @__PURE__ */ new Map();
|
|
@@ -15060,7 +15091,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
15060
15091
|
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);
|
|
15061
15092
|
}, "insidePeriodFirst");
|
|
15062
15093
|
|
|
15063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
15064
15095
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
15065
15096
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
15066
15097
|
var DEFAULT_BACKEND = "both";
|
|
@@ -15249,7 +15280,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
15249
15280
|
return { report, sources };
|
|
15250
15281
|
}, "searchServer");
|
|
15251
15282
|
|
|
15252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
15253
15284
|
var DELETE_AT_ONCE = 10;
|
|
15254
15285
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
15255
15286
|
const files = fileLinks(attachments);
|
|
@@ -15689,7 +15720,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
15689
15720
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first]} needs a --photo or --file`);
|
|
15690
15721
|
}, "checkMediaOptions");
|
|
15691
15722
|
|
|
15692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
15693
15724
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
15694
15725
|
var RULES2 = {
|
|
15695
15726
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -15704,7 +15735,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
15704
15735
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
15705
15736
|
}), "classifyChannel");
|
|
15706
15737
|
|
|
15707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
15708
15739
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
15709
15740
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
15710
15741
|
const store = await deps.store();
|
|
@@ -15790,7 +15821,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
15790
15821
|
};
|
|
15791
15822
|
}, "metadataService");
|
|
15792
15823
|
|
|
15793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
15794
15825
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
15795
15826
|
var LINK2 = /https?:\/\/\S+/i;
|
|
15796
15827
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -15978,7 +16009,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
15978
16009
|
}, "nextPoint");
|
|
15979
16010
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
15980
16011
|
|
|
15981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
15982
16013
|
import { existsSync, readFileSync } from "node:fs";
|
|
15983
16014
|
import { join as join11 } from "node:path";
|
|
15984
16015
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -16121,7 +16152,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
16121
16152
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
16122
16153
|
}, "assign");
|
|
16123
16154
|
|
|
16124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
16125
16156
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
16126
16157
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
16127
16158
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -16158,7 +16189,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
16158
16189
|
return { chatId, rows, notes };
|
|
16159
16190
|
}, "moderateWith");
|
|
16160
16191
|
|
|
16161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16192
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
16162
16193
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
16163
16194
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
16164
16195
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -16236,7 +16267,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
16236
16267
|
}, "removePerson")
|
|
16237
16268
|
}), "moderatorOf");
|
|
16238
16269
|
|
|
16239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
16240
16271
|
var SCAN = 1e3;
|
|
16241
16272
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
16242
16273
|
const byId2 = new Map(accounts.map((one2) => [one2.id, one2]));
|
|
@@ -16288,7 +16319,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
16288
16319
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
16289
16320
|
}, "personMeetings");
|
|
16290
16321
|
|
|
16291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
16292
16323
|
var CONTEXT_MESSAGES2 = 10;
|
|
16293
16324
|
var CONTEXT_BYTES = 64 * 1024;
|
|
16294
16325
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -16594,10 +16625,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
16594
16625
|
};
|
|
16595
16626
|
}, "personMessages");
|
|
16596
16627
|
|
|
16597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
16598
16629
|
import { createHash as createHash12 } from "node:crypto";
|
|
16599
16630
|
|
|
16600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
16601
16632
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
16602
16633
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
16603
16634
|
const parsed = parseMeetingReference(reference);
|
|
@@ -16645,7 +16676,7 @@ var resolveMeetingReference = /* @__PURE__ */ __name(async (store, accountId, re
|
|
|
16645
16676
|
};
|
|
16646
16677
|
}, "resolveMeetingReference");
|
|
16647
16678
|
|
|
16648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
16649
16680
|
var hash = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
16650
16681
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
16651
16682
|
if (signal?.aborted)
|
|
@@ -16844,7 +16875,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
16844
16875
|
return { ...packet, fingerprint: hash(packet) };
|
|
16845
16876
|
}, "readMeetingEvidence");
|
|
16846
16877
|
|
|
16847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
16848
16879
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
16849
16880
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
16850
16881
|
const requestedAccounts = options.accountIds;
|
|
@@ -16943,7 +16974,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
16943
16974
|
};
|
|
16944
16975
|
}, "personMeetingContext");
|
|
16945
16976
|
|
|
16946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
16947
16978
|
var PREPARE_BYTES = 96 * 1024;
|
|
16948
16979
|
var MEETINGS = 5;
|
|
16949
16980
|
var CUES = 3;
|
|
@@ -17066,7 +17097,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
17066
17097
|
}
|
|
17067
17098
|
}, "meetingsOf");
|
|
17068
17099
|
|
|
17069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
17070
17101
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
17071
17102
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
17072
17103
|
const held = await storeIfOpen(deps);
|
|
@@ -17136,7 +17167,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
17136
17167
|
complete: false
|
|
17137
17168
|
})), "quiet");
|
|
17138
17169
|
|
|
17139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
17140
17171
|
var TIMELINE_ITEMS = 50;
|
|
17141
17172
|
var TIMELINE_MAX = 500;
|
|
17142
17173
|
var SCOPES = ["personal", "work"];
|
|
@@ -17198,7 +17229,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
17198
17229
|
};
|
|
17199
17230
|
}, "personTimeline");
|
|
17200
17231
|
|
|
17201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
17202
17233
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
17203
17234
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
17204
17235
|
const held = await storeIfOpen(deps);
|
|
@@ -17463,7 +17494,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
17463
17494
|
return rest;
|
|
17464
17495
|
}, "withoutPhone");
|
|
17465
17496
|
|
|
17466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
17467
17498
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
17468
17499
|
id: note.id,
|
|
17469
17500
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -17507,7 +17538,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
17507
17538
|
};
|
|
17508
17539
|
}, "privatePeopleService");
|
|
17509
17540
|
|
|
17510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
17511
17542
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
17512
17543
|
total: 0,
|
|
17513
17544
|
population: 0,
|
|
@@ -17763,7 +17794,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
17763
17794
|
}, "evidence")
|
|
17764
17795
|
}), "rankingsService");
|
|
17765
17796
|
|
|
17766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17797
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
17767
17798
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
17768
17799
|
var WAITING_TAIL = 100;
|
|
17769
17800
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -17897,7 +17928,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
17897
17928
|
};
|
|
17898
17929
|
}, "replyStatsService");
|
|
17899
17930
|
|
|
17900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
17901
17932
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
17902
17933
|
id: one2.id,
|
|
17903
17934
|
name: one2.name,
|
|
@@ -18023,7 +18054,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
18023
18054
|
};
|
|
18024
18055
|
}, "searchesService");
|
|
18025
18056
|
|
|
18026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
18027
18058
|
var TAGGING_QUERY = {
|
|
18028
18059
|
entity: "tagging",
|
|
18029
18060
|
backend: "sql",
|
|
@@ -18107,7 +18138,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
18107
18138
|
};
|
|
18108
18139
|
}, "tagsService");
|
|
18109
18140
|
|
|
18110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
18111
18142
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
18112
18143
|
var PERIOD_FIELD = "created";
|
|
18113
18144
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -18238,7 +18269,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
18238
18269
|
}));
|
|
18239
18270
|
}, "meetingNames");
|
|
18240
18271
|
|
|
18241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18272
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
18242
18273
|
var TASK_QUERY = {
|
|
18243
18274
|
entity: "task",
|
|
18244
18275
|
backend: "sql",
|
|
@@ -18738,7 +18769,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account2, task2) => {
|
|
|
18738
18769
|
};
|
|
18739
18770
|
}, "taskView");
|
|
18740
18771
|
|
|
18741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
18742
18773
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
18743
18774
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
18744
18775
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -18937,7 +18968,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
18937
18968
|
};
|
|
18938
18969
|
}, "topicsService");
|
|
18939
18970
|
|
|
18940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
18941
18972
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
18942
18973
|
var GAPS = "crm:gaps";
|
|
18943
18974
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account2) => {
|
|
@@ -18949,7 +18980,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account2) => {
|
|
|
18949
18980
|
}
|
|
18950
18981
|
}, "crmGapsOf");
|
|
18951
18982
|
|
|
18952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
18953
18984
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
18954
18985
|
var CRM_WRITE_DEFAULTS = {
|
|
18955
18986
|
"deals.delete": "ask",
|
|
@@ -18957,10 +18988,10 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
18957
18988
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
18958
18989
|
};
|
|
18959
18990
|
|
|
18960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
18961
18992
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
18962
18993
|
|
|
18963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
18964
18995
|
import { mkdirSync as mkdirSync3, readFileSync as readFileSync2, renameSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
18965
18996
|
import { dirname as dirname4, join as join12 } from "node:path";
|
|
18966
18997
|
var MOST_DEADLINES = 50;
|
|
@@ -19044,11 +19075,11 @@ var FloodMemory = class {
|
|
|
19044
19075
|
}
|
|
19045
19076
|
};
|
|
19046
19077
|
|
|
19047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
19048
19079
|
import { appendFileSync, mkdirSync as mkdirSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
19049
19080
|
import { dirname as dirname6, join as join13 } from "node:path";
|
|
19050
19081
|
|
|
19051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
19052
19083
|
import { closeSync, mkdirSync as mkdirSync4, openSync, statSync, unlinkSync } from "node:fs";
|
|
19053
19084
|
import { dirname as dirname5 } from "node:path";
|
|
19054
19085
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -19115,7 +19146,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
19115
19146
|
}
|
|
19116
19147
|
}, "lockTime");
|
|
19117
19148
|
|
|
19118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
19119
19150
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join13(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
19120
19151
|
var SendJournal = class {
|
|
19121
19152
|
static {
|
|
@@ -19192,7 +19223,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
19192
19223
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
19193
19224
|
}, "withSendId");
|
|
19194
19225
|
|
|
19195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
19196
19227
|
import { existsSync as existsSync2, readFileSync as readFileSync4, rmSync } from "node:fs";
|
|
19197
19228
|
import { join as join14 } from "node:path";
|
|
19198
19229
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join14(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -19304,7 +19335,7 @@ var RecipientList = class {
|
|
|
19304
19335
|
}
|
|
19305
19336
|
};
|
|
19306
19337
|
|
|
19307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
19308
19339
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
19309
19340
|
var READS = /* @__PURE__ */ new Set([
|
|
19310
19341
|
"attachments.extract",
|
|
@@ -19499,7 +19530,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
19499
19530
|
}), "guardFor");
|
|
19500
19531
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
19501
19532
|
|
|
19502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
19503
19534
|
var SECTION_LIMIT = 20;
|
|
19504
19535
|
var STORE_PAGE = 500;
|
|
19505
19536
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -19623,7 +19654,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
19623
19654
|
}, "coverageFor");
|
|
19624
19655
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
19625
19656
|
|
|
19626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
19627
19658
|
var MAIL_ROWS = 500;
|
|
19628
19659
|
var EVENT_ROWS2 = 1e3;
|
|
19629
19660
|
var RECORDED_ROWS = 100;
|
|
@@ -19769,7 +19800,7 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
19769
19800
|
};
|
|
19770
19801
|
}, "communicationsOf");
|
|
19771
19802
|
|
|
19772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
19773
19804
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
19774
19805
|
ref: invoice.ref,
|
|
19775
19806
|
title: invoice.title,
|
|
@@ -19841,7 +19872,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
19841
19872
|
};
|
|
19842
19873
|
}, "moneyOf");
|
|
19843
19874
|
|
|
19844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
19845
19876
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
19846
19877
|
ref: deal.ref,
|
|
19847
19878
|
kind: deal.kind,
|
|
@@ -19984,7 +20015,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
19984
20015
|
};
|
|
19985
20016
|
}, "organizationContext");
|
|
19986
20017
|
|
|
19987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
19988
20019
|
var DAY6 = 864e5;
|
|
19989
20020
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
19990
20021
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -20109,7 +20140,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
20109
20140
|
notRead: context2.coverage.notRead
|
|
20110
20141
|
}), "dealBrief");
|
|
20111
20142
|
|
|
20112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
20113
20144
|
import { createHash as createHash13, randomUUID as randomUUID6 } from "node:crypto";
|
|
20114
20145
|
var hash2 = /* @__PURE__ */ __name((value) => createHash13("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20115
20146
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -20183,7 +20214,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
20183
20214
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
20184
20215
|
}, "prepareEvidencePacket");
|
|
20185
20216
|
|
|
20186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
20187
20218
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat, limit, before: before2 }, messenger = {}) => {
|
|
20188
20219
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
20189
20220
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -20203,7 +20234,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat,
|
|
|
20203
20234
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
20204
20235
|
}, "readEvidencePacket");
|
|
20205
20236
|
|
|
20206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-links.js
|
|
20207
20238
|
var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
20208
20239
|
const { maxMessages, url, ...selecting } = request;
|
|
20209
20240
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20242,10 +20273,10 @@ var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20242
20273
|
};
|
|
20243
20274
|
}, "readMeetingLinks");
|
|
20244
20275
|
|
|
20245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
20246
20277
|
import { createHash as createHash14 } from "node:crypto";
|
|
20247
20278
|
|
|
20248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-validation.js
|
|
20249
20280
|
function invalid5(field, response = false) {
|
|
20250
20281
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid project candidate ${field}`);
|
|
20251
20282
|
}
|
|
@@ -20364,7 +20395,7 @@ var candidateCatalog = /* @__PURE__ */ __name((catalog, limits) => {
|
|
|
20364
20395
|
}
|
|
20365
20396
|
}, "candidateCatalog");
|
|
20366
20397
|
|
|
20367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
20368
20399
|
var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
20369
20400
|
const fixed = snapshotMeetingScope(scope);
|
|
20370
20401
|
if (!Number.isSafeInteger(accountId) || accountId < 1 || typeof ports?.vocabulary?.vocabulary !== "function")
|
|
@@ -20417,7 +20448,7 @@ var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, account
|
|
|
20417
20448
|
};
|
|
20418
20449
|
}, "createMeetingProjectCandidateReader");
|
|
20419
20450
|
|
|
20420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
20421
20452
|
import { createHash as createHash15 } from "node:crypto";
|
|
20422
20453
|
var scopeKeys = [
|
|
20423
20454
|
"accountId",
|
|
@@ -20552,7 +20583,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
20552
20583
|
};
|
|
20553
20584
|
}, "readMeetingProjectDiscovery");
|
|
20554
20585
|
|
|
20555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-review.js
|
|
20556
20587
|
var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
20557
20588
|
const { limit, ...selecting } = request;
|
|
20558
20589
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20560,7 +20591,7 @@ var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20560
20591
|
return { ...review, selection };
|
|
20561
20592
|
}, "readMeetingReview");
|
|
20562
20593
|
|
|
20563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-searches.js
|
|
20564
20595
|
var KIND = ["meetings-search"];
|
|
20565
20596
|
var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
20566
20597
|
const found = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20590,7 +20621,7 @@ var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
|
20590
20621
|
};
|
|
20591
20622
|
}, "meetingSearchesService");
|
|
20592
20623
|
|
|
20593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-stats.js
|
|
20594
20625
|
var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
20595
20626
|
const { timeZone, maxRows, ...selecting } = request;
|
|
20596
20627
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20613,7 +20644,7 @@ var readMeetingCounts = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20613
20644
|
return { ...counts, selection };
|
|
20614
20645
|
}, "readMeetingCounts");
|
|
20615
20646
|
|
|
20616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
20617
20648
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
20618
20649
|
const ref = `person:${uid}`;
|
|
20619
20650
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
@@ -20671,7 +20702,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
20671
20702
|
};
|
|
20672
20703
|
}, "canonicalPersonContext");
|
|
20673
20704
|
|
|
20674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
20675
20706
|
import { createHash as createHash16 } from "node:crypto";
|
|
20676
20707
|
import { existsSync as existsSync3 } from "node:fs";
|
|
20677
20708
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -20802,7 +20833,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
20802
20833
|
return { ...checked2.output, custom: true };
|
|
20803
20834
|
}, "addCustomTextModel");
|
|
20804
20835
|
|
|
20805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
20806
20837
|
var SCOPES2 = ["personal", "work"];
|
|
20807
20838
|
var scopeOf5 = /* @__PURE__ */ __name((scope) => {
|
|
20808
20839
|
if (!SCOPES2.includes(scope))
|
|
@@ -20924,7 +20955,7 @@ var setChatScope = /* @__PURE__ */ __name(async (at, change) => {
|
|
|
20924
20955
|
return { ...key, chat: change.chat, own: scope, scope: effective };
|
|
20925
20956
|
}, "setChatScope");
|
|
20926
20957
|
|
|
20927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
20928
20959
|
var refOf3 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
20929
20960
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
20930
20961
|
const group = groupLockOf(app, env);
|
|
@@ -21035,7 +21066,7 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
21035
21066
|
};
|
|
21036
21067
|
}, "lockedRegistry");
|
|
21037
21068
|
|
|
21038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21069
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
21039
21070
|
import { createHash as createHash17 } from "node:crypto";
|
|
21040
21071
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
21041
21072
|
ref: cue.reference,
|
|
@@ -21153,7 +21184,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
21153
21184
|
return { ...packet, fingerprint: createHash17("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
21154
21185
|
}, "readMeetingHitContext");
|
|
21155
21186
|
|
|
21156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
21157
21188
|
var visible = /* @__PURE__ */ __name((text2) => text2.replace(/[\p{Cc}\p{Cf}]/gu, (value) => value === "\n" || value === " " ? value : `\\u{${value.codePointAt(0)?.toString(16)}}`), "visible");
|
|
21158
21189
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
21159
21190
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -21230,7 +21261,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
21230
21261
|
return { packet, content };
|
|
21231
21262
|
}, "readMeetingPassage");
|
|
21232
21263
|
|
|
21233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-batch.js
|
|
21234
21265
|
var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
21235
21266
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
21236
21267
|
throw new CliError("validation_error", "choose a positive meeting account");
|
|
@@ -21244,10 +21275,10 @@ var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
21244
21275
|
};
|
|
21245
21276
|
}, "createMeetingBatchReader");
|
|
21246
21277
|
|
|
21247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
21248
21279
|
import { createHash as createHash18 } from "node:crypto";
|
|
21249
21280
|
|
|
21250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
21251
21282
|
var positive3 = /* @__PURE__ */ __name((value, name, max) => {
|
|
21252
21283
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
21253
21284
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -21399,7 +21430,7 @@ var applyMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, embe
|
|
|
21399
21430
|
};
|
|
21400
21431
|
}, "applyMeetingEmbedding");
|
|
21401
21432
|
|
|
21402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
21403
21434
|
var DEPTH = 200;
|
|
21404
21435
|
var cursorOf3 = /* @__PURE__ */ __name((value, key) => {
|
|
21405
21436
|
if (value === void 0)
|
|
@@ -21536,7 +21567,7 @@ var searchMeetingsCombined = /* @__PURE__ */ __name(async (store, embedder, type
|
|
|
21536
21567
|
};
|
|
21537
21568
|
}, "searchMeetingsCombined");
|
|
21538
21569
|
|
|
21539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-context.js
|
|
21540
21571
|
var meetingReferences = /* @__PURE__ */ __name((values) => values.map((value) => formatMeetingReference(parseMeetingReference(value))), "meetingReferences");
|
|
21541
21572
|
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21542
21573
|
if (!signal?.aborted)
|
|
@@ -21643,7 +21674,7 @@ var createMeetingContextService = /* @__PURE__ */ __name(async (store, input, op
|
|
|
21643
21674
|
};
|
|
21644
21675
|
}, "createMeetingContextService");
|
|
21645
21676
|
|
|
21646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
|
|
21647
21678
|
var integer2 = /* @__PURE__ */ __name((value, name, max) => {
|
|
21648
21679
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
21649
21680
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -21870,7 +21901,7 @@ var openMeetingEmbedder = /* @__PURE__ */ __name(async (choice, options = {}) =>
|
|
|
21870
21901
|
};
|
|
21871
21902
|
}, "openMeetingEmbedder");
|
|
21872
21903
|
|
|
21873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
21874
21905
|
var communicationFields = {
|
|
21875
21906
|
sources: pipe(array(strictObject({
|
|
21876
21907
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -21902,7 +21933,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
21902
21933
|
return { ...input, after, before: before2 };
|
|
21903
21934
|
}, "communicationRequest");
|
|
21904
21935
|
|
|
21905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
21906
21937
|
var MEETING_PREPARATION_LIMITS = {
|
|
21907
21938
|
meetings: { min: 1, max: 20, default: 5 },
|
|
21908
21939
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -21988,7 +22019,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
21988
22019
|
return { ...input, history };
|
|
21989
22020
|
}, "preparationRequest");
|
|
21990
22021
|
|
|
21991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
21992
22023
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
21993
22024
|
const section = {
|
|
21994
22025
|
readUsage: plan.reader.usage(),
|
|
@@ -22093,7 +22124,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read) => {
|
|
|
22093
22124
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
22094
22125
|
}, "appendPreparationCommunications");
|
|
22095
22126
|
|
|
22096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
22097
22128
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
22098
22129
|
if (port === void 0)
|
|
22099
22130
|
return void 0;
|
|
@@ -22198,7 +22229,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
22198
22229
|
}
|
|
22199
22230
|
}, "validatePreparationCommunications");
|
|
22200
22231
|
|
|
22201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
22202
22233
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
22203
22234
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
22204
22235
|
}, "invalid");
|
|
@@ -22267,7 +22298,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
22267
22298
|
}
|
|
22268
22299
|
}, "appendKnowledgePreparation");
|
|
22269
22300
|
|
|
22270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
22271
22302
|
var invalid8 = /* @__PURE__ */ __name(() => {
|
|
22272
22303
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
22273
22304
|
}, "invalid");
|
|
@@ -22341,7 +22372,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
22341
22372
|
}
|
|
22342
22373
|
}, "appendNotesPreparation");
|
|
22343
22374
|
|
|
22344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
22345
22376
|
var PAGE_LIMIT = 4;
|
|
22346
22377
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
22347
22378
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -22391,7 +22422,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
22391
22422
|
}
|
|
22392
22423
|
}, "appendProjectPreparation");
|
|
22393
22424
|
|
|
22394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
22395
22426
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
22396
22427
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
22397
22428
|
return;
|
|
@@ -22463,7 +22494,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
22463
22494
|
}
|
|
22464
22495
|
}, "appendRelatedPreparation");
|
|
22465
22496
|
|
|
22466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
22467
22498
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
22468
22499
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
22469
22500
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -22601,7 +22632,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
22601
22632
|
};
|
|
22602
22633
|
}, "createMeetingPreparationService");
|
|
22603
22634
|
|
|
22604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-task-proposal.js
|
|
22605
22636
|
import { createHash as createHash19 } from "node:crypto";
|
|
22606
22637
|
var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, reference, kind) => {
|
|
22607
22638
|
if (!TASK_KINDS.includes(kind))
|
|
@@ -22621,7 +22652,7 @@ var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
22621
22652
|
};
|
|
22622
22653
|
}, "proposeMeetingTask");
|
|
22623
22654
|
|
|
22624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/meeting-tasks.js
|
|
22625
22656
|
var accountSnapshot = /* @__PURE__ */ __name((key) => {
|
|
22626
22657
|
const { provider, account: account2, scope } = key;
|
|
22627
22658
|
if (!provider.trim() || provider.includes(":") || !account2.trim())
|
|
@@ -22684,7 +22715,7 @@ var readMeetingTask = /* @__PURE__ */ __name(async (store, account2, id2) => {
|
|
|
22684
22715
|
}
|
|
22685
22716
|
}, "readMeetingTask");
|
|
22686
22717
|
|
|
22687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
22688
22719
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
22689
22720
|
const installer = ports.installer();
|
|
22690
22721
|
const argv = updateCommand(installer, packageName);
|
|
@@ -22749,7 +22780,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
22749
22780
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
22750
22781
|
}, "dayAfter");
|
|
22751
22782
|
|
|
22752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22753
22784
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22754
22785
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22755
22786
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22772,7 +22803,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22772
22803
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22773
22804
|
}, "approveAsTask");
|
|
22774
22805
|
|
|
22775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22776
22807
|
var MAX_IDS = 500;
|
|
22777
22808
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22778
22809
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22814,7 +22845,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22814
22845
|
return ids;
|
|
22815
22846
|
}, "parseProposalIds");
|
|
22816
22847
|
|
|
22817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22818
22849
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22819
22850
|
if (author.type === "person")
|
|
22820
22851
|
return { type: "person", id: author.id };
|
|
@@ -22887,7 +22918,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
22887
22918
|
}, "decide")
|
|
22888
22919
|
}), "reviewedKind");
|
|
22889
22920
|
|
|
22890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22891
22922
|
var FACT_SUMMARIES = {
|
|
22892
22923
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22893
22924
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22962,7 +22993,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22962
22993
|
};
|
|
22963
22994
|
}, "findingsKind");
|
|
22964
22995
|
|
|
22965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
22966
22997
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
22967
22998
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
22968
22999
|
var rowOf2 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23018,7 +23049,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23018
23049
|
}, "decide")
|
|
23019
23050
|
}), "organizationKind");
|
|
23020
23051
|
|
|
23021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
23022
23053
|
var rowOf3 = /* @__PURE__ */ __name((action2) => ({
|
|
23023
23054
|
id: action2.id,
|
|
23024
23055
|
kind: "action",
|
|
@@ -23058,7 +23089,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
23058
23089
|
}, "decide")
|
|
23059
23090
|
}), "actionKind");
|
|
23060
23091
|
|
|
23061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
23062
23093
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23063
23094
|
type: "contract",
|
|
23064
23095
|
list: /* @__PURE__ */ __name((options) => store.contracts.list(options), "list"),
|
|
@@ -23067,7 +23098,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23067
23098
|
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")
|
|
23068
23099
|
}), "contractKind");
|
|
23069
23100
|
|
|
23070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
23071
23102
|
var STATUS = {
|
|
23072
23103
|
proposed: "proposed",
|
|
23073
23104
|
accepted: "confirmed",
|
|
@@ -23110,7 +23141,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23110
23141
|
}, "decide")
|
|
23111
23142
|
}), "factKind");
|
|
23112
23143
|
|
|
23113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
23114
23145
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23115
23146
|
type: "invoice",
|
|
23116
23147
|
list: /* @__PURE__ */ __name((options) => store.finance.invoices(options), "list"),
|
|
@@ -23126,7 +23157,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23126
23157
|
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")
|
|
23127
23158
|
}), "paymentKind");
|
|
23128
23159
|
|
|
23129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
23130
23161
|
var rowOf5 = /* @__PURE__ */ __name((action2) => {
|
|
23131
23162
|
const payload = action2.payload;
|
|
23132
23163
|
const [from, to] = payload.persons;
|
|
@@ -23173,7 +23204,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23173
23204
|
}, "decide")
|
|
23174
23205
|
}), "identityLinkKind");
|
|
23175
23206
|
|
|
23176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
23177
23208
|
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");
|
|
23178
23209
|
var dropped = /* @__PURE__ */ __name((action2) => action2.status !== "proposed" && action2.status !== "rejected" && typeof action2.result?.person !== "string", "dropped");
|
|
23179
23210
|
var rowOf6 = /* @__PURE__ */ __name((store) => async (action2) => {
|
|
@@ -23228,7 +23259,7 @@ var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23228
23259
|
}, "decide")
|
|
23229
23260
|
}), "identitySplitKind");
|
|
23230
23261
|
|
|
23231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
23232
23263
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
23233
23264
|
id: `key:${link4.id}`,
|
|
23234
23265
|
kind: "key_document",
|
|
@@ -23296,7 +23327,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
23296
23327
|
};
|
|
23297
23328
|
}, "keyDocumentKind");
|
|
23298
23329
|
|
|
23299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
23300
23331
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
23301
23332
|
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
23302
23333
|
switch (finding.kind) {
|
|
@@ -23387,7 +23418,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23387
23418
|
};
|
|
23388
23419
|
}, "mailFindingsKind");
|
|
23389
23420
|
|
|
23390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
23391
23422
|
var rowOf8 = /* @__PURE__ */ __name((action2, batch) => {
|
|
23392
23423
|
const findings = batch.input.findings;
|
|
23393
23424
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23454,7 +23485,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23454
23485
|
};
|
|
23455
23486
|
}, "meetingFindingsKind");
|
|
23456
23487
|
|
|
23457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23488
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23458
23489
|
var STATUS2 = {
|
|
23459
23490
|
proposed: "proposed",
|
|
23460
23491
|
confirmed: "confirmed",
|
|
@@ -23495,7 +23526,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23495
23526
|
}, "decide")
|
|
23496
23527
|
}), "memoryKind");
|
|
23497
23528
|
|
|
23498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23499
23530
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23500
23531
|
type: "order",
|
|
23501
23532
|
list: /* @__PURE__ */ __name((options) => store.orders.list(options), "list"),
|
|
@@ -23504,7 +23535,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23504
23535
|
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")
|
|
23505
23536
|
}), "orderKind");
|
|
23506
23537
|
|
|
23507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23508
23539
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23509
23540
|
id: `link:${link4.id}`,
|
|
23510
23541
|
kind: "relationship",
|
|
@@ -23579,7 +23610,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23579
23610
|
};
|
|
23580
23611
|
}, "relationshipKind");
|
|
23581
23612
|
|
|
23582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23583
23614
|
var KIND2 = "relationship_update";
|
|
23584
23615
|
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23585
23616
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23629,7 +23660,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23629
23660
|
}, "decide")
|
|
23630
23661
|
}), "relationshipUpdateKind");
|
|
23631
23662
|
|
|
23632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
23633
23664
|
var rowOf11 = /* @__PURE__ */ __name((action2) => {
|
|
23634
23665
|
const payload = action2.payload;
|
|
23635
23666
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -23672,7 +23703,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23672
23703
|
}, "decide")
|
|
23673
23704
|
}), "sourceReviewKind");
|
|
23674
23705
|
|
|
23675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23706
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
23676
23707
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23677
23708
|
type: "subscription",
|
|
23678
23709
|
list: /* @__PURE__ */ __name((options) => store.subscriptions.list(options), "list"),
|
|
@@ -23691,7 +23722,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23691
23722
|
}, "decide")
|
|
23692
23723
|
}), "subscriptionPriceKind");
|
|
23693
23724
|
|
|
23694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23695
23726
|
var rowOf12 = /* @__PURE__ */ __name((task2) => {
|
|
23696
23727
|
const suggestion = task2.closeSuggestion;
|
|
23697
23728
|
if (suggestion === null)
|
|
@@ -23759,7 +23790,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23759
23790
|
};
|
|
23760
23791
|
}, "taskCloseKind");
|
|
23761
23792
|
|
|
23762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
23763
23794
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23764
23795
|
type: "transaction",
|
|
23765
23796
|
list: /* @__PURE__ */ __name((options) => store.transactions.list(options), "list"),
|
|
@@ -23768,7 +23799,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23768
23799
|
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")
|
|
23769
23800
|
}), "transactionKind");
|
|
23770
23801
|
|
|
23771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23772
23803
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23773
23804
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23774
23805
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23903,7 +23934,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23903
23934
|
return registry;
|
|
23904
23935
|
}, "proposalRegistry");
|
|
23905
23936
|
|
|
23906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/search-all-deprecated.js
|
|
23907
23938
|
var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account2, { meetingAccount, maxMeetings: _maxMeetings, meetingCursor: _meetingCursor, ...request }, messenger = {}, searchMessages, meaning) => {
|
|
23908
23939
|
const { meetings: _meetings, ...found } = await searchAll(store, account2, {
|
|
23909
23940
|
...request,
|
|
@@ -23913,7 +23944,7 @@ var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account2,
|
|
|
23913
23944
|
return found;
|
|
23914
23945
|
}, "searchAllIncludingMeetings");
|
|
23915
23946
|
|
|
23916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidate-validation.js
|
|
23917
23948
|
var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, options) => {
|
|
23918
23949
|
const invalid9 = /* @__PURE__ */ __name((field) => {
|
|
23919
23950
|
throw new CliError("validation_error", `invalid stored project candidate ${field}`);
|
|
@@ -23955,7 +23986,7 @@ var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, optio
|
|
|
23955
23986
|
return { reference, limits, after, afterTranscriptId, signal };
|
|
23956
23987
|
}, "storedCandidateRequest");
|
|
23957
23988
|
|
|
23958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidates.js
|
|
23959
23990
|
var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
23960
23991
|
const fixed = snapshotMeetingScope(scope);
|
|
23961
23992
|
const store = ports?.meetings;
|
|
@@ -24047,7 +24078,7 @@ var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, a
|
|
|
24047
24078
|
};
|
|
24048
24079
|
}, "createStoredMeetingProjectCandidateReader");
|
|
24049
24080
|
|
|
24050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.656.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_dceb8977715cf47b69a8fd97c630c977/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
24051
24082
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
24052
24083
|
const pictures = picturesService(deps);
|
|
24053
24084
|
const base = {
|