@wirecat/attio-cli 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +6 -5
- package/contracts/wirecat.json +20 -2
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-DYTWDBTT.js +37 -0
- package/dist/bundle/{all-profiles-C2NMRQPE.js → all-profiles-LZDKPHN2.js} +10 -10
- package/dist/bundle/{anthropic-KOU2ILDK.js → anthropic-BF72H77D.js} +5 -5
- package/dist/bundle/{app-server-TINV4NNY.js → app-server-H57FZJX5.js} +61 -61
- package/dist/bundle/attio.js +11 -11
- package/dist/bundle/{bun-GVNM6IWY.js → bun-WO77T4LG.js} +2 -2
- package/dist/bundle/{bun-sqlite-IF6B3EQI.js → bun-sqlite-2BP7JDVO.js} +6 -6
- package/dist/bundle/{chunk-RCKRXBJF.js → chunk-2E6JGBM5.js} +14 -14
- package/dist/bundle/{chunk-VJ4CPL6F.js → chunk-34FJ26K2.js} +2 -2
- package/dist/bundle/{chunk-CBPL3GID.js → chunk-3I2FGNWO.js} +1 -1
- package/dist/bundle/{chunk-ICUXAOEM.js → chunk-3NVOKVRY.js} +380 -295
- package/dist/bundle/{chunk-KD4EUUER.js → chunk-3YFDZSM3.js} +1 -1
- package/dist/bundle/{chunk-ZPSH27BB.js → chunk-4SMGM2Q6.js} +4 -4
- package/dist/bundle/{chunk-MMGCGPKM.js → chunk-4STBJZR4.js} +26 -26
- package/dist/bundle/{chunk-ZMJZQGCN.js → chunk-5K3FGXZH.js} +1 -1
- package/dist/bundle/{chunk-IPHUAWFG.js → chunk-6ALPRBNV.js} +3 -3
- package/dist/bundle/{chunk-RK4GN2II.js → chunk-6NDJDDSQ.js} +35 -35
- package/dist/bundle/{chunk-PWUQC2GI.js → chunk-6SK3YB2B.js} +12 -12
- package/dist/bundle/{chunk-ETSOG6TZ.js → chunk-76RRELCU.js} +418 -396
- package/dist/bundle/{chunk-HQJ2TABD.js → chunk-7MXCUMHG.js} +1 -1
- package/dist/bundle/{chunk-WIYAMDPP.js → chunk-7ZUOI3HY.js} +3 -3
- package/dist/bundle/{chunk-VL25A6V2.js → chunk-AFAULIL5.js} +2 -2
- package/dist/bundle/{chunk-RRH7UK7L.js → chunk-AMUONYQR.js} +2 -2
- package/dist/bundle/{chunk-MCQOXTAL.js → chunk-ASCUOOLO.js} +1 -1
- package/dist/bundle/{chunk-5DCRHSBI.js → chunk-BUGROVF3.js} +2 -2
- package/dist/bundle/{chunk-QNQ2OF24.js → chunk-CHZ26CW5.js} +56 -56
- package/dist/bundle/{chunk-KB3YJJPN.js → chunk-CMO5ND3Y.js} +34 -34
- package/dist/bundle/{chunk-WBEZZGZE.js → chunk-DF2IIO32.js} +158 -158
- package/dist/bundle/{chunk-HLLRNP2G.js → chunk-DQ6P3R4B.js} +3 -3
- package/dist/bundle/{chunk-XHIVZPQ2.js → chunk-DSRXCLPO.js} +1 -1
- package/dist/bundle/{chunk-4HQDT5PF.js → chunk-EEPE3SOW.js} +5 -5
- package/dist/bundle/{chunk-SBRFKB77.js → chunk-EQGXEKSV.js} +7 -7
- package/dist/bundle/{chunk-DW3V7GTY.js → chunk-EQXT7KO4.js} +6 -6
- package/dist/bundle/{chunk-MXDIXBIV.js → chunk-ERW2WOJT.js} +1 -1
- package/dist/bundle/{chunk-5ETXE5KF.js → chunk-ESH2QGCA.js} +7 -7
- package/dist/bundle/{chunk-4EYKJLWI.js → chunk-G3JTLVVL.js} +7 -7
- package/dist/bundle/{chunk-JKCXDIGC.js → chunk-G6FQMVKW.js} +3 -3
- package/dist/bundle/{chunk-LWUJZ2E3.js → chunk-GBZ6JUXU.js} +2 -2
- package/dist/bundle/{chunk-5WAGTWCS.js → chunk-GLHFJPYS.js} +3 -3
- package/dist/bundle/{chunk-LB6D4QF2.js → chunk-GW4G5KLS.js} +8 -8
- package/dist/bundle/{chunk-V5K3M7FE.js → chunk-H7QDPW3D.js} +1 -1
- package/dist/bundle/{chunk-6B5PSQQ7.js → chunk-HG7FT3H3.js} +7 -7
- package/dist/bundle/{chunk-6L5EUGLP.js → chunk-I3WS6V5H.js} +8 -8
- package/dist/bundle/{chunk-BHNFRL3H.js → chunk-IDU4ESRZ.js} +1 -1
- package/dist/bundle/{chunk-OPXCRQTV.js → chunk-IXCIQ7FZ.js} +4 -4
- package/dist/bundle/{chunk-MZNRIH3T.js → chunk-J5P5VSRG.js} +8 -8
- package/dist/bundle/{chunk-NEFILPPV.js → chunk-JA26HG7T.js} +8 -8
- package/dist/bundle/{chunk-V6EVJXLO.js → chunk-JSTBW7F4.js} +6 -6
- package/dist/bundle/{chunk-QCEEPJNN.js → chunk-KHDXRFJZ.js} +8 -8
- package/dist/bundle/{chunk-2P7ENEQ7.js → chunk-L5WS6CYZ.js} +2 -2
- package/dist/bundle/{chunk-MYVWV5L5.js → chunk-LWJ4ZGUM.js} +13 -13
- package/dist/bundle/{chunk-PKNFA5TU.js → chunk-MC2RQ2OB.js} +1 -1
- package/dist/bundle/{chunk-QG4WCLGB.js → chunk-MNQACPXG.js} +25 -25
- package/dist/bundle/{chunk-IGALQ74S.js → chunk-MOSH2KPD.js} +10 -10
- package/dist/bundle/{chunk-A7YQTQ5U.js → chunk-MRREDVPY.js} +13 -13
- package/dist/bundle/{chunk-7NFEMS4A.js → chunk-MT2ZUZRA.js} +6 -6
- package/dist/bundle/{chunk-FJV3MO57.js → chunk-O4A33Y54.js} +2 -2
- package/dist/bundle/{chunk-V2R2BJJU.js → chunk-OBXDRUO4.js} +1 -1
- package/dist/bundle/{chunk-4XHWGJXT.js → chunk-OFR3YYT6.js} +1 -1
- package/dist/bundle/{chunk-4QE4L7UL.js → chunk-PMP37KLR.js} +3 -3
- package/dist/bundle/{chunk-JZMGOVCZ.js → chunk-Q3JCUUOR.js} +3 -3
- package/dist/bundle/{chunk-IYMWUL6E.js → chunk-Q7BSTQ3T.js} +1 -1
- package/dist/bundle/{chunk-DVN54VPI.js → chunk-QLHDUYGE.js} +1 -1
- package/dist/bundle/{chunk-2H2MWGBD.js → chunk-RU5J7DWY.js} +9 -9
- package/dist/bundle/{chunk-JTOKDROB.js → chunk-S7K2XFQB.js} +6 -6
- package/dist/bundle/{chunk-6BVPS2YY.js → chunk-SQHDE3TC.js} +4 -4
- package/dist/bundle/{chunk-WRJGITBX.js → chunk-TF7ZGCOK.js} +3 -3
- package/dist/bundle/{chunk-SP6DPFZ4.js → chunk-V6BTAILB.js} +61 -61
- package/dist/bundle/{chunk-PO6PLQYL.js → chunk-VDMIJ3JW.js} +3 -3
- package/dist/bundle/{chunk-YKN4Y35P.js → chunk-VW5F6FK3.js} +4 -4
- package/dist/bundle/{chunk-V6ALLFEE.js → chunk-W6F2CQZ6.js} +17 -17
- package/dist/bundle/{chunk-S7WJXELM.js → chunk-WARIIYSW.js} +2 -2
- package/dist/bundle/{chunk-ARRQVUJ2.js → chunk-WK7GLHHL.js} +5 -5
- package/dist/bundle/{chunk-XTQIXZVM.js → chunk-X5S5KUSU.js} +19 -19
- package/dist/bundle/{chunk-O6CVJGGL.js → chunk-X6R74TWX.js} +4 -4
- package/dist/bundle/{chunk-AEPOHR4Z.js → chunk-XXLQNHKF.js} +2 -2
- package/dist/bundle/{chunk-2343HKEW.js → chunk-XXOTX4M3.js} +7 -7
- package/dist/bundle/{chunk-TWCVCW5T.js → chunk-ZDBTYBFR.js} +3 -3
- package/dist/bundle/{chunk-SWJDLFDM.js → chunk-ZGADZ4CH.js} +14 -14
- package/dist/bundle/command-contract-7M6EPH3D.js +37 -0
- package/dist/bundle/{command-server-entry-4XR4GDS7.js → command-server-entry-MNVPYQZ3.js} +25 -25
- package/dist/bundle/{decode-24EITKP4.js → decode-MQNKNXLK.js} +5 -5
- package/dist/bundle/{definitions-HU62PG4L.js → definitions-FODOIPM2.js} +20 -5
- package/dist/bundle/{dispatch-VE6CXCJW.js → dispatch-TAQ7635E.js} +8 -8
- package/dist/bundle/{dist-ZSNEZYVF.js → dist-EM7KLEG4.js} +1 -1
- package/dist/bundle/{echarts-LEVLEF7L.js → echarts-6ZSUNO4L.js} +2 -2
- package/dist/bundle/{embed-G6FGY3VZ.js → embed-PHCCJJ5Z.js} +6 -6
- package/dist/bundle/{embedder-B6LNMXZZ.js → embedder-WLZZQTKZ.js} +9 -9
- package/dist/bundle/{failure-ASVFQXMF.js → failure-MR2XVHFP.js} +2 -2
- package/dist/bundle/{first-run-NVXVVALW.js → first-run-64LREHSV.js} +12 -12
- package/dist/bundle/first-screen-YSCAZIYJ.js +37 -0
- package/dist/bundle/{instructions-F3KPYMJK.js → instructions-22GCKNR5.js} +1 -1
- package/dist/bundle/{mcp-BUCB5ZPE.js → mcp-CNV7F2XZ.js} +2 -2
- package/dist/bundle/meeting-combined-YX3T5WJD.js +24 -0
- package/dist/bundle/{meeting-model-GJPAIUQL.js → meeting-model-JWDTCGLZ.js} +11 -11
- package/dist/bundle/{meeting-semantic-YWY645AH.js → meeting-semantic-375GYPZQ.js} +6 -6
- package/dist/bundle/{node-WVUZSDLD.js → node-ITDTNRRZ.js} +2 -2
- package/dist/bundle/{node-sqlite-V4NNKABG.js → node-sqlite-IRAGRMEZ.js} +7 -7
- package/dist/bundle/{oauth-7CENTQIN.js → oauth-CACOQJEL.js} +7 -7
- package/dist/bundle/{open-OLTONZBG.js → open-HU4KHKDR.js} +5 -5
- package/dist/bundle/{openai-M6ES74YN.js → openai-JQUPAVKX.js} +15 -15
- package/dist/bundle/{process-VFIFK5KO.js → process-QS5OHEUK.js} +1 -1
- package/dist/bundle/{program-N72VUDXM.js → program-5OTAVU5S.js} +376 -366
- package/dist/bundle/{prompt-TNWPBEBB.js → prompt-VA5MKXJU.js} +5 -5
- package/dist/bundle/{recognize-PV2WOUWS.js → recognize-JGA5IVKC.js} +4 -4
- package/dist/bundle/{remote-3F6JACS5.js → remote-NPY2KZQ4.js} +9 -9
- package/dist/bundle/{rerank-33C67PIV.js → rerank-4H2QR4XU.js} +7 -7
- package/dist/bundle/{schemas-RLDEALIJ.js → schemas-THAI3G5S.js} +6 -6
- package/dist/bundle/{serve-3DEMACSQ.js → serve-UH46SZQG.js} +9 -9
- package/dist/bundle/{server-LIBRGMUZ.js → server-6H7JS6SU.js} +53 -53
- package/dist/bundle/server-SR52KBL3.js +79 -0
- package/dist/bundle/{sqlite-runtime-SMAREHYG.js → sqlite-runtime-EJWEUTBR.js} +6 -6
- package/dist/bundle/{state-WPHAVJIU.js → state-34B6AUQZ.js} +6 -6
- package/dist/bundle/{store-A7V4FEXE.js → store-3R4ILTCJ.js} +18 -18
- package/dist/bundle/{store-PMAPJNXT.js → store-XSE35P3U.js} +20 -20
- package/dist/bundle/store-maintenance-command-ABJARLI4.js +66 -0
- package/dist/bundle/surface-NOTIEJB5.js +65 -0
- package/dist/generated/definitions.d.ts.map +1 -1
- package/dist/generated/definitions.js +15 -0
- package/dist/generated/definitions.js.map +1 -1
- package/dist/generated/schemas.js +5 -5
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/types.d.ts +15 -5
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/generated/wirecat-config.d.ts.map +1 -1
- package/dist/generated/wirecat-config.js +5 -0
- package/dist/generated/wirecat-config.js.map +1 -1
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/agent-KLBL3FYD.js +0 -37
- package/dist/bundle/command-contract-3FR7BK72.js +0 -37
- package/dist/bundle/first-screen-N3IPK5AT.js +0 -37
- package/dist/bundle/meeting-combined-7FREWXMB.js +0 -24
- package/dist/bundle/server-AAK2HWQM.js +0 -79
- package/dist/bundle/store-maintenance-command-QHRHAEYN.js +0 -66
- package/dist/bundle/surface-MN4RTNYW.js +0 -65
- package/dist/commands/comments.d.ts +0 -3
- package/dist/commands/comments.d.ts.map +0 -1
- package/dist/commands/comments.js +0 -114
- package/dist/commands/comments.js.map +0 -1
- package/dist/sample/comments.d.ts +0 -61
- package/dist/sample/comments.d.ts.map +0 -1
- package/dist/sample/comments.js +0 -39
- package/dist/sample/comments.js.map +0 -1
- package/dist/sample/records.d.ts +0 -16
- package/dist/sample/records.d.ts.map +0 -1
- package/dist/sample/records.js +0 -22
- package/dist/sample/records.js.map +0 -1
- package/dist/sample/transport.d.ts +0 -42
- package/dist/sample/transport.d.ts.map +0 -1
- package/dist/sample/transport.js +0 -153
- package/dist/sample/transport.js.map +0 -1
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LWJ4ZGUM.js";
|
|
12
12
|
import {
|
|
13
13
|
WIRECAT_TOOLS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IDU4ESRZ.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PMP37KLR.js";
|
|
19
19
|
import {
|
|
20
20
|
LIST_QUERY_GUIDE,
|
|
21
21
|
capability,
|
|
22
22
|
dateWindow,
|
|
23
23
|
momentOf,
|
|
24
24
|
timeBounds
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MRREDVPY.js";
|
|
26
26
|
import {
|
|
27
27
|
EmptyAnswer,
|
|
28
28
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
range,
|
|
32
32
|
systemFor,
|
|
33
33
|
validateImages
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TF7ZGCOK.js";
|
|
35
35
|
import {
|
|
36
36
|
anyOfTerms,
|
|
37
37
|
isFunctionWord,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
questionText,
|
|
43
43
|
resolveMeetingSelection,
|
|
44
44
|
words
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MOSH2KPD.js";
|
|
46
46
|
import {
|
|
47
47
|
CEILING_KEY,
|
|
48
48
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
stops,
|
|
79
79
|
tagging,
|
|
80
80
|
task
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-DF2IIO32.js";
|
|
82
82
|
import {
|
|
83
83
|
CustomTextModelShape,
|
|
84
84
|
DEFAULT_RERANK_MODEL,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
textModels,
|
|
93
93
|
vectorModelKey,
|
|
94
94
|
writeTextModelsSection
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-WK7GLHHL.js";
|
|
96
96
|
import {
|
|
97
97
|
AGENDA_COLUMNS,
|
|
98
98
|
BUSINESS_FIND_MAX,
|
|
@@ -165,17 +165,17 @@ import {
|
|
|
165
165
|
seenBy,
|
|
166
166
|
threadConversation,
|
|
167
167
|
withoutField
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-76RRELCU.js";
|
|
169
169
|
import {
|
|
170
170
|
DEFAULT_STEMMERS,
|
|
171
171
|
createStemmer,
|
|
172
172
|
cutsDeep
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-GW4G5KLS.js";
|
|
174
174
|
import {
|
|
175
175
|
MINUTE,
|
|
176
176
|
YEAR,
|
|
177
177
|
aheadOf
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-Q3JCUUOR.js";
|
|
179
179
|
import {
|
|
180
180
|
FIELD_VERSION,
|
|
181
181
|
MESSAGE_PARSING,
|
|
@@ -192,11 +192,11 @@ import {
|
|
|
192
192
|
searchError,
|
|
193
193
|
validateAst,
|
|
194
194
|
validateFields
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-G3JTLVVL.js";
|
|
196
196
|
import {
|
|
197
197
|
fold,
|
|
198
198
|
normalize
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-QLHDUYGE.js";
|
|
200
200
|
import {
|
|
201
201
|
CRM_KINDS,
|
|
202
202
|
DEAL_KINDS,
|
|
@@ -244,14 +244,14 @@ import {
|
|
|
244
244
|
sourceOf3 as sourceOf2,
|
|
245
245
|
typedCommand,
|
|
246
246
|
withAttempt
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-6NDJDDSQ.js";
|
|
248
248
|
import {
|
|
249
249
|
isCliFailure,
|
|
250
250
|
sqliteCode
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-GLHFJPYS.js";
|
|
252
252
|
import {
|
|
253
253
|
normalizeTag
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-O4A33Y54.js";
|
|
255
255
|
import {
|
|
256
256
|
OPERATORS_BY_TYPE,
|
|
257
257
|
READ_BUDGET_EXCEEDED,
|
|
@@ -275,26 +275,26 @@ import {
|
|
|
275
275
|
validateQuery,
|
|
276
276
|
walkQuery,
|
|
277
277
|
windowOf
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-V6BTAILB.js";
|
|
279
279
|
import {
|
|
280
280
|
localOnly,
|
|
281
281
|
refuseOffComputer,
|
|
282
282
|
remoteKey
|
|
283
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-KHDXRFJZ.js";
|
|
284
284
|
import {
|
|
285
285
|
PLAIN_HTTP_REFUSED,
|
|
286
286
|
endpoint,
|
|
287
287
|
endpointFetch,
|
|
288
288
|
modelAddressAllowed,
|
|
289
289
|
onThisComputer
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-ESH2QGCA.js";
|
|
291
291
|
import {
|
|
292
292
|
DEFAULT_TASK_CATEGORIES,
|
|
293
293
|
FALLBACK_CATEGORY,
|
|
294
294
|
readSharedSection,
|
|
295
295
|
sharedConfigPath,
|
|
296
296
|
writeSharedSection
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-EQGXEKSV.js";
|
|
298
298
|
import {
|
|
299
299
|
Unzip,
|
|
300
300
|
UnzipInflate,
|
|
@@ -305,15 +305,15 @@ import {
|
|
|
305
305
|
placedText,
|
|
306
306
|
runEmbedders,
|
|
307
307
|
textModelsDirectory
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-MT2ZUZRA.js";
|
|
309
309
|
import {
|
|
310
310
|
installFiles,
|
|
311
311
|
megabytes
|
|
312
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-4SMGM2Q6.js";
|
|
313
313
|
import {
|
|
314
314
|
storePath,
|
|
315
315
|
wirecatDirectory
|
|
316
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-34FJ26K2.js";
|
|
317
317
|
import {
|
|
318
318
|
Credentials,
|
|
319
319
|
logRecordOf,
|
|
@@ -321,7 +321,7 @@ import {
|
|
|
321
321
|
realSleep,
|
|
322
322
|
resolvePaths,
|
|
323
323
|
writeSecurely
|
|
324
|
-
} from "./chunk-
|
|
324
|
+
} from "./chunk-X5S5KUSU.js";
|
|
325
325
|
import {
|
|
326
326
|
array,
|
|
327
327
|
boolean,
|
|
@@ -362,7 +362,7 @@ import {
|
|
|
362
362
|
isCliError,
|
|
363
363
|
singleLine,
|
|
364
364
|
visibleControls
|
|
365
|
-
} from "./chunk-
|
|
365
|
+
} from "./chunk-BUGROVF3.js";
|
|
366
366
|
import {
|
|
367
367
|
__commonJS,
|
|
368
368
|
__name,
|
|
@@ -16978,10 +16978,10 @@ var require_lib3 = __commonJS({
|
|
|
16978
16978
|
}
|
|
16979
16979
|
});
|
|
16980
16980
|
|
|
16981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16982
16982
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16983
16983
|
|
|
16984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16985
16985
|
var RULES_VERSION = 6;
|
|
16986
16986
|
var LOOK_BACK = 50;
|
|
16987
16987
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17079,7 +17079,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
17079
17079
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17080
17080
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
17081
17081
|
|
|
17082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17083
17083
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17084
17084
|
import { open, stat } from "node:fs/promises";
|
|
17085
17085
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17296,10 +17296,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read2) => {
|
|
|
17296
17296
|
return { name, source };
|
|
17297
17297
|
}, "readStickerFile");
|
|
17298
17298
|
|
|
17299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17300
17300
|
import { randomUUID } from "node:crypto";
|
|
17301
17301
|
|
|
17302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17303
17303
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17304
17304
|
import { dirname as dirname2, join } from "node:path";
|
|
17305
17305
|
var MOST_DEADLINES = 50;
|
|
@@ -17383,11 +17383,11 @@ var FloodMemory = class {
|
|
|
17383
17383
|
}
|
|
17384
17384
|
};
|
|
17385
17385
|
|
|
17386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17387
17387
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17388
17388
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17389
17389
|
|
|
17390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17391
17391
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17392
17392
|
import { dirname as dirname3 } from "node:path";
|
|
17393
17393
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17454,7 +17454,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17454
17454
|
}
|
|
17455
17455
|
}, "lockTime");
|
|
17456
17456
|
|
|
17457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17458
17458
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17459
17459
|
var SendJournal = class {
|
|
17460
17460
|
static {
|
|
@@ -17531,7 +17531,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17531
17531
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17532
17532
|
}, "withSendId");
|
|
17533
17533
|
|
|
17534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17535
17535
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17536
17536
|
import { join as join3 } from "node:path";
|
|
17537
17537
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17643,7 +17643,7 @@ var RecipientList = class {
|
|
|
17643
17643
|
}
|
|
17644
17644
|
};
|
|
17645
17645
|
|
|
17646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17647
17647
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17648
17648
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind: kind2 = "message", action: action2, notify }) => kind2 === "message" || kind2 === "forward" || kind2 === "edit" || kind2 === "delete" || kind2 === "pin" && notify === true || action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "join" || action2 === "contact-import", "countsTowardLimit");
|
|
17649
17649
|
var weightOf = /* @__PURE__ */ __name(({ kind: kind2 = "message", action: action2, count: count3, people }) => kind2 === "delete" || kind2 === "message" && action2 === void 0 ? Math.max(1, count3 ?? 1) : action2 === "create" || action2 === "members.add" || action2 === "requests.accept" || action2 === "contact-import" ? Math.max(1, people ?? count3 ?? 1) : 1, "weightOf");
|
|
@@ -17831,7 +17831,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17831
17831
|
}), "guardFor");
|
|
17832
17832
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17833
17833
|
|
|
17834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17835
17835
|
var COMMAND_NEEDS = {
|
|
17836
17836
|
"account update": ["updateProfile", "change the profile"],
|
|
17837
17837
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17881,7 +17881,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17881
17881
|
return group;
|
|
17882
17882
|
}, "hideNever");
|
|
17883
17883
|
|
|
17884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17885
17885
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17886
17886
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17887
17887
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17943,12 +17943,12 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17943
17943
|
}), "storedDeps");
|
|
17944
17944
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17945
17945
|
|
|
17946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17947
17947
|
import { randomBytes } from "node:crypto";
|
|
17948
17948
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17949
17949
|
var newOperationId = newSendId;
|
|
17950
17950
|
|
|
17951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17952
17952
|
var LINKS = /https?:\/\/\S+/g;
|
|
17953
17953
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before).map(({ question }) => question), "unanswered");
|
|
17954
17954
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17978,7 +17978,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17978
17978
|
});
|
|
17979
17979
|
}, "questions");
|
|
17980
17980
|
|
|
17981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17982
17982
|
var AUDIT_PAGE = 200;
|
|
17983
17983
|
var AUDIT_BUDGET = 10;
|
|
17984
17984
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18058,7 +18058,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18058
18058
|
return found;
|
|
18059
18059
|
}, "burstJoins");
|
|
18060
18060
|
|
|
18061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18062
18062
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18063
18063
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18064
18064
|
const name = typed.trim().toLowerCase();
|
|
@@ -18115,7 +18115,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
18115
18115
|
return best.name;
|
|
18116
18116
|
}, "categorize");
|
|
18117
18117
|
|
|
18118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18119
18119
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18120
18120
|
var RULES_IN = {
|
|
18121
18121
|
dialog: "all",
|
|
@@ -18321,7 +18321,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18321
18321
|
return passes;
|
|
18322
18322
|
}, "applyTaskRulesToChats");
|
|
18323
18323
|
|
|
18324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18325
18325
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18326
18326
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18327
18327
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18344,10 +18344,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18344
18344
|
}
|
|
18345
18345
|
}, "patiently");
|
|
18346
18346
|
|
|
18347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18347
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18348
18348
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18349
18349
|
|
|
18350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18351
18351
|
var REQUEST_MS = 400;
|
|
18352
18352
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18353
18353
|
const lowest = ranges[0];
|
|
@@ -18370,13 +18370,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18370
18370
|
};
|
|
18371
18371
|
}, "estimateBackfill");
|
|
18372
18372
|
|
|
18373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18374
18374
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18375
18375
|
...error,
|
|
18376
18376
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18377
18377
|
}), "withRecovery");
|
|
18378
18378
|
|
|
18379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18380
18380
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18381
18381
|
if (isCliFailure(error))
|
|
18382
18382
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18459,7 +18459,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18459
18459
|
};
|
|
18460
18460
|
}, "mergeBatches");
|
|
18461
18461
|
|
|
18462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
18463
18463
|
var ALL = "all";
|
|
18464
18464
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
18465
18465
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -18531,7 +18531,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
18531
18531
|
[ALL]: [ALL]
|
|
18532
18532
|
}), "groupEntries");
|
|
18533
18533
|
|
|
18534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
18535
18535
|
var NO_MAIL = "no_mail";
|
|
18536
18536
|
var MAIL = "email";
|
|
18537
18537
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -18605,7 +18605,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
18605
18605
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
18606
18606
|
}, "accountsOfKind");
|
|
18607
18607
|
|
|
18608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18609
18609
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18610
18610
|
if (deps.reads !== "store")
|
|
18611
18611
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18806,7 +18806,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18806
18806
|
}, "chatsMatchingIn");
|
|
18807
18807
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18808
18808
|
|
|
18809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18809
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18810
18810
|
var CONTEXT_MESSAGES = 3;
|
|
18811
18811
|
var CONTEXT_MINUTES = 10;
|
|
18812
18812
|
var MAX_CHARS = 1200;
|
|
@@ -18830,12 +18830,12 @@ var context = {
|
|
|
18830
18830
|
}, "describe")
|
|
18831
18831
|
};
|
|
18832
18832
|
|
|
18833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18834
18834
|
var BUILT_INS = [context];
|
|
18835
18835
|
var providers = [...BUILT_INS];
|
|
18836
18836
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18837
18837
|
|
|
18838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18839
18839
|
var READ_PAGE = 5e3;
|
|
18840
18840
|
var CHAIN = 50;
|
|
18841
18841
|
var CONVERSATION_QUERY = {
|
|
@@ -18987,7 +18987,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18987
18987
|
return size2;
|
|
18988
18988
|
}, "sized");
|
|
18989
18989
|
|
|
18990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18991
18991
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18992
18992
|
var MESSAGE_PAGE = 5e3;
|
|
18993
18993
|
var PER_SESSION = 8;
|
|
@@ -19006,7 +19006,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19006
19006
|
price: remote.price,
|
|
19007
19007
|
installed: true,
|
|
19008
19008
|
perBatch: PER_REQUEST * concurrency,
|
|
19009
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19009
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-NPY2KZQ4.js")).openRemote(remote, apiKey, {
|
|
19010
19010
|
concurrency,
|
|
19011
19011
|
env: deps.env ?? process.env
|
|
19012
19012
|
}), "open")
|
|
@@ -19026,7 +19026,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19026
19026
|
if (!isTextModelInstalled(model, directory2))
|
|
19027
19027
|
throw notDownloaded(model.id);
|
|
19028
19028
|
if (apart) {
|
|
19029
|
-
const { openProcess } = await import("./process-
|
|
19029
|
+
const { openProcess } = await import("./process-QS5OHEUK.js");
|
|
19030
19030
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19031
19031
|
}
|
|
19032
19032
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19315,7 +19315,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19315
19315
|
return { ...one, state };
|
|
19316
19316
|
}, "shaped");
|
|
19317
19317
|
|
|
19318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19319
19319
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19320
19320
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19321
19321
|
for (const [key, value, maximum] of [
|
|
@@ -19368,7 +19368,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19368
19368
|
}
|
|
19369
19369
|
}, "catchUpSearch");
|
|
19370
19370
|
|
|
19371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19372
19372
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19373
19373
|
if (deps.reads === "store") {
|
|
19374
19374
|
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`);
|
|
@@ -19749,7 +19749,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19749
19749
|
return message?.timestamp ?? fallback;
|
|
19750
19750
|
}, "timeOfKey");
|
|
19751
19751
|
|
|
19752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19753
19753
|
var DAY_MS = 864e5;
|
|
19754
19754
|
var NEW_DAYS = 30;
|
|
19755
19755
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19826,7 +19826,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19826
19826
|
};
|
|
19827
19827
|
}, "scorePerson");
|
|
19828
19828
|
|
|
19829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19830
19830
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19831
19831
|
const controller = new AbortController();
|
|
19832
19832
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19842,7 +19842,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
19842
19842
|
}
|
|
19843
19843
|
}, "withTimeLimit");
|
|
19844
19844
|
|
|
19845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19846
19846
|
var REGISTRIES = {
|
|
19847
19847
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19848
19848
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19929,7 +19929,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19929
19929
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19930
19930
|
})), "notCovered");
|
|
19931
19931
|
|
|
19932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19933
19933
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19934
19934
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19935
19935
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20017,7 +20017,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20017
20017
|
};
|
|
20018
20018
|
}, "botCheckService");
|
|
20019
20019
|
|
|
20020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20021
20021
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20022
20022
|
if (value === void 0)
|
|
20023
20023
|
return void 0;
|
|
@@ -20027,7 +20027,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20027
20027
|
return id3;
|
|
20028
20028
|
}, "threadIdOf");
|
|
20029
20029
|
|
|
20030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20031
20031
|
var TOP_POSTS = 5;
|
|
20032
20032
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20033
20033
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20144,7 +20144,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20144
20144
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20145
20145
|
}, "median");
|
|
20146
20146
|
|
|
20147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20148
20148
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20149
20149
|
const events = [];
|
|
20150
20150
|
for (const stay of stays) {
|
|
@@ -20176,7 +20176,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20176
20176
|
return events.filter(({ at: at3 }) => Date.parse(at3) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20177
20177
|
}, "memberEvents");
|
|
20178
20178
|
|
|
20179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20180
20180
|
var EVENTS_DAYS = 7;
|
|
20181
20181
|
var TRACKED_DAYS = 30;
|
|
20182
20182
|
var STATS_PAGE = 1e3;
|
|
@@ -20471,7 +20471,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20471
20471
|
return members.length === 0 ? null : members;
|
|
20472
20472
|
}, "storedMembers");
|
|
20473
20473
|
|
|
20474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20475
20475
|
var INBOX_CHATS = 20;
|
|
20476
20476
|
var REVIEW_DAYS = 3;
|
|
20477
20477
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20679,10 +20679,10 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20679
20679
|
};
|
|
20680
20680
|
}, "inboxService");
|
|
20681
20681
|
|
|
20682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
20683
20683
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
20684
20684
|
|
|
20685
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20685
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/names.js
|
|
20686
20686
|
var pascal = /* @__PURE__ */ __name((text3) => text3.split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word[0]?.toUpperCase() + word.slice(1)).join(""), "pascal");
|
|
20687
20687
|
var GLOBALS = /* @__PURE__ */ new Set([
|
|
20688
20688
|
"Array",
|
|
@@ -20718,7 +20718,7 @@ var identifier = /* @__PURE__ */ __name((id3) => {
|
|
|
20718
20718
|
return GLOBALS.has(name) ? `Api${name}` : name;
|
|
20719
20719
|
}, "identifier");
|
|
20720
20720
|
|
|
20721
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20721
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/sign-in.js
|
|
20722
20722
|
var BEARER = { in: "header", name: "authorization", value: /* @__PURE__ */ __name((token) => `Bearer ${token}`, "value") };
|
|
20723
20723
|
var signInPlace = /* @__PURE__ */ __name((scheme) => {
|
|
20724
20724
|
if (scheme.type === "apiKey") {
|
|
@@ -20751,7 +20751,7 @@ var signInRequirements = /* @__PURE__ */ __name((operation, document) => {
|
|
|
20751
20751
|
return requirements?.some((one) => Object.keys(one).length > 0) ? requirements : void 0;
|
|
20752
20752
|
}, "signInRequirements");
|
|
20753
20753
|
|
|
20754
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20754
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/graphql.js
|
|
20755
20755
|
var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selection) => {
|
|
20756
20756
|
const variables = Object.entries(binding.variables);
|
|
20757
20757
|
const declared = variables.length ? `(${variables.map(([name, type]) => `$${name}: ${type}`).join(", ")})` : "";
|
|
@@ -20760,7 +20760,7 @@ var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selec
|
|
|
20760
20760
|
return `${binding.operation} ${binding.field[0]?.toUpperCase()}${binding.field.slice(1)}${declared} { ${binding.field}${passed}${inner} }`;
|
|
20761
20761
|
}, "graphqlDocument");
|
|
20762
20762
|
|
|
20763
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20763
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/openapi.js
|
|
20764
20764
|
var IGNORED = /* @__PURE__ */ new Set([
|
|
20765
20765
|
"readOnly",
|
|
20766
20766
|
"example",
|
|
@@ -21488,7 +21488,7 @@ function resolveSpace(space) {
|
|
|
21488
21488
|
}
|
|
21489
21489
|
__name(resolveSpace, "resolveSpace");
|
|
21490
21490
|
|
|
21491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
21492
21492
|
var RENAMED = { timeout: "poll-timeout" };
|
|
21493
21493
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
21494
21494
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -21626,7 +21626,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
21626
21626
|
return raw;
|
|
21627
21627
|
}, "flagValue");
|
|
21628
21628
|
|
|
21629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
21630
21630
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
21631
21631
|
const server = manifest.servers?.[0];
|
|
21632
21632
|
if (given === void 0 && !server)
|
|
@@ -21748,10 +21748,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer) => {
|
|
|
21748
21748
|
}
|
|
21749
21749
|
}, "nextPage");
|
|
21750
21750
|
|
|
21751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/source.js
|
|
21752
21752
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
21753
21753
|
|
|
21754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
21755
21755
|
var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
|
|
21756
21756
|
const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
|
|
21757
21757
|
const providerId = rest.join(":");
|
|
@@ -21784,7 +21784,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
21784
21784
|
return walk2(body);
|
|
21785
21785
|
}, "withoutFileLinks");
|
|
21786
21786
|
|
|
21787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21787
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
21788
21788
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
21789
21789
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
21790
21790
|
var text = /* @__PURE__ */ __name((value) => {
|
|
@@ -21841,7 +21841,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
21841
21841
|
}));
|
|
21842
21842
|
}, "crmValuesOf");
|
|
21843
21843
|
|
|
21844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/walk.js
|
|
21845
21845
|
var crmWindowOf = /* @__PURE__ */ __name((query) => {
|
|
21846
21846
|
const page = query.page ?? 1;
|
|
21847
21847
|
return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
|
|
@@ -21861,7 +21861,7 @@ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
|
|
|
21861
21861
|
return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
|
|
21862
21862
|
}, "walk");
|
|
21863
21863
|
|
|
21864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
21865
21865
|
var MISSING = /* @__PURE__ */ Symbol("missing");
|
|
21866
21866
|
var at2 = /* @__PURE__ */ __name((value, path2) => path2 === "." ? value : path2.split(".").reduce((inner, key) => inner === null ? null : Array.isArray(inner) && /^\d+$/.test(key) ? inner[Number(key)] ?? null : isRaw(inner) ? inner[key] : void 0, value), "at");
|
|
21867
21867
|
var read = /* @__PURE__ */ __name((raw, path2) => {
|
|
@@ -22114,7 +22114,7 @@ var selectedOf = /* @__PURE__ */ __name((rules, from) => {
|
|
|
22114
22114
|
].filter(Boolean);
|
|
22115
22115
|
}, "selectedOf");
|
|
22116
22116
|
|
|
22117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
22118
22118
|
var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
|
|
22119
22119
|
var paths = pipe(array(path), minLength(1));
|
|
22120
22120
|
var crmRuleSchema = union([
|
|
@@ -22158,7 +22158,8 @@ var entity = strictObject({
|
|
|
22158
22158
|
split: optional(string()),
|
|
22159
22159
|
typed: optional(strictObject({ by: path, current: optional(path), paths: optional(record(string(), path)) }))
|
|
22160
22160
|
})),
|
|
22161
|
-
optional: optional(strictObject({ message: pipe(string(), minLength(1)), scope: optional(string()) }))
|
|
22161
|
+
optional: optional(strictObject({ message: pipe(string(), minLength(1)), scope: optional(string()) })),
|
|
22162
|
+
linked: optional(literal(true))
|
|
22162
22163
|
});
|
|
22163
22164
|
var pipelines = strictObject({
|
|
22164
22165
|
call,
|
|
@@ -22260,6 +22261,15 @@ var parseCrmManifest = /* @__PURE__ */ __name((input, api) => {
|
|
|
22260
22261
|
if (!hasPlaceholder([one.search.path, one.search.query, one.search.body], "{query}"))
|
|
22261
22262
|
throw invalid(`entities.${kind2}.search`, 'no "{query}" in its path, query or body');
|
|
22262
22263
|
}
|
|
22264
|
+
if (one.linked) {
|
|
22265
|
+
if (kind2 !== "person" && kind2 !== "organization")
|
|
22266
|
+
throw invalid(`entities.${kind2}.linked`, "only contacts and companies are copied as a deal names them");
|
|
22267
|
+
if (!one.get)
|
|
22268
|
+
throw invalid(`entities.${kind2}.linked`, "each one is read by its get, and this kind has none");
|
|
22269
|
+
const link4 = kind2 === "person" ? "people" : "organization";
|
|
22270
|
+
if (!manifest.kinds.includes("deal") || manifest.entities.deal?.map[link4] === void 0)
|
|
22271
|
+
throw invalid(`entities.${kind2}.linked`, `no deal entity maps ${link4}`);
|
|
22272
|
+
}
|
|
22263
22273
|
if (one.map.externalId === void 0)
|
|
22264
22274
|
throw invalid(`entities.${kind2}.map.externalId`, "every kind maps its id");
|
|
22265
22275
|
const fields2 = [...Object.keys(FIELDS[kind2]), "amount", "currency"];
|
|
@@ -22285,10 +22295,11 @@ var parseCrmManifest = /* @__PURE__ */ __name((input, api) => {
|
|
|
22285
22295
|
return manifest;
|
|
22286
22296
|
}, "parseCrmManifest");
|
|
22287
22297
|
|
|
22288
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
22289
22299
|
var OVERLAP_MS = 10 * 6e4;
|
|
22290
22300
|
var MOST_LIVE = 100;
|
|
22291
22301
|
var MOST_PAGES = 500;
|
|
22302
|
+
var LINKED_PAGE = 50;
|
|
22292
22303
|
var DROP = /* @__PURE__ */ Symbol("drop");
|
|
22293
22304
|
var fill = /* @__PURE__ */ __name((value, slots) => {
|
|
22294
22305
|
if (value === "{since}")
|
|
@@ -22445,7 +22456,7 @@ var crmSourceFromManifest = /* @__PURE__ */ __name((input, options2) => {
|
|
|
22445
22456
|
}, "selectOf");
|
|
22446
22457
|
const optionalRefused = /* @__PURE__ */ __name((kind2, error, context2) => {
|
|
22447
22458
|
const optional2 = manifest.entities[kind2]?.optional;
|
|
22448
|
-
if (!optional2 || !
|
|
22459
|
+
if (!optional2 || !unseen(error))
|
|
22449
22460
|
return false;
|
|
22450
22461
|
gap(context2, { kind: kind2, message: optional2.message, ...optional2.scope ? { scope: optional2.scope } : {} });
|
|
22451
22462
|
return true;
|
|
@@ -22482,6 +22493,8 @@ var crmSourceFromManifest = /* @__PURE__ */ __name((input, options2) => {
|
|
|
22482
22493
|
const since = cursor === null ? null : Date.parse(cursor);
|
|
22483
22494
|
if (since !== null && Number.isNaN(since))
|
|
22484
22495
|
return { reset: true };
|
|
22496
|
+
if (entity2.linked && (kind2 === "person" || kind2 === "organization"))
|
|
22497
|
+
return await readLinked(kind2, page, context2);
|
|
22485
22498
|
const { token, started } = pageOf(page, now());
|
|
22486
22499
|
const send = metered(context2);
|
|
22487
22500
|
const defined = entity2.custom ? await fieldsOf2(kind2, send, context2) : [];
|
|
@@ -22494,8 +22507,74 @@ var crmSourceFromManifest = /* @__PURE__ */ __name((input, options2) => {
|
|
|
22494
22507
|
const items = await mapped(kind2, rows, defined, send);
|
|
22495
22508
|
return next === void 0 ? { items, hasMore: false, cursor: new Date(started).toISOString() } : { items, hasMore: true, nextCursor: `${next}@${started}` };
|
|
22496
22509
|
}, "readChanges");
|
|
22510
|
+
const readOne = /* @__PURE__ */ __name(async (kind2, externalId, send, context2) => {
|
|
22511
|
+
const entity2 = entityOf(kind2);
|
|
22512
|
+
if (!entity2.get)
|
|
22513
|
+
return null;
|
|
22514
|
+
const defined = entity2.custom ? await fieldsOf2(kind2, send, context2) : [];
|
|
22515
|
+
let answer;
|
|
22516
|
+
try {
|
|
22517
|
+
answer = await send(entity2.get.operation, inputOf(entity2.get, { id: externalId, select: selectOf(kind2, defined, context2) }));
|
|
22518
|
+
} catch (error) {
|
|
22519
|
+
if (unseen(error))
|
|
22520
|
+
return null;
|
|
22521
|
+
throw error;
|
|
22522
|
+
}
|
|
22523
|
+
const raw = entity2.get.items === void 0 ? answer : at2(answer, entity2.get.items);
|
|
22524
|
+
return isRaw(raw) ? (await mapped(kind2, [raw], defined, send))[0] ?? null : null;
|
|
22525
|
+
}, "readOne");
|
|
22526
|
+
const linkedOf = /* @__PURE__ */ __name(async (send, context2) => {
|
|
22527
|
+
const deal = entityOf("deal");
|
|
22528
|
+
const found = { person: /* @__PURE__ */ new Set(), organization: /* @__PURE__ */ new Set() };
|
|
22529
|
+
let rows;
|
|
22530
|
+
try {
|
|
22531
|
+
rows = await readAll(deal.list, send);
|
|
22532
|
+
} catch (error) {
|
|
22533
|
+
if (!optionalRefused("deal", error, context2))
|
|
22534
|
+
throw error;
|
|
22535
|
+
rows = [];
|
|
22536
|
+
}
|
|
22537
|
+
for (const raw of rows) {
|
|
22538
|
+
const record2 = mapRecord("deal", deal, raw, []);
|
|
22539
|
+
if (record2?.organization)
|
|
22540
|
+
found.organization.add(record2.organization);
|
|
22541
|
+
for (const one of record2?.people ?? [])
|
|
22542
|
+
found.person.add(one.externalId);
|
|
22543
|
+
}
|
|
22544
|
+
return { person: [...found.person].sort(), organization: [...found.organization].sort() };
|
|
22545
|
+
}, "linkedOf");
|
|
22546
|
+
let round;
|
|
22547
|
+
const linkedRound = /* @__PURE__ */ __name((started, send, context2) => {
|
|
22548
|
+
if (round?.started !== started) {
|
|
22549
|
+
const ids = linkedOf(send, context2);
|
|
22550
|
+
ids.catch(() => {
|
|
22551
|
+
if (round?.ids === ids)
|
|
22552
|
+
round = void 0;
|
|
22553
|
+
});
|
|
22554
|
+
round = { started, ids };
|
|
22555
|
+
}
|
|
22556
|
+
return round.ids;
|
|
22557
|
+
}, "linkedRound");
|
|
22558
|
+
const readLinked = /* @__PURE__ */ __name(async (kind2, page, context2) => {
|
|
22559
|
+
const { token, started } = pageOf(page, now());
|
|
22560
|
+
const from = token === void 0 ? 0 : Number(token);
|
|
22561
|
+
if (!Number.isSafeInteger(from) || from < 0)
|
|
22562
|
+
return { reset: true };
|
|
22563
|
+
const send = metered(context2);
|
|
22564
|
+
const ids = (await linkedRound(started, send, context2))[kind2];
|
|
22565
|
+
const items = [];
|
|
22566
|
+
for (const externalId of ids.slice(from, from + LINKED_PAGE)) {
|
|
22567
|
+
const one = await readOne(kind2, externalId, send, context2);
|
|
22568
|
+
if (one)
|
|
22569
|
+
items.push(one);
|
|
22570
|
+
}
|
|
22571
|
+
const next = from + LINKED_PAGE;
|
|
22572
|
+
return next < ids.length ? { items, hasMore: true, nextCursor: `${next}@${started}` } : { items, hasMore: false, cursor: new Date(started).toISOString() };
|
|
22573
|
+
}, "readLinked");
|
|
22497
22574
|
const readIds = /* @__PURE__ */ __name(async (kind2, page, context2) => {
|
|
22498
22575
|
const entity2 = entityOf(kind2);
|
|
22576
|
+
if (entity2.linked && (kind2 === "person" || kind2 === "organization"))
|
|
22577
|
+
return { items: (await linkedOf(metered(context2), context2))[kind2], hasMore: false };
|
|
22499
22578
|
const { rows, next } = await readPage2(entity2.ids ?? entity2.list, {}, page, metered(context2));
|
|
22500
22579
|
const items = rows.flatMap((raw) => {
|
|
22501
22580
|
const found = evaluate(entity2.map.externalId, raw);
|
|
@@ -22573,21 +22652,7 @@ var crmSourceFromManifest = /* @__PURE__ */ __name((input, options2) => {
|
|
|
22573
22652
|
},
|
|
22574
22653
|
...live.length ? { list: readLive } : {},
|
|
22575
22654
|
async get(kind2, externalId, context2) {
|
|
22576
|
-
|
|
22577
|
-
if (!entity2.get)
|
|
22578
|
-
return null;
|
|
22579
|
-
const send = metered(context2);
|
|
22580
|
-
const defined = entity2.custom ? await fieldsOf2(kind2, send, context2) : [];
|
|
22581
|
-
let answer;
|
|
22582
|
-
try {
|
|
22583
|
-
answer = await send(entity2.get.operation, inputOf(entity2.get, { id: externalId, select: selectOf(kind2, defined, context2) }));
|
|
22584
|
-
} catch (error) {
|
|
22585
|
-
if (unseen(error))
|
|
22586
|
-
return null;
|
|
22587
|
-
throw error;
|
|
22588
|
-
}
|
|
22589
|
-
const raw = entity2.get.items === void 0 ? answer : at2(answer, entity2.get.items);
|
|
22590
|
-
return isRaw(raw) ? (await mapped(kind2, [raw], defined, send))[0] ?? null : null;
|
|
22655
|
+
return readOne(kind2, externalId, metered(context2), context2);
|
|
22591
22656
|
},
|
|
22592
22657
|
...manifest.fields ? { fields: /* @__PURE__ */ __name((kind2, context2) => fieldsOf2(kind2, metered(context2), context2), "fields") } : {},
|
|
22593
22658
|
...manifest.users ? {
|
|
@@ -22669,7 +22734,7 @@ var toField = /* @__PURE__ */ __name((spec, raw) => {
|
|
|
22669
22734
|
};
|
|
22670
22735
|
}, "toField");
|
|
22671
22736
|
|
|
22672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
22673
22738
|
import { readFileSync as readFileSync5, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
22674
22739
|
import { join as join4 } from "node:path";
|
|
22675
22740
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -22764,10 +22829,10 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
22764
22829
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
22765
22830
|
}, "waitForTurn");
|
|
22766
22831
|
|
|
22767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
22768
22833
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
22769
22834
|
|
|
22770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
22771
22836
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
22772
22837
|
import { join as join5 } from "node:path";
|
|
22773
22838
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
@@ -22842,7 +22907,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file2, options2 = {}) => {
|
|
|
22842
22907
|
};
|
|
22843
22908
|
}, "foreignContacts");
|
|
22844
22909
|
|
|
22845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
22846
22911
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
22847
22912
|
let question;
|
|
22848
22913
|
let answered = false;
|
|
@@ -22885,7 +22950,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
22885
22950
|
};
|
|
22886
22951
|
}, "keyedGuard");
|
|
22887
22952
|
|
|
22888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
22889
22954
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
22890
22955
|
var CRM_WRITE_DEFAULTS = {
|
|
22891
22956
|
"deals.delete": "ask",
|
|
@@ -22893,7 +22958,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
22893
22958
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
22894
22959
|
};
|
|
22895
22960
|
|
|
22896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/writes.js
|
|
22897
22962
|
var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
|
|
22898
22963
|
try {
|
|
22899
22964
|
check2();
|
|
@@ -23340,7 +23405,7 @@ var updateCrmRecord = /* @__PURE__ */ __name(async (context2, kind2, externalId,
|
|
|
23340
23405
|
return writeRecord(context2, kind2, "update", fields2, operationId, () => writer.update(kind2, externalId, fields2, { operationId }));
|
|
23341
23406
|
}, "updateCrmRecord");
|
|
23342
23407
|
|
|
23343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/query.js
|
|
23344
23409
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
23345
23410
|
if (kind2 === "id") {
|
|
23346
23411
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -23441,7 +23506,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
23441
23506
|
});
|
|
23442
23507
|
}, "selectedCodes");
|
|
23443
23508
|
|
|
23444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
|
|
23445
23510
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
23446
23511
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
23447
23512
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -23449,7 +23514,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
23449
23514
|
return grouped2 ? void 0 : workGroupHint(key);
|
|
23450
23515
|
}, "ungroupedHint");
|
|
23451
23516
|
|
|
23452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
23453
23518
|
var VIEWERS = "crm:viewers";
|
|
23454
23519
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
23455
23520
|
try {
|
|
@@ -23524,7 +23589,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
|
|
|
23524
23589
|
return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
|
|
23525
23590
|
}, "ownerOf");
|
|
23526
23591
|
|
|
23527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
23528
23593
|
var DAY2 = 864e5;
|
|
23529
23594
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
23530
23595
|
var MOST_UNLISTED = 0.5;
|
|
@@ -24178,7 +24243,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
|
|
|
24178
24243
|
return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
|
|
24179
24244
|
}, "crmStatus");
|
|
24180
24245
|
|
|
24181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
24182
24247
|
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");
|
|
24183
24248
|
var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
|
|
24184
24249
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -24194,7 +24259,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
|
|
|
24194
24259
|
}, "excerpt");
|
|
24195
24260
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
24196
24261
|
|
|
24197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
24198
24263
|
var SCAN = 1e3;
|
|
24199
24264
|
var SNIPPET = 200;
|
|
24200
24265
|
var SNIPPET_ROWS = 6;
|
|
@@ -24259,7 +24324,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
24259
24324
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
24260
24325
|
}, "personMeetings");
|
|
24261
24326
|
|
|
24262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
24263
24328
|
var CONTEXT_MESSAGES2 = 10;
|
|
24264
24329
|
var CONTEXT_BYTES = 64 * 1024;
|
|
24265
24330
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -24565,10 +24630,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
24565
24630
|
};
|
|
24566
24631
|
}, "personMessages");
|
|
24567
24632
|
|
|
24568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
24569
24634
|
import { createHash } from "node:crypto";
|
|
24570
24635
|
|
|
24571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
24572
24637
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
24573
24638
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
24574
24639
|
const parsed = parseMeetingReference(reference);
|
|
@@ -24586,7 +24651,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
24586
24651
|
return { parsed, meeting };
|
|
24587
24652
|
}, "authorizedMeetingMetadata");
|
|
24588
24653
|
|
|
24589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
24590
24655
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
24591
24656
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
24592
24657
|
if (signal?.aborted)
|
|
@@ -24785,7 +24850,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
24785
24850
|
return { ...packet, fingerprint: hash(packet) };
|
|
24786
24851
|
}, "readMeetingEvidence");
|
|
24787
24852
|
|
|
24788
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
24789
24854
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
24790
24855
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
24791
24856
|
const requestedAccounts = options2.accountIds;
|
|
@@ -24884,7 +24949,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
24884
24949
|
};
|
|
24885
24950
|
}, "personMeetingContext");
|
|
24886
24951
|
|
|
24887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
24888
24953
|
var PREPARE_BYTES = 96 * 1024;
|
|
24889
24954
|
var MEETINGS = 5;
|
|
24890
24955
|
var CUES = 3;
|
|
@@ -25007,7 +25072,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
25007
25072
|
}
|
|
25008
25073
|
}, "meetingsOf");
|
|
25009
25074
|
|
|
25010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
25011
25076
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
25012
25077
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
25013
25078
|
const held = await storeIfOpen(deps);
|
|
@@ -25077,7 +25142,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
25077
25142
|
complete: false
|
|
25078
25143
|
})), "quiet");
|
|
25079
25144
|
|
|
25080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25145
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
25081
25146
|
var TIMELINE_ITEMS = 50;
|
|
25082
25147
|
var TIMELINE_MAX = 500;
|
|
25083
25148
|
var SCOPES = ["personal", "work"];
|
|
@@ -25139,7 +25204,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
25139
25204
|
};
|
|
25140
25205
|
}, "personTimeline");
|
|
25141
25206
|
|
|
25142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25207
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
25143
25208
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
25144
25209
|
const ids = [...new Set(chatIds)];
|
|
25145
25210
|
if (ids.length === 0)
|
|
@@ -25165,7 +25230,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
25165
25230
|
}));
|
|
25166
25231
|
}, "chatCoverage");
|
|
25167
25232
|
|
|
25168
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25233
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
25169
25234
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
25170
25235
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
25171
25236
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -25229,7 +25294,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
25229
25294
|
}
|
|
25230
25295
|
}, "validateContextEvidencePage");
|
|
25231
25296
|
|
|
25232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
25233
25298
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
25234
25299
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
25235
25300
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -25282,7 +25347,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
25282
25347
|
};
|
|
25283
25348
|
}, "contextReadBudget");
|
|
25284
25349
|
|
|
25285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
25286
25351
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
25287
25352
|
if (!port || typeof port.read !== "function")
|
|
25288
25353
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -25326,7 +25391,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
25326
25391
|
};
|
|
25327
25392
|
}, "createContextEvidenceReader");
|
|
25328
25393
|
|
|
25329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
25330
25395
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
25331
25396
|
async around(ref, window2) {
|
|
25332
25397
|
const at3 = parseLocator(ref);
|
|
@@ -25421,7 +25486,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
25421
25486
|
};
|
|
25422
25487
|
}, "storedNeighbours");
|
|
25423
25488
|
|
|
25424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
25425
25490
|
import { createHash as createHash2 } from "node:crypto";
|
|
25426
25491
|
var DAY3 = 864e5;
|
|
25427
25492
|
var MAX_TIME = 864e13;
|
|
@@ -25737,7 +25802,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
25737
25802
|
return value;
|
|
25738
25803
|
}, "decodeCheckpoint");
|
|
25739
25804
|
|
|
25740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
25741
25806
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
25742
25807
|
var PAGE2 = 20;
|
|
25743
25808
|
var PEOPLE = 20;
|
|
@@ -26141,7 +26206,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
26141
26206
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
26142
26207
|
}, "peopleOf");
|
|
26143
26208
|
|
|
26144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
26145
26210
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
26146
26211
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
26147
26212
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -26185,7 +26250,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
26185
26250
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
26186
26251
|
}, "matchVocabularyTerms");
|
|
26187
26252
|
|
|
26188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
26189
26254
|
var KINDS = ["project", "tag", "topic"];
|
|
26190
26255
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
26191
26256
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -26240,7 +26305,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
26240
26305
|
};
|
|
26241
26306
|
}, "findEvidenceMentions");
|
|
26242
26307
|
|
|
26243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
26244
26309
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
26245
26310
|
var DEFAULT_PURPOSES = ["work"];
|
|
26246
26311
|
var LINK_PURPOSE = "work";
|
|
@@ -26270,7 +26335,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
26270
26335
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
26271
26336
|
], "purposeList");
|
|
26272
26337
|
|
|
26273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
26274
26339
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
26275
26340
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
26276
26341
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -26581,7 +26646,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
26581
26646
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
26582
26647
|
}, "purposeHintOf");
|
|
26583
26648
|
|
|
26584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
26585
26650
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
26586
26651
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
26587
26652
|
const held = await storeIfOpen(deps);
|
|
@@ -26846,7 +26911,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
26846
26911
|
return rest;
|
|
26847
26912
|
}, "withoutPhone");
|
|
26848
26913
|
|
|
26849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
26850
26915
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
26851
26916
|
var PERIOD_FIELD = "created";
|
|
26852
26917
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -26977,7 +27042,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
26977
27042
|
}));
|
|
26978
27043
|
}, "meetingNames");
|
|
26979
27044
|
|
|
26980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
26981
27046
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
26982
27047
|
const tags = /* @__PURE__ */ new Map();
|
|
26983
27048
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -26986,7 +27051,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
26986
27051
|
return tags;
|
|
26987
27052
|
}, "taskTagFilters");
|
|
26988
27053
|
|
|
26989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
26990
27055
|
var TASK_QUERY = {
|
|
26991
27056
|
entity: "task",
|
|
26992
27057
|
backend: "sql",
|
|
@@ -27486,7 +27551,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
27486
27551
|
};
|
|
27487
27552
|
}, "taskView");
|
|
27488
27553
|
|
|
27489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
27490
27555
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
27491
27556
|
if (newest === null)
|
|
27492
27557
|
return null;
|
|
@@ -27495,7 +27560,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
27495
27560
|
return newest.addressed ? "owed" : null;
|
|
27496
27561
|
}, "mailTurn");
|
|
27497
27562
|
|
|
27498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
27499
27564
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
27500
27565
|
if (error instanceof CliError && error.code === "not_found")
|
|
27501
27566
|
return void 0;
|
|
@@ -27553,7 +27618,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
27553
27618
|
};
|
|
27554
27619
|
}, "mailActivity");
|
|
27555
27620
|
|
|
27556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
27557
27622
|
var DAY4 = 864e5;
|
|
27558
27623
|
var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
|
|
27559
27624
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -27807,22 +27872,22 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
27807
27872
|
};
|
|
27808
27873
|
}, "agendaItem");
|
|
27809
27874
|
|
|
27810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
27811
27876
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
27812
27877
|
var encoder = new TextEncoder();
|
|
27813
27878
|
|
|
27814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
27815
27880
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
27816
27881
|
|
|
27817
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
27818
27883
|
import { lstat } from "node:fs/promises";
|
|
27819
27884
|
|
|
27820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
27821
27886
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
27822
27887
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
27823
27888
|
import { join as join7 } from "node:path";
|
|
27824
27889
|
|
|
27825
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
27826
27891
|
import { createHash as createHash3 } from "node:crypto";
|
|
27827
27892
|
var metadataLimit = 16384;
|
|
27828
27893
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -27882,7 +27947,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
27882
27947
|
}
|
|
27883
27948
|
}, "readPartialMetadata");
|
|
27884
27949
|
|
|
27885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
27886
27951
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
27887
27952
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
27888
27953
|
import { join as join6 } from "node:path";
|
|
@@ -27974,7 +28039,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
27974
28039
|
};
|
|
27975
28040
|
}, "partialWriter");
|
|
27976
28041
|
|
|
27977
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
27978
28043
|
var NativeRecordingPartialStore = class {
|
|
27979
28044
|
static {
|
|
27980
28045
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -28081,12 +28146,12 @@ var NativeRecordingPartialStore = class {
|
|
|
28081
28146
|
}
|
|
28082
28147
|
};
|
|
28083
28148
|
|
|
28084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
28085
28150
|
import { createHash as createHash5 } from "node:crypto";
|
|
28086
28151
|
import { link as link2 } from "node:fs/promises";
|
|
28087
28152
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
28088
28153
|
|
|
28089
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
28090
28155
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
28091
28156
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
28092
28157
|
signal?.throwIfAborted();
|
|
@@ -28121,7 +28186,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
28121
28186
|
signal?.throwIfAborted();
|
|
28122
28187
|
}, "commitPublication");
|
|
28123
28188
|
|
|
28124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28189
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
28125
28190
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
28126
28191
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
28127
28192
|
import { join as join8 } from "node:path";
|
|
@@ -28194,7 +28259,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
28194
28259
|
}
|
|
28195
28260
|
}, "writePublicationJournal");
|
|
28196
28261
|
|
|
28197
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
28198
28263
|
var NativeRecordingPublication = class {
|
|
28199
28264
|
static {
|
|
28200
28265
|
__name(this, "NativeRecordingPublication");
|
|
@@ -28267,7 +28332,7 @@ var NativeRecordingPublication = class {
|
|
|
28267
28332
|
}
|
|
28268
28333
|
};
|
|
28269
28334
|
|
|
28270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
28271
28336
|
import { createHash as createHash6 } from "node:crypto";
|
|
28272
28337
|
import { readdir } from "node:fs/promises";
|
|
28273
28338
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -28354,7 +28419,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
28354
28419
|
beforePublish
|
|
28355
28420
|
}), "commitMediaEntry");
|
|
28356
28421
|
|
|
28357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
28358
28423
|
var validator = '"media-completed-v1"';
|
|
28359
28424
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
28360
28425
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -28455,7 +28520,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
28455
28520
|
return entry;
|
|
28456
28521
|
}, "archiveMediaFile");
|
|
28457
28522
|
|
|
28458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
28459
28524
|
import { mkdir, realpath } from "node:fs/promises";
|
|
28460
28525
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
28461
28526
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -28522,7 +28587,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
28522
28587
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
28523
28588
|
}, "withMediaArchiveLocks");
|
|
28524
28589
|
|
|
28525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
28526
28591
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
28527
28592
|
const entries = await readMediaManifests(root, signal);
|
|
28528
28593
|
if (!entries.length)
|
|
@@ -28665,7 +28730,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
28665
28730
|
}, { create: true });
|
|
28666
28731
|
}, "archiveMedia");
|
|
28667
28732
|
|
|
28668
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
28669
28734
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
28670
28735
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
28671
28736
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -28816,7 +28881,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
28816
28881
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
28817
28882
|
}, "moveMediaArchive");
|
|
28818
28883
|
|
|
28819
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
28820
28885
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
28821
28886
|
import { join as join13 } from "node:path";
|
|
28822
28887
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -28841,7 +28906,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28841
28906
|
`);
|
|
28842
28907
|
await nativeRuntime({ env, progress });
|
|
28843
28908
|
progress(`${model.id}: loading it once to check it works`);
|
|
28844
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
28909
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-PHCCJJ5Z.js");
|
|
28845
28910
|
const embedder = await openEmbedder2(model, directory2);
|
|
28846
28911
|
try {
|
|
28847
28912
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -28862,7 +28927,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
28862
28927
|
}
|
|
28863
28928
|
await nativeRuntime({ env, progress });
|
|
28864
28929
|
progress(`${model.id}: loading it once to check it works`);
|
|
28865
|
-
const { openReranker } = await import("./rerank-
|
|
28930
|
+
const { openReranker } = await import("./rerank-4H2QR4XU.js");
|
|
28866
28931
|
const reranker = await openReranker(model, directory2);
|
|
28867
28932
|
try {
|
|
28868
28933
|
await reranker.score("check", ["check"]);
|
|
@@ -28880,7 +28945,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28880
28945
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
28881
28946
|
}
|
|
28882
28947
|
progress(`${model.id}: loading it once to check it works`);
|
|
28883
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
28948
|
+
const { openPictureEmbedder } = await import("./embedder-WLZZQTKZ.js");
|
|
28884
28949
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
28885
28950
|
try {
|
|
28886
28951
|
const vector = await embedder.embedQuery("check");
|
|
@@ -28892,7 +28957,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28892
28957
|
return { model, directory: directory2 };
|
|
28893
28958
|
}, "downloadImageModel");
|
|
28894
28959
|
|
|
28895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
28896
28961
|
var MONEY_REQUEST = "money-request";
|
|
28897
28962
|
var MONEY_DONE = "money-done";
|
|
28898
28963
|
var PROMISE = "promise";
|
|
@@ -28926,10 +28991,10 @@ var MONEY_WORDS = [
|
|
|
28926
28991
|
}
|
|
28927
28992
|
];
|
|
28928
28993
|
|
|
28929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28994
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
28930
28995
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
28931
28996
|
|
|
28932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
28933
28998
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
28934
28999
|
var MONEY_DONE_FORMS = words2([
|
|
28935
29000
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -28969,7 +29034,7 @@ var PROMISE_FORMS = words2([
|
|
|
28969
29034
|
"estar\xE1 listo"
|
|
28970
29035
|
]);
|
|
28971
29036
|
|
|
28972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29037
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
28973
29038
|
var EXCERPT_CHARS = 80;
|
|
28974
29039
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
28975
29040
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -28991,7 +29056,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
28991
29056
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
28992
29057
|
var day = /* @__PURE__ */ __name((at3) => new Date(at3).toISOString().slice(0, 10), "day");
|
|
28993
29058
|
|
|
28994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
28995
29060
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
28996
29061
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
28997
29062
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -29072,7 +29137,7 @@ var amounts = {
|
|
|
29072
29137
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
29073
29138
|
};
|
|
29074
29139
|
|
|
29075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
29076
29141
|
var children = {
|
|
29077
29142
|
id: "children",
|
|
29078
29143
|
version: 1,
|
|
@@ -29101,7 +29166,7 @@ var children = {
|
|
|
29101
29166
|
}, "read")
|
|
29102
29167
|
};
|
|
29103
29168
|
|
|
29104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
29105
29170
|
var coverage = {
|
|
29106
29171
|
id: "coverage",
|
|
29107
29172
|
version: 1,
|
|
@@ -29130,7 +29195,7 @@ var coverage = {
|
|
|
29130
29195
|
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")
|
|
29131
29196
|
};
|
|
29132
29197
|
|
|
29133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
29134
29199
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
29135
29200
|
var item = /* @__PURE__ */ __name((row, at3, data) => ({
|
|
29136
29201
|
signal: "payments",
|
|
@@ -29180,7 +29245,7 @@ var payments = {
|
|
|
29180
29245
|
}, "read")
|
|
29181
29246
|
};
|
|
29182
29247
|
|
|
29183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
29184
29249
|
var PATTERNS_PER_CHAT = 3;
|
|
29185
29250
|
var DAY5 = 864e5;
|
|
29186
29251
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -29269,7 +29334,7 @@ var promises = {
|
|
|
29269
29334
|
}, "read")
|
|
29270
29335
|
};
|
|
29271
29336
|
|
|
29272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
29273
29338
|
var PER_SIDE = 5;
|
|
29274
29339
|
var WEEK = 7 * 864e5;
|
|
29275
29340
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -29300,7 +29365,7 @@ var questions2 = {
|
|
|
29300
29365
|
}, "attention")
|
|
29301
29366
|
};
|
|
29302
29367
|
|
|
29303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
29304
29369
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
29305
29370
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
|
|
29306
29371
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -29368,7 +29433,7 @@ var replyNext = {
|
|
|
29368
29433
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
29369
29434
|
};
|
|
29370
29435
|
|
|
29371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29436
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
29372
29437
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
29373
29438
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
29374
29439
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -29414,7 +29479,7 @@ var topics = {
|
|
|
29414
29479
|
}, "read")
|
|
29415
29480
|
};
|
|
29416
29481
|
|
|
29417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
29418
29483
|
var STATUS_SIGNALS = [
|
|
29419
29484
|
replyNext,
|
|
29420
29485
|
questions2,
|
|
@@ -29426,7 +29491,7 @@ var STATUS_SIGNALS = [
|
|
|
29426
29491
|
children
|
|
29427
29492
|
];
|
|
29428
29493
|
|
|
29429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
29430
29495
|
var DAY6 = 864e5;
|
|
29431
29496
|
var STATUS_WINDOW = 300;
|
|
29432
29497
|
var STATUS_CHATS = 16;
|
|
@@ -29615,7 +29680,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
29615
29680
|
};
|
|
29616
29681
|
}, "projectStatus");
|
|
29617
29682
|
|
|
29618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
29619
29684
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
29620
29685
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
29621
29686
|
if (deps.offline)
|
|
@@ -29687,7 +29752,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
29687
29752
|
};
|
|
29688
29753
|
}, "accountService");
|
|
29689
29754
|
|
|
29690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
29691
29756
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
29692
29757
|
const at3 = aheadOf(value, flag, now, {
|
|
29693
29758
|
...zone === void 0 ? {} : { zone },
|
|
@@ -29698,7 +29763,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
29698
29763
|
return new Date(at3 - at3 % MINUTE).toISOString();
|
|
29699
29764
|
}, "sendTime");
|
|
29700
29765
|
|
|
29701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
29702
29767
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
29703
29768
|
try {
|
|
29704
29769
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -29945,7 +30010,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
29945
30010
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
29946
30011
|
}, "linkLimits");
|
|
29947
30012
|
|
|
29948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
29949
30014
|
var THREADS_PAGE = 500;
|
|
29950
30015
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
29951
30016
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -30020,7 +30085,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
30020
30085
|
return thread.slice(Math.max(0, at3 - before), at3 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
30021
30086
|
}, "readMail");
|
|
30022
30087
|
|
|
30023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
30024
30089
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
30025
30090
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
30026
30091
|
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");
|
|
@@ -30393,7 +30458,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
30393
30458
|
};
|
|
30394
30459
|
}, "statsLucene");
|
|
30395
30460
|
|
|
30396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
30397
30462
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
30398
30463
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
30399
30464
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -30562,7 +30627,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
30562
30627
|
};
|
|
30563
30628
|
}, "readRankingSelection");
|
|
30564
30629
|
|
|
30565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
30566
30631
|
var canonical = /* @__PURE__ */ __name((value, nested = false) => Array.isArray(value) ? value.map((one) => canonical(one, true)) : value !== null && typeof value === "object" ? Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0 && (nested || one !== false)).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, one]) => [key, canonical(one, true)])) : value, "canonical");
|
|
30567
30632
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
30568
30633
|
command,
|
|
@@ -30572,7 +30637,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
30572
30637
|
fieldsVersion: FIELD_VERSION
|
|
30573
30638
|
}), "searchRecordOf");
|
|
30574
30639
|
|
|
30575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
30576
30641
|
function invalid4(message) {
|
|
30577
30642
|
throw new CliError("validation_error", message);
|
|
30578
30643
|
}
|
|
@@ -30866,7 +30931,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30866
30931
|
}, "evidence")
|
|
30867
30932
|
}), "adminStatisticsService");
|
|
30868
30933
|
|
|
30869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
30870
30935
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
30871
30936
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
30872
30937
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -31003,12 +31068,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31003
31068
|
return { plan, repair };
|
|
31004
31069
|
}, "gapsService");
|
|
31005
31070
|
|
|
31006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31007
31072
|
import { createHash as createHash10 } from "node:crypto";
|
|
31008
31073
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
31009
31074
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
31010
31075
|
|
|
31011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
31012
31077
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
31013
31078
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
31014
31079
|
var MAX_FILES = 1e4;
|
|
@@ -31079,15 +31144,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
31079
31144
|
return choices;
|
|
31080
31145
|
}, "directoryPaths");
|
|
31081
31146
|
|
|
31082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
31083
31148
|
import { posix } from "node:path";
|
|
31084
31149
|
|
|
31085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
31086
31151
|
import { setImmediate as tick } from "node:timers/promises";
|
|
31087
31152
|
import { crc32 } from "node:zlib";
|
|
31088
31153
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
31089
31154
|
|
|
31090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
31091
31156
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
31092
31157
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
31093
31158
|
var SAMPLE = 65536;
|
|
@@ -31189,7 +31254,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
31189
31254
|
return result.text;
|
|
31190
31255
|
}, "decodeXml");
|
|
31191
31256
|
|
|
31192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31257
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
31193
31258
|
var MAX_PART = 10 * 1024 * 1024;
|
|
31194
31259
|
var MAX_ENTRIES = 1e3;
|
|
31195
31260
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -31404,7 +31469,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
31404
31469
|
return found;
|
|
31405
31470
|
}, "elements");
|
|
31406
31471
|
|
|
31407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
31408
31473
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
31409
31474
|
let name = "";
|
|
31410
31475
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -31459,7 +31524,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
31459
31524
|
return { text: parts.join("").trim(), truncated: false };
|
|
31460
31525
|
}, "sheetText");
|
|
31461
31526
|
|
|
31462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
31463
31528
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
31464
31529
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
31465
31530
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -31859,10 +31924,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
31859
31924
|
}
|
|
31860
31925
|
}, "readDocument");
|
|
31861
31926
|
|
|
31862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
31863
31928
|
import { extname as extname3 } from "node:path";
|
|
31864
31929
|
|
|
31865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
31866
31931
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
31867
31932
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
31868
31933
|
import { fileURLToPath } from "node:url";
|
|
@@ -31923,7 +31988,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
31923
31988
|
}
|
|
31924
31989
|
}, "derived");
|
|
31925
31990
|
|
|
31926
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
31927
31992
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
31928
31993
|
var image2 = {
|
|
31929
31994
|
id: "image",
|
|
@@ -31932,7 +31997,7 @@ var image2 = {
|
|
|
31932
31997
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
31933
31998
|
};
|
|
31934
31999
|
|
|
31935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32000
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
31936
32001
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
31937
32002
|
var doc = {
|
|
31938
32003
|
id: "doc",
|
|
@@ -31944,7 +32009,7 @@ var doc = {
|
|
|
31944
32009
|
}), "read")
|
|
31945
32010
|
};
|
|
31946
32011
|
|
|
31947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
31948
32013
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
31949
32014
|
var docx = {
|
|
31950
32015
|
id: "docx",
|
|
@@ -31957,10 +32022,10 @@ var docx = {
|
|
|
31957
32022
|
}), "read")
|
|
31958
32023
|
};
|
|
31959
32024
|
|
|
31960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
31961
32026
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
31962
32027
|
|
|
31963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32028
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
31964
32029
|
var NAMED = {
|
|
31965
32030
|
amp: "&",
|
|
31966
32031
|
lt: "<",
|
|
@@ -32012,7 +32077,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
32012
32077
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
32013
32078
|
}), "decodeEntities");
|
|
32014
32079
|
|
|
32015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
32016
32081
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
32017
32082
|
"fonttbl",
|
|
32018
32083
|
"colortbl",
|
|
@@ -32178,7 +32243,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
32178
32243
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
32179
32244
|
}, "htmlText");
|
|
32180
32245
|
|
|
32181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
32182
32247
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
32183
32248
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
32184
32249
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -32234,7 +32299,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
32234
32299
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
32235
32300
|
}, "markdownSections");
|
|
32236
32301
|
|
|
32237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
32238
32303
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
32239
32304
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
32240
32305
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -32305,7 +32370,7 @@ var html = {
|
|
|
32305
32370
|
}, "read")
|
|
32306
32371
|
};
|
|
32307
32372
|
|
|
32308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
32309
32374
|
var office = {
|
|
32310
32375
|
id: "office",
|
|
32311
32376
|
version: documentExtractor("odt"),
|
|
@@ -32316,7 +32381,7 @@ var office = {
|
|
|
32316
32381
|
}, "read")
|
|
32317
32382
|
};
|
|
32318
32383
|
|
|
32319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
32320
32385
|
var pdf = {
|
|
32321
32386
|
id: "pdf",
|
|
32322
32387
|
version: "unpdf",
|
|
@@ -32383,7 +32448,7 @@ var pdf = {
|
|
|
32383
32448
|
}), "read")
|
|
32384
32449
|
};
|
|
32385
32450
|
|
|
32386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
32387
32452
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
32388
32453
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
32389
32454
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -32403,7 +32468,7 @@ var plain = {
|
|
|
32403
32468
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
32404
32469
|
};
|
|
32405
32470
|
|
|
32406
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32471
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
32407
32472
|
var rtf = {
|
|
32408
32473
|
id: "rtf",
|
|
32409
32474
|
version: "v1",
|
|
@@ -32411,10 +32476,10 @@ var rtf = {
|
|
|
32411
32476
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
32412
32477
|
};
|
|
32413
32478
|
|
|
32414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
32415
32480
|
import { basename as basename5 } from "node:path";
|
|
32416
32481
|
|
|
32417
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
32418
32483
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
32419
32484
|
const cells = [];
|
|
32420
32485
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -32452,7 +32517,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
32452
32517
|
return { cells, truncated };
|
|
32453
32518
|
}, "delimitedSpans");
|
|
32454
32519
|
|
|
32455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
32456
32521
|
var DELIMITED = {
|
|
32457
32522
|
".csv": ",",
|
|
32458
32523
|
".tsv": " ",
|
|
@@ -32491,7 +32556,7 @@ var sheets = {
|
|
|
32491
32556
|
}, "read")
|
|
32492
32557
|
};
|
|
32493
32558
|
|
|
32494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
32495
32560
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
32496
32561
|
var HEAD_BYTES = 1024;
|
|
32497
32562
|
var readers = [...BUILT_INS2];
|
|
@@ -32501,7 +32566,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
32501
32566
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
32502
32567
|
}, "readWithRegistry");
|
|
32503
32568
|
|
|
32504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32569
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
32505
32570
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
32506
32571
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
32507
32572
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -33580,7 +33645,7 @@ function imageSize(input) {
|
|
|
33580
33645
|
}
|
|
33581
33646
|
__name(imageSize, "imageSize");
|
|
33582
33647
|
|
|
33583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
33584
33649
|
var MAX_PAGES = 20;
|
|
33585
33650
|
var MAX_PIXELS = 2e7;
|
|
33586
33651
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -33740,7 +33805,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
33740
33805
|
}
|
|
33741
33806
|
}, "ocrPdf");
|
|
33742
33807
|
|
|
33743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33808
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
33744
33809
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
33745
33810
|
const limits = pdfPreviewLimits(env);
|
|
33746
33811
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -33817,7 +33882,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
33817
33882
|
}
|
|
33818
33883
|
}, "pdfPreview");
|
|
33819
33884
|
|
|
33820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
33821
33886
|
import { spawn } from "node:child_process";
|
|
33822
33887
|
import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
33823
33888
|
import { tmpdir } from "node:os";
|
|
@@ -33980,7 +34045,7 @@ Read the attached picture.`,
|
|
|
33980
34045
|
}
|
|
33981
34046
|
}, "readPictureWithAgent");
|
|
33982
34047
|
|
|
33983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
33984
34049
|
import { createHash as createHash8 } from "node:crypto";
|
|
33985
34050
|
import { constants } from "node:fs";
|
|
33986
34051
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -34088,7 +34153,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
34088
34153
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
34089
34154
|
}, "transferMime");
|
|
34090
34155
|
|
|
34091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
34092
34157
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
34093
34158
|
import { link as link3, rm } from "node:fs/promises";
|
|
34094
34159
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -34202,12 +34267,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
34202
34267
|
}
|
|
34203
34268
|
}, "save");
|
|
34204
34269
|
|
|
34205
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34206
34271
|
import { createHash as createHash9 } from "node:crypto";
|
|
34207
34272
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
34208
34273
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34209
34274
|
|
|
34210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34211
34276
|
var GROUP_SETTINGS = [
|
|
34212
34277
|
"allCanPin",
|
|
34213
34278
|
"onlyAdminsAdd",
|
|
@@ -34221,7 +34286,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34221
34286
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34222
34287
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34223
34288
|
|
|
34224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34289
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34225
34290
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34226
34291
|
var PICTURE_FLOOR = 0.25;
|
|
34227
34292
|
var PAGE3 = 50;
|
|
@@ -34262,7 +34327,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34262
34327
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34263
34328
|
if (!isImageModelInstalled(model2, directory2))
|
|
34264
34329
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34265
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34330
|
+
const { openPictureEmbedder } = await import("./embedder-WLZZQTKZ.js");
|
|
34266
34331
|
return openPictureEmbedder(model2, directory2);
|
|
34267
34332
|
}, "open");
|
|
34268
34333
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34436,7 +34501,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34436
34501
|
}, "search")
|
|
34437
34502
|
}), "withPictures");
|
|
34438
34503
|
|
|
34439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34504
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
34440
34505
|
var ATTACHMENT_QUERY = {
|
|
34441
34506
|
entity: "attachment",
|
|
34442
34507
|
backend: "sql",
|
|
@@ -34907,7 +34972,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
34907
34972
|
}, "readPicture")
|
|
34908
34973
|
}), "attachmentsService");
|
|
34909
34974
|
|
|
34910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
34911
34976
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
34912
34977
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
34913
34978
|
const store = await accountStore(deps);
|
|
@@ -34937,7 +35002,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
34937
35002
|
}, "list")
|
|
34938
35003
|
}), "chatDocumentsService");
|
|
34939
35004
|
|
|
34940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
34941
35006
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
34942
35007
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
34943
35008
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -35024,7 +35089,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
35024
35089
|
}
|
|
35025
35090
|
}, "isRetentionSelection");
|
|
35026
35091
|
|
|
35027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
35028
35093
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
35029
35094
|
const fields2 = text3.split(",").map((one) => one.trim());
|
|
35030
35095
|
if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
|
|
@@ -35231,7 +35296,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
35231
35296
|
};
|
|
35232
35297
|
}, "countersService");
|
|
35233
35298
|
|
|
35234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/search/respell.js
|
|
35235
35300
|
var LATIN = {
|
|
35236
35301
|
\u0430: "a",
|
|
35237
35302
|
\u0431: "b",
|
|
@@ -35286,7 +35351,7 @@ var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
35286
35351
|
return found;
|
|
35287
35352
|
}, "respelled");
|
|
35288
35353
|
|
|
35289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
35290
35355
|
var LEAST_USES = 3;
|
|
35291
35356
|
var SAMPLE2 = 50;
|
|
35292
35357
|
var CAPITALISED = 0.8;
|
|
@@ -35336,7 +35401,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
35336
35401
|
}, "queryWords");
|
|
35337
35402
|
var without = /* @__PURE__ */ __name((query, word) => query.replace(new RegExp(`(?<![\\p{L}\\p{N}])${word}(?![\\p{L}\\p{N}])`, "giu"), " ").replace(/\s+/gu, " ").trim(), "without");
|
|
35338
35403
|
|
|
35339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
35340
35405
|
var SYNC_KEY = "messages.sync-first";
|
|
35341
35406
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
35342
35407
|
var keyOf4 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -35468,9 +35533,10 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
35468
35533
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
35469
35534
|
}), "withRefresh");
|
|
35470
35535
|
|
|
35471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
35472
35537
|
var CANDIDATES = 50;
|
|
35473
35538
|
var ACROSS_CHATS = 500;
|
|
35539
|
+
var OWN_BLOCK = 5;
|
|
35474
35540
|
var PER_CHAT = 20;
|
|
35475
35541
|
var WORD_HITS = 200;
|
|
35476
35542
|
var RRF_K2 = 60;
|
|
@@ -35617,6 +35683,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
35617
35683
|
};
|
|
35618
35684
|
});
|
|
35619
35685
|
const meaning = [];
|
|
35686
|
+
const own = [];
|
|
35620
35687
|
const sources = words3.sources;
|
|
35621
35688
|
if (target2.installed && prepared.scopeAccounts.length && eligibility?.conversations.length !== 0) {
|
|
35622
35689
|
await withEmbedder(deps, target2, choice, {}, async (embedder) => {
|
|
@@ -35626,7 +35693,7 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
35626
35693
|
if (scope === null)
|
|
35627
35694
|
continue;
|
|
35628
35695
|
const whole3 = "chatId" in scope || one.provider === MAIL;
|
|
35629
|
-
const
|
|
35696
|
+
const hits2 = await store.vectors.nearestConversations(one, {
|
|
35630
35697
|
...scope,
|
|
35631
35698
|
...since === void 0 ? {} : { since },
|
|
35632
35699
|
model: target2.key,
|
|
@@ -35642,11 +35709,24 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
35642
35709
|
query: vector
|
|
35643
35710
|
});
|
|
35644
35711
|
const found = [
|
|
35645
|
-
...
|
|
35712
|
+
...hits2,
|
|
35646
35713
|
...images.filter((hit) => !eligibility || eligibility.conversations.includes(hit.summary.id))
|
|
35647
35714
|
].sort((a, b) => b.score - a.score);
|
|
35715
|
+
const mine = await store.vectors.nearestConversations(one, {
|
|
35716
|
+
...scope,
|
|
35717
|
+
...since === void 0 ? {} : { since },
|
|
35718
|
+
model: target2.key,
|
|
35719
|
+
limit: OWN_BLOCK,
|
|
35720
|
+
query: vector,
|
|
35721
|
+
fromOwner: true,
|
|
35722
|
+
...eligibility ? { conversations: eligibility.conversations } : {}
|
|
35723
|
+
});
|
|
35648
35724
|
for (const hit of found)
|
|
35649
35725
|
sources.set(hit.summary.id, one);
|
|
35726
|
+
for (const hit of mine) {
|
|
35727
|
+
sources.set(hit.summary.id, one);
|
|
35728
|
+
own.push(hit);
|
|
35729
|
+
}
|
|
35650
35730
|
meaning.push(...whole3 ? found.map((hit) => ({ hit, lead: hit.score })) : shared(found, limit));
|
|
35651
35731
|
}
|
|
35652
35732
|
});
|
|
@@ -35672,20 +35752,25 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
35672
35752
|
].sort();
|
|
35673
35753
|
if (scoped.length > 1)
|
|
35674
35754
|
readiness.scopes = scoped;
|
|
35755
|
+
const located = /* @__PURE__ */ __name((hit) => {
|
|
35756
|
+
const source2 = sources.get(hit.summary.id);
|
|
35757
|
+
return {
|
|
35758
|
+
...hit,
|
|
35759
|
+
source: source2,
|
|
35760
|
+
locator: formatLocator({ ...source2, chat: hit.summary.chatId, message: hit.chunk.firstMessageId })
|
|
35761
|
+
};
|
|
35762
|
+
}, "located");
|
|
35763
|
+
const hits = fused(meaning.map(({ hit }) => hit), words3.hits, meaningFloor(target2.key)).slice(0, limit).map(located);
|
|
35764
|
+
const shown = new Set(hits.map((hit) => hit.summary.id));
|
|
35765
|
+
const ownHits = own.filter((hit) => !shown.has(hit.summary.id)).sort((a, b) => b.score - a.score).slice(0, OWN_BLOCK).map((hit) => located({ ...hit, by: ["meaning"] }));
|
|
35675
35766
|
return {
|
|
35676
35767
|
accounts: prepared.scopeAccounts,
|
|
35677
35768
|
model: target2.id,
|
|
35678
35769
|
meaning: target2.installed ? "searched" : "unavailable",
|
|
35679
35770
|
...wordsOutOfTime ? { words: "out-of-time" } : {},
|
|
35680
35771
|
...words3.respellings.size ? { respelled: Object.fromEntries(words3.respellings) } : {},
|
|
35681
|
-
hits
|
|
35682
|
-
|
|
35683
|
-
return {
|
|
35684
|
-
...hit,
|
|
35685
|
-
source: source2,
|
|
35686
|
-
locator: formatLocator({ ...source2, chat: hit.summary.chatId, message: hit.chunk.firstMessageId })
|
|
35687
|
-
};
|
|
35688
|
-
}),
|
|
35772
|
+
hits,
|
|
35773
|
+
...ownHits.length ? { own: ownHits } : {},
|
|
35689
35774
|
readiness,
|
|
35690
35775
|
...locallyRefreshed ? { prepared: locallyRefreshed } : {},
|
|
35691
35776
|
...refreshed ? { refreshed, coverage: { state: refreshed.complete ? "partial" : "stale" } } : {},
|
|
@@ -35804,13 +35889,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
35804
35889
|
return mean2.map((value) => value / length);
|
|
35805
35890
|
}, "meanOf");
|
|
35806
35891
|
|
|
35807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
35808
35893
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
35809
35894
|
...embeddingsMaintenance(deps),
|
|
35810
35895
|
...embeddingsSearch(deps)
|
|
35811
35896
|
}), "embeddingsService");
|
|
35812
35897
|
|
|
35813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
35814
35899
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
35815
35900
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
35816
35901
|
if (deps.offline)
|
|
@@ -35951,7 +36036,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
35951
36036
|
};
|
|
35952
36037
|
}, "foldersService");
|
|
35953
36038
|
|
|
35954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
35955
36040
|
var REVIEW_COUNT = 500;
|
|
35956
36041
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
35957
36042
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -36030,7 +36115,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36030
36115
|
};
|
|
36031
36116
|
}, "mentionsService");
|
|
36032
36117
|
|
|
36033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
36034
36119
|
var invalid5 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
36035
36120
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
36036
36121
|
const { text: text3, spans } = formatted2;
|
|
@@ -36090,7 +36175,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
36090
36175
|
};
|
|
36091
36176
|
}, "visibleFormattedText");
|
|
36092
36177
|
|
|
36093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
36094
36179
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
36095
36180
|
position,
|
|
36096
36181
|
kind: kind2,
|
|
@@ -36139,7 +36224,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
36139
36224
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
36140
36225
|
}, "validatePermalink");
|
|
36141
36226
|
|
|
36142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
36143
36228
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
36144
36229
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
36145
36230
|
return `${seconds / 86400}d`;
|
|
@@ -36171,7 +36256,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
36171
36256
|
return seconds;
|
|
36172
36257
|
}, "pinDurationOf");
|
|
36173
36258
|
|
|
36174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
36175
36260
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
36176
36261
|
if (sendAs === void 0) {
|
|
36177
36262
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -36196,7 +36281,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
36196
36281
|
return sendAs;
|
|
36197
36282
|
}, "typedSendAs");
|
|
36198
36283
|
|
|
36199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
36200
36285
|
var TOTAL_CAP = 1e4;
|
|
36201
36286
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
36202
36287
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -36207,7 +36292,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
36207
36292
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
36208
36293
|
}, "totalOf");
|
|
36209
36294
|
|
|
36210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
36211
36296
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
36212
36297
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
36213
36298
|
let narrows = false;
|
|
@@ -36236,7 +36321,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
36236
36321
|
return wanted(root).join(" ").trim();
|
|
36237
36322
|
}, "meaningWords");
|
|
36238
36323
|
|
|
36239
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
36240
36325
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
36241
36326
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
36242
36327
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -36437,7 +36522,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
36437
36522
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
36438
36523
|
}, "signals");
|
|
36439
36524
|
|
|
36440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
36441
36526
|
var MEANING_DEPTH = 100;
|
|
36442
36527
|
var RRF_K3 = 60;
|
|
36443
36528
|
var RERANK_DEPTH = 50;
|
|
@@ -36763,7 +36848,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
36763
36848
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
36764
36849
|
}, "mixedWithReranker");
|
|
36765
36850
|
|
|
36766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
36767
36852
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
36768
36853
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
36769
36854
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -36962,7 +37047,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
36962
37047
|
return result;
|
|
36963
37048
|
}, "readThreadContext");
|
|
36964
37049
|
|
|
36965
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
36966
37051
|
var SEARCH_FILL_MS = 200;
|
|
36967
37052
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
36968
37053
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -37070,7 +37155,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
37070
37155
|
}, "accountOf");
|
|
37071
37156
|
var keyOf5 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
37072
37157
|
|
|
37073
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
37074
37159
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
37075
37160
|
const chosen = chosenTextModel(env);
|
|
37076
37161
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -37085,7 +37170,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
37085
37170
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
37086
37171
|
}, "meaningModel");
|
|
37087
37172
|
|
|
37088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
37089
37174
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
37090
37175
|
try {
|
|
37091
37176
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -37164,7 +37249,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
37164
37249
|
}
|
|
37165
37250
|
}, "meaningLane");
|
|
37166
37251
|
|
|
37167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
37168
37253
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
37169
37254
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
37170
37255
|
if (choice === "off")
|
|
@@ -37176,9 +37261,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
37176
37261
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
37177
37262
|
try {
|
|
37178
37263
|
const warm = deps.embedders;
|
|
37179
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
37264
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-QS5OHEUK.js")).openRerankerProcess(model, directory2, {
|
|
37180
37265
|
threads: defaultThreads()
|
|
37181
|
-
})) : await (await import("./rerank-
|
|
37266
|
+
})) : await (await import("./rerank-4H2QR4XU.js")).openReranker(model, directory2);
|
|
37182
37267
|
return {
|
|
37183
37268
|
model: model.id,
|
|
37184
37269
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -37198,7 +37283,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
37198
37283
|
};
|
|
37199
37284
|
}, "rerankLane");
|
|
37200
37285
|
|
|
37201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
37202
37287
|
var DAY7 = 864e5;
|
|
37203
37288
|
var SPAN = { start: 0, end: 0 };
|
|
37204
37289
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -37323,17 +37408,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
37323
37408
|
};
|
|
37324
37409
|
}, "questionPeriod");
|
|
37325
37410
|
|
|
37326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
37327
37412
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
37328
37413
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
37329
37414
|
const directory2 = imageModelsDirectory(env);
|
|
37330
37415
|
if (!isImageModelInstalled(model, directory2))
|
|
37331
37416
|
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 });
|
|
37332
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
37417
|
+
const { openPictureEmbedder } = await import("./embedder-WLZZQTKZ.js");
|
|
37333
37418
|
return openPictureEmbedder(model, directory2);
|
|
37334
37419
|
}, "openPictureEmbedderFor");
|
|
37335
37420
|
|
|
37336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
37337
37422
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
37338
37423
|
const metadata = note.frontMatter;
|
|
37339
37424
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -37355,7 +37440,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
37355
37440
|
};
|
|
37356
37441
|
}, "documentSource");
|
|
37357
37442
|
|
|
37358
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
37359
37444
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
37360
37445
|
const host = new URL(baseUrl).host;
|
|
37361
37446
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -37388,7 +37473,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
37388
37473
|
};
|
|
37389
37474
|
}, "embeddingKeys");
|
|
37390
37475
|
|
|
37391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
37392
37477
|
var options = strictObject({
|
|
37393
37478
|
temperature: range(0, 2),
|
|
37394
37479
|
top_p: range(0, 1),
|
|
@@ -37455,7 +37540,7 @@ var openai = {
|
|
|
37455
37540
|
}), "complete")
|
|
37456
37541
|
};
|
|
37457
37542
|
|
|
37458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
37459
37544
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
37460
37545
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
37461
37546
|
if (deps.signal?.aborted)
|
|
@@ -37470,7 +37555,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
37470
37555
|
if (!adapter && target2.provider === "openai")
|
|
37471
37556
|
adapter = openai;
|
|
37472
37557
|
if (!adapter && target2.provider === "anthropic")
|
|
37473
|
-
adapter = (await import("./anthropic-
|
|
37558
|
+
adapter = (await import("./anthropic-BF72H77D.js")).anthropic;
|
|
37474
37559
|
if (!adapter)
|
|
37475
37560
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
37476
37561
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -37530,7 +37615,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
37530
37615
|
}, "complete")
|
|
37531
37616
|
}), "modelGateway");
|
|
37532
37617
|
|
|
37533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37618
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
37534
37619
|
var SECTION2 = "enrichment";
|
|
37535
37620
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
37536
37621
|
var DEFAULT_BASE_URLS = {
|
|
@@ -37605,7 +37690,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
37605
37690
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
37606
37691
|
}, "costOf");
|
|
37607
37692
|
|
|
37608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
37609
37694
|
var ENRICH_PER_RUN = 600;
|
|
37610
37695
|
var MAX_LINE = 400;
|
|
37611
37696
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -37681,7 +37766,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
37681
37766
|
};
|
|
37682
37767
|
}, "enrichmentState");
|
|
37683
37768
|
|
|
37684
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
37685
37770
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
37686
37771
|
let root;
|
|
37687
37772
|
try {
|
|
@@ -37708,7 +37793,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
37708
37793
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
37709
37794
|
}, "titleTiers");
|
|
37710
37795
|
|
|
37711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
37712
37797
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
37713
37798
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
37714
37799
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -38136,7 +38221,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
38136
38221
|
};
|
|
38137
38222
|
}, "searchNotesOf");
|
|
38138
38223
|
|
|
38139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
38140
38225
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
38141
38226
|
var iso3 = /* @__PURE__ */ __name((at3) => at3 === null ? null : new Date(at3).toISOString(), "iso");
|
|
38142
38227
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -38254,7 +38339,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
38254
38339
|
};
|
|
38255
38340
|
}, "searchEvents");
|
|
38256
38341
|
|
|
38257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
38258
38343
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
38259
38344
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
38260
38345
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -38284,7 +38369,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
38284
38369
|
};
|
|
38285
38370
|
}, "searchBusiness");
|
|
38286
38371
|
|
|
38287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
38288
38373
|
var MOST_HITS_PER_MEETING = 3;
|
|
38289
38374
|
var PAGE_ROWS = 200;
|
|
38290
38375
|
var MOST_PAGES2 = 25;
|
|
@@ -38512,7 +38597,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
38512
38597
|
foundBy: ["title"]
|
|
38513
38598
|
}), "titleItem");
|
|
38514
38599
|
|
|
38515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
38516
38601
|
var SECTION3 = "search_harder";
|
|
38517
38602
|
var HARDER_MODELS = {
|
|
38518
38603
|
anthropic: "claude-haiku-5-5",
|
|
@@ -38758,7 +38843,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
38758
38843
|
};
|
|
38759
38844
|
}, "reorderHarder");
|
|
38760
38845
|
|
|
38761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
38762
38847
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
38763
38848
|
var refusal2 = /* @__PURE__ */ __name((error, text3) => {
|
|
38764
38849
|
const { reason, span } = error.details ?? {};
|
|
@@ -39203,7 +39288,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
39203
39288
|
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);
|
|
39204
39289
|
}, "insidePeriodFirst");
|
|
39205
39290
|
|
|
39206
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
39207
39292
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
39208
39293
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
39209
39294
|
var DEFAULT_BACKEND = "both";
|
|
@@ -39394,7 +39479,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
39394
39479
|
return { report, sources };
|
|
39395
39480
|
}, "searchServer");
|
|
39396
39481
|
|
|
39397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
39398
39483
|
var DELETE_AT_ONCE = 10;
|
|
39399
39484
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
39400
39485
|
const files = fileLinks(attachments);
|
|
@@ -39834,7 +39919,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
39834
39919
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
39835
39920
|
}, "checkMediaOptions");
|
|
39836
39921
|
|
|
39837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
39838
39923
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
39839
39924
|
var RULES2 = {
|
|
39840
39925
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -39849,7 +39934,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
39849
39934
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
39850
39935
|
}), "classifyChannel");
|
|
39851
39936
|
|
|
39852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
39853
39938
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
39854
39939
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
39855
39940
|
const store = await deps.store();
|
|
@@ -39935,7 +40020,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
39935
40020
|
};
|
|
39936
40021
|
}, "metadataService");
|
|
39937
40022
|
|
|
39938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
39939
40024
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
39940
40025
|
var LINK2 = /https?:\/\/\S+/i;
|
|
39941
40026
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -40123,7 +40208,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
40123
40208
|
}, "nextPoint");
|
|
40124
40209
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
40125
40210
|
|
|
40126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
40127
40212
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync9 } from "node:fs";
|
|
40128
40213
|
import { join as join18 } from "node:path";
|
|
40129
40214
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -40275,7 +40360,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
40275
40360
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
40276
40361
|
}, "assign");
|
|
40277
40362
|
|
|
40278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
40279
40364
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
40280
40365
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
40281
40366
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -40312,7 +40397,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
40312
40397
|
return { chatId, rows, notes };
|
|
40313
40398
|
}, "moderateWith");
|
|
40314
40399
|
|
|
40315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
40316
40401
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
40317
40402
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
40318
40403
|
const env = deps.env ?? process.env;
|
|
@@ -40397,7 +40482,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
40397
40482
|
}, "removePerson")
|
|
40398
40483
|
}), "moderatorOf");
|
|
40399
40484
|
|
|
40400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
40401
40486
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
40402
40487
|
id: note.id,
|
|
40403
40488
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -40441,7 +40526,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
40441
40526
|
};
|
|
40442
40527
|
}, "privatePeopleService");
|
|
40443
40528
|
|
|
40444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
40445
40530
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
40446
40531
|
total: 0,
|
|
40447
40532
|
population: 0,
|
|
@@ -40697,7 +40782,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
40697
40782
|
}, "evidence")
|
|
40698
40783
|
}), "rankingsService");
|
|
40699
40784
|
|
|
40700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
40701
40786
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
40702
40787
|
var WAITING_TAIL = 100;
|
|
40703
40788
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -40831,7 +40916,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
40831
40916
|
};
|
|
40832
40917
|
}, "replyStatsService");
|
|
40833
40918
|
|
|
40834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40919
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
40835
40920
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
40836
40921
|
id: one.id,
|
|
40837
40922
|
name: one.name,
|
|
@@ -40957,7 +41042,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
40957
41042
|
};
|
|
40958
41043
|
}, "searchesService");
|
|
40959
41044
|
|
|
40960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
40961
41046
|
var TAGGING_QUERY = {
|
|
40962
41047
|
entity: "tagging",
|
|
40963
41048
|
backend: "sql",
|
|
@@ -41041,7 +41126,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
41041
41126
|
};
|
|
41042
41127
|
}, "tagsService");
|
|
41043
41128
|
|
|
41044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
41045
41130
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
41046
41131
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
41047
41132
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -41240,7 +41325,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
41240
41325
|
};
|
|
41241
41326
|
}, "topicsService");
|
|
41242
41327
|
|
|
41243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
41244
41329
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
41245
41330
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
41246
41331
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -41314,7 +41399,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
41314
41399
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
41315
41400
|
}, "prepareEvidencePacket");
|
|
41316
41401
|
|
|
41317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
41318
41403
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
41319
41404
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
41320
41405
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -41334,7 +41419,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
41334
41419
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
41335
41420
|
}, "readEvidencePacket");
|
|
41336
41421
|
|
|
41337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
41338
41423
|
var scopeKeys = [
|
|
41339
41424
|
"accountId",
|
|
41340
41425
|
"meetingId",
|
|
@@ -41356,7 +41441,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
41356
41441
|
"maxVocabularyReadBytes"
|
|
41357
41442
|
]);
|
|
41358
41443
|
|
|
41359
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
41360
41445
|
import { createHash as createHash12 } from "node:crypto";
|
|
41361
41446
|
import { existsSync as existsSync3 } from "node:fs";
|
|
41362
41447
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -41487,14 +41572,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
41487
41572
|
return { ...checked2.output, custom: true };
|
|
41488
41573
|
}, "addCustomTextModel");
|
|
41489
41574
|
|
|
41490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
41491
41576
|
var DAY8 = 864e5;
|
|
41492
41577
|
var SLOTS_EVERY = 7 * DAY8;
|
|
41493
41578
|
|
|
41494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
41495
41580
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
41496
41581
|
|
|
41497
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
41498
41583
|
var LIST = "events list";
|
|
41499
41584
|
var EVENT_TYPES = [
|
|
41500
41585
|
"default",
|
|
@@ -41553,7 +41638,7 @@ var EVENTS_QUERY = {
|
|
|
41553
41638
|
} : field)
|
|
41554
41639
|
};
|
|
41555
41640
|
|
|
41556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
41557
41642
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
41558
41643
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
41559
41644
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -41571,7 +41656,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
41571
41656
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
41572
41657
|
};
|
|
41573
41658
|
|
|
41574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
41575
41660
|
var communicationFields = {
|
|
41576
41661
|
sources: pipe(array(strictObject({
|
|
41577
41662
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -41603,7 +41688,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
41603
41688
|
return { ...input, after, before };
|
|
41604
41689
|
}, "communicationRequest");
|
|
41605
41690
|
|
|
41606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
41607
41692
|
var MEETING_PREPARATION_LIMITS = {
|
|
41608
41693
|
meetings: { min: 1, max: 20, default: 5 },
|
|
41609
41694
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -41676,7 +41761,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
41676
41761
|
};
|
|
41677
41762
|
}, "validateMeetingPreparationRequest");
|
|
41678
41763
|
|
|
41679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
41680
41765
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
41681
41766
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
41682
41767
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -41724,7 +41809,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
41724
41809
|
}
|
|
41725
41810
|
}, "validatePreparationCommunications");
|
|
41726
41811
|
|
|
41727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
41728
41813
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
41729
41814
|
const installer = ports.installer();
|
|
41730
41815
|
const argv = updateCommand(installer, packageName);
|
|
@@ -41789,7 +41874,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
41789
41874
|
return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
|
|
41790
41875
|
}, "dayAfter");
|
|
41791
41876
|
|
|
41792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
41793
41878
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
41794
41879
|
const pictures = picturesService(deps);
|
|
41795
41880
|
const base = {
|