@wirecat/mail-cli 0.35.0 → 0.36.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 +20 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-MW7YWUIY.js +39 -0
- package/dist/bundle/{all-profiles-6BDSMVOO.js → all-profiles-RS6OV3YO.js} +11 -11
- package/dist/bundle/{anthropic-C3XUXUCJ.js → anthropic-PPQ7DTXN.js} +5 -5
- package/dist/bundle/{app-server-GUHDK4OR.js → app-server-EBFBMFQC.js} +67 -67
- package/dist/bundle/{bun-FN7AM4AG.js → bun-J7HAT7MW.js} +2 -2
- package/dist/bundle/{bun-sqlite-56IVBF22.js → bun-sqlite-PCSNAXIQ.js} +6 -6
- package/dist/bundle/{chunk-DREU6TN6.js → chunk-2RV4V55B.js} +18 -18
- package/dist/bundle/{chunk-CMGZXBJW.js → chunk-2UNZ3L2H.js} +6 -6
- package/dist/bundle/{chunk-5WYBI35N.js → chunk-2VEFNFYZ.js} +3 -3
- package/dist/bundle/{chunk-XQNKAM26.js → chunk-3BYKGMRM.js} +6 -6
- package/dist/bundle/{chunk-ZMYRPMAJ.js → chunk-3NOXZZJV.js} +1 -1
- package/dist/bundle/{chunk-UWDRU3R6.js → chunk-3ZKNXKM7.js} +2 -2
- package/dist/bundle/{chunk-GG634DR3.js → chunk-42XY6D5C.js} +5 -5
- package/dist/bundle/{chunk-4IASS7NQ.js → chunk-437UHSIO.js} +69 -5
- package/dist/bundle/{chunk-6Q5THDNW.js → chunk-4WSTWZUB.js} +2 -2
- package/dist/bundle/{chunk-46SBNO67.js → chunk-5G4MDFZ2.js} +7 -7
- package/dist/bundle/{chunk-TP766H4O.js → chunk-5JEKBYIH.js} +14 -14
- package/dist/bundle/{chunk-6VARUB3J.js → chunk-5TIWO6AR.js} +12 -12
- package/dist/bundle/{chunk-DFHUJTP5.js → chunk-5VPLQS4S.js} +2 -2
- package/dist/bundle/{chunk-G662S2M4.js → chunk-645FQC4G.js} +16 -16
- package/dist/bundle/{chunk-OTP2HJ67.js → chunk-6FZPFNEU.js} +9 -9
- package/dist/bundle/{chunk-YTI533XF.js → chunk-6LJIENVT.js} +2 -2
- package/dist/bundle/{chunk-W7ICCFG5.js → chunk-6NDPOY4N.js} +1 -1
- package/dist/bundle/{chunk-3ACF6TIV.js → chunk-6PKMUKUF.js} +1 -1
- package/dist/bundle/{chunk-DZHEVVXA.js → chunk-6TT62IUW.js} +25 -25
- package/dist/bundle/{chunk-EU4J6GCJ.js → chunk-6UYIWQLU.js} +4 -4
- package/dist/bundle/{chunk-W4JYGMTU.js → chunk-6VMJLOYO.js} +12 -12
- package/dist/bundle/{chunk-CDGVYQXG.js → chunk-774VG5WZ.js} +1 -1
- package/dist/bundle/{chunk-MCJYJIH5.js → chunk-AVR4FPYG.js} +8 -8
- package/dist/bundle/{chunk-WDEVKKAD.js → chunk-BBQERXQX.js} +3 -3
- package/dist/bundle/{chunk-YA44BG3N.js → chunk-C3JSQ7UJ.js} +23 -10
- package/dist/bundle/{chunk-6B4WZVLN.js → chunk-CJHO6B3M.js} +26 -26
- package/dist/bundle/{chunk-ODQCRZX5.js → chunk-CJMZQ2MZ.js} +8 -8
- package/dist/bundle/{chunk-2UNQTKRH.js → chunk-CMOO4INK.js} +1 -1
- package/dist/bundle/{chunk-7PXAUMK5.js → chunk-DVJPEZGV.js} +13 -13
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-EGR3YUWD.js} +4 -4
- package/dist/bundle/{chunk-RQJGX7F7.js → chunk-GBZIWCEP.js} +3 -3
- package/dist/bundle/{chunk-635AFLZO.js → chunk-GCTHVCJU.js} +4 -4
- package/dist/bundle/{chunk-DD2P67NP.js → chunk-GEU3WR75.js} +3 -3
- package/dist/bundle/{chunk-ILEKGH44.js → chunk-GI6DNX7Q.js} +35 -35
- package/dist/bundle/{chunk-Q5U2HIBJ.js → chunk-HH34WRQE.js} +7 -7
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-HPSESLOZ.js} +1 -1
- package/dist/bundle/{chunk-EHAXFDDP.js → chunk-IBOWSQ7X.js} +3 -4
- package/dist/bundle/{chunk-RJNKM3CQ.js → chunk-JCILSTFK.js} +1 -1
- package/dist/bundle/{chunk-4U5ODZO7.js → chunk-KLPFPNZP.js} +11 -11
- package/dist/bundle/{chunk-PQDQCCGG.js → chunk-KP7JHJVP.js} +17 -17
- package/dist/bundle/{chunk-3EV2B7KZ.js → chunk-KTVQIKU5.js} +13 -13
- package/dist/bundle/{chunk-YCIWSKOH.js → chunk-KVFBSOCV.js} +9 -9
- package/dist/bundle/{chunk-7YMLEWTX.js → chunk-L4QLZDBZ.js} +6 -6
- package/dist/bundle/{chunk-2B67TUIF.js → chunk-LQQIYBHN.js} +64 -60
- package/dist/bundle/{chunk-J5ULUTWE.js → chunk-MQ6DQRRI.js} +4 -4
- package/dist/bundle/{chunk-HKWZG7CZ.js → chunk-MRWV5VNQ.js} +6 -6
- package/dist/bundle/{chunk-EX4Z7CCO.js → chunk-MT3LYU4T.js} +379 -379
- package/dist/bundle/{chunk-TP2BCK2Z.js → chunk-NCY55XIT.js} +8 -8
- package/dist/bundle/{chunk-5XQI7WCJ.js → chunk-NJZR3OFK.js} +1 -1
- package/dist/bundle/{chunk-YRAJFTFU.js → chunk-NSH2UHJR.js} +8 -8
- package/dist/bundle/{chunk-3KAJCOJP.js → chunk-NTUP5RCP.js} +8 -1
- package/dist/bundle/{chunk-OO4OKMNB.js → chunk-NYR7PIAG.js} +3 -3
- package/dist/bundle/{chunk-TARNPINT.js → chunk-NYYMMIVW.js} +3 -3
- package/dist/bundle/{chunk-YQTRKNZQ.js → chunk-OEL4DQTT.js} +4 -4
- package/dist/bundle/{chunk-E6HSSKRX.js → chunk-PF7ZNIVP.js} +2 -2
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-PMGAU6AP.js} +2 -2
- package/dist/bundle/{chunk-UHGKN5US.js → chunk-PMSZBUC7.js} +8 -8
- package/dist/bundle/{chunk-7KMI47AP.js → chunk-PPIMXOBT.js} +6 -6
- package/dist/bundle/{chunk-WZKM5I7B.js → chunk-Q6TPXXOS.js} +16 -16
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-QDNYJOWJ.js} +1 -1
- package/dist/bundle/{chunk-AISQNKT7.js → chunk-QI2XGTFH.js} +8 -8
- package/dist/bundle/{chunk-OOQFBRNR.js → chunk-REWV37HQ.js} +6 -6
- package/dist/bundle/{chunk-HF5QWKK2.js → chunk-RJUVWJTA.js} +7 -7
- package/dist/bundle/{chunk-XKKYRMGG.js → chunk-RMWS7IQ4.js} +4 -4
- package/dist/bundle/{chunk-QYCMB7JY.js → chunk-ROK7Z5LQ.js} +162 -157
- package/dist/bundle/{chunk-QFMKCU42.js → chunk-SCJVKWMV.js} +265 -264
- package/dist/bundle/{chunk-3WAZKCDF.js → chunk-SJNFPBPF.js} +2 -2
- package/dist/bundle/{chunk-RBV2AM52.js → chunk-TV634B6T.js} +1 -1
- package/dist/bundle/{chunk-L4RCWRWS.js → chunk-U3BO342P.js} +1 -1
- package/dist/bundle/{chunk-V4O47JV6.js → chunk-U67XMAEE.js} +3 -3
- package/dist/bundle/{chunk-HJDIMVFW.js → chunk-V5I7QP4T.js} +2 -2
- package/dist/bundle/{chunk-ZYEU35MB.js → chunk-VIDPFLFM.js} +2 -2
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-VIJV474N.js} +1 -1
- package/dist/bundle/{chunk-AXKIXVQA.js → chunk-WNQECDIP.js} +61 -61
- package/dist/bundle/{chunk-RQHWSNX4.js → chunk-WPPPO427.js} +4 -4
- package/dist/bundle/{chunk-7FXZKQAC.js → chunk-WZFGZBGD.js} +19 -19
- package/dist/bundle/{chunk-ZX7HZDD6.js → chunk-XRVZMM5B.js} +46 -32
- package/dist/bundle/{chunk-NEDS4ORI.js → chunk-YPB5BEAD.js} +2 -2
- package/dist/bundle/{chunk-I3QZCQJT.js → chunk-ZRSLG3B3.js} +6 -6
- package/dist/bundle/{chunk-GU3PYIV2.js → chunk-ZV57PIPE.js} +2 -2
- package/dist/bundle/command-contract-WFTIRPL5.js +39 -0
- package/dist/bundle/{command-server-entry-TPJ47FYS.js → command-server-entry-73RJELAV.js} +28 -28
- package/dist/bundle/{decode-XHUASXQK.js → decode-7BUWBDPT.js} +5 -5
- package/dist/bundle/{dispatch-MQZHGGVP.js → dispatch-IBOMVWZA.js} +8 -8
- package/dist/bundle/{dist-BAE4IQ52.js → dist-MULVCVSR.js} +20 -18
- package/dist/bundle/{echarts-U7Z2PKIG.js → echarts-VLWFC322.js} +2 -2
- package/dist/bundle/{embed-W7GPB6EI.js → embed-W3VH4HPY.js} +6 -6
- package/dist/bundle/{embedder-T72XLFQ5.js → embedder-I7ERQZJV.js} +9 -9
- package/dist/bundle/{failure-MP6VKL5Y.js → failure-QMAPSQ7X.js} +2 -2
- package/dist/bundle/{first-run-C44TJXRI.js → first-run-LCVER6QN.js} +12 -12
- package/dist/bundle/first-screen-DCTHI4NQ.js +39 -0
- package/dist/bundle/{instructions-WGMWQNPP.js → instructions-BNCVLSYQ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-Z2KZNCXB.js} +2 -2
- package/dist/bundle/meeting-combined-ITU7SZ7E.js +24 -0
- package/dist/bundle/{meeting-model-QVHLD4WI.js → meeting-model-BWLSTNXA.js} +11 -11
- package/dist/bundle/{meeting-semantic-QKQHUHXX.js → meeting-semantic-ZIEHXN2R.js} +6 -6
- package/dist/bundle/{node-WANDMJJQ.js → node-RYFTRSG4.js} +2 -2
- package/dist/bundle/{node-sqlite-NM5XA4DR.js → node-sqlite-XCHVNTGQ.js} +7 -7
- package/dist/bundle/{oauth-6E63ELEE.js → oauth-FNUJSKKJ.js} +7 -7
- package/dist/bundle/{open-5542RTLE.js → open-WVWSJ3WI.js} +5 -5
- package/dist/bundle/{openai-NOYNPFB5.js → openai-QOUTYYTF.js} +15 -15
- package/dist/bundle/{process-7AEXXSBX.js → process-W5KPID53.js} +1 -1
- package/dist/bundle/{program-VMA5CGNR.js → program-L5UANM3I.js} +662 -505
- package/dist/bundle/{prompt-WYYO4AJL.js → prompt-JSBAPNJE.js} +5 -5
- package/dist/bundle/{recognize-UGCCOMAS.js → recognize-FDX4SJ6Q.js} +4 -4
- package/dist/bundle/{remote-VZS6BNQB.js → remote-MYOXOQHM.js} +9 -9
- package/dist/bundle/{rerank-O46D5GJ2.js → rerank-NY5MSZCR.js} +7 -7
- package/dist/bundle/{serve-QAAF2LCW.js → serve-URI6NZA3.js} +9 -9
- package/dist/bundle/{server-Q3PUZLLX.js → server-HQ25RHQM.js} +59 -59
- package/dist/bundle/server-UVYFU2JN.js +84 -0
- package/dist/bundle/{sqlite-runtime-EQBCDO2U.js → sqlite-runtime-6UUPSSKG.js} +6 -6
- package/dist/bundle/{state-XIOHYXCR.js → state-NDDVFPCI.js} +6 -6
- package/dist/bundle/{store-VJBL5XKR.js → store-2RDOICVN.js} +24 -24
- package/dist/bundle/{store-OXJZZUR7.js → store-PKYWPKKR.js} +22 -22
- package/dist/bundle/store-maintenance-command-Y5XTO47X.js +71 -0
- package/dist/bundle/surface-3XKM3MQ2.js +70 -0
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -1
- package/dist/oauth.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/agent-KWLCQCSC.js +0 -39
- package/dist/bundle/command-contract-D5UXWHMS.js +0 -39
- package/dist/bundle/first-screen-IESI7DAU.js +0 -39
- package/dist/bundle/meeting-combined-XGZBSWIQ.js +0 -24
- package/dist/bundle/server-456MYK3X.js +0 -84
- package/dist/bundle/store-maintenance-command-D7XYIX52.js +0 -71
- package/dist/bundle/surface-N7LK7PKN.js +0 -70
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DVJPEZGV.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -22,20 +22,20 @@ import {
|
|
|
22
22
|
someUndone,
|
|
23
23
|
validateFormattedText,
|
|
24
24
|
visibleFormattedText
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KVFBSOCV.js";
|
|
26
26
|
import {
|
|
27
27
|
WIRECAT_TOOLS
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NTUP5RCP.js";
|
|
29
29
|
import {
|
|
30
30
|
isNewer,
|
|
31
31
|
updateCommand
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WPPPO427.js";
|
|
33
33
|
import {
|
|
34
34
|
LIST_QUERY_GUIDE,
|
|
35
35
|
capability,
|
|
36
36
|
dateWindow,
|
|
37
37
|
momentOf
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-KTVQIKU5.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-MQ6DQRRI.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-KLPFPNZP.js";
|
|
59
59
|
import {
|
|
60
60
|
DEFAULT_IMAGE_MODEL,
|
|
61
61
|
LINK,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
sentIds,
|
|
81
81
|
tagging,
|
|
82
82
|
task
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-ROK7Z5LQ.js";
|
|
84
84
|
import {
|
|
85
85
|
CEILING_KEY,
|
|
86
86
|
STORE_ONLY_KEYS,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
levelFor,
|
|
89
89
|
skipFlagFor,
|
|
90
90
|
stops
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-RJUVWJTA.js";
|
|
92
92
|
import {
|
|
93
93
|
CustomTextModelShape,
|
|
94
94
|
DEFAULT_RERANK_MODEL,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
textModels,
|
|
103
103
|
vectorModelKey,
|
|
104
104
|
writeTextModelsSection
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-MRWV5VNQ.js";
|
|
106
106
|
import {
|
|
107
107
|
AGENDA_COLUMNS,
|
|
108
108
|
BUSINESS_FIND_MAX,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
rankingContextRange,
|
|
155
155
|
threadConversation,
|
|
156
156
|
withoutField
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-MT3LYU4T.js";
|
|
158
158
|
import {
|
|
159
159
|
COUNTER_FIELDS,
|
|
160
160
|
RANKING_TOKENIZER_VERSION,
|
|
@@ -171,17 +171,17 @@ import {
|
|
|
171
171
|
pickPerson,
|
|
172
172
|
rankingOptions,
|
|
173
173
|
rankingQuestion
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-2RV4V55B.js";
|
|
175
175
|
import {
|
|
176
176
|
DEFAULT_STEMMERS,
|
|
177
177
|
createStemmer,
|
|
178
178
|
cutsDeep
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-CJMZQ2MZ.js";
|
|
180
180
|
import {
|
|
181
181
|
MINUTE,
|
|
182
182
|
YEAR,
|
|
183
183
|
aheadOf
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-NYR7PIAG.js";
|
|
185
185
|
import {
|
|
186
186
|
FIELD_VERSION,
|
|
187
187
|
RRF_K,
|
|
@@ -190,7 +190,7 @@ import {
|
|
|
190
190
|
plainQuery,
|
|
191
191
|
validateAst,
|
|
192
192
|
validateFields
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-NCY55XIT.js";
|
|
194
194
|
import {
|
|
195
195
|
MESSAGE_PARSING,
|
|
196
196
|
QUERY_LIMITS,
|
|
@@ -200,11 +200,11 @@ import {
|
|
|
200
200
|
isQueryLimit,
|
|
201
201
|
outOfTime,
|
|
202
202
|
searchError
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-U67XMAEE.js";
|
|
204
204
|
import {
|
|
205
205
|
fold,
|
|
206
206
|
normalize
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-U3BO342P.js";
|
|
208
208
|
import {
|
|
209
209
|
LOG_ATTRIBUTES,
|
|
210
210
|
TASK_KINDS,
|
|
@@ -227,7 +227,7 @@ import {
|
|
|
227
227
|
sourceOf3 as sourceOf2,
|
|
228
228
|
typedCommand,
|
|
229
229
|
withAttempt
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-6TT62IUW.js";
|
|
231
231
|
import {
|
|
232
232
|
CRM_KINDS,
|
|
233
233
|
DEAL_KINDS,
|
|
@@ -249,14 +249,14 @@ import {
|
|
|
249
249
|
parseLocator,
|
|
250
250
|
parseReference,
|
|
251
251
|
providerNamed
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-5TIWO6AR.js";
|
|
253
253
|
import {
|
|
254
254
|
isCliFailure,
|
|
255
255
|
sqliteCode
|
|
256
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-3ZKNXKM7.js";
|
|
257
257
|
import {
|
|
258
258
|
normalizeTag
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-6LJIENVT.js";
|
|
260
260
|
import {
|
|
261
261
|
OPERATORS_BY_TYPE,
|
|
262
262
|
READ_BUDGET_EXCEEDED,
|
|
@@ -280,26 +280,26 @@ import {
|
|
|
280
280
|
validateQuery,
|
|
281
281
|
walkQuery,
|
|
282
282
|
windowOf
|
|
283
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-WNQECDIP.js";
|
|
284
284
|
import {
|
|
285
285
|
localOnly,
|
|
286
286
|
refuseOffComputer,
|
|
287
287
|
remoteKey
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-6FZPFNEU.js";
|
|
289
289
|
import {
|
|
290
290
|
PLAIN_HTTP_REFUSED,
|
|
291
291
|
endpoint,
|
|
292
292
|
endpointFetch,
|
|
293
293
|
modelAddressAllowed,
|
|
294
294
|
onThisComputer
|
|
295
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-REWV37HQ.js";
|
|
296
296
|
import {
|
|
297
297
|
DEFAULT_TASK_CATEGORIES,
|
|
298
298
|
FALLBACK_CATEGORY,
|
|
299
299
|
readSharedSection,
|
|
300
300
|
sharedConfigPath,
|
|
301
301
|
writeSharedSection
|
|
302
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-HH34WRQE.js";
|
|
303
303
|
import {
|
|
304
304
|
Unzip,
|
|
305
305
|
UnzipInflate,
|
|
@@ -310,15 +310,15 @@ import {
|
|
|
310
310
|
placedText,
|
|
311
311
|
runEmbedders,
|
|
312
312
|
textModelsDirectory
|
|
313
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-L4QLZDBZ.js";
|
|
314
314
|
import {
|
|
315
315
|
installFiles,
|
|
316
316
|
megabytes
|
|
317
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-GCTHVCJU.js";
|
|
318
318
|
import {
|
|
319
319
|
storePath,
|
|
320
320
|
wirecatDirectory
|
|
321
|
-
} from "./chunk-
|
|
321
|
+
} from "./chunk-VIDPFLFM.js";
|
|
322
322
|
import {
|
|
323
323
|
Credentials,
|
|
324
324
|
logRecordOf,
|
|
@@ -326,7 +326,7 @@ import {
|
|
|
326
326
|
realSleep,
|
|
327
327
|
resolvePaths,
|
|
328
328
|
writeSecurely
|
|
329
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-WZFGZBGD.js";
|
|
330
330
|
import {
|
|
331
331
|
array,
|
|
332
332
|
boolean,
|
|
@@ -356,7 +356,7 @@ import {
|
|
|
356
356
|
trim,
|
|
357
357
|
union,
|
|
358
358
|
unknown
|
|
359
|
-
} from "./chunk-
|
|
359
|
+
} from "./chunk-C3JSQ7UJ.js";
|
|
360
360
|
import {
|
|
361
361
|
importFrom,
|
|
362
362
|
resolveFrom
|
|
@@ -365,7 +365,7 @@ import {
|
|
|
365
365
|
CliError,
|
|
366
366
|
isCliError,
|
|
367
367
|
singleLine
|
|
368
|
-
} from "./chunk-
|
|
368
|
+
} from "./chunk-PMGAU6AP.js";
|
|
369
369
|
import {
|
|
370
370
|
__commonJS,
|
|
371
371
|
__name,
|
|
@@ -16981,10 +16981,10 @@ var require_lib3 = __commonJS({
|
|
|
16981
16981
|
}
|
|
16982
16982
|
});
|
|
16983
16983
|
|
|
16984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16985
16985
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16986
16986
|
|
|
16987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16987
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16988
16988
|
var RULES_VERSION = 6;
|
|
16989
16989
|
var LOOK_BACK = 50;
|
|
16990
16990
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17082,7 +17082,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
17082
17082
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17083
17083
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
17084
17084
|
|
|
17085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17086
17086
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17087
17087
|
import { open, stat } from "node:fs/promises";
|
|
17088
17088
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17298,10 +17298,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read) => {
|
|
|
17298
17298
|
return { name, source };
|
|
17299
17299
|
}, "readStickerFile");
|
|
17300
17300
|
|
|
17301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17302
17302
|
import { randomUUID } from "node:crypto";
|
|
17303
17303
|
|
|
17304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17305
17305
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17306
17306
|
import { dirname as dirname2, join } from "node:path";
|
|
17307
17307
|
var MOST_DEADLINES = 50;
|
|
@@ -17385,11 +17385,11 @@ var FloodMemory = class {
|
|
|
17385
17385
|
}
|
|
17386
17386
|
};
|
|
17387
17387
|
|
|
17388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17389
17389
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17390
17390
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17391
17391
|
|
|
17392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17393
17393
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17394
17394
|
import { dirname as dirname3 } from "node:path";
|
|
17395
17395
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17456,7 +17456,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17456
17456
|
}
|
|
17457
17457
|
}, "lockTime");
|
|
17458
17458
|
|
|
17459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17460
17460
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17461
17461
|
var SendJournal = class {
|
|
17462
17462
|
static {
|
|
@@ -17533,7 +17533,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17533
17533
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17534
17534
|
}, "withSendId");
|
|
17535
17535
|
|
|
17536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17536
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17537
17537
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17538
17538
|
import { join as join3 } from "node:path";
|
|
17539
17539
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17645,7 +17645,7 @@ var RecipientList = class {
|
|
|
17645
17645
|
}
|
|
17646
17646
|
};
|
|
17647
17647
|
|
|
17648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17649
17649
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17650
17650
|
var countsTowardLimit = /* @__PURE__ */ __name(({ kind: kind2 = "message", action, notify }) => kind2 === "message" || kind2 === "forward" || kind2 === "edit" || kind2 === "delete" || kind2 === "pin" && notify === true || action === "create" || action === "members.add" || action === "requests.accept" || action === "join" || action === "contact-import", "countsTowardLimit");
|
|
17651
17651
|
var weightOf = /* @__PURE__ */ __name(({ kind: kind2 = "message", action, count: count3, people }) => kind2 === "delete" || kind2 === "message" && action === void 0 ? Math.max(1, count3 ?? 1) : action === "create" || action === "members.add" || action === "requests.accept" || action === "contact-import" ? Math.max(1, people ?? count3 ?? 1) : 1, "weightOf");
|
|
@@ -17833,7 +17833,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17833
17833
|
}), "guardFor");
|
|
17834
17834
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17835
17835
|
|
|
17836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17837
17837
|
var COMMAND_NEEDS = {
|
|
17838
17838
|
"account update": ["updateProfile", "change the profile"],
|
|
17839
17839
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17886,7 +17886,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17886
17886
|
return group;
|
|
17887
17887
|
}, "hideNever");
|
|
17888
17888
|
|
|
17889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17890
17890
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17891
17891
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17892
17892
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17948,12 +17948,12 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17948
17948
|
}), "storedDeps");
|
|
17949
17949
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17950
17950
|
|
|
17951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17952
17952
|
import { randomBytes } from "node:crypto";
|
|
17953
17953
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17954
17954
|
var newOperationId = newSendId;
|
|
17955
17955
|
|
|
17956
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17957
17957
|
var LINKS = /https?:\/\/\S+/g;
|
|
17958
17958
|
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");
|
|
17959
17959
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17983,7 +17983,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17983
17983
|
});
|
|
17984
17984
|
}, "questions");
|
|
17985
17985
|
|
|
17986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17987
17987
|
var AUDIT_PAGE = 200;
|
|
17988
17988
|
var AUDIT_BUDGET = 10;
|
|
17989
17989
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -18063,7 +18063,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
18063
18063
|
return found;
|
|
18064
18064
|
}, "burstJoins");
|
|
18065
18065
|
|
|
18066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18067
18067
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18068
18068
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18069
18069
|
const name = typed.trim().toLowerCase();
|
|
@@ -18120,7 +18120,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
18120
18120
|
return best.name;
|
|
18121
18121
|
}, "categorize");
|
|
18122
18122
|
|
|
18123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18124
18124
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18125
18125
|
var RULES_IN = {
|
|
18126
18126
|
dialog: "all",
|
|
@@ -18326,7 +18326,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18326
18326
|
return passes;
|
|
18327
18327
|
}, "applyTaskRulesToChats");
|
|
18328
18328
|
|
|
18329
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18330
18330
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18331
18331
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18332
18332
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18349,10 +18349,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18349
18349
|
}
|
|
18350
18350
|
}, "patiently");
|
|
18351
18351
|
|
|
18352
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18353
18353
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18354
18354
|
|
|
18355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18356
18356
|
var REQUEST_MS = 400;
|
|
18357
18357
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18358
18358
|
const lowest = ranges[0];
|
|
@@ -18375,13 +18375,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18375
18375
|
};
|
|
18376
18376
|
}, "estimateBackfill");
|
|
18377
18377
|
|
|
18378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18379
18379
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18380
18380
|
...error,
|
|
18381
18381
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18382
18382
|
}), "withRecovery");
|
|
18383
18383
|
|
|
18384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18385
18385
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18386
18386
|
if (isCliFailure(error))
|
|
18387
18387
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18464,7 +18464,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18464
18464
|
};
|
|
18465
18465
|
}, "mergeBatches");
|
|
18466
18466
|
|
|
18467
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
18468
18468
|
var ALL = "all";
|
|
18469
18469
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
18470
18470
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -18536,7 +18536,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
18536
18536
|
[ALL]: [ALL]
|
|
18537
18537
|
}), "groupEntries");
|
|
18538
18538
|
|
|
18539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
18540
18540
|
var NO_MAIL = "no_mail";
|
|
18541
18541
|
var MAIL = "email";
|
|
18542
18542
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -18610,7 +18610,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
18610
18610
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
18611
18611
|
}, "accountsOfKind");
|
|
18612
18612
|
|
|
18613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18614
18614
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18615
18615
|
if (deps.reads !== "store")
|
|
18616
18616
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18811,7 +18811,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
18811
18811
|
}, "chatsMatchingIn");
|
|
18812
18812
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
18813
18813
|
|
|
18814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18814
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18815
18815
|
var CONTEXT_MESSAGES = 3;
|
|
18816
18816
|
var CONTEXT_MINUTES = 10;
|
|
18817
18817
|
var MAX_CHARS = 1200;
|
|
@@ -18835,12 +18835,12 @@ var context = {
|
|
|
18835
18835
|
}, "describe")
|
|
18836
18836
|
};
|
|
18837
18837
|
|
|
18838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18839
18839
|
var BUILT_INS = [context];
|
|
18840
18840
|
var providers = [...BUILT_INS];
|
|
18841
18841
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18842
18842
|
|
|
18843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18844
18844
|
var READ_PAGE = 5e3;
|
|
18845
18845
|
var CHAIN = 50;
|
|
18846
18846
|
var CONVERSATION_QUERY = {
|
|
@@ -18992,7 +18992,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18992
18992
|
return size2;
|
|
18993
18993
|
}, "sized");
|
|
18994
18994
|
|
|
18995
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18996
18996
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18997
18997
|
var MESSAGE_PAGE = 5e3;
|
|
18998
18998
|
var PER_SESSION = 8;
|
|
@@ -19011,7 +19011,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19011
19011
|
price: remote.price,
|
|
19012
19012
|
installed: true,
|
|
19013
19013
|
perBatch: PER_REQUEST * concurrency,
|
|
19014
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19014
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-MYOXOQHM.js")).openRemote(remote, apiKey, {
|
|
19015
19015
|
concurrency,
|
|
19016
19016
|
env: deps.env ?? process.env
|
|
19017
19017
|
}), "open")
|
|
@@ -19031,7 +19031,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19031
19031
|
if (!isTextModelInstalled(model, directory2))
|
|
19032
19032
|
throw notDownloaded(model.id);
|
|
19033
19033
|
if (apart) {
|
|
19034
|
-
const { openProcess } = await import("./process-
|
|
19034
|
+
const { openProcess } = await import("./process-W5KPID53.js");
|
|
19035
19035
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19036
19036
|
}
|
|
19037
19037
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19320,7 +19320,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19320
19320
|
return { ...one, state };
|
|
19321
19321
|
}, "shaped");
|
|
19322
19322
|
|
|
19323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19324
19324
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19325
19325
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
19326
19326
|
for (const [key, value, maximum] of [
|
|
@@ -19373,7 +19373,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
19373
19373
|
}
|
|
19374
19374
|
}, "catchUpSearch");
|
|
19375
19375
|
|
|
19376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19377
19377
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19378
19378
|
if (deps.reads === "store") {
|
|
19379
19379
|
throw new CliError("validation_error", `${what} asks for older history, and this messenger pushes its history instead \u2014 keep \`${typedCommand(deps.messenger.app.command, "serve")}\` running`);
|
|
@@ -19754,7 +19754,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19754
19754
|
return message?.timestamp ?? fallback;
|
|
19755
19755
|
}, "timeOfKey");
|
|
19756
19756
|
|
|
19757
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19758
19758
|
var DAY_MS = 864e5;
|
|
19759
19759
|
var NEW_DAYS = 30;
|
|
19760
19760
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19831,7 +19831,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19831
19831
|
};
|
|
19832
19832
|
}, "scorePerson");
|
|
19833
19833
|
|
|
19834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19835
19835
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19836
19836
|
const controller = new AbortController();
|
|
19837
19837
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -19847,7 +19847,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
19847
19847
|
}
|
|
19848
19848
|
}, "withTimeLimit");
|
|
19849
19849
|
|
|
19850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19851
19851
|
var REGISTRIES = {
|
|
19852
19852
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19853
19853
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19934,7 +19934,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19934
19934
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19935
19935
|
})), "notCovered");
|
|
19936
19936
|
|
|
19937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19938
19938
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19939
19939
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19940
19940
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20022,7 +20022,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20022
20022
|
};
|
|
20023
20023
|
}, "botCheckService");
|
|
20024
20024
|
|
|
20025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20026
20026
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20027
20027
|
if (value === void 0)
|
|
20028
20028
|
return void 0;
|
|
@@ -20032,7 +20032,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20032
20032
|
return id3;
|
|
20033
20033
|
}, "threadIdOf");
|
|
20034
20034
|
|
|
20035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20036
20036
|
var TOP_POSTS = 5;
|
|
20037
20037
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20038
20038
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20149,7 +20149,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20149
20149
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20150
20150
|
}, "median");
|
|
20151
20151
|
|
|
20152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20153
20153
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20154
20154
|
const events = [];
|
|
20155
20155
|
for (const stay of stays) {
|
|
@@ -20181,7 +20181,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20181
20181
|
return events.filter(({ at: at3 }) => Date.parse(at3) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20182
20182
|
}, "memberEvents");
|
|
20183
20183
|
|
|
20184
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20185
20185
|
var EVENTS_DAYS = 7;
|
|
20186
20186
|
var TRACKED_DAYS = 30;
|
|
20187
20187
|
var STATS_PAGE = 1e3;
|
|
@@ -20476,7 +20476,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20476
20476
|
return members.length === 0 ? null : members;
|
|
20477
20477
|
}, "storedMembers");
|
|
20478
20478
|
|
|
20479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20480
20480
|
var INBOX_CHATS = 20;
|
|
20481
20481
|
var REVIEW_DAYS = 3;
|
|
20482
20482
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20684,10 +20684,10 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20684
20684
|
};
|
|
20685
20685
|
}, "inboxService");
|
|
20686
20686
|
|
|
20687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
20688
20688
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
20689
20689
|
|
|
20690
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20690
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/names.js
|
|
20691
20691
|
var pascal = /* @__PURE__ */ __name((text3) => text3.split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word[0]?.toUpperCase() + word.slice(1)).join(""), "pascal");
|
|
20692
20692
|
var GLOBALS = /* @__PURE__ */ new Set([
|
|
20693
20693
|
"Array",
|
|
@@ -20723,7 +20723,7 @@ var identifier = /* @__PURE__ */ __name((id3) => {
|
|
|
20723
20723
|
return GLOBALS.has(name) ? `Api${name}` : name;
|
|
20724
20724
|
}, "identifier");
|
|
20725
20725
|
|
|
20726
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20726
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/sign-in.js
|
|
20727
20727
|
var BEARER = { in: "header", name: "authorization", value: /* @__PURE__ */ __name((token) => `Bearer ${token}`, "value") };
|
|
20728
20728
|
var signInPlace = /* @__PURE__ */ __name((scheme) => {
|
|
20729
20729
|
if (scheme.type === "apiKey") {
|
|
@@ -20756,7 +20756,7 @@ var signInRequirements = /* @__PURE__ */ __name((operation, document) => {
|
|
|
20756
20756
|
return requirements?.some((one) => Object.keys(one).length > 0) ? requirements : void 0;
|
|
20757
20757
|
}, "signInRequirements");
|
|
20758
20758
|
|
|
20759
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20759
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/graphql.js
|
|
20760
20760
|
var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selection) => {
|
|
20761
20761
|
const variables = Object.entries(binding.variables);
|
|
20762
20762
|
const declared = variables.length ? `(${variables.map(([name, type]) => `$${name}: ${type}`).join(", ")})` : "";
|
|
@@ -20765,11 +20765,11 @@ var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selec
|
|
|
20765
20765
|
return `${binding.operation} ${binding.field[0]?.toUpperCase()}${binding.field.slice(1)}${declared} { ${binding.field}${passed}${inner} }`;
|
|
20766
20766
|
}, "graphqlDocument");
|
|
20767
20767
|
|
|
20768
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20768
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
20769
20769
|
var INT64_MIN = -(2n ** 63n);
|
|
20770
20770
|
var INT64_MAX = 2n ** 63n - 1n;
|
|
20771
20771
|
|
|
20772
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
20772
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/openapi.js
|
|
20773
20773
|
var IGNORED = /* @__PURE__ */ new Set([
|
|
20774
20774
|
"readOnly",
|
|
20775
20775
|
"example",
|
|
@@ -21497,7 +21497,7 @@ function resolveSpace(space) {
|
|
|
21497
21497
|
}
|
|
21498
21498
|
__name(resolveSpace, "resolveSpace");
|
|
21499
21499
|
|
|
21500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
21501
21501
|
var RENAMED = { timeout: "poll-timeout" };
|
|
21502
21502
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
21503
21503
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -21635,7 +21635,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
21635
21635
|
return raw;
|
|
21636
21636
|
}, "flagValue");
|
|
21637
21637
|
|
|
21638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
21639
21639
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
21640
21640
|
const server = manifest.servers?.[0];
|
|
21641
21641
|
if (given === void 0 && !server)
|
|
@@ -21752,7 +21752,7 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
21752
21752
|
}
|
|
21753
21753
|
}, "nextPage");
|
|
21754
21754
|
|
|
21755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
21756
21756
|
import { readFileSync as readFileSync5, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
21757
21757
|
import { join as join4 } from "node:path";
|
|
21758
21758
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -21847,7 +21847,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
21847
21847
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
21848
21848
|
}, "waitForTurn");
|
|
21849
21849
|
|
|
21850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
21851
21851
|
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");
|
|
21852
21852
|
var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
|
|
21853
21853
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -21863,7 +21863,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
|
|
|
21863
21863
|
}, "excerpt");
|
|
21864
21864
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
21865
21865
|
|
|
21866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
21867
21867
|
var SCAN = 1e3;
|
|
21868
21868
|
var SNIPPET = 200;
|
|
21869
21869
|
var SNIPPET_ROWS = 6;
|
|
@@ -21928,7 +21928,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
21928
21928
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
21929
21929
|
}, "personMeetings");
|
|
21930
21930
|
|
|
21931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21932
21932
|
var CONTEXT_MESSAGES2 = 10;
|
|
21933
21933
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21934
21934
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -22234,10 +22234,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
22234
22234
|
};
|
|
22235
22235
|
}, "personMessages");
|
|
22236
22236
|
|
|
22237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22238
22238
|
import { createHash } from "node:crypto";
|
|
22239
22239
|
|
|
22240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
22241
22241
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
22242
22242
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
22243
22243
|
const parsed = parseMeetingReference(reference);
|
|
@@ -22255,7 +22255,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
22255
22255
|
return { parsed, meeting };
|
|
22256
22256
|
}, "authorizedMeetingMetadata");
|
|
22257
22257
|
|
|
22258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
22259
22259
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
22260
22260
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
22261
22261
|
if (signal?.aborted)
|
|
@@ -22454,7 +22454,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
22454
22454
|
return { ...packet, fingerprint: hash(packet) };
|
|
22455
22455
|
}, "readMeetingEvidence");
|
|
22456
22456
|
|
|
22457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
22458
22458
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
22459
22459
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
22460
22460
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22553,7 +22553,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22553
22553
|
};
|
|
22554
22554
|
}, "personMeetingContext");
|
|
22555
22555
|
|
|
22556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22557
22557
|
var PREPARE_BYTES = 96 * 1024;
|
|
22558
22558
|
var MEETINGS = 5;
|
|
22559
22559
|
var CUES = 3;
|
|
@@ -22676,7 +22676,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22676
22676
|
}
|
|
22677
22677
|
}, "meetingsOf");
|
|
22678
22678
|
|
|
22679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22680
22680
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22681
22681
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22682
22682
|
const held = await storeIfOpen(deps);
|
|
@@ -22746,7 +22746,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
22746
22746
|
complete: false
|
|
22747
22747
|
})), "quiet");
|
|
22748
22748
|
|
|
22749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22750
22750
|
var TIMELINE_ITEMS = 50;
|
|
22751
22751
|
var TIMELINE_MAX = 500;
|
|
22752
22752
|
var SCOPES = ["personal", "work"];
|
|
@@ -22808,7 +22808,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22808
22808
|
};
|
|
22809
22809
|
}, "personTimeline");
|
|
22810
22810
|
|
|
22811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22812
22812
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22813
22813
|
const ids = [...new Set(chatIds)];
|
|
22814
22814
|
if (ids.length === 0)
|
|
@@ -22834,7 +22834,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22834
22834
|
}));
|
|
22835
22835
|
}, "chatCoverage");
|
|
22836
22836
|
|
|
22837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22838
22838
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22839
22839
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22840
22840
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22898,7 +22898,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22898
22898
|
}
|
|
22899
22899
|
}, "validateContextEvidencePage");
|
|
22900
22900
|
|
|
22901
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22902
22902
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22903
22903
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22904
22904
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22951,7 +22951,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22951
22951
|
};
|
|
22952
22952
|
}, "contextReadBudget");
|
|
22953
22953
|
|
|
22954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22955
22955
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22956
22956
|
if (!port || typeof port.read !== "function")
|
|
22957
22957
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22995,7 +22995,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22995
22995
|
};
|
|
22996
22996
|
}, "createContextEvidenceReader");
|
|
22997
22997
|
|
|
22998
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22999
22999
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
23000
23000
|
async around(ref, window2) {
|
|
23001
23001
|
const at3 = parseLocator(ref);
|
|
@@ -23090,7 +23090,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
23090
23090
|
};
|
|
23091
23091
|
}, "storedNeighbours");
|
|
23092
23092
|
|
|
23093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
23094
23094
|
import { createHash as createHash2 } from "node:crypto";
|
|
23095
23095
|
var DAY = 864e5;
|
|
23096
23096
|
var MAX_TIME = 864e13;
|
|
@@ -23406,7 +23406,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
23406
23406
|
return value;
|
|
23407
23407
|
}, "decodeCheckpoint");
|
|
23408
23408
|
|
|
23409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23410
23410
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23411
23411
|
var PAGE2 = 20;
|
|
23412
23412
|
var PEOPLE = 20;
|
|
@@ -23810,7 +23810,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23810
23810
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23811
23811
|
}, "peopleOf");
|
|
23812
23812
|
|
|
23813
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23814
23814
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23815
23815
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23816
23816
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23854,7 +23854,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23854
23854
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23855
23855
|
}, "matchVocabularyTerms");
|
|
23856
23856
|
|
|
23857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23858
23858
|
var KINDS = ["project", "tag", "topic"];
|
|
23859
23859
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
23860
23860
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23909,7 +23909,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23909
23909
|
};
|
|
23910
23910
|
}, "findEvidenceMentions");
|
|
23911
23911
|
|
|
23912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
23913
23913
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
23914
23914
|
var DEFAULT_PURPOSES = ["work"];
|
|
23915
23915
|
var LINK_PURPOSE = "work";
|
|
@@ -23939,7 +23939,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
23939
23939
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
23940
23940
|
], "purposeList");
|
|
23941
23941
|
|
|
23942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23943
23943
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23944
23944
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23945
23945
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -24250,7 +24250,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
24250
24250
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
24251
24251
|
}, "purposeHintOf");
|
|
24252
24252
|
|
|
24253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
24254
24254
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
24255
24255
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
24256
24256
|
const held = await storeIfOpen(deps);
|
|
@@ -24515,7 +24515,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24515
24515
|
return rest;
|
|
24516
24516
|
}, "withoutPhone");
|
|
24517
24517
|
|
|
24518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
24519
24519
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24520
24520
|
var PERIOD_FIELD = "created";
|
|
24521
24521
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24646,7 +24646,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
24646
24646
|
}));
|
|
24647
24647
|
}, "meetingNames");
|
|
24648
24648
|
|
|
24649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
24650
24650
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24651
24651
|
const tags = /* @__PURE__ */ new Map();
|
|
24652
24652
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24655,7 +24655,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24655
24655
|
return tags;
|
|
24656
24656
|
}, "taskTagFilters");
|
|
24657
24657
|
|
|
24658
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24658
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
24659
24659
|
var TASK_QUERY = {
|
|
24660
24660
|
entity: "task",
|
|
24661
24661
|
backend: "sql",
|
|
@@ -25155,7 +25155,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
25155
25155
|
};
|
|
25156
25156
|
}, "taskView");
|
|
25157
25157
|
|
|
25158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
25159
25159
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
25160
25160
|
if (newest === null)
|
|
25161
25161
|
return null;
|
|
@@ -25164,7 +25164,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
25164
25164
|
return newest.addressed ? "owed" : null;
|
|
25165
25165
|
}, "mailTurn");
|
|
25166
25166
|
|
|
25167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25167
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
25168
25168
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
25169
25169
|
if (error instanceof CliError && error.code === "not_found")
|
|
25170
25170
|
return void 0;
|
|
@@ -25222,7 +25222,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
25222
25222
|
};
|
|
25223
25223
|
}, "mailActivity");
|
|
25224
25224
|
|
|
25225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
25226
25226
|
var DAY2 = 864e5;
|
|
25227
25227
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
25228
25228
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -25476,18 +25476,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
25476
25476
|
};
|
|
25477
25477
|
}, "agendaItem");
|
|
25478
25478
|
|
|
25479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25480
25480
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25481
25481
|
|
|
25482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25483
25483
|
import { lstat } from "node:fs/promises";
|
|
25484
25484
|
|
|
25485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25486
25486
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25487
25487
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25488
25488
|
import { join as join6 } from "node:path";
|
|
25489
25489
|
|
|
25490
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25491
25491
|
import { createHash as createHash3 } from "node:crypto";
|
|
25492
25492
|
var metadataLimit = 16384;
|
|
25493
25493
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25547,7 +25547,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
25547
25547
|
}
|
|
25548
25548
|
}, "readPartialMetadata");
|
|
25549
25549
|
|
|
25550
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25551
25551
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25552
25552
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25553
25553
|
import { join as join5 } from "node:path";
|
|
@@ -25639,7 +25639,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25639
25639
|
};
|
|
25640
25640
|
}, "partialWriter");
|
|
25641
25641
|
|
|
25642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25643
25643
|
var NativeRecordingPartialStore = class {
|
|
25644
25644
|
static {
|
|
25645
25645
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25746,12 +25746,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25746
25746
|
}
|
|
25747
25747
|
};
|
|
25748
25748
|
|
|
25749
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25750
25750
|
import { createHash as createHash5 } from "node:crypto";
|
|
25751
25751
|
import { link as link2 } from "node:fs/promises";
|
|
25752
25752
|
import { basename as basename2, dirname as dirname5, join as join8, resolve as resolve2 } from "node:path";
|
|
25753
25753
|
|
|
25754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25755
25755
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25756
25756
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
25757
25757
|
signal?.throwIfAborted();
|
|
@@ -25786,7 +25786,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25786
25786
|
signal?.throwIfAborted();
|
|
25787
25787
|
}, "commitPublication");
|
|
25788
25788
|
|
|
25789
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25790
25790
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
25791
25791
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25792
25792
|
import { join as join7 } from "node:path";
|
|
@@ -25859,7 +25859,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
25859
25859
|
}
|
|
25860
25860
|
}, "writePublicationJournal");
|
|
25861
25861
|
|
|
25862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25863
25863
|
var NativeRecordingPublication = class {
|
|
25864
25864
|
static {
|
|
25865
25865
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25932,7 +25932,7 @@ var NativeRecordingPublication = class {
|
|
|
25932
25932
|
}
|
|
25933
25933
|
};
|
|
25934
25934
|
|
|
25935
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25936
25936
|
import { createHash as createHash6 } from "node:crypto";
|
|
25937
25937
|
import { readdir } from "node:fs/promises";
|
|
25938
25938
|
import { isAbsolute as isAbsolute2, join as join9, resolve as resolve3 } from "node:path";
|
|
@@ -26019,7 +26019,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
26019
26019
|
beforePublish
|
|
26020
26020
|
}), "commitMediaEntry");
|
|
26021
26021
|
|
|
26022
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26022
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
26023
26023
|
var validator = '"media-completed-v1"';
|
|
26024
26024
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
26025
26025
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -26120,7 +26120,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
26120
26120
|
return entry;
|
|
26121
26121
|
}, "archiveMediaFile");
|
|
26122
26122
|
|
|
26123
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
26124
26124
|
import { mkdir, realpath } from "node:fs/promises";
|
|
26125
26125
|
import { join as join10, resolve as resolve4 } from "node:path";
|
|
26126
26126
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -26187,7 +26187,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
26187
26187
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
26188
26188
|
}, "withMediaArchiveLocks");
|
|
26189
26189
|
|
|
26190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
26191
26191
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
26192
26192
|
const entries = await readMediaManifests(root, signal);
|
|
26193
26193
|
if (!entries.length)
|
|
@@ -26330,7 +26330,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
26330
26330
|
}, { create: true });
|
|
26331
26331
|
}, "archiveMedia");
|
|
26332
26332
|
|
|
26333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
26334
26334
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
26335
26335
|
import { basename as basename3, dirname as dirname6, join as join11, resolve as resolve5 } from "node:path";
|
|
26336
26336
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26481,7 +26481,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26481
26481
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26482
26482
|
}, "moveMediaArchive");
|
|
26483
26483
|
|
|
26484
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26485
26485
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
26486
26486
|
import { join as join12 } from "node:path";
|
|
26487
26487
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
@@ -26506,7 +26506,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
26506
26506
|
`);
|
|
26507
26507
|
await nativeRuntime({ env, progress });
|
|
26508
26508
|
progress(`${model.id}: loading it once to check it works`);
|
|
26509
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26509
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-W3VH4HPY.js");
|
|
26510
26510
|
const embedder = await openEmbedder2(model, directory2);
|
|
26511
26511
|
try {
|
|
26512
26512
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26527,7 +26527,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
26527
26527
|
}
|
|
26528
26528
|
await nativeRuntime({ env, progress });
|
|
26529
26529
|
progress(`${model.id}: loading it once to check it works`);
|
|
26530
|
-
const { openReranker } = await import("./rerank-
|
|
26530
|
+
const { openReranker } = await import("./rerank-NY5MSZCR.js");
|
|
26531
26531
|
const reranker = await openReranker(model, directory2);
|
|
26532
26532
|
try {
|
|
26533
26533
|
await reranker.score("check", ["check"]);
|
|
@@ -26545,7 +26545,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
26545
26545
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26546
26546
|
}
|
|
26547
26547
|
progress(`${model.id}: loading it once to check it works`);
|
|
26548
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26548
|
+
const { openPictureEmbedder } = await import("./embedder-I7ERQZJV.js");
|
|
26549
26549
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26550
26550
|
try {
|
|
26551
26551
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26557,7 +26557,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
26557
26557
|
return { model, directory: directory2 };
|
|
26558
26558
|
}, "downloadImageModel");
|
|
26559
26559
|
|
|
26560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26560
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26561
26561
|
var MONEY_REQUEST = "money-request";
|
|
26562
26562
|
var MONEY_DONE = "money-done";
|
|
26563
26563
|
var PROMISE = "promise";
|
|
@@ -26591,10 +26591,10 @@ var MONEY_WORDS = [
|
|
|
26591
26591
|
}
|
|
26592
26592
|
];
|
|
26593
26593
|
|
|
26594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26595
26595
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
26596
26596
|
|
|
26597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26598
26598
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26599
26599
|
var MONEY_DONE_FORMS = words2([
|
|
26600
26600
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26634,7 +26634,7 @@ var PROMISE_FORMS = words2([
|
|
|
26634
26634
|
"estar\xE1 listo"
|
|
26635
26635
|
]);
|
|
26636
26636
|
|
|
26637
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26638
26638
|
var EXCERPT_CHARS = 80;
|
|
26639
26639
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
26640
26640
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -26656,7 +26656,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26656
26656
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26657
26657
|
var day = /* @__PURE__ */ __name((at3) => new Date(at3).toISOString().slice(0, 10), "day");
|
|
26658
26658
|
|
|
26659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26660
26660
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26661
26661
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
26662
26662
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -26737,7 +26737,7 @@ var amounts = {
|
|
|
26737
26737
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26738
26738
|
};
|
|
26739
26739
|
|
|
26740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26741
26741
|
var children = {
|
|
26742
26742
|
id: "children",
|
|
26743
26743
|
version: 1,
|
|
@@ -26766,7 +26766,7 @@ var children = {
|
|
|
26766
26766
|
}, "read")
|
|
26767
26767
|
};
|
|
26768
26768
|
|
|
26769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26770
26770
|
var coverage = {
|
|
26771
26771
|
id: "coverage",
|
|
26772
26772
|
version: 1,
|
|
@@ -26795,7 +26795,7 @@ var coverage = {
|
|
|
26795
26795
|
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")
|
|
26796
26796
|
};
|
|
26797
26797
|
|
|
26798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26799
26799
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26800
26800
|
var item = /* @__PURE__ */ __name((row, at3, data) => ({
|
|
26801
26801
|
signal: "payments",
|
|
@@ -26845,7 +26845,7 @@ var payments = {
|
|
|
26845
26845
|
}, "read")
|
|
26846
26846
|
};
|
|
26847
26847
|
|
|
26848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26849
26849
|
var PATTERNS_PER_CHAT = 3;
|
|
26850
26850
|
var DAY3 = 864e5;
|
|
26851
26851
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26934,7 +26934,7 @@ var promises = {
|
|
|
26934
26934
|
}, "read")
|
|
26935
26935
|
};
|
|
26936
26936
|
|
|
26937
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26938
26938
|
var PER_SIDE = 5;
|
|
26939
26939
|
var WEEK = 7 * 864e5;
|
|
26940
26940
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26965,7 +26965,7 @@ var questions2 = {
|
|
|
26965
26965
|
}, "attention")
|
|
26966
26966
|
};
|
|
26967
26967
|
|
|
26968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26969
26969
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26970
26970
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
|
|
26971
26971
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -27033,7 +27033,7 @@ var replyNext = {
|
|
|
27033
27033
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
27034
27034
|
};
|
|
27035
27035
|
|
|
27036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
27037
27037
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
27038
27038
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
27039
27039
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -27079,7 +27079,7 @@ var topics = {
|
|
|
27079
27079
|
}, "read")
|
|
27080
27080
|
};
|
|
27081
27081
|
|
|
27082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
27083
27083
|
var STATUS_SIGNALS = [
|
|
27084
27084
|
replyNext,
|
|
27085
27085
|
questions2,
|
|
@@ -27091,7 +27091,7 @@ var STATUS_SIGNALS = [
|
|
|
27091
27091
|
children
|
|
27092
27092
|
];
|
|
27093
27093
|
|
|
27094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27094
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
27095
27095
|
var DAY4 = 864e5;
|
|
27096
27096
|
var STATUS_WINDOW = 300;
|
|
27097
27097
|
var STATUS_CHATS = 16;
|
|
@@ -27280,7 +27280,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27280
27280
|
};
|
|
27281
27281
|
}, "projectStatus");
|
|
27282
27282
|
|
|
27283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
27284
27284
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
27285
27285
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
27286
27286
|
if (deps.offline)
|
|
@@ -27352,7 +27352,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
27352
27352
|
};
|
|
27353
27353
|
}, "accountService");
|
|
27354
27354
|
|
|
27355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
27356
27356
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
27357
27357
|
const at3 = aheadOf(value, flag, now, {
|
|
27358
27358
|
...zone === void 0 ? {} : { zone },
|
|
@@ -27363,7 +27363,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
27363
27363
|
return new Date(at3 - at3 % MINUTE).toISOString();
|
|
27364
27364
|
}, "sendTime");
|
|
27365
27365
|
|
|
27366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
27367
27367
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
27368
27368
|
try {
|
|
27369
27369
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27610,7 +27610,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27610
27610
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27611
27611
|
}, "linkLimits");
|
|
27612
27612
|
|
|
27613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27614
27614
|
var THREADS_PAGE = 500;
|
|
27615
27615
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27616
27616
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27685,7 +27685,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
27685
27685
|
return thread.slice(Math.max(0, at3 - before), at3 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27686
27686
|
}, "readMail");
|
|
27687
27687
|
|
|
27688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27689
27689
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27690
27690
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27691
27691
|
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");
|
|
@@ -28058,7 +28058,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
28058
28058
|
};
|
|
28059
28059
|
}, "statsLucene");
|
|
28060
28060
|
|
|
28061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
28062
28062
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
28063
28063
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
28064
28064
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -28227,7 +28227,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
28227
28227
|
};
|
|
28228
28228
|
}, "readRankingSelection");
|
|
28229
28229
|
|
|
28230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
28231
28231
|
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");
|
|
28232
28232
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
28233
28233
|
command,
|
|
@@ -28237,7 +28237,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
28237
28237
|
fieldsVersion: FIELD_VERSION
|
|
28238
28238
|
}), "searchRecordOf");
|
|
28239
28239
|
|
|
28240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
28241
28241
|
function invalid2(message) {
|
|
28242
28242
|
throw new CliError("validation_error", message);
|
|
28243
28243
|
}
|
|
@@ -28531,7 +28531,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28531
28531
|
}, "evidence")
|
|
28532
28532
|
}), "adminStatisticsService");
|
|
28533
28533
|
|
|
28534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28535
28535
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28536
28536
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28537
28537
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28668,12 +28668,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28668
28668
|
return { plan, repair };
|
|
28669
28669
|
}, "gapsService");
|
|
28670
28670
|
|
|
28671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28671
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28672
28672
|
import { createHash as createHash10 } from "node:crypto";
|
|
28673
28673
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28674
28674
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28675
28675
|
|
|
28676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28677
28677
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28678
28678
|
import { basename as basename4, join as join13, relative as relative2, sep as sep2 } from "node:path";
|
|
28679
28679
|
var MAX_FILES = 1e4;
|
|
@@ -28744,15 +28744,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28744
28744
|
return choices;
|
|
28745
28745
|
}, "directoryPaths");
|
|
28746
28746
|
|
|
28747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28747
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28748
28748
|
import { posix } from "node:path";
|
|
28749
28749
|
|
|
28750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28751
28751
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28752
28752
|
import { crc32 } from "node:zlib";
|
|
28753
28753
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28754
28754
|
|
|
28755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28756
28756
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28757
28757
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28758
28758
|
var SAMPLE = 65536;
|
|
@@ -28854,7 +28854,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28854
28854
|
return result.text;
|
|
28855
28855
|
}, "decodeXml");
|
|
28856
28856
|
|
|
28857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28857
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28858
28858
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28859
28859
|
var MAX_ENTRIES = 1e3;
|
|
28860
28860
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -29069,7 +29069,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
29069
29069
|
return found;
|
|
29070
29070
|
}, "elements");
|
|
29071
29071
|
|
|
29072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
29073
29073
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
29074
29074
|
let name = "";
|
|
29075
29075
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -29124,7 +29124,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
29124
29124
|
return { text: parts.join("").trim(), truncated: false };
|
|
29125
29125
|
}, "sheetText");
|
|
29126
29126
|
|
|
29127
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29127
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
29128
29128
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
29129
29129
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
29130
29130
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29524,10 +29524,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
29524
29524
|
}
|
|
29525
29525
|
}, "readDocument");
|
|
29526
29526
|
|
|
29527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29528
29528
|
import { extname as extname3 } from "node:path";
|
|
29529
29529
|
|
|
29530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29531
29531
|
import { readFileSync as readFileSync6 } from "node:fs";
|
|
29532
29532
|
import { dirname as dirname7, extname as extname2, join as join14 } from "node:path";
|
|
29533
29533
|
import { fileURLToPath } from "node:url";
|
|
@@ -29588,7 +29588,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
29588
29588
|
}
|
|
29589
29589
|
}, "derived");
|
|
29590
29590
|
|
|
29591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29592
29592
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29593
29593
|
var image2 = {
|
|
29594
29594
|
id: "image",
|
|
@@ -29597,7 +29597,7 @@ var image2 = {
|
|
|
29597
29597
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29598
29598
|
};
|
|
29599
29599
|
|
|
29600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29601
29601
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29602
29602
|
var doc = {
|
|
29603
29603
|
id: "doc",
|
|
@@ -29609,7 +29609,7 @@ var doc = {
|
|
|
29609
29609
|
}), "read")
|
|
29610
29610
|
};
|
|
29611
29611
|
|
|
29612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29613
29613
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29614
29614
|
var docx = {
|
|
29615
29615
|
id: "docx",
|
|
@@ -29622,10 +29622,10 @@ var docx = {
|
|
|
29622
29622
|
}), "read")
|
|
29623
29623
|
};
|
|
29624
29624
|
|
|
29625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29625
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29626
29626
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29627
29627
|
|
|
29628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
29629
29629
|
var NAMED = {
|
|
29630
29630
|
amp: "&",
|
|
29631
29631
|
lt: "<",
|
|
@@ -29677,7 +29677,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
29677
29677
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
29678
29678
|
}), "decodeEntities");
|
|
29679
29679
|
|
|
29680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29681
29681
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29682
29682
|
"fonttbl",
|
|
29683
29683
|
"colortbl",
|
|
@@ -29843,7 +29843,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29843
29843
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
29844
29844
|
}, "htmlText");
|
|
29845
29845
|
|
|
29846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29847
29847
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29848
29848
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29849
29849
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29899,7 +29899,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
29899
29899
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
29900
29900
|
}, "markdownSections");
|
|
29901
29901
|
|
|
29902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29903
29903
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29904
29904
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29905
29905
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29970,7 +29970,7 @@ var html = {
|
|
|
29970
29970
|
}, "read")
|
|
29971
29971
|
};
|
|
29972
29972
|
|
|
29973
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29974
29974
|
var office = {
|
|
29975
29975
|
id: "office",
|
|
29976
29976
|
version: documentExtractor("odt"),
|
|
@@ -29981,7 +29981,7 @@ var office = {
|
|
|
29981
29981
|
}, "read")
|
|
29982
29982
|
};
|
|
29983
29983
|
|
|
29984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29984
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29985
29985
|
var pdf = {
|
|
29986
29986
|
id: "pdf",
|
|
29987
29987
|
version: "unpdf",
|
|
@@ -30048,7 +30048,7 @@ var pdf = {
|
|
|
30048
30048
|
}), "read")
|
|
30049
30049
|
};
|
|
30050
30050
|
|
|
30051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
30052
30052
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
30053
30053
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
30054
30054
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -30068,7 +30068,7 @@ var plain = {
|
|
|
30068
30068
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
30069
30069
|
};
|
|
30070
30070
|
|
|
30071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
30072
30072
|
var rtf = {
|
|
30073
30073
|
id: "rtf",
|
|
30074
30074
|
version: "v1",
|
|
@@ -30076,10 +30076,10 @@ var rtf = {
|
|
|
30076
30076
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
30077
30077
|
};
|
|
30078
30078
|
|
|
30079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30080
30080
|
import { basename as basename5 } from "node:path";
|
|
30081
30081
|
|
|
30082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
30083
30083
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
30084
30084
|
const cells = [];
|
|
30085
30085
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -30117,7 +30117,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
30117
30117
|
return { cells, truncated };
|
|
30118
30118
|
}, "delimitedSpans");
|
|
30119
30119
|
|
|
30120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
30121
30121
|
var DELIMITED = {
|
|
30122
30122
|
".csv": ",",
|
|
30123
30123
|
".tsv": " ",
|
|
@@ -30156,7 +30156,7 @@ var sheets = {
|
|
|
30156
30156
|
}, "read")
|
|
30157
30157
|
};
|
|
30158
30158
|
|
|
30159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
30160
30160
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
30161
30161
|
var HEAD_BYTES = 1024;
|
|
30162
30162
|
var readers = [...BUILT_INS2];
|
|
@@ -30166,7 +30166,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
30166
30166
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
30167
30167
|
}, "readWithRegistry");
|
|
30168
30168
|
|
|
30169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
30170
30170
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
30171
30171
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
30172
30172
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -31245,7 +31245,7 @@ function imageSize(input) {
|
|
|
31245
31245
|
}
|
|
31246
31246
|
__name(imageSize, "imageSize");
|
|
31247
31247
|
|
|
31248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
31249
31249
|
var MAX_PAGES = 20;
|
|
31250
31250
|
var MAX_PIXELS = 2e7;
|
|
31251
31251
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -31405,7 +31405,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
31405
31405
|
}
|
|
31406
31406
|
}, "ocrPdf");
|
|
31407
31407
|
|
|
31408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
31409
31409
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
31410
31410
|
const limits = pdfPreviewLimits(env);
|
|
31411
31411
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -31482,7 +31482,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
31482
31482
|
}
|
|
31483
31483
|
}, "pdfPreview");
|
|
31484
31484
|
|
|
31485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
31486
31486
|
import { spawn } from "node:child_process";
|
|
31487
31487
|
import { mkdtempSync, readFileSync as readFileSync7, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
31488
31488
|
import { tmpdir } from "node:os";
|
|
@@ -31645,7 +31645,7 @@ Read the attached picture.`,
|
|
|
31645
31645
|
}
|
|
31646
31646
|
}, "readPictureWithAgent");
|
|
31647
31647
|
|
|
31648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31649
31649
|
import { createHash as createHash8 } from "node:crypto";
|
|
31650
31650
|
import { constants } from "node:fs";
|
|
31651
31651
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31753,7 +31753,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31753
31753
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31754
31754
|
}, "transferMime");
|
|
31755
31755
|
|
|
31756
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31757
31757
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
31758
31758
|
import { link as link3, rm } from "node:fs/promises";
|
|
31759
31759
|
import { join as join16, resolve as resolve6 } from "node:path";
|
|
@@ -31867,12 +31867,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
31867
31867
|
}
|
|
31868
31868
|
}, "save");
|
|
31869
31869
|
|
|
31870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31871
31871
|
import { createHash as createHash9 } from "node:crypto";
|
|
31872
31872
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
31873
31873
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31874
31874
|
|
|
31875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31875
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31876
31876
|
var GROUP_SETTINGS = [
|
|
31877
31877
|
"allCanPin",
|
|
31878
31878
|
"onlyAdminsAdd",
|
|
@@ -31886,7 +31886,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31886
31886
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31887
31887
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31888
31888
|
|
|
31889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31890
31890
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31891
31891
|
var PICTURE_FLOOR = 0.25;
|
|
31892
31892
|
var PAGE3 = 50;
|
|
@@ -31927,7 +31927,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31927
31927
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31928
31928
|
if (!isImageModelInstalled(model2, directory2))
|
|
31929
31929
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31930
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31930
|
+
const { openPictureEmbedder } = await import("./embedder-I7ERQZJV.js");
|
|
31931
31931
|
return openPictureEmbedder(model2, directory2);
|
|
31932
31932
|
}, "open");
|
|
31933
31933
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32101,7 +32101,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32101
32101
|
}, "search")
|
|
32102
32102
|
}), "withPictures");
|
|
32103
32103
|
|
|
32104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
32105
32105
|
var ATTACHMENT_QUERY = {
|
|
32106
32106
|
entity: "attachment",
|
|
32107
32107
|
backend: "sql",
|
|
@@ -32572,7 +32572,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32572
32572
|
}, "readPicture")
|
|
32573
32573
|
}), "attachmentsService");
|
|
32574
32574
|
|
|
32575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32576
32576
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32577
32577
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32578
32578
|
const store = await accountStore(deps);
|
|
@@ -32602,7 +32602,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32602
32602
|
}, "list")
|
|
32603
32603
|
}), "chatDocumentsService");
|
|
32604
32604
|
|
|
32605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32606
32606
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
32607
32607
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
32608
32608
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32689,7 +32689,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32689
32689
|
}
|
|
32690
32690
|
}, "isRetentionSelection");
|
|
32691
32691
|
|
|
32692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32692
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32693
32693
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
32694
32694
|
const fields2 = text3.split(",").map((one) => one.trim());
|
|
32695
32695
|
if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
|
|
@@ -32896,7 +32896,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32896
32896
|
};
|
|
32897
32897
|
}, "countersService");
|
|
32898
32898
|
|
|
32899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32899
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/search/respell.js
|
|
32900
32900
|
var LATIN = {
|
|
32901
32901
|
\u0430: "a",
|
|
32902
32902
|
\u0431: "b",
|
|
@@ -32951,7 +32951,7 @@ var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
32951
32951
|
return found;
|
|
32952
32952
|
}, "respelled");
|
|
32953
32953
|
|
|
32954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
32955
32955
|
var LEAST_USES = 3;
|
|
32956
32956
|
var SAMPLE2 = 50;
|
|
32957
32957
|
var CAPITALISED = 0.8;
|
|
@@ -33001,7 +33001,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
33001
33001
|
}, "queryWords");
|
|
33002
33002
|
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");
|
|
33003
33003
|
|
|
33004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
33005
33005
|
var SYNC_KEY = "messages.sync-first";
|
|
33006
33006
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
33007
33007
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -33133,7 +33133,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
33133
33133
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
33134
33134
|
}), "withRefresh");
|
|
33135
33135
|
|
|
33136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
33137
33137
|
var CANDIDATES = 50;
|
|
33138
33138
|
var ACROSS_CHATS = 500;
|
|
33139
33139
|
var OWN_BLOCK = 5;
|
|
@@ -33489,13 +33489,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
33489
33489
|
return mean2.map((value) => value / length);
|
|
33490
33490
|
}, "meanOf");
|
|
33491
33491
|
|
|
33492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
33493
33493
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
33494
33494
|
...embeddingsMaintenance(deps),
|
|
33495
33495
|
...embeddingsSearch(deps)
|
|
33496
33496
|
}), "embeddingsService");
|
|
33497
33497
|
|
|
33498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
33499
33499
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
33500
33500
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
33501
33501
|
if (deps.offline)
|
|
@@ -33636,7 +33636,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
33636
33636
|
};
|
|
33637
33637
|
}, "foldersService");
|
|
33638
33638
|
|
|
33639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
33640
33640
|
var REVIEW_COUNT = 500;
|
|
33641
33641
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
33642
33642
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33715,7 +33715,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33715
33715
|
};
|
|
33716
33716
|
}, "mentionsService");
|
|
33717
33717
|
|
|
33718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33719
33719
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
33720
33720
|
position,
|
|
33721
33721
|
kind: kind2,
|
|
@@ -33764,7 +33764,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33764
33764
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33765
33765
|
}, "validatePermalink");
|
|
33766
33766
|
|
|
33767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33768
33768
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33769
33769
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33770
33770
|
return `${seconds / 86400}d`;
|
|
@@ -33796,7 +33796,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33796
33796
|
return seconds;
|
|
33797
33797
|
}, "pinDurationOf");
|
|
33798
33798
|
|
|
33799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33800
33800
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33801
33801
|
if (sendAs === void 0) {
|
|
33802
33802
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33821,7 +33821,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33821
33821
|
return sendAs;
|
|
33822
33822
|
}, "typedSendAs");
|
|
33823
33823
|
|
|
33824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33825
33825
|
var TOTAL_CAP = 1e4;
|
|
33826
33826
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
33827
33827
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33832,7 +33832,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
33832
33832
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
33833
33833
|
}, "totalOf");
|
|
33834
33834
|
|
|
33835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33836
33836
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33837
33837
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33838
33838
|
let narrows = false;
|
|
@@ -33861,7 +33861,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33861
33861
|
return wanted(root).join(" ").trim();
|
|
33862
33862
|
}, "meaningWords");
|
|
33863
33863
|
|
|
33864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33865
33865
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33866
33866
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33867
33867
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -34062,7 +34062,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
34062
34062
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
34063
34063
|
}, "signals");
|
|
34064
34064
|
|
|
34065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34065
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
34066
34066
|
var MEANING_DEPTH = 100;
|
|
34067
34067
|
var RRF_K3 = 60;
|
|
34068
34068
|
var RERANK_DEPTH = 50;
|
|
@@ -34388,7 +34388,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
34388
34388
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
34389
34389
|
}, "mixedWithReranker");
|
|
34390
34390
|
|
|
34391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
34392
34392
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
34393
34393
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
34394
34394
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34587,7 +34587,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34587
34587
|
return result;
|
|
34588
34588
|
}, "readThreadContext");
|
|
34589
34589
|
|
|
34590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34591
34591
|
var SEARCH_FILL_MS = 200;
|
|
34592
34592
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34593
34593
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34695,7 +34695,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34695
34695
|
}, "accountOf");
|
|
34696
34696
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34697
34697
|
|
|
34698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
34699
34699
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34700
34700
|
const chosen = chosenTextModel(env);
|
|
34701
34701
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34710,7 +34710,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34710
34710
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34711
34711
|
}, "meaningModel");
|
|
34712
34712
|
|
|
34713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34714
34714
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34715
34715
|
try {
|
|
34716
34716
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34789,7 +34789,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34789
34789
|
}
|
|
34790
34790
|
}, "meaningLane");
|
|
34791
34791
|
|
|
34792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34792
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34793
34793
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34794
34794
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34795
34795
|
if (choice === "off")
|
|
@@ -34801,9 +34801,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34801
34801
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34802
34802
|
try {
|
|
34803
34803
|
const warm = deps.embedders;
|
|
34804
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34804
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-W5KPID53.js")).openRerankerProcess(model, directory2, {
|
|
34805
34805
|
threads: defaultThreads()
|
|
34806
|
-
})) : await (await import("./rerank-
|
|
34806
|
+
})) : await (await import("./rerank-NY5MSZCR.js")).openReranker(model, directory2);
|
|
34807
34807
|
return {
|
|
34808
34808
|
model: model.id,
|
|
34809
34809
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34823,14 +34823,14 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34823
34823
|
};
|
|
34824
34824
|
}, "rerankLane");
|
|
34825
34825
|
|
|
34826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
34827
34827
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
34828
34828
|
|
|
34829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34829
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
34830
34830
|
var foldKey = /* @__PURE__ */ __name((key) => key.replaceAll("_", "").toLowerCase(), "foldKey");
|
|
34831
34831
|
var DOWNLOAD_KEYS = new Set(["DOWNLOAD_URL", "downloadUrl", "fileUrl", "CALL_RECORD_URL", "archiveLink", "publicUrl"].map(foldKey));
|
|
34832
34832
|
|
|
34833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34833
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
34834
34834
|
var TIMES = { createdAt: "epoch", updatedAt: "epoch" };
|
|
34835
34835
|
var ITEM = {
|
|
34836
34836
|
externalId: "id",
|
|
@@ -34882,7 +34882,7 @@ var FIELDS = {
|
|
|
34882
34882
|
lead: ITEM
|
|
34883
34883
|
};
|
|
34884
34884
|
|
|
34885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
34886
34886
|
var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
|
|
34887
34887
|
var paths = pipe(array(path), minLength(1));
|
|
34888
34888
|
var crmRuleSchema = union([
|
|
@@ -34975,10 +34975,10 @@ var schema = strictObject({
|
|
|
34975
34975
|
}))
|
|
34976
34976
|
});
|
|
34977
34977
|
|
|
34978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
34979
34979
|
var OVERLAP_MS = 10 * 6e4;
|
|
34980
34980
|
|
|
34981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
34982
34982
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
34983
34983
|
let question;
|
|
34984
34984
|
let answered = false;
|
|
@@ -35021,7 +35021,7 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
35021
35021
|
};
|
|
35022
35022
|
}, "keyedGuard");
|
|
35023
35023
|
|
|
35024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
35025
35025
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
35026
35026
|
var CRM_WRITE_DEFAULTS = {
|
|
35027
35027
|
"deals.delete": "ask",
|
|
@@ -35029,7 +35029,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
35029
35029
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
35030
35030
|
};
|
|
35031
35031
|
|
|
35032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
35033
35033
|
var VIEWERS = "crm:viewers";
|
|
35034
35034
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
35035
35035
|
try {
|
|
@@ -35060,10 +35060,10 @@ var crmViewerOf = /* @__PURE__ */ __name(async (store, account, user) => {
|
|
|
35060
35060
|
};
|
|
35061
35061
|
}, "crmViewerOf");
|
|
35062
35062
|
|
|
35063
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
35064
35064
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
35065
35065
|
|
|
35066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35066
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
35067
35067
|
var DAY5 = 864e5;
|
|
35068
35068
|
var SPAN = { start: 0, end: 0 };
|
|
35069
35069
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -35188,17 +35188,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
35188
35188
|
};
|
|
35189
35189
|
}, "questionPeriod");
|
|
35190
35190
|
|
|
35191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
35192
35192
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
35193
35193
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
35194
35194
|
const directory2 = imageModelsDirectory(env);
|
|
35195
35195
|
if (!isImageModelInstalled(model, directory2))
|
|
35196
35196
|
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 });
|
|
35197
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
35197
|
+
const { openPictureEmbedder } = await import("./embedder-I7ERQZJV.js");
|
|
35198
35198
|
return openPictureEmbedder(model, directory2);
|
|
35199
35199
|
}, "openPictureEmbedderFor");
|
|
35200
35200
|
|
|
35201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
35202
35202
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
35203
35203
|
const metadata = note.frontMatter;
|
|
35204
35204
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -35220,7 +35220,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
35220
35220
|
};
|
|
35221
35221
|
}, "documentSource");
|
|
35222
35222
|
|
|
35223
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
35224
35224
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
35225
35225
|
const host = new URL(baseUrl).host;
|
|
35226
35226
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -35253,7 +35253,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
35253
35253
|
};
|
|
35254
35254
|
}, "embeddingKeys");
|
|
35255
35255
|
|
|
35256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
35257
35257
|
var options = strictObject({
|
|
35258
35258
|
temperature: range(0, 2),
|
|
35259
35259
|
top_p: range(0, 1),
|
|
@@ -35320,7 +35320,7 @@ var openai = {
|
|
|
35320
35320
|
}), "complete")
|
|
35321
35321
|
};
|
|
35322
35322
|
|
|
35323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
35324
35324
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
35325
35325
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
35326
35326
|
if (deps.signal?.aborted)
|
|
@@ -35335,7 +35335,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35335
35335
|
if (!adapter && target2.provider === "openai")
|
|
35336
35336
|
adapter = openai;
|
|
35337
35337
|
if (!adapter && target2.provider === "anthropic")
|
|
35338
|
-
adapter = (await import("./anthropic-
|
|
35338
|
+
adapter = (await import("./anthropic-PPQ7DTXN.js")).anthropic;
|
|
35339
35339
|
if (!adapter)
|
|
35340
35340
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
35341
35341
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -35395,7 +35395,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
35395
35395
|
}, "complete")
|
|
35396
35396
|
}), "modelGateway");
|
|
35397
35397
|
|
|
35398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
35399
35399
|
var SECTION2 = "enrichment";
|
|
35400
35400
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
35401
35401
|
var DEFAULT_BASE_URLS = {
|
|
@@ -35470,7 +35470,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
35470
35470
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
35471
35471
|
}, "costOf");
|
|
35472
35472
|
|
|
35473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
35474
35474
|
var ENRICH_PER_RUN = 600;
|
|
35475
35475
|
var MAX_LINE = 400;
|
|
35476
35476
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -35546,7 +35546,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
35546
35546
|
};
|
|
35547
35547
|
}, "enrichmentState");
|
|
35548
35548
|
|
|
35549
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35549
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
35550
35550
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
35551
35551
|
let root;
|
|
35552
35552
|
try {
|
|
@@ -35573,7 +35573,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
35573
35573
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
35574
35574
|
}, "titleTiers");
|
|
35575
35575
|
|
|
35576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
35577
35577
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
35578
35578
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
35579
35579
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -36001,7 +36001,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
36001
36001
|
};
|
|
36002
36002
|
}, "searchNotesOf");
|
|
36003
36003
|
|
|
36004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
36005
36005
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
36006
36006
|
var iso3 = /* @__PURE__ */ __name((at3) => at3 === null ? null : new Date(at3).toISOString(), "iso");
|
|
36007
36007
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -36119,7 +36119,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
36119
36119
|
};
|
|
36120
36120
|
}, "searchEvents");
|
|
36121
36121
|
|
|
36122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
36123
36123
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
36124
36124
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
36125
36125
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -36149,7 +36149,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
36149
36149
|
};
|
|
36150
36150
|
}, "searchBusiness");
|
|
36151
36151
|
|
|
36152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
36153
36153
|
var MOST_HITS_PER_MEETING = 3;
|
|
36154
36154
|
var PAGE_ROWS = 200;
|
|
36155
36155
|
var MOST_PAGES = 25;
|
|
@@ -36377,7 +36377,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
36377
36377
|
foundBy: ["title"]
|
|
36378
36378
|
}), "titleItem");
|
|
36379
36379
|
|
|
36380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
36381
36381
|
var SECTION3 = "search_harder";
|
|
36382
36382
|
var HARDER_MODELS = {
|
|
36383
36383
|
anthropic: "claude-haiku-5-5",
|
|
@@ -36623,7 +36623,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
36623
36623
|
};
|
|
36624
36624
|
}, "reorderHarder");
|
|
36625
36625
|
|
|
36626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
36627
36627
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
36628
36628
|
var refusal = /* @__PURE__ */ __name((error, text3) => {
|
|
36629
36629
|
const { reason, span } = error.details ?? {};
|
|
@@ -37068,7 +37068,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
37068
37068
|
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);
|
|
37069
37069
|
}, "insidePeriodFirst");
|
|
37070
37070
|
|
|
37071
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
37072
37072
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
37073
37073
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
37074
37074
|
var DEFAULT_BACKEND = "both";
|
|
@@ -37259,7 +37259,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
37259
37259
|
return { report, sources };
|
|
37260
37260
|
}, "searchServer");
|
|
37261
37261
|
|
|
37262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
37263
37263
|
var DELETE_AT_ONCE = 10;
|
|
37264
37264
|
var atOnce = /* @__PURE__ */ __name((ids) => {
|
|
37265
37265
|
if (ids.length > DELETE_AT_ONCE)
|
|
@@ -37759,7 +37759,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
37759
37759
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
37760
37760
|
}, "checkMediaOptions");
|
|
37761
37761
|
|
|
37762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
37763
37763
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
37764
37764
|
var RULES2 = {
|
|
37765
37765
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -37774,7 +37774,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
37774
37774
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
37775
37775
|
}), "classifyChannel");
|
|
37776
37776
|
|
|
37777
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
37778
37778
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
37779
37779
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
37780
37780
|
const store = await deps.store();
|
|
@@ -37860,7 +37860,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
37860
37860
|
};
|
|
37861
37861
|
}, "metadataService");
|
|
37862
37862
|
|
|
37863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
37864
37864
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
37865
37865
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
37866
37866
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -37897,7 +37897,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
37897
37897
|
return { chatId, rows, notes };
|
|
37898
37898
|
}, "moderateWith");
|
|
37899
37899
|
|
|
37900
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37900
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
37901
37901
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
37902
37902
|
const file = /* @__PURE__ */ __name(() => {
|
|
37903
37903
|
const env = deps.env ?? process.env;
|
|
@@ -37982,7 +37982,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37982
37982
|
}, "removePerson")
|
|
37983
37983
|
}), "moderatorOf");
|
|
37984
37984
|
|
|
37985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37985
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37986
37986
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37987
37987
|
id: note.id,
|
|
37988
37988
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -38026,7 +38026,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
38026
38026
|
};
|
|
38027
38027
|
}, "privatePeopleService");
|
|
38028
38028
|
|
|
38029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
38030
38030
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
38031
38031
|
total: 0,
|
|
38032
38032
|
population: 0,
|
|
@@ -38282,7 +38282,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
38282
38282
|
}, "evidence")
|
|
38283
38283
|
}), "rankingsService");
|
|
38284
38284
|
|
|
38285
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
38286
38286
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
38287
38287
|
var WAITING_TAIL = 100;
|
|
38288
38288
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -38416,7 +38416,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38416
38416
|
};
|
|
38417
38417
|
}, "replyStatsService");
|
|
38418
38418
|
|
|
38419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
38420
38420
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
38421
38421
|
id: one.id,
|
|
38422
38422
|
name: one.name,
|
|
@@ -38542,7 +38542,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
38542
38542
|
};
|
|
38543
38543
|
}, "searchesService");
|
|
38544
38544
|
|
|
38545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
38546
38546
|
var TAGGING_QUERY = {
|
|
38547
38547
|
entity: "tagging",
|
|
38548
38548
|
backend: "sql",
|
|
@@ -38626,7 +38626,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38626
38626
|
};
|
|
38627
38627
|
}, "tagsService");
|
|
38628
38628
|
|
|
38629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
38630
38630
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
38631
38631
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
38632
38632
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -38825,7 +38825,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
38825
38825
|
};
|
|
38826
38826
|
}, "topicsService");
|
|
38827
38827
|
|
|
38828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
38829
38829
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
38830
38830
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
38831
38831
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -38899,7 +38899,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
38899
38899
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
38900
38900
|
}, "prepareEvidencePacket");
|
|
38901
38901
|
|
|
38902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
38903
38903
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
38904
38904
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
38905
38905
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -38919,7 +38919,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
38919
38919
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
38920
38920
|
}, "readEvidencePacket");
|
|
38921
38921
|
|
|
38922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
38923
38923
|
var scopeKeys = [
|
|
38924
38924
|
"accountId",
|
|
38925
38925
|
"meetingId",
|
|
@@ -38941,7 +38941,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
38941
38941
|
"maxVocabularyReadBytes"
|
|
38942
38942
|
]);
|
|
38943
38943
|
|
|
38944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
38945
38945
|
import { createHash as createHash12 } from "node:crypto";
|
|
38946
38946
|
import { existsSync as existsSync2 } from "node:fs";
|
|
38947
38947
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -39072,14 +39072,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
39072
39072
|
return { ...checked2.output, custom: true };
|
|
39073
39073
|
}, "addCustomTextModel");
|
|
39074
39074
|
|
|
39075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
39076
39076
|
var DAY6 = 864e5;
|
|
39077
39077
|
var SLOTS_EVERY = 7 * DAY6;
|
|
39078
39078
|
|
|
39079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
39080
39080
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
39081
39081
|
|
|
39082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39082
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
39083
39083
|
var LIST = "events list";
|
|
39084
39084
|
var EVENT_TYPES = [
|
|
39085
39085
|
"default",
|
|
@@ -39138,7 +39138,7 @@ var EVENTS_QUERY = {
|
|
|
39138
39138
|
} : field)
|
|
39139
39139
|
};
|
|
39140
39140
|
|
|
39141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
39142
39142
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
39143
39143
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
39144
39144
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -39156,7 +39156,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
39156
39156
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
39157
39157
|
};
|
|
39158
39158
|
|
|
39159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
39160
39160
|
var communicationFields = {
|
|
39161
39161
|
sources: pipe(array(strictObject({
|
|
39162
39162
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -39188,7 +39188,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
39188
39188
|
return { ...input, after, before };
|
|
39189
39189
|
}, "communicationRequest");
|
|
39190
39190
|
|
|
39191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
39192
39192
|
var MEETING_PREPARATION_LIMITS = {
|
|
39193
39193
|
meetings: { min: 1, max: 20, default: 5 },
|
|
39194
39194
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -39261,7 +39261,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
39261
39261
|
};
|
|
39262
39262
|
}, "validateMeetingPreparationRequest");
|
|
39263
39263
|
|
|
39264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
39265
39265
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
39266
39266
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
39267
39267
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -39309,7 +39309,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
39309
39309
|
}
|
|
39310
39310
|
}, "validatePreparationCommunications");
|
|
39311
39311
|
|
|
39312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
39313
39313
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
39314
39314
|
const installer = ports.installer();
|
|
39315
39315
|
const argv = updateCommand(installer, packageName);
|
|
@@ -39374,7 +39374,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
39374
39374
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
39375
39375
|
}, "dayAfter");
|
|
39376
39376
|
|
|
39377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
39378
39378
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
39379
39379
|
const pictures = picturesService(deps);
|
|
39380
39380
|
const base = {
|
|
@@ -39562,6 +39562,7 @@ export {
|
|
|
39562
39562
|
enrichmentEndpoint,
|
|
39563
39563
|
isEnrichmentProvider,
|
|
39564
39564
|
enrichmentPrice,
|
|
39565
|
+
costOf,
|
|
39565
39566
|
keyLookup,
|
|
39566
39567
|
keyVariable,
|
|
39567
39568
|
enrichmentState,
|