@wirecat/attio-cli 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-63P427ER.js +37 -0
- package/dist/bundle/{all-profiles-7GUR2SM3.js → all-profiles-KCZGH7JK.js} +10 -10
- package/dist/bundle/{anthropic-4CN3TJYB.js → anthropic-4HCGQIHA.js} +5 -5
- package/dist/bundle/{app-server-HSQEPWRY.js → app-server-VSYG36ER.js} +61 -61
- package/dist/bundle/attio.js +11 -11
- package/dist/bundle/{bun-DTF5MNDQ.js → bun-CZK3ZADI.js} +2 -2
- package/dist/bundle/{bun-sqlite-NFVPKLZD.js → bun-sqlite-CM5FSNH3.js} +6 -6
- package/dist/bundle/{chunk-AO6N3HLS.js → chunk-23POG3B3.js} +3 -3
- package/dist/bundle/{chunk-SZ76WGXS.js → chunk-2ILCSLXY.js} +8 -8
- package/dist/bundle/{chunk-SVUQKDBZ.js → chunk-2SVDLRLQ.js} +13 -13
- package/dist/bundle/{chunk-LC4KJJZ2.js → chunk-32BIODCI.js} +3 -3
- package/dist/bundle/{chunk-RPL3VL7F.js → chunk-4BQDHDZA.js} +2 -2
- package/dist/bundle/{chunk-H55WJPRM.js → chunk-4E4IGABE.js} +2 -2
- package/dist/bundle/{chunk-HS7TLG6U.js → chunk-4LEB7SUS.js} +1 -1
- package/dist/bundle/{chunk-NK32ZZRV.js → chunk-52GTOWNB.js} +7 -7
- package/dist/bundle/{chunk-D3BQH24W.js → chunk-55CDR7VJ.js} +56 -56
- package/dist/bundle/{chunk-CWLNO3ZU.js → chunk-5R255HLF.js} +1 -1
- package/dist/bundle/{chunk-OOS57MMX.js → chunk-5WZBGDPL.js} +7 -7
- package/dist/bundle/{chunk-SEZLN6OX.js → chunk-5ZNVTVDU.js} +1 -1
- package/dist/bundle/{chunk-UXT4532H.js → chunk-6WVUBU7T.js} +7 -7
- package/dist/bundle/{chunk-WYPHP2AM.js → chunk-7XSJ6LTE.js} +3 -3
- package/dist/bundle/{chunk-N7EFLZNW.js → chunk-A3Y5GPG3.js} +175 -158
- package/dist/bundle/{chunk-6MKREZYW.js → chunk-AJT4BERP.js} +3 -3
- package/dist/bundle/{chunk-GFKYZJN4.js → chunk-AV7762PN.js} +1 -1
- package/dist/bundle/{chunk-3L3ZRFKH.js → chunk-BFESDJPU.js} +1 -1
- package/dist/bundle/{chunk-GS3LY5S5.js → chunk-C4DJ4OTP.js} +7 -7
- package/dist/bundle/{chunk-V6RIJ22V.js → chunk-CSKKZTWI.js} +14 -14
- package/dist/bundle/{chunk-CEY7LGCR.js → chunk-CYAWDFBI.js} +4 -4
- package/dist/bundle/{chunk-GJFFI6OA.js → chunk-CYF6ECG7.js} +1 -1
- package/dist/bundle/{chunk-4IASSY4K.js → chunk-DDFQEOLX.js} +8 -8
- package/dist/bundle/{chunk-PBUBZNIA.js → chunk-DJCGJRAD.js} +12 -12
- package/dist/bundle/{chunk-4A5E32BA.js → chunk-EAWMBNAO.js} +972 -547
- package/dist/bundle/{chunk-SRU4EQYO.js → chunk-EGZ6N56Z.js} +2 -2
- package/dist/bundle/{chunk-IWC3ECVF.js → chunk-EO3X3QWY.js} +3 -3
- package/dist/bundle/{chunk-Y6QUAEEJ.js → chunk-FNIYIYDK.js} +17 -17
- package/dist/bundle/{chunk-MCNZCQ6P.js → chunk-HTQ5HUXV.js} +61 -61
- package/dist/bundle/{chunk-6GVBDIY7.js → chunk-INCLKCAJ.js} +3 -3
- package/dist/bundle/{chunk-WAOJEEGU.js → chunk-ISNUT525.js} +3 -3
- package/dist/bundle/{chunk-IFDR5RYE.js → chunk-JAUTKJYJ.js} +2 -2
- package/dist/bundle/{chunk-HVLKBGYN.js → chunk-JLFXUXSQ.js} +5 -5
- package/dist/bundle/{chunk-77PCNTJY.js → chunk-K34B37AP.js} +1 -1
- package/dist/bundle/{chunk-73D7FXGY.js → chunk-KK3IESFZ.js} +62 -34
- package/dist/bundle/{chunk-PTBGWRI4.js → chunk-KYAJ5AVG.js} +5 -5
- package/dist/bundle/{chunk-NTW3Z4ZC.js → chunk-LJLUYRPY.js} +4 -4
- package/dist/bundle/{chunk-ZAZUNEZB.js → chunk-LTGWE5L6.js} +1 -1
- package/dist/bundle/{chunk-EBVOFSWE.js → chunk-MOUF6JHB.js} +1 -1
- package/dist/bundle/{chunk-2SM6G7CP.js → chunk-MSASR6MQ.js} +4 -4
- package/dist/bundle/{chunk-6UVYOUKX.js → chunk-MWFJX3K6.js} +1 -1
- package/dist/bundle/{chunk-ECPUCPPX.js → chunk-N64IK3XS.js} +7 -7
- package/dist/bundle/{chunk-LX6IMPKX.js → chunk-NIV4S25C.js} +556 -312
- package/dist/bundle/{chunk-GMRYIIGP.js → chunk-NMKAEONQ.js} +6 -6
- package/dist/bundle/{chunk-UNI5OO3J.js → chunk-OKK2CBVW.js} +13 -13
- package/dist/bundle/{chunk-YERPSSUC.js → chunk-PO6DVZUY.js} +2 -2
- package/dist/bundle/{chunk-CV65DYDO.js → chunk-PTTSHIYR.js} +26 -25
- package/dist/bundle/{chunk-FJUBFNIH.js → chunk-RGFBK5DJ.js} +12 -12
- package/dist/bundle/{chunk-UN63OIS5.js → chunk-RMOSNURU.js} +3 -3
- package/dist/bundle/{chunk-PX5XI2UR.js → chunk-SCBLAAZU.js} +19 -19
- package/dist/bundle/{chunk-ZSO3T2W4.js → chunk-SQMN3CME.js} +4 -4
- package/dist/bundle/{chunk-3JZNNESS.js → chunk-TSHMRHL6.js} +2 -2
- package/dist/bundle/{chunk-KRCE3EBI.js → chunk-TSL3PZAZ.js} +2 -2
- package/dist/bundle/{chunk-WE6UGOBO.js → chunk-TU4U3YEM.js} +1 -1
- package/dist/bundle/{chunk-3HFUSESO.js → chunk-U3Y2AC2K.js} +3 -3
- package/dist/bundle/{chunk-KP7U75NI.js → chunk-UMJ7OKJD.js} +6 -6
- package/dist/bundle/{chunk-3PPTBPRU.js → chunk-UZW73WTM.js} +62 -45
- package/dist/bundle/{chunk-55OZY4JK.js → chunk-VHPNTMJJ.js} +1 -1
- package/dist/bundle/{chunk-4GGTI6J2.js → chunk-WF7TKMZ7.js} +8 -8
- package/dist/bundle/{chunk-2PDJCM3U.js → chunk-WHA23FJC.js} +32 -14
- package/dist/bundle/{chunk-SDZJIDMF.js → chunk-WPOOZGQ7.js} +10 -10
- package/dist/bundle/{chunk-2KP5LRCK.js → chunk-X3PQFXYL.js} +4 -4
- package/dist/bundle/{chunk-J3KE3D3L.js → chunk-XSHMRXOW.js} +6 -6
- package/dist/bundle/{chunk-SNUCQQQU.js → chunk-Y4AOEDGO.js} +8 -8
- package/dist/bundle/{chunk-NE65S7F6.js → chunk-YBCGG6JY.js} +3 -3
- package/dist/bundle/{chunk-6GLKKI5B.js → chunk-YC3F3RCL.js} +2 -2
- package/dist/bundle/{chunk-ROJF7524.js → chunk-YFAATLLR.js} +8 -8
- package/dist/bundle/{chunk-SIYP5IZG.js → chunk-YGPZCVBI.js} +6 -6
- package/dist/bundle/{chunk-IQSXBZA7.js → chunk-YJKP6UZC.js} +1 -1
- package/dist/bundle/{chunk-PCYDTU6N.js → chunk-YN5K2P7M.js} +1 -1
- package/dist/bundle/{chunk-4BHD26FI.js → chunk-ZGFRTWSW.js} +34 -34
- package/dist/bundle/{chunk-2AVWKAHP.js → chunk-ZOVX5VVZ.js} +1 -1
- package/dist/bundle/command-contract-JZGX4E3W.js +37 -0
- package/dist/bundle/{command-server-entry-VTYSKZSD.js → command-server-entry-FOFPJGYW.js} +25 -25
- package/dist/bundle/{decode-EJCGQVLX.js → decode-2W6JJN3B.js} +5 -5
- package/dist/bundle/{dispatch-YGAG263C.js → dispatch-ZRVKJENQ.js} +8 -8
- package/dist/bundle/{echarts-LHBWIDKI.js → echarts-R4BLGOSP.js} +2 -2
- package/dist/bundle/{embed-QKVPSZLS.js → embed-DIFO7RH4.js} +6 -6
- package/dist/bundle/{embedder-NYO6EOFU.js → embedder-S5FKW4XZ.js} +9 -9
- package/dist/bundle/{failure-SE7VJEXI.js → failure-C2B7PYPJ.js} +2 -2
- package/dist/bundle/{first-run-P5QA7RNU.js → first-run-RNGP4IWU.js} +12 -12
- package/dist/bundle/first-screen-K6YMX3G5.js +37 -0
- package/dist/bundle/{instructions-T6LGIEPV.js → instructions-F22KNH4O.js} +1 -1
- package/dist/bundle/{mcp-PVQZS6IH.js → mcp-VNOYBWW2.js} +2 -2
- package/dist/bundle/meeting-combined-HX3LC5FD.js +24 -0
- package/dist/bundle/{meeting-model-7UBHXIVW.js → meeting-model-P34GVZRK.js} +11 -11
- package/dist/bundle/{meeting-semantic-RXCWAIZZ.js → meeting-semantic-RC25X3UB.js} +6 -6
- package/dist/bundle/{node-UBG6VKKA.js → node-SF2NI2UT.js} +2 -2
- package/dist/bundle/{node-sqlite-PYNAIHR6.js → node-sqlite-WH3MF6PF.js} +7 -7
- package/dist/bundle/{oauth-BLOW6XVT.js → oauth-EWHT3YJ4.js} +7 -7
- package/dist/bundle/{open-VWILPEZ2.js → open-LHEJSQCI.js} +5 -5
- package/dist/bundle/{openai-N37NPTEE.js → openai-DDXBF7KV.js} +15 -15
- package/dist/bundle/{process-DMYM7PNQ.js → process-TEQQZ3C5.js} +1 -1
- package/dist/bundle/{program-5QZLUWS4.js → program-IW3E56C2.js} +587 -437
- package/dist/bundle/{prompt-EJHIAH4K.js → prompt-6OEYPNAI.js} +5 -5
- package/dist/bundle/{recognize-67LER7ZN.js → recognize-5CRXQMAQ.js} +4 -4
- package/dist/bundle/{remote-BONPKWRO.js → remote-UZUYKGYQ.js} +9 -9
- package/dist/bundle/{rerank-FK2AFC3Y.js → rerank-IQ6GPSJ6.js} +7 -7
- package/dist/bundle/{schemas-4E76I6ME.js → schemas-7JX36UC7.js} +1 -1
- package/dist/bundle/{serve-ZIXWKUE3.js → serve-63YMTENV.js} +9 -9
- package/dist/bundle/server-LKXXSTXK.js +79 -0
- package/dist/bundle/{server-4RX3LBCA.js → server-WQUM4JX4.js} +53 -53
- package/dist/bundle/{sqlite-runtime-WDXPYP7C.js → sqlite-runtime-UO32UZHC.js} +6 -6
- package/dist/bundle/{state-NE7WPOBK.js → state-XSRJFYSU.js} +6 -6
- package/dist/bundle/{store-2LX2ZQY5.js → store-A2J7I2NU.js} +18 -18
- package/dist/bundle/{store-PUAKYH6Z.js → store-QB5FEGT4.js} +20 -20
- package/dist/bundle/store-maintenance-command-TOLBEUMR.js +66 -0
- package/dist/bundle/surface-NURI2TAG.js +65 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +10 -0
- package/dist/hooks.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-HM6ST5HY.js +0 -37
- package/dist/bundle/command-contract-XZKDRLEC.js +0 -37
- package/dist/bundle/first-screen-EUIV6PVE.js +0 -37
- package/dist/bundle/meeting-combined-GOBZBEX2.js +0 -24
- package/dist/bundle/server-RL6NIURH.js +0 -79
- package/dist/bundle/store-maintenance-command-CSYN4LXT.js +0 -66
- package/dist/bundle/surface-HJIDG2KX.js +0 -65
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2SVDLRLQ.js";
|
|
12
12
|
import {
|
|
13
13
|
WIRECAT_TOOLS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZOVX5VVZ.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-INCLKCAJ.js";
|
|
19
19
|
import {
|
|
20
20
|
LIST_QUERY_GUIDE,
|
|
21
21
|
capability,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
termField,
|
|
26
26
|
timeBounds,
|
|
27
27
|
withQuery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OKK2CBVW.js";
|
|
29
29
|
import {
|
|
30
30
|
EmptyAnswer,
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
range,
|
|
35
35
|
systemFor,
|
|
36
36
|
validateImages
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-U3Y2AC2K.js";
|
|
38
38
|
import {
|
|
39
39
|
anyOfTerms,
|
|
40
40
|
isFunctionWord,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
questionText,
|
|
46
46
|
resolveMeetingSelection,
|
|
47
47
|
words
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WPOOZGQ7.js";
|
|
49
49
|
import {
|
|
50
50
|
AUTHORITY_KEY,
|
|
51
51
|
CEILING_KEY,
|
|
@@ -100,11 +100,11 @@ import {
|
|
|
100
100
|
stops,
|
|
101
101
|
tagging,
|
|
102
102
|
task
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-A3Y5GPG3.js";
|
|
104
104
|
import {
|
|
105
105
|
providerErrorKey,
|
|
106
106
|
secretInput
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5WZBGDPL.js";
|
|
108
108
|
import {
|
|
109
109
|
CustomTextModelShape,
|
|
110
110
|
DEFAULT_RERANK_MODEL,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
textModels,
|
|
119
119
|
vectorModelKey,
|
|
120
120
|
writeTextModelsSection
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-KYAJ5AVG.js";
|
|
122
122
|
import {
|
|
123
123
|
AGENDA_COLUMNS,
|
|
124
124
|
BUSINESS_FIND_MAX,
|
|
@@ -190,19 +190,20 @@ import {
|
|
|
190
190
|
rankingQuestion,
|
|
191
191
|
seenBy,
|
|
192
192
|
threadConversation,
|
|
193
|
+
trackerBodyOf,
|
|
193
194
|
trackerTitleOf,
|
|
194
195
|
withoutField
|
|
195
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-EAWMBNAO.js";
|
|
196
197
|
import {
|
|
197
198
|
DEFAULT_STEMMERS,
|
|
198
199
|
createStemmer,
|
|
199
200
|
cutsDeep
|
|
200
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-2ILCSLXY.js";
|
|
201
202
|
import {
|
|
202
203
|
MINUTE,
|
|
203
204
|
YEAR,
|
|
204
205
|
aheadOf
|
|
205
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-7XSJ6LTE.js";
|
|
206
207
|
import {
|
|
207
208
|
FIELD_VERSION,
|
|
208
209
|
MESSAGE_PARSING,
|
|
@@ -219,11 +220,11 @@ import {
|
|
|
219
220
|
searchError,
|
|
220
221
|
validateAst,
|
|
221
222
|
validateFields
|
|
222
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-C4DJ4OTP.js";
|
|
223
224
|
import {
|
|
224
225
|
fold,
|
|
225
226
|
normalize
|
|
226
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-TU4U3YEM.js";
|
|
227
228
|
import {
|
|
228
229
|
CRM_KINDS,
|
|
229
230
|
DEAL_KINDS,
|
|
@@ -235,6 +236,7 @@ import {
|
|
|
235
236
|
TASK_STATES,
|
|
236
237
|
UNKNOWN_PROVIDER,
|
|
237
238
|
accountsOfList,
|
|
239
|
+
alsoListedByKey,
|
|
238
240
|
createTaskService,
|
|
239
241
|
currencyOf,
|
|
240
242
|
currentAttempt,
|
|
@@ -244,6 +246,7 @@ import {
|
|
|
244
246
|
formatLocator,
|
|
245
247
|
formatReference,
|
|
246
248
|
fromLogAttributes,
|
|
249
|
+
hasGlobalItemIds,
|
|
247
250
|
holdsKind,
|
|
248
251
|
holdsKindOf,
|
|
249
252
|
inSource,
|
|
@@ -273,14 +276,14 @@ import {
|
|
|
273
276
|
sourceOf3 as sourceOf2,
|
|
274
277
|
typedCommand,
|
|
275
278
|
withAttempt
|
|
276
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-UZW73WTM.js";
|
|
277
280
|
import {
|
|
278
281
|
isCliFailure,
|
|
279
282
|
sqliteCode
|
|
280
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-EO3X3QWY.js";
|
|
281
284
|
import {
|
|
282
285
|
normalizeTag
|
|
283
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-TSL3PZAZ.js";
|
|
284
287
|
import {
|
|
285
288
|
OPERATORS_BY_TYPE,
|
|
286
289
|
READ_BUDGET_EXCEEDED,
|
|
@@ -304,12 +307,12 @@ import {
|
|
|
304
307
|
validateQuery,
|
|
305
308
|
walkQuery,
|
|
306
309
|
windowOf
|
|
307
|
-
} from "./chunk-
|
|
310
|
+
} from "./chunk-HTQ5HUXV.js";
|
|
308
311
|
import {
|
|
309
312
|
localOnly,
|
|
310
313
|
refuseOffComputer,
|
|
311
314
|
remoteKey
|
|
312
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-YFAATLLR.js";
|
|
313
316
|
import {
|
|
314
317
|
PLAIN_HTTP_REFUSED,
|
|
315
318
|
endpoint,
|
|
@@ -320,14 +323,14 @@ import {
|
|
|
320
323
|
providerWaitMs,
|
|
321
324
|
readJsonResponse,
|
|
322
325
|
statusToCode
|
|
323
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-N64IK3XS.js";
|
|
324
327
|
import {
|
|
325
328
|
DEFAULT_TASK_CATEGORIES,
|
|
326
329
|
FALLBACK_CATEGORY,
|
|
327
330
|
readSharedSection,
|
|
328
331
|
sharedConfigPath,
|
|
329
332
|
writeSharedSection
|
|
330
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-6WVUBU7T.js";
|
|
331
334
|
import {
|
|
332
335
|
Unzip,
|
|
333
336
|
UnzipInflate,
|
|
@@ -338,15 +341,15 @@ import {
|
|
|
338
341
|
placedText,
|
|
339
342
|
runEmbedders,
|
|
340
343
|
textModelsDirectory
|
|
341
|
-
} from "./chunk-
|
|
344
|
+
} from "./chunk-YGPZCVBI.js";
|
|
342
345
|
import {
|
|
343
346
|
installFiles,
|
|
344
347
|
megabytes
|
|
345
|
-
} from "./chunk-
|
|
348
|
+
} from "./chunk-MSASR6MQ.js";
|
|
346
349
|
import {
|
|
347
350
|
storePath,
|
|
348
351
|
wirecatDirectory
|
|
349
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-EGZ6N56Z.js";
|
|
350
353
|
import {
|
|
351
354
|
Credentials,
|
|
352
355
|
logRecordOf,
|
|
@@ -355,7 +358,7 @@ import {
|
|
|
355
358
|
resolvePaths,
|
|
356
359
|
wallClock,
|
|
357
360
|
writeSecurely
|
|
358
|
-
} from "./chunk-
|
|
361
|
+
} from "./chunk-SCBLAAZU.js";
|
|
359
362
|
import {
|
|
360
363
|
array,
|
|
361
364
|
boolean,
|
|
@@ -396,7 +399,7 @@ import {
|
|
|
396
399
|
isCliError,
|
|
397
400
|
singleLine,
|
|
398
401
|
visibleControls
|
|
399
|
-
} from "./chunk-
|
|
402
|
+
} from "./chunk-TSHMRHL6.js";
|
|
400
403
|
import {
|
|
401
404
|
__commonJS,
|
|
402
405
|
__name,
|
|
@@ -17012,10 +17015,10 @@ var require_lib3 = __commonJS({
|
|
|
17012
17015
|
}
|
|
17013
17016
|
});
|
|
17014
17017
|
|
|
17015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17016
17019
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17017
17020
|
|
|
17018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
17019
17022
|
var RULES_VERSION = 6;
|
|
17020
17023
|
var LOOK_BACK = 50;
|
|
17021
17024
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17113,7 +17116,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
17113
17116
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17114
17117
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
17115
17118
|
|
|
17116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17117
17120
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17118
17121
|
import { open, stat } from "node:fs/promises";
|
|
17119
17122
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17329,10 +17332,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read2) => {
|
|
|
17329
17332
|
return { name, source };
|
|
17330
17333
|
}, "readStickerFile");
|
|
17331
17334
|
|
|
17332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17333
17336
|
import { randomUUID } from "node:crypto";
|
|
17334
17337
|
|
|
17335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17338
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17336
17339
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17337
17340
|
import { dirname as dirname2, join } from "node:path";
|
|
17338
17341
|
var MOST_DEADLINES = 50;
|
|
@@ -17416,11 +17419,11 @@ var FloodMemory = class {
|
|
|
17416
17419
|
}
|
|
17417
17420
|
};
|
|
17418
17421
|
|
|
17419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17420
17423
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17421
17424
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17422
17425
|
|
|
17423
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17424
17427
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17425
17428
|
import { dirname as dirname3 } from "node:path";
|
|
17426
17429
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17487,7 +17490,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17487
17490
|
}
|
|
17488
17491
|
}, "lockTime");
|
|
17489
17492
|
|
|
17490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17493
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17491
17494
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17492
17495
|
var SendJournal = class {
|
|
17493
17496
|
static {
|
|
@@ -17564,7 +17567,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17564
17567
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17565
17568
|
}, "withSendId");
|
|
17566
17569
|
|
|
17567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17570
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17568
17571
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17569
17572
|
import { join as join3 } from "node:path";
|
|
17570
17573
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17676,7 +17679,7 @@ var RecipientList = class {
|
|
|
17676
17679
|
}
|
|
17677
17680
|
};
|
|
17678
17681
|
|
|
17679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17680
17683
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17681
17684
|
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");
|
|
17682
17685
|
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");
|
|
@@ -17864,7 +17867,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17864
17867
|
}), "guardFor");
|
|
17865
17868
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17866
17869
|
|
|
17867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
17868
17871
|
import { openSync as openSync2 } from "node:fs";
|
|
17869
17872
|
import { createInterface } from "node:readline";
|
|
17870
17873
|
import { ReadStream } from "node:tty";
|
|
@@ -17919,7 +17922,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
17919
17922
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
17920
17923
|
}, "terminalAsker");
|
|
17921
17924
|
|
|
17922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17923
17926
|
var COMMAND_NEEDS = {
|
|
17924
17927
|
"account update": ["updateProfile", "change the profile"],
|
|
17925
17928
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17984,7 +17987,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17984
17987
|
return group;
|
|
17985
17988
|
}, "hideNever");
|
|
17986
17989
|
|
|
17987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17988
17991
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17989
17992
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17990
17993
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18046,12 +18049,12 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18046
18049
|
}), "storedDeps");
|
|
18047
18050
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18048
18051
|
|
|
18049
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18050
18053
|
import { randomBytes } from "node:crypto";
|
|
18051
18054
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18052
18055
|
var newOperationId = newSendId;
|
|
18053
18056
|
|
|
18054
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18055
18058
|
var LINKS = /https?:\/\/\S+/g;
|
|
18056
18059
|
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");
|
|
18057
18060
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18081,7 +18084,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18081
18084
|
});
|
|
18082
18085
|
}, "questions");
|
|
18083
18086
|
|
|
18084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
18085
18088
|
var AUDIT_PAGE = 200;
|
|
18086
18089
|
var AUDIT_BUDGET = 10;
|
|
18087
18090
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18161,7 +18164,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18161
18164
|
return found;
|
|
18162
18165
|
}, "burstJoins");
|
|
18163
18166
|
|
|
18164
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18165
18168
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18166
18169
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18167
18170
|
const name = typed.trim().toLowerCase();
|
|
@@ -18218,7 +18221,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
18218
18221
|
return best.name;
|
|
18219
18222
|
}, "categorize");
|
|
18220
18223
|
|
|
18221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18222
18225
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18223
18226
|
var RULES_IN = {
|
|
18224
18227
|
dialog: "all",
|
|
@@ -18424,7 +18427,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18424
18427
|
return passes;
|
|
18425
18428
|
}, "applyTaskRulesToChats");
|
|
18426
18429
|
|
|
18427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18428
18431
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18429
18432
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18430
18433
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18447,10 +18450,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18447
18450
|
}
|
|
18448
18451
|
}, "patiently");
|
|
18449
18452
|
|
|
18450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18451
18454
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18452
18455
|
|
|
18453
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18454
18457
|
var REQUEST_MS = 400;
|
|
18455
18458
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18456
18459
|
const lowest = ranges[0];
|
|
@@ -18473,13 +18476,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18473
18476
|
};
|
|
18474
18477
|
}, "estimateBackfill");
|
|
18475
18478
|
|
|
18476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18477
18480
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18478
18481
|
...error,
|
|
18479
18482
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18480
18483
|
}), "withRecovery");
|
|
18481
18484
|
|
|
18482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18483
18486
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18484
18487
|
if (isCliFailure(error))
|
|
18485
18488
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18562,7 +18565,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18562
18565
|
};
|
|
18563
18566
|
}, "mergeBatches");
|
|
18564
18567
|
|
|
18565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18568
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
18566
18569
|
var ALL = "all";
|
|
18567
18570
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
18568
18571
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -18634,7 +18637,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
18634
18637
|
[ALL]: [ALL]
|
|
18635
18638
|
}), "groupEntries");
|
|
18636
18639
|
|
|
18637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18640
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
18638
18641
|
var NO_MAIL = "no_mail";
|
|
18639
18642
|
var MAIL = "email";
|
|
18640
18643
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -18659,10 +18662,10 @@ var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored, e
|
|
|
18659
18662
|
if (!members)
|
|
18660
18663
|
throw new CliError("permission_error", `this process is locked to group ${lock} (${envName(app, "GROUP_LOCK")}), which does not exist`);
|
|
18661
18664
|
const only = new Set([...members, OWNER_NOTES].map(keyOf));
|
|
18662
|
-
const listedAs = /* @__PURE__ */ __name((one) => isFolderProvider(one.provider) || isDocumentAccountProvider(one.provider) ? { provider: "notes", account: String(one.id) } : one, "listedAs");
|
|
18665
|
+
const listedAs = /* @__PURE__ */ __name((one) => isFolderProvider(one.provider) || isDocumentAccountProvider(one.provider) ? [{ provider: "notes", account: String(one.id) }, ...alsoListedByKey(one.provider) ? [one] : []] : [one], "listedAs");
|
|
18663
18666
|
return {
|
|
18664
18667
|
...context2,
|
|
18665
|
-
held: held.filter((one) => only.has(keyOf(
|
|
18668
|
+
held: held.filter((one) => listedAs(one).some((key) => only.has(keyOf(key)))),
|
|
18666
18669
|
groups: { [lock]: groups[lock] ?? [] },
|
|
18667
18670
|
membership: {
|
|
18668
18671
|
groups: { [lock]: members },
|
|
@@ -18708,7 +18711,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
18708
18711
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
18709
18712
|
}, "accountsOfKind");
|
|
18710
18713
|
|
|
18711
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18712
18715
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18713
18716
|
if (deps.reads !== "store")
|
|
18714
18717
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18909,7 +18912,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18909
18912
|
}, "chatsMatchingIn");
|
|
18910
18913
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18911
18914
|
|
|
18912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18913
18916
|
var CONTEXT_MESSAGES = 3;
|
|
18914
18917
|
var CONTEXT_MINUTES = 10;
|
|
18915
18918
|
var MAX_CHARS = 1200;
|
|
@@ -18933,12 +18936,12 @@ var context = {
|
|
|
18933
18936
|
}, "describe")
|
|
18934
18937
|
};
|
|
18935
18938
|
|
|
18936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18937
18940
|
var BUILT_INS = [context];
|
|
18938
18941
|
var providers = [...BUILT_INS];
|
|
18939
18942
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18940
18943
|
|
|
18941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18942
18945
|
var READ_PAGE = 5e3;
|
|
18943
18946
|
var CHAIN = 50;
|
|
18944
18947
|
var CONVERSATION_QUERY = {
|
|
@@ -19090,7 +19093,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19090
19093
|
return size2;
|
|
19091
19094
|
}, "sized");
|
|
19092
19095
|
|
|
19093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19094
19097
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19095
19098
|
var MESSAGE_PAGE = 5e3;
|
|
19096
19099
|
var PER_SESSION = 8;
|
|
@@ -19109,7 +19112,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19109
19112
|
price: remote.price,
|
|
19110
19113
|
installed: true,
|
|
19111
19114
|
perBatch: PER_REQUEST * concurrency,
|
|
19112
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19115
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-UZUYKGYQ.js")).openRemote(remote, apiKey, {
|
|
19113
19116
|
concurrency,
|
|
19114
19117
|
env: deps.env ?? process.env
|
|
19115
19118
|
}), "open")
|
|
@@ -19129,7 +19132,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19129
19132
|
if (!isTextModelInstalled(model, directory2))
|
|
19130
19133
|
throw notDownloaded(model.id);
|
|
19131
19134
|
if (apart) {
|
|
19132
|
-
const { openProcess } = await import("./process-
|
|
19135
|
+
const { openProcess } = await import("./process-TEQQZ3C5.js");
|
|
19133
19136
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19134
19137
|
}
|
|
19135
19138
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19418,7 +19421,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19418
19421
|
return { ...one, state };
|
|
19419
19422
|
}, "shaped");
|
|
19420
19423
|
|
|
19421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19422
19425
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19423
19426
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19424
19427
|
for (const [key, value, maximum] of [
|
|
@@ -19471,7 +19474,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19471
19474
|
}
|
|
19472
19475
|
}, "catchUpSearch");
|
|
19473
19476
|
|
|
19474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19477
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19475
19478
|
var pushed = /* @__PURE__ */ __name((deps, what2) => {
|
|
19476
19479
|
if (deps.reads === "store") {
|
|
19477
19480
|
throw new CliError("validation_error", `${what2} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19854,11 +19857,18 @@ var savedReplies = /* @__PURE__ */ __name(async (connection, store, account, cha
|
|
|
19854
19857
|
return 0;
|
|
19855
19858
|
const startedAt = Date.now();
|
|
19856
19859
|
const point = Number((await store.sync.syncState(account, threadsKey(chatId)))?.value);
|
|
19857
|
-
const
|
|
19858
|
-
|
|
19859
|
-
|
|
19860
|
+
const answer = await connection.threadReplies(chatId, Number.isFinite(point) ? { since: point } : {});
|
|
19861
|
+
const batches = Symbol.asyncIterator in answer ? answer : [answer];
|
|
19862
|
+
let saved = 0;
|
|
19863
|
+
for await (const replies of batches) {
|
|
19864
|
+
if (replies.length > 0)
|
|
19865
|
+
await store.messages.saveMessages(account, chatId, replies, { via: "history", seenAt: startedAt });
|
|
19866
|
+
saved += replies.length;
|
|
19867
|
+
if (stop.aborted)
|
|
19868
|
+
return saved;
|
|
19869
|
+
}
|
|
19860
19870
|
await store.sync.setSyncState(account, threadsKey(chatId), String(startedAt));
|
|
19861
|
-
return
|
|
19871
|
+
return saved;
|
|
19862
19872
|
}, "savedReplies");
|
|
19863
19873
|
var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTime, fallback) => {
|
|
19864
19874
|
if (byTime)
|
|
@@ -19867,7 +19877,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19867
19877
|
return message?.timestamp ?? fallback;
|
|
19868
19878
|
}, "timeOfKey");
|
|
19869
19879
|
|
|
19870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19871
19881
|
var DAY_MS = 864e5;
|
|
19872
19882
|
var NEW_DAYS = 30;
|
|
19873
19883
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19944,7 +19954,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19944
19954
|
};
|
|
19945
19955
|
}, "scorePerson");
|
|
19946
19956
|
|
|
19947
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19948
19958
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19949
19959
|
const controller = new AbortController();
|
|
19950
19960
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19960,7 +19970,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
19960
19970
|
}
|
|
19961
19971
|
}, "withTimeLimit");
|
|
19962
19972
|
|
|
19963
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19964
19974
|
var REGISTRIES = {
|
|
19965
19975
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19966
19976
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20047,7 +20057,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20047
20057
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20048
20058
|
})), "notCovered");
|
|
20049
20059
|
|
|
20050
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20051
20061
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20052
20062
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20053
20063
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20135,7 +20145,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20135
20145
|
};
|
|
20136
20146
|
}, "botCheckService");
|
|
20137
20147
|
|
|
20138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20139
20149
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20140
20150
|
if (value === void 0)
|
|
20141
20151
|
return void 0;
|
|
@@ -20145,7 +20155,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20145
20155
|
return id3;
|
|
20146
20156
|
}, "threadIdOf");
|
|
20147
20157
|
|
|
20148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20149
20159
|
var TOP_POSTS = 5;
|
|
20150
20160
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20151
20161
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20262,7 +20272,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20262
20272
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20263
20273
|
}, "median");
|
|
20264
20274
|
|
|
20265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20266
20276
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20267
20277
|
const events = [];
|
|
20268
20278
|
for (const stay of stays) {
|
|
@@ -20294,7 +20304,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20294
20304
|
return events.filter(({ at: at2 }) => Date.parse(at2) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20295
20305
|
}, "memberEvents");
|
|
20296
20306
|
|
|
20297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20298
20308
|
var EVENTS_DAYS = 7;
|
|
20299
20309
|
var TRACKED_DAYS = 30;
|
|
20300
20310
|
var STATS_PAGE = 1e3;
|
|
@@ -20589,7 +20599,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20589
20599
|
return members.length === 0 ? null : members;
|
|
20590
20600
|
}, "storedMembers");
|
|
20591
20601
|
|
|
20592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20602
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20593
20603
|
var INBOX_CHATS = 20;
|
|
20594
20604
|
var REVIEW_DAYS = 3;
|
|
20595
20605
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20597,7 +20607,8 @@ var reviewStart = /* @__PURE__ */ __name((now = Date.now()) => now - REVIEW_DAYS
|
|
|
20597
20607
|
var byRecency = /* @__PURE__ */ __name((chats) => chats.toSorted((a, b) => Date.parse(b.lastMessageAt ?? "") - Date.parse(a.lastMessageAt ?? "")), "byRecency");
|
|
20598
20608
|
var isQuiet = /* @__PURE__ */ __name((chat) => (chat.muted === true || chat.archived === true) && (chat.unreadMentions ?? 0) === 0 && chat.markedUnread !== true, "isQuiet");
|
|
20599
20609
|
var heard = /* @__PURE__ */ __name((chats, all) => all ? { heard: chats, quiet: 0 } : { heard: chats.filter((chat) => !isQuiet(chat)), quiet: chats.filter(isQuiet).length }, "heard");
|
|
20600
|
-
var everyChat = /* @__PURE__ */ __name((adapter) => adapter.chats({ offset: 0 }), "everyChat");
|
|
20610
|
+
var everyChat = /* @__PURE__ */ __name((adapter) => adapter.unreadChats ? adapter.unreadChats() : adapter.chats({ offset: 0 }), "everyChat");
|
|
20611
|
+
var leftOf = /* @__PURE__ */ __name((page) => page.left?.length ? { left: page.left } : {}, "leftOf");
|
|
20601
20612
|
var storeReader = /* @__PURE__ */ __name((deps, store, account) => ({
|
|
20602
20613
|
chats: /* @__PURE__ */ __name(async ({ limit, offset }) => {
|
|
20603
20614
|
const newest = new Map((await store.chats.chatStats(account)).map((one) => [one.chatId, one.newestAt]));
|
|
@@ -20650,7 +20661,7 @@ var unreadIn = /* @__PURE__ */ __name(async (adapter, { limit, all = false, kind
|
|
|
20650
20661
|
if (theirs.length > 0)
|
|
20651
20662
|
chats.push({ id: id3, title, kind: kind2, unreadCount, messages: theirs, more: count3 > limit });
|
|
20652
20663
|
}
|
|
20653
|
-
return { mode: "unread", chats, skipped, partial: page.hasMore, quiet: quiet2 };
|
|
20664
|
+
return { mode: "unread", chats, skipped, partial: page.hasMore, ...leftOf(page), quiet: quiet2 };
|
|
20654
20665
|
}, "unreadIn");
|
|
20655
20666
|
var newIn = /* @__PURE__ */ __name(async (adapter, { since, points, limit, all = false, kinds }) => {
|
|
20656
20667
|
const page = await everyChat(adapter);
|
|
@@ -20681,6 +20692,7 @@ var newIn = /* @__PURE__ */ __name(async (adapter, { since, points, limit, all =
|
|
|
20681
20692
|
chats,
|
|
20682
20693
|
skipped,
|
|
20683
20694
|
partial: page.hasMore,
|
|
20695
|
+
...leftOf(page),
|
|
20684
20696
|
quiet: quiet2,
|
|
20685
20697
|
checked: checked2
|
|
20686
20698
|
};
|
|
@@ -20729,6 +20741,7 @@ var reviewIn = /* @__PURE__ */ __name(async (adapter, { since, points, chat, kin
|
|
|
20729
20741
|
chats,
|
|
20730
20742
|
skipped,
|
|
20731
20743
|
partial,
|
|
20744
|
+
...leftOf(page),
|
|
20732
20745
|
quiet: quiet2,
|
|
20733
20746
|
...points === void 0 ? {} : { checked: checked2 }
|
|
20734
20747
|
};
|
|
@@ -20764,7 +20777,8 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20764
20777
|
chats: capability(connection, "chats", "list chats"),
|
|
20765
20778
|
history: capability(connection, "history", "read a chat's history"),
|
|
20766
20779
|
resolve: /* @__PURE__ */ __name((reference) => connection.resolve(reference), "resolve"),
|
|
20767
|
-
...connection.admins ? { admins: capability(connection, "admins", "list a chat's admins") } : {}
|
|
20780
|
+
...connection.admins ? { admins: capability(connection, "admins", "list a chat's admins") } : {},
|
|
20781
|
+
...connection.unreadChats ? { unreadChats: capability(connection, "unreadChats", "count unread chats") } : {}
|
|
20768
20782
|
};
|
|
20769
20783
|
}, "reader");
|
|
20770
20784
|
return {
|
|
@@ -20797,10 +20811,10 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20797
20811
|
};
|
|
20798
20812
|
}, "inboxService");
|
|
20799
20813
|
|
|
20800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
20801
20815
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
20802
20816
|
|
|
20803
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20817
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.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
|
|
20804
20818
|
var pascal = /* @__PURE__ */ __name((text3) => text3.split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word[0]?.toUpperCase() + word.slice(1)).join(""), "pascal");
|
|
20805
20819
|
var GLOBALS = /* @__PURE__ */ new Set([
|
|
20806
20820
|
"Array",
|
|
@@ -20836,7 +20850,7 @@ var identifier = /* @__PURE__ */ __name((id3) => {
|
|
|
20836
20850
|
return GLOBALS.has(name) ? `Api${name}` : name;
|
|
20837
20851
|
}, "identifier");
|
|
20838
20852
|
|
|
20839
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20853
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.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
|
|
20840
20854
|
var BEARER = { in: "header", name: "authorization", value: /* @__PURE__ */ __name((token) => `Bearer ${token}`, "value") };
|
|
20841
20855
|
var signInPlace = /* @__PURE__ */ __name((scheme) => {
|
|
20842
20856
|
if (scheme.type === "apiKey") {
|
|
@@ -20869,7 +20883,7 @@ var signInRequirements = /* @__PURE__ */ __name((operation, document) => {
|
|
|
20869
20883
|
return requirements?.some((one) => Object.keys(one).length > 0) ? requirements : void 0;
|
|
20870
20884
|
}, "signInRequirements");
|
|
20871
20885
|
|
|
20872
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20886
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.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
|
|
20873
20887
|
var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selection) => {
|
|
20874
20888
|
const variables = Object.entries(binding.variables);
|
|
20875
20889
|
const declared = variables.length ? `(${variables.map(([name, type]) => `$${name}: ${type}`).join(", ")})` : "";
|
|
@@ -20878,7 +20892,7 @@ var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selec
|
|
|
20878
20892
|
return `${binding.operation} ${binding.field[0]?.toUpperCase()}${binding.field.slice(1)}${declared} { ${binding.field}${passed}${inner} }`;
|
|
20879
20893
|
}, "graphqlDocument");
|
|
20880
20894
|
|
|
20881
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20895
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.132.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
|
|
20882
20896
|
var IGNORED = /* @__PURE__ */ new Set([
|
|
20883
20897
|
"readOnly",
|
|
20884
20898
|
"example",
|
|
@@ -21606,7 +21620,7 @@ function resolveSpace(space) {
|
|
|
21606
21620
|
}
|
|
21607
21621
|
__name(resolveSpace, "resolveSpace");
|
|
21608
21622
|
|
|
21609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
21610
21624
|
var RENAMED = { timeout: "poll-timeout" };
|
|
21611
21625
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
21612
21626
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -21744,7 +21758,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
21744
21758
|
return raw;
|
|
21745
21759
|
}, "flagValue");
|
|
21746
21760
|
|
|
21747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
21748
21762
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
21749
21763
|
const server = manifest.servers?.[0];
|
|
21750
21764
|
if (given === void 0 && !server)
|
|
@@ -21872,10 +21886,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
21872
21886
|
}
|
|
21873
21887
|
}, "nextPage");
|
|
21874
21888
|
|
|
21875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/source.js
|
|
21876
21890
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
21877
21891
|
|
|
21878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
21879
21893
|
var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
|
|
21880
21894
|
const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
|
|
21881
21895
|
const providerId = rest.join(":");
|
|
@@ -21908,7 +21922,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
21908
21922
|
return walk2(body);
|
|
21909
21923
|
}, "withoutFileLinks");
|
|
21910
21924
|
|
|
21911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
21912
21926
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
21913
21927
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
21914
21928
|
var text = /* @__PURE__ */ __name((value) => {
|
|
@@ -21965,7 +21979,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
21965
21979
|
}));
|
|
21966
21980
|
}, "crmValuesOf");
|
|
21967
21981
|
|
|
21968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/walk.js
|
|
21969
21983
|
var crmWindowOf = /* @__PURE__ */ __name((query) => {
|
|
21970
21984
|
const page = query.page ?? 1;
|
|
21971
21985
|
return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
|
|
@@ -21985,7 +21999,7 @@ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
|
|
|
21985
21999
|
return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
|
|
21986
22000
|
}, "walk");
|
|
21987
22001
|
|
|
21988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
21989
22003
|
var MISSING = /* @__PURE__ */ Symbol("missing");
|
|
21990
22004
|
var at = /* @__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");
|
|
21991
22005
|
var read = /* @__PURE__ */ __name((raw, path2) => {
|
|
@@ -22238,7 +22252,7 @@ var selectedOf = /* @__PURE__ */ __name((rules, from) => {
|
|
|
22238
22252
|
].filter(Boolean);
|
|
22239
22253
|
}, "selectedOf");
|
|
22240
22254
|
|
|
22241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
22242
22256
|
var CRM_WRITE_FIELDS = {
|
|
22243
22257
|
deal: ["title", "pipeline", "stage", "amount", "currency", "closeDate", "organization", "people", "owner", "reason"],
|
|
22244
22258
|
lead: ["title", "pipeline", "stage", "amount", "currency", "closeDate", "organization", "people", "owner", "reason"],
|
|
@@ -22504,7 +22518,7 @@ var checkWrite = /* @__PURE__ */ __name((kind2, one, manifest, { operations, kno
|
|
|
22504
22518
|
throw invalid(`${where}.custom.each`, 'no "{value}" in it');
|
|
22505
22519
|
}, "checkWrite");
|
|
22506
22520
|
|
|
22507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
22508
22522
|
var OVERLAP_MS = 10 * 6e4;
|
|
22509
22523
|
var MOST_LIVE = 100;
|
|
22510
22524
|
var MOST_PAGES = 500;
|
|
@@ -22950,7 +22964,7 @@ var toField = /* @__PURE__ */ __name((spec, raw) => {
|
|
|
22950
22964
|
};
|
|
22951
22965
|
}, "toField");
|
|
22952
22966
|
|
|
22953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/bot/api.js
|
|
22954
22968
|
var apiPathOf = /* @__PURE__ */ __name((operation) => {
|
|
22955
22969
|
const { command, group } = operation;
|
|
22956
22970
|
if (!group)
|
|
@@ -23063,7 +23077,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
|
|
|
23063
23077
|
return group;
|
|
23064
23078
|
}, "generatedApiCommand");
|
|
23065
23079
|
|
|
23066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/command-runs.js
|
|
23067
23081
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
23068
23082
|
var parses = new AsyncLocalStorage();
|
|
23069
23083
|
var providerEvent = /* @__PURE__ */ __name((event2) => {
|
|
@@ -23096,7 +23110,7 @@ var providerRequest = /* @__PURE__ */ __name((operation, sink = providerEvent, c
|
|
|
23096
23110
|
};
|
|
23097
23111
|
}, "providerRequest");
|
|
23098
23112
|
|
|
23099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/bot/api-http.js
|
|
23100
23114
|
var LARGEST_ANSWER = 16 * 1024 * 1024;
|
|
23101
23115
|
var segment = /* @__PURE__ */ __name((name, value) => {
|
|
23102
23116
|
if (value === void 0 || value === "" || value === "." || value === "..")
|
|
@@ -23314,7 +23328,7 @@ var refusal = /* @__PURE__ */ __name((service, operation, response, writes, inne
|
|
|
23314
23328
|
});
|
|
23315
23329
|
}, "refusal");
|
|
23316
23330
|
|
|
23317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
23318
23332
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
23319
23333
|
"help",
|
|
23320
23334
|
"guide",
|
|
@@ -23402,7 +23416,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
23402
23416
|
throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
|
|
23403
23417
|
}, "refuseUnknownPermissionKeys");
|
|
23404
23418
|
|
|
23405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
23406
23420
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
23407
23421
|
let question;
|
|
23408
23422
|
let answered = false;
|
|
@@ -23445,7 +23459,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
23445
23459
|
};
|
|
23446
23460
|
}, "keyedGuard");
|
|
23447
23461
|
|
|
23448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23462
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/service-api.js
|
|
23449
23463
|
var serviceApiOperations = /* @__PURE__ */ __name((manifest) => {
|
|
23450
23464
|
const reasonOf2 = /* @__PURE__ */ __name((operation) => operation.response?.sensitive ? "it returns a credential, which is never printed" : unsendableBody(operation), "reasonOf");
|
|
23451
23465
|
return {
|
|
@@ -23755,7 +23769,7 @@ var serviceApiCommand = /* @__PURE__ */ __name((options2) => {
|
|
|
23755
23769
|
return group;
|
|
23756
23770
|
}, "serviceApiCommand");
|
|
23757
23771
|
|
|
23758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/cli/service-api-call.js
|
|
23759
23773
|
var hostsFetch = /* @__PURE__ */ __name((hosts, fetch2, credentialScope) => hostFetch({ hosts, ...fetch2 ? { fetch: fetch2 } : {}, ...credentialScope ? { credentialScope } : {} }), "hostsFetch");
|
|
23760
23774
|
var NO_COMMAND = new Command("source");
|
|
23761
23775
|
var sender = /* @__PURE__ */ __name((options2, writes) => {
|
|
@@ -23797,7 +23811,7 @@ var serviceApiSend = /* @__PURE__ */ __name((options2) => {
|
|
|
23797
23811
|
return async (id3, input) => (await withHeaders(id3, input)).body;
|
|
23798
23812
|
}, "serviceApiSend");
|
|
23799
23813
|
|
|
23800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
23801
23815
|
var CRM_VERBS = ["create", "update", "move", "close", "remove"];
|
|
23802
23816
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
23803
23817
|
var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
|
|
@@ -23816,6 +23830,8 @@ var VERB_OF = {
|
|
|
23816
23830
|
};
|
|
23817
23831
|
var crmAlsoChecks = /* @__PURE__ */ __name((also) => (path2) => {
|
|
23818
23832
|
const [noun, command] = path2;
|
|
23833
|
+
if (noun === "activities" && command === "create" && path2.length === 2)
|
|
23834
|
+
return [{ key: CRM_ASSIGN_OTHERS_KEY, when: "--owner other than the sign-in's user" }];
|
|
23819
23835
|
const kind2 = noun === void 0 ? void 0 : PLURALS[noun];
|
|
23820
23836
|
const verb = command === void 0 ? void 0 : VERB_OF[command];
|
|
23821
23837
|
if (path2.length !== 2 || kind2 === void 0 || verb === void 0)
|
|
@@ -23831,7 +23847,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
23831
23847
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
23832
23848
|
};
|
|
23833
23849
|
|
|
23834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/profile-writes.js
|
|
23835
23851
|
var levelsOf = /* @__PURE__ */ __name((writes, defaults) => {
|
|
23836
23852
|
const settings = writes.settings();
|
|
23837
23853
|
return { settings, defaults: { ...DEFAULT_PERMISSIONS, ...defaults, ...settings.permissionDefaults } };
|
|
@@ -23842,14 +23858,14 @@ var profileWriteGuard = /* @__PURE__ */ __name((writes, ask2, builtIn, extra) =>
|
|
|
23842
23858
|
}), writes.env, asker), ask2, (key) => levelFor(settings.permissions, key, defaults).level, extra);
|
|
23843
23859
|
}, "profileWriteGuard");
|
|
23844
23860
|
|
|
23845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
23846
23862
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
23847
23863
|
import { join as join4 } from "node:path";
|
|
23848
23864
|
|
|
23849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/state-folders.js
|
|
23850
23866
|
var CRM_SHARED_FOLDERS = { files: "files", foreignContacts: "foreign-contacts" };
|
|
23851
23867
|
|
|
23852
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
23853
23869
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
23854
23870
|
var foreignContactsPathFor = /* @__PURE__ */ __name((app, account, env = process.env, user) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "crm", CRM_SHARED_FOLDERS.foreignContacts, `${[account.provider, account.account, ...user ? [user] : []].join("-").replace(/[^\w.-]+/gu, "_")}.json`), "foreignContactsPathFor");
|
|
23855
23871
|
var shownIn = /* @__PURE__ */ __name((file2, day2) => {
|
|
@@ -23922,7 +23938,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file2, options2 = {}) => {
|
|
|
23922
23938
|
};
|
|
23923
23939
|
}, "foreignContacts");
|
|
23924
23940
|
|
|
23925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/writes.js
|
|
23926
23942
|
var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
|
|
23927
23943
|
try {
|
|
23928
23944
|
check2();
|
|
@@ -24370,8 +24386,100 @@ var updateCrmRecord = /* @__PURE__ */ __name(async (context2, kind2, externalId,
|
|
|
24370
24386
|
const operationId = operationOf(context2, options2.operationId);
|
|
24371
24387
|
return writeRecord(context2, kind2, "update", fields2, operationId, () => writer.update(kind2, externalId, fields2, { operationId }));
|
|
24372
24388
|
}, "updateCrmRecord");
|
|
24389
|
+
var MOST_SUBJECT = 500;
|
|
24390
|
+
var MOST_BODY = 2e4;
|
|
24391
|
+
var activityInvalid = /* @__PURE__ */ __name((message, param) => new CliError("validation_error", message, { reason: "crm.activity-field", ...param ? { param } : {} }), "activityInvalid");
|
|
24392
|
+
var activityUnsupported = /* @__PURE__ */ __name((what2) => new CliError("validation_error", `this CRM does not take ${what2}`, { reason: "crm.write-unsupported", sent: false }), "activityUnsupported");
|
|
24393
|
+
var activityTargetOf = /* @__PURE__ */ __name(async (context2, given) => {
|
|
24394
|
+
const at2 = given.indexOf(":");
|
|
24395
|
+
const kind2 = given.slice(0, at2);
|
|
24396
|
+
const id3 = given.slice(at2 + 1);
|
|
24397
|
+
if (kind2 === "deal" || kind2 === "lead") {
|
|
24398
|
+
const copy = await copyOf(context2, kind2, given.trim());
|
|
24399
|
+
return { kind: kind2, externalId: copy.externalId, ref: copy.ref, title: copy.title };
|
|
24400
|
+
}
|
|
24401
|
+
if ((kind2 === "person" || kind2 === "organization") && RECORD_ID.test(id3))
|
|
24402
|
+
return { kind: kind2, externalId: id3, ref: null, title: null };
|
|
24403
|
+
throw new CliError("validation_error", `--subject takes deal:<id> or lead:<id> as a list shows it, or person:<id> or organization:<id> by the CRM's id; got ${given}`, { reason: "ref.malformed", param: "--subject" });
|
|
24404
|
+
}, "activityTargetOf");
|
|
24405
|
+
var activityKeys = /* @__PURE__ */ __name(async (context2, key, owner) => ({
|
|
24406
|
+
key,
|
|
24407
|
+
extra: owner !== void 0 && owner !== await selfOf(context2) ? [CRM_ASSIGN_OTHERS_KEY] : []
|
|
24408
|
+
}), "activityKeys");
|
|
24409
|
+
var keptActivity = /* @__PURE__ */ __name(async (context2, activity, operationId) => {
|
|
24410
|
+
try {
|
|
24411
|
+
if (!await context2.store.crm.activitiesOn(context2.account))
|
|
24412
|
+
return false;
|
|
24413
|
+
return (await context2.store.crm.saveActivities(context2.account, [activity])).saved === 1;
|
|
24414
|
+
} catch (error) {
|
|
24415
|
+
throw new CliError("invalid_response", `the CRM wrote activity ${activity.externalId}, but the local store did not keep it (${error instanceof Error ? error.message : String(error)}); sync to store it \u2014 do not write it again`, { external_id: activity.externalId, operation_id: operationId, sent: true });
|
|
24416
|
+
}
|
|
24417
|
+
}, "keptActivity");
|
|
24418
|
+
var answeredTargets = /* @__PURE__ */ __name(async (context2, activity, known2) => Promise.all(activity.on.map(async ({ kind: kind2, externalId }) => known2.find((one) => one.kind === kind2 && one.externalId === externalId) ?? {
|
|
24419
|
+
kind: kind2,
|
|
24420
|
+
externalId,
|
|
24421
|
+
ref: isItemKind(kind2) ? await context2.store.crm.refOf(context2.account, kind2, externalId) : null,
|
|
24422
|
+
title: null
|
|
24423
|
+
})), "answeredTargets");
|
|
24424
|
+
var createCrmActivity = /* @__PURE__ */ __name(async (context2, kind2, input, options2 = {}) => {
|
|
24425
|
+
const { writer } = context2.writes;
|
|
24426
|
+
const create = writer.createActivity?.bind(writer);
|
|
24427
|
+
if (!create || !writer.capabilities.activities?.includes(kind2))
|
|
24428
|
+
throw activityUnsupported(`a new ${kind2}`);
|
|
24429
|
+
const subject = input.title?.trim();
|
|
24430
|
+
const body = input.body?.trim();
|
|
24431
|
+
if (subject !== void 0 && (subject === "" || subject.length > MOST_SUBJECT))
|
|
24432
|
+
throw activityInvalid(`--title is 1 to ${MOST_SUBJECT} characters`, "--title");
|
|
24433
|
+
if (body !== void 0 && (body === "" || body.length > MOST_BODY))
|
|
24434
|
+
throw activityInvalid(`--text is 1 to ${MOST_BODY} characters`, "--text");
|
|
24435
|
+
if (kind2 === "task" && subject === void 0)
|
|
24436
|
+
throw activityInvalid("a new task needs --title", "--title");
|
|
24437
|
+
if (kind2 === "comment" && body === void 0)
|
|
24438
|
+
throw activityInvalid("a new comment needs --text", "--text");
|
|
24439
|
+
if (kind2 === "comment" && input.dueAt !== void 0)
|
|
24440
|
+
throw activityInvalid("a comment has no --due", "--due");
|
|
24441
|
+
if (kind2 === "comment" && input.owner !== void 0)
|
|
24442
|
+
throw activityInvalid("a comment has no --owner", "--owner");
|
|
24443
|
+
const owner = input.owner?.trim();
|
|
24444
|
+
if (owner !== void 0 && !owner)
|
|
24445
|
+
throw activityInvalid("--owner is the CRM user's id", "--owner");
|
|
24446
|
+
if (input.on.length === 0)
|
|
24447
|
+
throw activityInvalid("name the record it is on with --subject, such as deal:12", "--subject");
|
|
24448
|
+
const targets = [];
|
|
24449
|
+
for (const given of input.on) {
|
|
24450
|
+
const target2 = await activityTargetOf(context2, given);
|
|
24451
|
+
if (!targets.some((one) => one.kind === target2.kind && one.externalId === target2.externalId))
|
|
24452
|
+
targets.push(target2);
|
|
24453
|
+
}
|
|
24454
|
+
const draft = {
|
|
24455
|
+
kind: kind2,
|
|
24456
|
+
...subject === void 0 ? {} : { subject },
|
|
24457
|
+
...body === void 0 ? {} : { body },
|
|
24458
|
+
...input.dueAt === void 0 ? {} : { dueAt: input.dueAt },
|
|
24459
|
+
...owner === void 0 ? {} : { assignee: owner },
|
|
24460
|
+
on: targets.map(({ kind: kind3, externalId }) => ({ kind: kind3, externalId }))
|
|
24461
|
+
};
|
|
24462
|
+
const operationId = operationOf(context2, options2.operationId);
|
|
24463
|
+
const activity = await written(context2, await activityKeys(context2, "activities.create", owner), operationId, () => create(draft, { operationId }));
|
|
24464
|
+
const stored = await keptActivity(context2, activity, operationId);
|
|
24465
|
+
return { operationId, activity, stored, on: await answeredTargets(context2, activity, targets) };
|
|
24466
|
+
}, "createCrmActivity");
|
|
24467
|
+
var completeCrmActivity = /* @__PURE__ */ __name(async (context2, externalId, options2 = {}) => {
|
|
24468
|
+
const { writer } = context2.writes;
|
|
24469
|
+
const complete = writer.completeActivity?.bind(writer);
|
|
24470
|
+
if (!complete || !writer.capabilities.activities?.includes("task"))
|
|
24471
|
+
throw activityUnsupported("a task marked done");
|
|
24472
|
+
if (!RECORD_ID.test(externalId))
|
|
24473
|
+
throw new CliError("validation_error", "name the task by the CRM's id, as activities list prints it", {
|
|
24474
|
+
reason: "ref.malformed"
|
|
24475
|
+
});
|
|
24476
|
+
const operationId = operationOf(context2, options2.operationId);
|
|
24477
|
+
const activity = await written(context2, await activityKeys(context2, "activities.close", void 0), operationId, () => complete(externalId, { operationId }));
|
|
24478
|
+
const stored = await keptActivity(context2, activity, operationId);
|
|
24479
|
+
return { operationId, activity, stored, on: await answeredTargets(context2, activity, []) };
|
|
24480
|
+
}, "completeCrmActivity");
|
|
24373
24481
|
|
|
24374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/manifest/writer.js
|
|
24375
24483
|
var CALL_OF = {
|
|
24376
24484
|
create: "create",
|
|
24377
24485
|
update: "update",
|
|
@@ -24626,7 +24734,7 @@ var crmManifestWrites = /* @__PURE__ */ __name((input, options2) => {
|
|
|
24626
24734
|
};
|
|
24627
24735
|
}, "crmManifestWrites");
|
|
24628
24736
|
|
|
24629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
24630
24738
|
import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
24631
24739
|
import { join as join5 } from "node:path";
|
|
24632
24740
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -24721,10 +24829,10 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
24721
24829
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
24722
24830
|
}, "waitForTurn");
|
|
24723
24831
|
|
|
24724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
24725
24833
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
24726
24834
|
|
|
24727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/query.js
|
|
24728
24836
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
24729
24837
|
if (kind2 === "id") {
|
|
24730
24838
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -24825,7 +24933,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
24825
24933
|
});
|
|
24826
24934
|
}, "selectedCodes");
|
|
24827
24935
|
|
|
24828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24936
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
|
|
24829
24937
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
24830
24938
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
24831
24939
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -24833,7 +24941,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
24833
24941
|
return grouped2 ? void 0 : workGroupHint(key);
|
|
24834
24942
|
}, "ungroupedHint");
|
|
24835
24943
|
|
|
24836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
24837
24945
|
var VIEWERS = "crm:viewers";
|
|
24838
24946
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
24839
24947
|
try {
|
|
@@ -24908,7 +25016,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
|
|
|
24908
25016
|
return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
|
|
24909
25017
|
}, "ownerOf");
|
|
24910
25018
|
|
|
24911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
24912
25020
|
var DAY2 = 864e5;
|
|
24913
25021
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
24914
25022
|
var MOST_UNLISTED = 0.5;
|
|
@@ -25562,7 +25670,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
|
|
|
25562
25670
|
return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
|
|
25563
25671
|
}, "crmStatus");
|
|
25564
25672
|
|
|
25565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
25566
25674
|
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");
|
|
25567
25675
|
var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
|
|
25568
25676
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -25578,7 +25686,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
|
|
|
25578
25686
|
}, "excerpt");
|
|
25579
25687
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
25580
25688
|
|
|
25581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
25582
25690
|
var SCAN = 1e3;
|
|
25583
25691
|
var SNIPPET = 200;
|
|
25584
25692
|
var SNIPPET_ROWS = 6;
|
|
@@ -25643,7 +25751,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
25643
25751
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
25644
25752
|
}, "personMeetings");
|
|
25645
25753
|
|
|
25646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
25647
25755
|
var CONTEXT_MESSAGES2 = 10;
|
|
25648
25756
|
var CONTEXT_BYTES = 64 * 1024;
|
|
25649
25757
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -25949,10 +26057,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
25949
26057
|
};
|
|
25950
26058
|
}, "personMessages");
|
|
25951
26059
|
|
|
25952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
25953
26061
|
import { createHash } from "node:crypto";
|
|
25954
26062
|
|
|
25955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
25956
26064
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
25957
26065
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
25958
26066
|
const parsed = parseMeetingReference(reference);
|
|
@@ -25970,7 +26078,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
25970
26078
|
return { parsed, meeting };
|
|
25971
26079
|
}, "authorizedMeetingMetadata");
|
|
25972
26080
|
|
|
25973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
25974
26082
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
25975
26083
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
25976
26084
|
if (signal?.aborted)
|
|
@@ -26169,7 +26277,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
26169
26277
|
return { ...packet, fingerprint: hash(packet) };
|
|
26170
26278
|
}, "readMeetingEvidence");
|
|
26171
26279
|
|
|
26172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
26173
26281
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
26174
26282
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
26175
26283
|
const requestedAccounts = options2.accountIds;
|
|
@@ -26268,7 +26376,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
26268
26376
|
};
|
|
26269
26377
|
}, "personMeetingContext");
|
|
26270
26378
|
|
|
26271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
26272
26380
|
var PREPARE_BYTES = 96 * 1024;
|
|
26273
26381
|
var MEETINGS = 5;
|
|
26274
26382
|
var CUES = 3;
|
|
@@ -26391,7 +26499,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
26391
26499
|
}
|
|
26392
26500
|
}, "meetingsOf");
|
|
26393
26501
|
|
|
26394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26502
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
26395
26503
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
26396
26504
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
26397
26505
|
const held = await storeIfOpen(deps);
|
|
@@ -26461,7 +26569,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
26461
26569
|
complete: false
|
|
26462
26570
|
})), "quiet");
|
|
26463
26571
|
|
|
26464
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
26465
26573
|
var TIMELINE_ITEMS = 50;
|
|
26466
26574
|
var TIMELINE_MAX = 500;
|
|
26467
26575
|
var SCOPES = ["personal", "work"];
|
|
@@ -26523,7 +26631,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
26523
26631
|
};
|
|
26524
26632
|
}, "personTimeline");
|
|
26525
26633
|
|
|
26526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
26527
26635
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
26528
26636
|
const ids = [...new Set(chatIds)];
|
|
26529
26637
|
if (ids.length === 0)
|
|
@@ -26549,7 +26657,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
26549
26657
|
}));
|
|
26550
26658
|
}, "chatCoverage");
|
|
26551
26659
|
|
|
26552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
26553
26661
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
26554
26662
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
26555
26663
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -26613,7 +26721,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
26613
26721
|
}
|
|
26614
26722
|
}, "validateContextEvidencePage");
|
|
26615
26723
|
|
|
26616
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
26617
26725
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
26618
26726
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
26619
26727
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -26666,7 +26774,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
26666
26774
|
};
|
|
26667
26775
|
}, "contextReadBudget");
|
|
26668
26776
|
|
|
26669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
26670
26778
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
26671
26779
|
if (!port || typeof port.read !== "function")
|
|
26672
26780
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -26710,7 +26818,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
26710
26818
|
};
|
|
26711
26819
|
}, "createContextEvidenceReader");
|
|
26712
26820
|
|
|
26713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
26714
26822
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
26715
26823
|
async around(ref, window2) {
|
|
26716
26824
|
const at2 = parseLocator(ref);
|
|
@@ -26805,7 +26913,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
26805
26913
|
};
|
|
26806
26914
|
}, "storedNeighbours");
|
|
26807
26915
|
|
|
26808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
26809
26917
|
import { createHash as createHash2 } from "node:crypto";
|
|
26810
26918
|
var DAY3 = 864e5;
|
|
26811
26919
|
var MAX_TIME = 864e13;
|
|
@@ -27121,7 +27229,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
27121
27229
|
return value;
|
|
27122
27230
|
}, "decodeCheckpoint");
|
|
27123
27231
|
|
|
27124
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
27125
27233
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
27126
27234
|
var PAGE2 = 20;
|
|
27127
27235
|
var PEOPLE = 20;
|
|
@@ -27525,7 +27633,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
27525
27633
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
27526
27634
|
}, "peopleOf");
|
|
27527
27635
|
|
|
27528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
27529
27637
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
27530
27638
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
27531
27639
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -27569,7 +27677,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
27569
27677
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
27570
27678
|
}, "matchVocabularyTerms");
|
|
27571
27679
|
|
|
27572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
27573
27681
|
var KINDS = ["project", "tag", "topic"];
|
|
27574
27682
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
27575
27683
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -27624,7 +27732,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
27624
27732
|
};
|
|
27625
27733
|
}, "findEvidenceMentions");
|
|
27626
27734
|
|
|
27627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
27628
27736
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
27629
27737
|
var DEFAULT_PURPOSES = ["work"];
|
|
27630
27738
|
var LINK_PURPOSE = "work";
|
|
@@ -27654,7 +27762,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
27654
27762
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
27655
27763
|
], "purposeList");
|
|
27656
27764
|
|
|
27657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
27658
27766
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
27659
27767
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
27660
27768
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -27965,7 +28073,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
27965
28073
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
27966
28074
|
}, "purposeHintOf");
|
|
27967
28075
|
|
|
27968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
27969
28077
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
27970
28078
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
27971
28079
|
const held = await storeIfOpen(deps);
|
|
@@ -28230,7 +28338,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
28230
28338
|
return rest;
|
|
28231
28339
|
}, "withoutPhone");
|
|
28232
28340
|
|
|
28233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
28234
28342
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
28235
28343
|
var PERIOD_FIELD = "created";
|
|
28236
28344
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -28361,7 +28469,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
28361
28469
|
}));
|
|
28362
28470
|
}, "meetingNames");
|
|
28363
28471
|
|
|
28364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
28365
28473
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
28366
28474
|
const tags = /* @__PURE__ */ new Map();
|
|
28367
28475
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -28370,7 +28478,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
28370
28478
|
return tags;
|
|
28371
28479
|
}, "taskTagFilters");
|
|
28372
28480
|
|
|
28373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
28374
28482
|
var TASK_QUERY = {
|
|
28375
28483
|
entity: "task",
|
|
28376
28484
|
backend: "sql",
|
|
@@ -28870,7 +28978,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
28870
28978
|
};
|
|
28871
28979
|
}, "taskView");
|
|
28872
28980
|
|
|
28873
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
28874
28982
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
28875
28983
|
if (newest === null)
|
|
28876
28984
|
return null;
|
|
@@ -28879,7 +28987,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
28879
28987
|
return newest.addressed ? "owed" : null;
|
|
28880
28988
|
}, "mailTurn");
|
|
28881
28989
|
|
|
28882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
28883
28991
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
28884
28992
|
if (error instanceof CliError && error.code === "not_found")
|
|
28885
28993
|
return void 0;
|
|
@@ -28937,7 +29045,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
28937
29045
|
};
|
|
28938
29046
|
}, "mailActivity");
|
|
28939
29047
|
|
|
28940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
28941
29049
|
var DAY4 = 864e5;
|
|
28942
29050
|
var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
|
|
28943
29051
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -29191,22 +29299,22 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
29191
29299
|
};
|
|
29192
29300
|
}, "agendaItem");
|
|
29193
29301
|
|
|
29194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
29195
29303
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
29196
29304
|
var encoder = new TextEncoder();
|
|
29197
29305
|
|
|
29198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
29199
29307
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
29200
29308
|
|
|
29201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
29202
29310
|
import { lstat } from "node:fs/promises";
|
|
29203
29311
|
|
|
29204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
29205
29313
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
29206
29314
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
29207
29315
|
import { join as join7 } from "node:path";
|
|
29208
29316
|
|
|
29209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29317
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
29210
29318
|
import { createHash as createHash3 } from "node:crypto";
|
|
29211
29319
|
var metadataLimit = 16384;
|
|
29212
29320
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -29266,7 +29374,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
29266
29374
|
}
|
|
29267
29375
|
}, "readPartialMetadata");
|
|
29268
29376
|
|
|
29269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
29270
29378
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
29271
29379
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
29272
29380
|
import { join as join6 } from "node:path";
|
|
@@ -29358,7 +29466,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
29358
29466
|
};
|
|
29359
29467
|
}, "partialWriter");
|
|
29360
29468
|
|
|
29361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
29362
29470
|
var NativeRecordingPartialStore = class {
|
|
29363
29471
|
static {
|
|
29364
29472
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -29465,12 +29573,12 @@ var NativeRecordingPartialStore = class {
|
|
|
29465
29573
|
}
|
|
29466
29574
|
};
|
|
29467
29575
|
|
|
29468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
29469
29577
|
import { createHash as createHash5 } from "node:crypto";
|
|
29470
29578
|
import { link as link2 } from "node:fs/promises";
|
|
29471
29579
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
29472
29580
|
|
|
29473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
29474
29582
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
29475
29583
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
29476
29584
|
signal?.throwIfAborted();
|
|
@@ -29505,7 +29613,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
29505
29613
|
signal?.throwIfAborted();
|
|
29506
29614
|
}, "commitPublication");
|
|
29507
29615
|
|
|
29508
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
29509
29617
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
29510
29618
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
29511
29619
|
import { join as join8 } from "node:path";
|
|
@@ -29578,7 +29686,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
29578
29686
|
}
|
|
29579
29687
|
}, "writePublicationJournal");
|
|
29580
29688
|
|
|
29581
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
29582
29690
|
var NativeRecordingPublication = class {
|
|
29583
29691
|
static {
|
|
29584
29692
|
__name(this, "NativeRecordingPublication");
|
|
@@ -29651,7 +29759,7 @@ var NativeRecordingPublication = class {
|
|
|
29651
29759
|
}
|
|
29652
29760
|
};
|
|
29653
29761
|
|
|
29654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
29655
29763
|
import { createHash as createHash6 } from "node:crypto";
|
|
29656
29764
|
import { readdir } from "node:fs/promises";
|
|
29657
29765
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -29738,7 +29846,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
29738
29846
|
beforePublish
|
|
29739
29847
|
}), "commitMediaEntry");
|
|
29740
29848
|
|
|
29741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
29742
29850
|
var validator = '"media-completed-v1"';
|
|
29743
29851
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
29744
29852
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -29839,7 +29947,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
29839
29947
|
return entry;
|
|
29840
29948
|
}, "archiveMediaFile");
|
|
29841
29949
|
|
|
29842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
29843
29951
|
import { mkdir, realpath } from "node:fs/promises";
|
|
29844
29952
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
29845
29953
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -29906,7 +30014,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
29906
30014
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
29907
30015
|
}, "withMediaArchiveLocks");
|
|
29908
30016
|
|
|
29909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
29910
30018
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
29911
30019
|
const entries = await readMediaManifests(root, signal);
|
|
29912
30020
|
if (!entries.length)
|
|
@@ -30049,7 +30157,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
30049
30157
|
}, { create: true });
|
|
30050
30158
|
}, "archiveMedia");
|
|
30051
30159
|
|
|
30052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
30053
30161
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
30054
30162
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
30055
30163
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -30200,7 +30308,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
30200
30308
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
30201
30309
|
}, "moveMediaArchive");
|
|
30202
30310
|
|
|
30203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30311
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
30204
30312
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
30205
30313
|
import { join as join13 } from "node:path";
|
|
30206
30314
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -30225,7 +30333,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30225
30333
|
`);
|
|
30226
30334
|
await nativeRuntime({ env, progress });
|
|
30227
30335
|
progress(`${model.id}: loading it once to check it works`);
|
|
30228
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
30336
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-DIFO7RH4.js");
|
|
30229
30337
|
const embedder = await openEmbedder2(model, directory2);
|
|
30230
30338
|
try {
|
|
30231
30339
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -30246,7 +30354,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
30246
30354
|
}
|
|
30247
30355
|
await nativeRuntime({ env, progress });
|
|
30248
30356
|
progress(`${model.id}: loading it once to check it works`);
|
|
30249
|
-
const { openReranker } = await import("./rerank-
|
|
30357
|
+
const { openReranker } = await import("./rerank-IQ6GPSJ6.js");
|
|
30250
30358
|
const reranker = await openReranker(model, directory2);
|
|
30251
30359
|
try {
|
|
30252
30360
|
await reranker.score("check", ["check"]);
|
|
@@ -30264,7 +30372,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30264
30372
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
30265
30373
|
}
|
|
30266
30374
|
progress(`${model.id}: loading it once to check it works`);
|
|
30267
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
30375
|
+
const { openPictureEmbedder } = await import("./embedder-S5FKW4XZ.js");
|
|
30268
30376
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
30269
30377
|
try {
|
|
30270
30378
|
const vector = await embedder.embedQuery("check");
|
|
@@ -30276,7 +30384,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30276
30384
|
return { model, directory: directory2 };
|
|
30277
30385
|
}, "downloadImageModel");
|
|
30278
30386
|
|
|
30279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
30280
30388
|
var MONEY_REQUEST = "money-request";
|
|
30281
30389
|
var MONEY_DONE = "money-done";
|
|
30282
30390
|
var PROMISE = "promise";
|
|
@@ -30310,10 +30418,10 @@ var MONEY_WORDS = [
|
|
|
30310
30418
|
}
|
|
30311
30419
|
];
|
|
30312
30420
|
|
|
30313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30421
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
30314
30422
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
30315
30423
|
|
|
30316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
30317
30425
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
30318
30426
|
var MONEY_DONE_FORMS = words2([
|
|
30319
30427
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -30353,7 +30461,7 @@ var PROMISE_FORMS = words2([
|
|
|
30353
30461
|
"estar\xE1 listo"
|
|
30354
30462
|
]);
|
|
30355
30463
|
|
|
30356
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
30357
30465
|
var EXCERPT_CHARS = 80;
|
|
30358
30466
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
30359
30467
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -30375,7 +30483,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
30375
30483
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
30376
30484
|
var day = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString().slice(0, 10), "day");
|
|
30377
30485
|
|
|
30378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
30379
30487
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
30380
30488
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
30381
30489
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -30456,7 +30564,7 @@ var amounts = {
|
|
|
30456
30564
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
30457
30565
|
};
|
|
30458
30566
|
|
|
30459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
30460
30568
|
var children = {
|
|
30461
30569
|
id: "children",
|
|
30462
30570
|
version: 1,
|
|
@@ -30485,7 +30593,7 @@ var children = {
|
|
|
30485
30593
|
}, "read")
|
|
30486
30594
|
};
|
|
30487
30595
|
|
|
30488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
30489
30597
|
var coverage = {
|
|
30490
30598
|
id: "coverage",
|
|
30491
30599
|
version: 1,
|
|
@@ -30514,7 +30622,7 @@ var coverage = {
|
|
|
30514
30622
|
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")
|
|
30515
30623
|
};
|
|
30516
30624
|
|
|
30517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
30518
30626
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
30519
30627
|
var item = /* @__PURE__ */ __name((row, at2, data) => ({
|
|
30520
30628
|
signal: "payments",
|
|
@@ -30564,7 +30672,7 @@ var payments = {
|
|
|
30564
30672
|
}, "read")
|
|
30565
30673
|
};
|
|
30566
30674
|
|
|
30567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
30568
30676
|
var PATTERNS_PER_CHAT = 3;
|
|
30569
30677
|
var DAY5 = 864e5;
|
|
30570
30678
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -30653,7 +30761,7 @@ var promises = {
|
|
|
30653
30761
|
}, "read")
|
|
30654
30762
|
};
|
|
30655
30763
|
|
|
30656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
30657
30765
|
var PER_SIDE = 5;
|
|
30658
30766
|
var WEEK = 7 * 864e5;
|
|
30659
30767
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -30684,7 +30792,7 @@ var questions2 = {
|
|
|
30684
30792
|
}, "attention")
|
|
30685
30793
|
};
|
|
30686
30794
|
|
|
30687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
30688
30796
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
30689
30797
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
|
|
30690
30798
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -30752,7 +30860,7 @@ var replyNext = {
|
|
|
30752
30860
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
30753
30861
|
};
|
|
30754
30862
|
|
|
30755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
30756
30864
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
30757
30865
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
30758
30866
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -30798,7 +30906,7 @@ var topics = {
|
|
|
30798
30906
|
}, "read")
|
|
30799
30907
|
};
|
|
30800
30908
|
|
|
30801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
30802
30910
|
var STATUS_SIGNALS = [
|
|
30803
30911
|
replyNext,
|
|
30804
30912
|
questions2,
|
|
@@ -30810,7 +30918,7 @@ var STATUS_SIGNALS = [
|
|
|
30810
30918
|
children
|
|
30811
30919
|
];
|
|
30812
30920
|
|
|
30813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
30814
30922
|
var DAY6 = 864e5;
|
|
30815
30923
|
var STATUS_WINDOW = 300;
|
|
30816
30924
|
var STATUS_CHATS = 16;
|
|
@@ -30999,7 +31107,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
30999
31107
|
};
|
|
31000
31108
|
}, "projectStatus");
|
|
31001
31109
|
|
|
31002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
31003
31111
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
31004
31112
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31005
31113
|
if (deps.offline)
|
|
@@ -31071,7 +31179,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
31071
31179
|
};
|
|
31072
31180
|
}, "accountService");
|
|
31073
31181
|
|
|
31074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
31075
31183
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
31076
31184
|
const at2 = aheadOf(value, flag, now, {
|
|
31077
31185
|
...zone === void 0 ? {} : { zone },
|
|
@@ -31082,7 +31190,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
31082
31190
|
return new Date(at2 - at2 % MINUTE).toISOString();
|
|
31083
31191
|
}, "sendTime");
|
|
31084
31192
|
|
|
31085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
31086
31194
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
31087
31195
|
try {
|
|
31088
31196
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -31329,7 +31437,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
31329
31437
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
31330
31438
|
}, "linkLimits");
|
|
31331
31439
|
|
|
31332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
31333
31441
|
var THREADS_PAGE = 500;
|
|
31334
31442
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
31335
31443
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -31404,7 +31512,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
31404
31512
|
return thread.slice(Math.max(0, at2 - before), at2 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
31405
31513
|
}, "readMail");
|
|
31406
31514
|
|
|
31407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
31408
31516
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
31409
31517
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
31410
31518
|
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");
|
|
@@ -31777,7 +31885,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
31777
31885
|
};
|
|
31778
31886
|
}, "statsLucene");
|
|
31779
31887
|
|
|
31780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
31781
31889
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
31782
31890
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
31783
31891
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -31946,7 +32054,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
31946
32054
|
};
|
|
31947
32055
|
}, "readRankingSelection");
|
|
31948
32056
|
|
|
31949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
31950
32058
|
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");
|
|
31951
32059
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
31952
32060
|
command,
|
|
@@ -31956,7 +32064,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
31956
32064
|
fieldsVersion: FIELD_VERSION
|
|
31957
32065
|
}), "searchRecordOf");
|
|
31958
32066
|
|
|
31959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
31960
32068
|
function invalid4(message) {
|
|
31961
32069
|
throw new CliError("validation_error", message);
|
|
31962
32070
|
}
|
|
@@ -32250,7 +32358,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32250
32358
|
}, "evidence")
|
|
32251
32359
|
}), "adminStatisticsService");
|
|
32252
32360
|
|
|
32253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
32254
32362
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
32255
32363
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
32256
32364
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -32387,12 +32495,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
32387
32495
|
return { plan, repair };
|
|
32388
32496
|
}, "gapsService");
|
|
32389
32497
|
|
|
32390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32391
32499
|
import { createHash as createHash10 } from "node:crypto";
|
|
32392
32500
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
32393
32501
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
32394
32502
|
|
|
32395
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
32396
32504
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
32397
32505
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
32398
32506
|
var MAX_FILES = 1e4;
|
|
@@ -32463,15 +32571,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
32463
32571
|
return choices;
|
|
32464
32572
|
}, "directoryPaths");
|
|
32465
32573
|
|
|
32466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
32467
32575
|
import { posix } from "node:path";
|
|
32468
32576
|
|
|
32469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
32470
32578
|
import { setImmediate as tick } from "node:timers/promises";
|
|
32471
32579
|
import { crc32 } from "node:zlib";
|
|
32472
32580
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
32473
32581
|
|
|
32474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
32475
32583
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
32476
32584
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
32477
32585
|
var SAMPLE = 65536;
|
|
@@ -32573,7 +32681,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
32573
32681
|
return result.text;
|
|
32574
32682
|
}, "decodeXml");
|
|
32575
32683
|
|
|
32576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32684
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
32577
32685
|
var MAX_PART = 10 * 1024 * 1024;
|
|
32578
32686
|
var MAX_ENTRIES = 1e3;
|
|
32579
32687
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -32788,7 +32896,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
32788
32896
|
return found;
|
|
32789
32897
|
}, "elements");
|
|
32790
32898
|
|
|
32791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
32792
32900
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
32793
32901
|
let name = "";
|
|
32794
32902
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -32843,7 +32951,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
32843
32951
|
return { text: parts.join("").trim(), truncated: false };
|
|
32844
32952
|
}, "sheetText");
|
|
32845
32953
|
|
|
32846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
32847
32955
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
32848
32956
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
32849
32957
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -33243,10 +33351,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
33243
33351
|
}
|
|
33244
33352
|
}, "readDocument");
|
|
33245
33353
|
|
|
33246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
33247
33355
|
import { extname as extname3 } from "node:path";
|
|
33248
33356
|
|
|
33249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
33250
33358
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
33251
33359
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
33252
33360
|
import { fileURLToPath } from "node:url";
|
|
@@ -33307,7 +33415,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
33307
33415
|
}
|
|
33308
33416
|
}, "derived");
|
|
33309
33417
|
|
|
33310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
33311
33419
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
33312
33420
|
var image2 = {
|
|
33313
33421
|
id: "image",
|
|
@@ -33316,7 +33424,7 @@ var image2 = {
|
|
|
33316
33424
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
33317
33425
|
};
|
|
33318
33426
|
|
|
33319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
33320
33428
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
33321
33429
|
var doc = {
|
|
33322
33430
|
id: "doc",
|
|
@@ -33328,7 +33436,7 @@ var doc = {
|
|
|
33328
33436
|
}), "read")
|
|
33329
33437
|
};
|
|
33330
33438
|
|
|
33331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
33332
33440
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
33333
33441
|
var docx = {
|
|
33334
33442
|
id: "docx",
|
|
@@ -33341,10 +33449,10 @@ var docx = {
|
|
|
33341
33449
|
}), "read")
|
|
33342
33450
|
};
|
|
33343
33451
|
|
|
33344
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
33345
33453
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
33346
33454
|
|
|
33347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33455
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
33348
33456
|
var NAMED = {
|
|
33349
33457
|
amp: "&",
|
|
33350
33458
|
lt: "<",
|
|
@@ -33396,7 +33504,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
33396
33504
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
33397
33505
|
}), "decodeEntities");
|
|
33398
33506
|
|
|
33399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
33400
33508
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
33401
33509
|
"fonttbl",
|
|
33402
33510
|
"colortbl",
|
|
@@ -33562,7 +33670,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
33562
33670
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
33563
33671
|
}, "htmlText");
|
|
33564
33672
|
|
|
33565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
33566
33674
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
33567
33675
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
33568
33676
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -33618,7 +33726,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
33618
33726
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
33619
33727
|
}, "markdownSections");
|
|
33620
33728
|
|
|
33621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
33622
33730
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
33623
33731
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
33624
33732
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -33689,7 +33797,7 @@ var html = {
|
|
|
33689
33797
|
}, "read")
|
|
33690
33798
|
};
|
|
33691
33799
|
|
|
33692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
33693
33801
|
var office = {
|
|
33694
33802
|
id: "office",
|
|
33695
33803
|
version: documentExtractor("odt"),
|
|
@@ -33700,7 +33808,7 @@ var office = {
|
|
|
33700
33808
|
}, "read")
|
|
33701
33809
|
};
|
|
33702
33810
|
|
|
33703
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
33704
33812
|
var pdf = {
|
|
33705
33813
|
id: "pdf",
|
|
33706
33814
|
version: "unpdf",
|
|
@@ -33767,7 +33875,7 @@ var pdf = {
|
|
|
33767
33875
|
}), "read")
|
|
33768
33876
|
};
|
|
33769
33877
|
|
|
33770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
33771
33879
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
33772
33880
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
33773
33881
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -33787,7 +33895,7 @@ var plain = {
|
|
|
33787
33895
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
33788
33896
|
};
|
|
33789
33897
|
|
|
33790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
33791
33899
|
var rtf = {
|
|
33792
33900
|
id: "rtf",
|
|
33793
33901
|
version: "v1",
|
|
@@ -33795,10 +33903,10 @@ var rtf = {
|
|
|
33795
33903
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
33796
33904
|
};
|
|
33797
33905
|
|
|
33798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
33799
33907
|
import { basename as basename5 } from "node:path";
|
|
33800
33908
|
|
|
33801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
33802
33910
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
33803
33911
|
const cells = [];
|
|
33804
33912
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -33836,7 +33944,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
33836
33944
|
return { cells, truncated };
|
|
33837
33945
|
}, "delimitedSpans");
|
|
33838
33946
|
|
|
33839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
33840
33948
|
var DELIMITED = {
|
|
33841
33949
|
".csv": ",",
|
|
33842
33950
|
".tsv": " ",
|
|
@@ -33875,7 +33983,7 @@ var sheets = {
|
|
|
33875
33983
|
}, "read")
|
|
33876
33984
|
};
|
|
33877
33985
|
|
|
33878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
33879
33987
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
33880
33988
|
var HEAD_BYTES = 1024;
|
|
33881
33989
|
var readers = [...BUILT_INS2];
|
|
@@ -33885,7 +33993,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
33885
33993
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
33886
33994
|
}, "readWithRegistry");
|
|
33887
33995
|
|
|
33888
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
33889
33997
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
33890
33998
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
33891
33999
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -34964,7 +35072,7 @@ function imageSize(input) {
|
|
|
34964
35072
|
}
|
|
34965
35073
|
__name(imageSize, "imageSize");
|
|
34966
35074
|
|
|
34967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
34968
35076
|
var MAX_PAGES = 20;
|
|
34969
35077
|
var MAX_PIXELS = 2e7;
|
|
34970
35078
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -35124,7 +35232,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
35124
35232
|
}
|
|
35125
35233
|
}, "ocrPdf");
|
|
35126
35234
|
|
|
35127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
35128
35236
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
35129
35237
|
const limits = pdfPreviewLimits(env);
|
|
35130
35238
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -35201,7 +35309,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
35201
35309
|
}
|
|
35202
35310
|
}, "pdfPreview");
|
|
35203
35311
|
|
|
35204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
35205
35313
|
import { spawn } from "node:child_process";
|
|
35206
35314
|
import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
35207
35315
|
import { tmpdir } from "node:os";
|
|
@@ -35364,7 +35472,7 @@ Read the attached picture.`,
|
|
|
35364
35472
|
}
|
|
35365
35473
|
}, "readPictureWithAgent");
|
|
35366
35474
|
|
|
35367
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
35368
35476
|
import { createHash as createHash8 } from "node:crypto";
|
|
35369
35477
|
import { constants } from "node:fs";
|
|
35370
35478
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -35472,7 +35580,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
35472
35580
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
35473
35581
|
}, "transferMime");
|
|
35474
35582
|
|
|
35475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
35476
35584
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
35477
35585
|
import { link as link3, rm } from "node:fs/promises";
|
|
35478
35586
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -35551,9 +35659,10 @@ var EXTENSIONS = {
|
|
|
35551
35659
|
var BY_KIND = { photo: "jpg" };
|
|
35552
35660
|
var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { unique: unique2 = false } = {}) => {
|
|
35553
35661
|
const own = safeName(file2.name);
|
|
35662
|
+
const fallback = safeName(fallbackName) ?? "file";
|
|
35554
35663
|
const fileName = /* @__PURE__ */ __name(() => {
|
|
35555
35664
|
const extension = EXTENSIONS[file2.mime ?? ""] ?? BY_KIND[file2.kind];
|
|
35556
|
-
return own ?? (extension ? `${
|
|
35665
|
+
return own ?? (extension ? `${fallback}.${extension}` : fallback);
|
|
35557
35666
|
}, "fileName");
|
|
35558
35667
|
const partial = join17(directory2, `.${fileName()}.${process.pid}.part`);
|
|
35559
35668
|
let bytes2 = 0;
|
|
@@ -35566,7 +35675,7 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
35566
35675
|
try {
|
|
35567
35676
|
await pipeline(Readable.from(file2.bytes()), counting, createWriteStream(partial, { flags: "wx", mode: 384 }));
|
|
35568
35677
|
const name = fileName();
|
|
35569
|
-
const names2 = unique2 && own ? [name, `${
|
|
35678
|
+
const names2 = unique2 && own ? [name, `${fallback}-${own}`] : [name];
|
|
35570
35679
|
for (const candidate of names2) {
|
|
35571
35680
|
const path3 = resolve6(join17(directory2, candidate));
|
|
35572
35681
|
const taken2 = await link3(partial, path3).then(() => false, (error) => {
|
|
@@ -35586,12 +35695,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
35586
35695
|
}
|
|
35587
35696
|
}, "save");
|
|
35588
35697
|
|
|
35589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35590
35699
|
import { createHash as createHash9 } from "node:crypto";
|
|
35591
35700
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
35592
35701
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
35593
35702
|
|
|
35594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
35595
35704
|
var GROUP_SETTINGS = [
|
|
35596
35705
|
"allCanPin",
|
|
35597
35706
|
"onlyAdminsAdd",
|
|
@@ -35605,7 +35714,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
35605
35714
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
35606
35715
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
35607
35716
|
|
|
35608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35609
35718
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
35610
35719
|
var PICTURE_FLOOR = 0.25;
|
|
35611
35720
|
var PAGE3 = 50;
|
|
@@ -35646,7 +35755,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35646
35755
|
const directory2 = imageModelsDirectory(deps.env);
|
|
35647
35756
|
if (!isImageModelInstalled(model2, directory2))
|
|
35648
35757
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
35649
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35758
|
+
const { openPictureEmbedder } = await import("./embedder-S5FKW4XZ.js");
|
|
35650
35759
|
return openPictureEmbedder(model2, directory2);
|
|
35651
35760
|
}, "open");
|
|
35652
35761
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -35820,7 +35929,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
35820
35929
|
}, "search")
|
|
35821
35930
|
}), "withPictures");
|
|
35822
35931
|
|
|
35823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
35824
35933
|
var ATTACHMENT_QUERY = {
|
|
35825
35934
|
entity: "attachment",
|
|
35826
35935
|
backend: "sql",
|
|
@@ -36291,7 +36400,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36291
36400
|
}, "readPicture")
|
|
36292
36401
|
}), "attachmentsService");
|
|
36293
36402
|
|
|
36294
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
36295
36404
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
36296
36405
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
36297
36406
|
const store = await accountStore(deps);
|
|
@@ -36321,7 +36430,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36321
36430
|
}, "list")
|
|
36322
36431
|
}), "chatDocumentsService");
|
|
36323
36432
|
|
|
36324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
36325
36434
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
36326
36435
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
36327
36436
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -36408,7 +36517,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
36408
36517
|
}
|
|
36409
36518
|
}, "isRetentionSelection");
|
|
36410
36519
|
|
|
36411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
36412
36521
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
36413
36522
|
const fields2 = text3.split(",").map((one) => one.trim());
|
|
36414
36523
|
if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
|
|
@@ -36615,7 +36724,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
36615
36724
|
};
|
|
36616
36725
|
}, "countersService");
|
|
36617
36726
|
|
|
36618
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/respell.js
|
|
36619
36728
|
var LATIN = {
|
|
36620
36729
|
\u0430: "a",
|
|
36621
36730
|
\u0431: "b",
|
|
@@ -36670,7 +36779,7 @@ var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
36670
36779
|
return found;
|
|
36671
36780
|
}, "respelled");
|
|
36672
36781
|
|
|
36673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
36674
36783
|
var LEAST_USES = 3;
|
|
36675
36784
|
var SAMPLE2 = 50;
|
|
36676
36785
|
var CAPITALISED = 0.8;
|
|
@@ -36724,7 +36833,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
36724
36833
|
}, "queryWords");
|
|
36725
36834
|
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");
|
|
36726
36835
|
|
|
36727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
36728
36837
|
var SYNC_KEY = "messages.sync-first";
|
|
36729
36838
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
36730
36839
|
var keyOf5 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -36856,7 +36965,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
36856
36965
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
36857
36966
|
}), "withRefresh");
|
|
36858
36967
|
|
|
36859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
36860
36969
|
var CANDIDATES = 50;
|
|
36861
36970
|
var ACROSS_CHATS = 500;
|
|
36862
36971
|
var OWN_BLOCK = 5;
|
|
@@ -36868,6 +36977,7 @@ var SHOWN_CHARS = 200;
|
|
|
36868
36977
|
var SHOWN_HEAD = 80;
|
|
36869
36978
|
var CHUNK_READ = 60;
|
|
36870
36979
|
var REPLIES_READ = 60;
|
|
36980
|
+
var BIG_CONVERSATION = 50;
|
|
36871
36981
|
var RRF_K2 = 60;
|
|
36872
36982
|
var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
36873
36983
|
const command = deps.messenger.app.command;
|
|
@@ -37018,9 +37128,10 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
37018
37128
|
const meaning = texts.map(() => []);
|
|
37019
37129
|
const own = [];
|
|
37020
37130
|
const sources = words3.sources;
|
|
37131
|
+
let vectors = [];
|
|
37021
37132
|
if (target2.installed && prepared.scopeAccounts.length && eligibility?.conversations.length !== 0) {
|
|
37022
37133
|
await withEmbedder(deps, target2, choice, {}, async (embedder) => {
|
|
37023
|
-
|
|
37134
|
+
vectors = await embedder.embed(texts, "query");
|
|
37024
37135
|
for (const [at2, vector] of vectors.entries())
|
|
37025
37136
|
for (const one of prepared.scopeAccounts) {
|
|
37026
37137
|
const scope = scopeOf6(one);
|
|
@@ -37095,7 +37206,23 @@ var embeddingsSearch = /* @__PURE__ */ __name((deps) => {
|
|
|
37095
37206
|
locator: formatLocator({ ...source2, chat: hit.summary.chatId, message: hit.chunk.firstMessageId })
|
|
37096
37207
|
};
|
|
37097
37208
|
}, "located");
|
|
37098
|
-
const
|
|
37209
|
+
const stemmed = [
|
|
37210
|
+
...chunkStems(query).map((stem) => ({ stem, weight: 2 })),
|
|
37211
|
+
...texts.slice(1).flatMap((text3) => chunkStems(text3).map((stem) => ({ stem, weight: 1 })))
|
|
37212
|
+
];
|
|
37213
|
+
const rechunked = /* @__PURE__ */ __name(async (hit) => {
|
|
37214
|
+
const source2 = sources.get(hit.summary.id);
|
|
37215
|
+
if (texts.length < 2 || hit.matchedIn || !vectors.length || !source2)
|
|
37216
|
+
return hit;
|
|
37217
|
+
const chunk = await store.conversations.bestChunk(source2, hit.summary.id, {
|
|
37218
|
+
model: target2.key,
|
|
37219
|
+
vectors,
|
|
37220
|
+
stems: stemmed,
|
|
37221
|
+
over: BIG_CONVERSATION
|
|
37222
|
+
});
|
|
37223
|
+
return chunk ? { ...hit, chunk } : hit;
|
|
37224
|
+
}, "rechunked");
|
|
37225
|
+
const hits = (await Promise.all(fused(meaning.map((list3) => list3.map(({ hit }) => hit)), words3.hits, meaningFloor(target2.key)).slice(0, limit).map(rechunked))).map(located);
|
|
37099
37226
|
const shown = new Set(hits.map((hit) => hit.summary.id));
|
|
37100
37227
|
const ownOf = /* @__PURE__ */ __name((keep2) => own.filter(keep2).sort((a, b) => b.score - a.score).slice(0, OWN_BLOCK).map((hit) => located({ ...hit, by: ["meaning"] })), "ownOf");
|
|
37101
37228
|
const ownHits = ownOf((hit) => !shown.has(hit.summary.id));
|
|
@@ -37243,6 +37370,9 @@ var fused = /* @__PURE__ */ __name((meaning, words3, minimumCosine) => {
|
|
|
37243
37370
|
});
|
|
37244
37371
|
return [...merged3.values()].sort((a, b) => b.fused - a.fused || (b.score ?? -2) - (a.score ?? -2)).map(({ fused: _, ...hit }) => hit);
|
|
37245
37372
|
}, "fused");
|
|
37373
|
+
var chunkStems = /* @__PURE__ */ __name((text3) => [
|
|
37374
|
+
...new Set((text3.toLowerCase().match(/[\p{L}\p{N}_]+/gu) ?? []).filter((word) => word.length >= 3).map((word) => word.slice(0, 5)))
|
|
37375
|
+
], "chunkStems");
|
|
37246
37376
|
var wordStems = /* @__PURE__ */ __name((text3) => [...new Set(queryWords2(text3).map((word) => word.slice(0, 5)))], "wordStems");
|
|
37247
37377
|
var shownLines = /* @__PURE__ */ __name((read2, stems, ownFirst, asked, count3 = SHOWN_LINES) => {
|
|
37248
37378
|
const scored = read2.map(({ text: text3, ...line3 }, at2) => {
|
|
@@ -37296,13 +37426,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
37296
37426
|
return mean2.map((value) => value / length);
|
|
37297
37427
|
}, "meanOf");
|
|
37298
37428
|
|
|
37299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
37300
37430
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
37301
37431
|
...embeddingsMaintenance(deps),
|
|
37302
37432
|
...embeddingsSearch(deps)
|
|
37303
37433
|
}), "embeddingsService");
|
|
37304
37434
|
|
|
37305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37435
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
37306
37436
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
37307
37437
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
37308
37438
|
if (deps.offline)
|
|
@@ -37443,7 +37573,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
37443
37573
|
};
|
|
37444
37574
|
}, "foldersService");
|
|
37445
37575
|
|
|
37446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
37447
37577
|
var REVIEW_COUNT = 500;
|
|
37448
37578
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
37449
37579
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -37522,7 +37652,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37522
37652
|
};
|
|
37523
37653
|
}, "mentionsService");
|
|
37524
37654
|
|
|
37525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
37526
37656
|
var invalid5 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
37527
37657
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
37528
37658
|
const { text: text3, spans } = formatted2;
|
|
@@ -37582,7 +37712,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
37582
37712
|
};
|
|
37583
37713
|
}, "visibleFormattedText");
|
|
37584
37714
|
|
|
37585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
37586
37716
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
37587
37717
|
position,
|
|
37588
37718
|
kind: kind2,
|
|
@@ -37631,7 +37761,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
37631
37761
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
37632
37762
|
}, "validatePermalink");
|
|
37633
37763
|
|
|
37634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
37635
37765
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
37636
37766
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
37637
37767
|
return `${seconds / 86400}d`;
|
|
@@ -37663,7 +37793,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
37663
37793
|
return seconds;
|
|
37664
37794
|
}, "pinDurationOf");
|
|
37665
37795
|
|
|
37666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
37667
37797
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
37668
37798
|
if (sendAs === void 0) {
|
|
37669
37799
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -37688,7 +37818,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
37688
37818
|
return sendAs;
|
|
37689
37819
|
}, "typedSendAs");
|
|
37690
37820
|
|
|
37691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
37692
37822
|
var TOTAL_CAP = 1e4;
|
|
37693
37823
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
37694
37824
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -37699,7 +37829,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
37699
37829
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
37700
37830
|
}, "totalOf");
|
|
37701
37831
|
|
|
37702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
37703
37833
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
37704
37834
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
37705
37835
|
let narrows = false;
|
|
@@ -37728,7 +37858,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
37728
37858
|
return wanted(root).join(" ").trim();
|
|
37729
37859
|
}, "meaningWords");
|
|
37730
37860
|
|
|
37731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
37732
37862
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
37733
37863
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
37734
37864
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -37929,7 +38059,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
37929
38059
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
37930
38060
|
}, "signals");
|
|
37931
38061
|
|
|
37932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
37933
38063
|
var MEANING_DEPTH = 100;
|
|
37934
38064
|
var RRF_K3 = 60;
|
|
37935
38065
|
var RERANK_DEPTH = 50;
|
|
@@ -38255,7 +38385,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
38255
38385
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
38256
38386
|
}, "mixedWithReranker");
|
|
38257
38387
|
|
|
38258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
38259
38389
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
38260
38390
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
38261
38391
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -38454,7 +38584,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
38454
38584
|
return result;
|
|
38455
38585
|
}, "readThreadContext");
|
|
38456
38586
|
|
|
38457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
38458
38588
|
var SEARCH_FILL_MS = 200;
|
|
38459
38589
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
38460
38590
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -38562,7 +38692,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
38562
38692
|
}, "accountOf");
|
|
38563
38693
|
var keyOf6 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
38564
38694
|
|
|
38565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
38566
38696
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
38567
38697
|
const chosen = chosenTextModel(env);
|
|
38568
38698
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -38577,7 +38707,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
38577
38707
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
38578
38708
|
}, "meaningModel");
|
|
38579
38709
|
|
|
38580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
38581
38711
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
38582
38712
|
try {
|
|
38583
38713
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -38656,7 +38786,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
38656
38786
|
}
|
|
38657
38787
|
}, "meaningLane");
|
|
38658
38788
|
|
|
38659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
38660
38790
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
38661
38791
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
38662
38792
|
if (choice === "off")
|
|
@@ -38668,9 +38798,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
38668
38798
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
38669
38799
|
try {
|
|
38670
38800
|
const warm = deps.embedders;
|
|
38671
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
38801
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-TEQQZ3C5.js")).openRerankerProcess(model, directory2, {
|
|
38672
38802
|
threads: defaultThreads()
|
|
38673
|
-
})) : await (await import("./rerank-
|
|
38803
|
+
})) : await (await import("./rerank-IQ6GPSJ6.js")).openReranker(model, directory2);
|
|
38674
38804
|
return {
|
|
38675
38805
|
model: model.id,
|
|
38676
38806
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -38690,7 +38820,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
38690
38820
|
};
|
|
38691
38821
|
}, "rerankLane");
|
|
38692
38822
|
|
|
38693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
38694
38824
|
var DAY7 = 864e5;
|
|
38695
38825
|
var SPAN = { start: 0, end: 0 };
|
|
38696
38826
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -38815,17 +38945,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
38815
38945
|
};
|
|
38816
38946
|
}, "questionPeriod");
|
|
38817
38947
|
|
|
38818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
38819
38949
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
38820
38950
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
38821
38951
|
const directory2 = imageModelsDirectory(env);
|
|
38822
38952
|
if (!isImageModelInstalled(model, directory2))
|
|
38823
38953
|
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 });
|
|
38824
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
38954
|
+
const { openPictureEmbedder } = await import("./embedder-S5FKW4XZ.js");
|
|
38825
38955
|
return openPictureEmbedder(model, directory2);
|
|
38826
38956
|
}, "openPictureEmbedderFor");
|
|
38827
38957
|
|
|
38828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38958
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
38829
38959
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
38830
38960
|
const metadata = note.frontMatter;
|
|
38831
38961
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -38847,7 +38977,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
38847
38977
|
};
|
|
38848
38978
|
}, "documentSource");
|
|
38849
38979
|
|
|
38850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
38851
38981
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
38852
38982
|
const host = new URL(baseUrl).host;
|
|
38853
38983
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -38880,7 +39010,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
38880
39010
|
};
|
|
38881
39011
|
}, "embeddingKeys");
|
|
38882
39012
|
|
|
38883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
38884
39014
|
var options = strictObject({
|
|
38885
39015
|
temperature: range(0, 2),
|
|
38886
39016
|
top_p: range(0, 1),
|
|
@@ -38947,7 +39077,7 @@ var openai = {
|
|
|
38947
39077
|
}), "complete")
|
|
38948
39078
|
};
|
|
38949
39079
|
|
|
38950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
38951
39081
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
38952
39082
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
38953
39083
|
if (deps.signal?.aborted)
|
|
@@ -38962,7 +39092,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
38962
39092
|
if (!adapter && target2.provider === "openai")
|
|
38963
39093
|
adapter = openai;
|
|
38964
39094
|
if (!adapter && target2.provider === "anthropic")
|
|
38965
|
-
adapter = (await import("./anthropic-
|
|
39095
|
+
adapter = (await import("./anthropic-4HCGQIHA.js")).anthropic;
|
|
38966
39096
|
if (!adapter)
|
|
38967
39097
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
38968
39098
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -39022,7 +39152,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
39022
39152
|
}, "complete")
|
|
39023
39153
|
}), "modelGateway");
|
|
39024
39154
|
|
|
39025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
39026
39156
|
var SECTION2 = "enrichment";
|
|
39027
39157
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
39028
39158
|
var DEFAULT_BASE_URLS = {
|
|
@@ -39097,7 +39227,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
39097
39227
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
39098
39228
|
}, "costOf");
|
|
39099
39229
|
|
|
39100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
39101
39231
|
var ENRICH_PER_RUN = 600;
|
|
39102
39232
|
var MAX_LINE = 400;
|
|
39103
39233
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -39173,7 +39303,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
39173
39303
|
};
|
|
39174
39304
|
}, "enrichmentState");
|
|
39175
39305
|
|
|
39176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
39177
39307
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
39178
39308
|
let root;
|
|
39179
39309
|
try {
|
|
@@ -39200,7 +39330,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
39200
39330
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
39201
39331
|
}, "titleTiers");
|
|
39202
39332
|
|
|
39203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
39204
39334
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
39205
39335
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
39206
39336
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -39628,7 +39758,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
39628
39758
|
};
|
|
39629
39759
|
}, "searchNotesOf");
|
|
39630
39760
|
|
|
39631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
39632
39762
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
39633
39763
|
var iso3 = /* @__PURE__ */ __name((at2) => at2 === null ? null : new Date(at2).toISOString(), "iso");
|
|
39634
39764
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -39746,7 +39876,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
39746
39876
|
};
|
|
39747
39877
|
}, "searchEvents");
|
|
39748
39878
|
|
|
39749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39879
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
39750
39880
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
39751
39881
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
39752
39882
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -39776,7 +39906,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
39776
39906
|
};
|
|
39777
39907
|
}, "searchBusiness");
|
|
39778
39908
|
|
|
39779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
39780
39910
|
var MOST_HITS_PER_MEETING = 3;
|
|
39781
39911
|
var PAGE_ROWS = 200;
|
|
39782
39912
|
var MOST_PAGES3 = 25;
|
|
@@ -40004,7 +40134,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
40004
40134
|
foundBy: ["title"]
|
|
40005
40135
|
}), "titleItem");
|
|
40006
40136
|
|
|
40007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
40008
40138
|
var SECTION3 = "search_harder";
|
|
40009
40139
|
var HARDER_MODELS = {
|
|
40010
40140
|
anthropic: "claude-haiku-5-5",
|
|
@@ -40250,7 +40380,17 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
40250
40380
|
};
|
|
40251
40381
|
}, "reorderHarder");
|
|
40252
40382
|
|
|
40253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/tracker-meaning.js
|
|
40384
|
+
var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accounts, env, command, embedders }) => {
|
|
40385
|
+
const { model, directory: directory2, key } = localModel(await meaningModel(store, env), env, command);
|
|
40386
|
+
if (!await store.tracker.embedded(key, accounts))
|
|
40387
|
+
throw new CliError("not_found", `no issue, project or comment has vectors of ${model.id} yet, so only words were matched`);
|
|
40388
|
+
const [vector] = await withLocal(model, directory2, void 0, (embedder) => embedder.embed([words3], "query"), embedders);
|
|
40389
|
+
const floor = meaningFloor(key);
|
|
40390
|
+
return (await store.tracker.nearest(key, vector, { limit, accounts })).filter(({ score }) => score > floor);
|
|
40391
|
+
}, "nearestTracker");
|
|
40392
|
+
|
|
40393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
40254
40394
|
var RESOURCES_SEARCHED = [
|
|
40255
40395
|
"messages",
|
|
40256
40396
|
"mail",
|
|
@@ -40298,14 +40438,21 @@ var strictWords = /* @__PURE__ */ __name((text3) => {
|
|
|
40298
40438
|
}, "strictWords");
|
|
40299
40439
|
var accountKeyOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}\0${account}`, "accountKeyOf");
|
|
40300
40440
|
var sourceScope = /* @__PURE__ */ __name(async (store, account, source, asked, messenger) => {
|
|
40301
|
-
const
|
|
40441
|
+
const context2 = await listContextOf(store, account, messenger.app);
|
|
40442
|
+
const entries = entriesOfList(source, context2);
|
|
40302
40443
|
const imported = asked.includes("business") ? new Set((await store.business.accounts()).map(accountKeyOf)) : /* @__PURE__ */ new Set();
|
|
40303
40444
|
const holdsBusiness = /* @__PURE__ */ __name((one) => imported.has(accountKeyOf(one)), "holdsBusiness");
|
|
40304
40445
|
const holdsDocuments = /* @__PURE__ */ __name((one) => asked.includes("notes") && holdsKind(one.provider, "documents"), "holdsDocuments");
|
|
40305
40446
|
const { skipped } = fitting(entries, asked.filter((one) => one !== "business"), "search all", (kind2) => `--only leaves ${kind2} out`, (one) => holdsBusiness(one) || holdsDocuments(one));
|
|
40306
40447
|
const holds2 = /* @__PURE__ */ __name((resource, one) => resource === "business" ? holdsBusiness(one) : listedHolds(one, resource) || resource === "notes" && holdsDocuments(one), "holds");
|
|
40448
|
+
const asNotes = /* @__PURE__ */ __name((one) => {
|
|
40449
|
+
if (!isDocumentAccountProvider(one.provider))
|
|
40450
|
+
return one;
|
|
40451
|
+
const stored = context2.held.find(({ provider, account: account2 }) => provider === one.provider && account2 === one.account);
|
|
40452
|
+
return stored ? { provider: "notes", account: String(stored.id) } : one;
|
|
40453
|
+
}, "asNotes");
|
|
40307
40454
|
const named3 = /* @__PURE__ */ __name((resource) => [
|
|
40308
|
-
...new Map(entries.flatMap(({ accounts }) => accounts).filter((one) => holds2(resource, one)).map(({ provider, account: account2 }) => [`${provider}\0${account2}`, { provider, account: account2 }])).values()
|
|
40455
|
+
...new Map(entries.flatMap(({ accounts }) => accounts).filter((one) => holds2(resource, one)).map((one) => resource === "notes" ? asNotes(one) : one).map(({ provider, account: account2 }) => [`${provider}\0${account2}`, { provider, account: account2 }])).values()
|
|
40309
40456
|
], "named");
|
|
40310
40457
|
const scope = Object.fromEntries(asked.map((resource) => [resource, named3(resource)]));
|
|
40311
40458
|
const only = asked.filter((resource) => scope[resource]?.length);
|
|
@@ -40328,6 +40475,35 @@ var trackerTitle = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }) =>
|
|
|
40328
40475
|
const key = kind2 === "issue" ? record2.key : void 0;
|
|
40329
40476
|
return key ? `${key} ${title}` : title;
|
|
40330
40477
|
}, "trackerTitle");
|
|
40478
|
+
var trackerMeaningWords = /* @__PURE__ */ __name((text3) => {
|
|
40479
|
+
try {
|
|
40480
|
+
const { root } = parseLucene(text3, SEARCH_QUERY);
|
|
40481
|
+
const nodes = root.kind === "boolean" ? root.clauses.map(({ node }) => node) : [root];
|
|
40482
|
+
if (!nodes.every((node) => node.kind === "predicate" && node.field === "text"))
|
|
40483
|
+
return void 0;
|
|
40484
|
+
return meaningWords(root) || void 0;
|
|
40485
|
+
} catch {
|
|
40486
|
+
return void 0;
|
|
40487
|
+
}
|
|
40488
|
+
}, "trackerMeaningWords");
|
|
40489
|
+
var trackerExcerpt = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }, query) => excerpt([trackerTitleOf(kind2, record2), trackerBodyOf(kind2, record2)].filter(Boolean).join("\n"), query), "trackerExcerpt");
|
|
40490
|
+
var oneHitPerItem = /* @__PURE__ */ __name((ordered, cosines, items) => {
|
|
40491
|
+
const kept3 = /* @__PURE__ */ new Map();
|
|
40492
|
+
for (const hit of ordered) {
|
|
40493
|
+
const key = items.get(hit.ref) ?? hit.ref;
|
|
40494
|
+
const held = kept3.get(key);
|
|
40495
|
+
if (!held) {
|
|
40496
|
+
kept3.set(key, hit);
|
|
40497
|
+
continue;
|
|
40498
|
+
}
|
|
40499
|
+
held.accounts = [...held.accounts ?? [held.account], hit.account];
|
|
40500
|
+
held.foundBy = ["words", "meaning"].filter((by) => [held, hit].some(({ foundBy }) => foundBy.includes(by)));
|
|
40501
|
+
const cosine = cosines.get(hit.ref);
|
|
40502
|
+
if (cosine !== void 0 && cosine > (cosines.get(held.ref) ?? Number.NEGATIVE_INFINITY))
|
|
40503
|
+
cosines.set(held.ref, cosine);
|
|
40504
|
+
}
|
|
40505
|
+
return [...kept3.values()];
|
|
40506
|
+
}, "oneHitPerItem");
|
|
40331
40507
|
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => holdsKind(provider, "crm")), "crmAccounts");
|
|
40332
40508
|
var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
40333
40509
|
if (!asked.text.trim())
|
|
@@ -40349,6 +40525,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40349
40525
|
let hasMore = false;
|
|
40350
40526
|
let notes;
|
|
40351
40527
|
let events;
|
|
40528
|
+
let tracker;
|
|
40352
40529
|
const by = {};
|
|
40353
40530
|
let server;
|
|
40354
40531
|
const discover = !request.exact && questionLookup(request.text) !== void 0;
|
|
@@ -40570,28 +40747,82 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40570
40747
|
const read2 = scope?.tracker ?? await trackerAccounts(store);
|
|
40571
40748
|
if (!read2.length)
|
|
40572
40749
|
continue;
|
|
40573
|
-
const { words: words3, anyWord } = titleWords2(request.text, "issues, projects and comments are found by the words of their title and text only");
|
|
40750
|
+
const { words: words3, anyWord } = titleWords2(request.text, "issues, projects and comments are found by the words and meaning of their title and text only");
|
|
40751
|
+
const deep = Math.min(depth * read2.length, 500);
|
|
40574
40752
|
const found = await store.tracker.find({
|
|
40575
40753
|
words: words3,
|
|
40576
40754
|
anyWord: anyWord || discover,
|
|
40577
40755
|
...request.exact ? { exact: true } : {},
|
|
40578
40756
|
kinds: ["issue", "project", "comment"],
|
|
40579
|
-
limit:
|
|
40757
|
+
limit: deep,
|
|
40580
40758
|
accounts: read2
|
|
40581
40759
|
});
|
|
40582
40760
|
hasMore ||= found.hasMore;
|
|
40583
|
-
|
|
40584
|
-
|
|
40585
|
-
|
|
40586
|
-
|
|
40587
|
-
|
|
40588
|
-
|
|
40589
|
-
|
|
40590
|
-
|
|
40591
|
-
|
|
40592
|
-
|
|
40593
|
-
|
|
40594
|
-
|
|
40761
|
+
const items = /* @__PURE__ */ new Map();
|
|
40762
|
+
const hitOf = /* @__PURE__ */ __name((at2, item2, text3, foundBy) => {
|
|
40763
|
+
const ref = `tracker:${at2.provider}/${at2.account}/${item2.kind}/${item2.record.externalId}`;
|
|
40764
|
+
if (hasGlobalItemIds(at2.provider))
|
|
40765
|
+
items.set(ref, JSON.stringify([at2.provider, item2.kind, item2.record.externalId]));
|
|
40766
|
+
return {
|
|
40767
|
+
kind: TRACKER_HIT_KINDS[item2.kind],
|
|
40768
|
+
// Two sign-ins see the same issue under the same id, so the account keeps their hits apart.
|
|
40769
|
+
ref,
|
|
40770
|
+
provider: at2.provider,
|
|
40771
|
+
account: at2.account,
|
|
40772
|
+
...item2.record.url ? { url: item2.record.url } : {},
|
|
40773
|
+
title: trackerTitle(item2),
|
|
40774
|
+
timestamp: new Date(item2.record.updatedAt ?? item2.syncedAt).toISOString(),
|
|
40775
|
+
text: text3,
|
|
40776
|
+
foundBy
|
|
40777
|
+
};
|
|
40778
|
+
}, "hitOf");
|
|
40779
|
+
const byWords = found.items.map(({ account: at2, item: item2, excerpt: text3 }) => hitOf(at2, item2, text3, ["words"]));
|
|
40780
|
+
const plain2 = trackerMeaningWords(discover ? questionText(request.text) : request.text);
|
|
40781
|
+
let near2;
|
|
40782
|
+
let meaningSkipped;
|
|
40783
|
+
if (request.exact)
|
|
40784
|
+
meaningSkipped = "--exact searches words as written";
|
|
40785
|
+
else if (plain2 === void 0)
|
|
40786
|
+
meaningSkipped = "the query names a title, which meaning cannot follow";
|
|
40787
|
+
else
|
|
40788
|
+
try {
|
|
40789
|
+
near2 = await nearestTracker(store, plain2, {
|
|
40790
|
+
limit: deep,
|
|
40791
|
+
accounts: read2,
|
|
40792
|
+
embedders,
|
|
40793
|
+
...command === void 0 ? {} : { command },
|
|
40794
|
+
...request.env === void 0 ? {} : { env: request.env }
|
|
40795
|
+
});
|
|
40796
|
+
} catch (error) {
|
|
40797
|
+
if (!(error instanceof CliError && error.code === "not_found"))
|
|
40798
|
+
throw error;
|
|
40799
|
+
meaningSkipped = error.message;
|
|
40800
|
+
}
|
|
40801
|
+
tracker = {
|
|
40802
|
+
by: near2 === void 0 ? "words" : "words and meaning",
|
|
40803
|
+
...meaningSkipped === void 0 ? {} : { meaningSkipped }
|
|
40804
|
+
};
|
|
40805
|
+
if (near2 === void 0)
|
|
40806
|
+
lists.push(oneHitPerItem(byWords, cosines, items));
|
|
40807
|
+
else {
|
|
40808
|
+
const fused2 = /* @__PURE__ */ new Map();
|
|
40809
|
+
byWords.forEach((item2, rank) => {
|
|
40810
|
+
fused2.set(item2.ref, { item: item2, score: 1 / (RRF_K + rank + 1) });
|
|
40811
|
+
});
|
|
40812
|
+
near2.forEach(({ account: at2, item: item2, score }, rank) => {
|
|
40813
|
+
const hit = hitOf(at2, item2, trackerExcerpt(item2, request.text), ["meaning"]);
|
|
40814
|
+
cosines.set(hit.ref, score);
|
|
40815
|
+
const held = fused2.get(hit.ref);
|
|
40816
|
+
if (held)
|
|
40817
|
+
held.item.foundBy = ["words", "meaning"];
|
|
40818
|
+
const vote = 1 / (RRF_K + rank + 1);
|
|
40819
|
+
if (held && discover)
|
|
40820
|
+
held.score = Math.max(held.score, vote);
|
|
40821
|
+
else
|
|
40822
|
+
fused2.set(hit.ref, { item: held?.item ?? hit, score: (held?.score ?? 0) + vote });
|
|
40823
|
+
});
|
|
40824
|
+
lists.push(oneHitPerItem([...fused2.values()].sort((a, b) => b.score - a.score).map(({ item: item2 }) => item2), cosines, items));
|
|
40825
|
+
}
|
|
40595
40826
|
for (const { provider, account: account2 } of read2)
|
|
40596
40827
|
accounts.push({ resource, provider, account: account2 });
|
|
40597
40828
|
} else if (resource === "business") {
|
|
@@ -40674,6 +40905,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
40674
40905
|
skipped,
|
|
40675
40906
|
...notes === void 0 ? {} : { notes },
|
|
40676
40907
|
...events === void 0 ? {} : { events },
|
|
40908
|
+
...tracker === void 0 ? {} : { tracker },
|
|
40677
40909
|
...by.messages === void 0 ? {} : { messages: by.messages },
|
|
40678
40910
|
...by.mail === void 0 ? {} : { mail: by.mail },
|
|
40679
40911
|
...server === void 0 ? {} : { server },
|
|
@@ -40739,10 +40971,14 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
40739
40971
|
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);
|
|
40740
40972
|
}, "insidePeriodFirst");
|
|
40741
40973
|
|
|
40742
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40974
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
40743
40975
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
40744
40976
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
40745
40977
|
var DEFAULT_BACKEND = "both";
|
|
40978
|
+
var keysOf2 = /* @__PURE__ */ __name((error) => {
|
|
40979
|
+
const { reason } = error.details;
|
|
40980
|
+
return { code: error.code, ...typeof reason === "string" ? { reason } : {} };
|
|
40981
|
+
}, "keysOf");
|
|
40746
40982
|
var sourceKey = /* @__PURE__ */ __name((chatId, id3) => JSON.stringify([chatId, id3]), "sourceKey");
|
|
40747
40983
|
var merge = /* @__PURE__ */ __name((one, other) => {
|
|
40748
40984
|
if (one.chat !== void 0 && other.chat !== void 0 && one.chat !== other.chat)
|
|
@@ -40867,10 +41103,14 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
40867
41103
|
const pending = new Set(calls);
|
|
40868
41104
|
const found = [];
|
|
40869
41105
|
let open7 = true;
|
|
40870
|
-
const fail2 = /* @__PURE__ */ __name((branch, reason) => {
|
|
41106
|
+
const fail2 = /* @__PURE__ */ __name((branch, reason, error) => {
|
|
40871
41107
|
pending.delete(branch);
|
|
40872
41108
|
report.complete = false;
|
|
40873
|
-
report.failed.push({
|
|
41109
|
+
report.failed.push({
|
|
41110
|
+
chat: branch.chat ?? null,
|
|
41111
|
+
reason,
|
|
41112
|
+
...error instanceof CliError ? { error: keysOf2(error) } : {}
|
|
41113
|
+
});
|
|
40874
41114
|
}, "fail");
|
|
40875
41115
|
const ask2 = /* @__PURE__ */ __name(async (adapter) => {
|
|
40876
41116
|
const search = capability(adapter, "searchMessages", "search messages on its server");
|
|
@@ -40889,7 +41129,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
40889
41129
|
} catch (error) {
|
|
40890
41130
|
if (!open7)
|
|
40891
41131
|
return;
|
|
40892
|
-
fail2(branch, error instanceof CliError && error.code === "rate_limited" ? "rate_limited" : "search_failed");
|
|
41132
|
+
fail2(branch, error instanceof CliError && error.code === "rate_limited" ? "rate_limited" : "search_failed", error);
|
|
40893
41133
|
}
|
|
40894
41134
|
}));
|
|
40895
41135
|
}, "ask");
|
|
@@ -40930,7 +41170,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
40930
41170
|
return { report, sources };
|
|
40931
41171
|
}, "searchServer");
|
|
40932
41172
|
|
|
40933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
40934
41174
|
var DELETE_AT_ONCE = 10;
|
|
40935
41175
|
var atOnce = /* @__PURE__ */ __name((ids) => {
|
|
40936
41176
|
if (ids.length > DELETE_AT_ONCE)
|
|
@@ -41430,7 +41670,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
41430
41670
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
41431
41671
|
}, "checkMediaOptions");
|
|
41432
41672
|
|
|
41433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
41434
41674
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
41435
41675
|
var RULES2 = {
|
|
41436
41676
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -41445,7 +41685,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
41445
41685
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
41446
41686
|
}), "classifyChannel");
|
|
41447
41687
|
|
|
41448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
41449
41689
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
41450
41690
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
41451
41691
|
const store = await deps.store();
|
|
@@ -41531,7 +41771,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
41531
41771
|
};
|
|
41532
41772
|
}, "metadataService");
|
|
41533
41773
|
|
|
41534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
41535
41775
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
41536
41776
|
var LINK2 = /https?:\/\/\S+/i;
|
|
41537
41777
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -41719,7 +41959,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
41719
41959
|
}, "nextPoint");
|
|
41720
41960
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
41721
41961
|
|
|
41722
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
41962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
41723
41963
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync9 } from "node:fs";
|
|
41724
41964
|
import { join as join18 } from "node:path";
|
|
41725
41965
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -41871,7 +42111,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
41871
42111
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
41872
42112
|
}, "assign");
|
|
41873
42113
|
|
|
41874
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
41875
42115
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
41876
42116
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
41877
42117
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -41908,7 +42148,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
41908
42148
|
return { chatId, rows, notes };
|
|
41909
42149
|
}, "moderateWith");
|
|
41910
42150
|
|
|
41911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
41912
42152
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
41913
42153
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
41914
42154
|
const env = deps.env ?? process.env;
|
|
@@ -41993,7 +42233,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
41993
42233
|
}, "removePerson")
|
|
41994
42234
|
}), "moderatorOf");
|
|
41995
42235
|
|
|
41996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
41997
42237
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
41998
42238
|
id: note.id,
|
|
41999
42239
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -42037,7 +42277,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
42037
42277
|
};
|
|
42038
42278
|
}, "privatePeopleService");
|
|
42039
42279
|
|
|
42040
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
42041
42281
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
42042
42282
|
total: 0,
|
|
42043
42283
|
population: 0,
|
|
@@ -42293,7 +42533,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
42293
42533
|
}, "evidence")
|
|
42294
42534
|
}), "rankingsService");
|
|
42295
42535
|
|
|
42296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
42297
42537
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
42298
42538
|
var WAITING_TAIL = 100;
|
|
42299
42539
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -42427,7 +42667,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42427
42667
|
};
|
|
42428
42668
|
}, "replyStatsService");
|
|
42429
42669
|
|
|
42430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
42431
42671
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
42432
42672
|
id: one.id,
|
|
42433
42673
|
name: one.name,
|
|
@@ -42553,7 +42793,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
42553
42793
|
};
|
|
42554
42794
|
}, "searchesService");
|
|
42555
42795
|
|
|
42556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
42557
42797
|
var TAGGING_QUERY = {
|
|
42558
42798
|
entity: "tagging",
|
|
42559
42799
|
backend: "sql",
|
|
@@ -42637,7 +42877,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42637
42877
|
};
|
|
42638
42878
|
}, "tagsService");
|
|
42639
42879
|
|
|
42640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
42641
42881
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
42642
42882
|
const set2 = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
42643
42883
|
if (title !== void 0 || icon !== void 0 || set2 !== 1)
|
|
@@ -42836,7 +43076,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42836
43076
|
};
|
|
42837
43077
|
}, "topicsService");
|
|
42838
43078
|
|
|
42839
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
42840
43080
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
42841
43081
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
42842
43082
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -42910,7 +43150,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
42910
43150
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
42911
43151
|
}, "prepareEvidencePacket");
|
|
42912
43152
|
|
|
42913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
42914
43154
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
42915
43155
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
42916
43156
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -42930,7 +43170,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
42930
43170
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
42931
43171
|
}, "readEvidencePacket");
|
|
42932
43172
|
|
|
42933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
42934
43174
|
var scopeKeys = [
|
|
42935
43175
|
"accountId",
|
|
42936
43176
|
"meetingId",
|
|
@@ -42952,7 +43192,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
42952
43192
|
"maxVocabularyReadBytes"
|
|
42953
43193
|
]);
|
|
42954
43194
|
|
|
42955
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
42956
43196
|
import { createHash as createHash12 } from "node:crypto";
|
|
42957
43197
|
import { existsSync as existsSync3 } from "node:fs";
|
|
42958
43198
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -43083,14 +43323,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
43083
43323
|
return { ...checked2.output, custom: true };
|
|
43084
43324
|
}, "addCustomTextModel");
|
|
43085
43325
|
|
|
43086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
43087
43327
|
var DAY8 = 864e5;
|
|
43088
43328
|
var SLOTS_EVERY = 7 * DAY8;
|
|
43089
43329
|
|
|
43090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
43091
43331
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
43092
43332
|
|
|
43093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
43094
43334
|
var LIST = "events list";
|
|
43095
43335
|
var EVENT_TYPES = [
|
|
43096
43336
|
"default",
|
|
@@ -43149,7 +43389,7 @@ var EVENTS_QUERY = {
|
|
|
43149
43389
|
} : field)
|
|
43150
43390
|
};
|
|
43151
43391
|
|
|
43152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
43153
43393
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
43154
43394
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
43155
43395
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -43167,7 +43407,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
43167
43407
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
43168
43408
|
};
|
|
43169
43409
|
|
|
43170
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
43171
43411
|
var communicationFields = {
|
|
43172
43412
|
sources: pipe(array(strictObject({
|
|
43173
43413
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -43199,7 +43439,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
43199
43439
|
return { ...input, after, before };
|
|
43200
43440
|
}, "communicationRequest");
|
|
43201
43441
|
|
|
43202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
43203
43443
|
var MEETING_PREPARATION_LIMITS = {
|
|
43204
43444
|
meetings: { min: 1, max: 20, default: 5 },
|
|
43205
43445
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -43272,7 +43512,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
43272
43512
|
};
|
|
43273
43513
|
}, "validateMeetingPreparationRequest");
|
|
43274
43514
|
|
|
43275
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
43276
43516
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
43277
43517
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
43278
43518
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -43320,7 +43560,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
43320
43560
|
}
|
|
43321
43561
|
}, "validatePreparationCommunications");
|
|
43322
43562
|
|
|
43323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
43324
43564
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
43325
43565
|
const installer = ports.installer();
|
|
43326
43566
|
const argv = updateCommand(installer, packageName);
|
|
@@ -43385,7 +43625,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
43385
43625
|
return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
|
|
43386
43626
|
}, "dayAfter");
|
|
43387
43627
|
|
|
43388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.736.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_ed71afeebbb7e8ab4e7528bc1c5650a7/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
43389
43629
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
43390
43630
|
const pictures = picturesService(deps);
|
|
43391
43631
|
const base = {
|
|
@@ -43490,8 +43730,10 @@ export {
|
|
|
43490
43730
|
fetchInto,
|
|
43491
43731
|
GAP_BOUNDS,
|
|
43492
43732
|
typesText,
|
|
43733
|
+
realPathOf,
|
|
43493
43734
|
refuseLockedOutput,
|
|
43494
43735
|
refusedPlace,
|
|
43736
|
+
inside,
|
|
43495
43737
|
readUpload,
|
|
43496
43738
|
readAttachments,
|
|
43497
43739
|
readStickerFile,
|
|
@@ -43575,6 +43817,8 @@ export {
|
|
|
43575
43817
|
RECORD_ID,
|
|
43576
43818
|
createCrmRecord,
|
|
43577
43819
|
updateCrmRecord,
|
|
43820
|
+
createCrmActivity,
|
|
43821
|
+
completeCrmActivity,
|
|
43578
43822
|
crmManifestWriteCapabilities,
|
|
43579
43823
|
crmManifestWriteKeys,
|
|
43580
43824
|
crmManifestWrites,
|