@wirecat/drive-cli 0.66.0 → 0.67.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-DVZUVAPQ.js} +14 -14
- package/dist/bundle/{anthropic-5RJMB6O7.js → anthropic-Y45C45O2.js} +8 -8
- package/dist/bundle/{app-server-3RGYXPKG.js → app-server-GTXUOUGD.js} +56 -56
- package/dist/bundle/{bun-L34VEKGG.js → bun-QVJV76QJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-H6IAXQXI.js → bun-sqlite-CC7PIAMH.js} +9 -9
- package/dist/bundle/{chunk-UAKX6DP4.js → chunk-2MEVCMBW.js} +5 -5
- package/dist/bundle/{chunk-7ZGJRVBH.js → chunk-2PIA45FC.js} +4 -4
- package/dist/bundle/{chunk-5PLINHEY.js → chunk-2Y3YBDZX.js} +151 -149
- package/dist/bundle/{chunk-BQXSE645.js → chunk-3RG6LL25.js} +12 -12
- package/dist/bundle/{chunk-3QFUDXMQ.js → chunk-4G7WQNG7.js} +3 -2
- package/dist/bundle/{chunk-5HVJK3ZJ.js → chunk-4VH7M2OD.js} +4 -4
- package/dist/bundle/{chunk-COGWKO2T.js → chunk-5DMPGTNR.js} +3 -3
- package/dist/bundle/{chunk-NYZS2LKF.js → chunk-5TK2YQCO.js} +2 -2
- package/dist/bundle/{chunk-4UHBJSMI.js → chunk-5TSILGTO.js} +508 -450
- package/dist/bundle/{chunk-WYTYHUFH.js → chunk-6ERQE4FS.js} +43 -43
- package/dist/bundle/{chunk-O53WLYX3.js → chunk-7AZCAUST.js} +2 -2
- package/dist/bundle/{chunk-P7HQFII6.js → chunk-7J2IP3WL.js} +7 -7
- package/dist/bundle/{chunk-UNTIVT47.js → chunk-7JKECODO.js} +1 -1
- package/dist/bundle/{chunk-UQPW42HF.js → chunk-AAZPDWRD.js} +1 -1
- package/dist/bundle/{chunk-2S3E2HVV.js → chunk-ABJQ6IDU.js} +17 -17
- package/dist/bundle/{chunk-GY4DAJSK.js → chunk-AJ3DFPRT.js} +35 -6
- package/dist/bundle/{chunk-JLCR24UM.js → chunk-AZKFZ7J7.js} +1 -1
- package/dist/bundle/{chunk-I5R5CMQR.js → chunk-BHSLMJF7.js} +5 -5
- package/dist/bundle/{chunk-AP4MX247.js → chunk-C72WYRXD.js} +12 -12
- package/dist/bundle/{chunk-OZOQLAWK.js → chunk-CWDC6QJM.js} +6 -6
- package/dist/bundle/{chunk-JCHF7LZT.js → chunk-D4MVEOU2.js} +4 -4
- package/dist/bundle/{chunk-M7543RUJ.js → chunk-DAFKV6DJ.js} +220 -15
- package/dist/bundle/{chunk-3SDJIMZB.js → chunk-E3XA56TS.js} +1 -1
- package/dist/bundle/{chunk-IIHZTV6V.js → chunk-EA2OB75T.js} +1 -1
- package/dist/bundle/{chunk-FKKPVPZR.js → chunk-ETAFFY3J.js} +57 -57
- package/dist/bundle/{chunk-QJ57PV55.js → chunk-EXWOOST5.js} +102 -84
- package/dist/bundle/{chunk-PJGOQSE5.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-TYLEICTX.js → chunk-FOMQ4MG3.js} +3 -3
- package/dist/bundle/{chunk-VUUPFDRU.js → chunk-FS2PG2PE.js} +113 -39
- package/dist/bundle/{chunk-JQXK3M5M.js → chunk-HCZYJMBP.js} +1 -1
- package/dist/bundle/{chunk-VR3YKXHL.js → chunk-HJF2QGOX.js} +16 -16
- package/dist/bundle/{chunk-NK4GVFJH.js → chunk-IJCUAKR5.js} +4 -4
- package/dist/bundle/{chunk-XVZNFA2P.js → chunk-IRULPE5M.js} +293 -278
- package/dist/bundle/{chunk-QSELSDWE.js → chunk-JCNEPYQZ.js} +13 -13
- package/dist/bundle/{chunk-FA2TNA5X.js → chunk-JEMBW6IO.js} +1 -1
- package/dist/bundle/{chunk-H7XL6WTW.js → chunk-JJHDV32D.js} +2 -2
- package/dist/bundle/{chunk-LVAPSAHF.js → chunk-JLUQZZ26.js} +8 -8
- package/dist/bundle/{chunk-HPKE2GDP.js → chunk-JO7BJYAP.js} +18 -18
- package/dist/bundle/{chunk-VQKNKJYL.js → chunk-JRFKCYMW.js} +6 -6
- package/dist/bundle/{chunk-IRNDYNQX.js → chunk-JY2GZDJL.js} +4 -4
- package/dist/bundle/{chunk-YTIPTHEE.js → chunk-LSAIXPAX.js} +2 -2
- package/dist/bundle/{chunk-T3ULDA7C.js → chunk-LXRBTXCZ.js} +3 -3
- package/dist/bundle/{chunk-OIF4B526.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-PKM55ZRR.js → chunk-MBLB4TQI.js} +20 -20
- package/dist/bundle/{chunk-HQBLJLYH.js → chunk-MEQNAZ6R.js} +7 -7
- package/dist/bundle/{chunk-TAHISPDE.js → chunk-MEY7URZZ.js} +39 -35
- package/dist/bundle/{chunk-KRG5X5PH.js → chunk-MF46W7PQ.js} +2 -2
- package/dist/bundle/{chunk-6X3KUFRQ.js → chunk-MW46BLWH.js} +20 -20
- package/dist/bundle/{chunk-2AF77WMH.js → chunk-NFIR346J.js} +1 -1
- package/dist/bundle/{chunk-BIJW6AYA.js → chunk-NWYVOHIX.js} +3662 -3598
- package/dist/bundle/{chunk-HPSHQVJU.js → chunk-OOBSSU2G.js} +24 -19
- package/dist/bundle/{chunk-UG3GHFGY.js → chunk-P6A77LMP.js} +4 -4
- package/dist/bundle/{chunk-XLGDNI4S.js → chunk-PDHN4GHU.js} +5 -40
- package/dist/bundle/{chunk-ALE67WRR.js → chunk-PV3AWPHR.js} +5 -5
- package/dist/bundle/{chunk-SOOU5WO6.js → chunk-QOKPRFHM.js} +2 -2
- package/dist/bundle/{chunk-V2WXTILT.js → chunk-RC72RU66.js} +6 -6
- package/dist/bundle/{chunk-E2F2XIX6.js → chunk-RLH6BOEG.js} +8 -8
- package/dist/bundle/{chunk-D4MIMH2N.js → chunk-SJE7UGOW.js} +5 -5
- package/dist/bundle/{chunk-QF7VL4C3.js → chunk-SXJDCRXE.js} +1 -1
- package/dist/bundle/{chunk-5XLU4NN6.js → chunk-T2VAEDJS.js} +4 -4
- package/dist/bundle/{chunk-3NYH756U.js → chunk-U2ERT45N.js} +11 -6
- package/dist/bundle/{chunk-MZWXTJ4O.js → chunk-UFNE57VY.js} +3 -3
- package/dist/bundle/{chunk-6UJCCOZC.js → chunk-ULH3TNUP.js} +4 -4
- package/dist/bundle/{chunk-SZ6JFOL4.js → chunk-UOAHZV3K.js} +58 -37
- package/dist/bundle/{chunk-GVA3KTCD.js → chunk-UPCEHSIZ.js} +10 -10
- package/dist/bundle/{chunk-D7KOAPG6.js → chunk-V7E25BUU.js} +2 -2
- package/dist/bundle/{chunk-KOY5HUBY.js → chunk-VZ5KETIX.js} +4 -4
- package/dist/bundle/{chunk-ULXEW6FT.js → chunk-WBKYZZQT.js} +1 -1
- package/dist/bundle/{chunk-7LT2G5BC.js → chunk-WKIQKGOF.js} +26 -26
- package/dist/bundle/{chunk-5VDVGDOC.js → chunk-WWW7YTFG.js} +1 -1
- package/dist/bundle/{chunk-G4TNKBDX.js → chunk-XZCF5XU7.js} +7 -7
- package/dist/bundle/{chunk-5K54RZBK.js → chunk-Y2QVNVHK.js} +1 -1
- package/dist/bundle/{chunk-7EP4AU6A.js → chunk-Y5WSRG3F.js} +3 -3
- package/dist/bundle/{chunk-FHBTQPA3.js → chunk-YI4DXASF.js} +37 -37
- package/dist/bundle/{chunk-OT7SQQJK.js → chunk-YVUAG7RF.js} +17 -17
- package/dist/bundle/{chunk-Y5U4HIZS.js → chunk-ZEPDEFVT.js} +2 -2
- package/dist/bundle/{chunk-HHRJPLFO.js → chunk-ZH4H5XTA.js} +1 -1
- package/dist/bundle/{chunk-JHMEETXI.js → chunk-ZK46UHDP.js} +2 -2
- package/dist/bundle/{chunk-PUMDOCAF.js → chunk-ZU5VQYNY.js} +1 -1
- package/dist/bundle/{cli-KW6QQVS5.js → cli-U4LSBYDV.js} +61 -61
- package/dist/bundle/command-contract-UU5T24ZZ.js +41 -0
- package/dist/bundle/{command-server-entry-OC4E4DED.js → command-server-entry-PK6FBUPO.js} +31 -31
- package/dist/bundle/{decode-AH5ZLLDK.js → decode-3ZE6NBKV.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-6FWNCNXK.js} +2 -2
- package/dist/bundle/{embed-EPSQY6QG.js → embed-DGYBBZUW.js} +9 -9
- package/dist/bundle/{embedder-TK4U4TJR.js → embedder-O7A6VMWI.js} +12 -12
- package/dist/bundle/entry-CDJ2QSU2.js +25 -0
- package/dist/bundle/{failure-WSVZOPFE.js → failure-X6PSLVSO.js} +4 -4
- package/dist/bundle/first-run-UOQW7DN5.js +30 -0
- package/dist/bundle/first-screen-SNDV4YKF.js +39 -0
- package/dist/bundle/google-HPX52KMC.js +45 -0
- package/dist/bundle/{google-api-AV4X2JH3.js → google-api-HIMN4XL5.js} +63 -63
- package/dist/bundle/grants-RO42I6E4.js +111 -0
- package/dist/bundle/{identity-CGHHF7AK.js → identity-NFGHDPLL.js} +6 -6
- package/dist/bundle/{instructions-24PHDBBE.js → instructions-6JAQYCM6.js} +1 -1
- package/dist/bundle/{login-XHFESAFM.js → login-RZOQN63N.js} +69 -69
- package/dist/bundle/{mcp-M5YCSWJJ.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-GIDULTV5.js → node-KSIX3GIH.js} +2 -2
- package/dist/bundle/{node-sqlite-LINBOAWK.js → node-sqlite-4FJ6WJXN.js} +10 -10
- package/dist/bundle/oauth-BKZAMFKK.js +22 -0
- package/dist/bundle/{open-RYFKPNCJ.js → open-4AQJGH42.js} +8 -8
- package/dist/bundle/{openai-Q7YYUHJF.js → openai-24F2OX55.js} +19 -19
- package/dist/bundle/{process-VPIZTIJR.js → process-7NOA2T7H.js} +1 -1
- package/dist/bundle/{program-IUXFRBZA.js → program-7JHMLDEX.js} +181 -225
- package/dist/bundle/{prompt-LF4KX3XL.js → prompt-NM66MAZ4.js} +8 -8
- package/dist/bundle/{reasons-JPYOU5GV.js → reasons-KSYP5VDJ.js} +5 -5
- package/dist/bundle/{recognize-KEWTJXFH.js → recognize-DBKV2JYZ.js} +7 -7
- package/dist/bundle/{remote-HGGLB76S.js → remote-ABWUTBVB.js} +13 -13
- package/dist/bundle/{rerank-TDUKETFT.js → rerank-FQAU4ENY.js} +10 -10
- package/dist/bundle/{serve-XFYMKW5W.js → serve-QLJG4QZD.js} +12 -12
- package/dist/bundle/server-NUBLY5SV.js +74 -0
- package/dist/bundle/{server-PXIPSGFP.js → server-VGZNK5XD.js} +47 -47
- package/dist/bundle/{services-2BOCGMJU.js → services-5KARVUHK.js} +36 -36
- package/dist/bundle/{sqlite-runtime-R7M5XUMW.js → sqlite-runtime-ILF6EFQJ.js} +9 -9
- package/dist/bundle/{start-YRLT4MQZ.js → start-C6EXYXAL.js} +7 -7
- package/dist/bundle/{state-NZ7WRJWH.js → state-R2M56GPU.js} +9 -9
- package/dist/bundle/{store-ICDGPSEN.js → store-2OBVMUQL.js} +19 -19
- package/dist/bundle/{store-7LCVDO7G.js → store-DA4K7HWW.js} +21 -21
- package/dist/bundle/store-maintenance-command-KSIPI5B5.js +65 -0
- package/dist/bundle/tokens-VQDGSHRB.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/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- 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-6ERQE4FS.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-JCNEPYQZ.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-SJE7UGOW.js";
|
|
42
42
|
import {
|
|
43
43
|
localOnly
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CWDC6QJM.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-BHSLMJF7.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-MBLB4TQI.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-ZEPDEFVT.js";
|
|
98
98
|
import {
|
|
99
99
|
endpoint,
|
|
100
100
|
endpointFetch,
|
|
101
101
|
modelAddressAllowed,
|
|
102
102
|
onThisComputer
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-AJ3DFPRT.js";
|
|
104
104
|
import {
|
|
105
105
|
installFiles,
|
|
106
106
|
megabytes
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-T2VAEDJS.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-NWYVOHIX.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-LXRBTXCZ.js";
|
|
209
209
|
import {
|
|
210
210
|
DEFAULT_STEMMERS,
|
|
211
211
|
createStemmer,
|
|
212
212
|
fold,
|
|
213
213
|
normalize
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-JLUQZZ26.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-EXWOOST5.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-7AZCAUST.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-MEQNAZ6R.js";
|
|
306
306
|
import {
|
|
307
307
|
storePath,
|
|
308
308
|
wirecatDirectory
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-4G7WQNG7.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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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-DGYBBZUW.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-FQAU4ENY.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-O7A6VMWI.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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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-ABWUTBVB.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-7NOA2T7H.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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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-O7A6VMWI.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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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-7NOA2T7H.js")).openRerankerProcess(model, directory, {
|
|
12930
12930
|
threads: defaultThreads()
|
|
12931
|
-
})) : await (await import("./rerank-
|
|
12931
|
+
})) : await (await import("./rerank-FQAU4ENY.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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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-O7A6VMWI.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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/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 ?? {};
|
|
@@ -14991,7 +14991,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
14991
14991
|
} finally {
|
|
14992
14992
|
await embedders.close();
|
|
14993
14993
|
}
|
|
14994
|
-
let ordered = insidePeriodFirst(oneList(lists, cosines), period);
|
|
14994
|
+
let ordered = insidePeriodFirst(oneList(await withoutTranscriptCopies(store, lists), cosines), period);
|
|
14995
14995
|
let harder;
|
|
14996
14996
|
if (request.harder) {
|
|
14997
14997
|
const asking = {
|
|
@@ -15032,6 +15032,21 @@ var searchAll = /* @__PURE__ */ __name(async (store, account2, asked, messenger
|
|
|
15032
15032
|
...harder === void 0 ? {} : { harder }
|
|
15033
15033
|
};
|
|
15034
15034
|
}, "searchAll");
|
|
15035
|
+
var withoutTranscriptCopies = /* @__PURE__ */ __name(async (store, lists) => {
|
|
15036
|
+
const meetings = new Set(lists.flat().flatMap((item2) => item2.kind === "meeting" ? [item2.meetingId] : []));
|
|
15037
|
+
if (!meetings.size)
|
|
15038
|
+
return lists;
|
|
15039
|
+
const documentOf = /* @__PURE__ */ __name((item2) => item2.kind === "document" && /^document:\d+$/.test(item2.ref) ? Number(item2.ref.slice("document:".length)) : void 0, "documentOf");
|
|
15040
|
+
const documents = lists.flat().flatMap((item2) => documentOf(item2) ?? []);
|
|
15041
|
+
const transcripts = await store.meetings.transcriptMeetings(documents);
|
|
15042
|
+
if (!transcripts.size)
|
|
15043
|
+
return lists;
|
|
15044
|
+
return lists.map((list3) => list3.filter((item2) => {
|
|
15045
|
+
const document = documentOf(item2);
|
|
15046
|
+
const meeting = document === void 0 ? void 0 : transcripts.get(document);
|
|
15047
|
+
return meeting === void 0 || !meetings.has(meeting);
|
|
15048
|
+
}));
|
|
15049
|
+
}, "withoutTranscriptCopies");
|
|
15035
15050
|
var hitKey = /* @__PURE__ */ __name((item2) => item2.kind === "meeting" ? `${item2.ref}\0${item2.scope}\0${item2.id}` : item2.ref, "hitKey");
|
|
15036
15051
|
var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
15037
15052
|
const place = /* @__PURE__ */ new Map();
|
|
@@ -15060,7 +15075,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
15060
15075
|
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
15076
|
}, "insidePeriodFirst");
|
|
15062
15077
|
|
|
15063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
15064
15079
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
15065
15080
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
15066
15081
|
var DEFAULT_BACKEND = "both";
|
|
@@ -15249,7 +15264,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
15249
15264
|
return { report, sources };
|
|
15250
15265
|
}, "searchServer");
|
|
15251
15266
|
|
|
15252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
15253
15268
|
var DELETE_AT_ONCE = 10;
|
|
15254
15269
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
15255
15270
|
const files = fileLinks(attachments);
|
|
@@ -15689,7 +15704,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
15689
15704
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first]} needs a --photo or --file`);
|
|
15690
15705
|
}, "checkMediaOptions");
|
|
15691
15706
|
|
|
15692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
15693
15708
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
15694
15709
|
var RULES2 = {
|
|
15695
15710
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -15704,7 +15719,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
15704
15719
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
15705
15720
|
}), "classifyChannel");
|
|
15706
15721
|
|
|
15707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
15708
15723
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
15709
15724
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
15710
15725
|
const store = await deps.store();
|
|
@@ -15790,7 +15805,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
15790
15805
|
};
|
|
15791
15806
|
}, "metadataService");
|
|
15792
15807
|
|
|
15793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
15794
15809
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
15795
15810
|
var LINK2 = /https?:\/\/\S+/i;
|
|
15796
15811
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -15978,7 +15993,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
15978
15993
|
}, "nextPoint");
|
|
15979
15994
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
15980
15995
|
|
|
15981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
15982
15997
|
import { existsSync, readFileSync } from "node:fs";
|
|
15983
15998
|
import { join as join11 } from "node:path";
|
|
15984
15999
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -16121,7 +16136,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
16121
16136
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
16122
16137
|
}, "assign");
|
|
16123
16138
|
|
|
16124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
16125
16140
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
16126
16141
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
16127
16142
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -16158,7 +16173,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
16158
16173
|
return { chatId, rows, notes };
|
|
16159
16174
|
}, "moderateWith");
|
|
16160
16175
|
|
|
16161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
16162
16177
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
16163
16178
|
const file2 = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
16164
16179
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -16236,7 +16251,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
16236
16251
|
}, "removePerson")
|
|
16237
16252
|
}), "moderatorOf");
|
|
16238
16253
|
|
|
16239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
16240
16255
|
var SCAN = 1e3;
|
|
16241
16256
|
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
16242
16257
|
const byId2 = new Map(accounts.map((one2) => [one2.id, one2]));
|
|
@@ -16288,7 +16303,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
16288
16303
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
16289
16304
|
}, "personMeetings");
|
|
16290
16305
|
|
|
16291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
16292
16307
|
var CONTEXT_MESSAGES2 = 10;
|
|
16293
16308
|
var CONTEXT_BYTES = 64 * 1024;
|
|
16294
16309
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -16594,10 +16609,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
16594
16609
|
};
|
|
16595
16610
|
}, "personMessages");
|
|
16596
16611
|
|
|
16597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
16598
16613
|
import { createHash as createHash12 } from "node:crypto";
|
|
16599
16614
|
|
|
16600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
16601
16616
|
var missing3 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
16602
16617
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
16603
16618
|
const parsed = parseMeetingReference(reference);
|
|
@@ -16645,7 +16660,7 @@ var resolveMeetingReference = /* @__PURE__ */ __name(async (store, accountId, re
|
|
|
16645
16660
|
};
|
|
16646
16661
|
}, "resolveMeetingReference");
|
|
16647
16662
|
|
|
16648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
16649
16664
|
var hash = /* @__PURE__ */ __name((value) => createHash12("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
16650
16665
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
16651
16666
|
if (signal?.aborted)
|
|
@@ -16844,7 +16859,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
16844
16859
|
return { ...packet, fingerprint: hash(packet) };
|
|
16845
16860
|
}, "readMeetingEvidence");
|
|
16846
16861
|
|
|
16847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
16848
16863
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
16849
16864
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
16850
16865
|
const requestedAccounts = options.accountIds;
|
|
@@ -16943,7 +16958,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
16943
16958
|
};
|
|
16944
16959
|
}, "personMeetingContext");
|
|
16945
16960
|
|
|
16946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
16947
16962
|
var PREPARE_BYTES = 96 * 1024;
|
|
16948
16963
|
var MEETINGS = 5;
|
|
16949
16964
|
var CUES = 3;
|
|
@@ -17066,7 +17081,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
17066
17081
|
}
|
|
17067
17082
|
}, "meetingsOf");
|
|
17068
17083
|
|
|
17069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
17070
17085
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
17071
17086
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
17072
17087
|
const held = await storeIfOpen(deps);
|
|
@@ -17136,7 +17151,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
17136
17151
|
complete: false
|
|
17137
17152
|
})), "quiet");
|
|
17138
17153
|
|
|
17139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
17140
17155
|
var TIMELINE_ITEMS = 50;
|
|
17141
17156
|
var TIMELINE_MAX = 500;
|
|
17142
17157
|
var SCOPES = ["personal", "work"];
|
|
@@ -17198,7 +17213,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
17198
17213
|
};
|
|
17199
17214
|
}, "personTimeline");
|
|
17200
17215
|
|
|
17201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
17202
17217
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
17203
17218
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
17204
17219
|
const held = await storeIfOpen(deps);
|
|
@@ -17463,7 +17478,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
17463
17478
|
return rest;
|
|
17464
17479
|
}, "withoutPhone");
|
|
17465
17480
|
|
|
17466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
17467
17482
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
17468
17483
|
id: note.id,
|
|
17469
17484
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -17507,7 +17522,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
17507
17522
|
};
|
|
17508
17523
|
}, "privatePeopleService");
|
|
17509
17524
|
|
|
17510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
17511
17526
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
17512
17527
|
total: 0,
|
|
17513
17528
|
population: 0,
|
|
@@ -17763,7 +17778,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
17763
17778
|
}, "evidence")
|
|
17764
17779
|
}), "rankingsService");
|
|
17765
17780
|
|
|
17766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
17767
17782
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
17768
17783
|
var WAITING_TAIL = 100;
|
|
17769
17784
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -17897,7 +17912,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
17897
17912
|
};
|
|
17898
17913
|
}, "replyStatsService");
|
|
17899
17914
|
|
|
17900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
17901
17916
|
var savedSearchItem = /* @__PURE__ */ __name((one2) => ({
|
|
17902
17917
|
id: one2.id,
|
|
17903
17918
|
name: one2.name,
|
|
@@ -18023,7 +18038,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
18023
18038
|
};
|
|
18024
18039
|
}, "searchesService");
|
|
18025
18040
|
|
|
18026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
18027
18042
|
var TAGGING_QUERY = {
|
|
18028
18043
|
entity: "tagging",
|
|
18029
18044
|
backend: "sql",
|
|
@@ -18107,7 +18122,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
18107
18122
|
};
|
|
18108
18123
|
}, "tagsService");
|
|
18109
18124
|
|
|
18110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
18111
18126
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
18112
18127
|
var PERIOD_FIELD = "created";
|
|
18113
18128
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -18238,7 +18253,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
18238
18253
|
}));
|
|
18239
18254
|
}, "meetingNames");
|
|
18240
18255
|
|
|
18241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
18242
18257
|
var TASK_QUERY = {
|
|
18243
18258
|
entity: "task",
|
|
18244
18259
|
backend: "sql",
|
|
@@ -18738,7 +18753,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account2, task2) => {
|
|
|
18738
18753
|
};
|
|
18739
18754
|
}, "taskView");
|
|
18740
18755
|
|
|
18741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
18742
18757
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
18743
18758
|
const set = [closed, pinned, hidden].filter((one2) => one2 !== void 0).length;
|
|
18744
18759
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -18937,7 +18952,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
18937
18952
|
};
|
|
18938
18953
|
}, "topicsService");
|
|
18939
18954
|
|
|
18940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
18941
18956
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
18942
18957
|
var GAPS = "crm:gaps";
|
|
18943
18958
|
var crmGapsOf = /* @__PURE__ */ __name(async (store, account2) => {
|
|
@@ -18949,7 +18964,7 @@ var crmGapsOf = /* @__PURE__ */ __name(async (store, account2) => {
|
|
|
18949
18964
|
}
|
|
18950
18965
|
}, "crmGapsOf");
|
|
18951
18966
|
|
|
18952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
18953
18968
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
18954
18969
|
var CRM_WRITE_DEFAULTS = {
|
|
18955
18970
|
"deals.delete": "ask",
|
|
@@ -18957,10 +18972,10 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
18957
18972
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
18958
18973
|
};
|
|
18959
18974
|
|
|
18960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
18961
18976
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
18962
18977
|
|
|
18963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
18964
18979
|
import { mkdirSync as mkdirSync3, readFileSync as readFileSync2, renameSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
18965
18980
|
import { dirname as dirname4, join as join12 } from "node:path";
|
|
18966
18981
|
var MOST_DEADLINES = 50;
|
|
@@ -19044,11 +19059,11 @@ var FloodMemory = class {
|
|
|
19044
19059
|
}
|
|
19045
19060
|
};
|
|
19046
19061
|
|
|
19047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
19048
19063
|
import { appendFileSync, mkdirSync as mkdirSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
19049
19064
|
import { dirname as dirname6, join as join13 } from "node:path";
|
|
19050
19065
|
|
|
19051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
19052
19067
|
import { closeSync, mkdirSync as mkdirSync4, openSync, statSync, unlinkSync } from "node:fs";
|
|
19053
19068
|
import { dirname as dirname5 } from "node:path";
|
|
19054
19069
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -19115,7 +19130,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
19115
19130
|
}
|
|
19116
19131
|
}, "lockTime");
|
|
19117
19132
|
|
|
19118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19133
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
19119
19134
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join13(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
19120
19135
|
var SendJournal = class {
|
|
19121
19136
|
static {
|
|
@@ -19192,7 +19207,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
19192
19207
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
19193
19208
|
}, "withSendId");
|
|
19194
19209
|
|
|
19195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
19196
19211
|
import { existsSync as existsSync2, readFileSync as readFileSync4, rmSync } from "node:fs";
|
|
19197
19212
|
import { join as join14 } from "node:path";
|
|
19198
19213
|
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 +19319,7 @@ var RecipientList = class {
|
|
|
19304
19319
|
}
|
|
19305
19320
|
};
|
|
19306
19321
|
|
|
19307
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
19308
19323
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
19309
19324
|
var READS = /* @__PURE__ */ new Set([
|
|
19310
19325
|
"attachments.extract",
|
|
@@ -19499,7 +19514,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
19499
19514
|
}), "guardFor");
|
|
19500
19515
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
19501
19516
|
|
|
19502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/business-context.js
|
|
19503
19518
|
var SECTION_LIMIT = 20;
|
|
19504
19519
|
var STORE_PAGE = 500;
|
|
19505
19520
|
var sectionOf = /* @__PURE__ */ __name((all, limit, next, { more = false, total = all.length, newest = false } = {}) => {
|
|
@@ -19623,7 +19638,7 @@ var coverageFor = /* @__PURE__ */ __name(async (store, base, scope) => {
|
|
|
19623
19638
|
}, "coverageFor");
|
|
19624
19639
|
var newestFirst2 = /* @__PURE__ */ __name((a, b) => (b.at ?? "").localeCompare(a.at ?? "") || a.ref.localeCompare(b.ref), "newestFirst");
|
|
19625
19640
|
|
|
19626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/communications.js
|
|
19627
19642
|
var MAIL_ROWS = 500;
|
|
19628
19643
|
var EVENT_ROWS2 = 1e3;
|
|
19629
19644
|
var RECORDED_ROWS = 100;
|
|
@@ -19769,7 +19784,7 @@ var communicationsOf = /* @__PURE__ */ __name(async (store, asked, scope, { sinc
|
|
|
19769
19784
|
};
|
|
19770
19785
|
}, "communicationsOf");
|
|
19771
19786
|
|
|
19772
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/money-context.js
|
|
19773
19788
|
var invoiceLine = /* @__PURE__ */ __name((invoice, linkedBy) => ({
|
|
19774
19789
|
ref: invoice.ref,
|
|
19775
19790
|
title: invoice.title,
|
|
@@ -19841,7 +19856,7 @@ var moneyOf = /* @__PURE__ */ __name((rows, limit, next, complete) => {
|
|
|
19841
19856
|
};
|
|
19842
19857
|
}, "moneyOf");
|
|
19843
19858
|
|
|
19844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/organization-context.js
|
|
19845
19860
|
var dealLine = /* @__PURE__ */ __name((deal) => ({
|
|
19846
19861
|
ref: deal.ref,
|
|
19847
19862
|
kind: deal.kind,
|
|
@@ -19984,7 +19999,7 @@ var organizationContext = /* @__PURE__ */ __name(async (store, reference, { acco
|
|
|
19984
19999
|
};
|
|
19985
20000
|
}, "organizationContext");
|
|
19986
20001
|
|
|
19987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/deal-context.js
|
|
19988
20003
|
var DAY6 = 864e5;
|
|
19989
20004
|
var dealContext = /* @__PURE__ */ __name(async (store, reference, { accounts, limit = SECTION_LIMIT, now = Date.now(), deniedKinds = [] } = {}) => {
|
|
19990
20005
|
const scope = scopeOf4(accounts, deniedKinds);
|
|
@@ -20109,7 +20124,7 @@ var dealBrief = /* @__PURE__ */ __name((context2) => ({
|
|
|
20109
20124
|
notRead: context2.coverage.notRead
|
|
20110
20125
|
}), "dealBrief");
|
|
20111
20126
|
|
|
20112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
20113
20128
|
import { createHash as createHash13, randomUUID as randomUUID6 } from "node:crypto";
|
|
20114
20129
|
var hash2 = /* @__PURE__ */ __name((value) => createHash13("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20115
20130
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -20183,7 +20198,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
20183
20198
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
20184
20199
|
}, "prepareEvidencePacket");
|
|
20185
20200
|
|
|
20186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
20187
20202
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat, limit, before: before2 }, messenger = {}) => {
|
|
20188
20203
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
20189
20204
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -20203,7 +20218,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account2, { chat,
|
|
|
20203
20218
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
20204
20219
|
}, "readEvidencePacket");
|
|
20205
20220
|
|
|
20206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-links.js
|
|
20207
20222
|
var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
20208
20223
|
const { maxMessages, url, ...selecting } = request;
|
|
20209
20224
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20242,10 +20257,10 @@ var readMeetingLinks = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20242
20257
|
};
|
|
20243
20258
|
}, "readMeetingLinks");
|
|
20244
20259
|
|
|
20245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
20246
20261
|
import { createHash as createHash14 } from "node:crypto";
|
|
20247
20262
|
|
|
20248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20263
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-validation.js
|
|
20249
20264
|
function invalid5(field, response = false) {
|
|
20250
20265
|
throw new CliError(response ? "invalid_response" : "validation_error", `invalid project candidate ${field}`);
|
|
20251
20266
|
}
|
|
@@ -20364,7 +20379,7 @@ var candidateCatalog = /* @__PURE__ */ __name((catalog, limits) => {
|
|
|
20364
20379
|
}
|
|
20365
20380
|
}, "candidateCatalog");
|
|
20366
20381
|
|
|
20367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidates.js
|
|
20368
20383
|
var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
20369
20384
|
const fixed = snapshotMeetingScope(scope);
|
|
20370
20385
|
if (!Number.isSafeInteger(accountId) || accountId < 1 || typeof ports?.vocabulary?.vocabulary !== "function")
|
|
@@ -20417,7 +20432,7 @@ var createMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, account
|
|
|
20417
20432
|
};
|
|
20418
20433
|
}, "createMeetingProjectCandidateReader");
|
|
20419
20434
|
|
|
20420
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
20421
20436
|
import { createHash as createHash15 } from "node:crypto";
|
|
20422
20437
|
var scopeKeys = [
|
|
20423
20438
|
"accountId",
|
|
@@ -20552,7 +20567,7 @@ var readMeetingProjectDiscovery = /* @__PURE__ */ __name(async (ports, projectNa
|
|
|
20552
20567
|
};
|
|
20553
20568
|
}, "readMeetingProjectDiscovery");
|
|
20554
20569
|
|
|
20555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-review.js
|
|
20556
20571
|
var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
20557
20572
|
const { limit, ...selecting } = request;
|
|
20558
20573
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20560,7 +20575,7 @@ var readMeetingReview = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20560
20575
|
return { ...review, selection };
|
|
20561
20576
|
}, "readMeetingReview");
|
|
20562
20577
|
|
|
20563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-searches.js
|
|
20564
20579
|
var KIND = ["meetings-search"];
|
|
20565
20580
|
var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
20566
20581
|
const found = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20590,7 +20605,7 @@ var meetingSearchesService = /* @__PURE__ */ __name((searches) => {
|
|
|
20590
20605
|
};
|
|
20591
20606
|
}, "meetingSearchesService");
|
|
20592
20607
|
|
|
20593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-stats.js
|
|
20594
20609
|
var readMeetingStats = /* @__PURE__ */ __name(async (store, request) => {
|
|
20595
20610
|
const { timeZone, maxRows, ...selecting } = request;
|
|
20596
20611
|
const { input, selection } = await resolveMeetingSelection(store, selecting);
|
|
@@ -20613,7 +20628,7 @@ var readMeetingCounts = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
20613
20628
|
return { ...counts, selection };
|
|
20614
20629
|
}, "readMeetingCounts");
|
|
20615
20630
|
|
|
20616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/person-business.js
|
|
20617
20632
|
var personBusiness = /* @__PURE__ */ __name(async (store, uid, { limit = SECTION_LIMIT, scope = scopeOf4(void 0) } = {}) => {
|
|
20618
20633
|
const ref = `person:${uid}`;
|
|
20619
20634
|
const { edges, full } = await edgesOf(store, ref, scope);
|
|
@@ -20671,7 +20686,7 @@ var canonicalPersonContext = /* @__PURE__ */ __name(async (store, reference, { a
|
|
|
20671
20686
|
};
|
|
20672
20687
|
}, "canonicalPersonContext");
|
|
20673
20688
|
|
|
20674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
20675
20690
|
import { createHash as createHash16 } from "node:crypto";
|
|
20676
20691
|
import { existsSync as existsSync3 } from "node:fs";
|
|
20677
20692
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -20802,7 +20817,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
20802
20817
|
return { ...checked2.output, custom: true };
|
|
20803
20818
|
}, "addCustomTextModel");
|
|
20804
20819
|
|
|
20805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20820
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/account-groups.js
|
|
20806
20821
|
var SCOPES2 = ["personal", "work"];
|
|
20807
20822
|
var scopeOf5 = /* @__PURE__ */ __name((scope) => {
|
|
20808
20823
|
if (!SCOPES2.includes(scope))
|
|
@@ -20924,7 +20939,7 @@ var setChatScope = /* @__PURE__ */ __name(async (at, change) => {
|
|
|
20924
20939
|
return { ...key, chat: change.chat, own: scope, scope: effective };
|
|
20925
20940
|
}, "setChatScope");
|
|
20926
20941
|
|
|
20927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/group-guard.js
|
|
20928
20943
|
var refOf3 = /* @__PURE__ */ __name((item2) => typeof item2 === "string" ? item2 : typeof item2 === "object" && item2 !== null && "ref" in item2 ? item2.ref : void 0, "refOf");
|
|
20929
20944
|
var groupGuardOf = /* @__PURE__ */ __name(async (store, app, env) => {
|
|
20930
20945
|
const group = groupLockOf(app, env);
|
|
@@ -21035,7 +21050,7 @@ var lockedRegistry = /* @__PURE__ */ __name((registry, guard) => {
|
|
|
21035
21050
|
};
|
|
21036
21051
|
}, "lockedRegistry");
|
|
21037
21052
|
|
|
21038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-hit-context.js
|
|
21039
21054
|
import { createHash as createHash17 } from "node:crypto";
|
|
21040
21055
|
var contextCue = /* @__PURE__ */ __name((cue) => ({
|
|
21041
21056
|
ref: cue.reference,
|
|
@@ -21153,7 +21168,7 @@ var readMeetingHitContext = /* @__PURE__ */ __name(async (store, accountId, refe
|
|
|
21153
21168
|
return { ...packet, fingerprint: createHash17("sha256").update(JSON.stringify(packet)).digest("hex") };
|
|
21154
21169
|
}, "readMeetingHitContext");
|
|
21155
21170
|
|
|
21156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-passage-format.js
|
|
21157
21172
|
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
21173
|
var markdown = /* @__PURE__ */ __name((text2) => visible(text2).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/[\\`*_[\]#|~]/g, "\\$&"), "markdown");
|
|
21159
21174
|
var timestamp = /* @__PURE__ */ __name((ms) => {
|
|
@@ -21230,7 +21245,7 @@ var readMeetingPassage = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
21230
21245
|
return { packet, content };
|
|
21231
21246
|
}, "readMeetingPassage");
|
|
21232
21247
|
|
|
21233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-batch.js
|
|
21234
21249
|
var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
21235
21250
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
21236
21251
|
throw new CliError("validation_error", "choose a positive meeting account");
|
|
@@ -21244,10 +21259,10 @@ var createMeetingBatchReader = /* @__PURE__ */ __name((store, accountId) => {
|
|
|
21244
21259
|
};
|
|
21245
21260
|
}, "createMeetingBatchReader");
|
|
21246
21261
|
|
|
21247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
21248
21263
|
import { createHash as createHash18 } from "node:crypto";
|
|
21249
21264
|
|
|
21250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
21251
21266
|
var positive3 = /* @__PURE__ */ __name((value, name, max) => {
|
|
21252
21267
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
21253
21268
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -21399,7 +21414,7 @@ var applyMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, embe
|
|
|
21399
21414
|
};
|
|
21400
21415
|
}, "applyMeetingEmbedding");
|
|
21401
21416
|
|
|
21402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
21403
21418
|
var DEPTH = 200;
|
|
21404
21419
|
var cursorOf3 = /* @__PURE__ */ __name((value, key) => {
|
|
21405
21420
|
if (value === void 0)
|
|
@@ -21536,7 +21551,7 @@ var searchMeetingsCombined = /* @__PURE__ */ __name(async (store, embedder, type
|
|
|
21536
21551
|
};
|
|
21537
21552
|
}, "searchMeetingsCombined");
|
|
21538
21553
|
|
|
21539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-context.js
|
|
21540
21555
|
var meetingReferences = /* @__PURE__ */ __name((values) => values.map((value) => formatMeetingReference(parseMeetingReference(value))), "meetingReferences");
|
|
21541
21556
|
var checkCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21542
21557
|
if (!signal?.aborted)
|
|
@@ -21643,7 +21658,7 @@ var createMeetingContextService = /* @__PURE__ */ __name(async (store, input, op
|
|
|
21643
21658
|
};
|
|
21644
21659
|
}, "createMeetingContextService");
|
|
21645
21660
|
|
|
21646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-model.js
|
|
21647
21662
|
var integer2 = /* @__PURE__ */ __name((value, name, max) => {
|
|
21648
21663
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
21649
21664
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -21870,7 +21885,7 @@ var openMeetingEmbedder = /* @__PURE__ */ __name(async (choice, options = {}) =>
|
|
|
21870
21885
|
};
|
|
21871
21886
|
}, "openMeetingEmbedder");
|
|
21872
21887
|
|
|
21873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
21874
21889
|
var communicationFields = {
|
|
21875
21890
|
sources: pipe(array(strictObject({
|
|
21876
21891
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -21902,7 +21917,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
21902
21917
|
return { ...input, after, before: before2 };
|
|
21903
21918
|
}, "communicationRequest");
|
|
21904
21919
|
|
|
21905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
21906
21921
|
var MEETING_PREPARATION_LIMITS = {
|
|
21907
21922
|
meetings: { min: 1, max: 20, default: 5 },
|
|
21908
21923
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -21988,7 +22003,7 @@ var preparationRequest = /* @__PURE__ */ __name((accountId, externalId, original
|
|
|
21988
22003
|
return { ...input, history };
|
|
21989
22004
|
}, "preparationRequest");
|
|
21990
22005
|
|
|
21991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-communications-preparation.js
|
|
21992
22007
|
var readPreparationCommunications = /* @__PURE__ */ __name(async (plan, signal) => {
|
|
21993
22008
|
const section = {
|
|
21994
22009
|
readUsage: plan.reader.usage(),
|
|
@@ -22093,7 +22108,7 @@ var appendPreparationCommunications = /* @__PURE__ */ __name((result, read) => {
|
|
|
22093
22108
|
result.knowledge.coverage.otherSources = "see-communications";
|
|
22094
22109
|
}, "appendPreparationCommunications");
|
|
22095
22110
|
|
|
22096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
22097
22112
|
var captureCommunicationSelections = /* @__PURE__ */ __name((port) => {
|
|
22098
22113
|
if (port === void 0)
|
|
22099
22114
|
return void 0;
|
|
@@ -22198,7 +22213,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
22198
22213
|
}
|
|
22199
22214
|
}, "validatePreparationCommunications");
|
|
22200
22215
|
|
|
22201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-knowledge-preparation.js
|
|
22202
22217
|
var invalid7 = /* @__PURE__ */ __name(() => {
|
|
22203
22218
|
throw new CliError("invalid_response", "Preparation knowledge returned an invalid selection");
|
|
22204
22219
|
}, "invalid");
|
|
@@ -22267,7 +22282,7 @@ var appendKnowledgePreparation = /* @__PURE__ */ __name(async (store, result, in
|
|
|
22267
22282
|
}
|
|
22268
22283
|
}, "appendKnowledgePreparation");
|
|
22269
22284
|
|
|
22270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-notes-preparation.js
|
|
22271
22286
|
var invalid8 = /* @__PURE__ */ __name(() => {
|
|
22272
22287
|
throw new CliError("invalid_response", "Preparation notes returned an invalid selection");
|
|
22273
22288
|
}, "invalid");
|
|
@@ -22341,7 +22356,7 @@ var appendNotesPreparation = /* @__PURE__ */ __name(async (store, result, input)
|
|
|
22341
22356
|
}
|
|
22342
22357
|
}, "appendNotesPreparation");
|
|
22343
22358
|
|
|
22344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-project-preparation.js
|
|
22345
22360
|
var PAGE_LIMIT = 4;
|
|
22346
22361
|
var size2 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
22347
22362
|
var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, input) => {
|
|
@@ -22391,7 +22406,7 @@ var appendProjectPreparation = /* @__PURE__ */ __name(async (ports, result, inpu
|
|
|
22391
22406
|
}
|
|
22392
22407
|
}, "appendProjectPreparation");
|
|
22393
22408
|
|
|
22394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-related-preparation.js
|
|
22395
22410
|
var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, input) => {
|
|
22396
22411
|
if (!result.series || !result.items.length || result.coverage.outputLimited)
|
|
22397
22412
|
return;
|
|
@@ -22463,7 +22478,7 @@ var appendRelatedPreparation = /* @__PURE__ */ __name(async (store, result, inpu
|
|
|
22463
22478
|
}
|
|
22464
22479
|
}, "appendRelatedPreparation");
|
|
22465
22480
|
|
|
22466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-preparation.js
|
|
22467
22482
|
var size3 = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "size");
|
|
22468
22483
|
var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
22469
22484
|
const fixed = snapshotMeetingScope(scope);
|
|
@@ -22601,7 +22616,7 @@ var createMeetingPreparationService = /* @__PURE__ */ __name((scope, accountId,
|
|
|
22601
22616
|
};
|
|
22602
22617
|
}, "createMeetingPreparationService");
|
|
22603
22618
|
|
|
22604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22619
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-task-proposal.js
|
|
22605
22620
|
import { createHash as createHash19 } from "node:crypto";
|
|
22606
22621
|
var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, reference, kind) => {
|
|
22607
22622
|
if (!TASK_KINDS.includes(kind))
|
|
@@ -22621,7 +22636,7 @@ var proposeMeetingTask = /* @__PURE__ */ __name(async (store, accountId, referen
|
|
|
22621
22636
|
};
|
|
22622
22637
|
}, "proposeMeetingTask");
|
|
22623
22638
|
|
|
22624
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/meeting-tasks.js
|
|
22625
22640
|
var accountSnapshot = /* @__PURE__ */ __name((key) => {
|
|
22626
22641
|
const { provider, account: account2, scope } = key;
|
|
22627
22642
|
if (!provider.trim() || provider.includes(":") || !account2.trim())
|
|
@@ -22684,7 +22699,7 @@ var readMeetingTask = /* @__PURE__ */ __name(async (store, account2, id2) => {
|
|
|
22684
22699
|
}
|
|
22685
22700
|
}, "readMeetingTask");
|
|
22686
22701
|
|
|
22687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
22688
22703
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
22689
22704
|
const installer = ports.installer();
|
|
22690
22705
|
const argv = updateCommand(installer, packageName);
|
|
@@ -22749,7 +22764,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
22749
22764
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
22750
22765
|
}, "dayAfter");
|
|
22751
22766
|
|
|
22752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposal-tasks.js
|
|
22753
22768
|
var proposalSource = /* @__PURE__ */ __name((id2) => `proposed-action:${id2}`, "proposalSource");
|
|
22754
22769
|
var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
22755
22770
|
const proposal = await store.proposedActions.get(id2);
|
|
@@ -22772,7 +22787,7 @@ var approveAsTask = /* @__PURE__ */ __name(async (store, id2, by) => {
|
|
|
22772
22787
|
return { proposal: await store.proposedActions.approve(proposal.id, by, { task: task2.id }), task: task2 };
|
|
22773
22788
|
}, "approveAsTask");
|
|
22774
22789
|
|
|
22775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/ids.js
|
|
22776
22791
|
var MAX_IDS = 500;
|
|
22777
22792
|
var refuse = /* @__PURE__ */ __name((message) => {
|
|
22778
22793
|
throw new CliError("validation_error", message, { reason: "proposal.ids" });
|
|
@@ -22814,7 +22829,7 @@ var parseProposalIds = /* @__PURE__ */ __name((text2) => {
|
|
|
22814
22829
|
return ids;
|
|
22815
22830
|
}, "parseProposalIds");
|
|
22816
22831
|
|
|
22817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/shared.js
|
|
22818
22833
|
var proposerOfAuthor = /* @__PURE__ */ __name((author) => {
|
|
22819
22834
|
if (author.type === "person")
|
|
22820
22835
|
return { type: "person", id: author.id };
|
|
@@ -22887,7 +22902,7 @@ var reviewedKind = /* @__PURE__ */ __name((spec) => ({
|
|
|
22887
22902
|
}, "decide")
|
|
22888
22903
|
}), "reviewedKind");
|
|
22889
22904
|
|
|
22890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/findings.js
|
|
22891
22906
|
var FACT_SUMMARIES = {
|
|
22892
22907
|
fact: /* @__PURE__ */ __name((finding) => finding.statement, "fact"),
|
|
22893
22908
|
task: /* @__PURE__ */ __name((finding) => finding.title, "task"),
|
|
@@ -22962,7 +22977,7 @@ var findingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
22962
22977
|
};
|
|
22963
22978
|
}, "findingsKind");
|
|
22964
22979
|
|
|
22965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/organization.js
|
|
22966
22981
|
var ORGANIZATION_ADD_KIND = "organization_add";
|
|
22967
22982
|
var ORGANIZATION_RENAME_KIND = "organization_rename";
|
|
22968
22983
|
var rowOf2 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23018,7 +23033,7 @@ var organizationKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23018
23033
|
}, "decide")
|
|
23019
23034
|
}), "organizationKind");
|
|
23020
23035
|
|
|
23021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/action.js
|
|
23022
23037
|
var rowOf3 = /* @__PURE__ */ __name((action2) => ({
|
|
23023
23038
|
id: action2.id,
|
|
23024
23039
|
kind: "action",
|
|
@@ -23058,7 +23073,7 @@ var actionKind = /* @__PURE__ */ __name((store, claimed) => ({
|
|
|
23058
23073
|
}, "decide")
|
|
23059
23074
|
}), "actionKind");
|
|
23060
23075
|
|
|
23061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/contracts.js
|
|
23062
23077
|
var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23063
23078
|
type: "contract",
|
|
23064
23079
|
list: /* @__PURE__ */ __name((options) => store.contracts.list(options), "list"),
|
|
@@ -23067,7 +23082,7 @@ var contractKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23067
23082
|
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
23083
|
}), "contractKind");
|
|
23069
23084
|
|
|
23070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/fact.js
|
|
23071
23086
|
var STATUS = {
|
|
23072
23087
|
proposed: "proposed",
|
|
23073
23088
|
accepted: "confirmed",
|
|
@@ -23110,7 +23125,7 @@ var factKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23110
23125
|
}, "decide")
|
|
23111
23126
|
}), "factKind");
|
|
23112
23127
|
|
|
23113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/finance.js
|
|
23114
23129
|
var invoiceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23115
23130
|
type: "invoice",
|
|
23116
23131
|
list: /* @__PURE__ */ __name((options) => store.finance.invoices(options), "list"),
|
|
@@ -23126,7 +23141,7 @@ var paymentKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23126
23141
|
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
23142
|
}), "paymentKind");
|
|
23128
23143
|
|
|
23129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-link.js
|
|
23130
23145
|
var rowOf5 = /* @__PURE__ */ __name((action2) => {
|
|
23131
23146
|
const payload = action2.payload;
|
|
23132
23147
|
const [from, to] = payload.persons;
|
|
@@ -23173,7 +23188,7 @@ var identityLinkKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23173
23188
|
}, "decide")
|
|
23174
23189
|
}), "identityLinkKind");
|
|
23175
23190
|
|
|
23176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/identity-split.js
|
|
23177
23192
|
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
23193
|
var dropped = /* @__PURE__ */ __name((action2) => action2.status !== "proposed" && action2.status !== "rejected" && typeof action2.result?.person !== "string", "dropped");
|
|
23179
23194
|
var rowOf6 = /* @__PURE__ */ __name((store) => async (action2) => {
|
|
@@ -23228,7 +23243,7 @@ var identitySplitKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23228
23243
|
}, "decide")
|
|
23229
23244
|
}), "identitySplitKind");
|
|
23230
23245
|
|
|
23231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/key-document.js
|
|
23232
23247
|
var linkRow = /* @__PURE__ */ __name((link4) => ({
|
|
23233
23248
|
id: `key:${link4.id}`,
|
|
23234
23249
|
kind: "key_document",
|
|
@@ -23296,7 +23311,7 @@ var keyDocumentKind = /* @__PURE__ */ __name((store) => {
|
|
|
23296
23311
|
};
|
|
23297
23312
|
}, "keyDocumentKind");
|
|
23298
23313
|
|
|
23299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/mail-findings.js
|
|
23300
23315
|
var words3 = /* @__PURE__ */ __name((...parts) => parts.filter(Boolean).join(" "), "words");
|
|
23301
23316
|
var summaryOf2 = /* @__PURE__ */ __name((finding) => {
|
|
23302
23317
|
switch (finding.kind) {
|
|
@@ -23387,7 +23402,7 @@ var mailFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23387
23402
|
};
|
|
23388
23403
|
}, "mailFindingsKind");
|
|
23389
23404
|
|
|
23390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/meeting-findings.js
|
|
23391
23406
|
var rowOf8 = /* @__PURE__ */ __name((action2, batch) => {
|
|
23392
23407
|
const findings = batch.input.findings;
|
|
23393
23408
|
const projects = [...new Set(findings.map((one2) => "project" in one2 ? one2.project : void 0))];
|
|
@@ -23454,7 +23469,7 @@ var meetingFindingsKind = /* @__PURE__ */ __name((store) => {
|
|
|
23454
23469
|
};
|
|
23455
23470
|
}, "meetingFindingsKind");
|
|
23456
23471
|
|
|
23457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/memory.js
|
|
23458
23473
|
var STATUS2 = {
|
|
23459
23474
|
proposed: "proposed",
|
|
23460
23475
|
confirmed: "confirmed",
|
|
@@ -23495,7 +23510,7 @@ var memoryKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23495
23510
|
}, "decide")
|
|
23496
23511
|
}), "memoryKind");
|
|
23497
23512
|
|
|
23498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/orders.js
|
|
23499
23514
|
var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23500
23515
|
type: "order",
|
|
23501
23516
|
list: /* @__PURE__ */ __name((options) => store.orders.list(options), "list"),
|
|
@@ -23504,7 +23519,7 @@ var orderKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23504
23519
|
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
23520
|
}), "orderKind");
|
|
23506
23521
|
|
|
23507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship.js
|
|
23508
23523
|
var linkRow2 = /* @__PURE__ */ __name((link4) => ({
|
|
23509
23524
|
id: `link:${link4.id}`,
|
|
23510
23525
|
kind: "relationship",
|
|
@@ -23579,7 +23594,7 @@ var relationshipKind = /* @__PURE__ */ __name((store) => {
|
|
|
23579
23594
|
};
|
|
23580
23595
|
}, "relationshipKind");
|
|
23581
23596
|
|
|
23582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/relationship-update.js
|
|
23583
23598
|
var KIND2 = "relationship_update";
|
|
23584
23599
|
var summaryOf3 = /* @__PURE__ */ __name(({ changes }) => Object.entries(changes).map(([field, value]) => `${field} ${value ?? "cleared"}`).join(", "), "summaryOf");
|
|
23585
23600
|
var rowOf10 = /* @__PURE__ */ __name((action2) => {
|
|
@@ -23629,7 +23644,7 @@ var relationshipUpdateKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23629
23644
|
}, "decide")
|
|
23630
23645
|
}), "relationshipUpdateKind");
|
|
23631
23646
|
|
|
23632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/source-review.js
|
|
23633
23648
|
var rowOf11 = /* @__PURE__ */ __name((action2) => {
|
|
23634
23649
|
const payload = action2.payload;
|
|
23635
23650
|
const sources = payload.sources.flatMap((source) => source.ref ?? []);
|
|
@@ -23672,7 +23687,7 @@ var sourceReviewKind = /* @__PURE__ */ __name((store) => ({
|
|
|
23672
23687
|
}, "decide")
|
|
23673
23688
|
}), "sourceReviewKind");
|
|
23674
23689
|
|
|
23675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/subscriptions.js
|
|
23676
23691
|
var subscriptionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23677
23692
|
type: "subscription",
|
|
23678
23693
|
list: /* @__PURE__ */ __name((options) => store.subscriptions.list(options), "list"),
|
|
@@ -23691,7 +23706,7 @@ var subscriptionPriceKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23691
23706
|
}, "decide")
|
|
23692
23707
|
}), "subscriptionPriceKind");
|
|
23693
23708
|
|
|
23694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/task-close.js
|
|
23695
23710
|
var rowOf12 = /* @__PURE__ */ __name((task2) => {
|
|
23696
23711
|
const suggestion = task2.closeSuggestion;
|
|
23697
23712
|
if (suggestion === null)
|
|
@@ -23759,7 +23774,7 @@ var taskCloseKind = /* @__PURE__ */ __name((store) => {
|
|
|
23759
23774
|
};
|
|
23760
23775
|
}, "taskCloseKind");
|
|
23761
23776
|
|
|
23762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/kinds/transactions.js
|
|
23763
23778
|
var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
23764
23779
|
type: "transaction",
|
|
23765
23780
|
list: /* @__PURE__ */ __name((options) => store.transactions.list(options), "list"),
|
|
@@ -23768,7 +23783,7 @@ var transactionKind = /* @__PURE__ */ __name((store) => reviewedKind({
|
|
|
23768
23783
|
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
23784
|
}), "transactionKind");
|
|
23770
23785
|
|
|
23771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/proposals/registry.js
|
|
23772
23787
|
var PREFIX = /^([a-z][a-z_]*):/;
|
|
23773
23788
|
var marked = /* @__PURE__ */ __name((kind, row) => kind.ownerOnly ? { ...row, ownerOnly: true } : row, "marked");
|
|
23774
23789
|
var refusalOf = /* @__PURE__ */ __name((id2, error) => {
|
|
@@ -23903,7 +23918,7 @@ var proposalRegistry = /* @__PURE__ */ __name((store) => {
|
|
|
23903
23918
|
return registry;
|
|
23904
23919
|
}, "proposalRegistry");
|
|
23905
23920
|
|
|
23906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/search-all-deprecated.js
|
|
23907
23922
|
var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account2, { meetingAccount, maxMeetings: _maxMeetings, meetingCursor: _meetingCursor, ...request }, messenger = {}, searchMessages, meaning) => {
|
|
23908
23923
|
const { meetings: _meetings, ...found } = await searchAll(store, account2, {
|
|
23909
23924
|
...request,
|
|
@@ -23913,7 +23928,7 @@ var searchAllIncludingMeetings = /* @__PURE__ */ __name(async (store, account2,
|
|
|
23913
23928
|
return found;
|
|
23914
23929
|
}, "searchAllIncludingMeetings");
|
|
23915
23930
|
|
|
23916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidate-validation.js
|
|
23917
23932
|
var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, options) => {
|
|
23918
23933
|
const invalid9 = /* @__PURE__ */ __name((field) => {
|
|
23919
23934
|
throw new CliError("validation_error", `invalid stored project candidate ${field}`);
|
|
@@ -23955,7 +23970,7 @@ var storedCandidateRequest = /* @__PURE__ */ __name((reference, accountId, optio
|
|
|
23955
23970
|
return { reference, limits, after, afterTranscriptId, signal };
|
|
23956
23971
|
}, "storedCandidateRequest");
|
|
23957
23972
|
|
|
23958
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/stored-meeting-project-candidates.js
|
|
23959
23974
|
var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, accountId, ports) => {
|
|
23960
23975
|
const fixed = snapshotMeetingScope(scope);
|
|
23961
23976
|
const store = ports?.meetings;
|
|
@@ -24047,7 +24062,7 @@ var createStoredMeetingProjectCandidateReader = /* @__PURE__ */ __name((scope, a
|
|
|
24047
24062
|
};
|
|
24048
24063
|
}, "createStoredMeetingProjectCandidateReader");
|
|
24049
24064
|
|
|
24050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.652.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_8be4ae3be01c4720e564a3a01e19fd64/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
24051
24066
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
24052
24067
|
const pictures = picturesService(deps);
|
|
24053
24068
|
const base = {
|