@wirecat/hubspot-cli 0.4.0 → 0.5.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 +16 -0
- package/README.md +2 -2
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-RBQMA24N.js +40 -0
- package/dist/bundle/{all-profiles-JVEE4PXX.js → all-profiles-PGFXLOKN.js} +11 -11
- package/dist/bundle/{anthropic-6HT57GNF.js → anthropic-LPOJ3TYF.js} +5 -5
- package/dist/bundle/{app-server-FOBFF6G6.js → app-server-EYWGCSRY.js} +68 -68
- package/dist/bundle/{bun-GW443QB3.js → bun-ZJOOKIIW.js} +2 -2
- package/dist/bundle/{bun-sqlite-TGIAICDN.js → bun-sqlite-Y6KKH2OW.js} +6 -6
- package/dist/bundle/{chunk-RFGIUCKU.js → chunk-23CLSKY7.js} +3 -3
- package/dist/bundle/{chunk-ETKLP4VE.js → chunk-34HDRZIL.js} +14 -14
- package/dist/bundle/{chunk-PQUZ2YDC.js → chunk-3CHJYWA2.js} +6 -6
- package/dist/bundle/{chunk-7QH5BZUG.js → chunk-4RZ4DUQT.js} +3 -3
- package/dist/bundle/{chunk-NLZADZ4F.js → chunk-5ENY4POG.js} +61 -61
- package/dist/bundle/{chunk-W5X37TBC.js → chunk-5HGS65I3.js} +2 -2
- package/dist/bundle/{chunk-HPRKSL5S.js → chunk-5UPNDUAA.js} +2 -2
- package/dist/bundle/{chunk-LS4S7PAP.js → chunk-5WADRBQG.js} +3 -3
- package/dist/bundle/{chunk-DBPFHJXX.js → chunk-6PWRJGX4.js} +4 -4
- package/dist/bundle/{chunk-Q7DIEU6L.js → chunk-6S422S22.js} +7 -7
- package/dist/bundle/{chunk-E33KM3DB.js → chunk-7Q64D56R.js} +11 -11
- package/dist/bundle/{chunk-HM72O37C.js → chunk-7RIE3DAW.js} +174 -161
- package/dist/bundle/{chunk-LX7QMRRG.js → chunk-A5UTNGI4.js} +13 -13
- package/dist/bundle/{chunk-FWW2CUXH.js → chunk-ABPZOI3C.js} +4 -4
- package/dist/bundle/{chunk-MQACXJLG.js → chunk-AHZQMSXW.js} +10 -10
- package/dist/bundle/{chunk-3BM6KBWP.js → chunk-AIQT2GGK.js} +19 -19
- package/dist/bundle/{chunk-ATGD64VO.js → chunk-AVBKXCEY.js} +8 -8
- package/dist/bundle/{chunk-3SRGN5MQ.js → chunk-BCW7DAVV.js} +2 -2
- package/dist/bundle/{chunk-QNQ4V4UT.js → chunk-BGUGTMTS.js} +8 -8
- package/dist/bundle/{chunk-EU7AVWSX.js → chunk-BH5FEFZB.js} +2 -2
- package/dist/bundle/{chunk-XDDTJYGA.js → chunk-BVK4GUUI.js} +1254 -803
- package/dist/bundle/{chunk-HQYJ66ZX.js → chunk-BW7NPFVC.js} +18 -8
- package/dist/bundle/{chunk-QJHRRJKD.js → chunk-CWCJEAHZ.js} +3 -3
- package/dist/bundle/{chunk-Z3YOKGVZ.js → chunk-DDMBPYHP.js} +2 -2
- package/dist/bundle/{chunk-3MUHCLRY.js → chunk-DEUCWBBH.js} +81 -5
- package/dist/bundle/{chunk-GJSHLF43.js → chunk-DJUUQG6Y.js} +8 -8
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-EGR3YUWD.js} +4 -4
- package/dist/bundle/{chunk-FOLKK6FW.js → chunk-EPBHJMF6.js} +20 -14
- package/dist/bundle/{chunk-VMF2UIQI.js → chunk-GZJP3KQQ.js} +3 -4
- package/dist/bundle/{chunk-YYYRE4AV.js → chunk-HBFSGL5E.js} +26 -26
- package/dist/bundle/{chunk-NL3RKJR6.js → chunk-HPRGUUHY.js} +1 -1
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-HPSESLOZ.js} +1 -1
- package/dist/bundle/{chunk-WBUVNKHJ.js → chunk-I334AT2H.js} +7 -7
- package/dist/bundle/{chunk-K4DWBOO6.js → chunk-K3WCBNH4.js} +6 -6
- package/dist/bundle/{chunk-XCDRFC6G.js → chunk-K5S7MKBB.js} +17 -17
- package/dist/bundle/{chunk-3LMW7U7F.js → chunk-KAW5VEER.js} +21 -8
- package/dist/bundle/{chunk-3MPMYAII.js → chunk-KC4ILAKO.js} +1 -1
- package/dist/bundle/{chunk-UHHXZKB2.js → chunk-KRTXJMCD.js} +16 -16
- package/dist/bundle/{chunk-5KLNBGPU.js → chunk-KXWRVLSU.js} +1 -1
- package/dist/bundle/{chunk-7OJ43BAH.js → chunk-L4SVHQ7H.js} +7 -7
- package/dist/bundle/{chunk-2BCWK5BF.js → chunk-L6WSFVTD.js} +8 -8
- package/dist/bundle/{chunk-A6PVEUGN.js → chunk-LWS5AO3H.js} +17 -17
- package/dist/bundle/{chunk-OLDIP4CV.js → chunk-LXLXF2OE.js} +3 -3
- package/dist/bundle/{chunk-QV4GDVBN.js → chunk-MENMD5Y5.js} +8 -8
- package/dist/bundle/{chunk-EBJYK7UM.js → chunk-MFWECOO3.js} +77 -62
- package/dist/bundle/{chunk-TAF4PKDS.js → chunk-MGMLSPIY.js} +1 -1
- package/dist/bundle/{chunk-F4ZLRS4B.js → chunk-MKBQFD37.js} +1 -1
- package/dist/bundle/{chunk-QIFCH5DZ.js → chunk-MPNMEWHA.js} +341 -278
- package/dist/bundle/{chunk-XMWMA2N5.js → chunk-MPQ4SPZG.js} +46 -32
- package/dist/bundle/{chunk-V23OHBGM.js → chunk-MW4ROXQ6.js} +3 -3
- package/dist/bundle/{chunk-QODPEZC5.js → chunk-NEDV6RCQ.js} +10 -3
- package/dist/bundle/{chunk-F3HJ2E3P.js → chunk-NEP67GLY.js} +6 -6
- package/dist/bundle/{chunk-5G4L6NQJ.js → chunk-NKIKMG33.js} +35 -35
- package/dist/bundle/{chunk-T3GZKV5A.js → chunk-NLPGUYCG.js} +12 -12
- package/dist/bundle/{chunk-6NUXFVJQ.js → chunk-OCISQFMW.js} +1 -1
- package/dist/bundle/{chunk-PKFLSX5F.js → chunk-ODRF47VS.js} +8 -8
- package/dist/bundle/{chunk-WATDMTDC.js → chunk-OFOA6VJ2.js} +3 -3
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-PMGAU6AP.js} +2 -2
- package/dist/bundle/{chunk-JWO3PB5Z.js → chunk-POTS24SH.js} +18 -18
- package/dist/bundle/{chunk-5ZVYIA56.js → chunk-PPQRWFJZ.js} +5 -5
- package/dist/bundle/{chunk-DG4RBKIV.js → chunk-QCHW7R7L.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-QDNYJOWJ.js} +1 -1
- package/dist/bundle/{chunk-M25KVDHA.js → chunk-QIHJKE4K.js} +7 -7
- package/dist/bundle/{chunk-WLFYEAZ6.js → chunk-QLFD3MOL.js} +402 -390
- package/dist/bundle/{chunk-N4EIJ53V.js → chunk-QPTHEZZ5.js} +2 -2
- package/dist/bundle/{chunk-PMJCZIV4.js → chunk-R7ZOCDNG.js} +1 -1
- package/dist/bundle/{chunk-AT43MYQL.js → chunk-RJBKDZGV.js} +8 -8
- package/dist/bundle/{chunk-UIWWAT3C.js → chunk-RZS7N3OZ.js} +7 -7
- package/dist/bundle/{chunk-Z4PY5BDP.js → chunk-SBNZYRVZ.js} +4 -4
- package/dist/bundle/{chunk-4OPN3KCN.js → chunk-STTHRJBX.js} +5 -5
- package/dist/bundle/{chunk-VDAYIXV4.js → chunk-V5VMAHDQ.js} +6 -6
- package/dist/bundle/{chunk-JKNUCEII.js → chunk-VCYUYFIV.js} +1 -1
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-VIJV474N.js} +1 -1
- package/dist/bundle/{chunk-5OBVICFK.js → chunk-WDR77HPO.js} +15 -1
- package/dist/bundle/{chunk-6ULR7N3T.js → chunk-WEM4FZPM.js} +2 -2
- package/dist/bundle/{chunk-FK4LEJZM.js → chunk-WQZENAPE.js} +3 -3
- package/dist/bundle/{chunk-X5U7GLHD.js → chunk-WXEN6AXQ.js} +16 -3
- package/dist/bundle/{chunk-IED6MKPU.js → chunk-YJLJZMEA.js} +25 -25
- package/dist/bundle/{chunk-XJVFXHDI.js → chunk-YQBGPBYN.js} +2 -2
- package/dist/bundle/{chunk-BXZRSXBL.js → chunk-YZ5MULJM.js} +3 -3
- package/dist/bundle/{chunk-2Q2XIXDL.js → chunk-Z7FC6VVM.js} +1 -1
- package/dist/bundle/{chunk-5WKJFMC3.js → chunk-ZKPM53YG.js} +4 -4
- package/dist/bundle/{chunk-V2B2OWTC.js → chunk-ZLWQPUPB.js} +2 -2
- package/dist/bundle/{chunk-GOOXUCJW.js → chunk-ZMHD76RE.js} +2 -2
- package/dist/bundle/command-contract-O2UKYHLD.js +40 -0
- package/dist/bundle/{command-server-entry-OJQ55UA2.js → command-server-entry-B7S5AUE6.js} +28 -28
- package/dist/bundle/{decode-CDQDRPRJ.js → decode-7L33C5UJ.js} +5 -5
- package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-BIGHHSXV.js} +8 -8
- package/dist/bundle/{echarts-GJ5JJG2A.js → echarts-CWR3QH55.js} +2 -2
- package/dist/bundle/{embed-BUQXGMKR.js → embed-GXQ3HOQ6.js} +6 -6
- package/dist/bundle/{embedder-FCX6LE4O.js → embedder-47OYXGLS.js} +9 -9
- package/dist/bundle/{failure-I6AAF5R5.js → failure-VMZOU5GZ.js} +2 -2
- package/dist/bundle/{first-run-RPYEXXQK.js → first-run-YVQQOUQG.js} +12 -12
- package/dist/bundle/first-screen-TU3KE2B5.js +40 -0
- package/dist/bundle/hubspot.js +27 -25
- package/dist/bundle/{instructions-LPVTPERS.js → instructions-QFS2MPK3.js} +1 -1
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-Z2KZNCXB.js} +2 -2
- package/dist/bundle/meeting-combined-WBEOLQMP.js +25 -0
- package/dist/bundle/{meeting-model-TRGBEWCY.js → meeting-model-GLF2HVJG.js} +11 -11
- package/dist/bundle/{meeting-semantic-RSF5KNKD.js → meeting-semantic-RG56F4YX.js} +6 -6
- package/dist/bundle/{node-UAT3EIAP.js → node-3TSWTXGI.js} +2 -2
- package/dist/bundle/{node-sqlite-3HKDQNFD.js → node-sqlite-UPQCG7DJ.js} +7 -7
- package/dist/bundle/{oauth-DYW2NSZP.js → oauth-MCVEENW3.js} +7 -7
- package/dist/bundle/{open-KBRXJ5BC.js → open-JMUTKUYJ.js} +5 -5
- package/dist/bundle/{openai-YNCLRTSK.js → openai-HT7YDOK7.js} +15 -15
- package/dist/bundle/{process-63BB7LKP.js → process-7RC6DAGM.js} +1 -1
- package/dist/bundle/{program-VX52OB3O.js → program-3DLBMOEJ.js} +134 -114
- package/dist/bundle/{prompt-TWLJ3M2O.js → prompt-7EROPXPF.js} +5 -5
- package/dist/bundle/{recognize-GQ6DLGE7.js → recognize-B232GXD2.js} +4 -4
- package/dist/bundle/{remote-RKNSF3TT.js → remote-HGV64VRC.js} +9 -9
- package/dist/bundle/{rerank-H4HSGQUJ.js → rerank-5S6TDXHD.js} +7 -7
- package/dist/bundle/{schemas-LDK7O6VW.js → schemas-SB42IXEX.js} +1 -1
- package/dist/bundle/{serve-4ZNIAL7H.js → serve-D2WFCV6Z.js} +9 -9
- package/dist/bundle/{server-4G4QB3QN.js → server-4AXPTJPV.js} +60 -60
- package/dist/bundle/server-FFHVNABP.js +86 -0
- package/dist/bundle/{source-2UCNCCO7.js → source-DF63EC2B.js} +114 -86
- package/dist/bundle/{sqlite-runtime-C2JYC7JF.js → sqlite-runtime-DAFMZNLI.js} +6 -6
- package/dist/bundle/{state-3KDXCXHG.js → state-7OEBDXVV.js} +6 -6
- package/dist/bundle/{store-LXLG5HTS.js → store-2ZWSWF76.js} +24 -24
- package/dist/bundle/{store-J5FQBZYR.js → store-KC6US326.js} +22 -22
- package/dist/bundle/store-Q3ZKD4FJ.js +34 -0
- package/dist/bundle/store-maintenance-command-24A4GBRP.js +73 -0
- package/dist/bundle/surface-SPTM57EP.js +72 -0
- package/dist/bundle/writer-EQQ55HOS.js +86 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -2
- package/dist/config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/agent-NST4YXJR.js +0 -40
- package/dist/bundle/command-contract-LYX2QNIA.js +0 -40
- package/dist/bundle/first-screen-Y4EH3HZS.js +0 -40
- package/dist/bundle/meeting-combined-FEEVVUGC.js +0 -25
- package/dist/bundle/server-3IYIZEEQ.js +0 -86
- package/dist/bundle/store-2MNUHHZC.js +0 -32
- package/dist/bundle/store-maintenance-command-DDB7TR6V.js +0 -73
- package/dist/bundle/surface-ZTZANYKC.js +0 -72
- package/dist/bundle/writer-X7PGBLDH.js +0 -86
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-A5UTNGI4.js";
|
|
12
12
|
import {
|
|
13
13
|
WIRECAT_TOOLS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WDR77HPO.js";
|
|
15
15
|
import {
|
|
16
16
|
isNewer,
|
|
17
17
|
updateCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4RZ4DUQT.js";
|
|
19
19
|
import {
|
|
20
20
|
LIST_QUERY_GUIDE,
|
|
21
21
|
capability,
|
|
22
22
|
dateWindow,
|
|
23
23
|
momentOf,
|
|
24
24
|
timeBounds
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EPBHJMF6.js";
|
|
26
26
|
import {
|
|
27
27
|
EmptyAnswer,
|
|
28
28
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
range,
|
|
32
32
|
systemFor,
|
|
33
33
|
validateImages
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-23CLSKY7.js";
|
|
35
35
|
import {
|
|
36
36
|
anyOfTerms,
|
|
37
37
|
isFunctionWord,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
questionText,
|
|
43
43
|
resolveMeetingSelection,
|
|
44
44
|
words
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-7Q64D56R.js";
|
|
46
46
|
import {
|
|
47
47
|
DEFAULT_IMAGE_MODEL,
|
|
48
48
|
LINK,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
sentIds,
|
|
71
71
|
tagging,
|
|
72
72
|
task
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-7RIE3DAW.js";
|
|
74
74
|
import {
|
|
75
75
|
CustomTextModelShape,
|
|
76
76
|
DEFAULT_RERANK_MODEL,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
textModels,
|
|
85
85
|
vectorModelKey,
|
|
86
86
|
writeTextModelsSection
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-L6WSFVTD.js";
|
|
88
88
|
import {
|
|
89
89
|
AGENDA_COLUMNS,
|
|
90
90
|
BUSINESS_FIND_MAX,
|
|
@@ -138,17 +138,17 @@ import {
|
|
|
138
138
|
seenBy,
|
|
139
139
|
threadConversation,
|
|
140
140
|
withoutField
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-QLFD3MOL.js";
|
|
142
142
|
import {
|
|
143
143
|
DEFAULT_STEMMERS,
|
|
144
144
|
createStemmer,
|
|
145
145
|
cutsDeep
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-BGUGTMTS.js";
|
|
147
147
|
import {
|
|
148
148
|
MINUTE,
|
|
149
149
|
YEAR,
|
|
150
150
|
aheadOf
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-CWCJEAHZ.js";
|
|
152
152
|
import {
|
|
153
153
|
FIELD_VERSION,
|
|
154
154
|
RRF_K,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
plainQuery,
|
|
158
158
|
validateAst,
|
|
159
159
|
validateFields
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-I334AT2H.js";
|
|
161
161
|
import {
|
|
162
162
|
LOG_ATTRIBUTES,
|
|
163
163
|
TASK_KINDS,
|
|
@@ -180,30 +180,23 @@ import {
|
|
|
180
180
|
sourceOf3 as sourceOf2,
|
|
181
181
|
typedCommand,
|
|
182
182
|
withAttempt
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-YJLJZMEA.js";
|
|
184
184
|
import {
|
|
185
185
|
isCliFailure,
|
|
186
186
|
sqliteCode
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-DDMBPYHP.js";
|
|
188
188
|
import {
|
|
189
189
|
localOnly,
|
|
190
190
|
refuseOffComputer,
|
|
191
191
|
remoteKey
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-AHZQMSXW.js";
|
|
193
193
|
import {
|
|
194
194
|
PLAIN_HTTP_REFUSED,
|
|
195
195
|
endpoint,
|
|
196
196
|
endpointFetch,
|
|
197
197
|
modelAddressAllowed,
|
|
198
198
|
onThisComputer
|
|
199
|
-
} from "./chunk-
|
|
200
|
-
import {
|
|
201
|
-
DEFAULT_TASK_CATEGORIES,
|
|
202
|
-
FALLBACK_CATEGORY,
|
|
203
|
-
readSharedSection,
|
|
204
|
-
sharedConfigPath,
|
|
205
|
-
writeSharedSection
|
|
206
|
-
} from "./chunk-UIWWAT3C.js";
|
|
199
|
+
} from "./chunk-QIHJKE4K.js";
|
|
207
200
|
import {
|
|
208
201
|
Unzip,
|
|
209
202
|
UnzipInflate,
|
|
@@ -214,11 +207,11 @@ import {
|
|
|
214
207
|
placedText,
|
|
215
208
|
runEmbedders,
|
|
216
209
|
textModelsDirectory
|
|
217
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-K3WCBNH4.js";
|
|
218
211
|
import {
|
|
219
212
|
installFiles,
|
|
220
213
|
megabytes
|
|
221
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-6PWRJGX4.js";
|
|
222
215
|
import {
|
|
223
216
|
MAX_ACTIONS,
|
|
224
217
|
ModerationRules,
|
|
@@ -232,7 +225,7 @@ import {
|
|
|
232
225
|
someUndone,
|
|
233
226
|
validateFormattedText,
|
|
234
227
|
visibleFormattedText
|
|
235
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-DJUUQG6Y.js";
|
|
236
229
|
import {
|
|
237
230
|
CEILING_KEY,
|
|
238
231
|
DEFAULT_PERMISSIONS,
|
|
@@ -241,7 +234,7 @@ import {
|
|
|
241
234
|
levelFor,
|
|
242
235
|
skipFlagFor,
|
|
243
236
|
stops
|
|
244
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-BW7NPFVC.js";
|
|
245
238
|
import {
|
|
246
239
|
COUNTER_FIELDS,
|
|
247
240
|
RANKING_TOKENIZER_VERSION,
|
|
@@ -260,7 +253,7 @@ import {
|
|
|
260
253
|
pickPerson,
|
|
261
254
|
rankingOptions,
|
|
262
255
|
rankingQuestion
|
|
263
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-POTS24SH.js";
|
|
264
257
|
import {
|
|
265
258
|
MESSAGE_PARSING,
|
|
266
259
|
QUERY_LIMITS,
|
|
@@ -270,11 +263,11 @@ import {
|
|
|
270
263
|
isQueryLimit,
|
|
271
264
|
outOfTime,
|
|
272
265
|
searchError
|
|
273
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-NEDV6RCQ.js";
|
|
274
267
|
import {
|
|
275
268
|
fold,
|
|
276
269
|
normalize
|
|
277
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-KXWRVLSU.js";
|
|
278
271
|
import {
|
|
279
272
|
CRM_KINDS,
|
|
280
273
|
DEAL_KINDS,
|
|
@@ -300,10 +293,10 @@ import {
|
|
|
300
293
|
parseLocator,
|
|
301
294
|
parseReference,
|
|
302
295
|
providerNamed
|
|
303
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-NLPGUYCG.js";
|
|
304
297
|
import {
|
|
305
298
|
normalizeTag
|
|
306
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-ZMHD76RE.js";
|
|
307
300
|
import {
|
|
308
301
|
OPERATORS_BY_TYPE,
|
|
309
302
|
READ_BUDGET_EXCEEDED,
|
|
@@ -327,11 +320,18 @@ import {
|
|
|
327
320
|
validateQuery,
|
|
328
321
|
walkQuery,
|
|
329
322
|
windowOf
|
|
330
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-5ENY4POG.js";
|
|
324
|
+
import {
|
|
325
|
+
DEFAULT_TASK_CATEGORIES,
|
|
326
|
+
FALLBACK_CATEGORY,
|
|
327
|
+
readSharedSection,
|
|
328
|
+
sharedConfigPath,
|
|
329
|
+
writeSharedSection
|
|
330
|
+
} from "./chunk-RZS7N3OZ.js";
|
|
331
331
|
import {
|
|
332
332
|
storePath,
|
|
333
333
|
wirecatDirectory
|
|
334
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-WEM4FZPM.js";
|
|
335
335
|
import {
|
|
336
336
|
Credentials,
|
|
337
337
|
backoffMs,
|
|
@@ -340,7 +340,7 @@ import {
|
|
|
340
340
|
realSleep,
|
|
341
341
|
resolvePaths,
|
|
342
342
|
writeSecurely
|
|
343
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-AIQT2GGK.js";
|
|
344
344
|
import {
|
|
345
345
|
array,
|
|
346
346
|
boolean,
|
|
@@ -379,7 +379,7 @@ import {
|
|
|
379
379
|
CliError,
|
|
380
380
|
isCliError,
|
|
381
381
|
singleLine
|
|
382
|
-
} from "./chunk-
|
|
382
|
+
} from "./chunk-PMGAU6AP.js";
|
|
383
383
|
import {
|
|
384
384
|
__commonJS,
|
|
385
385
|
__export,
|
|
@@ -16996,10 +16996,10 @@ var require_lib3 = __commonJS({
|
|
|
16996
16996
|
}
|
|
16997
16997
|
});
|
|
16998
16998
|
|
|
16999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
17000
17000
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
17001
17001
|
|
|
17002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
17003
17003
|
var RULES_VERSION = 6;
|
|
17004
17004
|
var LOOK_BACK = 50;
|
|
17005
17005
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17097,7 +17097,7 @@ var latest = /* @__PURE__ */ __name((window2, matches) => {
|
|
|
17097
17097
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17098
17098
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind2, confidence, method) => ({ messageId: message.id, parentId, source, kind: kind2, confidence, method }), "link");
|
|
17099
17099
|
|
|
17100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17101
17101
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17102
17102
|
import { open, stat } from "node:fs/promises";
|
|
17103
17103
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17313,7 +17313,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path2, maxBytes, read) => {
|
|
|
17313
17313
|
return { name, source };
|
|
17314
17314
|
}, "readStickerFile");
|
|
17315
17315
|
|
|
17316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
17317
17317
|
var values_exports = {};
|
|
17318
17318
|
__export(values_exports, {
|
|
17319
17319
|
amountOf: () => amountOf,
|
|
@@ -17330,10 +17330,10 @@ __export(values_exports, {
|
|
|
17330
17330
|
time: () => time
|
|
17331
17331
|
});
|
|
17332
17332
|
|
|
17333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/source.js
|
|
17334
17334
|
var CRM_FILE_SOURCES = ["record", "field", "document", "activity", "comment"];
|
|
17335
17335
|
|
|
17336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/files.js
|
|
17337
17337
|
var parseCrmFileId = /* @__PURE__ */ __name((id3) => {
|
|
17338
17338
|
const [kind2 = "", owner = "", source = "", ...rest] = id3.trim().split(":");
|
|
17339
17339
|
const providerId = rest.join(":");
|
|
@@ -17366,7 +17366,7 @@ var withoutFileLinks = /* @__PURE__ */ __name((body) => {
|
|
|
17366
17366
|
return walk2(body);
|
|
17367
17367
|
}, "withoutFileLinks");
|
|
17368
17368
|
|
|
17369
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17369
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/values.js
|
|
17370
17370
|
var isRaw = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRaw");
|
|
17371
17371
|
var fieldOf = /* @__PURE__ */ __name((value, key) => isRaw(value) ? value[key] : void 0, "fieldOf");
|
|
17372
17372
|
var rawsOf = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.filter(isRaw) : [], "rawsOf");
|
|
@@ -17425,7 +17425,7 @@ var crmValuesOf = /* @__PURE__ */ __name((values, fields2) => {
|
|
|
17425
17425
|
}));
|
|
17426
17426
|
}, "crmValuesOf");
|
|
17427
17427
|
|
|
17428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/walk.js
|
|
17429
17429
|
var crmWindowOf = /* @__PURE__ */ __name((query) => {
|
|
17430
17430
|
const page = query.page ?? 1;
|
|
17431
17431
|
return { offset: (Number.isSafeInteger(page) && page > 1 ? page - 1 : 0) * query.limit, limit: query.limit };
|
|
@@ -17445,10 +17445,10 @@ var walk = /* @__PURE__ */ __name(async (window2, largest, fetchPage) => {
|
|
|
17445
17445
|
return { items: rows.slice(0, window2.limit), hasMore: rows.length > window2.limit };
|
|
17446
17446
|
}, "walk");
|
|
17447
17447
|
|
|
17448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17449
17449
|
import { randomUUID } from "node:crypto";
|
|
17450
17450
|
|
|
17451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17451
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17452
17452
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17453
17453
|
import { dirname as dirname2, join } from "node:path";
|
|
17454
17454
|
var MOST_DEADLINES = 50;
|
|
@@ -17532,11 +17532,11 @@ var FloodMemory = class {
|
|
|
17532
17532
|
}
|
|
17533
17533
|
};
|
|
17534
17534
|
|
|
17535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17536
17536
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17537
17537
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17538
17538
|
|
|
17539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17540
17540
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17541
17541
|
import { dirname as dirname3 } from "node:path";
|
|
17542
17542
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17603,7 +17603,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17603
17603
|
}
|
|
17604
17604
|
}, "lockTime");
|
|
17605
17605
|
|
|
17606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17607
17607
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17608
17608
|
var SendJournal = class {
|
|
17609
17609
|
static {
|
|
@@ -17680,7 +17680,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17680
17680
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17681
17681
|
}, "withSendId");
|
|
17682
17682
|
|
|
17683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17683
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17684
17684
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17685
17685
|
import { join as join3 } from "node:path";
|
|
17686
17686
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17792,7 +17792,7 @@ var RecipientList = class {
|
|
|
17792
17792
|
}
|
|
17793
17793
|
};
|
|
17794
17794
|
|
|
17795
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17796
17796
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17797
17797
|
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");
|
|
17798
17798
|
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");
|
|
@@ -17980,7 +17980,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17980
17980
|
}), "guardFor");
|
|
17981
17981
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17982
17982
|
|
|
17983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/keyed-guard.js
|
|
17984
17984
|
var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
17985
17985
|
let question;
|
|
17986
17986
|
let answered = false;
|
|
@@ -18023,12 +18023,12 @@ var keyedGuard = /* @__PURE__ */ __name((build, ask2, levelOf, extra) => {
|
|
|
18023
18023
|
};
|
|
18024
18024
|
}, "keyedGuard");
|
|
18025
18025
|
|
|
18026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18027
18027
|
import { randomBytes } from "node:crypto";
|
|
18028
18028
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18029
18029
|
var newOperationId = newSendId;
|
|
18030
18030
|
|
|
18031
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/foreign-contacts.js
|
|
18032
18032
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
18033
18033
|
import { join as join4 } from "node:path";
|
|
18034
18034
|
var DAILY_FOREIGN_CONTACTS = 100;
|
|
@@ -18103,7 +18103,7 @@ var foreignContacts = /* @__PURE__ */ __name((source, file, options2 = {}) => {
|
|
|
18103
18103
|
};
|
|
18104
18104
|
}, "foreignContacts");
|
|
18105
18105
|
|
|
18106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
18107
18107
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
18108
18108
|
var CRM_WRITE_KEYS = [CRM_ASSIGN_OTHERS_KEY];
|
|
18109
18109
|
var PLURALS = {
|
|
@@ -18136,7 +18136,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
18136
18136
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
18137
18137
|
};
|
|
18138
18138
|
|
|
18139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/writes.js
|
|
18140
18140
|
var moneyChecked = /* @__PURE__ */ __name((check2, param) => {
|
|
18141
18141
|
try {
|
|
18142
18142
|
check2();
|
|
@@ -18583,10 +18583,10 @@ var updateCrmRecord = /* @__PURE__ */ __name(async (context2, kind2, externalId,
|
|
|
18583
18583
|
return writeRecord(context2, kind2, "update", fields2, operationId, () => writer.update(kind2, externalId, fields2, { operationId }));
|
|
18584
18584
|
}, "updateCrmRecord");
|
|
18585
18585
|
|
|
18586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/file-fetch.js
|
|
18587
18587
|
var EXCHANGE_MS = 60 * 60 * 1e3;
|
|
18588
18588
|
|
|
18589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/manifest/map.js
|
|
18590
18590
|
var TIMES = { createdAt: "epoch", updatedAt: "epoch" };
|
|
18591
18591
|
var ITEM = {
|
|
18592
18592
|
externalId: "id",
|
|
@@ -18638,7 +18638,7 @@ var FIELDS = {
|
|
|
18638
18638
|
lead: ITEM
|
|
18639
18639
|
};
|
|
18640
18640
|
|
|
18641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/manifest/manifest.js
|
|
18642
18642
|
var path = pipe(string(), regex(/^[^.\s]+(\.[^.\s]+)*$/, "a dotted path such as properties.name"));
|
|
18643
18643
|
var paths = pipe(array(path), minLength(1));
|
|
18644
18644
|
var crmRuleSchema = union([
|
|
@@ -18731,7 +18731,7 @@ var schema = strictObject({
|
|
|
18731
18731
|
}))
|
|
18732
18732
|
});
|
|
18733
18733
|
|
|
18734
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
18734
|
+
// 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
|
|
18735
18735
|
var pascal = /* @__PURE__ */ __name((text3) => text3.split(/[^A-Za-z0-9]+/).filter(Boolean).map((word) => word[0]?.toUpperCase() + word.slice(1)).join(""), "pascal");
|
|
18736
18736
|
var GLOBALS = /* @__PURE__ */ new Set([
|
|
18737
18737
|
"Array",
|
|
@@ -18767,7 +18767,7 @@ var identifier = /* @__PURE__ */ __name((id3) => {
|
|
|
18767
18767
|
return GLOBALS.has(name) ? `Api${name}` : name;
|
|
18768
18768
|
}, "identifier");
|
|
18769
18769
|
|
|
18770
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
18770
|
+
// 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
|
|
18771
18771
|
var BEARER = { in: "header", name: "authorization", value: /* @__PURE__ */ __name((token) => `Bearer ${token}`, "value") };
|
|
18772
18772
|
var signInPlace = /* @__PURE__ */ __name((scheme) => {
|
|
18773
18773
|
if (scheme.type === "apiKey") {
|
|
@@ -18800,7 +18800,7 @@ var signInRequirements = /* @__PURE__ */ __name((operation, document) => {
|
|
|
18800
18800
|
return requirements?.some((one) => Object.keys(one).length > 0) ? requirements : void 0;
|
|
18801
18801
|
}, "signInRequirements");
|
|
18802
18802
|
|
|
18803
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
18803
|
+
// 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
|
|
18804
18804
|
var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selection) => {
|
|
18805
18805
|
const variables = Object.entries(binding.variables);
|
|
18806
18806
|
const declared = variables.length ? `(${variables.map(([name, type]) => `$${name}: ${type}`).join(", ")})` : "";
|
|
@@ -18809,7 +18809,7 @@ var graphqlDocument = /* @__PURE__ */ __name((binding, selection = binding.selec
|
|
|
18809
18809
|
return `${binding.operation} ${binding.field[0]?.toUpperCase()}${binding.field.slice(1)}${declared} { ${binding.field}${passed}${inner} }`;
|
|
18810
18810
|
}, "graphqlDocument");
|
|
18811
18811
|
|
|
18812
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
18812
|
+
// 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
|
|
18813
18813
|
var IGNORED = /* @__PURE__ */ new Set([
|
|
18814
18814
|
"readOnly",
|
|
18815
18815
|
"example",
|
|
@@ -18853,7 +18853,7 @@ var KNOWN = /* @__PURE__ */ new Set([
|
|
|
18853
18853
|
]);
|
|
18854
18854
|
var LARGEST_EXAMPLE = 8 * 1024;
|
|
18855
18855
|
|
|
18856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
18857
18857
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
18858
18858
|
|
|
18859
18859
|
// node_modules/.pnpm/lossless-json@4.3.3/node_modules/lossless-json/lib/esm/utils.js
|
|
@@ -19540,7 +19540,7 @@ function resolveSpace(space) {
|
|
|
19540
19540
|
}
|
|
19541
19541
|
__name(resolveSpace, "resolveSpace");
|
|
19542
19542
|
|
|
19543
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/bot/api-input.js
|
|
19544
19544
|
var RENAMED = { timeout: "poll-timeout" };
|
|
19545
19545
|
var apiFlagOf = /* @__PURE__ */ __name((name) => RENAMED[name] ?? name.replace(/_/g, "-").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), "apiFlagOf");
|
|
19546
19546
|
var apiOptionKey = /* @__PURE__ */ __name((name) => apiFlagOf(name).replace(/-([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "apiOptionKey");
|
|
@@ -19678,7 +19678,7 @@ var flagValue = /* @__PURE__ */ __name((operation, name, raw, type) => {
|
|
|
19678
19678
|
return raw;
|
|
19679
19679
|
}, "flagValue");
|
|
19680
19680
|
|
|
19681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/service-api-manifest.js
|
|
19682
19682
|
var manifestBaseUrl = /* @__PURE__ */ __name((manifest, given, variables = {}) => {
|
|
19683
19683
|
const server = manifest.servers?.[0];
|
|
19684
19684
|
if (given === void 0 && !server)
|
|
@@ -19795,10 +19795,10 @@ var nextPage = /* @__PURE__ */ __name((pagination, input, answer, headers) => {
|
|
|
19795
19795
|
}
|
|
19796
19796
|
}, "nextPage");
|
|
19797
19797
|
|
|
19798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/manifest/source.js
|
|
19799
19799
|
var OVERLAP_MS = 10 * 6e4;
|
|
19800
19800
|
|
|
19801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19801
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
19802
19802
|
import { readFileSync as readFileSync6, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
19803
19803
|
import { join as join5 } from "node:path";
|
|
19804
19804
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -19893,7 +19893,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options2) => {
|
|
|
19893
19893
|
await (options2.sleep ?? ((ms) => new Promise((resolve7) => setTimeout(resolve7, ms))))(waitMs);
|
|
19894
19894
|
}, "waitForTurn");
|
|
19895
19895
|
|
|
19896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/provider-call.js
|
|
19897
19897
|
var RETRY = { retries: 3, baseDelayMs: 1e3, maxDelayMs: 1e4, maxRetryAfterMs: 3e4 };
|
|
19898
19898
|
var UNANSWERED = /* @__PURE__ */ new Set(["timeout", "network_error", "provider_unavailable", "cancelled", "invalid_response"]);
|
|
19899
19899
|
var unanswered = /* @__PURE__ */ __name((error) => !isCliError(error) || UNANSWERED.has(error.code) && error.details.sent !== false, "unanswered");
|
|
@@ -19929,7 +19929,7 @@ var providerCall = /* @__PURE__ */ __name(async (options2) => {
|
|
|
19929
19929
|
}
|
|
19930
19930
|
}, "providerCall");
|
|
19931
19931
|
|
|
19932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/query.js
|
|
19933
19933
|
var valueFor = /* @__PURE__ */ __name((kind2, raw, name) => {
|
|
19934
19934
|
if (kind2 === "id") {
|
|
19935
19935
|
if (!/^[\w.:-]{1,100}$/u.test(raw))
|
|
@@ -20030,7 +20030,7 @@ var selectedCodes = /* @__PURE__ */ __name((fields2, wanted) => {
|
|
|
20030
20030
|
});
|
|
20031
20031
|
}, "selectedCodes");
|
|
20032
20032
|
|
|
20033
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
20034
20034
|
var ALL = "all";
|
|
20035
20035
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
20036
20036
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -20102,7 +20102,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
20102
20102
|
[ALL]: [ALL]
|
|
20103
20103
|
}), "groupEntries");
|
|
20104
20104
|
|
|
20105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
20106
20106
|
var NO_MAIL = "no_mail";
|
|
20107
20107
|
var MAIL = "email";
|
|
20108
20108
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -20176,7 +20176,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind2, chosen, held, explicit, comm
|
|
|
20176
20176
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
20177
20177
|
}, "accountsOfKind");
|
|
20178
20178
|
|
|
20179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/group-hint.js
|
|
20180
20180
|
var workGroupHint = /* @__PURE__ */ __name((key) => `add it to a work group: \`memo groups add work ${key.provider}:${key.account}\``, "workGroupHint");
|
|
20181
20181
|
var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
20182
20182
|
const { groups } = (await listContextOf(store, key, void 0)).membership;
|
|
@@ -20184,7 +20184,7 @@ var ungroupedHint = /* @__PURE__ */ __name(async (store, key) => {
|
|
|
20184
20184
|
return grouped2 ? void 0 : workGroupHint(key);
|
|
20185
20185
|
}, "ungroupedHint");
|
|
20186
20186
|
|
|
20187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/viewer.js
|
|
20188
20188
|
var VIEWERS = "crm:viewers";
|
|
20189
20189
|
var viewersOf = /* @__PURE__ */ __name(async (store, account) => {
|
|
20190
20190
|
try {
|
|
@@ -20259,7 +20259,7 @@ var ownerOf = /* @__PURE__ */ __name(async (run2, owner) => {
|
|
|
20259
20259
|
return crmIdentityId(run2.account, normalCrmUserId(owner), "user");
|
|
20260
20260
|
}, "ownerOf");
|
|
20261
20261
|
|
|
20262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
20263
20263
|
var DAY2 = 864e5;
|
|
20264
20264
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
20265
20265
|
var MOST_UNLISTED = 0.5;
|
|
@@ -20913,7 +20913,7 @@ var crmStatus = /* @__PURE__ */ __name(async (store, account, { profile, now, ki
|
|
|
20913
20913
|
return { items, page: 1, limit: Math.max(1, items.length), hasMore: false };
|
|
20914
20914
|
}, "crmStatus");
|
|
20915
20915
|
|
|
20916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20916
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
20917
20917
|
var COMMAND_NEEDS = {
|
|
20918
20918
|
"account update": ["updateProfile", "change the profile"],
|
|
20919
20919
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -20931,7 +20931,10 @@ var COMMAND_NEEDS = {
|
|
|
20931
20931
|
"contacts import": ["importContacts", "import contacts"],
|
|
20932
20932
|
"messages comments": ["comments", "read comments on a channel post"],
|
|
20933
20933
|
"messages pin": ["pin", "pin a message"],
|
|
20934
|
-
"messages unpin": ["unpin", "unpin a message"]
|
|
20934
|
+
"messages unpin": ["unpin", "unpin a message"],
|
|
20935
|
+
"messages scheduled cancel": ["cancelScheduled", "cancel a scheduled message"],
|
|
20936
|
+
"messages scheduled edit": ["editScheduled", "edit a scheduled message"],
|
|
20937
|
+
"messages scheduled send": ["sendScheduled", "send a scheduled message now"]
|
|
20935
20938
|
};
|
|
20936
20939
|
var STORE_ANSWERS = /* @__PURE__ */ new Set(["chats events"]);
|
|
20937
20940
|
var lackedNeed = /* @__PURE__ */ __name((messenger, path2) => {
|
|
@@ -20963,7 +20966,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
20963
20966
|
return group;
|
|
20964
20967
|
}, "hideNever");
|
|
20965
20968
|
|
|
20966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20969
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
20967
20970
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
20968
20971
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
20969
20972
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -21025,7 +21028,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
21025
21028
|
}), "storedDeps");
|
|
21026
21029
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
21027
21030
|
|
|
21028
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
21029
21032
|
var LINKS = /https?:\/\/\S+/g;
|
|
21030
21033
|
var unanswered2 = /* @__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");
|
|
21031
21034
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -21055,7 +21058,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
21055
21058
|
});
|
|
21056
21059
|
}, "questions");
|
|
21057
21060
|
|
|
21058
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
21059
21062
|
var AUDIT_PAGE = 200;
|
|
21060
21063
|
var AUDIT_BUDGET = 10;
|
|
21061
21064
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -21135,7 +21138,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
21135
21138
|
return found;
|
|
21136
21139
|
}, "burstJoins");
|
|
21137
21140
|
|
|
21138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
21139
21142
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
21140
21143
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
21141
21144
|
const name = typed.trim().toLowerCase();
|
|
@@ -21192,7 +21195,7 @@ var categorize = /* @__PURE__ */ __name((text3, categories = DEFAULT_TASK_CATEGO
|
|
|
21192
21195
|
return best.name;
|
|
21193
21196
|
}, "categorize");
|
|
21194
21197
|
|
|
21195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
21196
21199
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
21197
21200
|
var RULES_IN = {
|
|
21198
21201
|
dialog: "all",
|
|
@@ -21398,7 +21401,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
21398
21401
|
return passes;
|
|
21399
21402
|
}, "applyTaskRulesToChats");
|
|
21400
21403
|
|
|
21401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
21402
21405
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
21403
21406
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
21404
21407
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -21421,10 +21424,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
21421
21424
|
}
|
|
21422
21425
|
}, "patiently");
|
|
21423
21426
|
|
|
21424
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
21425
21428
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
21426
21429
|
|
|
21427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
21428
21431
|
var REQUEST_MS = 400;
|
|
21429
21432
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
21430
21433
|
const lowest = ranges[0];
|
|
@@ -21447,13 +21450,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
21447
21450
|
};
|
|
21448
21451
|
}, "estimateBackfill");
|
|
21449
21452
|
|
|
21450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
21451
21454
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
21452
21455
|
...error,
|
|
21453
21456
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
21454
21457
|
}), "withRecovery");
|
|
21455
21458
|
|
|
21456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
21457
21460
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
21458
21461
|
if (isCliFailure(error))
|
|
21459
21462
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -21536,7 +21539,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
21536
21539
|
};
|
|
21537
21540
|
}, "mergeBatches");
|
|
21538
21541
|
|
|
21539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21542
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
21540
21543
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
21541
21544
|
if (deps.reads !== "store")
|
|
21542
21545
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -21737,7 +21740,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
21737
21740
|
}, "chatsMatchingIn");
|
|
21738
21741
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
21739
21742
|
|
|
21740
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
21741
21744
|
var CONTEXT_MESSAGES = 3;
|
|
21742
21745
|
var CONTEXT_MINUTES = 10;
|
|
21743
21746
|
var MAX_CHARS = 1200;
|
|
@@ -21761,12 +21764,12 @@ var context = {
|
|
|
21761
21764
|
}, "describe")
|
|
21762
21765
|
};
|
|
21763
21766
|
|
|
21764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
21765
21768
|
var BUILT_INS = [context];
|
|
21766
21769
|
var providers = [...BUILT_INS];
|
|
21767
21770
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
21768
21771
|
|
|
21769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
21770
21773
|
var READ_PAGE = 5e3;
|
|
21771
21774
|
var CHAIN = 50;
|
|
21772
21775
|
var CONVERSATION_QUERY = {
|
|
@@ -21918,7 +21921,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
21918
21921
|
return size2;
|
|
21919
21922
|
}, "sized");
|
|
21920
21923
|
|
|
21921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
21922
21925
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
21923
21926
|
var MESSAGE_PAGE = 5e3;
|
|
21924
21927
|
var PER_SESSION = 8;
|
|
@@ -21937,7 +21940,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
21937
21940
|
price: remote.price,
|
|
21938
21941
|
installed: true,
|
|
21939
21942
|
perBatch: PER_REQUEST * concurrency,
|
|
21940
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
21943
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-HGV64VRC.js")).openRemote(remote, apiKey, {
|
|
21941
21944
|
concurrency,
|
|
21942
21945
|
env: deps.env ?? process.env
|
|
21943
21946
|
}), "open")
|
|
@@ -21957,7 +21960,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
21957
21960
|
if (!isTextModelInstalled(model, directory2))
|
|
21958
21961
|
throw notDownloaded(model.id);
|
|
21959
21962
|
if (apart) {
|
|
21960
|
-
const { openProcess } = await import("./process-
|
|
21963
|
+
const { openProcess } = await import("./process-7RC6DAGM.js");
|
|
21961
21964
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
21962
21965
|
}
|
|
21963
21966
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -22246,7 +22249,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
22246
22249
|
return { ...one, state };
|
|
22247
22250
|
}, "shaped");
|
|
22248
22251
|
|
|
22249
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
22250
22253
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
22251
22254
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
22252
22255
|
for (const [key, value, maximum] of [
|
|
@@ -22299,7 +22302,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
22299
22302
|
}
|
|
22300
22303
|
}, "catchUpSearch");
|
|
22301
22304
|
|
|
22302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
22303
22306
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
22304
22307
|
if (deps.reads === "store") {
|
|
22305
22308
|
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`);
|
|
@@ -22680,7 +22683,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
22680
22683
|
return message?.timestamp ?? fallback;
|
|
22681
22684
|
}, "timeOfKey");
|
|
22682
22685
|
|
|
22683
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22686
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
22684
22687
|
var DAY_MS = 864e5;
|
|
22685
22688
|
var NEW_DAYS = 30;
|
|
22686
22689
|
var SAME_TEXT_MIN = 20;
|
|
@@ -22757,7 +22760,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
22757
22760
|
};
|
|
22758
22761
|
}, "scorePerson");
|
|
22759
22762
|
|
|
22760
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
22761
22764
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
22762
22765
|
const controller = new AbortController();
|
|
22763
22766
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -22773,7 +22776,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
22773
22776
|
}
|
|
22774
22777
|
}, "withTimeLimit");
|
|
22775
22778
|
|
|
22776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
22777
22780
|
var REGISTRIES = {
|
|
22778
22781
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
22779
22782
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -22860,7 +22863,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
22860
22863
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
22861
22864
|
})), "notCovered");
|
|
22862
22865
|
|
|
22863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
22864
22867
|
var ACTIVITY_MESSAGES = 1e3;
|
|
22865
22868
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
22866
22869
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -22948,7 +22951,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
22948
22951
|
};
|
|
22949
22952
|
}, "botCheckService");
|
|
22950
22953
|
|
|
22951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
22952
22955
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
22953
22956
|
if (value === void 0)
|
|
22954
22957
|
return void 0;
|
|
@@ -22958,7 +22961,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
22958
22961
|
return id3;
|
|
22959
22962
|
}, "threadIdOf");
|
|
22960
22963
|
|
|
22961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22964
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
22962
22965
|
var TOP_POSTS = 5;
|
|
22963
22966
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
22964
22967
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -23075,7 +23078,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
23075
23078
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
23076
23079
|
}, "median");
|
|
23077
23080
|
|
|
23078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
23079
23082
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
23080
23083
|
const events = [];
|
|
23081
23084
|
for (const stay of stays) {
|
|
@@ -23107,7 +23110,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
23107
23110
|
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));
|
|
23108
23111
|
}, "memberEvents");
|
|
23109
23112
|
|
|
23110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23113
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
23111
23114
|
var EVENTS_DAYS = 7;
|
|
23112
23115
|
var TRACKED_DAYS = 30;
|
|
23113
23116
|
var STATS_PAGE = 1e3;
|
|
@@ -23402,7 +23405,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
23402
23405
|
return members.length === 0 ? null : members;
|
|
23403
23406
|
}, "storedMembers");
|
|
23404
23407
|
|
|
23405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
23406
23409
|
var INBOX_CHATS = 20;
|
|
23407
23410
|
var REVIEW_DAYS = 3;
|
|
23408
23411
|
var UNANSWERED_HOURS = 24;
|
|
@@ -23610,7 +23613,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
23610
23613
|
};
|
|
23611
23614
|
}, "inboxService");
|
|
23612
23615
|
|
|
23613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
23614
23617
|
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");
|
|
23615
23618
|
var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {}) => {
|
|
23616
23619
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -23626,7 +23629,7 @@ var excerpt = /* @__PURE__ */ __name((text3, query, size2 = 240, options2 = {})
|
|
|
23626
23629
|
}, "excerpt");
|
|
23627
23630
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
23628
23631
|
|
|
23629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
23630
23633
|
var SCAN = 1e3;
|
|
23631
23634
|
var SNIPPET = 200;
|
|
23632
23635
|
var SNIPPET_ROWS = 6;
|
|
@@ -23691,7 +23694,7 @@ var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { li
|
|
|
23691
23694
|
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
23692
23695
|
}, "personMeetings");
|
|
23693
23696
|
|
|
23694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23697
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
23695
23698
|
var CONTEXT_MESSAGES2 = 10;
|
|
23696
23699
|
var CONTEXT_BYTES = 64 * 1024;
|
|
23697
23700
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -23997,10 +24000,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
23997
24000
|
};
|
|
23998
24001
|
}, "personMessages");
|
|
23999
24002
|
|
|
24000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24003
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
24001
24004
|
import { createHash } from "node:crypto";
|
|
24002
24005
|
|
|
24003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
24004
24007
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
24005
24008
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
24006
24009
|
const parsed = parseMeetingReference(reference);
|
|
@@ -24018,7 +24021,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
24018
24021
|
return { parsed, meeting };
|
|
24019
24022
|
}, "authorizedMeetingMetadata");
|
|
24020
24023
|
|
|
24021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
24022
24025
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
24023
24026
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
24024
24027
|
if (signal?.aborted)
|
|
@@ -24217,7 +24220,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
24217
24220
|
return { ...packet, fingerprint: hash(packet) };
|
|
24218
24221
|
}, "readMeetingEvidence");
|
|
24219
24222
|
|
|
24220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
24221
24224
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
24222
24225
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
24223
24226
|
const requestedAccounts = options2.accountIds;
|
|
@@ -24316,7 +24319,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
24316
24319
|
};
|
|
24317
24320
|
}, "personMeetingContext");
|
|
24318
24321
|
|
|
24319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
24320
24323
|
var PREPARE_BYTES = 96 * 1024;
|
|
24321
24324
|
var MEETINGS = 5;
|
|
24322
24325
|
var CUES = 3;
|
|
@@ -24439,7 +24442,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
24439
24442
|
}
|
|
24440
24443
|
}, "meetingsOf");
|
|
24441
24444
|
|
|
24442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
24443
24446
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
24444
24447
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
24445
24448
|
const held = await storeIfOpen(deps);
|
|
@@ -24509,7 +24512,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id3, title,
|
|
|
24509
24512
|
complete: false
|
|
24510
24513
|
})), "quiet");
|
|
24511
24514
|
|
|
24512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
24513
24516
|
var TIMELINE_ITEMS = 50;
|
|
24514
24517
|
var TIMELINE_MAX = 500;
|
|
24515
24518
|
var SCOPES = ["personal", "work"];
|
|
@@ -24571,7 +24574,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
24571
24574
|
};
|
|
24572
24575
|
}, "personTimeline");
|
|
24573
24576
|
|
|
24574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
24575
24578
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
24576
24579
|
const ids2 = [...new Set(chatIds)];
|
|
24577
24580
|
if (ids2.length === 0)
|
|
@@ -24597,7 +24600,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
24597
24600
|
}));
|
|
24598
24601
|
}, "chatCoverage");
|
|
24599
24602
|
|
|
24600
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
24601
24604
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
24602
24605
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
24603
24606
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -24661,7 +24664,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
24661
24664
|
}
|
|
24662
24665
|
}, "validateContextEvidencePage");
|
|
24663
24666
|
|
|
24664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
24665
24668
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
24666
24669
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
24667
24670
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -24714,7 +24717,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
24714
24717
|
};
|
|
24715
24718
|
}, "contextReadBudget");
|
|
24716
24719
|
|
|
24717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
24718
24721
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
24719
24722
|
if (!port || typeof port.read !== "function")
|
|
24720
24723
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -24758,7 +24761,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
24758
24761
|
};
|
|
24759
24762
|
}, "createContextEvidenceReader");
|
|
24760
24763
|
|
|
24761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
24762
24765
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
24763
24766
|
async around(ref, window2) {
|
|
24764
24767
|
const at3 = parseLocator(ref);
|
|
@@ -24853,7 +24856,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
24853
24856
|
};
|
|
24854
24857
|
}, "storedNeighbours");
|
|
24855
24858
|
|
|
24856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
24857
24860
|
import { createHash as createHash2 } from "node:crypto";
|
|
24858
24861
|
var DAY3 = 864e5;
|
|
24859
24862
|
var MAX_TIME = 864e13;
|
|
@@ -25169,7 +25172,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text3, plan) => {
|
|
|
25169
25172
|
return value;
|
|
25170
25173
|
}, "decodeCheckpoint");
|
|
25171
25174
|
|
|
25172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
25173
25176
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
25174
25177
|
var PAGE2 = 20;
|
|
25175
25178
|
var PEOPLE = 20;
|
|
@@ -25573,7 +25576,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
25573
25576
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
25574
25577
|
}, "peopleOf");
|
|
25575
25578
|
|
|
25576
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25579
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
25577
25580
|
var normalizedText = /* @__PURE__ */ __name((text3) => text3.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
25578
25581
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
25579
25582
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -25617,7 +25620,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
25617
25620
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
25618
25621
|
}, "matchVocabularyTerms");
|
|
25619
25622
|
|
|
25620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
25621
25624
|
var KINDS = ["project", "tag", "topic"];
|
|
25622
25625
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
25623
25626
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -25672,7 +25675,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
25672
25675
|
};
|
|
25673
25676
|
}, "findEvidenceMentions");
|
|
25674
25677
|
|
|
25675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
25676
25679
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
25677
25680
|
var DEFAULT_PURPOSES = ["work"];
|
|
25678
25681
|
var LINK_PURPOSE = "work";
|
|
@@ -25702,7 +25705,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
25702
25705
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
25703
25706
|
], "purposeList");
|
|
25704
25707
|
|
|
25705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
25706
25709
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
25707
25710
|
const window2 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
25708
25711
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -26013,7 +26016,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
26013
26016
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
26014
26017
|
}, "purposeHintOf");
|
|
26015
26018
|
|
|
26016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
26017
26020
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
26018
26021
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
26019
26022
|
const held = await storeIfOpen(deps);
|
|
@@ -26278,7 +26281,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
26278
26281
|
return rest;
|
|
26279
26282
|
}, "withoutPhone");
|
|
26280
26283
|
|
|
26281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
26282
26285
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
26283
26286
|
var PERIOD_FIELD = "created";
|
|
26284
26287
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -26409,7 +26412,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
26409
26412
|
}));
|
|
26410
26413
|
}, "meetingNames");
|
|
26411
26414
|
|
|
26412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
26413
26416
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
26414
26417
|
const tags = /* @__PURE__ */ new Map();
|
|
26415
26418
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -26418,7 +26421,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
26418
26421
|
return tags;
|
|
26419
26422
|
}, "taskTagFilters");
|
|
26420
26423
|
|
|
26421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
26422
26425
|
var TASK_QUERY = {
|
|
26423
26426
|
entity: "task",
|
|
26424
26427
|
backend: "sql",
|
|
@@ -26918,7 +26921,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
26918
26921
|
};
|
|
26919
26922
|
}, "taskView");
|
|
26920
26923
|
|
|
26921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
26922
26925
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
26923
26926
|
if (newest === null)
|
|
26924
26927
|
return null;
|
|
@@ -26927,7 +26930,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
26927
26930
|
return newest.addressed ? "owed" : null;
|
|
26928
26931
|
}, "mailTurn");
|
|
26929
26932
|
|
|
26930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
26931
26934
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
26932
26935
|
if (error instanceof CliError && error.code === "not_found")
|
|
26933
26936
|
return void 0;
|
|
@@ -26985,7 +26988,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
26985
26988
|
};
|
|
26986
26989
|
}, "mailActivity");
|
|
26987
26990
|
|
|
26988
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
26989
26992
|
var DAY4 = 864e5;
|
|
26990
26993
|
var AGENDA_DEFAULTS = { unanswered: DAY4, waiting: 7 * DAY4 };
|
|
26991
26994
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -27239,18 +27242,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
27239
27242
|
};
|
|
27240
27243
|
}, "agendaItem");
|
|
27241
27244
|
|
|
27242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
27243
27246
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
27244
27247
|
|
|
27245
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
27246
27249
|
import { lstat } from "node:fs/promises";
|
|
27247
27250
|
|
|
27248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
27249
27252
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
27250
27253
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
27251
27254
|
import { join as join7 } from "node:path";
|
|
27252
27255
|
|
|
27253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27256
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
27254
27257
|
import { createHash as createHash3 } from "node:crypto";
|
|
27255
27258
|
var metadataLimit = 16384;
|
|
27256
27259
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -27310,7 +27313,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path2, locator, maxBytes
|
|
|
27310
27313
|
}
|
|
27311
27314
|
}, "readPartialMetadata");
|
|
27312
27315
|
|
|
27313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
27314
27317
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
27315
27318
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
27316
27319
|
import { join as join6 } from "node:path";
|
|
@@ -27402,7 +27405,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
27402
27405
|
};
|
|
27403
27406
|
}, "partialWriter");
|
|
27404
27407
|
|
|
27405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27408
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
27406
27409
|
var NativeRecordingPartialStore = class {
|
|
27407
27410
|
static {
|
|
27408
27411
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -27509,12 +27512,12 @@ var NativeRecordingPartialStore = class {
|
|
|
27509
27512
|
}
|
|
27510
27513
|
};
|
|
27511
27514
|
|
|
27512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
27513
27516
|
import { createHash as createHash5 } from "node:crypto";
|
|
27514
27517
|
import { link as link2 } from "node:fs/promises";
|
|
27515
27518
|
import { basename as basename2, dirname as dirname5, join as join9, resolve as resolve2 } from "node:path";
|
|
27516
27519
|
|
|
27517
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
27518
27521
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
27519
27522
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path2, expected2, signal, writable = false) => {
|
|
27520
27523
|
signal?.throwIfAborted();
|
|
@@ -27549,7 +27552,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
27549
27552
|
signal?.throwIfAborted();
|
|
27550
27553
|
}, "commitPublication");
|
|
27551
27554
|
|
|
27552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
27553
27556
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
27554
27557
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
27555
27558
|
import { join as join8 } from "node:path";
|
|
@@ -27622,7 +27625,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path2, prefix,
|
|
|
27622
27625
|
}
|
|
27623
27626
|
}, "writePublicationJournal");
|
|
27624
27627
|
|
|
27625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
27626
27629
|
var NativeRecordingPublication = class {
|
|
27627
27630
|
static {
|
|
27628
27631
|
__name(this, "NativeRecordingPublication");
|
|
@@ -27695,7 +27698,7 @@ var NativeRecordingPublication = class {
|
|
|
27695
27698
|
}
|
|
27696
27699
|
};
|
|
27697
27700
|
|
|
27698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
27699
27702
|
import { createHash as createHash6 } from "node:crypto";
|
|
27700
27703
|
import { readdir } from "node:fs/promises";
|
|
27701
27704
|
import { isAbsolute as isAbsolute2, join as join10, resolve as resolve3 } from "node:path";
|
|
@@ -27782,7 +27785,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
27782
27785
|
beforePublish
|
|
27783
27786
|
}), "commitMediaEntry");
|
|
27784
27787
|
|
|
27785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
27786
27789
|
var validator = '"media-completed-v1"';
|
|
27787
27790
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
27788
27791
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -27883,7 +27886,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind2, file
|
|
|
27883
27886
|
return entry;
|
|
27884
27887
|
}, "archiveMediaFile");
|
|
27885
27888
|
|
|
27886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
27887
27890
|
import { mkdir, realpath } from "node:fs/promises";
|
|
27888
27891
|
import { join as join11, resolve as resolve4 } from "node:path";
|
|
27889
27892
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -27950,7 +27953,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
27950
27953
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
27951
27954
|
}, "withMediaArchiveLocks");
|
|
27952
27955
|
|
|
27953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
27954
27957
|
var checkMediaArchive = /* @__PURE__ */ __name((directory2, signal) => withMediaArchiveLocks(directory2, signal, async (root) => {
|
|
27955
27958
|
const entries = await readMediaManifests(root, signal);
|
|
27956
27959
|
if (!entries.length)
|
|
@@ -28093,7 +28096,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
28093
28096
|
}, { create: true });
|
|
28094
28097
|
}, "archiveMedia");
|
|
28095
28098
|
|
|
28096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
28097
28100
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
28098
28101
|
import { basename as basename3, dirname as dirname6, join as join12, resolve as resolve5 } from "node:path";
|
|
28099
28102
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -28244,7 +28247,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
28244
28247
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
28245
28248
|
}, "moveMediaArchive");
|
|
28246
28249
|
|
|
28247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
28248
28251
|
import { writeFileSync as writeFileSync3 } from "node:fs";
|
|
28249
28252
|
import { join as join13 } from "node:path";
|
|
28250
28253
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
@@ -28269,7 +28272,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28269
28272
|
`);
|
|
28270
28273
|
await nativeRuntime({ env, progress });
|
|
28271
28274
|
progress(`${model.id}: loading it once to check it works`);
|
|
28272
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
28275
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-GXQ3HOQ6.js");
|
|
28273
28276
|
const embedder = await openEmbedder2(model, directory2);
|
|
28274
28277
|
try {
|
|
28275
28278
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -28290,7 +28293,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id3, { env, progress = /
|
|
|
28290
28293
|
}
|
|
28291
28294
|
await nativeRuntime({ env, progress });
|
|
28292
28295
|
progress(`${model.id}: loading it once to check it works`);
|
|
28293
|
-
const { openReranker } = await import("./rerank-
|
|
28296
|
+
const { openReranker } = await import("./rerank-5S6TDXHD.js");
|
|
28294
28297
|
const reranker = await openReranker(model, directory2);
|
|
28295
28298
|
try {
|
|
28296
28299
|
await reranker.score("check", ["check"]);
|
|
@@ -28308,7 +28311,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28308
28311
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
28309
28312
|
}
|
|
28310
28313
|
progress(`${model.id}: loading it once to check it works`);
|
|
28311
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
28314
|
+
const { openPictureEmbedder } = await import("./embedder-47OYXGLS.js");
|
|
28312
28315
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
28313
28316
|
try {
|
|
28314
28317
|
const vector = await embedder.embedQuery("check");
|
|
@@ -28320,7 +28323,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id3, { env, progress = /*
|
|
|
28320
28323
|
return { model, directory: directory2 };
|
|
28321
28324
|
}, "downloadImageModel");
|
|
28322
28325
|
|
|
28323
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28326
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
28324
28327
|
var MONEY_REQUEST = "money-request";
|
|
28325
28328
|
var MONEY_DONE = "money-done";
|
|
28326
28329
|
var PROMISE = "promise";
|
|
@@ -28354,10 +28357,10 @@ var MONEY_WORDS = [
|
|
|
28354
28357
|
}
|
|
28355
28358
|
];
|
|
28356
28359
|
|
|
28357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
28358
28361
|
var moneyClassesOf = /* @__PURE__ */ __name((text3) => listsHit(text3, MONEY_WORDS), "moneyClassesOf");
|
|
28359
28362
|
|
|
28360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
28361
28364
|
var words2 = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
28362
28365
|
var MONEY_DONE_FORMS = words2([
|
|
28363
28366
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -28397,7 +28400,7 @@ var PROMISE_FORMS = words2([
|
|
|
28397
28400
|
"estar\xE1 listo"
|
|
28398
28401
|
]);
|
|
28399
28402
|
|
|
28400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
28401
28404
|
var EXCERPT_CHARS = 80;
|
|
28402
28405
|
var excerpt2 = /* @__PURE__ */ __name((text3) => {
|
|
28403
28406
|
const flat = text3.replace(/\s+/g, " ").trim();
|
|
@@ -28419,7 +28422,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
28419
28422
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
28420
28423
|
var day = /* @__PURE__ */ __name((at3) => new Date(at3).toISOString().slice(0, 10), "day");
|
|
28421
28424
|
|
|
28422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
28423
28426
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
28424
28427
|
var verbOf = /* @__PURE__ */ __name((text3) => {
|
|
28425
28428
|
if (MONEY_DONE_FORMS.test(text3))
|
|
@@ -28500,7 +28503,7 @@ var amounts = {
|
|
|
28500
28503
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
28501
28504
|
};
|
|
28502
28505
|
|
|
28503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
28504
28507
|
var children = {
|
|
28505
28508
|
id: "children",
|
|
28506
28509
|
version: 1,
|
|
@@ -28529,7 +28532,7 @@ var children = {
|
|
|
28529
28532
|
}, "read")
|
|
28530
28533
|
};
|
|
28531
28534
|
|
|
28532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
28533
28536
|
var coverage = {
|
|
28534
28537
|
id: "coverage",
|
|
28535
28538
|
version: 1,
|
|
@@ -28558,7 +28561,7 @@ var coverage = {
|
|
|
28558
28561
|
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")
|
|
28559
28562
|
};
|
|
28560
28563
|
|
|
28561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
28562
28565
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
28563
28566
|
var item = /* @__PURE__ */ __name((row, at3, data) => ({
|
|
28564
28567
|
signal: "payments",
|
|
@@ -28608,7 +28611,7 @@ var payments = {
|
|
|
28608
28611
|
}, "read")
|
|
28609
28612
|
};
|
|
28610
28613
|
|
|
28611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
28612
28615
|
var PATTERNS_PER_CHAT = 3;
|
|
28613
28616
|
var DAY5 = 864e5;
|
|
28614
28617
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -28697,7 +28700,7 @@ var promises = {
|
|
|
28697
28700
|
}, "read")
|
|
28698
28701
|
};
|
|
28699
28702
|
|
|
28700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
28701
28704
|
var PER_SIDE = 5;
|
|
28702
28705
|
var WEEK = 7 * 864e5;
|
|
28703
28706
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -28728,7 +28731,7 @@ var questions2 = {
|
|
|
28728
28731
|
}, "attention")
|
|
28729
28732
|
};
|
|
28730
28733
|
|
|
28731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
28732
28735
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
28733
28736
|
const byId2 = /* @__PURE__ */ __name((id3) => chat.messages.find((one) => one.id === id3), "byId");
|
|
28734
28737
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -28796,7 +28799,7 @@ var replyNext = {
|
|
|
28796
28799
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
28797
28800
|
};
|
|
28798
28801
|
|
|
28799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
28800
28803
|
var escaped = /* @__PURE__ */ __name((text3) => text3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
28801
28804
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
28802
28805
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -28842,7 +28845,7 @@ var topics = {
|
|
|
28842
28845
|
}, "read")
|
|
28843
28846
|
};
|
|
28844
28847
|
|
|
28845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
28846
28849
|
var STATUS_SIGNALS = [
|
|
28847
28850
|
replyNext,
|
|
28848
28851
|
questions2,
|
|
@@ -28854,7 +28857,7 @@ var STATUS_SIGNALS = [
|
|
|
28854
28857
|
children
|
|
28855
28858
|
];
|
|
28856
28859
|
|
|
28857
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28860
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
28858
28861
|
var DAY6 = 864e5;
|
|
28859
28862
|
var STATUS_WINDOW = 300;
|
|
28860
28863
|
var STATUS_CHATS = 16;
|
|
@@ -29043,7 +29046,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
29043
29046
|
};
|
|
29044
29047
|
}, "projectStatus");
|
|
29045
29048
|
|
|
29046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
29047
29050
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
29048
29051
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
29049
29052
|
if (deps.offline)
|
|
@@ -29115,7 +29118,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
29115
29118
|
};
|
|
29116
29119
|
}, "accountService");
|
|
29117
29120
|
|
|
29118
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
29119
29122
|
var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-time", zone) => {
|
|
29120
29123
|
const at3 = aheadOf(value, flag, now, {
|
|
29121
29124
|
...zone === void 0 ? {} : { zone },
|
|
@@ -29126,7 +29129,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
29126
29129
|
return new Date(at3 - at3 % MINUTE).toISOString();
|
|
29127
29130
|
}, "sendTime");
|
|
29128
29131
|
|
|
29129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
29130
29133
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
29131
29134
|
try {
|
|
29132
29135
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -29373,7 +29376,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
29373
29376
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
29374
29377
|
}, "linkLimits");
|
|
29375
29378
|
|
|
29376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
29377
29380
|
var THREADS_PAGE = 500;
|
|
29378
29381
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
29379
29382
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -29448,7 +29451,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before = 0, after
|
|
|
29448
29451
|
return thread.slice(Math.max(0, at3 - before), at3 + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
29449
29452
|
}, "readMail");
|
|
29450
29453
|
|
|
29451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
29452
29455
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
29453
29456
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
29454
29457
|
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");
|
|
@@ -29821,7 +29824,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
29821
29824
|
};
|
|
29822
29825
|
}, "statsLucene");
|
|
29823
29826
|
|
|
29824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29827
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
29825
29828
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
29826
29829
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
29827
29830
|
function invalid2(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -29990,7 +29993,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
29990
29993
|
};
|
|
29991
29994
|
}, "readRankingSelection");
|
|
29992
29995
|
|
|
29993
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
29994
29997
|
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");
|
|
29995
29998
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
29996
29999
|
command,
|
|
@@ -30000,7 +30003,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
30000
30003
|
fieldsVersion: FIELD_VERSION
|
|
30001
30004
|
}), "searchRecordOf");
|
|
30002
30005
|
|
|
30003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
30004
30007
|
function invalid3(message) {
|
|
30005
30008
|
throw new CliError("validation_error", message);
|
|
30006
30009
|
}
|
|
@@ -30294,7 +30297,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30294
30297
|
}, "evidence")
|
|
30295
30298
|
}), "adminStatisticsService");
|
|
30296
30299
|
|
|
30297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
30298
30301
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
30299
30302
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
30300
30303
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -30431,12 +30434,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
30431
30434
|
return { plan, repair };
|
|
30432
30435
|
}, "gapsService");
|
|
30433
30436
|
|
|
30434
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30435
30438
|
import { createHash as createHash10 } from "node:crypto";
|
|
30436
30439
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
30437
30440
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
30438
30441
|
|
|
30439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
30440
30443
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
30441
30444
|
import { basename as basename4, join as join14, relative as relative2, sep as sep2 } from "node:path";
|
|
30442
30445
|
var MAX_FILES = 1e4;
|
|
@@ -30507,15 +30510,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
30507
30510
|
return choices;
|
|
30508
30511
|
}, "directoryPaths");
|
|
30509
30512
|
|
|
30510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30513
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
30511
30514
|
import { posix } from "node:path";
|
|
30512
30515
|
|
|
30513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
30514
30517
|
import { setImmediate as tick } from "node:timers/promises";
|
|
30515
30518
|
import { crc32 } from "node:zlib";
|
|
30516
30519
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
30517
30520
|
|
|
30518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
30519
30522
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
30520
30523
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
30521
30524
|
var SAMPLE = 65536;
|
|
@@ -30617,7 +30620,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
30617
30620
|
return result.text;
|
|
30618
30621
|
}, "decodeXml");
|
|
30619
30622
|
|
|
30620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
30621
30624
|
var MAX_PART = 10 * 1024 * 1024;
|
|
30622
30625
|
var MAX_ENTRIES = 1e3;
|
|
30623
30626
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -30832,7 +30835,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
30832
30835
|
return found;
|
|
30833
30836
|
}, "elements");
|
|
30834
30837
|
|
|
30835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
30836
30839
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
30837
30840
|
let name = "";
|
|
30838
30841
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -30887,7 +30890,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
30887
30890
|
return { text: parts.join("").trim(), truncated: false };
|
|
30888
30891
|
}, "sheetText");
|
|
30889
30892
|
|
|
30890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
30891
30894
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
30892
30895
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
30893
30896
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -31287,10 +31290,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind2, signal) => {
|
|
|
31287
31290
|
}
|
|
31288
31291
|
}, "readDocument");
|
|
31289
31292
|
|
|
31290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
31291
31294
|
import { extname as extname3 } from "node:path";
|
|
31292
31295
|
|
|
31293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31296
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
31294
31297
|
import { readFileSync as readFileSync7 } from "node:fs";
|
|
31295
31298
|
import { dirname as dirname7, extname as extname2, join as join15 } from "node:path";
|
|
31296
31299
|
import { fileURLToPath } from "node:url";
|
|
@@ -31351,7 +31354,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
31351
31354
|
}
|
|
31352
31355
|
}, "derived");
|
|
31353
31356
|
|
|
31354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
31355
31358
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
31356
31359
|
var image2 = {
|
|
31357
31360
|
id: "image",
|
|
@@ -31360,7 +31363,7 @@ var image2 = {
|
|
|
31360
31363
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
31361
31364
|
};
|
|
31362
31365
|
|
|
31363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
31364
31367
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
31365
31368
|
var doc = {
|
|
31366
31369
|
id: "doc",
|
|
@@ -31372,7 +31375,7 @@ var doc = {
|
|
|
31372
31375
|
}), "read")
|
|
31373
31376
|
};
|
|
31374
31377
|
|
|
31375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31378
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
31376
31379
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
31377
31380
|
var docx = {
|
|
31378
31381
|
id: "docx",
|
|
@@ -31385,10 +31388,10 @@ var docx = {
|
|
|
31385
31388
|
}), "read")
|
|
31386
31389
|
};
|
|
31387
31390
|
|
|
31388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
31389
31392
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
31390
31393
|
|
|
31391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/html-entities.js
|
|
31392
31395
|
var NAMED = {
|
|
31393
31396
|
amp: "&",
|
|
31394
31397
|
lt: "<",
|
|
@@ -31440,7 +31443,7 @@ var decodeEntities = /* @__PURE__ */ __name((text3) => text3.replace(/&(#x[0-9a-
|
|
|
31440
31443
|
return body[1] === "x" || body[1] === "X" ? character(Number.parseInt(body.slice(2), 16), entity2) : character(Number(body.slice(1)), entity2);
|
|
31441
31444
|
}), "decodeEntities");
|
|
31442
31445
|
|
|
31443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
31444
31447
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
31445
31448
|
"fonttbl",
|
|
31446
31449
|
"colortbl",
|
|
@@ -31606,7 +31609,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
31606
31609
|
return decodeEntities(replaceTags(blocks, /<[^>]*>/g, "")).replace(/(?<![ \t\u00a0])[ \t\u00a0]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
31607
31610
|
}, "htmlText");
|
|
31608
31611
|
|
|
31609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
31610
31613
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
31611
31614
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
31612
31615
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -31662,7 +31665,7 @@ var markdownSections = /* @__PURE__ */ __name((text3) => {
|
|
|
31662
31665
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text3.length }));
|
|
31663
31666
|
}, "markdownSections");
|
|
31664
31667
|
|
|
31665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
31666
31669
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
31667
31670
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
31668
31671
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -31733,7 +31736,7 @@ var html = {
|
|
|
31733
31736
|
}, "read")
|
|
31734
31737
|
};
|
|
31735
31738
|
|
|
31736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31739
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
31737
31740
|
var office = {
|
|
31738
31741
|
id: "office",
|
|
31739
31742
|
version: documentExtractor("odt"),
|
|
@@ -31744,7 +31747,7 @@ var office = {
|
|
|
31744
31747
|
}, "read")
|
|
31745
31748
|
};
|
|
31746
31749
|
|
|
31747
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
31748
31751
|
var pdf = {
|
|
31749
31752
|
id: "pdf",
|
|
31750
31753
|
version: "unpdf",
|
|
@@ -31811,7 +31814,7 @@ var pdf = {
|
|
|
31811
31814
|
}), "read")
|
|
31812
31815
|
};
|
|
31813
31816
|
|
|
31814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
31815
31818
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
31816
31819
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
31817
31820
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -31831,7 +31834,7 @@ var plain = {
|
|
|
31831
31834
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
31832
31835
|
};
|
|
31833
31836
|
|
|
31834
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
31835
31838
|
var rtf = {
|
|
31836
31839
|
id: "rtf",
|
|
31837
31840
|
version: "v1",
|
|
@@ -31839,10 +31842,10 @@ var rtf = {
|
|
|
31839
31842
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
31840
31843
|
};
|
|
31841
31844
|
|
|
31842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
31843
31846
|
import { basename as basename5 } from "node:path";
|
|
31844
31847
|
|
|
31845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
31846
31849
|
var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) => {
|
|
31847
31850
|
const cells = [];
|
|
31848
31851
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -31880,7 +31883,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text3, delimiter, maxCells = 1e4) =
|
|
|
31880
31883
|
return { cells, truncated };
|
|
31881
31884
|
}, "delimitedSpans");
|
|
31882
31885
|
|
|
31883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
31884
31887
|
var DELIMITED = {
|
|
31885
31888
|
".csv": ",",
|
|
31886
31889
|
".tsv": " ",
|
|
@@ -31919,7 +31922,7 @@ var sheets = {
|
|
|
31919
31922
|
}, "read")
|
|
31920
31923
|
};
|
|
31921
31924
|
|
|
31922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
31923
31926
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
31924
31927
|
var HEAD_BYTES = 1024;
|
|
31925
31928
|
var readers = [...BUILT_INS2];
|
|
@@ -31929,7 +31932,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
31929
31932
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
31930
31933
|
}, "readWithRegistry");
|
|
31931
31934
|
|
|
31932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31935
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
31933
31936
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
31934
31937
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path: path2 }) => extname3(name ?? path2).toLowerCase(), "extensionOf");
|
|
31935
31938
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -33008,7 +33011,7 @@ function imageSize(input) {
|
|
|
33008
33011
|
}
|
|
33009
33012
|
__name(imageSize, "imageSize");
|
|
33010
33013
|
|
|
33011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33014
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
33012
33015
|
var MAX_PAGES = 20;
|
|
33013
33016
|
var MAX_PIXELS = 2e7;
|
|
33014
33017
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -33168,7 +33171,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
33168
33171
|
}
|
|
33169
33172
|
}, "ocrPdf");
|
|
33170
33173
|
|
|
33171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
33172
33175
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
33173
33176
|
const limits = pdfPreviewLimits(env);
|
|
33174
33177
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -33245,7 +33248,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
33245
33248
|
}
|
|
33246
33249
|
}, "pdfPreview");
|
|
33247
33250
|
|
|
33248
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
33249
33252
|
import { spawn } from "node:child_process";
|
|
33250
33253
|
import { mkdtempSync, readFileSync as readFileSync8, rmSync as rmSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
33251
33254
|
import { tmpdir } from "node:os";
|
|
@@ -33408,7 +33411,7 @@ Read the attached picture.`,
|
|
|
33408
33411
|
}
|
|
33409
33412
|
}, "readPictureWithAgent");
|
|
33410
33413
|
|
|
33411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
33412
33415
|
import { createHash as createHash8 } from "node:crypto";
|
|
33413
33416
|
import { constants } from "node:fs";
|
|
33414
33417
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -33516,7 +33519,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
33516
33519
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
33517
33520
|
}, "transferMime");
|
|
33518
33521
|
|
|
33519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
33520
33523
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
33521
33524
|
import { link as link3, rm } from "node:fs/promises";
|
|
33522
33525
|
import { join as join17, resolve as resolve6 } from "node:path";
|
|
@@ -33630,12 +33633,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
33630
33633
|
}
|
|
33631
33634
|
}, "save");
|
|
33632
33635
|
|
|
33633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33634
33637
|
import { createHash as createHash9 } from "node:crypto";
|
|
33635
33638
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
33636
33639
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
33637
33640
|
|
|
33638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
33639
33642
|
var GROUP_SETTINGS = [
|
|
33640
33643
|
"allCanPin",
|
|
33641
33644
|
"onlyAdminsAdd",
|
|
@@ -33649,7 +33652,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
33649
33652
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
33650
33653
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
33651
33654
|
|
|
33652
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33655
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
33653
33656
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
33654
33657
|
var PICTURE_FLOOR = 0.25;
|
|
33655
33658
|
var PAGE3 = 50;
|
|
@@ -33690,7 +33693,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
33690
33693
|
const directory2 = imageModelsDirectory(deps.env);
|
|
33691
33694
|
if (!isImageModelInstalled(model2, directory2))
|
|
33692
33695
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
33693
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33696
|
+
const { openPictureEmbedder } = await import("./embedder-47OYXGLS.js");
|
|
33694
33697
|
return openPictureEmbedder(model2, directory2);
|
|
33695
33698
|
}, "open");
|
|
33696
33699
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -33864,7 +33867,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
33864
33867
|
}, "search")
|
|
33865
33868
|
}), "withPictures");
|
|
33866
33869
|
|
|
33867
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
33868
33871
|
var ATTACHMENT_QUERY = {
|
|
33869
33872
|
entity: "attachment",
|
|
33870
33873
|
backend: "sql",
|
|
@@ -34335,7 +34338,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
34335
34338
|
}, "readPicture")
|
|
34336
34339
|
}), "attachmentsService");
|
|
34337
34340
|
|
|
34338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
34339
34342
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
34340
34343
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
34341
34344
|
const store = await accountStore(deps);
|
|
@@ -34365,7 +34368,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
34365
34368
|
}, "list")
|
|
34366
34369
|
}), "chatDocumentsService");
|
|
34367
34370
|
|
|
34368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
34369
34372
|
var observationDuration = /* @__PURE__ */ __name((text3, flag) => {
|
|
34370
34373
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text3);
|
|
34371
34374
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -34452,7 +34455,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
34452
34455
|
}
|
|
34453
34456
|
}, "isRetentionSelection");
|
|
34454
34457
|
|
|
34455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
34456
34459
|
var counterFields = /* @__PURE__ */ __name((text3 = "views,reactions,comments") => {
|
|
34457
34460
|
const fields2 = text3.split(",").map((one) => one.trim());
|
|
34458
34461
|
if (!fields2.length || fields2.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields2).size !== fields2.length)
|
|
@@ -34659,7 +34662,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
34659
34662
|
};
|
|
34660
34663
|
}, "countersService");
|
|
34661
34664
|
|
|
34662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34665
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/respell.js
|
|
34663
34666
|
var LATIN = {
|
|
34664
34667
|
\u0430: "a",
|
|
34665
34668
|
\u0431: "b",
|
|
@@ -34714,7 +34717,7 @@ var respelled = /* @__PURE__ */ __name(async (vocabulary, words3) => {
|
|
|
34714
34717
|
return found;
|
|
34715
34718
|
}, "respelled");
|
|
34716
34719
|
|
|
34717
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/named-chat.js
|
|
34718
34721
|
var LEAST_USES = 3;
|
|
34719
34722
|
var SAMPLE2 = 50;
|
|
34720
34723
|
var CAPITALISED = 0.8;
|
|
@@ -34764,7 +34767,7 @@ var queryWords2 = /* @__PURE__ */ __name((query) => {
|
|
|
34764
34767
|
}, "queryWords");
|
|
34765
34768
|
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");
|
|
34766
34769
|
|
|
34767
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
34768
34771
|
var SYNC_KEY = "messages.sync-first";
|
|
34769
34772
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
34770
34773
|
var keyOf4 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -34896,7 +34899,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
34896
34899
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
34897
34900
|
}), "withRefresh");
|
|
34898
34901
|
|
|
34899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
34900
34903
|
var CANDIDATES = 50;
|
|
34901
34904
|
var ACROSS_CHATS = 500;
|
|
34902
34905
|
var OWN_BLOCK = 5;
|
|
@@ -35252,13 +35255,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
35252
35255
|
return mean2.map((value) => value / length);
|
|
35253
35256
|
}, "meanOf");
|
|
35254
35257
|
|
|
35255
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
35256
35259
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
35257
35260
|
...embeddingsMaintenance(deps),
|
|
35258
35261
|
...embeddingsSearch(deps)
|
|
35259
35262
|
}), "embeddingsService");
|
|
35260
35263
|
|
|
35261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
35262
35265
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
35263
35266
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
35264
35267
|
if (deps.offline)
|
|
@@ -35399,7 +35402,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
35399
35402
|
};
|
|
35400
35403
|
}, "foldersService");
|
|
35401
35404
|
|
|
35402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
35403
35406
|
var REVIEW_COUNT = 500;
|
|
35404
35407
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
35405
35408
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -35478,7 +35481,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35478
35481
|
};
|
|
35479
35482
|
}, "mentionsService");
|
|
35480
35483
|
|
|
35481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
35482
35485
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind: kind2, name }) => ({
|
|
35483
35486
|
position,
|
|
35484
35487
|
kind: kind2,
|
|
@@ -35527,7 +35530,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
35527
35530
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
35528
35531
|
}, "validatePermalink");
|
|
35529
35532
|
|
|
35530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
35531
35534
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
35532
35535
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
35533
35536
|
return `${seconds / 86400}d`;
|
|
@@ -35559,7 +35562,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
35559
35562
|
return seconds;
|
|
35560
35563
|
}, "pinDurationOf");
|
|
35561
35564
|
|
|
35562
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
35563
35566
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
35564
35567
|
if (sendAs === void 0) {
|
|
35565
35568
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -35584,7 +35587,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
35584
35587
|
return sendAs;
|
|
35585
35588
|
}, "typedSendAs");
|
|
35586
35589
|
|
|
35587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
35588
35591
|
var TOTAL_CAP = 1e4;
|
|
35589
35592
|
var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
35590
35593
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -35595,7 +35598,7 @@ var totalOf = /* @__PURE__ */ __name((count3, shown, hasMore, exact = true) => {
|
|
|
35595
35598
|
return { value: count3, relation: exact ? "eq" : "gte" };
|
|
35596
35599
|
}, "totalOf");
|
|
35597
35600
|
|
|
35598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
35599
35602
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
35600
35603
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
35601
35604
|
let narrows = false;
|
|
@@ -35624,7 +35627,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
35624
35627
|
return wanted(root).join(" ").trim();
|
|
35625
35628
|
}, "meaningWords");
|
|
35626
35629
|
|
|
35627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
35628
35631
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
35629
35632
|
var tokensOf = /* @__PURE__ */ __name((text3) => normalize(text3).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
35630
35633
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -35825,7 +35828,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
35825
35828
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
35826
35829
|
}, "signals");
|
|
35827
35830
|
|
|
35828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35831
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
35829
35832
|
var MEANING_DEPTH = 100;
|
|
35830
35833
|
var RRF_K3 = 60;
|
|
35831
35834
|
var RERANK_DEPTH = 50;
|
|
@@ -36151,7 +36154,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
36151
36154
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
36152
36155
|
}, "mixedWithReranker");
|
|
36153
36156
|
|
|
36154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
36155
36158
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
36156
36159
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
36157
36160
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -36350,7 +36353,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
36350
36353
|
return result;
|
|
36351
36354
|
}, "readThreadContext");
|
|
36352
36355
|
|
|
36353
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
36354
36357
|
var SEARCH_FILL_MS = 200;
|
|
36355
36358
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
36356
36359
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -36458,7 +36461,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
36458
36461
|
}, "accountOf");
|
|
36459
36462
|
var keyOf5 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
36460
36463
|
|
|
36461
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36464
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
36462
36465
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
36463
36466
|
const chosen = chosenTextModel(env);
|
|
36464
36467
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -36473,7 +36476,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
36473
36476
|
return (counts.get(before) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
36474
36477
|
}, "meaningModel");
|
|
36475
36478
|
|
|
36476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
36477
36480
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
36478
36481
|
try {
|
|
36479
36482
|
const text3 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -36552,7 +36555,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
36552
36555
|
}
|
|
36553
36556
|
}, "meaningLane");
|
|
36554
36557
|
|
|
36555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36558
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
36556
36559
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
36557
36560
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
36558
36561
|
if (choice === "off")
|
|
@@ -36564,9 +36567,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
36564
36567
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
36565
36568
|
try {
|
|
36566
36569
|
const warm = deps.embedders;
|
|
36567
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
36570
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-7RC6DAGM.js")).openRerankerProcess(model, directory2, {
|
|
36568
36571
|
threads: defaultThreads()
|
|
36569
|
-
})) : await (await import("./rerank-
|
|
36572
|
+
})) : await (await import("./rerank-5S6TDXHD.js")).openReranker(model, directory2);
|
|
36570
36573
|
return {
|
|
36571
36574
|
model: model.id,
|
|
36572
36575
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -36586,7 +36589,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
36586
36589
|
};
|
|
36587
36590
|
}, "rerankLane");
|
|
36588
36591
|
|
|
36589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
36590
36593
|
var DAY7 = 864e5;
|
|
36591
36594
|
var SPAN = { start: 0, end: 0 };
|
|
36592
36595
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -36711,17 +36714,17 @@ var questionPeriod = /* @__PURE__ */ __name((text3, now, zone) => {
|
|
|
36711
36714
|
};
|
|
36712
36715
|
}, "questionPeriod");
|
|
36713
36716
|
|
|
36714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
36715
36718
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
36716
36719
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
36717
36720
|
const directory2 = imageModelsDirectory(env);
|
|
36718
36721
|
if (!isImageModelInstalled(model, directory2))
|
|
36719
36722
|
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 });
|
|
36720
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
36723
|
+
const { openPictureEmbedder } = await import("./embedder-47OYXGLS.js");
|
|
36721
36724
|
return openPictureEmbedder(model, directory2);
|
|
36722
36725
|
}, "openPictureEmbedderFor");
|
|
36723
36726
|
|
|
36724
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36727
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
36725
36728
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
36726
36729
|
const metadata = note.frontMatter;
|
|
36727
36730
|
const account = accounts.find(({ id: id3 }) => String(id3) === note.folderId);
|
|
@@ -36743,7 +36746,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
36743
36746
|
};
|
|
36744
36747
|
}, "documentSource");
|
|
36745
36748
|
|
|
36746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
36747
36750
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
36748
36751
|
const host = new URL(baseUrl).host;
|
|
36749
36752
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -36776,7 +36779,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
36776
36779
|
};
|
|
36777
36780
|
}, "embeddingKeys");
|
|
36778
36781
|
|
|
36779
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
36780
36783
|
var options = strictObject({
|
|
36781
36784
|
temperature: range(0, 2),
|
|
36782
36785
|
top_p: range(0, 1),
|
|
@@ -36843,7 +36846,7 @@ var openai = {
|
|
|
36843
36846
|
}), "complete")
|
|
36844
36847
|
};
|
|
36845
36848
|
|
|
36846
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36849
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
36847
36850
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
36848
36851
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
36849
36852
|
if (deps.signal?.aborted)
|
|
@@ -36858,7 +36861,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
36858
36861
|
if (!adapter && target2.provider === "openai")
|
|
36859
36862
|
adapter = openai;
|
|
36860
36863
|
if (!adapter && target2.provider === "anthropic")
|
|
36861
|
-
adapter = (await import("./anthropic-
|
|
36864
|
+
adapter = (await import("./anthropic-LPOJ3TYF.js")).anthropic;
|
|
36862
36865
|
if (!adapter)
|
|
36863
36866
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
36864
36867
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -36918,7 +36921,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
36918
36921
|
}, "complete")
|
|
36919
36922
|
}), "modelGateway");
|
|
36920
36923
|
|
|
36921
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
36922
36925
|
var SECTION2 = "enrichment";
|
|
36923
36926
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
36924
36927
|
var DEFAULT_BASE_URLS = {
|
|
@@ -36993,7 +36996,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
36993
36996
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
36994
36997
|
}, "costOf");
|
|
36995
36998
|
|
|
36996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36999
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
36997
37000
|
var ENRICH_PER_RUN = 600;
|
|
36998
37001
|
var MAX_LINE = 400;
|
|
36999
37002
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -37069,7 +37072,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
37069
37072
|
};
|
|
37070
37073
|
}, "enrichmentState");
|
|
37071
37074
|
|
|
37072
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37075
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
37073
37076
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
37074
37077
|
let root;
|
|
37075
37078
|
try {
|
|
@@ -37096,7 +37099,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
37096
37099
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
37097
37100
|
}, "titleTiers");
|
|
37098
37101
|
|
|
37099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
37100
37103
|
var storeQuery = /* @__PURE__ */ __name(async (store, text3, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text3, exact), timezone), "storeQuery");
|
|
37101
37104
|
var parsedQuery = /* @__PURE__ */ __name((text3, exact) => validateFields(parseLucene(text3, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
37102
37105
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -37524,7 +37527,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text3, { accou
|
|
|
37524
37527
|
};
|
|
37525
37528
|
}, "searchNotesOf");
|
|
37526
37529
|
|
|
37527
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
37528
37531
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
37529
37532
|
var iso3 = /* @__PURE__ */ __name((at3) => at3 === null ? null : new Date(at3).toISOString(), "iso");
|
|
37530
37533
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -37642,7 +37645,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
37642
37645
|
};
|
|
37643
37646
|
}, "searchEvents");
|
|
37644
37647
|
|
|
37645
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
37646
37649
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
37647
37650
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
37648
37651
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -37672,7 +37675,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
37672
37675
|
};
|
|
37673
37676
|
}, "searchBusiness");
|
|
37674
37677
|
|
|
37675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
37676
37679
|
var MOST_HITS_PER_MEETING = 3;
|
|
37677
37680
|
var PAGE_ROWS = 200;
|
|
37678
37681
|
var MOST_PAGES = 25;
|
|
@@ -37900,7 +37903,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
37900
37903
|
foundBy: ["title"]
|
|
37901
37904
|
}), "titleItem");
|
|
37902
37905
|
|
|
37903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
37904
37907
|
var SECTION3 = "search_harder";
|
|
37905
37908
|
var HARDER_MODELS = {
|
|
37906
37909
|
anthropic: "claude-haiku-5-5",
|
|
@@ -38146,7 +38149,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
38146
38149
|
};
|
|
38147
38150
|
}, "reorderHarder");
|
|
38148
38151
|
|
|
38149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
38150
38153
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
38151
38154
|
var refusal2 = /* @__PURE__ */ __name((error, text3) => {
|
|
38152
38155
|
const { reason, span } = error.details ?? {};
|
|
@@ -38591,7 +38594,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
38591
38594
|
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);
|
|
38592
38595
|
}, "insidePeriodFirst");
|
|
38593
38596
|
|
|
38594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38597
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
38595
38598
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
38596
38599
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
38597
38600
|
var DEFAULT_BACKEND = "both";
|
|
@@ -38782,8 +38785,12 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
38782
38785
|
return { report, sources };
|
|
38783
38786
|
}, "searchServer");
|
|
38784
38787
|
|
|
38785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38788
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
38786
38789
|
var DELETE_AT_ONCE = 10;
|
|
38790
|
+
var atOnce = /* @__PURE__ */ __name((ids2) => {
|
|
38791
|
+
if (ids2.length > DELETE_AT_ONCE)
|
|
38792
|
+
throw new CliError("validation_error", `at most ${DELETE_AT_ONCE} messages at once, got ${ids2.length}`);
|
|
38793
|
+
}, "atOnce");
|
|
38787
38794
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
38788
38795
|
const files = fileLinks(attachments);
|
|
38789
38796
|
return files.length > 0 ? { files } : {};
|
|
@@ -38819,6 +38826,15 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
|
38819
38826
|
...query.saved === void 0 ? {} : { saved: query.saved }
|
|
38820
38827
|
}).catch(() => void 0);
|
|
38821
38828
|
}, "remember");
|
|
38829
|
+
const waiting = /* @__PURE__ */ __name(async (connection, chat, ids2) => {
|
|
38830
|
+
const list2 = capability(connection, "scheduled", "list scheduled messages");
|
|
38831
|
+
const { id: chatId } = await connection.resolve(chat);
|
|
38832
|
+
const queued = await list2(chatId);
|
|
38833
|
+
const unknown3 = ids2.filter((id3) => !queued.some((message) => message.id === id3));
|
|
38834
|
+
if (unknown3.length > 0)
|
|
38835
|
+
throw new CliError("not_found", `nothing scheduled in this chat has the id ${unknown3.join(", ")} \u2014 a scheduled message has an id of its own, not the one of a sent message; \`messages scheduled ${chat}\` lists them`, { sent: false });
|
|
38836
|
+
return { chatId, found: ids2.map((id3) => queued.find((message) => message.id === id3)) };
|
|
38837
|
+
}, "waiting");
|
|
38822
38838
|
const pinning = /* @__PURE__ */ __name(async ({ chat, message }, pinned, asked, requested) => {
|
|
38823
38839
|
const allowed = deps.messenger.pinDurations;
|
|
38824
38840
|
if (requested !== void 0 && !allowed?.includes(requested))
|
|
@@ -39124,6 +39140,53 @@ var messagesService = /* @__PURE__ */ __name((deps) => {
|
|
|
39124
39140
|
await guardedWrite(guard, { operationId, chatId, kind: "delete", count: messages.length, forEveryone }, () => remove(chatId, messages, { forEveryone }));
|
|
39125
39141
|
return { operationId, chatId, deleted: messages, forEveryone };
|
|
39126
39142
|
}, "delete"),
|
|
39143
|
+
cancelScheduled: /* @__PURE__ */ __name(async ({ chat, ids: ids2 }) => {
|
|
39144
|
+
atOnce(ids2);
|
|
39145
|
+
const connection = await deps.connection();
|
|
39146
|
+
const cancel = capability(connection, "cancelScheduled", "cancel a scheduled message");
|
|
39147
|
+
const { chatId } = await waiting(connection, chat, ids2);
|
|
39148
|
+
const operationId = newOperationId();
|
|
39149
|
+
await guardedWrite(guard, { operationId, chatId, kind: "delete", key: "messages.scheduled.cancel", count: ids2.length }, () => cancel(chatId, ids2));
|
|
39150
|
+
return { operationId, chatId, cancelled: ids2 };
|
|
39151
|
+
}, "cancelScheduled"),
|
|
39152
|
+
editScheduled: /* @__PURE__ */ __name(async ({ chat, id: id3, text: typed, markdown, html: html2, at: at3 }) => {
|
|
39153
|
+
if (typed === void 0 && at3 === void 0)
|
|
39154
|
+
throw new CliError("validation_error", "nothing to change \u2014 give the new text, --at-time, or both");
|
|
39155
|
+
const connection = await deps.connection();
|
|
39156
|
+
const edit = capability(connection, "editScheduled", "edit a scheduled message");
|
|
39157
|
+
const prepared = typed === void 0 ? void 0 : await formatted(connection, typed, { markdown, html: html2 });
|
|
39158
|
+
const change = prepared && (deps.agentText ? visibleFormattedText(prepared) : prepared);
|
|
39159
|
+
if (change !== void 0 && change.text.trim() === "")
|
|
39160
|
+
throw new CliError("validation_error", "no new text \u2014 the marks leave nothing");
|
|
39161
|
+
const { chatId, found: [current] } = await waiting(connection, chat, [id3]);
|
|
39162
|
+
const scheduledFor = at3 ?? current?.scheduledFor ?? current?.timestamp;
|
|
39163
|
+
if (scheduledFor === void 0)
|
|
39164
|
+
throw new CliError("invalid_response", "the scheduled message has no time");
|
|
39165
|
+
const operationId = newOperationId();
|
|
39166
|
+
const message = await guardedWrite(guard, {
|
|
39167
|
+
operationId,
|
|
39168
|
+
chatId,
|
|
39169
|
+
kind: "edit",
|
|
39170
|
+
key: "messages.scheduled.edit",
|
|
39171
|
+
messageId: id3,
|
|
39172
|
+
scheduledFor,
|
|
39173
|
+
...change === void 0 ? {} : { length: change.text.length }
|
|
39174
|
+
}, () => edit(chatId, id3, {
|
|
39175
|
+
at: scheduledFor,
|
|
39176
|
+
...change === void 0 ? {} : { text: change.text },
|
|
39177
|
+
...change === void 0 || change.spans.length === 0 ? {} : { formatting: change.spans }
|
|
39178
|
+
}));
|
|
39179
|
+
return { operationId, message, scheduledFor };
|
|
39180
|
+
}, "editScheduled"),
|
|
39181
|
+
sendScheduled: /* @__PURE__ */ __name(async ({ chat, ids: ids2 }) => {
|
|
39182
|
+
atOnce(ids2);
|
|
39183
|
+
const connection = await deps.connection();
|
|
39184
|
+
const send = capability(connection, "sendScheduled", "send a scheduled message now");
|
|
39185
|
+
const { chatId } = await waiting(connection, chat, ids2);
|
|
39186
|
+
const operationId = newOperationId();
|
|
39187
|
+
const messages = await guardedWrite(guard, { operationId, chatId, kind: "message", key: "messages.scheduled.send", count: ids2.length }, () => send(chatId, ids2));
|
|
39188
|
+
return { operationId, chatId, sent: ids2, messages };
|
|
39189
|
+
}, "sendScheduled"),
|
|
39127
39190
|
forward: /* @__PURE__ */ __name(async ({ chat, message, to, silent, sendId, sendAs, threadId: typedThread }) => {
|
|
39128
39191
|
const connection = await deps.connection();
|
|
39129
39192
|
const forward = capability(connection, "forward", "forward a message");
|
|
@@ -39222,7 +39285,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
39222
39285
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
39223
39286
|
}, "checkMediaOptions");
|
|
39224
39287
|
|
|
39225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
39226
39289
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
39227
39290
|
var RULES2 = {
|
|
39228
39291
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -39237,7 +39300,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
39237
39300
|
return fields2.length ? [{ tag, score: fields2.length / 3, fields: fields2 }] : [];
|
|
39238
39301
|
}), "classifyChannel");
|
|
39239
39302
|
|
|
39240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
39241
39304
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
39242
39305
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
39243
39306
|
const store = await deps.store();
|
|
@@ -39323,7 +39386,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
39323
39386
|
};
|
|
39324
39387
|
}, "metadataService");
|
|
39325
39388
|
|
|
39326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
39327
39390
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
39328
39391
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
39329
39392
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -39360,7 +39423,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
39360
39423
|
return { chatId, rows, notes };
|
|
39361
39424
|
}, "moderateWith");
|
|
39362
39425
|
|
|
39363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
39364
39427
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
39365
39428
|
const file = /* @__PURE__ */ __name(() => {
|
|
39366
39429
|
const env = deps.env ?? process.env;
|
|
@@ -39445,7 +39508,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
39445
39508
|
}, "removePerson")
|
|
39446
39509
|
}), "moderatorOf");
|
|
39447
39510
|
|
|
39448
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39511
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
39449
39512
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
39450
39513
|
id: note.id,
|
|
39451
39514
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -39489,7 +39552,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
39489
39552
|
};
|
|
39490
39553
|
}, "privatePeopleService");
|
|
39491
39554
|
|
|
39492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
39493
39556
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
39494
39557
|
total: 0,
|
|
39495
39558
|
population: 0,
|
|
@@ -39745,7 +39808,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
39745
39808
|
}, "evidence")
|
|
39746
39809
|
}), "rankingsService");
|
|
39747
39810
|
|
|
39748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
39749
39812
|
var FIELDS2 = ["date", "chat", "kind", "muted"];
|
|
39750
39813
|
var WAITING_TAIL = 100;
|
|
39751
39814
|
var plainOnly = /* @__PURE__ */ __name((text3, command) => {
|
|
@@ -39879,7 +39942,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
39879
39942
|
};
|
|
39880
39943
|
}, "replyStatsService");
|
|
39881
39944
|
|
|
39882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
39945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
39883
39946
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
39884
39947
|
id: one.id,
|
|
39885
39948
|
name: one.name,
|
|
@@ -40005,7 +40068,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
40005
40068
|
};
|
|
40006
40069
|
}, "searchesService");
|
|
40007
40070
|
|
|
40008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
40009
40072
|
var TAGGING_QUERY = {
|
|
40010
40073
|
entity: "tagging",
|
|
40011
40074
|
backend: "sql",
|
|
@@ -40089,7 +40152,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
40089
40152
|
};
|
|
40090
40153
|
}, "tagsService");
|
|
40091
40154
|
|
|
40092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40155
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
40093
40156
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
40094
40157
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
40095
40158
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -40288,7 +40351,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
40288
40351
|
};
|
|
40289
40352
|
}, "topicsService");
|
|
40290
40353
|
|
|
40291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
40292
40355
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
40293
40356
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
40294
40357
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -40362,7 +40425,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind: kind2, source, page,
|
|
|
40362
40425
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
40363
40426
|
}, "prepareEvidencePacket");
|
|
40364
40427
|
|
|
40365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40428
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
40366
40429
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before }, messenger = {}) => {
|
|
40367
40430
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
40368
40431
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -40382,7 +40445,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
40382
40445
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
40383
40446
|
}, "readEvidencePacket");
|
|
40384
40447
|
|
|
40385
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
40386
40449
|
var scopeKeys = [
|
|
40387
40450
|
"accountId",
|
|
40388
40451
|
"meetingId",
|
|
@@ -40404,7 +40467,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
40404
40467
|
"maxVocabularyReadBytes"
|
|
40405
40468
|
]);
|
|
40406
40469
|
|
|
40407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40470
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
40408
40471
|
import { createHash as createHash12 } from "node:crypto";
|
|
40409
40472
|
import { existsSync as existsSync2 } from "node:fs";
|
|
40410
40473
|
var useTextModel = /* @__PURE__ */ __name(async (id3, { env, command }) => {
|
|
@@ -40535,14 +40598,14 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id3, payload, { env, fetc
|
|
|
40535
40598
|
return { ...checked2.output, custom: true };
|
|
40536
40599
|
}, "addCustomTextModel");
|
|
40537
40600
|
|
|
40538
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/calendar/sync.js
|
|
40539
40602
|
var DAY8 = 864e5;
|
|
40540
40603
|
var SLOTS_EVERY = 7 * DAY8;
|
|
40541
40604
|
|
|
40542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/calendar/feeds.js
|
|
40543
40606
|
var FEED_LIMITS = { maxBytes: 10 * 1024 * 1024, timeoutMs: 3e4, redirects: 5 };
|
|
40544
40607
|
|
|
40545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/calendar/reads.js
|
|
40546
40609
|
var LIST = "events list";
|
|
40547
40610
|
var EVENT_TYPES = [
|
|
40548
40611
|
"default",
|
|
@@ -40601,7 +40664,7 @@ var EVENTS_QUERY = {
|
|
|
40601
40664
|
} : field)
|
|
40602
40665
|
};
|
|
40603
40666
|
|
|
40604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/calendar/writer.js
|
|
40605
40668
|
var EVENTS_NOTIFY_KEY = "events.notify";
|
|
40606
40669
|
var EVENTS_DELETE_SERIES_KEY = "events.delete.series";
|
|
40607
40670
|
var EVENTS_REMIND_HOOK_KEY = "events.remind.hook";
|
|
@@ -40619,7 +40682,7 @@ var CALENDAR_WRITE_DEFAULTS = {
|
|
|
40619
40682
|
[EVENTS_REMIND_HOOK_KEY]: "deny"
|
|
40620
40683
|
};
|
|
40621
40684
|
|
|
40622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
40623
40686
|
var communicationFields = {
|
|
40624
40687
|
sources: pipe(array(strictObject({
|
|
40625
40688
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -40651,7 +40714,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
40651
40714
|
return { ...input, after, before };
|
|
40652
40715
|
}, "communicationRequest");
|
|
40653
40716
|
|
|
40654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
40655
40718
|
var MEETING_PREPARATION_LIMITS = {
|
|
40656
40719
|
meetings: { min: 1, max: 20, default: 5 },
|
|
40657
40720
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -40724,7 +40787,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
40724
40787
|
};
|
|
40725
40788
|
}, "validateMeetingPreparationRequest");
|
|
40726
40789
|
|
|
40727
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
40728
40791
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
40729
40792
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
40730
40793
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -40772,7 +40835,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
40772
40835
|
}
|
|
40773
40836
|
}, "validatePreparationCommunications");
|
|
40774
40837
|
|
|
40775
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
40776
40839
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
40777
40840
|
const installer = ports.installer();
|
|
40778
40841
|
const argv = updateCommand(installer, packageName);
|
|
@@ -40837,7 +40900,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
40837
40900
|
return Number.isNaN(time2) ? null : new Date(time2 + 24 * 60 * 60 * 1e3).toISOString();
|
|
40838
40901
|
}, "dayAfter");
|
|
40839
40902
|
|
|
40840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
40903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.715.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_f3540c99972bb5f0aa92997a79a368b4/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
40841
40904
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
40842
40905
|
const pictures = picturesService(deps);
|
|
40843
40906
|
const base = {
|