@wirecat/attio-cli 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +2 -2
- package/dist/activities.d.ts.map +1 -1
- package/dist/activities.js +2 -1
- package/dist/activities.js.map +1 -1
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-C3SZOGZS.js +38 -0
- package/dist/bundle/{all-profiles-63N3EQ46.js → all-profiles-673VSTRG.js} +7 -7
- package/dist/bundle/{anthropic-B4W7MZQE.js → anthropic-V4RZS5XM.js} +3 -3
- package/dist/bundle/{app-server-EXNGTHWO.js → app-server-CTEDPA5H.js} +55 -56
- package/dist/bundle/attio.js +3 -3
- package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-NBAY7FR2.js → bun-sqlite-33JTNHCK.js} +4 -4
- package/dist/bundle/{chunk-L72WUJAS.js → chunk-2R2EX5I6.js} +2 -2
- package/dist/bundle/{chunk-SCI7QEHF.js → chunk-5EH7S4RM.js} +7 -7
- package/dist/bundle/{chunk-V57E7PJQ.js → chunk-5WY6RURV.js} +4 -4
- package/dist/bundle/{chunk-X5UPBSTP.js → chunk-6E5QWCBK.js} +1 -1
- package/dist/bundle/{chunk-RQORQN2V.js → chunk-6V7ZUJI6.js} +51 -51
- package/dist/bundle/{chunk-UDSL3MUU.js → chunk-AOKAYQSJ.js} +14 -9
- package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-J6GVVISK.js → chunk-B4DVW2BA.js} +7 -7
- package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
- package/dist/bundle/{chunk-JIGEJZ4I.js → chunk-DBHZ7TQ7.js} +3696 -2811
- package/dist/bundle/{chunk-DPD4FMHN.js → chunk-E2L4R6EI.js} +3 -3
- package/dist/bundle/{chunk-YNGU36GW.js → chunk-EDWRHVHD.js} +11 -11
- package/dist/bundle/{chunk-4RSWOPKL.js → chunk-EV6B3GHM.js} +7 -7
- package/dist/bundle/{chunk-OYEVYOCL.js → chunk-FBWECICU.js} +5 -5
- package/dist/bundle/{chunk-JG6LCSEX.js → chunk-FFER7KJI.js} +12 -12
- package/dist/bundle/{chunk-3HC5F3P7.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/{chunk-MCLQTCGH.js → chunk-G3PK5BZB.js} +34 -14
- package/dist/bundle/{chunk-NISH4UXM.js → chunk-G46PNDWL.js} +1 -1
- package/dist/bundle/{chunk-LKH3UKLO.js → chunk-G6NY7LFB.js} +3 -3
- package/dist/bundle/{chunk-V7IF2K3P.js → chunk-GLU36VKA.js} +2 -2
- package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-XQGN2D44.js → chunk-HMYBAVIE.js} +3 -3
- package/dist/bundle/{chunk-P7G5HFY3.js → chunk-HOJJPSLU.js} +2 -2
- package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
- package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
- package/dist/bundle/{chunk-M4AC55ZB.js → chunk-J2LSOG3A.js} +205 -172
- package/dist/bundle/{chunk-5WD22IXQ.js → chunk-K5L77R7P.js} +2 -2
- package/dist/bundle/chunk-KKRFVN4X.js +1835 -0
- package/dist/bundle/{chunk-IA7LLLEI.js → chunk-KLRCTMES.js} +2 -2
- package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/{chunk-2QDUP74I.js → chunk-L5QLKUQR.js} +33 -33
- package/dist/bundle/{chunk-GTEX4IUO.js → chunk-MFSWMNSZ.js} +4 -4
- package/dist/bundle/{chunk-3MSHGNVE.js → chunk-MYK2F5LD.js} +20 -12
- package/dist/bundle/{chunk-7Z53MLQP.js → chunk-NBNQLNVV.js} +2 -2
- package/dist/bundle/{chunk-LM3W7YOM.js → chunk-O3DZDITT.js} +3 -3
- package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/{chunk-L45WN3AR.js → chunk-P5XYQZVW.js} +2 -2
- package/dist/bundle/{chunk-TTF5DP4V.js → chunk-P6OJKJJS.js} +6 -6
- package/dist/bundle/{chunk-6TD3DCWC.js → chunk-P6S3ZRVW.js} +2 -2
- package/dist/bundle/{chunk-UKHF37ZU.js → chunk-QBJRK733.js} +20 -20
- package/dist/bundle/{chunk-QSJKSPWF.js → chunk-QBYE26ZC.js} +2 -2
- package/dist/bundle/{chunk-APARYILG.js → chunk-R2CEA7MK.js} +13 -13
- package/dist/bundle/{chunk-ZZD2YPOX.js → chunk-SKUY7JDA.js} +14 -6
- package/dist/bundle/{chunk-4RBMCXZT.js → chunk-T35IOBPJ.js} +28 -24
- package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-WXQGA6XK.js → chunk-TB3LN5G2.js} +2 -2
- package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-YWDFYQOU.js → chunk-TES7MB6I.js} +1 -1
- package/dist/bundle/{chunk-DURNR4RO.js → chunk-U7UTYALA.js} +7 -7
- package/dist/bundle/{chunk-PAEKXVJW.js → chunk-UOWHMOU3.js} +6 -6
- package/dist/bundle/{chunk-5JKTVAXX.js → chunk-UXDUWGX6.js} +3 -0
- package/dist/bundle/{chunk-FH6OEGGN.js → chunk-V5I3QHDU.js} +14 -13
- package/dist/bundle/{chunk-KVTNYRDO.js → chunk-VCDIKCFE.js} +5 -5
- package/dist/bundle/{chunk-RDVTHFPP.js → chunk-VJHUMB7U.js} +4 -4
- package/dist/bundle/{chunk-PMQ7GP6X.js → chunk-W4KLHM2K.js} +5 -5
- package/dist/bundle/{chunk-HZ3C4WXD.js → chunk-W5LKEOGN.js} +1 -1
- package/dist/bundle/{chunk-PLPBEWD4.js → chunk-WLDZWHSF.js} +2 -2
- package/dist/bundle/{chunk-DM7KWVDZ.js → chunk-WQEEYEWO.js} +10 -10
- package/dist/bundle/{chunk-AATTOFNY.js → chunk-WRF6TY63.js} +96 -620
- package/dist/bundle/{chunk-EY36BTKZ.js → chunk-WXYOELRI.js} +2 -2
- package/dist/bundle/{chunk-EVUMQKV7.js → chunk-WZBPUOWM.js} +2 -2
- package/dist/bundle/chunk-XGNZD52X.js +592 -0
- package/dist/bundle/{chunk-FOP6G45D.js → chunk-YQH4J6YZ.js} +9 -9
- package/dist/bundle/{chunk-6K4Z6CAM.js → chunk-Z7Y2I5YR.js} +447 -399
- package/dist/bundle/{chunk-T4J7XFXT.js → chunk-ZBCC7MBN.js} +62 -58
- package/dist/bundle/command-contract-ZL67KMYL.js +37 -0
- package/dist/bundle/{command-server-entry-3NPPABQQ.js → command-server-entry-COR2VDRU.js} +22 -22
- package/dist/bundle/{decode-26M7XE2B.js → decode-33SGRQM6.js} +3 -3
- package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-XJLEAWXE.js → embed-W4ZBXPWD.js} +4 -4
- package/dist/bundle/{embedder-OEL6PXEH.js → embedder-73CCZC52.js} +7 -7
- package/dist/bundle/{first-run-CIXGBXY6.js → first-run-MOSUMMVX.js} +7 -8
- package/dist/bundle/first-screen-GUXBF3SL.js +38 -0
- package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/{meeting-combined-DMVGQNJ7.js → meeting-combined-QMIZOBBJ.js} +11 -11
- package/dist/bundle/{meeting-model-2THAT7OH.js → meeting-model-2UYVGXD5.js} +9 -9
- package/dist/bundle/{meeting-semantic-Q6XYFYUD.js → meeting-semantic-LEJPUIN3.js} +3 -3
- package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-2SWWGW6H.js → node-sqlite-UHPODTKB.js} +5 -5
- package/dist/bundle/{oauth-V5LGTXF2.js → oauth-T3DWL7OV.js} +5 -5
- package/dist/bundle/{open-25EKOTZA.js → open-ODWX32PF.js} +3 -3
- package/dist/bundle/{openai-VX3OLIHM.js → openai-GSXXHKPX.js} +13 -13
- package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-F37JH2SO.js → program-SXSUG335.js} +2209 -1081
- package/dist/bundle/{prompt-2VSPX5S7.js → prompt-GVTYTFK7.js} +3 -3
- package/dist/bundle/{recognize-NA5XUFKK.js → recognize-XDSZEZP5.js} +2 -2
- package/dist/bundle/{remote-BOME6XOE.js → remote-ZWZKMEY6.js} +7 -7
- package/dist/bundle/{rerank-NG3XMFCV.js → rerank-OBZQ54NL.js} +5 -5
- package/dist/bundle/{serve-MR67OBED.js → serve-NY5MUTNW.js} +7 -7
- package/dist/bundle/{server-OP2HJNXD.js → server-JK334V5Y.js} +47 -48
- package/dist/bundle/server-VOPYQCUD.js +79 -0
- package/dist/bundle/{sqlite-runtime-V5U6F5EB.js → sqlite-runtime-2NHF4S6G.js} +4 -4
- package/dist/bundle/{state-L4MWAATO.js → state-YGWZZWPM.js} +4 -4
- package/dist/bundle/{store-CXZFRG5D.js → store-LRQUTFJR.js} +46 -37
- package/dist/bundle/{store-2ALTEH55.js → store-ND6KU4RI.js} +16 -16
- package/dist/bundle/store-maintenance-command-GLYGQM2V.js +66 -0
- package/dist/bundle/surface-P53WLLXP.js +65 -0
- package/dist/hooks.d.ts +1 -8
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +50 -49
- package/dist/hooks.js.map +1 -1
- package/dist/links.d.ts +10 -0
- package/dist/links.d.ts.map +1 -0
- package/dist/links.js +7 -0
- package/dist/links.js.map +1 -0
- package/dist/meetings.d.ts +57 -0
- package/dist/meetings.d.ts.map +1 -0
- package/dist/meetings.js +96 -0
- package/dist/meetings.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/attio-cli/SKILL.md +3 -1
- package/dist/bundle/agent-GUXXSLT5.js +0 -38
- package/dist/bundle/chunk-2JHVQMVC.js +0 -16
- package/dist/bundle/chunk-RRTMPSQR.js +0 -29
- package/dist/bundle/chunk-SSA6JBPA.js +0 -778
- package/dist/bundle/command-contract-KCCW4LNI.js +0 -37
- package/dist/bundle/first-screen-5FK4D45F.js +0 -38
- package/dist/bundle/server-4BWAGJQO.js +0 -80
- package/dist/bundle/store-maintenance-command-LC55DRQA.js +0 -67
- package/dist/bundle/surface-3GRJ7473.js +0 -66
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FFER7KJI.js";
|
|
12
12
|
import {
|
|
13
13
|
graphqlDocument,
|
|
14
14
|
identifier,
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
} from "./chunk-5N2V6XO7.js";
|
|
18
18
|
import {
|
|
19
19
|
WIRECAT_TOOLS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ISQ23VKV.js";
|
|
21
21
|
import {
|
|
22
22
|
isNewer,
|
|
23
23
|
updateCommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-W5LKEOGN.js";
|
|
25
25
|
import {
|
|
26
26
|
LIST_QUERY_GUIDE,
|
|
27
27
|
capability,
|
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
termField,
|
|
32
32
|
timeBounds,
|
|
33
33
|
withQuery
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-R2CEA7MK.js";
|
|
35
35
|
import {
|
|
36
36
|
hide,
|
|
37
37
|
isHidden
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HUAHLO6N.js";
|
|
39
39
|
import {
|
|
40
40
|
EmptyAnswer,
|
|
41
41
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
range,
|
|
45
45
|
systemFor,
|
|
46
46
|
validateImages
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-WZBPUOWM.js";
|
|
48
48
|
import {
|
|
49
49
|
anyOfTerms,
|
|
50
50
|
isFunctionWord,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
questionText,
|
|
56
56
|
resolveMeetingSelection,
|
|
57
57
|
words
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-YQH4J6YZ.js";
|
|
59
59
|
import {
|
|
60
60
|
API_UNTRUSTED,
|
|
61
61
|
AUTHORITY_KEY,
|
|
@@ -113,11 +113,11 @@ import {
|
|
|
113
113
|
stops,
|
|
114
114
|
tagging,
|
|
115
115
|
task
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-J2LSOG3A.js";
|
|
117
117
|
import {
|
|
118
118
|
providerErrorKey,
|
|
119
119
|
secretInput
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-5EH7S4RM.js";
|
|
121
121
|
import {
|
|
122
122
|
CustomTextModelShape,
|
|
123
123
|
DEFAULT_RERANK_MODEL,
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
textModels,
|
|
132
132
|
vectorModelKey,
|
|
133
133
|
writeTextModelsSection
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-MFSWMNSZ.js";
|
|
135
135
|
import {
|
|
136
136
|
AGENDA_COLUMNS,
|
|
137
137
|
BUSINESS_FIND_MAX,
|
|
@@ -142,17 +142,15 @@ import {
|
|
|
142
142
|
CONVERSATION_COLUMNS,
|
|
143
143
|
COUNTER_FIELDS,
|
|
144
144
|
MAIL_AGENDA_COLUMNS,
|
|
145
|
-
MAX_FILE_BYTES,
|
|
146
145
|
MAX_TEXT_CHARS,
|
|
147
146
|
MENTION_QUERY,
|
|
148
147
|
NOT_FILES,
|
|
149
148
|
PRESET_VERSION,
|
|
150
149
|
RANKING_TOKENIZER_VERSION,
|
|
151
|
-
STOP_WORDS,
|
|
152
150
|
TASK_RELATION_KINDS,
|
|
153
151
|
TRACKED_CHAT_COLUMNS,
|
|
154
152
|
WORD_BODY,
|
|
155
|
-
|
|
153
|
+
asBytes,
|
|
156
154
|
attachmentColumns,
|
|
157
155
|
attachmentMaxBytes,
|
|
158
156
|
calendarKey,
|
|
@@ -172,7 +170,6 @@ import {
|
|
|
172
170
|
cutChunks,
|
|
173
171
|
delayStats,
|
|
174
172
|
displayName,
|
|
175
|
-
dueDayOf,
|
|
176
173
|
e164Of,
|
|
177
174
|
editDistance,
|
|
178
175
|
ensureAccount,
|
|
@@ -184,7 +181,6 @@ import {
|
|
|
184
181
|
hasText,
|
|
185
182
|
historyStartKey,
|
|
186
183
|
hitFiles,
|
|
187
|
-
inboxKey,
|
|
188
184
|
isId,
|
|
189
185
|
isStemmed,
|
|
190
186
|
matchDownloads,
|
|
@@ -201,23 +197,19 @@ import {
|
|
|
201
197
|
rankingContextRange,
|
|
202
198
|
rankingOptions,
|
|
203
199
|
rankingQuestion,
|
|
200
|
+
readWhole,
|
|
204
201
|
respelled,
|
|
205
202
|
seenBy,
|
|
203
|
+
sizeText,
|
|
206
204
|
threadConversation,
|
|
207
205
|
trackerBodyOf,
|
|
208
|
-
trackerTitleOf
|
|
209
|
-
|
|
210
|
-
} from "./chunk-JIGEJZ4I.js";
|
|
211
|
-
import {
|
|
212
|
-
DEFAULT_STEMMERS,
|
|
213
|
-
createStemmer,
|
|
214
|
-
cutsDeep
|
|
215
|
-
} from "./chunk-UDSL3MUU.js";
|
|
206
|
+
trackerTitleOf
|
|
207
|
+
} from "./chunk-DBHZ7TQ7.js";
|
|
216
208
|
import {
|
|
217
209
|
MINUTE,
|
|
218
210
|
YEAR,
|
|
219
211
|
aheadOf
|
|
220
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-P5XYQZVW.js";
|
|
221
213
|
import {
|
|
222
214
|
FIELD_VERSION,
|
|
223
215
|
MESSAGE_PARSING,
|
|
@@ -225,79 +217,87 @@ import {
|
|
|
225
217
|
QUERY_VERSION,
|
|
226
218
|
RRF_K,
|
|
227
219
|
SEARCH_QUERY,
|
|
220
|
+
STOP_WORDS,
|
|
221
|
+
amountsOf,
|
|
222
|
+
dueDayOf,
|
|
228
223
|
exhausted,
|
|
229
224
|
fuseRanked,
|
|
225
|
+
inboxKey,
|
|
230
226
|
isPresence,
|
|
231
227
|
isQueryLimit,
|
|
232
228
|
outOfTime,
|
|
233
229
|
plainQuery,
|
|
234
230
|
searchError,
|
|
235
231
|
validateAst,
|
|
236
|
-
validateFields
|
|
237
|
-
|
|
232
|
+
validateFields,
|
|
233
|
+
withoutField
|
|
234
|
+
} from "./chunk-KKRFVN4X.js";
|
|
238
235
|
import {
|
|
236
|
+
DEFAULT_STEMMERS,
|
|
237
|
+
createStemmer,
|
|
238
|
+
cutsDeep,
|
|
239
239
|
fold,
|
|
240
240
|
normalize
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-AOKAYQSJ.js";
|
|
242
242
|
import {
|
|
243
243
|
CRM_KINDS,
|
|
244
244
|
DEAL_KINDS,
|
|
245
245
|
DEAL_STATUSES,
|
|
246
|
-
INTERNAL_NOTES,
|
|
247
246
|
LOG_ATTRIBUTES,
|
|
248
247
|
STAGE_OUTCOMES,
|
|
249
|
-
TASK_KINDS,
|
|
250
|
-
TASK_STATES,
|
|
251
|
-
UNKNOWN_PROVIDER,
|
|
252
248
|
accountsOfList,
|
|
253
|
-
alsoListedByKey,
|
|
254
|
-
createTaskService,
|
|
255
249
|
currencyOf,
|
|
256
250
|
currentAttempt,
|
|
257
251
|
currentRun,
|
|
258
252
|
entriesOfList,
|
|
259
253
|
fitting,
|
|
260
|
-
formatLocator,
|
|
261
|
-
formatReference,
|
|
262
254
|
fromLogAttributes,
|
|
263
|
-
hasGlobalItemIds,
|
|
264
|
-
holdsKind,
|
|
265
|
-
holdsKindOf,
|
|
266
255
|
inSource,
|
|
267
256
|
isAccountList,
|
|
268
|
-
isClosedState,
|
|
269
257
|
isCrmUserId,
|
|
270
|
-
isDocumentAccountProvider,
|
|
271
|
-
isFolderProvider,
|
|
272
258
|
isGroupName,
|
|
273
|
-
isImportedProvider,
|
|
274
259
|
isItemKind,
|
|
275
|
-
isKind,
|
|
276
|
-
isLocator,
|
|
277
260
|
isUsable,
|
|
278
261
|
keyOf,
|
|
279
|
-
kindIn,
|
|
280
262
|
listedHolds,
|
|
281
263
|
logAttributes,
|
|
282
264
|
minorUnits,
|
|
283
265
|
normalCrmUserId,
|
|
284
|
-
parseLocator,
|
|
285
|
-
parseReference,
|
|
286
|
-
providerNamed,
|
|
287
266
|
runEvent,
|
|
288
267
|
sameAs,
|
|
289
268
|
sourceOf,
|
|
290
269
|
sourceOf3 as sourceOf2,
|
|
291
270
|
typedCommand,
|
|
292
271
|
withAttempt
|
|
293
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-WRF6TY63.js";
|
|
294
273
|
import {
|
|
295
274
|
isCliFailure,
|
|
296
275
|
sqliteCode
|
|
297
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-SKUY7JDA.js";
|
|
298
277
|
import {
|
|
299
|
-
|
|
300
|
-
|
|
278
|
+
INTERNAL_NOTES,
|
|
279
|
+
TASK_KINDS,
|
|
280
|
+
TASK_STATES,
|
|
281
|
+
UNKNOWN_PROVIDER,
|
|
282
|
+
alsoListedByKey,
|
|
283
|
+
createTaskService,
|
|
284
|
+
formatLocator,
|
|
285
|
+
formatReference,
|
|
286
|
+
hasGlobalItemIds,
|
|
287
|
+
holdsKind,
|
|
288
|
+
holdsKindOf,
|
|
289
|
+
isClosedState,
|
|
290
|
+
isDocumentAccountProvider,
|
|
291
|
+
isFolderProvider,
|
|
292
|
+
isImportedProvider,
|
|
293
|
+
isKind,
|
|
294
|
+
isLocator,
|
|
295
|
+
kindIn,
|
|
296
|
+
normalizeTag,
|
|
297
|
+
parseLocator,
|
|
298
|
+
parseReference,
|
|
299
|
+
providerNamed
|
|
300
|
+
} from "./chunk-XGNZD52X.js";
|
|
301
301
|
import {
|
|
302
302
|
OPERATORS_BY_TYPE,
|
|
303
303
|
READ_BUDGET_EXCEEDED,
|
|
@@ -321,12 +321,12 @@ import {
|
|
|
321
321
|
validateQuery,
|
|
322
322
|
walkQuery,
|
|
323
323
|
windowOf
|
|
324
|
-
} from "./chunk-
|
|
324
|
+
} from "./chunk-6V7ZUJI6.js";
|
|
325
325
|
import {
|
|
326
326
|
localOnly,
|
|
327
327
|
refuseOffComputer,
|
|
328
328
|
remoteKey
|
|
329
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-B4DVW2BA.js";
|
|
330
330
|
import {
|
|
331
331
|
PLAIN_HTTP_REFUSED,
|
|
332
332
|
endpoint,
|
|
@@ -337,14 +337,14 @@ import {
|
|
|
337
337
|
providerWaitMs,
|
|
338
338
|
readJsonResponse,
|
|
339
339
|
statusToCode
|
|
340
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-NBNQLNVV.js";
|
|
341
341
|
import {
|
|
342
342
|
DEFAULT_TASK_CATEGORIES,
|
|
343
343
|
FALLBACK_CATEGORY,
|
|
344
344
|
readSharedSection,
|
|
345
345
|
sharedConfigPath,
|
|
346
346
|
writeSharedSection
|
|
347
|
-
} from "./chunk-
|
|
347
|
+
} from "./chunk-P6OJKJJS.js";
|
|
348
348
|
import {
|
|
349
349
|
Unzip,
|
|
350
350
|
UnzipInflate,
|
|
@@ -355,15 +355,15 @@ import {
|
|
|
355
355
|
placedText,
|
|
356
356
|
runEmbedders,
|
|
357
357
|
textModelsDirectory
|
|
358
|
-
} from "./chunk-
|
|
358
|
+
} from "./chunk-VCDIKCFE.js";
|
|
359
359
|
import {
|
|
360
360
|
installFiles,
|
|
361
361
|
megabytes
|
|
362
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-O3DZDITT.js";
|
|
363
363
|
import {
|
|
364
364
|
storePath,
|
|
365
365
|
wirecatDirectory
|
|
366
|
-
} from "./chunk-
|
|
366
|
+
} from "./chunk-2R2EX5I6.js";
|
|
367
367
|
import {
|
|
368
368
|
Credentials,
|
|
369
369
|
logRecordOf,
|
|
@@ -372,7 +372,7 @@ import {
|
|
|
372
372
|
resolvePaths,
|
|
373
373
|
wallClock,
|
|
374
374
|
writeSecurely
|
|
375
|
-
} from "./chunk-
|
|
375
|
+
} from "./chunk-UXDUWGX6.js";
|
|
376
376
|
import {
|
|
377
377
|
array,
|
|
378
378
|
boolean,
|
|
@@ -17029,10 +17029,10 @@ var require_lib3 = __commonJS({
|
|
|
17029
17029
|
}
|
|
17030
17030
|
});
|
|
17031
17031
|
|
|
17032
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17032
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17033
17033
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17034
17034
|
|
|
17035
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17035
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
17036
17036
|
var RULES_VERSION = 6;
|
|
17037
17037
|
var LOOK_BACK = 50;
|
|
17038
17038
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17130,7 +17130,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
17130
17130
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17131
17131
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
17132
17132
|
|
|
17133
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17133
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17134
17134
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17135
17135
|
import { open, stat } from "node:fs/promises";
|
|
17136
17136
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17346,10 +17346,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read2) => {
|
|
|
17346
17346
|
return { name, source };
|
|
17347
17347
|
}, "readStickerFile");
|
|
17348
17348
|
|
|
17349
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17349
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17350
17350
|
import { randomUUID } from "node:crypto";
|
|
17351
17351
|
|
|
17352
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17352
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17353
17353
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17354
17354
|
import { dirname as dirname2, join } from "node:path";
|
|
17355
17355
|
var MOST_DEADLINES = 50;
|
|
@@ -17433,11 +17433,11 @@ var FloodMemory = class {
|
|
|
17433
17433
|
}
|
|
17434
17434
|
};
|
|
17435
17435
|
|
|
17436
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17436
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17437
17437
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17438
17438
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17439
17439
|
|
|
17440
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17440
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17441
17441
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17442
17442
|
import { dirname as dirname3 } from "node:path";
|
|
17443
17443
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17504,7 +17504,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17504
17504
|
}
|
|
17505
17505
|
}, "lockTime");
|
|
17506
17506
|
|
|
17507
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17507
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17508
17508
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17509
17509
|
var SendJournal = class {
|
|
17510
17510
|
static {
|
|
@@ -17581,7 +17581,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17581
17581
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17582
17582
|
}, "withSendId");
|
|
17583
17583
|
|
|
17584
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17584
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17585
17585
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17586
17586
|
import { join as join3 } from "node:path";
|
|
17587
17587
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17693,7 +17693,7 @@ var RecipientList = class {
|
|
|
17693
17693
|
}
|
|
17694
17694
|
};
|
|
17695
17695
|
|
|
17696
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17696
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17697
17697
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17698
17698
|
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");
|
|
17699
17699
|
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");
|
|
@@ -17881,7 +17881,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17881
17881
|
}), "guardFor");
|
|
17882
17882
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17883
17883
|
|
|
17884
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17884
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
17885
17885
|
import { openSync as openSync2 } from "node:fs";
|
|
17886
17886
|
import { createInterface } from "node:readline";
|
|
17887
17887
|
import { ReadStream } from "node:tty";
|
|
@@ -17936,7 +17936,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
17936
17936
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
17937
17937
|
}, "terminalAsker");
|
|
17938
17938
|
|
|
17939
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
17939
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17940
17940
|
var COMMAND_NEEDS = {
|
|
17941
17941
|
"account update": ["updateProfile", "change the profile"],
|
|
17942
17942
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -18001,7 +18001,23 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
18001
18001
|
return group;
|
|
18002
18002
|
}, "hideNever");
|
|
18003
18003
|
|
|
18004
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18004
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
18005
|
+
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
18006
|
+
const controller = new AbortController();
|
|
18007
|
+
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
18008
|
+
timer.unref();
|
|
18009
|
+
return { signal: controller.signal, clear: /* @__PURE__ */ __name(() => clearTimeout(timer), "clear") };
|
|
18010
|
+
}, "timeLimit");
|
|
18011
|
+
var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
18012
|
+
const limit = timeLimit(ms);
|
|
18013
|
+
try {
|
|
18014
|
+
return await run2(limit.signal);
|
|
18015
|
+
} finally {
|
|
18016
|
+
limit.clear();
|
|
18017
|
+
}
|
|
18018
|
+
}, "withTimeLimit");
|
|
18019
|
+
|
|
18020
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18005
18021
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18006
18022
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18007
18023
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18063,12 +18079,12 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18063
18079
|
}), "storedDeps");
|
|
18064
18080
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18065
18081
|
|
|
18066
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18082
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18067
18083
|
import { randomBytes } from "node:crypto";
|
|
18068
18084
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18069
18085
|
var newOperationId = newSendId;
|
|
18070
18086
|
|
|
18071
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18087
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18072
18088
|
var LINKS = /https?:\/\/\S+/g;
|
|
18073
18089
|
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");
|
|
18074
18090
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18098,7 +18114,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18098
18114
|
});
|
|
18099
18115
|
}, "questions");
|
|
18100
18116
|
|
|
18101
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18117
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
18102
18118
|
var AUDIT_PAGE = 200;
|
|
18103
18119
|
var AUDIT_BUDGET = 10;
|
|
18104
18120
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18178,7 +18194,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18178
18194
|
return found;
|
|
18179
18195
|
}, "burstJoins");
|
|
18180
18196
|
|
|
18181
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18197
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18182
18198
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18183
18199
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18184
18200
|
const name = typed.trim().toLowerCase();
|
|
@@ -18235,7 +18251,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
18235
18251
|
return best.name;
|
|
18236
18252
|
}, "categorize");
|
|
18237
18253
|
|
|
18238
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18254
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18239
18255
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18240
18256
|
var RULES_IN = {
|
|
18241
18257
|
dialog: "all",
|
|
@@ -18441,7 +18457,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18441
18457
|
return passes;
|
|
18442
18458
|
}, "applyTaskRulesToChats");
|
|
18443
18459
|
|
|
18444
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18460
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18445
18461
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18446
18462
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18447
18463
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18464,19 +18480,19 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18464
18480
|
}
|
|
18465
18481
|
}, "patiently");
|
|
18466
18482
|
|
|
18467
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18483
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18468
18484
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18469
18485
|
|
|
18470
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18486
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18471
18487
|
var REQUEST_MS = 400;
|
|
18472
|
-
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18488
|
+
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest: newest2, page, maxPages, pauseMs }) => {
|
|
18473
18489
|
const lowest = ranges[0];
|
|
18474
18490
|
const top = ranges.at(-1);
|
|
18475
18491
|
if (!lowest || !top)
|
|
18476
18492
|
return { held, ranges, missing: null, requests: null, runs: null, seconds: null };
|
|
18477
18493
|
const covered = ranges.reduce((sum2, range3) => sum2 + range3.to - range3.from + 1, 0);
|
|
18478
18494
|
const between = ranges.slice(1).reduce((sum2, range3, index) => sum2 + range3.from - (ranges[index]?.to ?? 0) - 1, 0);
|
|
18479
|
-
const gapIds = lowest.from - 1 + between + Math.max(0, (
|
|
18495
|
+
const gapIds = lowest.from - 1 + between + Math.max(0, (newest2 ?? top.to) - top.to);
|
|
18480
18496
|
const inRanges = Math.min(held, covered);
|
|
18481
18497
|
const missing4 = gapIds === 0 ? 0 : Math.round(inRanges / covered * gapIds);
|
|
18482
18498
|
const requests = missing4 === 0 ? 0 : Math.ceil(missing4 / page) + ranges.length;
|
|
@@ -18490,13 +18506,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18490
18506
|
};
|
|
18491
18507
|
}, "estimateBackfill");
|
|
18492
18508
|
|
|
18493
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18509
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18494
18510
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18495
18511
|
...error,
|
|
18496
18512
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18497
18513
|
}), "withRecovery");
|
|
18498
18514
|
|
|
18499
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18515
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18500
18516
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18501
18517
|
if (isCliFailure(error))
|
|
18502
18518
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18579,7 +18595,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18579
18595
|
};
|
|
18580
18596
|
}, "mergeBatches");
|
|
18581
18597
|
|
|
18582
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18598
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
18583
18599
|
var ALL = "all";
|
|
18584
18600
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
18585
18601
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -18651,7 +18667,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
18651
18667
|
[ALL]: [ALL]
|
|
18652
18668
|
}), "groupEntries");
|
|
18653
18669
|
|
|
18654
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18670
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
18655
18671
|
var NO_MAIL = "no_mail";
|
|
18656
18672
|
var MAIL = "email";
|
|
18657
18673
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -18725,7 +18741,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
18725
18741
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
18726
18742
|
}, "accountsOfKind");
|
|
18727
18743
|
|
|
18728
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18744
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18729
18745
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18730
18746
|
if (deps.reads !== "store")
|
|
18731
18747
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18926,7 +18942,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18926
18942
|
}, "chatsMatchingIn");
|
|
18927
18943
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18928
18944
|
|
|
18929
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18945
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18930
18946
|
var CONTEXT_MESSAGES = 3;
|
|
18931
18947
|
var CONTEXT_MINUTES = 10;
|
|
18932
18948
|
var MAX_CHARS = 1200;
|
|
@@ -18950,12 +18966,12 @@ var context = {
|
|
|
18950
18966
|
}, "describe")
|
|
18951
18967
|
};
|
|
18952
18968
|
|
|
18953
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18969
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18954
18970
|
var BUILT_INS = [context];
|
|
18955
18971
|
var providers = [...BUILT_INS];
|
|
18956
18972
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18957
18973
|
|
|
18958
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
18974
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18959
18975
|
var READ_PAGE = 5e3;
|
|
18960
18976
|
var CHAIN = 50;
|
|
18961
18977
|
var CONVERSATION_QUERY = {
|
|
@@ -19107,7 +19123,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19107
19123
|
return size2;
|
|
19108
19124
|
}, "sized");
|
|
19109
19125
|
|
|
19110
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19126
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19111
19127
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19112
19128
|
var MESSAGE_PAGE = 5e3;
|
|
19113
19129
|
var PER_SESSION = 8;
|
|
@@ -19126,7 +19142,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19126
19142
|
price: remote.price,
|
|
19127
19143
|
installed: true,
|
|
19128
19144
|
perBatch: PER_REQUEST * concurrency,
|
|
19129
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19145
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-ZWZKMEY6.js")).openRemote(remote, apiKey, {
|
|
19130
19146
|
concurrency,
|
|
19131
19147
|
env: deps.env ?? process.env
|
|
19132
19148
|
}), "open")
|
|
@@ -19146,7 +19162,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19146
19162
|
if (!isTextModelInstalled(model, directory2))
|
|
19147
19163
|
throw notDownloaded(model.id);
|
|
19148
19164
|
if (apart) {
|
|
19149
|
-
const { openProcess } = await import("./process-
|
|
19165
|
+
const { openProcess } = await import("./process-AFIXYXWL.js");
|
|
19150
19166
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19151
19167
|
}
|
|
19152
19168
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19435,7 +19451,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19435
19451
|
return { ...one, state };
|
|
19436
19452
|
}, "shaped");
|
|
19437
19453
|
|
|
19438
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19454
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19439
19455
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19440
19456
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19441
19457
|
for (const [key, value, maximum] of [
|
|
@@ -19488,7 +19504,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19488
19504
|
}
|
|
19489
19505
|
}, "catchUpSearch");
|
|
19490
19506
|
|
|
19491
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19507
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19492
19508
|
var pushed = /* @__PURE__ */ __name((deps, what2) => {
|
|
19493
19509
|
if (deps.reads === "store") {
|
|
19494
19510
|
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`);
|
|
@@ -19553,13 +19569,13 @@ var archiveService = /* @__PURE__ */ __name((deps) => {
|
|
|
19553
19569
|
throw new CliError("validation_error", "--dry-run counts the message ids missing between what is held; this messenger's ids do not count messages");
|
|
19554
19570
|
}
|
|
19555
19571
|
const { store, account, chatId } = await found(chat);
|
|
19556
|
-
const
|
|
19572
|
+
const newest2 = Number((await store.messages.messages(account, chatId, { limit: 1 })).items[0]?.id);
|
|
19557
19573
|
return {
|
|
19558
19574
|
chat: chatId,
|
|
19559
19575
|
...estimateBackfill({
|
|
19560
19576
|
ranges: await store.sync.ranges(account, chatId),
|
|
19561
19577
|
held: (await store.chats.chatStats(account, chatId))[0]?.messages ?? 0,
|
|
19562
|
-
newest: Number.isSafeInteger(
|
|
19578
|
+
newest: Number.isSafeInteger(newest2) ? newest2 : void 0,
|
|
19563
19579
|
page: pageSize,
|
|
19564
19580
|
maxPages: Math.ceil(limit / pageSize),
|
|
19565
19581
|
pauseMs
|
|
@@ -19593,15 +19609,22 @@ var archiveService = /* @__PURE__ */ __name((deps) => {
|
|
|
19593
19609
|
return { chat: limit.chatId ?? null, fetched: 0, complete: false, ranges: [], limited: "group_too_large" };
|
|
19594
19610
|
}
|
|
19595
19611
|
const windowed = limit?.keepFrom !== void 0 && !(limit.keepFrom <= (options2.sinceMs ?? Number.NEGATIVE_INFINITY));
|
|
19612
|
+
const roots = /* @__PURE__ */ new Map();
|
|
19613
|
+
const startedAt = Date.now();
|
|
19596
19614
|
const fetched = await fetchInto({
|
|
19597
|
-
history: /* @__PURE__ */ __name((window2) =>
|
|
19615
|
+
history: /* @__PURE__ */ __name(async (window2) => {
|
|
19616
|
+
const page = await history(chat, { ...window2, reactions: false });
|
|
19617
|
+
if (refreshes(connection) && !options2.window && page.items[0])
|
|
19618
|
+
pagedRoots(roots, await connection.threadRootsIn(page.items[0].chatId, page.items), window2.before);
|
|
19619
|
+
return page;
|
|
19620
|
+
}, "history"),
|
|
19598
19621
|
store,
|
|
19599
19622
|
account,
|
|
19600
19623
|
fetching: deps.messenger.fetching ?? FETCHING,
|
|
19601
19624
|
...options2,
|
|
19602
19625
|
...windowed ? { sinceMs: limit.keepFrom } : {}
|
|
19603
19626
|
});
|
|
19604
|
-
const replies = fetched.chat && !options2.window ? await savedReplies(connection, store, account, fetched.chat, options2.stop) : 0;
|
|
19627
|
+
const replies = fetched.chat && !options2.window ? await savedReplies(connection, store, account, fetched.chat, { roots, startedAt }, options2.stop) : 0;
|
|
19605
19628
|
const read2 = replies > 0 ? { ...fetched, fetched: fetched.fetched + replies } : fetched;
|
|
19606
19629
|
const result = windowed && read2.reachedSince ? { ...read2, limited: "older_than_window" } : read2;
|
|
19607
19630
|
if (result.limited && limit?.keepFrom !== void 0)
|
|
@@ -19637,7 +19660,7 @@ var archiveService = /* @__PURE__ */ __name((deps) => {
|
|
|
19637
19660
|
const upToDate = heldToNewest(await deps.store(), await deps.account(), deps.messenger.fetching ?? FETCHING, {
|
|
19638
19661
|
...options2,
|
|
19639
19662
|
catchUp: catchingUp ? options2.catchUp ?? {} : false,
|
|
19640
|
-
threads: connection.threadReplies !== void 0
|
|
19663
|
+
threads: connection.threadReplies !== void 0 || refreshes(connection)
|
|
19641
19664
|
});
|
|
19642
19665
|
const finished = /* @__PURE__ */ __name(() => options2.onChat?.({ chats: chats.length, done: answer.items.length, fetched: answer.fetched }), "finished");
|
|
19643
19666
|
finished();
|
|
@@ -19850,12 +19873,12 @@ var heldToNewest = /* @__PURE__ */ __name((store, account, fetching, options2) =
|
|
|
19850
19873
|
const lastAt = Date.parse(chat.lastMessageAt ?? "");
|
|
19851
19874
|
if (Number.isNaN(lastAt))
|
|
19852
19875
|
return false;
|
|
19853
|
-
const [
|
|
19854
|
-
if (!
|
|
19876
|
+
const [newest2] = (await store.messages.messages(account, chat.id, { limit: 1 }).catch(() => ({ items: [] }))).items;
|
|
19877
|
+
if (!newest2 || Date.parse(newest2.timestamp) < lastAt)
|
|
19855
19878
|
return false;
|
|
19856
19879
|
const ranges = await store.sync.ranges(account, chat.id);
|
|
19857
19880
|
const top = ranges.reduce((best, range3) => best && best.to >= range3.to ? best : range3, void 0);
|
|
19858
|
-
const key = keyOf2(fetching)(
|
|
19881
|
+
const key = keyOf2(fetching)(newest2);
|
|
19859
19882
|
if (!top || key > top.to || key < top.from)
|
|
19860
19883
|
return false;
|
|
19861
19884
|
if (ranges.length === 1 && await store.sync.syncState(account, historyStartKey(chat.id)) !== void 0)
|
|
@@ -19866,13 +19889,20 @@ var heldToNewest = /* @__PURE__ */ __name((store, account, fetching, options2) =
|
|
|
19866
19889
|
return !Number.isNaN(startedAt) && startedAt < options2.sinceMs;
|
|
19867
19890
|
}, "heldToNewest");
|
|
19868
19891
|
var threadsKey = /* @__PURE__ */ __name((chatId) => `threads:${chatId}`, "threadsKey");
|
|
19869
|
-
var
|
|
19870
|
-
|
|
19892
|
+
var refreshes = /* @__PURE__ */ __name((connection) => connection.threadRootsIn !== void 0 && connection.recentThreadRoots !== void 0 && connection.rootReplies !== void 0, "refreshes");
|
|
19893
|
+
var pagedRoots = /* @__PURE__ */ __name((into, roots, before) => {
|
|
19894
|
+
for (const root of roots)
|
|
19895
|
+
into.set(root.id, { ...root, whole: before !== void 0 || into.get(root.id)?.whole === true });
|
|
19896
|
+
}, "pagedRoots");
|
|
19897
|
+
var THREAD_CLOCK_SKEW_MS = 6e4;
|
|
19898
|
+
var savedReplies = /* @__PURE__ */ __name(async (connection, store, account, chatId, { roots, startedAt }, stop) => {
|
|
19899
|
+
if (stop.aborted)
|
|
19900
|
+
return 0;
|
|
19901
|
+
const stored = Number((await store.sync.syncState(account, threadsKey(chatId)))?.value);
|
|
19902
|
+
const point = Number.isFinite(stored) ? stored : void 0;
|
|
19903
|
+
const batches = refreshes(connection) ? refreshedThreads(connection, chatId, roots, point, stop) : connection.threadReplies ? await readyBatches(connection.threadReplies(chatId, point === void 0 ? {} : { since: point })) : void 0;
|
|
19904
|
+
if (!batches)
|
|
19871
19905
|
return 0;
|
|
19872
|
-
const startedAt = Date.now();
|
|
19873
|
-
const point = Number((await store.sync.syncState(account, threadsKey(chatId)))?.value);
|
|
19874
|
-
const answer = await connection.threadReplies(chatId, Number.isFinite(point) ? { since: point } : {});
|
|
19875
|
-
const batches = Symbol.asyncIterator in answer ? answer : [answer];
|
|
19876
19906
|
let saved = 0;
|
|
19877
19907
|
for await (const replies of batches) {
|
|
19878
19908
|
if (replies.length > 0)
|
|
@@ -19884,6 +19914,32 @@ var savedReplies = /* @__PURE__ */ __name(async (connection, store, account, cha
|
|
|
19884
19914
|
await store.sync.setSyncState(account, threadsKey(chatId), String(startedAt));
|
|
19885
19915
|
return saved;
|
|
19886
19916
|
}, "savedReplies");
|
|
19917
|
+
var readyBatches = /* @__PURE__ */ __name(async (answer) => {
|
|
19918
|
+
const ready = await answer;
|
|
19919
|
+
return Symbol.asyncIterator in ready ? ready : [ready];
|
|
19920
|
+
}, "readyBatches");
|
|
19921
|
+
async function* refreshedThreads(connection, chatId, roots, point, stop) {
|
|
19922
|
+
const after = point === void 0 ? void 0 : point - THREAD_CLOCK_SKEW_MS;
|
|
19923
|
+
const all = new Map(roots);
|
|
19924
|
+
for (const root of await connection.recentThreadRoots(chatId)) {
|
|
19925
|
+
const paged = all.get(root.id);
|
|
19926
|
+
all.set(root.id, {
|
|
19927
|
+
...root,
|
|
19928
|
+
lastReplyAt: newest(paged?.lastReplyAt, root.lastReplyAt),
|
|
19929
|
+
whole: paged?.whole ?? false
|
|
19930
|
+
});
|
|
19931
|
+
}
|
|
19932
|
+
for (const root of all.values()) {
|
|
19933
|
+
if (stop.aborted)
|
|
19934
|
+
return;
|
|
19935
|
+
const replied = Date.parse(root.lastReplyAt ?? "");
|
|
19936
|
+
if (after !== void 0 && !root.whole && !(replied > after))
|
|
19937
|
+
continue;
|
|
19938
|
+
yield* await readyBatches(connection.rootReplies(chatId, root.id, after === void 0 || root.whole ? {} : { after }));
|
|
19939
|
+
}
|
|
19940
|
+
}
|
|
19941
|
+
__name(refreshedThreads, "refreshedThreads");
|
|
19942
|
+
var newest = /* @__PURE__ */ __name((one, other) => one === void 0 || other !== void 0 && Date.parse(other) > Date.parse(one) ? other : one, "newest");
|
|
19887
19943
|
var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTime, fallback) => {
|
|
19888
19944
|
if (byTime)
|
|
19889
19945
|
return new Date(key).toISOString();
|
|
@@ -19891,7 +19947,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19891
19947
|
return message?.timestamp ?? fallback;
|
|
19892
19948
|
}, "timeOfKey");
|
|
19893
19949
|
|
|
19894
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19950
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19895
19951
|
var DAY_MS = 864e5;
|
|
19896
19952
|
var NEW_DAYS = 30;
|
|
19897
19953
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19968,23 +20024,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19968
20024
|
};
|
|
19969
20025
|
}, "scorePerson");
|
|
19970
20026
|
|
|
19971
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
19972
|
-
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19973
|
-
const controller = new AbortController();
|
|
19974
|
-
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
19975
|
-
timer.unref();
|
|
19976
|
-
return { signal: controller.signal, clear: /* @__PURE__ */ __name(() => clearTimeout(timer), "clear") };
|
|
19977
|
-
}, "timeLimit");
|
|
19978
|
-
var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
19979
|
-
const limit = timeLimit(ms);
|
|
19980
|
-
try {
|
|
19981
|
-
return await run2(limit.signal);
|
|
19982
|
-
} finally {
|
|
19983
|
-
limit.clear();
|
|
19984
|
-
}
|
|
19985
|
-
}, "withTimeLimit");
|
|
19986
|
-
|
|
19987
|
-
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20027
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19988
20028
|
var REGISTRIES = {
|
|
19989
20029
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19990
20030
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20071,7 +20111,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20071
20111
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20072
20112
|
})), "notCovered");
|
|
20073
20113
|
|
|
20074
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20114
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20075
20115
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20076
20116
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20077
20117
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20159,7 +20199,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20159
20199
|
};
|
|
20160
20200
|
}, "botCheckService");
|
|
20161
20201
|
|
|
20162
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20202
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20163
20203
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20164
20204
|
if (value === void 0)
|
|
20165
20205
|
return void 0;
|
|
@@ -20169,7 +20209,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20169
20209
|
return id3;
|
|
20170
20210
|
}, "threadIdOf");
|
|
20171
20211
|
|
|
20172
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20212
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20173
20213
|
var TOP_POSTS = 5;
|
|
20174
20214
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20175
20215
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20286,7 +20326,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20286
20326
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20287
20327
|
}, "median");
|
|
20288
20328
|
|
|
20289
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20329
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20290
20330
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20291
20331
|
const events = [];
|
|
20292
20332
|
for (const stay of stays) {
|
|
@@ -20318,7 +20358,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20318
20358
|
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));
|
|
20319
20359
|
}, "memberEvents");
|
|
20320
20360
|
|
|
20321
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20361
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20322
20362
|
var EVENTS_DAYS = 7;
|
|
20323
20363
|
var TRACKED_DAYS = 30;
|
|
20324
20364
|
var STATS_PAGE = 1e3;
|
|
@@ -20554,8 +20594,8 @@ var readInStore = /* @__PURE__ */ __name(async (deps, chatId, kind2, until) => {
|
|
|
20554
20594
|
const store = await accountStoreIfOpen(deps);
|
|
20555
20595
|
if (!store)
|
|
20556
20596
|
return;
|
|
20557
|
-
const [
|
|
20558
|
-
if (
|
|
20597
|
+
const [newest2] = (await store.messages.messages(chatId, { limit: 1, outgoing: false })).items;
|
|
20598
|
+
if (newest2 !== void 0 && (until === void 0 || newest2.id === until))
|
|
20559
20599
|
await unlessBusy(() => store.chats.saveChats([{ id: chatId, kind: kind2, unreadCount: 0, markedUnread: false }]));
|
|
20560
20600
|
}, "readInStore");
|
|
20561
20601
|
var storedFacts = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
@@ -20613,7 +20653,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20613
20653
|
return members.length === 0 ? null : members;
|
|
20614
20654
|
}, "storedMembers");
|
|
20615
20655
|
|
|
20616
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20656
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20617
20657
|
var INBOX_CHATS = 20;
|
|
20618
20658
|
var REVIEW_DAYS = 3;
|
|
20619
20659
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20625,9 +20665,9 @@ var everyChat = /* @__PURE__ */ __name((adapter) => adapter.unreadChats ? adapte
|
|
|
20625
20665
|
var leftOf = /* @__PURE__ */ __name((page) => page.left?.length ? { left: page.left } : {}, "leftOf");
|
|
20626
20666
|
var storeReader = /* @__PURE__ */ __name((deps, store, account) => ({
|
|
20627
20667
|
chats: /* @__PURE__ */ __name(async ({ limit, offset }) => {
|
|
20628
|
-
const
|
|
20668
|
+
const newest2 = new Map((await store.chats.chatStats(account)).map((one) => [one.chatId, one.newestAt]));
|
|
20629
20669
|
const all = byRecency((await store.chats.chats(account, {})).items.map((chat) => {
|
|
20630
|
-
const at2 =
|
|
20670
|
+
const at2 = newest2.get(chat.id) ?? null;
|
|
20631
20671
|
const later = at2 !== null && (chat.lastMessageAt === null || Date.parse(at2) > Date.parse(chat.lastMessageAt));
|
|
20632
20672
|
return later ? { ...chat, lastMessageAt: at2 } : chat;
|
|
20633
20673
|
}));
|
|
@@ -20664,9 +20704,9 @@ var unreadIn = /* @__PURE__ */ __name(async (adapter, { limit, all = false, kind
|
|
|
20664
20704
|
for (const { id: id3, title, kind: kind2, unreadCount } of read2) {
|
|
20665
20705
|
const count3 = unreadCount ?? 0;
|
|
20666
20706
|
if (count3 === 0) {
|
|
20667
|
-
const
|
|
20668
|
-
if (
|
|
20669
|
-
chats.push({ id: id3, title, kind: kind2, unreadCount, messages: [
|
|
20707
|
+
const newest2 = (await adapter.history(id3, { limit })).items.findLast((message) => !message.outgoing);
|
|
20708
|
+
if (newest2)
|
|
20709
|
+
chats.push({ id: id3, title, kind: kind2, unreadCount, messages: [newest2], more: false });
|
|
20670
20710
|
continue;
|
|
20671
20711
|
}
|
|
20672
20712
|
const wanted = Math.min(count3, limit);
|
|
@@ -20825,7 +20865,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20825
20865
|
};
|
|
20826
20866
|
}, "inboxService");
|
|
20827
20867
|
|
|
20828
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
20868
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
20829
20869
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
20830
20870
|
|
|
20831
20871
|
// node_modules/.pnpm/lossless-json@4.3.3/node_modules/lossless-json/lib/esm/utils.js
|
|
@@ -21512,7 +21552,7 @@ function resolveSpace(space) {
|
|
|
21512
21552
|
}
|
|
21513
21553
|
__name(resolveSpace, "resolveSpace");
|
|
21514
21554
|
|
|
21515
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21555
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
21516
21556
|
var RENAMED = { timeout: "poll-timeout" };
|
|
21517
21557
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
21518
21558
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -21651,7 +21691,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
21651
21691
|
return raw;
|
|
21652
21692
|
}, "flagValue");
|
|
21653
21693
|
|
|
21654
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21694
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
21655
21695
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
21656
21696
|
const server = manifest.servers?.[0];
|
|
21657
21697
|
if (given === void 0 && !server)
|
|
@@ -21779,10 +21819,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
21779
21819
|
}
|
|
21780
21820
|
}, "nextPage");
|
|
21781
21821
|
|
|
21782
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21822
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/source.js
|
|
21783
21823
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
21784
21824
|
|
|
21785
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21825
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
21786
21826
|
var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
|
|
21787
21827
|
const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
|
|
21788
21828
|
const providerId = rest.join(":");
|
|
@@ -21815,7 +21855,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
21815
21855
|
return walk2(body);
|
|
21816
21856
|
}, "withoutFileLinks");
|
|
21817
21857
|
|
|
21818
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21858
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
21819
21859
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
21820
21860
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
21821
21861
|
var text = /* @__PURE__ */ __name((value) => {
|
|
@@ -21872,7 +21912,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
21872
21912
|
}));
|
|
21873
21913
|
}, "crmValuesOf");
|
|
21874
21914
|
|
|
21875
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21915
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/walk.js
|
|
21876
21916
|
var crmWindowOf = /* @__PURE__ */ __name((query) => {
|
|
21877
21917
|
const page = query.page ?? 1;
|
|
21878
21918
|
return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
|
|
@@ -21892,7 +21932,7 @@ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
|
|
|
21892
21932
|
return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
|
|
21893
21933
|
}, "walk");
|
|
21894
21934
|
|
|
21895
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
21935
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
21896
21936
|
var MISSING = /* @__PURE__ */ Symbol("missing");
|
|
21897
21937
|
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");
|
|
21898
21938
|
var read = /* @__PURE__ */ __name((raw, path2) => {
|
|
@@ -22151,7 +22191,7 @@ var selectedOf = /* @__PURE__ */ __name((rules, from) => {
|
|
|
22151
22191
|
].filter(Boolean);
|
|
22152
22192
|
}, "selectedOf");
|
|
22153
22193
|
|
|
22154
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22194
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
22155
22195
|
var CRM_WRITE_FIELDS = {
|
|
22156
22196
|
deal: ["title", "pipeline", "stage", "amount", "currency", "closeDate", "organization", "people", "owner", "reason"],
|
|
22157
22197
|
lead: ["title", "pipeline", "stage", "amount", "currency", "closeDate", "organization", "people", "owner", "reason"],
|
|
@@ -22417,7 +22457,7 @@ var checkWrite = /* @__PURE__ */ __name((kind2, one, manifest, { operations, kno
|
|
|
22417
22457
|
throw invalid(`${where}.custom.each`, 'no "{value}" in it');
|
|
22418
22458
|
}, "checkWrite");
|
|
22419
22459
|
|
|
22420
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22460
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
22421
22461
|
var OVERLAP_MS = 10 * 6e4;
|
|
22422
22462
|
var MOST_LIVE = 100;
|
|
22423
22463
|
var MOST_PAGES = 500;
|
|
@@ -22863,7 +22903,7 @@ var toField = /* @__PURE__ */ __name((spec, raw) => {
|
|
|
22863
22903
|
};
|
|
22864
22904
|
}, "toField");
|
|
22865
22905
|
|
|
22866
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
22906
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/bot/api.js
|
|
22867
22907
|
var apiPathOf = /* @__PURE__ */ __name((operation) => {
|
|
22868
22908
|
const { command, group } = operation;
|
|
22869
22909
|
if (!group)
|
|
@@ -22981,7 +23021,7 @@ var generatedApiCommand = /* @__PURE__ */ __name((api) => {
|
|
|
22981
23021
|
return group;
|
|
22982
23022
|
}, "generatedApiCommand");
|
|
22983
23023
|
|
|
22984
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23024
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/command-runs.js
|
|
22985
23025
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
22986
23026
|
var parses = new AsyncLocalStorage();
|
|
22987
23027
|
var providerEvent = /* @__PURE__ */ __name((event2) => {
|
|
@@ -23014,7 +23054,7 @@ var providerRequest = /* @__PURE__ */ __name((operation, sink = providerEvent, c
|
|
|
23014
23054
|
};
|
|
23015
23055
|
}, "providerRequest");
|
|
23016
23056
|
|
|
23017
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23057
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/bot/api-http.js
|
|
23018
23058
|
var LARGEST_ANSWER = 16 * 1024 * 1024;
|
|
23019
23059
|
var segment = /* @__PURE__ */ __name((name, value) => {
|
|
23020
23060
|
if (value === void 0 || value === "" || value === "." || value === "..")
|
|
@@ -23232,7 +23272,7 @@ var refusal = /* @__PURE__ */ __name((service, operation, response, writes, inne
|
|
|
23232
23272
|
});
|
|
23233
23273
|
}, "refusal");
|
|
23234
23274
|
|
|
23235
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23275
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
23236
23276
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
23237
23277
|
"help",
|
|
23238
23278
|
"guide",
|
|
@@ -23320,7 +23360,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
23320
23360
|
throw new CliError("validation_error", `--permission ${key} names no command${now === void 0 ? "" : `: its command moved, so use ${now}`}`, { permission: key });
|
|
23321
23361
|
}, "refuseUnknownPermissionKeys");
|
|
23322
23362
|
|
|
23323
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23363
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
23324
23364
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
23325
23365
|
let question;
|
|
23326
23366
|
let answered = false;
|
|
@@ -23363,7 +23403,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
23363
23403
|
};
|
|
23364
23404
|
}, "keyedGuard");
|
|
23365
23405
|
|
|
23366
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23406
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/service-api.js
|
|
23367
23407
|
var serviceApiOperations = /* @__PURE__ */ __name((manifest) => {
|
|
23368
23408
|
const reasonOf2 = /* @__PURE__ */ __name((operation) => operation.response?.sensitive ? "it returns a credential, which is never printed" : unsendableBody(operation), "reasonOf");
|
|
23369
23409
|
return {
|
|
@@ -23673,7 +23713,7 @@ var serviceApiCommand = /* @__PURE__ */ __name((options2) => {
|
|
|
23673
23713
|
return group;
|
|
23674
23714
|
}, "serviceApiCommand");
|
|
23675
23715
|
|
|
23676
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23716
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/service-api-call.js
|
|
23677
23717
|
var hostsFetch = /* @__PURE__ */ __name((hosts, fetch2, credentialScope) => hostFetch({ hosts, ...fetch2 ? { fetch: fetch2 } : {}, ...credentialScope ? { credentialScope } : {} }), "hostsFetch");
|
|
23678
23718
|
var NO_COMMAND = new Command("source");
|
|
23679
23719
|
var sender = /* @__PURE__ */ __name((options2, writes) => {
|
|
@@ -23715,7 +23755,7 @@ var serviceApiSend = /* @__PURE__ */ __name((options2) => {
|
|
|
23715
23755
|
return async (id3, input) => (await withHeaders(id3, input)).body;
|
|
23716
23756
|
}, "serviceApiSend");
|
|
23717
23757
|
|
|
23718
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23758
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
23719
23759
|
var CRM_VERBS = ["create", "update", "move", "close", "remove"];
|
|
23720
23760
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
23721
23761
|
var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
|
|
@@ -23756,7 +23796,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
23756
23796
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
23757
23797
|
};
|
|
23758
23798
|
|
|
23759
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23799
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/profile-writes.js
|
|
23760
23800
|
var levelsOf = /* @__PURE__ */ __name((writes, defaults) => {
|
|
23761
23801
|
const settings = writes.settings();
|
|
23762
23802
|
return { settings, defaults: { ...DEFAULT_PERMISSIONS, ...defaults, ...settings.permissionDefaults } };
|
|
@@ -23767,14 +23807,14 @@ var profileWriteGuard = /* @__PURE__ */ __name((writes, ask2, builtIn, extra) =>
|
|
|
23767
23807
|
}), writes.env, asker), ask2, (key) => levelFor(settings.permissions, key, defaults).level, extra);
|
|
23768
23808
|
}, "profileWriteGuard");
|
|
23769
23809
|
|
|
23770
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23810
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
23771
23811
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
23772
23812
|
import { join as join4 } from "node:path";
|
|
23773
23813
|
|
|
23774
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23814
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/state-folders.js
|
|
23775
23815
|
var CRM_SHARED_FOLDERS = { files: "files", foreignContacts: "foreign-contacts" };
|
|
23776
23816
|
|
|
23777
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23817
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
23778
23818
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
23779
23819
|
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");
|
|
23780
23820
|
var shownIn = /* @__PURE__ */ __name((file2, day2) => {
|
|
@@ -23847,7 +23887,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file2, options2 = {}) => {
|
|
|
23847
23887
|
};
|
|
23848
23888
|
}, "foreignContacts");
|
|
23849
23889
|
|
|
23850
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
23890
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/writes.js
|
|
23851
23891
|
var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
|
|
23852
23892
|
try {
|
|
23853
23893
|
check2();
|
|
@@ -24407,7 +24447,7 @@ var completeCrmActivity = /* @__PURE__ */ __name(async (context2, externalId, op
|
|
|
24407
24447
|
return { operationId, activity, stored, on: await answeredTargets(context2, activity, []) };
|
|
24408
24448
|
}, "completeCrmActivity");
|
|
24409
24449
|
|
|
24410
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24450
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/manifest/writer.js
|
|
24411
24451
|
var activityWritesOf = /* @__PURE__ */ __name((activities) => {
|
|
24412
24452
|
if (!activities)
|
|
24413
24453
|
return [];
|
|
@@ -24698,7 +24738,7 @@ var crmManifestWrites = /* @__PURE__ */ __name((input, options2) => {
|
|
|
24698
24738
|
};
|
|
24699
24739
|
}, "crmManifestWrites");
|
|
24700
24740
|
|
|
24701
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24741
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
24702
24742
|
import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
24703
24743
|
import { join as join5 } from "node:path";
|
|
24704
24744
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -24793,10 +24833,10 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
24793
24833
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
24794
24834
|
}, "waitForTurn");
|
|
24795
24835
|
|
|
24796
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24836
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
24797
24837
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
24798
24838
|
|
|
24799
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24839
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/query.js
|
|
24800
24840
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
24801
24841
|
if (kind2 === "id") {
|
|
24802
24842
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -24897,7 +24937,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
24897
24937
|
});
|
|
24898
24938
|
}, "selectedCodes");
|
|
24899
24939
|
|
|
24900
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24940
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
|
|
24901
24941
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
24902
24942
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
24903
24943
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -24905,7 +24945,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
24905
24945
|
return grouped2 ? void 0 : workGroupHint(key);
|
|
24906
24946
|
}, "ungroupedHint");
|
|
24907
24947
|
|
|
24908
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
24948
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
24909
24949
|
var VIEWERS = "crm:viewers";
|
|
24910
24950
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
24911
24951
|
try {
|
|
@@ -24980,7 +25020,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
|
|
|
24980
25020
|
return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
|
|
24981
25021
|
}, "ownerOf");
|
|
24982
25022
|
|
|
24983
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25023
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
24984
25024
|
var DAY2 = 864e5;
|
|
24985
25025
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
24986
25026
|
var MOST_UNLISTED = 0.5;
|
|
@@ -25663,7 +25703,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
|
|
|
25663
25703
|
return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
|
|
25664
25704
|
}, "crmStatus");
|
|
25665
25705
|
|
|
25666
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25706
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
25667
25707
|
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");
|
|
25668
25708
|
var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
|
|
25669
25709
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -25679,7 +25719,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
|
|
|
25679
25719
|
}, "excerpt");
|
|
25680
25720
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
25681
25721
|
|
|
25682
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25722
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
25683
25723
|
var SCAN = 1e3;
|
|
25684
25724
|
var SNIPPET = 200;
|
|
25685
25725
|
var SNIPPET_ROWS = 6;
|
|
@@ -25710,9 +25750,9 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
25710
25750
|
found.set(key, held);
|
|
25711
25751
|
}
|
|
25712
25752
|
}
|
|
25713
|
-
const
|
|
25753
|
+
const newest2 = [...found.values()].sort((a, b) => b.at - a.at || b.meetingId - a.meetingId);
|
|
25714
25754
|
const items = [];
|
|
25715
|
-
for (const { accountId, meetingId, people: who2 } of
|
|
25755
|
+
for (const { accountId, meetingId, people: who2 } of newest2.slice(0, limit)) {
|
|
25716
25756
|
const meeting = await store.meetings.meetingMetadata({ accountId, meetingId }).catch(() => void 0);
|
|
25717
25757
|
if (meeting === void 0 || meeting.deletedAt !== null)
|
|
25718
25758
|
continue;
|
|
@@ -25741,10 +25781,10 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
25741
25781
|
...call2 ? { call: call2 } : {}
|
|
25742
25782
|
});
|
|
25743
25783
|
}
|
|
25744
|
-
return { items, total:
|
|
25784
|
+
return { items, total: newest2.length, hasMore: cut || newest2.length > limit };
|
|
25745
25785
|
}, "personMeetings");
|
|
25746
25786
|
|
|
25747
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
25787
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
25748
25788
|
var CONTEXT_MESSAGES2 = 10;
|
|
25749
25789
|
var CONTEXT_BYTES = 64 * 1024;
|
|
25750
25790
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -25891,13 +25931,13 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads2, readab
|
|
|
25891
25931
|
cut ||= page.hasMore;
|
|
25892
25932
|
if (page.hasMore)
|
|
25893
25933
|
for (const outgoing of [true, false]) {
|
|
25894
|
-
const [
|
|
25934
|
+
const [newest2] = (await store.messages.messages(key, dialog.id, {
|
|
25895
25935
|
limit: 1,
|
|
25896
25936
|
outgoing,
|
|
25897
25937
|
...since === void 0 ? {} : { since: new Date(since).toISOString() }
|
|
25898
25938
|
})).items;
|
|
25899
|
-
if (
|
|
25900
|
-
beyond.push(toContext(key,
|
|
25939
|
+
if (newest2)
|
|
25940
|
+
beyond.push(toContext(key, newest2, dialog.title));
|
|
25901
25941
|
}
|
|
25902
25942
|
}
|
|
25903
25943
|
if (key.provider === "email") {
|
|
@@ -26050,10 +26090,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
26050
26090
|
};
|
|
26051
26091
|
}, "personMessages");
|
|
26052
26092
|
|
|
26053
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26093
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
26054
26094
|
import { createHash } from "node:crypto";
|
|
26055
26095
|
|
|
26056
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26096
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
26057
26097
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
26058
26098
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
26059
26099
|
const parsed = parseMeetingReference(reference);
|
|
@@ -26071,7 +26111,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
26071
26111
|
return { parsed, meeting };
|
|
26072
26112
|
}, "authorizedMeetingMetadata");
|
|
26073
26113
|
|
|
26074
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26114
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
26075
26115
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
26076
26116
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
26077
26117
|
if (signal?.aborted)
|
|
@@ -26270,7 +26310,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
26270
26310
|
return { ...packet, fingerprint: hash(packet) };
|
|
26271
26311
|
}, "readMeetingEvidence");
|
|
26272
26312
|
|
|
26273
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26313
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
26274
26314
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
26275
26315
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
26276
26316
|
const requestedAccounts = options2.accountIds;
|
|
@@ -26369,7 +26409,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
26369
26409
|
};
|
|
26370
26410
|
}, "personMeetingContext");
|
|
26371
26411
|
|
|
26372
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26412
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
26373
26413
|
var PREPARE_BYTES = 96 * 1024;
|
|
26374
26414
|
var MEETINGS = 5;
|
|
26375
26415
|
var CUES = 3;
|
|
@@ -26401,14 +26441,14 @@ var personPreparation = /* @__PURE__ */ __name(async (store, asked, reference, o
|
|
|
26401
26441
|
const waiting = [];
|
|
26402
26442
|
for (const chat of context2.shared.filter((one) => one.kind === "dialog")) {
|
|
26403
26443
|
const key = { provider: chat.provider, account: chat.account };
|
|
26404
|
-
const [
|
|
26405
|
-
if (
|
|
26444
|
+
const [newest2] = (await store.messages.messages(key, chat.chatId, { limit: 1 })).items;
|
|
26445
|
+
if (newest2?.outgoing !== false)
|
|
26406
26446
|
continue;
|
|
26407
26447
|
waiting.push({
|
|
26408
26448
|
...key,
|
|
26409
26449
|
chatId: chat.chatId,
|
|
26410
26450
|
title: chat.title,
|
|
26411
|
-
message: toContext(key,
|
|
26451
|
+
message: toContext(key, newest2, chat.title),
|
|
26412
26452
|
partial: partial.has(`${chat.provider}/${chat.account}/${chat.chatId}`)
|
|
26413
26453
|
});
|
|
26414
26454
|
}
|
|
@@ -26492,7 +26532,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
26492
26532
|
}
|
|
26493
26533
|
}, "meetingsOf");
|
|
26494
26534
|
|
|
26495
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26535
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
26496
26536
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
26497
26537
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
26498
26538
|
const held = await storeIfOpen(deps);
|
|
@@ -26562,7 +26602,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
26562
26602
|
complete: false
|
|
26563
26603
|
})), "quiet");
|
|
26564
26604
|
|
|
26565
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26605
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
26566
26606
|
var TIMELINE_ITEMS = 50;
|
|
26567
26607
|
var TIMELINE_MAX = 500;
|
|
26568
26608
|
var SCOPES = ["personal", "work"];
|
|
@@ -26624,7 +26664,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
26624
26664
|
};
|
|
26625
26665
|
}, "personTimeline");
|
|
26626
26666
|
|
|
26627
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26667
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
26628
26668
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
26629
26669
|
const ids = [...new Set(chatIds)];
|
|
26630
26670
|
if (ids.length === 0)
|
|
@@ -26650,7 +26690,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
26650
26690
|
}));
|
|
26651
26691
|
}, "chatCoverage");
|
|
26652
26692
|
|
|
26653
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26693
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
26654
26694
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
26655
26695
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
26656
26696
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -26714,7 +26754,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
26714
26754
|
}
|
|
26715
26755
|
}, "validateContextEvidencePage");
|
|
26716
26756
|
|
|
26717
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26757
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
26718
26758
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
26719
26759
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
26720
26760
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -26767,7 +26807,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
26767
26807
|
};
|
|
26768
26808
|
}, "contextReadBudget");
|
|
26769
26809
|
|
|
26770
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26810
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
26771
26811
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
26772
26812
|
if (!port || typeof port.read !== "function")
|
|
26773
26813
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -26811,7 +26851,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
26811
26851
|
};
|
|
26812
26852
|
}, "createContextEvidenceReader");
|
|
26813
26853
|
|
|
26814
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26854
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
26815
26855
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
26816
26856
|
async around(ref, window2) {
|
|
26817
26857
|
const at2 = parseLocator(ref);
|
|
@@ -26906,7 +26946,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
26906
26946
|
};
|
|
26907
26947
|
}, "storedNeighbours");
|
|
26908
26948
|
|
|
26909
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
26949
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
26910
26950
|
import { createHash as createHash2 } from "node:crypto";
|
|
26911
26951
|
var DAY3 = 864e5;
|
|
26912
26952
|
var MAX_TIME = 864e13;
|
|
@@ -27222,7 +27262,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
27222
27262
|
return value;
|
|
27223
27263
|
}, "decodeCheckpoint");
|
|
27224
27264
|
|
|
27225
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27265
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
27226
27266
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
27227
27267
|
var PAGE2 = 20;
|
|
27228
27268
|
var PEOPLE = 20;
|
|
@@ -27626,7 +27666,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
27626
27666
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
27627
27667
|
}, "peopleOf");
|
|
27628
27668
|
|
|
27629
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27669
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
27630
27670
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
27631
27671
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
27632
27672
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -27670,7 +27710,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
27670
27710
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
27671
27711
|
}, "matchVocabularyTerms");
|
|
27672
27712
|
|
|
27673
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27713
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
27674
27714
|
var KINDS = ["project", "tag", "topic"];
|
|
27675
27715
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
27676
27716
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -27725,7 +27765,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
27725
27765
|
};
|
|
27726
27766
|
}, "findEvidenceMentions");
|
|
27727
27767
|
|
|
27728
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27768
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
27729
27769
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
27730
27770
|
var DEFAULT_PURPOSES = ["work"];
|
|
27731
27771
|
var LINK_PURPOSE = "work";
|
|
@@ -27755,10 +27795,10 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
27755
27795
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
27756
27796
|
], "purposeList");
|
|
27757
27797
|
|
|
27758
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
27798
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
27759
27799
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
27760
27800
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
27761
|
-
const [messages,
|
|
27801
|
+
const [messages, newest2, oldest] = await Promise.all([
|
|
27762
27802
|
store.messages.countMessages(account, chatId, window2),
|
|
27763
27803
|
store.messages.messages(account, chatId, { limit: 1, since: window2.since, until: until - 1 }),
|
|
27764
27804
|
store.messages.messages(account, chatId, { limit: 1, after: { time: since - 1 }, until: until - 1 })
|
|
@@ -27766,7 +27806,7 @@ var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId,
|
|
|
27766
27806
|
return {
|
|
27767
27807
|
messages,
|
|
27768
27808
|
firstAt: oldest.items[0]?.timestamp ?? null,
|
|
27769
|
-
lastAt:
|
|
27809
|
+
lastAt: newest2.items.at(-1)?.timestamp ?? null
|
|
27770
27810
|
};
|
|
27771
27811
|
}, "storedChatCount");
|
|
27772
27812
|
var PROJECT_ID = /^project:[1-9]\d*$/;
|
|
@@ -28066,7 +28106,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
28066
28106
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
28067
28107
|
}, "purposeHintOf");
|
|
28068
28108
|
|
|
28069
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28109
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
28070
28110
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
28071
28111
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
28072
28112
|
const held = await storeIfOpen(deps);
|
|
@@ -28331,7 +28371,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
28331
28371
|
return rest;
|
|
28332
28372
|
}, "withoutPhone");
|
|
28333
28373
|
|
|
28334
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28374
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
28335
28375
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
28336
28376
|
var PERIOD_FIELD = "created";
|
|
28337
28377
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -28462,7 +28502,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
28462
28502
|
}));
|
|
28463
28503
|
}, "meetingNames");
|
|
28464
28504
|
|
|
28465
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28505
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
28466
28506
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
28467
28507
|
const tags = /* @__PURE__ */ new Map();
|
|
28468
28508
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -28471,7 +28511,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
28471
28511
|
return tags;
|
|
28472
28512
|
}, "taskTagFilters");
|
|
28473
28513
|
|
|
28474
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28514
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
28475
28515
|
var TASK_QUERY = {
|
|
28476
28516
|
entity: "task",
|
|
28477
28517
|
backend: "sql",
|
|
@@ -28971,16 +29011,16 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
28971
29011
|
};
|
|
28972
29012
|
}, "taskView");
|
|
28973
29013
|
|
|
28974
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
28975
|
-
var mailTurn = /* @__PURE__ */ __name((
|
|
28976
|
-
if (
|
|
29014
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
29015
|
+
var mailTurn = /* @__PURE__ */ __name((newest2) => {
|
|
29016
|
+
if (newest2 === null)
|
|
28977
29017
|
return null;
|
|
28978
|
-
if (
|
|
29018
|
+
if (newest2.outgoing)
|
|
28979
29019
|
return "waiting";
|
|
28980
|
-
return
|
|
29020
|
+
return newest2.addressed ? "owed" : null;
|
|
28981
29021
|
}, "mailTurn");
|
|
28982
29022
|
|
|
28983
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29023
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
28984
29024
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
28985
29025
|
if (error instanceof CliError && error.code === "not_found")
|
|
28986
29026
|
return void 0;
|
|
@@ -29014,7 +29054,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
29014
29054
|
storedAt: synced?.at ?? null,
|
|
29015
29055
|
coverage: /* @__PURE__ */ __name((ids) => ids.map((chatId) => {
|
|
29016
29056
|
const thread = byId2.get(chatId);
|
|
29017
|
-
const
|
|
29057
|
+
const newest2 = thread?.newest?.at ?? thread?.lastEmailAt;
|
|
29018
29058
|
const until = window2.until === void 0 ? Number.NaN : Date.parse(window2.until);
|
|
29019
29059
|
return {
|
|
29020
29060
|
chatId,
|
|
@@ -29023,7 +29063,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
29023
29063
|
chatId,
|
|
29024
29064
|
// Sync holds a window of the mailbox, never a thread's whole history.
|
|
29025
29065
|
state: synced ? "partial" : "unknown",
|
|
29026
|
-
upToDate: window2.state === "window" &&
|
|
29066
|
+
upToDate: window2.state === "window" && newest2 !== void 0 && !Number.isNaN(until) ? newest2 <= until : null,
|
|
29027
29067
|
gaps: false,
|
|
29028
29068
|
reachesStart: false,
|
|
29029
29069
|
fetchedAt: synced?.at ?? null
|
|
@@ -29031,14 +29071,14 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
29031
29071
|
held: {
|
|
29032
29072
|
messages: thread?.emails ?? 0,
|
|
29033
29073
|
oldestAt: null,
|
|
29034
|
-
newestAt:
|
|
29074
|
+
newestAt: newest2 === void 0 ? null : new Date(newest2).toISOString()
|
|
29035
29075
|
}
|
|
29036
29076
|
};
|
|
29037
29077
|
}), "coverage")
|
|
29038
29078
|
};
|
|
29039
29079
|
}, "mailActivity");
|
|
29040
29080
|
|
|
29041
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29081
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
29042
29082
|
var DAY4 = 864e5;
|
|
29043
29083
|
var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
|
|
29044
29084
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -29292,22 +29332,22 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
29292
29332
|
};
|
|
29293
29333
|
}, "agendaItem");
|
|
29294
29334
|
|
|
29295
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29335
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/vcard.js
|
|
29296
29336
|
var AS_WORD = new RegExp(`^${WORD_BODY}$`);
|
|
29297
29337
|
var encoder = new TextEncoder();
|
|
29298
29338
|
|
|
29299
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29339
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
29300
29340
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
29301
29341
|
|
|
29302
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29342
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
29303
29343
|
import { lstat } from "node:fs/promises";
|
|
29304
29344
|
|
|
29305
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29345
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
29306
29346
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
29307
29347
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
29308
29348
|
import { join as join7 } from "node:path";
|
|
29309
29349
|
|
|
29310
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29350
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
29311
29351
|
import { createHash as createHash3 } from "node:crypto";
|
|
29312
29352
|
var metadataLimit = 16384;
|
|
29313
29353
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -29367,7 +29407,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
29367
29407
|
}
|
|
29368
29408
|
}, "readPartialMetadata");
|
|
29369
29409
|
|
|
29370
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29410
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
29371
29411
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
29372
29412
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
29373
29413
|
import { join as join6 } from "node:path";
|
|
@@ -29459,7 +29499,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
29459
29499
|
};
|
|
29460
29500
|
}, "partialWriter");
|
|
29461
29501
|
|
|
29462
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29502
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
29463
29503
|
var NativeRecordingPartialStore = class {
|
|
29464
29504
|
static {
|
|
29465
29505
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -29566,12 +29606,12 @@ var NativeRecordingPartialStore = class {
|
|
|
29566
29606
|
}
|
|
29567
29607
|
};
|
|
29568
29608
|
|
|
29569
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29609
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
29570
29610
|
import { createHash as createHash5 } from "node:crypto";
|
|
29571
29611
|
import { link as link2 } from "node:fs/promises";
|
|
29572
29612
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
29573
29613
|
|
|
29574
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29614
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
29575
29615
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
29576
29616
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
29577
29617
|
signal?.throwIfAborted();
|
|
@@ -29606,7 +29646,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
29606
29646
|
signal?.throwIfAborted();
|
|
29607
29647
|
}, "commitPublication");
|
|
29608
29648
|
|
|
29609
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29649
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
29610
29650
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
29611
29651
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
29612
29652
|
import { join as join8 } from "node:path";
|
|
@@ -29679,7 +29719,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
29679
29719
|
}
|
|
29680
29720
|
}, "writePublicationJournal");
|
|
29681
29721
|
|
|
29682
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29722
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
29683
29723
|
var NativeRecordingPublication = class {
|
|
29684
29724
|
static {
|
|
29685
29725
|
__name(this, "NativeRecordingPublication");
|
|
@@ -29752,7 +29792,7 @@ var NativeRecordingPublication = class {
|
|
|
29752
29792
|
}
|
|
29753
29793
|
};
|
|
29754
29794
|
|
|
29755
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29795
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
29756
29796
|
import { createHash as createHash6 } from "node:crypto";
|
|
29757
29797
|
import { readdir } from "node:fs/promises";
|
|
29758
29798
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -29839,7 +29879,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
29839
29879
|
beforePublish
|
|
29840
29880
|
}), "commitMediaEntry");
|
|
29841
29881
|
|
|
29842
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29882
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
29843
29883
|
var validator = '"media-completed-v1"';
|
|
29844
29884
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
29845
29885
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file2, beforeWrite, signal, metadata = {}) => {
|
|
@@ -29940,7 +29980,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
29940
29980
|
return entry;
|
|
29941
29981
|
}, "archiveMediaFile");
|
|
29942
29982
|
|
|
29943
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
29983
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
29944
29984
|
import { mkdir, realpath } from "node:fs/promises";
|
|
29945
29985
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
29946
29986
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -30007,7 +30047,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
30007
30047
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
30008
30048
|
}, "withMediaArchiveLocks");
|
|
30009
30049
|
|
|
30010
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30050
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
30011
30051
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
30012
30052
|
const entries = await readMediaManifests(root, signal);
|
|
30013
30053
|
if (!entries.length)
|
|
@@ -30150,7 +30190,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
30150
30190
|
}, { create: true });
|
|
30151
30191
|
}, "archiveMedia");
|
|
30152
30192
|
|
|
30153
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30193
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
30154
30194
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
30155
30195
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
30156
30196
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -30301,7 +30341,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
30301
30341
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
30302
30342
|
}, "moveMediaArchive");
|
|
30303
30343
|
|
|
30304
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30344
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
30305
30345
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
30306
30346
|
import { join as join13 } from "node:path";
|
|
30307
30347
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file2) => sum2 + file2.bytes, 0), "bytesOf");
|
|
@@ -30326,7 +30366,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30326
30366
|
`);
|
|
30327
30367
|
await nativeRuntime({ env, progress });
|
|
30328
30368
|
progress(`${model.id}: loading it once to check it works`);
|
|
30329
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
30369
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-W4ZBXPWD.js");
|
|
30330
30370
|
const embedder = await openEmbedder2(model, directory2);
|
|
30331
30371
|
try {
|
|
30332
30372
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -30347,7 +30387,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
30347
30387
|
}
|
|
30348
30388
|
await nativeRuntime({ env, progress });
|
|
30349
30389
|
progress(`${model.id}: loading it once to check it works`);
|
|
30350
|
-
const { openReranker } = await import("./rerank-
|
|
30390
|
+
const { openReranker } = await import("./rerank-OBZQ54NL.js");
|
|
30351
30391
|
const reranker = await openReranker(model, directory2);
|
|
30352
30392
|
try {
|
|
30353
30393
|
await reranker.score("check", ["check"]);
|
|
@@ -30365,7 +30405,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30365
30405
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
30366
30406
|
}
|
|
30367
30407
|
progress(`${model.id}: loading it once to check it works`);
|
|
30368
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
30408
|
+
const { openPictureEmbedder } = await import("./embedder-73CCZC52.js");
|
|
30369
30409
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
30370
30410
|
try {
|
|
30371
30411
|
const vector = await embedder.embedQuery("check");
|
|
@@ -30377,7 +30417,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
30377
30417
|
return { model, directory: directory2 };
|
|
30378
30418
|
}, "downloadImageModel");
|
|
30379
30419
|
|
|
30380
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30420
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
30381
30421
|
var MONEY_REQUEST = "money-request";
|
|
30382
30422
|
var MONEY_DONE = "money-done";
|
|
30383
30423
|
var PROMISE = "promise";
|
|
@@ -30411,10 +30451,10 @@ var MONEY_WORDS = [
|
|
|
30411
30451
|
}
|
|
30412
30452
|
];
|
|
30413
30453
|
|
|
30414
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30454
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
30415
30455
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
30416
30456
|
|
|
30417
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30457
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
30418
30458
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
30419
30459
|
var MONEY_DONE_FORMS = words2([
|
|
30420
30460
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -30454,7 +30494,7 @@ var PROMISE_FORMS = words2([
|
|
|
30454
30494
|
"estar\xE1 listo"
|
|
30455
30495
|
]);
|
|
30456
30496
|
|
|
30457
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30497
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
30458
30498
|
var EXCERPT_CHARS = 80;
|
|
30459
30499
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
30460
30500
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -30476,7 +30516,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
30476
30516
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
30477
30517
|
var day = /* @__PURE__ */ __name((at2) => new Date(at2).toISOString().slice(0, 10), "day");
|
|
30478
30518
|
|
|
30479
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30519
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
30480
30520
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
30481
30521
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
30482
30522
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -30557,7 +30597,7 @@ var amounts = {
|
|
|
30557
30597
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
30558
30598
|
};
|
|
30559
30599
|
|
|
30560
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30600
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
30561
30601
|
var children = {
|
|
30562
30602
|
id: "children",
|
|
30563
30603
|
version: 1,
|
|
@@ -30586,7 +30626,7 @@ var children = {
|
|
|
30586
30626
|
}, "read")
|
|
30587
30627
|
};
|
|
30588
30628
|
|
|
30589
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30629
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
30590
30630
|
var coverage = {
|
|
30591
30631
|
id: "coverage",
|
|
30592
30632
|
version: 1,
|
|
@@ -30615,7 +30655,7 @@ var coverage = {
|
|
|
30615
30655
|
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")
|
|
30616
30656
|
};
|
|
30617
30657
|
|
|
30618
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30658
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
30619
30659
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
30620
30660
|
var item = /* @__PURE__ */ __name((row, at2, data) => ({
|
|
30621
30661
|
signal: "payments",
|
|
@@ -30665,7 +30705,7 @@ var payments = {
|
|
|
30665
30705
|
}, "read")
|
|
30666
30706
|
};
|
|
30667
30707
|
|
|
30668
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30708
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
30669
30709
|
var PATTERNS_PER_CHAT = 3;
|
|
30670
30710
|
var DAY5 = 864e5;
|
|
30671
30711
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -30754,7 +30794,7 @@ var promises = {
|
|
|
30754
30794
|
}, "read")
|
|
30755
30795
|
};
|
|
30756
30796
|
|
|
30757
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30797
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
30758
30798
|
var PER_SIDE = 5;
|
|
30759
30799
|
var WEEK = 7 * 864e5;
|
|
30760
30800
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -30785,7 +30825,7 @@ var questions2 = {
|
|
|
30785
30825
|
}, "attention")
|
|
30786
30826
|
};
|
|
30787
30827
|
|
|
30788
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30828
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
30789
30829
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
30790
30830
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
|
|
30791
30831
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -30853,7 +30893,7 @@ var replyNext = {
|
|
|
30853
30893
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
30854
30894
|
};
|
|
30855
30895
|
|
|
30856
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30896
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
30857
30897
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
30858
30898
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
30859
30899
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -30878,14 +30918,14 @@ var topics = {
|
|
|
30878
30918
|
if (!yours && !theirs)
|
|
30879
30919
|
return [];
|
|
30880
30920
|
const silent = theirs && yours && Date.parse(yours.timestamp) > Date.parse(theirs.timestamp);
|
|
30881
|
-
const
|
|
30921
|
+
const newest2 = [yours, theirs].filter((one) => one !== void 0).sort((a, b) => Date.parse(b.timestamp) - Date.parse(a.timestamp));
|
|
30882
30922
|
return [
|
|
30883
30923
|
{
|
|
30884
30924
|
signal: "topics",
|
|
30885
30925
|
chat: chat.ref,
|
|
30886
|
-
at:
|
|
30926
|
+
at: newest2[0]?.timestamp ?? null,
|
|
30887
30927
|
who: null,
|
|
30888
|
-
evidence: evidenceOf(chat, ...
|
|
30928
|
+
evidence: evidenceOf(chat, ...newest2),
|
|
30889
30929
|
basis: "store",
|
|
30890
30930
|
data: {
|
|
30891
30931
|
query,
|
|
@@ -30899,7 +30939,7 @@ var topics = {
|
|
|
30899
30939
|
}, "read")
|
|
30900
30940
|
};
|
|
30901
30941
|
|
|
30902
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30942
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
30903
30943
|
var STATUS_SIGNALS = [
|
|
30904
30944
|
replyNext,
|
|
30905
30945
|
questions2,
|
|
@@ -30911,7 +30951,7 @@ var STATUS_SIGNALS = [
|
|
|
30911
30951
|
children
|
|
30912
30952
|
];
|
|
30913
30953
|
|
|
30914
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
30954
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
30915
30955
|
var DAY6 = 864e5;
|
|
30916
30956
|
var STATUS_WINDOW = 300;
|
|
30917
30957
|
var STATUS_CHATS = 16;
|
|
@@ -31100,7 +31140,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
31100
31140
|
};
|
|
31101
31141
|
}, "projectStatus");
|
|
31102
31142
|
|
|
31103
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31143
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
31104
31144
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
31105
31145
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31106
31146
|
if (deps.offline)
|
|
@@ -31172,7 +31212,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
31172
31212
|
};
|
|
31173
31213
|
}, "accountService");
|
|
31174
31214
|
|
|
31175
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31215
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
31176
31216
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
31177
31217
|
const at2 = aheadOf(value, flag, now, {
|
|
31178
31218
|
...zone === void 0 ? {} : { zone },
|
|
@@ -31183,7 +31223,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
31183
31223
|
return new Date(at2 - at2 % MINUTE).toISOString();
|
|
31184
31224
|
}, "sendTime");
|
|
31185
31225
|
|
|
31186
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31226
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
31187
31227
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write2) => {
|
|
31188
31228
|
try {
|
|
31189
31229
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -31430,7 +31470,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
31430
31470
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
31431
31471
|
}, "linkLimits");
|
|
31432
31472
|
|
|
31433
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31473
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
31434
31474
|
var THREADS_PAGE = 500;
|
|
31435
31475
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
31436
31476
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -31467,10 +31507,10 @@ var withMailThreads = /* @__PURE__ */ __name((store) => {
|
|
|
31467
31507
|
get: /* @__PURE__ */ __name((target2, key, receiver) => key === "chats" ? chats : Reflect.get(target2, key, receiver), "get")
|
|
31468
31508
|
});
|
|
31469
31509
|
}, "withMailThreads");
|
|
31470
|
-
var mergeMail = /* @__PURE__ */ __name((messages, mail, limit,
|
|
31510
|
+
var mergeMail = /* @__PURE__ */ __name((messages, mail, limit, newest2 = false) => {
|
|
31471
31511
|
const moved = new Set(mail.items.map(({ locator }) => locator));
|
|
31472
31512
|
const kept3 = messages.items.filter(({ locator }) => !moved.has(locator));
|
|
31473
|
-
const items =
|
|
31513
|
+
const items = newest2 ? [...kept3, ...mail.items].sort((a, b) => b.timestamp.localeCompare(a.timestamp)) : fuseRanked([kept3, mail.items], (hit) => ({
|
|
31474
31514
|
exact: hit.exact,
|
|
31475
31515
|
ranked: hit.score !== null,
|
|
31476
31516
|
at: Date.parse(hit.timestamp)
|
|
@@ -31505,9 +31545,9 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
31505
31545
|
return thread.slice(Math.max(0, at2 - before), at2 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
31506
31546
|
}, "readMail");
|
|
31507
31547
|
|
|
31508
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31548
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
31509
31549
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
31510
|
-
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
31550
|
+
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list", "type", "reach"]);
|
|
31511
31551
|
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");
|
|
31512
31552
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
31513
31553
|
if (!Number.isInteger(request.limit) || request.limit < 1 || request.limit > QUERY_PAGE_LIMIT)
|
|
@@ -31753,13 +31793,13 @@ var coverageOf = /* @__PURE__ */ __name(async (store, { scopeAccounts, selectedC
|
|
|
31753
31793
|
};
|
|
31754
31794
|
}, "coverageOf");
|
|
31755
31795
|
var statKey = /* @__PURE__ */ __name((account, chatId) => JSON.stringify([account.provider, account.account, chatId]), "statKey");
|
|
31756
|
-
var queryOf = /* @__PURE__ */ __name((timezone,
|
|
31796
|
+
var queryOf = /* @__PURE__ */ __name((timezone, newest2, stemming) => ({
|
|
31757
31797
|
language: "lucene-v1",
|
|
31758
31798
|
version: 1,
|
|
31759
31799
|
fieldsVersion: FIELD_VERSION,
|
|
31760
31800
|
presetVersion: PRESET_VERSION,
|
|
31761
31801
|
timezone,
|
|
31762
|
-
order:
|
|
31802
|
+
order: newest2 ? "newest" : "relevance",
|
|
31763
31803
|
...stemming ? { stemming } : {}
|
|
31764
31804
|
}), "queryOf");
|
|
31765
31805
|
var searchLucene = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
@@ -31878,7 +31918,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
31878
31918
|
};
|
|
31879
31919
|
}, "statsLucene");
|
|
31880
31920
|
|
|
31881
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
31921
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
31882
31922
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
31883
31923
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
31884
31924
|
function invalid3(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -32047,7 +32087,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
32047
32087
|
};
|
|
32048
32088
|
}, "readRankingSelection");
|
|
32049
32089
|
|
|
32050
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32090
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
32051
32091
|
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");
|
|
32052
32092
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
32053
32093
|
command,
|
|
@@ -32057,7 +32097,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
32057
32097
|
fieldsVersion: FIELD_VERSION
|
|
32058
32098
|
}), "searchRecordOf");
|
|
32059
32099
|
|
|
32060
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32100
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
32061
32101
|
function invalid4(message) {
|
|
32062
32102
|
throw new CliError("validation_error", message);
|
|
32063
32103
|
}
|
|
@@ -32351,7 +32391,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32351
32391
|
}, "evidence")
|
|
32352
32392
|
}), "adminStatisticsService");
|
|
32353
32393
|
|
|
32354
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32394
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
32355
32395
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
32356
32396
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
32357
32397
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -32488,12 +32528,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
32488
32528
|
return { plan, repair };
|
|
32489
32529
|
}, "gapsService");
|
|
32490
32530
|
|
|
32491
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32531
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32492
32532
|
import { createHash as createHash10 } from "node:crypto";
|
|
32493
32533
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
32494
|
-
import { lstat as lstat5, open as open6,
|
|
32534
|
+
import { lstat as lstat5, open as open6, stat as stat2 } from "node:fs/promises";
|
|
32495
32535
|
|
|
32496
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32536
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
32497
32537
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
32498
32538
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
32499
32539
|
var MAX_FILES = 1e4;
|
|
@@ -32564,15 +32604,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
32564
32604
|
return choices;
|
|
32565
32605
|
}, "directoryPaths");
|
|
32566
32606
|
|
|
32567
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32607
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
32568
32608
|
import { posix } from "node:path";
|
|
32569
32609
|
|
|
32570
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32610
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
32571
32611
|
import { setImmediate as tick } from "node:timers/promises";
|
|
32572
32612
|
import { crc32 } from "node:zlib";
|
|
32573
32613
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
32574
32614
|
|
|
32575
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32615
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
32576
32616
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
32577
32617
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
32578
32618
|
var SAMPLE = 65536;
|
|
@@ -32674,7 +32714,8 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
32674
32714
|
return result.text;
|
|
32675
32715
|
}, "decodeXml");
|
|
32676
32716
|
|
|
32677
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32717
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
32718
|
+
var MAX_KEPT = 50 * 1024 * 1024;
|
|
32678
32719
|
var MAX_PART = 10 * 1024 * 1024;
|
|
32679
32720
|
var MAX_ENTRIES = 1e3;
|
|
32680
32721
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -32688,7 +32729,8 @@ var cancelled = /* @__PURE__ */ __name((signal) => {
|
|
|
32688
32729
|
throw new CliError("cancelled", "document extraction cancelled");
|
|
32689
32730
|
}, "cancelled");
|
|
32690
32731
|
var safeName2 = /* @__PURE__ */ __name((name) => name.length > 0 && name.length <= 512 && !/^[\\/]|\\/.test(name) && ![...name].some((character2) => character2.charCodeAt(0) < 32) && !name.split("/").includes(".."), "safeName");
|
|
32691
|
-
var
|
|
32732
|
+
var KEPT = /* @__PURE__ */ __name((name) => /\.(xml|rels|opf|xhtml|html)$/i.test(name) || name === "mimetype", "KEPT");
|
|
32733
|
+
var directory = /* @__PURE__ */ __name((bytes2, maxExpanded) => {
|
|
32692
32734
|
const view = new DataView(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength);
|
|
32693
32735
|
let end = -1;
|
|
32694
32736
|
for (let index = bytes2.length - 22; index >= Math.max(0, bytes2.length - 65557); index--) {
|
|
@@ -32709,6 +32751,7 @@ var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
|
32709
32751
|
throw new Error("invalid_zip");
|
|
32710
32752
|
let offset = view.getUint32(end + 16, true);
|
|
32711
32753
|
let expanded = 0;
|
|
32754
|
+
let kept3 = 0;
|
|
32712
32755
|
const entries = /* @__PURE__ */ new Map();
|
|
32713
32756
|
for (let index = 0; index < count3; index++) {
|
|
32714
32757
|
if (offset + 46 > stop || view.getUint32(offset, true) !== 33639248)
|
|
@@ -32727,7 +32770,9 @@ var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
|
32727
32770
|
if ((view.getUint32(offset + 38, true) >>> 16 & 61440) === 40960)
|
|
32728
32771
|
throw new Error("invalid_zip");
|
|
32729
32772
|
expanded += size2;
|
|
32730
|
-
if (
|
|
32773
|
+
if (KEPT(name))
|
|
32774
|
+
kept3 += size2;
|
|
32775
|
+
if (expanded > maxExpanded || kept3 > MAX_KEPT)
|
|
32731
32776
|
throw new ReaderLimit();
|
|
32732
32777
|
const local = view.getUint32(offset + 42, true);
|
|
32733
32778
|
if (local + 30 > offset || view.getUint32(local, true) !== 67324752)
|
|
@@ -32745,19 +32790,20 @@ var directory = /* @__PURE__ */ __name((bytes2) => {
|
|
|
32745
32790
|
throw new Error("invalid_zip");
|
|
32746
32791
|
return entries;
|
|
32747
32792
|
}, "directory");
|
|
32748
|
-
var readContainer = /* @__PURE__ */ __name(async (bytes2, signal) => {
|
|
32793
|
+
var readContainer = /* @__PURE__ */ __name(async (bytes2, signal, maxExpanded = attachmentMaxBytes()) => {
|
|
32749
32794
|
cancelled(signal);
|
|
32750
|
-
const entries = directory(bytes2);
|
|
32795
|
+
const entries = directory(bytes2, maxExpanded);
|
|
32751
32796
|
const result = /* @__PURE__ */ new Map();
|
|
32752
32797
|
const seen = /* @__PURE__ */ new Set();
|
|
32753
32798
|
const done2 = /* @__PURE__ */ new Set();
|
|
32754
32799
|
let expanded = 0;
|
|
32800
|
+
let kept3 = 0;
|
|
32755
32801
|
const archive = new Unzip((file2) => {
|
|
32756
32802
|
const expected2 = entries.get(file2.name);
|
|
32757
32803
|
if (!expected2 || seen.has(file2.name))
|
|
32758
32804
|
throw new Error("invalid_zip");
|
|
32759
32805
|
seen.add(file2.name);
|
|
32760
|
-
const keep2 =
|
|
32806
|
+
const keep2 = KEPT(file2.name);
|
|
32761
32807
|
let size2 = 0;
|
|
32762
32808
|
let checksum = 0;
|
|
32763
32809
|
const parts = [];
|
|
@@ -32766,7 +32812,9 @@ var readContainer = /* @__PURE__ */ __name(async (bytes2, signal) => {
|
|
|
32766
32812
|
throw error;
|
|
32767
32813
|
size2 += data.length;
|
|
32768
32814
|
expanded += data.length;
|
|
32769
|
-
if (
|
|
32815
|
+
if (keep2)
|
|
32816
|
+
kept3 += data.length;
|
|
32817
|
+
if (expanded > maxExpanded || kept3 > MAX_KEPT || keep2 && size2 > MAX_PART)
|
|
32770
32818
|
throw new ReaderLimit();
|
|
32771
32819
|
checksum = crc32(data, checksum);
|
|
32772
32820
|
if (keep2)
|
|
@@ -32889,7 +32937,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
32889
32937
|
return found;
|
|
32890
32938
|
}, "elements");
|
|
32891
32939
|
|
|
32892
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32940
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
32893
32941
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
32894
32942
|
let name = "";
|
|
32895
32943
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -32944,7 +32992,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
32944
32992
|
return { text: parts.join("").trim(), truncated: false };
|
|
32945
32993
|
}, "sheetText");
|
|
32946
32994
|
|
|
32947
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
32995
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
32948
32996
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
32949
32997
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
32950
32998
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -33344,10 +33392,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
33344
33392
|
}
|
|
33345
33393
|
}, "readDocument");
|
|
33346
33394
|
|
|
33347
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33395
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
33348
33396
|
import { extname as extname3 } from "node:path";
|
|
33349
33397
|
|
|
33350
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33398
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
33351
33399
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
33352
33400
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
33353
33401
|
import { fileURLToPath } from "node:url";
|
|
@@ -33408,7 +33456,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read2) => {
|
|
|
33408
33456
|
}
|
|
33409
33457
|
}, "derived");
|
|
33410
33458
|
|
|
33411
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33459
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
33412
33460
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
33413
33461
|
var image2 = {
|
|
33414
33462
|
id: "image",
|
|
@@ -33417,7 +33465,7 @@ var image2 = {
|
|
|
33417
33465
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
33418
33466
|
};
|
|
33419
33467
|
|
|
33420
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33468
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
33421
33469
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
33422
33470
|
var doc = {
|
|
33423
33471
|
id: "doc",
|
|
@@ -33429,7 +33477,7 @@ var doc = {
|
|
|
33429
33477
|
}), "read")
|
|
33430
33478
|
};
|
|
33431
33479
|
|
|
33432
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33480
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
33433
33481
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
33434
33482
|
var docx = {
|
|
33435
33483
|
id: "docx",
|
|
@@ -33442,10 +33490,10 @@ var docx = {
|
|
|
33442
33490
|
}), "read")
|
|
33443
33491
|
};
|
|
33444
33492
|
|
|
33445
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33493
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
33446
33494
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
33447
33495
|
|
|
33448
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33496
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
33449
33497
|
var NAMED = {
|
|
33450
33498
|
amp: "&",
|
|
33451
33499
|
lt: "<",
|
|
@@ -33497,7 +33545,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
33497
33545
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
33498
33546
|
}), "decodeEntities");
|
|
33499
33547
|
|
|
33500
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33548
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
33501
33549
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
33502
33550
|
"fonttbl",
|
|
33503
33551
|
"colortbl",
|
|
@@ -33663,7 +33711,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
33663
33711
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
33664
33712
|
}, "htmlText");
|
|
33665
33713
|
|
|
33666
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33714
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
33667
33715
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
33668
33716
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
33669
33717
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -33719,7 +33767,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
33719
33767
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
33720
33768
|
}, "markdownSections");
|
|
33721
33769
|
|
|
33722
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33770
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
33723
33771
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
33724
33772
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
33725
33773
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -33790,7 +33838,7 @@ var html = {
|
|
|
33790
33838
|
}, "read")
|
|
33791
33839
|
};
|
|
33792
33840
|
|
|
33793
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33841
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
33794
33842
|
var office = {
|
|
33795
33843
|
id: "office",
|
|
33796
33844
|
version: documentExtractor("odt"),
|
|
@@ -33801,7 +33849,7 @@ var office = {
|
|
|
33801
33849
|
}, "read")
|
|
33802
33850
|
};
|
|
33803
33851
|
|
|
33804
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33852
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
33805
33853
|
var pdf = {
|
|
33806
33854
|
id: "pdf",
|
|
33807
33855
|
version: "unpdf",
|
|
@@ -33868,7 +33916,7 @@ var pdf = {
|
|
|
33868
33916
|
}), "read")
|
|
33869
33917
|
};
|
|
33870
33918
|
|
|
33871
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33919
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
33872
33920
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
33873
33921
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
33874
33922
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -33888,7 +33936,7 @@ var plain = {
|
|
|
33888
33936
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
33889
33937
|
};
|
|
33890
33938
|
|
|
33891
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33939
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
33892
33940
|
var rtf = {
|
|
33893
33941
|
id: "rtf",
|
|
33894
33942
|
version: "v1",
|
|
@@ -33896,10 +33944,10 @@ var rtf = {
|
|
|
33896
33944
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
33897
33945
|
};
|
|
33898
33946
|
|
|
33899
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33947
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
33900
33948
|
import { basename as basename5 } from "node:path";
|
|
33901
33949
|
|
|
33902
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33950
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
33903
33951
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
33904
33952
|
const cells = [];
|
|
33905
33953
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -33937,7 +33985,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
33937
33985
|
return { cells, truncated };
|
|
33938
33986
|
}, "delimitedSpans");
|
|
33939
33987
|
|
|
33940
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
33988
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
33941
33989
|
var DELIMITED = {
|
|
33942
33990
|
".csv": ",",
|
|
33943
33991
|
".tsv": " ",
|
|
@@ -33976,7 +34024,7 @@ var sheets = {
|
|
|
33976
34024
|
}, "read")
|
|
33977
34025
|
};
|
|
33978
34026
|
|
|
33979
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34027
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
33980
34028
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
33981
34029
|
var HEAD_BYTES = 1024;
|
|
33982
34030
|
var readers = [...BUILT_INS2];
|
|
@@ -33986,7 +34034,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
33986
34034
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
33987
34035
|
}, "readWithRegistry");
|
|
33988
34036
|
|
|
33989
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
34037
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
33990
34038
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
33991
34039
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
33992
34040
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -35065,7 +35113,7 @@ function imageSize(input) {
|
|
|
35065
35113
|
}
|
|
35066
35114
|
__name(imageSize, "imageSize");
|
|
35067
35115
|
|
|
35068
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35116
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
35069
35117
|
var MAX_PAGES = 20;
|
|
35070
35118
|
var MAX_PIXELS = 2e7;
|
|
35071
35119
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -35225,7 +35273,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
35225
35273
|
}
|
|
35226
35274
|
}, "ocrPdf");
|
|
35227
35275
|
|
|
35228
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35276
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
35229
35277
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
35230
35278
|
const limits = pdfPreviewLimits(env);
|
|
35231
35279
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -35302,7 +35350,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
35302
35350
|
}
|
|
35303
35351
|
}, "pdfPreview");
|
|
35304
35352
|
|
|
35305
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35353
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
35306
35354
|
import { spawn } from "node:child_process";
|
|
35307
35355
|
import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
35308
35356
|
import { tmpdir } from "node:os";
|
|
@@ -35465,7 +35513,7 @@ Read the attached picture.`,
|
|
|
35465
35513
|
}
|
|
35466
35514
|
}, "readPictureWithAgent");
|
|
35467
35515
|
|
|
35468
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35516
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
35469
35517
|
import { createHash as createHash8 } from "node:crypto";
|
|
35470
35518
|
import { constants } from "node:fs";
|
|
35471
35519
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -35488,7 +35536,7 @@ var retainedBytes = /* @__PURE__ */ __name(async (path2, options2, captureFile =
|
|
|
35488
35536
|
if (!before.isFile() || before.isSymbolicLink())
|
|
35489
35537
|
throw new CliError("validation_error", "the retained attachment must be a regular file");
|
|
35490
35538
|
if (before.size > maxBytes)
|
|
35491
|
-
throw new CliError("validation_error", `the retained attachment exceeds ${maxBytes
|
|
35539
|
+
throw new CliError("validation_error", `the retained attachment exceeds ${sizeText(maxBytes)}; configure MESSAGING_ATTACHMENT_MAX_MIB`);
|
|
35492
35540
|
if (offsetBytes > before.size)
|
|
35493
35541
|
throw new CliError("validation_error", "the byte offset is past the end of this attachment");
|
|
35494
35542
|
const handle = await open5(path2, constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0) | (constants.O_NONBLOCK ?? 0));
|
|
@@ -35573,7 +35621,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
35573
35621
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
35574
35622
|
}, "transferMime");
|
|
35575
35623
|
|
|
35576
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35624
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
35577
35625
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
35578
35626
|
import { link as link3, rm } from "node:fs/promises";
|
|
35579
35627
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -35688,12 +35736,12 @@ var save = /* @__PURE__ */ __name(async (file2, directory2, fallbackName, { uniq
|
|
|
35688
35736
|
}
|
|
35689
35737
|
}, "save");
|
|
35690
35738
|
|
|
35691
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35739
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35692
35740
|
import { createHash as createHash9 } from "node:crypto";
|
|
35693
35741
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
35694
35742
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
35695
35743
|
|
|
35696
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35744
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
35697
35745
|
var GROUP_SETTINGS = [
|
|
35698
35746
|
"allCanPin",
|
|
35699
35747
|
"onlyAdminsAdd",
|
|
@@ -35707,7 +35755,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
35707
35755
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
35708
35756
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
35709
35757
|
|
|
35710
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35758
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
35711
35759
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
35712
35760
|
var PICTURE_FLOOR = 0.25;
|
|
35713
35761
|
var PAGE3 = 50;
|
|
@@ -35748,7 +35796,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35748
35796
|
const directory2 = imageModelsDirectory(deps.env);
|
|
35749
35797
|
if (!isImageModelInstalled(model2, directory2))
|
|
35750
35798
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
35751
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35799
|
+
const { openPictureEmbedder } = await import("./embedder-73CCZC52.js");
|
|
35752
35800
|
return openPictureEmbedder(model2, directory2);
|
|
35753
35801
|
}, "open");
|
|
35754
35802
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -35922,7 +35970,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
35922
35970
|
}, "search")
|
|
35923
35971
|
}), "withPictures");
|
|
35924
35972
|
|
|
35925
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
35973
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
35926
35974
|
var ATTACHMENT_QUERY = {
|
|
35927
35975
|
entity: "attachment",
|
|
35928
35976
|
backend: "sql",
|
|
@@ -35947,7 +35995,7 @@ var outcome = /* @__PURE__ */ __name(async (file2, path2, load, signal, noFollow
|
|
|
35947
35995
|
status: "too-large",
|
|
35948
35996
|
issue: withRecovery({
|
|
35949
35997
|
code: "validation_error",
|
|
35950
|
-
message: `attachment exceeds ${maxBytes
|
|
35998
|
+
message: `attachment exceeds ${sizeText(maxBytes)}; configure MESSAGING_ATTACHMENT_MAX_MIB`,
|
|
35951
35999
|
setting: "MESSAGING_ATTACHMENT_MAX_MIB"
|
|
35952
36000
|
})
|
|
35953
36001
|
}), "tooLarge");
|
|
@@ -35968,7 +36016,7 @@ var outcome = /* @__PURE__ */ __name(async (file2, path2, load, signal, noFollow
|
|
|
35968
36016
|
return { status: "missing" };
|
|
35969
36017
|
if (opened.size > maxBytes)
|
|
35970
36018
|
return tooLarge();
|
|
35971
|
-
bytes2 =
|
|
36019
|
+
bytes2 = asBytes(await readWhole(handle, signal));
|
|
35972
36020
|
} finally {
|
|
35973
36021
|
await handle.close();
|
|
35974
36022
|
}
|
|
@@ -36393,7 +36441,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36393
36441
|
}, "readPicture")
|
|
36394
36442
|
}), "attachmentsService");
|
|
36395
36443
|
|
|
36396
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36444
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
36397
36445
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
36398
36446
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
36399
36447
|
const store = await accountStore(deps);
|
|
@@ -36423,7 +36471,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
36423
36471
|
}, "list")
|
|
36424
36472
|
}), "chatDocumentsService");
|
|
36425
36473
|
|
|
36426
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36474
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
36427
36475
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
36428
36476
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
36429
36477
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -36510,7 +36558,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
36510
36558
|
}
|
|
36511
36559
|
}, "isRetentionSelection");
|
|
36512
36560
|
|
|
36513
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36561
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
36514
36562
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
36515
36563
|
const fields2 = text3.split(",").map((one) => one.trim());
|
|
36516
36564
|
if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
|
|
@@ -36717,7 +36765,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
36717
36765
|
};
|
|
36718
36766
|
}, "countersService");
|
|
36719
36767
|
|
|
36720
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36768
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
36721
36769
|
var LEAST_USES = 3;
|
|
36722
36770
|
var SAMPLE2 = 50;
|
|
36723
36771
|
var CAPITALISED = 0.8;
|
|
@@ -36771,7 +36819,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
36771
36819
|
}, "queryWords");
|
|
36772
36820
|
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");
|
|
36773
36821
|
|
|
36774
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36822
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
36775
36823
|
var SYNC_KEY = "messages.sync-first";
|
|
36776
36824
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
36777
36825
|
var keyOf5 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -36862,13 +36910,13 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36862
36910
|
continue;
|
|
36863
36911
|
}
|
|
36864
36912
|
try {
|
|
36865
|
-
const
|
|
36913
|
+
const newest2 = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
36866
36914
|
let counted2 = 0;
|
|
36867
36915
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
36868
36916
|
limit: options2.maxMessages - result.messages,
|
|
36869
36917
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
36870
36918
|
pauseMs: parseDuration(deps.messenger.fetching?.pause ?? "1s", "fetch pause"),
|
|
36871
|
-
...
|
|
36919
|
+
...newest2 ? { sinceMs: Date.parse(newest2.timestamp) + 1 } : {},
|
|
36872
36920
|
stop,
|
|
36873
36921
|
note,
|
|
36874
36922
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
@@ -36903,7 +36951,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
36903
36951
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
36904
36952
|
}), "withRefresh");
|
|
36905
36953
|
|
|
36906
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
36954
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
36907
36955
|
var CANDIDATES = 50;
|
|
36908
36956
|
var ACROSS_CHATS = 500;
|
|
36909
36957
|
var OWN_BLOCK = 5;
|
|
@@ -37364,13 +37412,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
37364
37412
|
return mean2.map((value) => value / length);
|
|
37365
37413
|
}, "meanOf");
|
|
37366
37414
|
|
|
37367
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37415
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
37368
37416
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
37369
37417
|
...embeddingsMaintenance(deps),
|
|
37370
37418
|
...embeddingsSearch(deps)
|
|
37371
37419
|
}), "embeddingsService");
|
|
37372
37420
|
|
|
37373
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37421
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
37374
37422
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
37375
37423
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
37376
37424
|
if (deps.offline)
|
|
@@ -37511,7 +37559,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
37511
37559
|
};
|
|
37512
37560
|
}, "foldersService");
|
|
37513
37561
|
|
|
37514
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37562
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
37515
37563
|
var REVIEW_COUNT = 500;
|
|
37516
37564
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
37517
37565
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -37590,7 +37638,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37590
37638
|
};
|
|
37591
37639
|
}, "mentionsService");
|
|
37592
37640
|
|
|
37593
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37641
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/formatting.js
|
|
37594
37642
|
var invalid5 = /* @__PURE__ */ __name(() => new CliError("validation_error", "the messenger formatter returned invalid text spans"), "invalid");
|
|
37595
37643
|
var validateFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
37596
37644
|
const { text: text3, spans } = formatted2;
|
|
@@ -37650,7 +37698,7 @@ var visibleFormattedText = /* @__PURE__ */ __name((formatted2) => {
|
|
|
37650
37698
|
};
|
|
37651
37699
|
}, "visibleFormattedText");
|
|
37652
37700
|
|
|
37653
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37701
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
37654
37702
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
37655
37703
|
position,
|
|
37656
37704
|
kind: kind2,
|
|
@@ -37699,7 +37747,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
37699
37747
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
37700
37748
|
}, "validatePermalink");
|
|
37701
37749
|
|
|
37702
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37750
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
37703
37751
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
37704
37752
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
37705
37753
|
return `${seconds / 86400}d`;
|
|
@@ -37731,7 +37779,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
37731
37779
|
return seconds;
|
|
37732
37780
|
}, "pinDurationOf");
|
|
37733
37781
|
|
|
37734
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37782
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
37735
37783
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
37736
37784
|
if (sendAs === void 0) {
|
|
37737
37785
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -37756,7 +37804,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
37756
37804
|
return sendAs;
|
|
37757
37805
|
}, "typedSendAs");
|
|
37758
37806
|
|
|
37759
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37807
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
37760
37808
|
var TOTAL_CAP = 1e4;
|
|
37761
37809
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
37762
37810
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -37767,7 +37815,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
37767
37815
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
37768
37816
|
}, "totalOf");
|
|
37769
37817
|
|
|
37770
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37818
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
37771
37819
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
37772
37820
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
37773
37821
|
let narrows = false;
|
|
@@ -37796,7 +37844,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
37796
37844
|
return wanted(root).join(" ").trim();
|
|
37797
37845
|
}, "meaningWords");
|
|
37798
37846
|
|
|
37799
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
37847
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
37800
37848
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
37801
37849
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
37802
37850
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -37997,7 +38045,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
37997
38045
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
37998
38046
|
}, "signals");
|
|
37999
38047
|
|
|
38000
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38048
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
38001
38049
|
var MEANING_DEPTH = 100;
|
|
38002
38050
|
var RRF_K3 = 60;
|
|
38003
38051
|
var RERANK_DEPTH = 50;
|
|
@@ -38323,7 +38371,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
38323
38371
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
38324
38372
|
}, "mixedWithReranker");
|
|
38325
38373
|
|
|
38326
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38374
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
38327
38375
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
38328
38376
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
38329
38377
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -38522,7 +38570,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
38522
38570
|
return result;
|
|
38523
38571
|
}, "readThreadContext");
|
|
38524
38572
|
|
|
38525
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38573
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
38526
38574
|
var SEARCH_FILL_MS = 200;
|
|
38527
38575
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
38528
38576
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -38630,7 +38678,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
38630
38678
|
}, "accountOf");
|
|
38631
38679
|
var keyOf6 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
38632
38680
|
|
|
38633
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38681
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
38634
38682
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
38635
38683
|
const chosen = chosenTextModel(env);
|
|
38636
38684
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -38645,7 +38693,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
38645
38693
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
38646
38694
|
}, "meaningModel");
|
|
38647
38695
|
|
|
38648
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38696
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
38649
38697
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
38650
38698
|
try {
|
|
38651
38699
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -38724,7 +38772,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
38724
38772
|
}
|
|
38725
38773
|
}, "meaningLane");
|
|
38726
38774
|
|
|
38727
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38775
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
38728
38776
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
38729
38777
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
38730
38778
|
if (choice === "off")
|
|
@@ -38736,9 +38784,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
38736
38784
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
38737
38785
|
try {
|
|
38738
38786
|
const warm = deps.embedders;
|
|
38739
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
38787
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-AFIXYXWL.js")).openRerankerProcess(model, directory2, {
|
|
38740
38788
|
threads: defaultThreads()
|
|
38741
|
-
})) : await (await import("./rerank-
|
|
38789
|
+
})) : await (await import("./rerank-OBZQ54NL.js")).openReranker(model, directory2);
|
|
38742
38790
|
return {
|
|
38743
38791
|
model: model.id,
|
|
38744
38792
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -38758,7 +38806,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
38758
38806
|
};
|
|
38759
38807
|
}, "rerankLane");
|
|
38760
38808
|
|
|
38761
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38809
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
38762
38810
|
var DAY7 = 864e5;
|
|
38763
38811
|
var SPAN = { start: 0, end: 0 };
|
|
38764
38812
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -38883,17 +38931,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
38883
38931
|
};
|
|
38884
38932
|
}, "questionPeriod");
|
|
38885
38933
|
|
|
38886
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38934
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
38887
38935
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
38888
38936
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
38889
38937
|
const directory2 = imageModelsDirectory(env);
|
|
38890
38938
|
if (!isImageModelInstalled(model, directory2))
|
|
38891
38939
|
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 });
|
|
38892
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
38940
|
+
const { openPictureEmbedder } = await import("./embedder-73CCZC52.js");
|
|
38893
38941
|
return openPictureEmbedder(model, directory2);
|
|
38894
38942
|
}, "openPictureEmbedderFor");
|
|
38895
38943
|
|
|
38896
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38944
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
38897
38945
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) => {
|
|
38898
38946
|
const metadata = note.frontMatter;
|
|
38899
38947
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -38915,7 +38963,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file2) =>
|
|
|
38915
38963
|
};
|
|
38916
38964
|
}, "documentSource");
|
|
38917
38965
|
|
|
38918
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38966
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
38919
38967
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
38920
38968
|
const host = new URL(baseUrl).host;
|
|
38921
38969
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -38948,7 +38996,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
38948
38996
|
};
|
|
38949
38997
|
}, "embeddingKeys");
|
|
38950
38998
|
|
|
38951
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
38999
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
38952
39000
|
var options = strictObject({
|
|
38953
39001
|
temperature: range(0, 2),
|
|
38954
39002
|
top_p: range(0, 1),
|
|
@@ -39015,7 +39063,7 @@ var openai = {
|
|
|
39015
39063
|
}), "complete")
|
|
39016
39064
|
};
|
|
39017
39065
|
|
|
39018
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39066
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
39019
39067
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
39020
39068
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
39021
39069
|
if (deps.signal?.aborted)
|
|
@@ -39030,7 +39078,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
39030
39078
|
if (!adapter && target2.provider === "openai")
|
|
39031
39079
|
adapter = openai;
|
|
39032
39080
|
if (!adapter && target2.provider === "anthropic")
|
|
39033
|
-
adapter = (await import("./anthropic-
|
|
39081
|
+
adapter = (await import("./anthropic-V4RZS5XM.js")).anthropic;
|
|
39034
39082
|
if (!adapter)
|
|
39035
39083
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
39036
39084
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -39090,7 +39138,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
39090
39138
|
}, "complete")
|
|
39091
39139
|
}), "modelGateway");
|
|
39092
39140
|
|
|
39093
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39141
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
39094
39142
|
var SECTION2 = "enrichment";
|
|
39095
39143
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
39096
39144
|
var DEFAULT_BASE_URLS = {
|
|
@@ -39165,7 +39213,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
39165
39213
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
39166
39214
|
}, "costOf");
|
|
39167
39215
|
|
|
39168
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39216
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
39169
39217
|
var ENRICH_PER_RUN = 600;
|
|
39170
39218
|
var MAX_LINE = 400;
|
|
39171
39219
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -39241,7 +39289,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
39241
39289
|
};
|
|
39242
39290
|
}, "enrichmentState");
|
|
39243
39291
|
|
|
39244
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39292
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
39245
39293
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
39246
39294
|
let root;
|
|
39247
39295
|
try {
|
|
@@ -39268,7 +39316,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
39268
39316
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
39269
39317
|
}, "titleTiers");
|
|
39270
39318
|
|
|
39271
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39319
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
39272
39320
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
39273
39321
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
39274
39322
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -39736,7 +39784,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
39736
39784
|
};
|
|
39737
39785
|
}, "searchNotesOf");
|
|
39738
39786
|
|
|
39739
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39787
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/crm-meaning.js
|
|
39740
39788
|
var embedCrmActivities = /* @__PURE__ */ __name(async (store, options2 = {}) => {
|
|
39741
39789
|
localModel(options2.model, options2.env, options2.command);
|
|
39742
39790
|
const until = stopsAt(options2.deadline);
|
|
@@ -39760,7 +39808,7 @@ var nearestCrmActivities = /* @__PURE__ */ __name(async (store, words3, { limit,
|
|
|
39760
39808
|
})).filter(({ score }) => score > floor);
|
|
39761
39809
|
}, "nearestCrmActivities");
|
|
39762
39810
|
|
|
39763
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39811
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
39764
39812
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
39765
39813
|
var iso3 = /* @__PURE__ */ __name((at2) => at2 === null ? null : new Date(at2).toISOString(), "iso");
|
|
39766
39814
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -39794,11 +39842,11 @@ var nearestEvents = /* @__PURE__ */ __name(async (store, words3, { limit, accoun
|
|
|
39794
39842
|
return (await store.calendar.nearest(key, vector, { limit, ...accountIds ? { accountIds } : {} })).filter(({ score }) => score > floor);
|
|
39795
39843
|
}, "nearestEvents");
|
|
39796
39844
|
var keyOf7 = /* @__PURE__ */ __name(({ event: event2 }) => event2.eventSeriesId === null ? `e${event2.id}` : `s${event2.eventSeriesId}`, "keyOf");
|
|
39797
|
-
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, discover, newest, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
39845
|
+
var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, offset = 0, accounts, exact, discover, newest: newest2, timezone, signal, candidates, env, command, embedders } = {}) => {
|
|
39798
39846
|
if (!query.trim())
|
|
39799
39847
|
throw new CliError("validation_error", "say what to find in the events");
|
|
39800
39848
|
query = plainQuery(query);
|
|
39801
|
-
const asked = discover && !exact && !
|
|
39849
|
+
const asked = discover && !exact && !newest2 ? questionLookup(query) : void 0;
|
|
39802
39850
|
const { root, stemmer } = await storeQuery(store, asked ?? query, {
|
|
39803
39851
|
...exact ? { exact: true } : {},
|
|
39804
39852
|
...timezone === void 0 ? {} : { timezone }
|
|
@@ -39812,7 +39860,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
39812
39860
|
let meaning;
|
|
39813
39861
|
if (exact)
|
|
39814
39862
|
meaningSkipped = "--exact searches words as written";
|
|
39815
|
-
else if (
|
|
39863
|
+
else if (newest2)
|
|
39816
39864
|
meaningSkipped = "newest first orders by time";
|
|
39817
39865
|
else if (words3 === void 0)
|
|
39818
39866
|
meaningSkipped = "the query has fields or operators, which meaning cannot follow";
|
|
@@ -39835,7 +39883,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
39835
39883
|
limit: meaning === void 0 ? limit : Math.max(window2, CANDIDATES3),
|
|
39836
39884
|
offset: meaning === void 0 ? offset : 0,
|
|
39837
39885
|
...accountIds === void 0 ? {} : { accountIds },
|
|
39838
|
-
...
|
|
39886
|
+
...newest2 ? { newest: true } : {},
|
|
39839
39887
|
...stemmer ? { stemmer } : {},
|
|
39840
39888
|
...signal ? { signal } : {},
|
|
39841
39889
|
...candidates === void 0 ? {} : { candidates }
|
|
@@ -39878,7 +39926,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
39878
39926
|
};
|
|
39879
39927
|
}, "searchEvents");
|
|
39880
39928
|
|
|
39881
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39929
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
39882
39930
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
39883
39931
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
39884
39932
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -39908,7 +39956,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
39908
39956
|
};
|
|
39909
39957
|
}, "searchBusiness");
|
|
39910
39958
|
|
|
39911
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
39959
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
39912
39960
|
var MOST_HITS_PER_MEETING = 3;
|
|
39913
39961
|
var PAGE_ROWS = 200;
|
|
39914
39962
|
var MOST_PAGES3 = 25;
|
|
@@ -40136,7 +40184,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
40136
40184
|
foundBy: ["title"]
|
|
40137
40185
|
}), "titleItem");
|
|
40138
40186
|
|
|
40139
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40187
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-all-rank.js
|
|
40140
40188
|
var titleWords2 = /* @__PURE__ */ __name((text3, refused2 = "deals and leads are found by the words of their title, company, contacts and activities only") => {
|
|
40141
40189
|
const { root } = parseLucene(text3, SEARCH_QUERY);
|
|
40142
40190
|
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
@@ -40211,7 +40259,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
40211
40259
|
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);
|
|
40212
40260
|
}, "insidePeriodFirst");
|
|
40213
40261
|
|
|
40214
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40262
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/tracker-meaning.js
|
|
40215
40263
|
var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accounts, env, command, embedders }) => {
|
|
40216
40264
|
const { model, directory: directory2, key } = localModel(await meaningModel(store, env), env, command);
|
|
40217
40265
|
if (!await store.tracker.embedded(key, accounts))
|
|
@@ -40221,7 +40269,7 @@ var nearestTracker = /* @__PURE__ */ __name(async (store, words3, { limit, accou
|
|
|
40221
40269
|
return (await store.tracker.nearest(key, vector, { limit, accounts })).filter(({ score }) => score > floor);
|
|
40222
40270
|
}, "nearestTracker");
|
|
40223
40271
|
|
|
40224
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40272
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-all-tracker.js
|
|
40225
40273
|
var TRACKER_HIT_KINDS = { issue: "issue", project: "project", comment: "issue_comment" };
|
|
40226
40274
|
var trackerTitle = /* @__PURE__ */ __name(({ kind: kind2, record: record2 }) => {
|
|
40227
40275
|
const title = trackerTitleOf(kind2, record2);
|
|
@@ -40315,7 +40363,7 @@ var trackerLane = /* @__PURE__ */ __name(async (store, { text: text3, accounts:
|
|
|
40315
40363
|
return { hits, records, hasMore: found.hasMore, tracker, ...meaningReason ? { meaningReason } : {} };
|
|
40316
40364
|
}, "trackerLane");
|
|
40317
40365
|
|
|
40318
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40366
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
40319
40367
|
var SECTION3 = "search_harder";
|
|
40320
40368
|
var HARDER_MODELS = {
|
|
40321
40369
|
anthropic: "claude-haiku-5-5",
|
|
@@ -40561,7 +40609,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
40561
40609
|
};
|
|
40562
40610
|
}, "reorderHarder");
|
|
40563
40611
|
|
|
40564
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
40612
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
40565
40613
|
var RESOURCES_SEARCHED = [
|
|
40566
40614
|
"messages",
|
|
40567
40615
|
"mail",
|
|
@@ -41058,7 +41106,7 @@ var withMeetingDocuments = /* @__PURE__ */ __name(async (store, lists, read2) =>
|
|
|
41058
41106
|
}));
|
|
41059
41107
|
}, "withMeetingDocuments");
|
|
41060
41108
|
|
|
41061
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41109
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
41062
41110
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
41063
41111
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
41064
41112
|
var DEFAULT_BACKEND = "both";
|
|
@@ -41257,7 +41305,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
41257
41305
|
return { report, sources };
|
|
41258
41306
|
}, "searchServer");
|
|
41259
41307
|
|
|
41260
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41308
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
41261
41309
|
var DELETE_AT_ONCE = 10;
|
|
41262
41310
|
var atOnce = /* @__PURE__ */ __name((ids) => {
|
|
41263
41311
|
if (ids.length > DELETE_AT_ONCE)
|
|
@@ -41757,7 +41805,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
41757
41805
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
41758
41806
|
}, "checkMediaOptions");
|
|
41759
41807
|
|
|
41760
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41808
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
41761
41809
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
41762
41810
|
var RULES2 = {
|
|
41763
41811
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -41772,7 +41820,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
41772
41820
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
41773
41821
|
}), "classifyChannel");
|
|
41774
41822
|
|
|
41775
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41823
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
41776
41824
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
41777
41825
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
41778
41826
|
const store = await deps.store();
|
|
@@ -41858,7 +41906,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
41858
41906
|
};
|
|
41859
41907
|
}, "metadataService");
|
|
41860
41908
|
|
|
41861
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
41909
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/moderation/check.js
|
|
41862
41910
|
var INVITE = /max\.ru\/join\/|(t|telegram)\.me\/(\+|joinchat\/)|tg:\/\/join/i;
|
|
41863
41911
|
var LINK2 = /https?:\/\/\S+/i;
|
|
41864
41912
|
var STRENGTH = { report: 0, delete: 1, remove: 2 };
|
|
@@ -42046,7 +42094,7 @@ var nextPoint = /* @__PURE__ */ __name((rows, found) => {
|
|
|
42046
42094
|
}, "nextPoint");
|
|
42047
42095
|
var someUndone = /* @__PURE__ */ __name((rows) => rows.some(undone), "someUndone");
|
|
42048
42096
|
|
|
42049
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42097
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/moderation/rules.js
|
|
42050
42098
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync9 } from "node:fs";
|
|
42051
42099
|
import { join as join18 } from "node:path";
|
|
42052
42100
|
var RULE_ACTIONS = ["report", "delete", "remove"];
|
|
@@ -42198,7 +42246,7 @@ var assign = /* @__PURE__ */ __name((rules, key, value) => {
|
|
|
42198
42246
|
return { ...rules, [head]: { ...rules[head], [tail]: value } };
|
|
42199
42247
|
}, "assign");
|
|
42200
42248
|
|
|
42201
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42249
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
42202
42250
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
42203
42251
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
42204
42252
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -42235,7 +42283,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
42235
42283
|
return { chatId, rows, notes };
|
|
42236
42284
|
}, "moderateWith");
|
|
42237
42285
|
|
|
42238
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42286
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
42239
42287
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
42240
42288
|
const file2 = /* @__PURE__ */ __name(() => {
|
|
42241
42289
|
const env = deps.env ?? process.env;
|
|
@@ -42320,7 +42368,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
42320
42368
|
}, "removePerson")
|
|
42321
42369
|
}), "moderatorOf");
|
|
42322
42370
|
|
|
42323
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42371
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
42324
42372
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
42325
42373
|
id: note.id,
|
|
42326
42374
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -42364,7 +42412,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
42364
42412
|
};
|
|
42365
42413
|
}, "privatePeopleService");
|
|
42366
42414
|
|
|
42367
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42415
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
42368
42416
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
42369
42417
|
total: 0,
|
|
42370
42418
|
population: 0,
|
|
@@ -42620,7 +42668,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
42620
42668
|
}, "evidence")
|
|
42621
42669
|
}), "rankingsService");
|
|
42622
42670
|
|
|
42623
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42671
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
42624
42672
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
42625
42673
|
var WAITING_TAIL = 100;
|
|
42626
42674
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -42685,12 +42733,12 @@ var figuresOf = /* @__PURE__ */ __name((delays) => {
|
|
|
42685
42733
|
};
|
|
42686
42734
|
}, "figuresOf");
|
|
42687
42735
|
var MINUTE2 = 6e4;
|
|
42688
|
-
var waitsOnOwner = /* @__PURE__ */ __name((
|
|
42689
|
-
if (
|
|
42736
|
+
var waitsOnOwner = /* @__PURE__ */ __name((newest2) => {
|
|
42737
|
+
if (newest2.mine)
|
|
42690
42738
|
return false;
|
|
42691
|
-
if (
|
|
42692
|
-
return !
|
|
42693
|
-
return
|
|
42739
|
+
if (newest2.kind === "private")
|
|
42740
|
+
return !newest2.quiet && rankingQuestion(newest2.text);
|
|
42741
|
+
return newest2.addressed || newest2.ownerUsername !== null && new RegExp(`(^|[^\\w@])@${newest2.ownerUsername.replace(/[^\w]/g, "\\$&")}(?!\\w)`, "i").test(newest2.text);
|
|
42694
42742
|
}, "waitsOnOwner");
|
|
42695
42743
|
var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
42696
42744
|
const prepared = /* @__PURE__ */ __name(async (query, command) => {
|
|
@@ -42754,7 +42802,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42754
42802
|
};
|
|
42755
42803
|
}, "replyStatsService");
|
|
42756
42804
|
|
|
42757
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42805
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
42758
42806
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
42759
42807
|
id: one.id,
|
|
42760
42808
|
name: one.name,
|
|
@@ -42880,7 +42928,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
42880
42928
|
};
|
|
42881
42929
|
}, "searchesService");
|
|
42882
42930
|
|
|
42883
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
42931
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
42884
42932
|
var TAGGING_QUERY = {
|
|
42885
42933
|
entity: "tagging",
|
|
42886
42934
|
backend: "sql",
|
|
@@ -42964,7 +43012,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
42964
43012
|
};
|
|
42965
43013
|
}, "tagsService");
|
|
42966
43014
|
|
|
42967
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43015
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
42968
43016
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
42969
43017
|
const set2 = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
42970
43018
|
if (title !== void 0 || icon !== void 0 || set2 !== 1)
|
|
@@ -43163,7 +43211,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
43163
43211
|
};
|
|
43164
43212
|
}, "topicsService");
|
|
43165
43213
|
|
|
43166
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43214
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
43167
43215
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
43168
43216
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
43169
43217
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -43237,7 +43285,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
43237
43285
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
43238
43286
|
}, "prepareEvidencePacket");
|
|
43239
43287
|
|
|
43240
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43288
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
43241
43289
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
43242
43290
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
43243
43291
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -43257,7 +43305,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
43257
43305
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
43258
43306
|
}, "readEvidencePacket");
|
|
43259
43307
|
|
|
43260
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43308
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
43261
43309
|
var scopeKeys = [
|
|
43262
43310
|
"accountId",
|
|
43263
43311
|
"meetingId",
|
|
@@ -43279,7 +43327,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
43279
43327
|
"maxVocabularyReadBytes"
|
|
43280
43328
|
]);
|
|
43281
43329
|
|
|
43282
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43330
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
43283
43331
|
import { createHash as createHash12 } from "node:crypto";
|
|
43284
43332
|
import { existsSync as existsSync3 } from "node:fs";
|
|
43285
43333
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -43410,14 +43458,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
43410
43458
|
return { ...checked2.output, custom: true };
|
|
43411
43459
|
}, "addCustomTextModel");
|
|
43412
43460
|
|
|
43413
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43461
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
43414
43462
|
var DAY8 = 864e5;
|
|
43415
43463
|
var SLOTS_EVERY = 7 * DAY8;
|
|
43416
43464
|
|
|
43417
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43465
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
43418
43466
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
43419
43467
|
|
|
43420
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43468
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
43421
43469
|
var LIST = "events list";
|
|
43422
43470
|
var EVENT_TYPES = [
|
|
43423
43471
|
"default",
|
|
@@ -43476,7 +43524,7 @@ var EVENTS_QUERY = {
|
|
|
43476
43524
|
} : field)
|
|
43477
43525
|
};
|
|
43478
43526
|
|
|
43479
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43527
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
43480
43528
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
43481
43529
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
43482
43530
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -43494,7 +43542,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
43494
43542
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
43495
43543
|
};
|
|
43496
43544
|
|
|
43497
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43545
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
43498
43546
|
var communicationFields = {
|
|
43499
43547
|
sources: pipe(array(strictObject({
|
|
43500
43548
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -43526,7 +43574,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
43526
43574
|
return { ...input, after, before };
|
|
43527
43575
|
}, "communicationRequest");
|
|
43528
43576
|
|
|
43529
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43577
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
43530
43578
|
var MEETING_PREPARATION_LIMITS = {
|
|
43531
43579
|
meetings: { min: 1, max: 20, default: 5 },
|
|
43532
43580
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -43599,7 +43647,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
43599
43647
|
};
|
|
43600
43648
|
}, "validateMeetingPreparationRequest");
|
|
43601
43649
|
|
|
43602
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43650
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
43603
43651
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
43604
43652
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
43605
43653
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -43647,7 +43695,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
43647
43695
|
}
|
|
43648
43696
|
}, "validatePreparationCommunications");
|
|
43649
43697
|
|
|
43650
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43698
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
43651
43699
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
43652
43700
|
const installer = ports.installer();
|
|
43653
43701
|
const argv = updateCommand(installer, packageName);
|
|
@@ -43712,7 +43760,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
43712
43760
|
return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
|
|
43713
43761
|
}, "dayAfter");
|
|
43714
43762
|
|
|
43715
|
-
// node_modules/.pnpm/@wirecat+cli-core@
|
|
43763
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
43716
43764
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
43717
43765
|
const pictures = picturesService(deps);
|
|
43718
43766
|
const base = {
|
|
@@ -43750,12 +43798,12 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
43750
43798
|
}, "servicesFor");
|
|
43751
43799
|
|
|
43752
43800
|
export {
|
|
43801
|
+
withTimeLimit,
|
|
43753
43802
|
communicationFields,
|
|
43754
43803
|
OFFLINE,
|
|
43755
43804
|
onlineDeps,
|
|
43756
43805
|
storedDeps,
|
|
43757
43806
|
storeModeDeps,
|
|
43758
|
-
withTimeLimit,
|
|
43759
43807
|
REGISTRIES,
|
|
43760
43808
|
registriesCover,
|
|
43761
43809
|
chatCoverage,
|