@wirecat/attio-cli 0.2.0 → 0.2.2
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 +18 -0
- package/contracts/wirecat.json +5 -20
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-3FYEIRN4.js +37 -0
- package/dist/bundle/{all-profiles-LZDKPHN2.js → all-profiles-RAFO3NFW.js} +10 -10
- package/dist/bundle/{anthropic-BF72H77D.js → anthropic-TNR6QJGA.js} +5 -5
- package/dist/bundle/{app-server-H57FZJX5.js → app-server-BXVGXUGQ.js} +61 -61
- package/dist/bundle/attio.js +11 -11
- package/dist/bundle/{bun-WO77T4LG.js → bun-3RTK5XYF.js} +2 -2
- package/dist/bundle/{bun-sqlite-2BP7JDVO.js → bun-sqlite-I5K5Z2ZK.js} +6 -6
- package/dist/bundle/{chunk-CMO5ND3Y.js → chunk-2CS7VHUB.js} +34 -34
- package/dist/bundle/{chunk-XXOTX4M3.js → chunk-2JB5XD5R.js} +7 -7
- package/dist/bundle/{chunk-EQGXEKSV.js → chunk-2PSAS4TT.js} +7 -7
- package/dist/bundle/{chunk-EEPE3SOW.js → chunk-2TLGP7BS.js} +5 -5
- package/dist/bundle/{chunk-X5S5KUSU.js → chunk-3BM6KBWP.js} +19 -19
- package/dist/bundle/{chunk-QLHDUYGE.js → chunk-3JRLPNPO.js} +1 -1
- package/dist/bundle/{chunk-J5P5VSRG.js → chunk-3LMW7U7F.js} +8 -8
- package/dist/bundle/{chunk-G6FQMVKW.js → chunk-4F3FQ5QX.js} +3 -3
- package/dist/bundle/{chunk-LWJ4ZGUM.js → chunk-53BHLQRA.js} +13 -13
- package/dist/bundle/{chunk-EQXT7KO4.js → chunk-62FENOMX.js} +6 -6
- package/dist/bundle/{chunk-JSTBW7F4.js → chunk-6HYTDMOL.js} +6 -6
- package/dist/bundle/{chunk-L5WS6CYZ.js → chunk-6ZBJCBXA.js} +2 -2
- package/dist/bundle/{chunk-Q7BSTQ3T.js → chunk-7626I3P4.js} +1 -1
- package/dist/bundle/{chunk-VW5F6FK3.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/{chunk-PMP37KLR.js → chunk-7QH5BZUG.js} +3 -3
- package/dist/bundle/{chunk-ZDBTYBFR.js → chunk-7WS4ONXZ.js} +3 -3
- package/dist/bundle/{chunk-MT2ZUZRA.js → chunk-AHPGTDO2.js} +43 -64
- package/dist/bundle/{chunk-GBZ6JUXU.js → chunk-AMRELFBT.js} +2 -2
- package/dist/bundle/{chunk-S7K2XFQB.js → chunk-APNSAKSO.js} +6 -6
- package/dist/bundle/{chunk-DSRXCLPO.js → chunk-AV2ZJ4WX.js} +1 -1
- package/dist/bundle/{chunk-2E6JGBM5.js → chunk-AXGSAG53.js} +14 -14
- package/dist/bundle/{chunk-I3WS6V5H.js → chunk-B7U5FLPP.js} +8 -8
- package/dist/bundle/{chunk-HG7FT3H3.js → chunk-BDFNXTNK.js} +7 -7
- package/dist/bundle/{chunk-AMUONYQR.js → chunk-BFWERPF6.js} +2 -2
- package/dist/bundle/{chunk-5K3FGXZH.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/{chunk-VDMIJ3JW.js → chunk-CKG7GIHR.js} +3 -3
- package/dist/bundle/{chunk-X6R74TWX.js → chunk-CZP6C6MX.js} +4 -4
- package/dist/bundle/{chunk-RU5J7DWY.js → chunk-DKSO7UTS.js} +31 -9
- package/dist/bundle/{chunk-IDU4ESRZ.js → chunk-EMZ4MGPD.js} +8 -1
- package/dist/bundle/{chunk-MNQACPXG.js → chunk-FPMWW2HK.js} +25 -25
- package/dist/bundle/{chunk-WK7GLHHL.js → chunk-FRCORPOY.js} +5 -5
- package/dist/bundle/{chunk-G3JTLVVL.js → chunk-GT3HXSKW.js} +7 -7
- package/dist/bundle/{chunk-BUGROVF3.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-3NVOKVRY.js → chunk-HMYJLOXE.js} +343 -274
- package/dist/bundle/{chunk-3I2FGNWO.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-ASCUOOLO.js → chunk-JFFCP52L.js} +1 -1
- package/dist/bundle/{chunk-P4U6AGWD.js → chunk-JSAXTIRX.js} +1 -1
- package/dist/bundle/{chunk-DF2IIO32.js → chunk-JWRI6ZY6.js} +174 -159
- package/dist/bundle/{chunk-4STBJZR4.js → chunk-L7BMGR5W.js} +76 -37
- package/dist/bundle/{chunk-XXLQNHKF.js → chunk-LG6Y4NAT.js} +2 -2
- package/dist/bundle/{chunk-WARIIYSW.js → chunk-LHKVAZ5T.js} +2 -2
- package/dist/bundle/{chunk-GLHFJPYS.js → chunk-LIIOT3AN.js} +3 -3
- package/dist/bundle/{chunk-H7QDPW3D.js → chunk-MG4U6AKG.js} +1 -1
- package/dist/bundle/{chunk-MC2RQ2OB.js → chunk-MHMHZ6GY.js} +1 -1
- package/dist/bundle/{chunk-V6BTAILB.js → chunk-MI6IH5UW.js} +61 -61
- package/dist/bundle/{chunk-KHDXRFJZ.js → chunk-MW2OS2GD.js} +8 -8
- package/dist/bundle/{chunk-6ALPRBNV.js → chunk-NQJ7QMEF.js} +3 -3
- package/dist/bundle/{chunk-OFR3YYT6.js → chunk-NQNFMKL2.js} +1 -1
- package/dist/bundle/{chunk-76RRELCU.js → chunk-NWDO4DE3.js} +958 -550
- package/dist/bundle/{chunk-7MXCUMHG.js → chunk-O4SX6FXT.js} +1 -1
- package/dist/bundle/{chunk-SQHDE3TC.js → chunk-OC35ZLPE.js} +4 -4
- package/dist/bundle/{chunk-MRREDVPY.js → chunk-OHCYBSCA.js} +20 -14
- package/dist/bundle/{chunk-OBXDRUO4.js → chunk-P76XVKVC.js} +1 -1
- package/dist/bundle/{chunk-3YFDZSM3.js → chunk-PRERT2BZ.js} +1 -1
- package/dist/bundle/{chunk-MOSH2KPD.js → chunk-Q2U6DGSV.js} +10 -10
- package/dist/bundle/{chunk-O4A33Y54.js → chunk-QSUFJGTG.js} +2 -2
- package/dist/bundle/{chunk-ERW2WOJT.js → chunk-RKKY3MSZ.js} +1 -1
- package/dist/bundle/{chunk-4SMGM2Q6.js → chunk-SEDD6YZQ.js} +4 -4
- package/dist/bundle/{chunk-Q3JCUUOR.js → chunk-SYBAMYFY.js} +3 -3
- package/dist/bundle/{chunk-ZGADZ4CH.js → chunk-T6DV3ED2.js} +15 -15
- package/dist/bundle/{chunk-JA26HG7T.js → chunk-TUOFAUBR.js} +8 -8
- package/dist/bundle/{chunk-6SK3YB2B.js → chunk-UTTNGFKW.js} +12 -12
- package/dist/bundle/{chunk-CHZ26CW5.js → chunk-UZYL4AMA.js} +61 -58
- package/dist/bundle/{chunk-IXCIQ7FZ.js → chunk-V4JWUVNO.js} +4 -4
- package/dist/bundle/{chunk-34FJ26K2.js → chunk-VQSVE4RD.js} +2 -2
- package/dist/bundle/{chunk-GW4G5KLS.js → chunk-WALQNDXO.js} +8 -8
- package/dist/bundle/{chunk-6NDJDDSQ.js → chunk-WHDVRMB7.js} +35 -35
- package/dist/bundle/{chunk-ESH2QGCA.js → chunk-XQIRF6PS.js} +24 -8
- package/dist/bundle/{chunk-7ZUOI3HY.js → chunk-XSUU7PB7.js} +3 -3
- package/dist/bundle/{chunk-DQ6P3R4B.js → chunk-YBJBYPS7.js} +3 -3
- package/dist/bundle/{chunk-W6F2CQZ6.js → chunk-Z3HZD24R.js} +17 -17
- package/dist/bundle/{chunk-TF7ZGCOK.js → chunk-ZI3IRII7.js} +3 -3
- package/dist/bundle/command-contract-N5X3UOTT.js +37 -0
- package/dist/bundle/{command-server-entry-MNVPYQZ3.js → command-server-entry-ZKWL26Q5.js} +25 -25
- package/dist/bundle/{decode-MQNKNXLK.js → decode-TG45PUJW.js} +5 -5
- package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-JQBAZWCL.js} +8 -8
- package/dist/bundle/{echarts-6ZSUNO4L.js → echarts-AWICNZBO.js} +2 -2
- package/dist/bundle/{embed-PHCCJJ5Z.js → embed-TN6HQUK2.js} +6 -6
- package/dist/bundle/{embedder-WLZZQTKZ.js → embedder-T3KJA3I4.js} +9 -9
- package/dist/bundle/{failure-MR2XVHFP.js → failure-I6AAF5R5.js} +2 -2
- package/dist/bundle/{first-run-64LREHSV.js → first-run-BZUITKMF.js} +12 -12
- package/dist/bundle/first-screen-I23NJLFH.js +37 -0
- package/dist/bundle/{instructions-22GCKNR5.js → instructions-FRJHLLZX.js} +1 -1
- package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-7ZNV4MZ2.js +24 -0
- package/dist/bundle/{meeting-model-JWDTCGLZ.js → meeting-model-TENJU3OG.js} +11 -11
- package/dist/bundle/{meeting-semantic-375GYPZQ.js → meeting-semantic-ZKOG2XMU.js} +6 -6
- package/dist/bundle/{node-ITDTNRRZ.js → node-3ZISJOEM.js} +2 -2
- package/dist/bundle/{node-sqlite-IRAGRMEZ.js → node-sqlite-KA35X4F4.js} +7 -7
- package/dist/bundle/{oauth-CACOQJEL.js → oauth-C74B6XHN.js} +7 -7
- package/dist/bundle/{open-HU4KHKDR.js → open-CJESRWUG.js} +5 -5
- package/dist/bundle/{openai-JQUPAVKX.js → openai-WLXOXSTV.js} +15 -15
- package/dist/bundle/{process-QS5OHEUK.js → process-JV3KVGJY.js} +1 -1
- package/dist/bundle/{program-QLCUCR76.js → program-HSVLSH7A.js} +694 -477
- package/dist/bundle/{prompt-VA5MKXJU.js → prompt-EEBVB3XG.js} +5 -5
- package/dist/bundle/{recognize-JGA5IVKC.js → recognize-ZFITQZ4W.js} +4 -4
- package/dist/bundle/{remote-NPY2KZQ4.js → remote-RZXSYHOJ.js} +9 -9
- package/dist/bundle/{rerank-4H2QR4XU.js → rerank-2BHYAEO3.js} +7 -7
- package/dist/bundle/{schemas-THAI3G5S.js → schemas-6GTYA2NR.js} +1 -1
- package/dist/bundle/{serve-UH46SZQG.js → serve-G3M5H5JM.js} +9 -9
- package/dist/bundle/server-3ZL5TECF.js +79 -0
- package/dist/bundle/{server-6H7JS6SU.js → server-44WJ5K2W.js} +53 -53
- package/dist/bundle/{sqlite-runtime-EJWEUTBR.js → sqlite-runtime-TRISCWIG.js} +6 -6
- package/dist/bundle/{state-34B6AUQZ.js → state-BF6IMDP2.js} +6 -6
- package/dist/bundle/{store-XSE35P3U.js → store-LZPZC72J.js} +20 -20
- package/dist/bundle/{store-3R4ILTCJ.js → store-VSKYLTLH.js} +22 -18
- package/dist/bundle/store-maintenance-command-IDAYDJLQ.js +66 -0
- package/dist/bundle/surface-OHYA3YS6.js +65 -0
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +2 -0
- package/dist/commands/crm.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-DYTWDBTT.js +0 -37
- package/dist/bundle/command-contract-7M6EPH3D.js +0 -37
- package/dist/bundle/first-screen-YSCAZIYJ.js +0 -37
- package/dist/bundle/meeting-combined-YX3T5WJD.js +0 -24
- package/dist/bundle/server-SR52KBL3.js +0 -79
- package/dist/bundle/store-maintenance-command-ABJARLI4.js +0 -66
- package/dist/bundle/surface-NOTIEJB5.js +0 -65
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-53BHLQRA.js";
|
|
12
12
|
import {
|
|
13
13
|
WIRECAT_TOOLS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EMZ4MGPD.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7QH5BZUG.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-OHCYBSCA.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-ZI3IRII7.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-Q2U6DGSV.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-JWRI6ZY6.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-FRCORPOY.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-NWDO4DE3.js";
|
|
169
169
|
import {
|
|
170
170
|
DEFAULT_STEMMERS,
|
|
171
171
|
createStemmer,
|
|
172
172
|
cutsDeep
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-WALQNDXO.js";
|
|
174
174
|
import {
|
|
175
175
|
MINUTE,
|
|
176
176
|
YEAR,
|
|
177
177
|
aheadOf
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-SYBAMYFY.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-GT3HXSKW.js";
|
|
196
196
|
import {
|
|
197
197
|
fold,
|
|
198
198
|
normalize
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-3JRLPNPO.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-WHDVRMB7.js";
|
|
248
248
|
import {
|
|
249
249
|
isCliFailure,
|
|
250
250
|
sqliteCode
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-LIIOT3AN.js";
|
|
252
252
|
import {
|
|
253
253
|
normalizeTag
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-QSUFJGTG.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-MI6IH5UW.js";
|
|
279
279
|
import {
|
|
280
280
|
localOnly,
|
|
281
281
|
refuseOffComputer,
|
|
282
282
|
remoteKey
|
|
283
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-MW2OS2GD.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-XQIRF6PS.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-2PSAS4TT.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-AHPGTDO2.js";
|
|
309
309
|
import {
|
|
310
310
|
installFiles,
|
|
311
311
|
megabytes
|
|
312
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-SEDD6YZQ.js";
|
|
313
313
|
import {
|
|
314
314
|
storePath,
|
|
315
315
|
wirecatDirectory
|
|
316
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-VQSVE4RD.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-3BM6KBWP.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-HM6AMYHR.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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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";
|
|
@@ -17161,7 +17161,6 @@ var CREDENTIAL_RUNS = [
|
|
|
17161
17161
|
];
|
|
17162
17162
|
var WIRECAT_APPS = [
|
|
17163
17163
|
...WIRECAT_TOOLS.map(({ appName, envPrefix }) => ({ appName, prefix: envPrefix })),
|
|
17164
|
-
{ appName: "amo-cli", prefix: "AMO" },
|
|
17165
17164
|
{ appName: "beeline-cli", prefix: "BEELINE" },
|
|
17166
17165
|
{ appName: "zm", prefix: "ZM" },
|
|
17167
17166
|
{ appName: "cli-messaging", prefix: "MESSAGING" },
|
|
@@ -17296,10 +17295,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read2) => {
|
|
|
17296
17295
|
return { name, source };
|
|
17297
17296
|
}, "readStickerFile");
|
|
17298
17297
|
|
|
17299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17300
17299
|
import { randomUUID } from "node:crypto";
|
|
17301
17300
|
|
|
17302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17303
17302
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17304
17303
|
import { dirname as dirname2, join } from "node:path";
|
|
17305
17304
|
var MOST_DEADLINES = 50;
|
|
@@ -17383,11 +17382,11 @@ var FloodMemory = class {
|
|
|
17383
17382
|
}
|
|
17384
17383
|
};
|
|
17385
17384
|
|
|
17386
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17387
17386
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17388
17387
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17389
17388
|
|
|
17390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17391
17390
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17392
17391
|
import { dirname as dirname3 } from "node:path";
|
|
17393
17392
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17454,7 +17453,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17454
17453
|
}
|
|
17455
17454
|
}, "lockTime");
|
|
17456
17455
|
|
|
17457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17458
17457
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17459
17458
|
var SendJournal = class {
|
|
17460
17459
|
static {
|
|
@@ -17531,7 +17530,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17531
17530
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17532
17531
|
}, "withSendId");
|
|
17533
17532
|
|
|
17534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17535
17534
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17536
17535
|
import { join as join3 } from "node:path";
|
|
17537
17536
|
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 +17642,7 @@ var RecipientList = class {
|
|
|
17643
17642
|
}
|
|
17644
17643
|
};
|
|
17645
17644
|
|
|
17646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17645
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17647
17646
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17648
17647
|
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
17648
|
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 +17830,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17831
17830
|
}), "guardFor");
|
|
17832
17831
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17833
17832
|
|
|
17834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17835
17834
|
var COMMAND_NEEDS = {
|
|
17836
17835
|
"account update": ["updateProfile", "change the profile"],
|
|
17837
17836
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17849,7 +17848,10 @@ var COMMAND_NEEDS = {
|
|
|
17849
17848
|
"contacts import": ["importContacts", "import contacts"],
|
|
17850
17849
|
"messages comments": ["comments", "read comments on a channel post"],
|
|
17851
17850
|
"messages pin": ["pin", "pin a message"],
|
|
17852
|
-
"messages unpin": ["unpin", "unpin a message"]
|
|
17851
|
+
"messages unpin": ["unpin", "unpin a message"],
|
|
17852
|
+
"messages scheduled cancel": ["cancelScheduled", "cancel a scheduled message"],
|
|
17853
|
+
"messages scheduled edit": ["editScheduled", "edit a scheduled message"],
|
|
17854
|
+
"messages scheduled send": ["sendScheduled", "send a scheduled message now"]
|
|
17853
17855
|
};
|
|
17854
17856
|
var STORE_ANSWERS = /* @__PURE__ */ new Set(["chats events"]);
|
|
17855
17857
|
var lackedNeed = /* @__PURE__ */ __name((messenger, path2) => {
|
|
@@ -17881,7 +17883,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17881
17883
|
return group;
|
|
17882
17884
|
}, "hideNever");
|
|
17883
17885
|
|
|
17884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17885
17887
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17886
17888
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17887
17889
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17943,12 +17945,12 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17943
17945
|
}), "storedDeps");
|
|
17944
17946
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17945
17947
|
|
|
17946
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17947
17949
|
import { randomBytes } from "node:crypto";
|
|
17948
17950
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17949
17951
|
var newOperationId = newSendId;
|
|
17950
17952
|
|
|
17951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17953
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17952
17954
|
var LINKS = /https?:\/\/\S+/g;
|
|
17953
17955
|
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
17956
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17978,7 +17980,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17978
17980
|
});
|
|
17979
17981
|
}, "questions");
|
|
17980
17982
|
|
|
17981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17982
17984
|
var AUDIT_PAGE = 200;
|
|
17983
17985
|
var AUDIT_BUDGET = 10;
|
|
17984
17986
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18058,7 +18060,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18058
18060
|
return found;
|
|
18059
18061
|
}, "burstJoins");
|
|
18060
18062
|
|
|
18061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18062
18064
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18063
18065
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18064
18066
|
const name = typed.trim().toLowerCase();
|
|
@@ -18115,7 +18117,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
18115
18117
|
return best.name;
|
|
18116
18118
|
}, "categorize");
|
|
18117
18119
|
|
|
18118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18119
18121
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18120
18122
|
var RULES_IN = {
|
|
18121
18123
|
dialog: "all",
|
|
@@ -18321,7 +18323,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18321
18323
|
return passes;
|
|
18322
18324
|
}, "applyTaskRulesToChats");
|
|
18323
18325
|
|
|
18324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18325
18327
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18326
18328
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18327
18329
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18344,10 +18346,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18344
18346
|
}
|
|
18345
18347
|
}, "patiently");
|
|
18346
18348
|
|
|
18347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18348
18350
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18349
18351
|
|
|
18350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18351
18353
|
var REQUEST_MS = 400;
|
|
18352
18354
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18353
18355
|
const lowest = ranges[0];
|
|
@@ -18370,13 +18372,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18370
18372
|
};
|
|
18371
18373
|
}, "estimateBackfill");
|
|
18372
18374
|
|
|
18373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18374
18376
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18375
18377
|
...error,
|
|
18376
18378
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18377
18379
|
}), "withRecovery");
|
|
18378
18380
|
|
|
18379
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18380
18382
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18381
18383
|
if (isCliFailure(error))
|
|
18382
18384
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18459,7 +18461,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18459
18461
|
};
|
|
18460
18462
|
}, "mergeBatches");
|
|
18461
18463
|
|
|
18462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
18463
18465
|
var ALL = "all";
|
|
18464
18466
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
18465
18467
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -18531,7 +18533,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
18531
18533
|
[ALL]: [ALL]
|
|
18532
18534
|
}), "groupEntries");
|
|
18533
18535
|
|
|
18534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
18535
18537
|
var NO_MAIL = "no_mail";
|
|
18536
18538
|
var MAIL = "email";
|
|
18537
18539
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -18605,7 +18607,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
18605
18607
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
18606
18608
|
}, "accountsOfKind");
|
|
18607
18609
|
|
|
18608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18609
18611
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18610
18612
|
if (deps.reads !== "store")
|
|
18611
18613
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18806,7 +18808,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18806
18808
|
}, "chatsMatchingIn");
|
|
18807
18809
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18808
18810
|
|
|
18809
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18810
18812
|
var CONTEXT_MESSAGES = 3;
|
|
18811
18813
|
var CONTEXT_MINUTES = 10;
|
|
18812
18814
|
var MAX_CHARS = 1200;
|
|
@@ -18830,12 +18832,12 @@ var context = {
|
|
|
18830
18832
|
}, "describe")
|
|
18831
18833
|
};
|
|
18832
18834
|
|
|
18833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18834
18836
|
var BUILT_INS = [context];
|
|
18835
18837
|
var providers = [...BUILT_INS];
|
|
18836
18838
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18837
18839
|
|
|
18838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18839
18841
|
var READ_PAGE = 5e3;
|
|
18840
18842
|
var CHAIN = 50;
|
|
18841
18843
|
var CONVERSATION_QUERY = {
|
|
@@ -18987,7 +18989,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18987
18989
|
return size2;
|
|
18988
18990
|
}, "sized");
|
|
18989
18991
|
|
|
18990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18991
18993
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18992
18994
|
var MESSAGE_PAGE = 5e3;
|
|
18993
18995
|
var PER_SESSION = 8;
|
|
@@ -19006,7 +19008,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19006
19008
|
price: remote.price,
|
|
19007
19009
|
installed: true,
|
|
19008
19010
|
perBatch: PER_REQUEST * concurrency,
|
|
19009
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19011
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-RZXSYHOJ.js")).openRemote(remote, apiKey, {
|
|
19010
19012
|
concurrency,
|
|
19011
19013
|
env: deps.env ?? process.env
|
|
19012
19014
|
}), "open")
|
|
@@ -19026,7 +19028,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19026
19028
|
if (!isTextModelInstalled(model, directory2))
|
|
19027
19029
|
throw notDownloaded(model.id);
|
|
19028
19030
|
if (apart) {
|
|
19029
|
-
const { openProcess } = await import("./process-
|
|
19031
|
+
const { openProcess } = await import("./process-JV3KVGJY.js");
|
|
19030
19032
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19031
19033
|
}
|
|
19032
19034
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19315,7 +19317,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19315
19317
|
return { ...one, state };
|
|
19316
19318
|
}, "shaped");
|
|
19317
19319
|
|
|
19318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19319
19321
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19320
19322
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19321
19323
|
for (const [key, value, maximum] of [
|
|
@@ -19368,7 +19370,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19368
19370
|
}
|
|
19369
19371
|
}, "catchUpSearch");
|
|
19370
19372
|
|
|
19371
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19372
19374
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19373
19375
|
if (deps.reads === "store") {
|
|
19374
19376
|
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 +19751,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19749
19751
|
return message?.timestamp ?? fallback;
|
|
19750
19752
|
}, "timeOfKey");
|
|
19751
19753
|
|
|
19752
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19753
19755
|
var DAY_MS = 864e5;
|
|
19754
19756
|
var NEW_DAYS = 30;
|
|
19755
19757
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19826,7 +19828,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19826
19828
|
};
|
|
19827
19829
|
}, "scorePerson");
|
|
19828
19830
|
|
|
19829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19830
19832
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19831
19833
|
const controller = new AbortController();
|
|
19832
19834
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19842,7 +19844,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
19842
19844
|
}
|
|
19843
19845
|
}, "withTimeLimit");
|
|
19844
19846
|
|
|
19845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19846
19848
|
var REGISTRIES = {
|
|
19847
19849
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19848
19850
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19929,7 +19931,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19929
19931
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19930
19932
|
})), "notCovered");
|
|
19931
19933
|
|
|
19932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19933
19935
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19934
19936
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19935
19937
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20017,7 +20019,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20017
20019
|
};
|
|
20018
20020
|
}, "botCheckService");
|
|
20019
20021
|
|
|
20020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20021
20023
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20022
20024
|
if (value === void 0)
|
|
20023
20025
|
return void 0;
|
|
@@ -20027,7 +20029,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20027
20029
|
return id3;
|
|
20028
20030
|
}, "threadIdOf");
|
|
20029
20031
|
|
|
20030
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20031
20033
|
var TOP_POSTS = 5;
|
|
20032
20034
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20033
20035
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20144,7 +20146,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20144
20146
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20145
20147
|
}, "median");
|
|
20146
20148
|
|
|
20147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20148
20150
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20149
20151
|
const events = [];
|
|
20150
20152
|
for (const stay of stays) {
|
|
@@ -20176,7 +20178,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20176
20178
|
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
20179
|
}, "memberEvents");
|
|
20178
20180
|
|
|
20179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20180
20182
|
var EVENTS_DAYS = 7;
|
|
20181
20183
|
var TRACKED_DAYS = 30;
|
|
20182
20184
|
var STATS_PAGE = 1e3;
|
|
@@ -20471,7 +20473,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20471
20473
|
return members.length === 0 ? null : members;
|
|
20472
20474
|
}, "storedMembers");
|
|
20473
20475
|
|
|
20474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20475
20477
|
var INBOX_CHATS = 20;
|
|
20476
20478
|
var REVIEW_DAYS = 3;
|
|
20477
20479
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20679,10 +20681,10 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20679
20681
|
};
|
|
20680
20682
|
}, "inboxService");
|
|
20681
20683
|
|
|
20682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
20683
20685
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
20684
20686
|
|
|
20685
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20687
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.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
20688
|
var pascal = /* @__PURE__ */ __name((text3) => text3.split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word[0]?.toUpperCase() + word.slice(1)).join(""), "pascal");
|
|
20687
20689
|
var GLOBALS = /* @__PURE__ */ new Set([
|
|
20688
20690
|
"Array",
|
|
@@ -20718,7 +20720,7 @@ var identifier = /* @__PURE__ */ __name((id3) => {
|
|
|
20718
20720
|
return GLOBALS.has(name) ? `Api${name}` : name;
|
|
20719
20721
|
}, "identifier");
|
|
20720
20722
|
|
|
20721
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20723
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.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
20724
|
var BEARER = { in: "header", name: "authorization", value: /* @__PURE__ */ __name((token) => `Bearer ${token}`, "value") };
|
|
20723
20725
|
var signInPlace = /* @__PURE__ */ __name((scheme) => {
|
|
20724
20726
|
if (scheme.type === "apiKey") {
|
|
@@ -20751,7 +20753,7 @@ var signInRequirements = /* @__PURE__ */ __name((operation, document) => {
|
|
|
20751
20753
|
return requirements?.some((one) => Object.keys(one).length > 0) ? requirements : void 0;
|
|
20752
20754
|
}, "signInRequirements");
|
|
20753
20755
|
|
|
20754
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20756
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.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
20757
|
var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selection) => {
|
|
20756
20758
|
const variables = Object.entries(binding.variables);
|
|
20757
20759
|
const declared = variables.length ? `(${variables.map(([name, type]) => `$${name}: ${type}`).join(", ")})` : "";
|
|
@@ -20760,7 +20762,7 @@ var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selec
|
|
|
20760
20762
|
return `${binding.operation} ${binding.field[0]?.toUpperCase()}${binding.field.slice(1)}${declared} { ${binding.field}${passed}${inner} }`;
|
|
20761
20763
|
}, "graphqlDocument");
|
|
20762
20764
|
|
|
20763
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20765
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.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
20766
|
var IGNORED = /* @__PURE__ */ new Set([
|
|
20765
20767
|
"readOnly",
|
|
20766
20768
|
"example",
|
|
@@ -21488,7 +21490,7 @@ function resolveSpace(space) {
|
|
|
21488
21490
|
}
|
|
21489
21491
|
__name(resolveSpace, "resolveSpace");
|
|
21490
21492
|
|
|
21491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
21492
21494
|
var RENAMED = { timeout: "poll-timeout" };
|
|
21493
21495
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
21494
21496
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -21626,7 +21628,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
21626
21628
|
return raw;
|
|
21627
21629
|
}, "flagValue");
|
|
21628
21630
|
|
|
21629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
21630
21632
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
21631
21633
|
const server = manifest.servers?.[0];
|
|
21632
21634
|
if (given === void 0 && !server)
|
|
@@ -21710,7 +21712,12 @@ var signRequest = /* @__PURE__ */ __name(async (manifest, operation, request, to
|
|
|
21710
21712
|
if (auth.in === "query" || auth.name !== "authorization")
|
|
21711
21713
|
request.redirect = "manual";
|
|
21712
21714
|
}, "signRequest");
|
|
21713
|
-
var
|
|
21715
|
+
var underBase = /* @__PURE__ */ __name((url, baseUrl) => {
|
|
21716
|
+
const base = new URL(baseUrl);
|
|
21717
|
+
const prefix = base.pathname.endsWith("/") ? base.pathname : `${base.pathname}/`;
|
|
21718
|
+
return url.origin === base.origin && (url.pathname === base.pathname || url.pathname.startsWith(prefix));
|
|
21719
|
+
}, "underBase");
|
|
21720
|
+
var at = /* @__PURE__ */ __name((value, path2) => path2 === "" ? value : path2.split(".").reduce((inner, key) => inner && typeof inner === "object" ? inner[key] : void 0, value), "at");
|
|
21714
21721
|
var numberOf = /* @__PURE__ */ __name((value) => {
|
|
21715
21722
|
const number3 = typeof value === "number" ? value : typeof value === "string" ? Number(value) : Number(String(value));
|
|
21716
21723
|
return Number.isFinite(number3) ? number3 : void 0;
|
|
@@ -21723,7 +21730,7 @@ var withValue = /* @__PURE__ */ __name((input, parameter, value) => {
|
|
|
21723
21730
|
const { [parameter.name]: _, ...fields2 } = input.fields;
|
|
21724
21731
|
return { ...input, fields: fields2, body: apiJson({ ...body, [parameter.name]: value }) };
|
|
21725
21732
|
}, "withValue");
|
|
21726
|
-
var nextPage = /* @__PURE__ */ __name((pagination, input, answer) => {
|
|
21733
|
+
var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
21727
21734
|
const listed3 = pagination.items === void 0 ? [answer] : at(answer, pagination.items);
|
|
21728
21735
|
const items = Array.isArray(listed3) ? listed3 : [];
|
|
21729
21736
|
switch (pagination.style) {
|
|
@@ -21736,9 +21743,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer) => {
|
|
|
21736
21743
|
case "page": {
|
|
21737
21744
|
const parameter = pagination.style === "offset" ? pagination.offset : pagination.page;
|
|
21738
21745
|
const total = pagination.total === void 0 ? void 0 : numberOf(at(answer, pagination.total));
|
|
21739
|
-
const current = numberOf(parameterValue(input, parameter)) ?? (pagination.style === "offset" ? 0 : 1);
|
|
21746
|
+
const current = numberOf(parameterValue(input, parameter)) ?? (pagination.style === "offset" ? 0 : pagination.start ?? 1);
|
|
21740
21747
|
const next = pagination.style === "offset" ? current + items.length : current + 1;
|
|
21741
|
-
const
|
|
21748
|
+
const pages = pagination.style === "page" && pagination.pagesHeader !== void 0 ? numberOf(headers?.get(pagination.pagesHeader) ?? void 0) : void 0;
|
|
21749
|
+
const last = items.length === 0 || total !== void 0 && pagination.style === "offset" && next >= total || pages !== void 0 && current >= pages;
|
|
21742
21750
|
return last ? { items } : { items, next: { input: withValue(input, parameter, next) } };
|
|
21743
21751
|
}
|
|
21744
21752
|
case "link": {
|
|
@@ -21748,10 +21756,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer) => {
|
|
|
21748
21756
|
}
|
|
21749
21757
|
}, "nextPage");
|
|
21750
21758
|
|
|
21751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/source.js
|
|
21752
21760
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
21753
21761
|
|
|
21754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
21755
21763
|
var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
|
|
21756
21764
|
const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
|
|
21757
21765
|
const providerId = rest.join(":");
|
|
@@ -21784,7 +21792,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
21784
21792
|
return walk2(body);
|
|
21785
21793
|
}, "withoutFileLinks");
|
|
21786
21794
|
|
|
21787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
21788
21796
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
21789
21797
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
21790
21798
|
var text = /* @__PURE__ */ __name((value) => {
|
|
@@ -21841,7 +21849,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
21841
21849
|
}));
|
|
21842
21850
|
}, "crmValuesOf");
|
|
21843
21851
|
|
|
21844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/walk.js
|
|
21845
21853
|
var crmWindowOf = /* @__PURE__ */ __name((query) => {
|
|
21846
21854
|
const page = query.page ?? 1;
|
|
21847
21855
|
return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
|
|
@@ -21861,7 +21869,7 @@ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
|
|
|
21861
21869
|
return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
|
|
21862
21870
|
}, "walk");
|
|
21863
21871
|
|
|
21864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
21865
21873
|
var MISSING = /* @__PURE__ */ Symbol("missing");
|
|
21866
21874
|
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
21875
|
var read = /* @__PURE__ */ __name((raw, path2) => {
|
|
@@ -22114,7 +22122,7 @@ var selectedOf = /* @__PURE__ */ __name((rules, from) => {
|
|
|
22114
22122
|
].filter(Boolean);
|
|
22115
22123
|
}, "selectedOf");
|
|
22116
22124
|
|
|
22117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
22118
22126
|
var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
|
|
22119
22127
|
var paths = pipe(array(path), minLength(1));
|
|
22120
22128
|
var crmRuleSchema = union([
|
|
@@ -22295,7 +22303,7 @@ var parseCrmManifest = /* @__PURE__ */ __name((input, api) => {
|
|
|
22295
22303
|
return manifest;
|
|
22296
22304
|
}, "parseCrmManifest");
|
|
22297
22305
|
|
|
22298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
22299
22307
|
var OVERLAP_MS = 10 * 6e4;
|
|
22300
22308
|
var MOST_LIVE = 100;
|
|
22301
22309
|
var MOST_PAGES = 500;
|
|
@@ -22734,7 +22742,7 @@ var toField = /* @__PURE__ */ __name((spec, raw) => {
|
|
|
22734
22742
|
};
|
|
22735
22743
|
}, "toField");
|
|
22736
22744
|
|
|
22737
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
22738
22746
|
import { readFileSync as readFileSync5, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
22739
22747
|
import { join as join4 } from "node:path";
|
|
22740
22748
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -22829,10 +22837,10 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
22829
22837
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
22830
22838
|
}, "waitForTurn");
|
|
22831
22839
|
|
|
22832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
22833
22841
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
22834
22842
|
|
|
22835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
22836
22844
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
22837
22845
|
import { join as join5 } from "node:path";
|
|
22838
22846
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
@@ -22907,7 +22915,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file2, options2 = {}) => {
|
|
|
22907
22915
|
};
|
|
22908
22916
|
}, "foreignContacts");
|
|
22909
22917
|
|
|
22910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
22911
22919
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
22912
22920
|
let question;
|
|
22913
22921
|
let answered = false;
|
|
@@ -22950,7 +22958,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
22950
22958
|
};
|
|
22951
22959
|
}, "keyedGuard");
|
|
22952
22960
|
|
|
22953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
22954
22962
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
22955
22963
|
var CRM_WRITE_DEFAULTS = {
|
|
22956
22964
|
"deals.delete": "ask",
|
|
@@ -22958,7 +22966,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
22958
22966
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
22959
22967
|
};
|
|
22960
22968
|
|
|
22961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/writes.js
|
|
22962
22970
|
var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
|
|
22963
22971
|
try {
|
|
22964
22972
|
check2();
|
|
@@ -23405,7 +23413,7 @@ var updateCrmRecord = /* @__PURE__ */ __name(async (context2, kind2, externalId,
|
|
|
23405
23413
|
return writeRecord(context2, kind2, "update", fields2, operationId, () => writer.update(kind2, externalId, fields2, { operationId }));
|
|
23406
23414
|
}, "updateCrmRecord");
|
|
23407
23415
|
|
|
23408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23416
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/query.js
|
|
23409
23417
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
23410
23418
|
if (kind2 === "id") {
|
|
23411
23419
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -23506,7 +23514,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
23506
23514
|
});
|
|
23507
23515
|
}, "selectedCodes");
|
|
23508
23516
|
|
|
23509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
|
|
23510
23518
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
23511
23519
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
23512
23520
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -23514,7 +23522,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
23514
23522
|
return grouped2 ? void 0 : workGroupHint(key);
|
|
23515
23523
|
}, "ungroupedHint");
|
|
23516
23524
|
|
|
23517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
23518
23526
|
var VIEWERS = "crm:viewers";
|
|
23519
23527
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
23520
23528
|
try {
|
|
@@ -23589,7 +23597,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
|
|
|
23589
23597
|
return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
|
|
23590
23598
|
}, "ownerOf");
|
|
23591
23599
|
|
|
23592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
23593
23601
|
var DAY2 = 864e5;
|
|
23594
23602
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
23595
23603
|
var MOST_UNLISTED = 0.5;
|
|
@@ -24243,7 +24251,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
|
|
|
24243
24251
|
return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
|
|
24244
24252
|
}, "crmStatus");
|
|
24245
24253
|
|
|
24246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
24247
24255
|
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");
|
|
24248
24256
|
var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
|
|
24249
24257
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -24259,7 +24267,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
|
|
|
24259
24267
|
}, "excerpt");
|
|
24260
24268
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
24261
24269
|
|
|
24262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
24263
24271
|
var SCAN = 1e3;
|
|
24264
24272
|
var SNIPPET = 200;
|
|
24265
24273
|
var SNIPPET_ROWS = 6;
|
|
@@ -24324,7 +24332,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
24324
24332
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
24325
24333
|
}, "personMeetings");
|
|
24326
24334
|
|
|
24327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
24328
24336
|
var CONTEXT_MESSAGES2 = 10;
|
|
24329
24337
|
var CONTEXT_BYTES = 64 * 1024;
|
|
24330
24338
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -24630,10 +24638,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
24630
24638
|
};
|
|
24631
24639
|
}, "personMessages");
|
|
24632
24640
|
|
|
24633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
24634
24642
|
import { createHash } from "node:crypto";
|
|
24635
24643
|
|
|
24636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
24637
24645
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
24638
24646
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
24639
24647
|
const parsed = parseMeetingReference(reference);
|
|
@@ -24651,7 +24659,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
24651
24659
|
return { parsed, meeting };
|
|
24652
24660
|
}, "authorizedMeetingMetadata");
|
|
24653
24661
|
|
|
24654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
24655
24663
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
24656
24664
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
24657
24665
|
if (signal?.aborted)
|
|
@@ -24850,7 +24858,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
24850
24858
|
return { ...packet, fingerprint: hash(packet) };
|
|
24851
24859
|
}, "readMeetingEvidence");
|
|
24852
24860
|
|
|
24853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
24854
24862
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
24855
24863
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
24856
24864
|
const requestedAccounts = options2.accountIds;
|
|
@@ -24949,7 +24957,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
24949
24957
|
};
|
|
24950
24958
|
}, "personMeetingContext");
|
|
24951
24959
|
|
|
24952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
24953
24961
|
var PREPARE_BYTES = 96 * 1024;
|
|
24954
24962
|
var MEETINGS = 5;
|
|
24955
24963
|
var CUES = 3;
|
|
@@ -25072,7 +25080,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
25072
25080
|
}
|
|
25073
25081
|
}, "meetingsOf");
|
|
25074
25082
|
|
|
25075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
25076
25084
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
25077
25085
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
25078
25086
|
const held = await storeIfOpen(deps);
|
|
@@ -25142,7 +25150,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
25142
25150
|
complete: false
|
|
25143
25151
|
})), "quiet");
|
|
25144
25152
|
|
|
25145
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
25146
25154
|
var TIMELINE_ITEMS = 50;
|
|
25147
25155
|
var TIMELINE_MAX = 500;
|
|
25148
25156
|
var SCOPES = ["personal", "work"];
|
|
@@ -25204,7 +25212,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
25204
25212
|
};
|
|
25205
25213
|
}, "personTimeline");
|
|
25206
25214
|
|
|
25207
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
25208
25216
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
25209
25217
|
const ids = [...new Set(chatIds)];
|
|
25210
25218
|
if (ids.length === 0)
|
|
@@ -25230,7 +25238,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
25230
25238
|
}));
|
|
25231
25239
|
}, "chatCoverage");
|
|
25232
25240
|
|
|
25233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
25234
25242
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
25235
25243
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
25236
25244
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -25294,7 +25302,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
25294
25302
|
}
|
|
25295
25303
|
}, "validateContextEvidencePage");
|
|
25296
25304
|
|
|
25297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
25298
25306
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
25299
25307
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
25300
25308
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -25347,7 +25355,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
25347
25355
|
};
|
|
25348
25356
|
}, "contextReadBudget");
|
|
25349
25357
|
|
|
25350
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
25351
25359
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
25352
25360
|
if (!port || typeof port.read !== "function")
|
|
25353
25361
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -25391,7 +25399,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
25391
25399
|
};
|
|
25392
25400
|
}, "createContextEvidenceReader");
|
|
25393
25401
|
|
|
25394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
25395
25403
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
25396
25404
|
async around(ref, window2) {
|
|
25397
25405
|
const at3 = parseLocator(ref);
|
|
@@ -25486,7 +25494,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
25486
25494
|
};
|
|
25487
25495
|
}, "storedNeighbours");
|
|
25488
25496
|
|
|
25489
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
25490
25498
|
import { createHash as createHash2 } from "node:crypto";
|
|
25491
25499
|
var DAY3 = 864e5;
|
|
25492
25500
|
var MAX_TIME = 864e13;
|
|
@@ -25802,7 +25810,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
25802
25810
|
return value;
|
|
25803
25811
|
}, "decodeCheckpoint");
|
|
25804
25812
|
|
|
25805
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
25806
25814
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
25807
25815
|
var PAGE2 = 20;
|
|
25808
25816
|
var PEOPLE = 20;
|
|
@@ -26206,7 +26214,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
26206
26214
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
26207
26215
|
}, "peopleOf");
|
|
26208
26216
|
|
|
26209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
26210
26218
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
26211
26219
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
26212
26220
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -26250,7 +26258,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
26250
26258
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
26251
26259
|
}, "matchVocabularyTerms");
|
|
26252
26260
|
|
|
26253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
26254
26262
|
var KINDS = ["project", "tag", "topic"];
|
|
26255
26263
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
26256
26264
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -26305,7 +26313,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
26305
26313
|
};
|
|
26306
26314
|
}, "findEvidenceMentions");
|
|
26307
26315
|
|
|
26308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
26309
26317
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
26310
26318
|
var DEFAULT_PURPOSES = ["work"];
|
|
26311
26319
|
var LINK_PURPOSE = "work";
|
|
@@ -26335,7 +26343,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
26335
26343
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
26336
26344
|
], "purposeList");
|
|
26337
26345
|
|
|
26338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
26339
26347
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
26340
26348
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
26341
26349
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -26646,7 +26654,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
26646
26654
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
26647
26655
|
}, "purposeHintOf");
|
|
26648
26656
|
|
|
26649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
26650
26658
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
26651
26659
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
26652
26660
|
const held = await storeIfOpen(deps);
|
|
@@ -26911,7 +26919,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
26911
26919
|
return rest;
|
|
26912
26920
|
}, "withoutPhone");
|
|
26913
26921
|
|
|
26914
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
26915
26923
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
26916
26924
|
var PERIOD_FIELD = "created";
|
|
26917
26925
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -27042,7 +27050,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
27042
27050
|
}));
|
|
27043
27051
|
}, "meetingNames");
|
|
27044
27052
|
|
|
27045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
27046
27054
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
27047
27055
|
const tags = /* @__PURE__ */ new Map();
|
|
27048
27056
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -27051,7 +27059,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
27051
27059
|
return tags;
|
|
27052
27060
|
}, "taskTagFilters");
|
|
27053
27061
|
|
|
27054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
27055
27063
|
var TASK_QUERY = {
|
|
27056
27064
|
entity: "task",
|
|
27057
27065
|
backend: "sql",
|
|
@@ -27551,7 +27559,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
27551
27559
|
};
|
|
27552
27560
|
}, "taskView");
|
|
27553
27561
|
|
|
27554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
27555
27563
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
27556
27564
|
if (newest === null)
|
|
27557
27565
|
return null;
|
|
@@ -27560,7 +27568,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
27560
27568
|
return newest.addressed ? "owed" : null;
|
|
27561
27569
|
}, "mailTurn");
|
|
27562
27570
|
|
|
27563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
27564
27572
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
27565
27573
|
if (error instanceof CliError && error.code === "not_found")
|
|
27566
27574
|
return void 0;
|
|
@@ -27618,7 +27626,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
27618
27626
|
};
|
|
27619
27627
|
}, "mailActivity");
|
|
27620
27628
|
|
|
27621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
27622
27630
|
var DAY4 = 864e5;
|
|
27623
27631
|
var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
|
|
27624
27632
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -27872,22 +27880,22 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
27872
27880
|
};
|
|
27873
27881
|
}, "agendaItem");
|
|
27874
27882
|
|
|
27875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
27876
27884
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
27877
27885
|
var encoder = new TextEncoder();
|
|
27878
27886
|
|
|
27879
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
27880
27888
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
27881
27889
|
|
|
27882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
27883
27891
|
import { lstat } from "node:fs/promises";
|
|
27884
27892
|
|
|
27885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
27886
27894
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
27887
27895
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
27888
27896
|
import { join as join7 } from "node:path";
|
|
27889
27897
|
|
|
27890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
27891
27899
|
import { createHash as createHash3 } from "node:crypto";
|
|
27892
27900
|
var metadataLimit = 16384;
|
|
27893
27901
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -27947,7 +27955,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
27947
27955
|
}
|
|
27948
27956
|
}, "readPartialMetadata");
|
|
27949
27957
|
|
|
27950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
27951
27959
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
27952
27960
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
27953
27961
|
import { join as join6 } from "node:path";
|
|
@@ -28039,7 +28047,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
28039
28047
|
};
|
|
28040
28048
|
}, "partialWriter");
|
|
28041
28049
|
|
|
28042
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28050
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
28043
28051
|
var NativeRecordingPartialStore = class {
|
|
28044
28052
|
static {
|
|
28045
28053
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -28146,12 +28154,12 @@ var NativeRecordingPartialStore = class {
|
|
|
28146
28154
|
}
|
|
28147
28155
|
};
|
|
28148
28156
|
|
|
28149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
28150
28158
|
import { createHash as createHash5 } from "node:crypto";
|
|
28151
28159
|
import { link as link2 } from "node:fs/promises";
|
|
28152
28160
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
28153
28161
|
|
|
28154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
28155
28163
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
28156
28164
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
28157
28165
|
signal?.throwIfAborted();
|
|
@@ -28186,7 +28194,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
28186
28194
|
signal?.throwIfAborted();
|
|
28187
28195
|
}, "commitPublication");
|
|
28188
28196
|
|
|
28189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
28190
28198
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
28191
28199
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
28192
28200
|
import { join as join8 } from "node:path";
|
|
@@ -28259,7 +28267,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
28259
28267
|
}
|
|
28260
28268
|
}, "writePublicationJournal");
|
|
28261
28269
|
|
|
28262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
28263
28271
|
var NativeRecordingPublication = class {
|
|
28264
28272
|
static {
|
|
28265
28273
|
__name(this, "NativeRecordingPublication");
|
|
@@ -28332,7 +28340,7 @@ var NativeRecordingPublication = class {
|
|
|
28332
28340
|
}
|
|
28333
28341
|
};
|
|
28334
28342
|
|
|
28335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28343
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
28336
28344
|
import { createHash as createHash6 } from "node:crypto";
|
|
28337
28345
|
import { readdir } from "node:fs/promises";
|
|
28338
28346
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -28419,7 +28427,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
28419
28427
|
beforePublish
|
|
28420
28428
|
}), "commitMediaEntry");
|
|
28421
28429
|
|
|
28422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
28423
28431
|
var validator = '"media-completed-v1"';
|
|
28424
28432
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
28425
28433
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -28520,7 +28528,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
28520
28528
|
return entry;
|
|
28521
28529
|
}, "archiveMediaFile");
|
|
28522
28530
|
|
|
28523
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
28524
28532
|
import { mkdir, realpath } from "node:fs/promises";
|
|
28525
28533
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
28526
28534
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -28587,7 +28595,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
28587
28595
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
28588
28596
|
}, "withMediaArchiveLocks");
|
|
28589
28597
|
|
|
28590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28598
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
28591
28599
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
28592
28600
|
const entries = await readMediaManifests(root, signal);
|
|
28593
28601
|
if (!entries.length)
|
|
@@ -28730,7 +28738,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
28730
28738
|
}, { create: true });
|
|
28731
28739
|
}, "archiveMedia");
|
|
28732
28740
|
|
|
28733
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
28734
28742
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
28735
28743
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
28736
28744
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -28881,7 +28889,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
28881
28889
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
28882
28890
|
}, "moveMediaArchive");
|
|
28883
28891
|
|
|
28884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
28885
28893
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
28886
28894
|
import { join as join13 } from "node:path";
|
|
28887
28895
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -28906,7 +28914,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28906
28914
|
`);
|
|
28907
28915
|
await nativeRuntime({ env, progress });
|
|
28908
28916
|
progress(`${model.id}: loading it once to check it works`);
|
|
28909
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
28917
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-TN6HQUK2.js");
|
|
28910
28918
|
const embedder = await openEmbedder2(model, directory2);
|
|
28911
28919
|
try {
|
|
28912
28920
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -28927,7 +28935,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
28927
28935
|
}
|
|
28928
28936
|
await nativeRuntime({ env, progress });
|
|
28929
28937
|
progress(`${model.id}: loading it once to check it works`);
|
|
28930
|
-
const { openReranker } = await import("./rerank-
|
|
28938
|
+
const { openReranker } = await import("./rerank-2BHYAEO3.js");
|
|
28931
28939
|
const reranker = await openReranker(model, directory2);
|
|
28932
28940
|
try {
|
|
28933
28941
|
await reranker.score("check", ["check"]);
|
|
@@ -28945,7 +28953,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28945
28953
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
28946
28954
|
}
|
|
28947
28955
|
progress(`${model.id}: loading it once to check it works`);
|
|
28948
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
28956
|
+
const { openPictureEmbedder } = await import("./embedder-T3KJA3I4.js");
|
|
28949
28957
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
28950
28958
|
try {
|
|
28951
28959
|
const vector = await embedder.embedQuery("check");
|
|
@@ -28957,7 +28965,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28957
28965
|
return { model, directory: directory2 };
|
|
28958
28966
|
}, "downloadImageModel");
|
|
28959
28967
|
|
|
28960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
28961
28969
|
var MONEY_REQUEST = "money-request";
|
|
28962
28970
|
var MONEY_DONE = "money-done";
|
|
28963
28971
|
var PROMISE = "promise";
|
|
@@ -28991,10 +28999,10 @@ var MONEY_WORDS = [
|
|
|
28991
28999
|
}
|
|
28992
29000
|
];
|
|
28993
29001
|
|
|
28994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
28995
29003
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
28996
29004
|
|
|
28997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
28998
29006
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
28999
29007
|
var MONEY_DONE_FORMS = words2([
|
|
29000
29008
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -29034,7 +29042,7 @@ var PROMISE_FORMS = words2([
|
|
|
29034
29042
|
"estar\xE1 listo"
|
|
29035
29043
|
]);
|
|
29036
29044
|
|
|
29037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
29038
29046
|
var EXCERPT_CHARS = 80;
|
|
29039
29047
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
29040
29048
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -29056,7 +29064,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
29056
29064
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
29057
29065
|
var day = /* @__PURE__ */ __name((at3) => new Date(at3).toISOString().slice(0, 10), "day");
|
|
29058
29066
|
|
|
29059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
29060
29068
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
29061
29069
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
29062
29070
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -29137,7 +29145,7 @@ var amounts = {
|
|
|
29137
29145
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
29138
29146
|
};
|
|
29139
29147
|
|
|
29140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
29141
29149
|
var children = {
|
|
29142
29150
|
id: "children",
|
|
29143
29151
|
version: 1,
|
|
@@ -29166,7 +29174,7 @@ var children = {
|
|
|
29166
29174
|
}, "read")
|
|
29167
29175
|
};
|
|
29168
29176
|
|
|
29169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
29170
29178
|
var coverage = {
|
|
29171
29179
|
id: "coverage",
|
|
29172
29180
|
version: 1,
|
|
@@ -29195,7 +29203,7 @@ var coverage = {
|
|
|
29195
29203
|
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")
|
|
29196
29204
|
};
|
|
29197
29205
|
|
|
29198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
29199
29207
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
29200
29208
|
var item = /* @__PURE__ */ __name((row, at3, data) => ({
|
|
29201
29209
|
signal: "payments",
|
|
@@ -29245,7 +29253,7 @@ var payments = {
|
|
|
29245
29253
|
}, "read")
|
|
29246
29254
|
};
|
|
29247
29255
|
|
|
29248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
29249
29257
|
var PATTERNS_PER_CHAT = 3;
|
|
29250
29258
|
var DAY5 = 864e5;
|
|
29251
29259
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -29334,7 +29342,7 @@ var promises = {
|
|
|
29334
29342
|
}, "read")
|
|
29335
29343
|
};
|
|
29336
29344
|
|
|
29337
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29345
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
29338
29346
|
var PER_SIDE = 5;
|
|
29339
29347
|
var WEEK = 7 * 864e5;
|
|
29340
29348
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -29365,7 +29373,7 @@ var questions2 = {
|
|
|
29365
29373
|
}, "attention")
|
|
29366
29374
|
};
|
|
29367
29375
|
|
|
29368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
29369
29377
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
29370
29378
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
|
|
29371
29379
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -29433,7 +29441,7 @@ var replyNext = {
|
|
|
29433
29441
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
29434
29442
|
};
|
|
29435
29443
|
|
|
29436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
29437
29445
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
29438
29446
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
29439
29447
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -29479,7 +29487,7 @@ var topics = {
|
|
|
29479
29487
|
}, "read")
|
|
29480
29488
|
};
|
|
29481
29489
|
|
|
29482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
29483
29491
|
var STATUS_SIGNALS = [
|
|
29484
29492
|
replyNext,
|
|
29485
29493
|
questions2,
|
|
@@ -29491,7 +29499,7 @@ var STATUS_SIGNALS = [
|
|
|
29491
29499
|
children
|
|
29492
29500
|
];
|
|
29493
29501
|
|
|
29494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
29495
29503
|
var DAY6 = 864e5;
|
|
29496
29504
|
var STATUS_WINDOW = 300;
|
|
29497
29505
|
var STATUS_CHATS = 16;
|
|
@@ -29680,7 +29688,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
29680
29688
|
};
|
|
29681
29689
|
}, "projectStatus");
|
|
29682
29690
|
|
|
29683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
29684
29692
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
29685
29693
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
29686
29694
|
if (deps.offline)
|
|
@@ -29752,7 +29760,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
29752
29760
|
};
|
|
29753
29761
|
}, "accountService");
|
|
29754
29762
|
|
|
29755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
29756
29764
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
29757
29765
|
const at3 = aheadOf(value, flag, now, {
|
|
29758
29766
|
...zone === void 0 ? {} : { zone },
|
|
@@ -29763,7 +29771,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
29763
29771
|
return new Date(at3 - at3 % MINUTE).toISOString();
|
|
29764
29772
|
}, "sendTime");
|
|
29765
29773
|
|
|
29766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
29767
29775
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
29768
29776
|
try {
|
|
29769
29777
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -30010,7 +30018,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
30010
30018
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
30011
30019
|
}, "linkLimits");
|
|
30012
30020
|
|
|
30013
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
30014
30022
|
var THREADS_PAGE = 500;
|
|
30015
30023
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
30016
30024
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -30085,7 +30093,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
30085
30093
|
return thread.slice(Math.max(0, at3 - before), at3 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
30086
30094
|
}, "readMail");
|
|
30087
30095
|
|
|
30088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
30089
30097
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
30090
30098
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
30091
30099
|
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");
|
|
@@ -30458,7 +30466,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
30458
30466
|
};
|
|
30459
30467
|
}, "statsLucene");
|
|
30460
30468
|
|
|
30461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
30462
30470
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
30463
30471
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
30464
30472
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -30627,7 +30635,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
30627
30635
|
};
|
|
30628
30636
|
}, "readRankingSelection");
|
|
30629
30637
|
|
|
30630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
30631
30639
|
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");
|
|
30632
30640
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
30633
30641
|
command,
|
|
@@ -30637,7 +30645,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
30637
30645
|
fieldsVersion: FIELD_VERSION
|
|
30638
30646
|
}), "searchRecordOf");
|
|
30639
30647
|
|
|
30640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
30641
30649
|
function invalid4(message) {
|
|
30642
30650
|
throw new CliError("validation_error", message);
|
|
30643
30651
|
}
|
|
@@ -30931,7 +30939,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30931
30939
|
}, "evidence")
|
|
30932
30940
|
}), "adminStatisticsService");
|
|
30933
30941
|
|
|
30934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
30935
30943
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
30936
30944
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
30937
30945
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -31068,12 +31076,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31068
31076
|
return { plan, repair };
|
|
31069
31077
|
}, "gapsService");
|
|
31070
31078
|
|
|
31071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31072
31080
|
import { createHash as createHash10 } from "node:crypto";
|
|
31073
31081
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
31074
31082
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
31075
31083
|
|
|
31076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
31077
31085
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
31078
31086
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
31079
31087
|
var MAX_FILES = 1e4;
|
|
@@ -31144,15 +31152,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
31144
31152
|
return choices;
|
|
31145
31153
|
}, "directoryPaths");
|
|
31146
31154
|
|
|
31147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
31148
31156
|
import { posix } from "node:path";
|
|
31149
31157
|
|
|
31150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
31151
31159
|
import { setImmediate as tick } from "node:timers/promises";
|
|
31152
31160
|
import { crc32 } from "node:zlib";
|
|
31153
31161
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
31154
31162
|
|
|
31155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
31156
31164
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
31157
31165
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
31158
31166
|
var SAMPLE = 65536;
|
|
@@ -31254,7 +31262,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
31254
31262
|
return result.text;
|
|
31255
31263
|
}, "decodeXml");
|
|
31256
31264
|
|
|
31257
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
31258
31266
|
var MAX_PART = 10 * 1024 * 1024;
|
|
31259
31267
|
var MAX_ENTRIES = 1e3;
|
|
31260
31268
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -31469,7 +31477,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
31469
31477
|
return found;
|
|
31470
31478
|
}, "elements");
|
|
31471
31479
|
|
|
31472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
31473
31481
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
31474
31482
|
let name = "";
|
|
31475
31483
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -31524,7 +31532,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
31524
31532
|
return { text: parts.join("").trim(), truncated: false };
|
|
31525
31533
|
}, "sheetText");
|
|
31526
31534
|
|
|
31527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
31528
31536
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
31529
31537
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
31530
31538
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -31924,10 +31932,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
31924
31932
|
}
|
|
31925
31933
|
}, "readDocument");
|
|
31926
31934
|
|
|
31927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
31928
31936
|
import { extname as extname3 } from "node:path";
|
|
31929
31937
|
|
|
31930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
31931
31939
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
31932
31940
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
31933
31941
|
import { fileURLToPath } from "node:url";
|
|
@@ -31988,7 +31996,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
31988
31996
|
}
|
|
31989
31997
|
}, "derived");
|
|
31990
31998
|
|
|
31991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
31992
32000
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
31993
32001
|
var image2 = {
|
|
31994
32002
|
id: "image",
|
|
@@ -31997,7 +32005,7 @@ var image2 = {
|
|
|
31997
32005
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
31998
32006
|
};
|
|
31999
32007
|
|
|
32000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32008
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
32001
32009
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
32002
32010
|
var doc = {
|
|
32003
32011
|
id: "doc",
|
|
@@ -32009,7 +32017,7 @@ var doc = {
|
|
|
32009
32017
|
}), "read")
|
|
32010
32018
|
};
|
|
32011
32019
|
|
|
32012
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
32013
32021
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
32014
32022
|
var docx = {
|
|
32015
32023
|
id: "docx",
|
|
@@ -32022,10 +32030,10 @@ var docx = {
|
|
|
32022
32030
|
}), "read")
|
|
32023
32031
|
};
|
|
32024
32032
|
|
|
32025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
32026
32034
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
32027
32035
|
|
|
32028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
32029
32037
|
var NAMED = {
|
|
32030
32038
|
amp: "&",
|
|
32031
32039
|
lt: "<",
|
|
@@ -32077,7 +32085,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
32077
32085
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
32078
32086
|
}), "decodeEntities");
|
|
32079
32087
|
|
|
32080
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
32081
32089
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
32082
32090
|
"fonttbl",
|
|
32083
32091
|
"colortbl",
|
|
@@ -32243,7 +32251,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
32243
32251
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
32244
32252
|
}, "htmlText");
|
|
32245
32253
|
|
|
32246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
32247
32255
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
32248
32256
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
32249
32257
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -32299,7 +32307,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
32299
32307
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
32300
32308
|
}, "markdownSections");
|
|
32301
32309
|
|
|
32302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
32303
32311
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
32304
32312
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
32305
32313
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -32370,7 +32378,7 @@ var html = {
|
|
|
32370
32378
|
}, "read")
|
|
32371
32379
|
};
|
|
32372
32380
|
|
|
32373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
32374
32382
|
var office = {
|
|
32375
32383
|
id: "office",
|
|
32376
32384
|
version: documentExtractor("odt"),
|
|
@@ -32381,7 +32389,7 @@ var office = {
|
|
|
32381
32389
|
}, "read")
|
|
32382
32390
|
};
|
|
32383
32391
|
|
|
32384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
32385
32393
|
var pdf = {
|
|
32386
32394
|
id: "pdf",
|
|
32387
32395
|
version: "unpdf",
|
|
@@ -32448,7 +32456,7 @@ var pdf = {
|
|
|
32448
32456
|
}), "read")
|
|
32449
32457
|
};
|
|
32450
32458
|
|
|
32451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
32452
32460
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
32453
32461
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
32454
32462
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -32468,7 +32476,7 @@ var plain = {
|
|
|
32468
32476
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
32469
32477
|
};
|
|
32470
32478
|
|
|
32471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
32472
32480
|
var rtf = {
|
|
32473
32481
|
id: "rtf",
|
|
32474
32482
|
version: "v1",
|
|
@@ -32476,10 +32484,10 @@ var rtf = {
|
|
|
32476
32484
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
32477
32485
|
};
|
|
32478
32486
|
|
|
32479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
32480
32488
|
import { basename as basename5 } from "node:path";
|
|
32481
32489
|
|
|
32482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
32483
32491
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
32484
32492
|
const cells = [];
|
|
32485
32493
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -32517,7 +32525,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
32517
32525
|
return { cells, truncated };
|
|
32518
32526
|
}, "delimitedSpans");
|
|
32519
32527
|
|
|
32520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32528
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
32521
32529
|
var DELIMITED = {
|
|
32522
32530
|
".csv": ",",
|
|
32523
32531
|
".tsv": " ",
|
|
@@ -32556,7 +32564,7 @@ var sheets = {
|
|
|
32556
32564
|
}, "read")
|
|
32557
32565
|
};
|
|
32558
32566
|
|
|
32559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
32560
32568
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
32561
32569
|
var HEAD_BYTES = 1024;
|
|
32562
32570
|
var readers = [...BUILT_INS2];
|
|
@@ -32566,7 +32574,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
32566
32574
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
32567
32575
|
}, "readWithRegistry");
|
|
32568
32576
|
|
|
32569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
32570
32578
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
32571
32579
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
32572
32580
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -33645,7 +33653,7 @@ function imageSize(input) {
|
|
|
33645
33653
|
}
|
|
33646
33654
|
__name(imageSize, "imageSize");
|
|
33647
33655
|
|
|
33648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
33649
33657
|
var MAX_PAGES = 20;
|
|
33650
33658
|
var MAX_PIXELS = 2e7;
|
|
33651
33659
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -33805,7 +33813,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
33805
33813
|
}
|
|
33806
33814
|
}, "ocrPdf");
|
|
33807
33815
|
|
|
33808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
33809
33817
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
33810
33818
|
const limits = pdfPreviewLimits(env);
|
|
33811
33819
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -33882,7 +33890,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
33882
33890
|
}
|
|
33883
33891
|
}, "pdfPreview");
|
|
33884
33892
|
|
|
33885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
33886
33894
|
import { spawn } from "node:child_process";
|
|
33887
33895
|
import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
33888
33896
|
import { tmpdir } from "node:os";
|
|
@@ -34045,7 +34053,7 @@ Read the attached picture.`,
|
|
|
34045
34053
|
}
|
|
34046
34054
|
}, "readPictureWithAgent");
|
|
34047
34055
|
|
|
34048
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34056
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
34049
34057
|
import { createHash as createHash8 } from "node:crypto";
|
|
34050
34058
|
import { constants } from "node:fs";
|
|
34051
34059
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -34153,7 +34161,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
34153
34161
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
34154
34162
|
}, "transferMime");
|
|
34155
34163
|
|
|
34156
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
34157
34165
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
34158
34166
|
import { link as link3, rm } from "node:fs/promises";
|
|
34159
34167
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -34267,12 +34275,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
34267
34275
|
}
|
|
34268
34276
|
}, "save");
|
|
34269
34277
|
|
|
34270
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34271
34279
|
import { createHash as createHash9 } from "node:crypto";
|
|
34272
34280
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
34273
34281
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
34274
34282
|
|
|
34275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
34276
34284
|
var GROUP_SETTINGS = [
|
|
34277
34285
|
"allCanPin",
|
|
34278
34286
|
"onlyAdminsAdd",
|
|
@@ -34286,7 +34294,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
34286
34294
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
34287
34295
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
34288
34296
|
|
|
34289
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
34290
34298
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
34291
34299
|
var PICTURE_FLOOR = 0.25;
|
|
34292
34300
|
var PAGE3 = 50;
|
|
@@ -34327,7 +34335,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
34327
34335
|
const directory2 = imageModelsDirectory(deps.env);
|
|
34328
34336
|
if (!isImageModelInstalled(model2, directory2))
|
|
34329
34337
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
34330
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34338
|
+
const { openPictureEmbedder } = await import("./embedder-T3KJA3I4.js");
|
|
34331
34339
|
return openPictureEmbedder(model2, directory2);
|
|
34332
34340
|
}, "open");
|
|
34333
34341
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -34501,7 +34509,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
34501
34509
|
}, "search")
|
|
34502
34510
|
}), "withPictures");
|
|
34503
34511
|
|
|
34504
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
34505
34513
|
var ATTACHMENT_QUERY = {
|
|
34506
34514
|
entity: "attachment",
|
|
34507
34515
|
backend: "sql",
|
|
@@ -34972,7 +34980,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
34972
34980
|
}, "readPicture")
|
|
34973
34981
|
}), "attachmentsService");
|
|
34974
34982
|
|
|
34975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
34976
34984
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
34977
34985
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
34978
34986
|
const store = await accountStore(deps);
|
|
@@ -35002,7 +35010,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35002
35010
|
}, "list")
|
|
35003
35011
|
}), "chatDocumentsService");
|
|
35004
35012
|
|
|
35005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
35006
35014
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
35007
35015
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
35008
35016
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -35089,7 +35097,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
35089
35097
|
}
|
|
35090
35098
|
}, "isRetentionSelection");
|
|
35091
35099
|
|
|
35092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
35093
35101
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
35094
35102
|
const fields2 = text3.split(",").map((one) => one.trim());
|
|
35095
35103
|
if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
|
|
@@ -35296,7 +35304,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
35296
35304
|
};
|
|
35297
35305
|
}, "countersService");
|
|
35298
35306
|
|
|
35299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/respell.js
|
|
35300
35308
|
var LATIN = {
|
|
35301
35309
|
\u0430: "a",
|
|
35302
35310
|
\u0431: "b",
|
|
@@ -35351,7 +35359,7 @@ var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
35351
35359
|
return found;
|
|
35352
35360
|
}, "respelled");
|
|
35353
35361
|
|
|
35354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
35355
35363
|
var LEAST_USES = 3;
|
|
35356
35364
|
var SAMPLE2 = 50;
|
|
35357
35365
|
var CAPITALISED = 0.8;
|
|
@@ -35401,7 +35409,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
35401
35409
|
}, "queryWords");
|
|
35402
35410
|
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");
|
|
35403
35411
|
|
|
35404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
35405
35413
|
var SYNC_KEY = "messages.sync-first";
|
|
35406
35414
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
35407
35415
|
var keyOf4 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -35533,7 +35541,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
35533
35541
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
35534
35542
|
}), "withRefresh");
|
|
35535
35543
|
|
|
35536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
35537
35545
|
var CANDIDATES = 50;
|
|
35538
35546
|
var ACROSS_CHATS = 500;
|
|
35539
35547
|
var OWN_BLOCK = 5;
|
|
@@ -35889,13 +35897,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
35889
35897
|
return mean2.map((value) => value / length);
|
|
35890
35898
|
}, "meanOf");
|
|
35891
35899
|
|
|
35892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
35893
35901
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
35894
35902
|
...embeddingsMaintenance(deps),
|
|
35895
35903
|
...embeddingsSearch(deps)
|
|
35896
35904
|
}), "embeddingsService");
|
|
35897
35905
|
|
|
35898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
35899
35907
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
35900
35908
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
35901
35909
|
if (deps.offline)
|
|
@@ -36036,7 +36044,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
36036
36044
|
};
|
|
36037
36045
|
}, "foldersService");
|
|
36038
36046
|
|
|
36039
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
36040
36048
|
var REVIEW_COUNT = 500;
|
|
36041
36049
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
36042
36050
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -36115,7 +36123,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
36115
36123
|
};
|
|
36116
36124
|
}, "mentionsService");
|
|
36117
36125
|
|
|
36118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
36119
36127
|
var invalid5 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
36120
36128
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
36121
36129
|
const { text: text3, spans } = formatted2;
|
|
@@ -36175,7 +36183,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
36175
36183
|
};
|
|
36176
36184
|
}, "visibleFormattedText");
|
|
36177
36185
|
|
|
36178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
36179
36187
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
36180
36188
|
position,
|
|
36181
36189
|
kind: kind2,
|
|
@@ -36224,7 +36232,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
36224
36232
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
36225
36233
|
}, "validatePermalink");
|
|
36226
36234
|
|
|
36227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
36228
36236
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
36229
36237
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
36230
36238
|
return `${seconds / 86400}d`;
|
|
@@ -36256,7 +36264,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
36256
36264
|
return seconds;
|
|
36257
36265
|
}, "pinDurationOf");
|
|
36258
36266
|
|
|
36259
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
36260
36268
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
36261
36269
|
if (sendAs === void 0) {
|
|
36262
36270
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -36281,7 +36289,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
36281
36289
|
return sendAs;
|
|
36282
36290
|
}, "typedSendAs");
|
|
36283
36291
|
|
|
36284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
36285
36293
|
var TOTAL_CAP = 1e4;
|
|
36286
36294
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
36287
36295
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -36292,7 +36300,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
36292
36300
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
36293
36301
|
}, "totalOf");
|
|
36294
36302
|
|
|
36295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
36296
36304
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
36297
36305
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
36298
36306
|
let narrows = false;
|
|
@@ -36321,7 +36329,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
36321
36329
|
return wanted(root).join(" ").trim();
|
|
36322
36330
|
}, "meaningWords");
|
|
36323
36331
|
|
|
36324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
36325
36333
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
36326
36334
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
36327
36335
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -36522,7 +36530,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
36522
36530
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
36523
36531
|
}, "signals");
|
|
36524
36532
|
|
|
36525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
36526
36534
|
var MEANING_DEPTH = 100;
|
|
36527
36535
|
var RRF_K3 = 60;
|
|
36528
36536
|
var RERANK_DEPTH = 50;
|
|
@@ -36848,7 +36856,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
36848
36856
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
36849
36857
|
}, "mixedWithReranker");
|
|
36850
36858
|
|
|
36851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
36852
36860
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
36853
36861
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
36854
36862
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -37047,7 +37055,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
37047
37055
|
return result;
|
|
37048
37056
|
}, "readThreadContext");
|
|
37049
37057
|
|
|
37050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
37051
37059
|
var SEARCH_FILL_MS = 200;
|
|
37052
37060
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
37053
37061
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -37155,7 +37163,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
37155
37163
|
}, "accountOf");
|
|
37156
37164
|
var keyOf5 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
37157
37165
|
|
|
37158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
37159
37167
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
37160
37168
|
const chosen = chosenTextModel(env);
|
|
37161
37169
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -37170,7 +37178,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
37170
37178
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
37171
37179
|
}, "meaningModel");
|
|
37172
37180
|
|
|
37173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37181
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
37174
37182
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
37175
37183
|
try {
|
|
37176
37184
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -37249,7 +37257,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
37249
37257
|
}
|
|
37250
37258
|
}, "meaningLane");
|
|
37251
37259
|
|
|
37252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
37253
37261
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
37254
37262
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
37255
37263
|
if (choice === "off")
|
|
@@ -37261,9 +37269,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
37261
37269
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
37262
37270
|
try {
|
|
37263
37271
|
const warm = deps.embedders;
|
|
37264
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
37272
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-JV3KVGJY.js")).openRerankerProcess(model, directory2, {
|
|
37265
37273
|
threads: defaultThreads()
|
|
37266
|
-
})) : await (await import("./rerank-
|
|
37274
|
+
})) : await (await import("./rerank-2BHYAEO3.js")).openReranker(model, directory2);
|
|
37267
37275
|
return {
|
|
37268
37276
|
model: model.id,
|
|
37269
37277
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -37283,7 +37291,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
37283
37291
|
};
|
|
37284
37292
|
}, "rerankLane");
|
|
37285
37293
|
|
|
37286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
37287
37295
|
var DAY7 = 864e5;
|
|
37288
37296
|
var SPAN = { start: 0, end: 0 };
|
|
37289
37297
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -37408,17 +37416,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
37408
37416
|
};
|
|
37409
37417
|
}, "questionPeriod");
|
|
37410
37418
|
|
|
37411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
37412
37420
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
37413
37421
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
37414
37422
|
const directory2 = imageModelsDirectory(env);
|
|
37415
37423
|
if (!isImageModelInstalled(model, directory2))
|
|
37416
37424
|
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 });
|
|
37417
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
37425
|
+
const { openPictureEmbedder } = await import("./embedder-T3KJA3I4.js");
|
|
37418
37426
|
return openPictureEmbedder(model, directory2);
|
|
37419
37427
|
}, "openPictureEmbedderFor");
|
|
37420
37428
|
|
|
37421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
37422
37430
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
37423
37431
|
const metadata = note.frontMatter;
|
|
37424
37432
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -37440,7 +37448,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
37440
37448
|
};
|
|
37441
37449
|
}, "documentSource");
|
|
37442
37450
|
|
|
37443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
37444
37452
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
37445
37453
|
const host = new URL(baseUrl).host;
|
|
37446
37454
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -37473,7 +37481,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
37473
37481
|
};
|
|
37474
37482
|
}, "embeddingKeys");
|
|
37475
37483
|
|
|
37476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
37477
37485
|
var options = strictObject({
|
|
37478
37486
|
temperature: range(0, 2),
|
|
37479
37487
|
top_p: range(0, 1),
|
|
@@ -37540,7 +37548,7 @@ var openai = {
|
|
|
37540
37548
|
}), "complete")
|
|
37541
37549
|
};
|
|
37542
37550
|
|
|
37543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
37544
37552
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
37545
37553
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
37546
37554
|
if (deps.signal?.aborted)
|
|
@@ -37555,7 +37563,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
37555
37563
|
if (!adapter && target2.provider === "openai")
|
|
37556
37564
|
adapter = openai;
|
|
37557
37565
|
if (!adapter && target2.provider === "anthropic")
|
|
37558
|
-
adapter = (await import("./anthropic-
|
|
37566
|
+
adapter = (await import("./anthropic-TNR6QJGA.js")).anthropic;
|
|
37559
37567
|
if (!adapter)
|
|
37560
37568
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
37561
37569
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -37615,7 +37623,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
37615
37623
|
}, "complete")
|
|
37616
37624
|
}), "modelGateway");
|
|
37617
37625
|
|
|
37618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
37619
37627
|
var SECTION2 = "enrichment";
|
|
37620
37628
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
37621
37629
|
var DEFAULT_BASE_URLS = {
|
|
@@ -37690,7 +37698,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
37690
37698
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
37691
37699
|
}, "costOf");
|
|
37692
37700
|
|
|
37693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
37694
37702
|
var ENRICH_PER_RUN = 600;
|
|
37695
37703
|
var MAX_LINE = 400;
|
|
37696
37704
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -37766,7 +37774,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
37766
37774
|
};
|
|
37767
37775
|
}, "enrichmentState");
|
|
37768
37776
|
|
|
37769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
37770
37778
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
37771
37779
|
let root;
|
|
37772
37780
|
try {
|
|
@@ -37793,7 +37801,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
37793
37801
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
37794
37802
|
}, "titleTiers");
|
|
37795
37803
|
|
|
37796
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37804
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
37797
37805
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
37798
37806
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
37799
37807
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -38221,7 +38229,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
38221
38229
|
};
|
|
38222
38230
|
}, "searchNotesOf");
|
|
38223
38231
|
|
|
38224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
38225
38233
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
38226
38234
|
var iso3 = /* @__PURE__ */ __name((at3) => at3 === null ? null : new Date(at3).toISOString(), "iso");
|
|
38227
38235
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -38339,7 +38347,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
38339
38347
|
};
|
|
38340
38348
|
}, "searchEvents");
|
|
38341
38349
|
|
|
38342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38350
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
38343
38351
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
38344
38352
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
38345
38353
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -38369,7 +38377,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
38369
38377
|
};
|
|
38370
38378
|
}, "searchBusiness");
|
|
38371
38379
|
|
|
38372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
38373
38381
|
var MOST_HITS_PER_MEETING = 3;
|
|
38374
38382
|
var PAGE_ROWS = 200;
|
|
38375
38383
|
var MOST_PAGES2 = 25;
|
|
@@ -38597,7 +38605,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
38597
38605
|
foundBy: ["title"]
|
|
38598
38606
|
}), "titleItem");
|
|
38599
38607
|
|
|
38600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
38601
38609
|
var SECTION3 = "search_harder";
|
|
38602
38610
|
var HARDER_MODELS = {
|
|
38603
38611
|
anthropic: "claude-haiku-5-5",
|
|
@@ -38843,7 +38851,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
38843
38851
|
};
|
|
38844
38852
|
}, "reorderHarder");
|
|
38845
38853
|
|
|
38846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
38847
38855
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
38848
38856
|
var refusal2 = /* @__PURE__ */ __name((error, text3) => {
|
|
38849
38857
|
const { reason, span } = error.details ?? {};
|
|
@@ -39288,7 +39296,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
39288
39296
|
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);
|
|
39289
39297
|
}, "insidePeriodFirst");
|
|
39290
39298
|
|
|
39291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
39292
39300
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
39293
39301
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
39294
39302
|
var DEFAULT_BACKEND = "both";
|
|
@@ -39479,8 +39487,12 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
39479
39487
|
return { report, sources };
|
|
39480
39488
|
}, "searchServer");
|
|
39481
39489
|
|
|
39482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
39483
39491
|
var DELETE_AT_ONCE = 10;
|
|
39492
|
+
var atOnce = /* @__PURE__ */ __name((ids) => {
|
|
39493
|
+
if (ids.length > DELETE_AT_ONCE)
|
|
39494
|
+
throw new CliError("validation_error", `at most ${DELETE_AT_ONCE} messages at once, got ${ids.length}`);
|
|
39495
|
+
}, "atOnce");
|
|
39484
39496
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
39485
39497
|
const files = fileLinks(attachments);
|
|
39486
39498
|
return files.length > 0 ? { files } : {};
|
|
@@ -39516,6 +39528,15 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
|
39516
39528
|
...query.saved === void 0 ? {} : { saved: query.saved }
|
|
39517
39529
|
}).catch(() => void 0);
|
|
39518
39530
|
}, "remember");
|
|
39531
|
+
const waiting = /* @__PURE__ */ __name(async (connection, chat, ids) => {
|
|
39532
|
+
const list3 = capability(connection, "scheduled", "list scheduled messages");
|
|
39533
|
+
const { id: chatId } = await connection.resolve(chat);
|
|
39534
|
+
const queued = await list3(chatId);
|
|
39535
|
+
const unknown3 = ids.filter((id3) => !queued.some((message) => message.id === id3));
|
|
39536
|
+
if (unknown3.length > 0)
|
|
39537
|
+
throw new CliError("not_found", `nothing scheduled in this chat has the id ${unknown3.join(", ")} \u2014 a scheduled message has an id of its own, not the one of a sent message; \`messages scheduled ${chat}\` lists them`, { sent: false });
|
|
39538
|
+
return { chatId, found: ids.map((id3) => queued.find((message) => message.id === id3)) };
|
|
39539
|
+
}, "waiting");
|
|
39519
39540
|
const pinning = /* @__PURE__ */ __name(async ({ chat, message }, pinned, asked, requested) => {
|
|
39520
39541
|
const allowed = deps.messenger.pinDurations;
|
|
39521
39542
|
if (requested !== void 0 && !allowed?.includes(requested))
|
|
@@ -39821,6 +39842,53 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
|
39821
39842
|
await guardedWrite(guard, { operationId, chatId, kind: "delete", count: messages.length, forEveryone }, () => remove(chatId, messages, { forEveryone }));
|
|
39822
39843
|
return { operationId, chatId, deleted: messages, forEveryone };
|
|
39823
39844
|
}, "delete"),
|
|
39845
|
+
cancelScheduled: /* @__PURE__ */ __name(async ({ chat, ids }) => {
|
|
39846
|
+
atOnce(ids);
|
|
39847
|
+
const connection = await deps.connection();
|
|
39848
|
+
const cancel = capability(connection, "cancelScheduled", "cancel a scheduled message");
|
|
39849
|
+
const { chatId } = await waiting(connection, chat, ids);
|
|
39850
|
+
const operationId = newOperationId();
|
|
39851
|
+
await guardedWrite(guard, { operationId, chatId, kind: "delete", key: "messages.scheduled.cancel", count: ids.length }, () => cancel(chatId, ids));
|
|
39852
|
+
return { operationId, chatId, cancelled: ids };
|
|
39853
|
+
}, "cancelScheduled"),
|
|
39854
|
+
editScheduled: /* @__PURE__ */ __name(async ({ chat, id: id3, text: typed, markdown, html: html2, at: at3 }) => {
|
|
39855
|
+
if (typed === void 0 && at3 === void 0)
|
|
39856
|
+
throw new CliError("validation_error", "nothing to change \u2014 give the new text, --at-time, or both");
|
|
39857
|
+
const connection = await deps.connection();
|
|
39858
|
+
const edit = capability(connection, "editScheduled", "edit a scheduled message");
|
|
39859
|
+
const prepared = typed === void 0 ? void 0 : await formatted(connection, typed, { markdown, html: html2 });
|
|
39860
|
+
const change = prepared && (deps.agentText ? visibleFormattedText(prepared) : prepared);
|
|
39861
|
+
if (change !== void 0 && change.text.trim() === "")
|
|
39862
|
+
throw new CliError("validation_error", "no new text \u2014 the marks leave nothing");
|
|
39863
|
+
const { chatId, found: [current] } = await waiting(connection, chat, [id3]);
|
|
39864
|
+
const scheduledFor = at3 ?? current?.scheduledFor ?? current?.timestamp;
|
|
39865
|
+
if (scheduledFor === void 0)
|
|
39866
|
+
throw new CliError("invalid_response", "the scheduled message has no time");
|
|
39867
|
+
const operationId = newOperationId();
|
|
39868
|
+
const message = await guardedWrite(guard, {
|
|
39869
|
+
operationId,
|
|
39870
|
+
chatId,
|
|
39871
|
+
kind: "edit",
|
|
39872
|
+
key: "messages.scheduled.edit",
|
|
39873
|
+
messageId: id3,
|
|
39874
|
+
scheduledFor,
|
|
39875
|
+
...change === void 0 ? {} : { length: change.text.length }
|
|
39876
|
+
}, () => edit(chatId, id3, {
|
|
39877
|
+
at: scheduledFor,
|
|
39878
|
+
...change === void 0 ? {} : { text: change.text },
|
|
39879
|
+
...change === void 0 || change.spans.length === 0 ? {} : { formatting: change.spans }
|
|
39880
|
+
}));
|
|
39881
|
+
return { operationId, message, scheduledFor };
|
|
39882
|
+
}, "editScheduled"),
|
|
39883
|
+
sendScheduled: /* @__PURE__ */ __name(async ({ chat, ids }) => {
|
|
39884
|
+
atOnce(ids);
|
|
39885
|
+
const connection = await deps.connection();
|
|
39886
|
+
const send = capability(connection, "sendScheduled", "send a scheduled message now");
|
|
39887
|
+
const { chatId } = await waiting(connection, chat, ids);
|
|
39888
|
+
const operationId = newOperationId();
|
|
39889
|
+
const messages = await guardedWrite(guard, { operationId, chatId, kind: "message", key: "messages.scheduled.send", count: ids.length }, () => send(chatId, ids));
|
|
39890
|
+
return { operationId, chatId, sent: ids, messages };
|
|
39891
|
+
}, "sendScheduled"),
|
|
39824
39892
|
forward: /* @__PURE__ */ __name(async ({ chat, message, to, silent, sendId, sendAs, threadId: typedThread }) => {
|
|
39825
39893
|
const connection = await deps.connection();
|
|
39826
39894
|
const forward = capability(connection, "forward", "forward a message");
|
|
@@ -39919,7 +39987,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
39919
39987
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
39920
39988
|
}, "checkMediaOptions");
|
|
39921
39989
|
|
|
39922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
39923
39991
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
39924
39992
|
var RULES2 = {
|
|
39925
39993
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -39934,7 +40002,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
39934
40002
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
39935
40003
|
}), "classifyChannel");
|
|
39936
40004
|
|
|
39937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
39938
40006
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
39939
40007
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
39940
40008
|
const store = await deps.store();
|
|
@@ -40020,7 +40088,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
40020
40088
|
};
|
|
40021
40089
|
}, "metadataService");
|
|
40022
40090
|
|
|
40023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
40024
40092
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
40025
40093
|
var LINK2 = /https?:\/\/\S+/i;
|
|
40026
40094
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -40208,7 +40276,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
40208
40276
|
}, "nextPoint");
|
|
40209
40277
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
40210
40278
|
|
|
40211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
40212
40280
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync9 } from "node:fs";
|
|
40213
40281
|
import { join as join18 } from "node:path";
|
|
40214
40282
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -40360,7 +40428,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
40360
40428
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
40361
40429
|
}, "assign");
|
|
40362
40430
|
|
|
40363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40431
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
40364
40432
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
40365
40433
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
40366
40434
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -40397,7 +40465,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
40397
40465
|
return { chatId, rows, notes };
|
|
40398
40466
|
}, "moderateWith");
|
|
40399
40467
|
|
|
40400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
40401
40469
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
40402
40470
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
40403
40471
|
const env = deps.env ?? process.env;
|
|
@@ -40482,7 +40550,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
40482
40550
|
}, "removePerson")
|
|
40483
40551
|
}), "moderatorOf");
|
|
40484
40552
|
|
|
40485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
40486
40554
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
40487
40555
|
id: note.id,
|
|
40488
40556
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -40526,7 +40594,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
40526
40594
|
};
|
|
40527
40595
|
}, "privatePeopleService");
|
|
40528
40596
|
|
|
40529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
40530
40598
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
40531
40599
|
total: 0,
|
|
40532
40600
|
population: 0,
|
|
@@ -40782,7 +40850,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
40782
40850
|
}, "evidence")
|
|
40783
40851
|
}), "rankingsService");
|
|
40784
40852
|
|
|
40785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
40786
40854
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
40787
40855
|
var WAITING_TAIL = 100;
|
|
40788
40856
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -40916,7 +40984,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
40916
40984
|
};
|
|
40917
40985
|
}, "replyStatsService");
|
|
40918
40986
|
|
|
40919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
40920
40988
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
40921
40989
|
id: one.id,
|
|
40922
40990
|
name: one.name,
|
|
@@ -41042,7 +41110,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
41042
41110
|
};
|
|
41043
41111
|
}, "searchesService");
|
|
41044
41112
|
|
|
41045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
41046
41114
|
var TAGGING_QUERY = {
|
|
41047
41115
|
entity: "tagging",
|
|
41048
41116
|
backend: "sql",
|
|
@@ -41126,7 +41194,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
41126
41194
|
};
|
|
41127
41195
|
}, "tagsService");
|
|
41128
41196
|
|
|
41129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41197
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
41130
41198
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
41131
41199
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
41132
41200
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -41325,7 +41393,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
41325
41393
|
};
|
|
41326
41394
|
}, "topicsService");
|
|
41327
41395
|
|
|
41328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
41329
41397
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
41330
41398
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
41331
41399
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -41399,7 +41467,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
41399
41467
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
41400
41468
|
}, "prepareEvidencePacket");
|
|
41401
41469
|
|
|
41402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
41403
41471
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
41404
41472
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
41405
41473
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -41419,7 +41487,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
41419
41487
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
41420
41488
|
}, "readEvidencePacket");
|
|
41421
41489
|
|
|
41422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
41423
41491
|
var scopeKeys = [
|
|
41424
41492
|
"accountId",
|
|
41425
41493
|
"meetingId",
|
|
@@ -41441,7 +41509,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
41441
41509
|
"maxVocabularyReadBytes"
|
|
41442
41510
|
]);
|
|
41443
41511
|
|
|
41444
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
41445
41513
|
import { createHash as createHash12 } from "node:crypto";
|
|
41446
41514
|
import { existsSync as existsSync3 } from "node:fs";
|
|
41447
41515
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -41572,14 +41640,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
41572
41640
|
return { ...checked2.output, custom: true };
|
|
41573
41641
|
}, "addCustomTextModel");
|
|
41574
41642
|
|
|
41575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
41576
41644
|
var DAY8 = 864e5;
|
|
41577
41645
|
var SLOTS_EVERY = 7 * DAY8;
|
|
41578
41646
|
|
|
41579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
41580
41648
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
41581
41649
|
|
|
41582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
41583
41651
|
var LIST = "events list";
|
|
41584
41652
|
var EVENT_TYPES = [
|
|
41585
41653
|
"default",
|
|
@@ -41638,7 +41706,7 @@ var EVENTS_QUERY = {
|
|
|
41638
41706
|
} : field)
|
|
41639
41707
|
};
|
|
41640
41708
|
|
|
41641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
41642
41710
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
41643
41711
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
41644
41712
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -41656,7 +41724,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
41656
41724
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
41657
41725
|
};
|
|
41658
41726
|
|
|
41659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
41660
41728
|
var communicationFields = {
|
|
41661
41729
|
sources: pipe(array(strictObject({
|
|
41662
41730
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -41688,7 +41756,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
41688
41756
|
return { ...input, after, before };
|
|
41689
41757
|
}, "communicationRequest");
|
|
41690
41758
|
|
|
41691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
41692
41760
|
var MEETING_PREPARATION_LIMITS = {
|
|
41693
41761
|
meetings: { min: 1, max: 20, default: 5 },
|
|
41694
41762
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -41761,7 +41829,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
41761
41829
|
};
|
|
41762
41830
|
}, "validateMeetingPreparationRequest");
|
|
41763
41831
|
|
|
41764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
41765
41833
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
41766
41834
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
41767
41835
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -41809,7 +41877,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
41809
41877
|
}
|
|
41810
41878
|
}, "validatePreparationCommunications");
|
|
41811
41879
|
|
|
41812
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
41813
41881
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
41814
41882
|
const installer = ports.installer();
|
|
41815
41883
|
const argv = updateCommand(installer, packageName);
|
|
@@ -41874,7 +41942,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
41874
41942
|
return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
|
|
41875
41943
|
}, "dayAfter");
|
|
41876
41944
|
|
|
41877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
41878
41946
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
41879
41947
|
const pictures = picturesService(deps);
|
|
41880
41948
|
const base = {
|
|
@@ -42037,6 +42105,7 @@ export {
|
|
|
42037
42105
|
manifestBaseUrl,
|
|
42038
42106
|
siteValue,
|
|
42039
42107
|
signRequest,
|
|
42108
|
+
underBase,
|
|
42040
42109
|
parameterValue,
|
|
42041
42110
|
nextPage,
|
|
42042
42111
|
crmSourceFromManifest,
|