@wirecat/mail-cli 0.25.0 → 0.26.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 +35 -0
- package/README.md +3 -0
- package/contracts/wirecat.json +1325 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bin/mail.js.map +1 -1
- package/dist/bundle/{all-profiles-QEV2PSOR.js → all-profiles-6NXVQLUQ.js} +11 -11
- package/dist/bundle/{anthropic-5NKQXIHM.js → anthropic-OLNFE2CL.js} +5 -5
- package/dist/bundle/{app-server-G2CJNT4R.js → app-server-J76N6XIK.js} +51 -51
- package/dist/bundle/{bun-6HBYWQIX.js → bun-6PYDHXNR.js} +2 -2
- package/dist/bundle/{bun-sqlite-DXIQ7BVR.js → bun-sqlite-QD5PFHPS.js} +6 -6
- package/dist/bundle/{chunk-5ZYFV6FD.js → chunk-2E2EV4HD.js} +103 -71
- package/dist/bundle/{chunk-T27IMG6X.js → chunk-2TCS4PLJ.js} +1 -1
- package/dist/bundle/{chunk-EXVY76VO.js → chunk-3J2UJFBJ.js} +19 -18
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-3RY4HC4V.js} +63 -5
- package/dist/bundle/{chunk-LGZPKKBN.js → chunk-3XTKQ5EM.js} +3 -2
- package/dist/bundle/{chunk-CIWWNBVW.js → chunk-4Q6KAV4O.js} +8 -8
- package/dist/bundle/{chunk-IXO4SCKE.js → chunk-52M5BAEG.js} +1 -1
- package/dist/bundle/{chunk-DIA56CS7.js → chunk-5WROIMUV.js} +11 -7
- package/dist/bundle/{chunk-ADKMBXY4.js → chunk-66C66FNK.js} +1 -1
- package/dist/bundle/{chunk-MBFPFWCO.js → chunk-76EKZSDK.js} +27 -27
- package/dist/bundle/{chunk-XQYKIZMG.js → chunk-76VSHS5Y.js} +12 -9
- package/dist/bundle/{chunk-L4QVOEOB.js → chunk-7C6FGWDH.js} +4 -4
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-TY644DKQ.js → chunk-7MEVD5PI.js} +57 -28
- package/dist/bundle/{chunk-7GLJSJ7M.js → chunk-A3EBRXOQ.js} +1 -1
- package/dist/bundle/{chunk-XMDEM6BZ.js → chunk-A6XETABW.js} +276 -254
- package/dist/bundle/{chunk-S2QRAKQI.js → chunk-AJ5K74X6.js} +17 -17
- package/dist/bundle/{chunk-QQUY4MZY.js → chunk-BDYQQ6G2.js} +1 -1
- package/dist/bundle/{chunk-JG4MNYG2.js → chunk-BMGRDZM3.js} +1 -1
- package/dist/bundle/{chunk-WX6OYVCH.js → chunk-CFBIPM7T.js} +363 -270
- package/dist/bundle/{chunk-HEIDAHRC.js → chunk-CZI45AQM.js} +2 -2
- package/dist/bundle/{chunk-VL6H2BND.js → chunk-DKIVYAXW.js} +18 -17
- package/dist/bundle/{chunk-IZOYW4Z4.js → chunk-ECZSYLSL.js} +24 -9
- package/dist/bundle/{chunk-NMZQTYKJ.js → chunk-EDWJ7IYH.js} +1 -1
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-G5LHHAW2.js → chunk-GIG7F6UW.js} +6 -6
- package/dist/bundle/{chunk-PHHH2NQP.js → chunk-H2IJQH5X.js} +15 -113
- package/dist/bundle/{chunk-QB3DP2TN.js → chunk-HI5XUETY.js} +2 -2
- package/dist/bundle/{chunk-PGC5TRH6.js → chunk-HNSBXC6U.js} +3 -3
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-VFU7PVPQ.js → chunk-JNKXU7AE.js} +62 -60
- package/dist/bundle/{chunk-BC7PFQL7.js → chunk-JVJG54QK.js} +40 -2
- package/dist/bundle/{chunk-PP3YOAWG.js → chunk-KXASCNOV.js} +3 -3
- package/dist/bundle/{chunk-3XVR2ROR.js → chunk-LMTQMYUF.js} +31 -31
- package/dist/bundle/{chunk-CBYBZCQP.js → chunk-LTZGLOKE.js} +3 -2
- package/dist/bundle/{chunk-HJSJBNCJ.js → chunk-M2LATBP2.js} +28 -9
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-HLXVUMZJ.js → chunk-M4Y33SJJ.js} +2 -2
- package/dist/bundle/{chunk-MWGH3M46.js → chunk-M7ECSGSN.js} +3 -3
- package/dist/bundle/{chunk-OLLIWNFG.js → chunk-M7RHPCXM.js} +3 -3
- package/dist/bundle/{chunk-B7SWTH5O.js → chunk-MIWSCTLG.js} +2 -2
- package/dist/bundle/{chunk-GY4XCLCO.js → chunk-NBJU6MBU.js} +8 -8
- package/dist/bundle/{chunk-Z5T6OW3V.js → chunk-NMFPK3MU.js} +4 -4
- package/dist/bundle/{chunk-HEYVMAAQ.js → chunk-OGE7YG4J.js} +2 -2
- package/dist/bundle/{chunk-A6BPOX5O.js → chunk-PJ6YMNJG.js} +3954 -3685
- package/dist/bundle/{chunk-OLKCJBZY.js → chunk-PY2IOVUN.js} +5 -5
- package/dist/bundle/{chunk-WOAYHCM2.js → chunk-QI6EXKSH.js} +1 -1
- package/dist/bundle/{chunk-YNS2YVUR.js → chunk-QJGG6QYV.js} +9 -9
- package/dist/bundle/{chunk-K2OGF7KC.js → chunk-RXKIP2ML.js} +2 -2
- package/dist/bundle/{chunk-SMTBV62X.js → chunk-T7SHPALQ.js} +26 -24
- package/dist/bundle/{chunk-GJRYZXBN.js → chunk-UE2NKPA4.js} +9 -9
- package/dist/bundle/{chunk-P6GXNT7Z.js → chunk-UNJUCK5R.js} +13 -13
- package/dist/bundle/{chunk-ND5H5ADM.js → chunk-V32L23NN.js} +4 -4
- package/dist/bundle/{chunk-IACWKZWS.js → chunk-V4PFD25P.js} +1 -1
- package/dist/bundle/{chunk-37F6QYTO.js → chunk-VA4V73SL.js} +6 -6
- package/dist/bundle/{chunk-U6IQ6YQ2.js → chunk-VJPLIXV4.js} +8 -2
- package/dist/bundle/{chunk-PQMJ5BXH.js → chunk-VWRT57QU.js} +4 -4
- package/dist/bundle/{chunk-KFB2X6KE.js → chunk-XELZCDWE.js} +191 -160
- package/dist/bundle/{chunk-KK4HD3SI.js → chunk-XUJEZ5YF.js} +6 -6
- package/dist/bundle/{chunk-434YOD6A.js → chunk-XZ7CQ6NA.js} +4 -4
- package/dist/bundle/{chunk-5QYK3LWS.js → chunk-YM345236.js} +119 -38
- package/dist/bundle/{chunk-J4OYK4WL.js → chunk-YXGHC3NP.js} +12 -12
- package/dist/bundle/{chunk-FZZD4AFY.js → chunk-ZZSZN4CJ.js} +22 -15
- package/dist/bundle/command-contract-NNEXHZW5.js +36 -0
- package/dist/bundle/{command-server-entry-XMSSY5ID.js → command-server-entry-AIBWNC5D.js} +25 -25
- package/dist/bundle/{decode-RYGB4PGT.js → decode-H7KLRD33.js} +5 -5
- package/dist/bundle/{dispatch-PLQOIZG5.js → dispatch-DSVN7MNG.js} +8 -8
- package/dist/bundle/{dist-GY2AQETI.js → dist-YYSP43J3.js} +19 -15
- package/dist/bundle/{echarts-7CM2MCMW.js → echarts-VSD3LS6D.js} +2 -2
- package/dist/bundle/{embed-FTBDPOPT.js → embed-UENZ5HN3.js} +6 -6
- package/dist/bundle/{embedder-B43WGNBD.js → embedder-MJMGOJT7.js} +9 -9
- package/dist/bundle/{failure-XP5QYV2T.js → failure-COTPFUP4.js} +2 -2
- package/dist/bundle/{first-run-XIIUARNM.js → first-run-HYALREFN.js} +12 -12
- package/dist/bundle/first-screen-GPF5RHBX.js +34 -0
- package/dist/bundle/{instructions-R7OHVAWH.js → instructions-WOHRYOLN.js} +1 -1
- package/dist/bundle/mail.js +15 -20
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-3N2JGZ7V.js → node-4BRWJJCE.js} +2 -2
- package/dist/bundle/{node-sqlite-WFJXW3CZ.js → node-sqlite-D3QESEYQ.js} +7 -7
- package/dist/bundle/{oauth-SVJLQTWV.js → oauth-T7TTOBIZ.js} +7 -7
- package/dist/bundle/{open-ZDONVKSX.js → open-6P6627QB.js} +5 -5
- package/dist/bundle/{openai-XVEW6XOU.js → openai-FIMCJGAP.js} +21 -20
- package/dist/bundle/{process-YAHHUFR5.js → process-35IH3WHC.js} +1 -1
- package/dist/bundle/{program-HU2UVMJE.js → program-IEXB72IK.js} +1475 -987
- package/dist/bundle/{prompt-JAJ2CUJI.js → prompt-HFBCPMVL.js} +5 -5
- package/dist/bundle/{recognize-UFBWUNFR.js → recognize-CNL4HJ7Z.js} +4 -4
- package/dist/bundle/{remote-2GFOVLCR.js → remote-AYGZI7HT.js} +9 -9
- package/dist/bundle/{rerank-BGPSMXTL.js → rerank-5C2OZZXD.js} +7 -7
- package/dist/bundle/{serve-CB3XJTH3.js → serve-S6OYBDIB.js} +9 -9
- package/dist/bundle/{server-M7FQY7TX.js → server-VKO6E6PI.js} +42 -42
- package/dist/bundle/server-WXSHVDME.js +68 -0
- package/dist/bundle/{sqlite-runtime-AEV6PGDR.js → sqlite-runtime-DBTGNTVE.js} +6 -6
- package/dist/bundle/{state-YLBEQLBI.js → state-ZQG6AL2Y.js} +6 -6
- package/dist/bundle/{store-EKWKY6GG.js → store-B7BXWILZ.js} +21 -19
- package/dist/bundle/{store-CDUL3HKK.js → store-LY4QKTOO.js} +17 -17
- package/dist/bundle/store-maintenance-command-UR6NQDVV.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +57 -19
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -12
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +7 -2
- package/dist/discovery.js.map +1 -1
- package/dist/identity.d.ts +2 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +34 -0
- package/dist/identity.js.map +1 -1
- package/dist/mail/domain-age.d.ts +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +9 -3
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +4 -1
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/query.d.ts +2 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +16 -3
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/oauth.d.ts +3 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +48 -34
- package/dist/oauth.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -21
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +10 -9
- package/dist/bundle/chunk-K6HR6HCO.js +0 -32
- package/dist/bundle/command-contract-XSW2Q33S.js +0 -36
- package/dist/bundle/first-screen-Z7HC6PQU.js +0 -34
- package/dist/bundle/server-34GEF22R.js +0 -68
- package/dist/bundle/store-maintenance-command-XH2JUM5F.js +0 -58
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UNJUCK5R.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
someUndone,
|
|
22
22
|
validateFormattedText,
|
|
23
23
|
visibleFormattedText
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UE2NKPA4.js";
|
|
25
25
|
import {
|
|
26
26
|
EmptyAnswer,
|
|
27
27
|
MAX_MODEL_IMAGE_BYTES,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
range,
|
|
31
31
|
systemFor,
|
|
32
32
|
validateImages
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NMFPK3MU.js";
|
|
34
34
|
import {
|
|
35
35
|
Command,
|
|
36
36
|
CustomTextModelShape,
|
|
@@ -79,17 +79,17 @@ import {
|
|
|
79
79
|
textModels,
|
|
80
80
|
vectorModelKey,
|
|
81
81
|
writeTextModelsSection
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-XELZCDWE.js";
|
|
83
83
|
import {
|
|
84
84
|
CEILING_KEY,
|
|
85
85
|
keyForWrite,
|
|
86
86
|
levelFor,
|
|
87
87
|
skipFlagFor
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-5WROIMUV.js";
|
|
89
89
|
import {
|
|
90
90
|
isNewer,
|
|
91
91
|
updateCommand
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-7C6FGWDH.js";
|
|
93
93
|
import {
|
|
94
94
|
AGENDA_COLUMNS,
|
|
95
95
|
BUSINESS_FIND_MAX,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
validateAst,
|
|
146
146
|
validateFields,
|
|
147
147
|
withoutField
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-PJ6YMNJG.js";
|
|
149
149
|
import {
|
|
150
150
|
COUNTER_FIELDS,
|
|
151
151
|
MESSAGE_PARSING,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
rankingOptions,
|
|
171
171
|
rankingQuestion,
|
|
172
172
|
searchError
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-A6XETABW.js";
|
|
174
174
|
import {
|
|
175
175
|
LOG_ATTRIBUTES,
|
|
176
176
|
TASK_KINDS,
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
sourceOf2,
|
|
194
194
|
typedCommand,
|
|
195
195
|
withAttempt
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-76EKZSDK.js";
|
|
197
197
|
import {
|
|
198
198
|
EVENT_QUERY,
|
|
199
199
|
INTERNAL_NOTES,
|
|
@@ -254,37 +254,38 @@ import {
|
|
|
254
254
|
validateQuery,
|
|
255
255
|
walkQuery,
|
|
256
256
|
zonedMoment
|
|
257
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-2E2EV4HD.js";
|
|
258
258
|
import {
|
|
259
259
|
isCliFailure,
|
|
260
260
|
sqliteCode
|
|
261
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-VJPLIXV4.js";
|
|
262
262
|
import {
|
|
263
263
|
DEFAULT_STEMMERS,
|
|
264
264
|
createStemmer
|
|
265
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-NBJU6MBU.js";
|
|
266
266
|
import {
|
|
267
267
|
fold,
|
|
268
268
|
normalize
|
|
269
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-A3EBRXOQ.js";
|
|
270
270
|
import {
|
|
271
271
|
localOnly,
|
|
272
272
|
refuseOffComputer,
|
|
273
273
|
remoteKey
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-QJGG6QYV.js";
|
|
275
275
|
import {
|
|
276
276
|
PLAIN_HTTP_REFUSED,
|
|
277
277
|
endpoint,
|
|
278
|
+
endpointFetch,
|
|
278
279
|
modelAddressAllowed,
|
|
279
280
|
onThisComputer
|
|
280
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-3RY4HC4V.js";
|
|
281
282
|
import {
|
|
282
283
|
DEFAULT_TASK_CATEGORIES,
|
|
283
284
|
FALLBACK_CATEGORY,
|
|
284
285
|
readSharedSection,
|
|
285
286
|
sharedConfigPath,
|
|
286
287
|
writeSharedSection
|
|
287
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-XUJEZ5YF.js";
|
|
288
289
|
import {
|
|
289
290
|
Unzip,
|
|
290
291
|
UnzipInflate,
|
|
@@ -295,15 +296,15 @@ import {
|
|
|
295
296
|
placedText,
|
|
296
297
|
runEmbedders,
|
|
297
298
|
textModelsDirectory
|
|
298
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-GIG7F6UW.js";
|
|
299
300
|
import {
|
|
300
301
|
installFiles,
|
|
301
302
|
megabytes
|
|
302
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-XZ7CQ6NA.js";
|
|
303
304
|
import {
|
|
304
305
|
storePath,
|
|
305
306
|
wirecatDirectory
|
|
306
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-3XTKQ5EM.js";
|
|
307
308
|
import {
|
|
308
309
|
Credentials,
|
|
309
310
|
logRecordOf,
|
|
@@ -311,7 +312,7 @@ import {
|
|
|
311
312
|
realSleep,
|
|
312
313
|
resolvePaths,
|
|
313
314
|
writeSecurely
|
|
314
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-7MEVD5PI.js";
|
|
315
316
|
import {
|
|
316
317
|
array,
|
|
317
318
|
boolean,
|
|
@@ -339,7 +340,7 @@ import {
|
|
|
339
340
|
trim,
|
|
340
341
|
union,
|
|
341
342
|
unknown
|
|
342
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-ECZSYLSL.js";
|
|
343
344
|
import {
|
|
344
345
|
importFrom,
|
|
345
346
|
resolveFrom
|
|
@@ -348,7 +349,7 @@ import {
|
|
|
348
349
|
CliError,
|
|
349
350
|
isCliError,
|
|
350
351
|
singleLine
|
|
351
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-7KCBPAQS.js";
|
|
352
353
|
import {
|
|
353
354
|
__commonJS,
|
|
354
355
|
__name,
|
|
@@ -16964,10 +16965,10 @@ var require_lib3 = __commonJS({
|
|
|
16964
16965
|
}
|
|
16965
16966
|
});
|
|
16966
16967
|
|
|
16967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16968
16969
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16969
16970
|
|
|
16970
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16971
16972
|
var RULES_VERSION = 5;
|
|
16972
16973
|
var LOOK_BACK = 50;
|
|
16973
16974
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -17057,7 +17058,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
17057
17058
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
17058
17059
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
17059
17060
|
|
|
17060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
17061
17062
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
17062
17063
|
import { open, stat } from "node:fs/promises";
|
|
17063
17064
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -17271,10 +17272,10 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
17271
17272
|
return { name, source };
|
|
17272
17273
|
}, "readStickerFile");
|
|
17273
17274
|
|
|
17274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17275
17276
|
import { randomUUID } from "node:crypto";
|
|
17276
17277
|
|
|
17277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/flood.js
|
|
17278
17279
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
17279
17280
|
import { dirname as dirname2, join } from "node:path";
|
|
17280
17281
|
var MOST_DEADLINES = 50;
|
|
@@ -17358,11 +17359,11 @@ var FloodMemory = class {
|
|
|
17358
17359
|
}
|
|
17359
17360
|
};
|
|
17360
17361
|
|
|
17361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17362
17363
|
import { appendFileSync, mkdirSync as mkdirSync3, readFileSync as readFileSync2 } from "node:fs";
|
|
17363
17364
|
import { dirname as dirname4, join as join2 } from "node:path";
|
|
17364
17365
|
|
|
17365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17366
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/file-lock.js
|
|
17366
17367
|
import { closeSync, mkdirSync as mkdirSync2, openSync, statSync, unlinkSync } from "node:fs";
|
|
17367
17368
|
import { dirname as dirname3 } from "node:path";
|
|
17368
17369
|
var LOCK_WAIT_MS = 5e3;
|
|
@@ -17429,7 +17430,7 @@ var lockTime = /* @__PURE__ */ __name((lock) => {
|
|
|
17429
17430
|
}
|
|
17430
17431
|
}, "lockTime");
|
|
17431
17432
|
|
|
17432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/journal.js
|
|
17433
17434
|
var sendsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "sends", `${profile}.jsonl`), "sendsPathFor");
|
|
17434
17435
|
var SendJournal = class {
|
|
17435
17436
|
static {
|
|
@@ -17506,7 +17507,7 @@ var withSendId = /* @__PURE__ */ __name((entry) => {
|
|
|
17506
17507
|
return cid === void 0 || rest.sendId !== void 0 ? rest : { ...rest, sendId: String(cid) };
|
|
17507
17508
|
}, "withSendId");
|
|
17508
17509
|
|
|
17509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/recipients.js
|
|
17510
17511
|
import { existsSync, readFileSync as readFileSync3, rmSync } from "node:fs";
|
|
17511
17512
|
import { join as join3 } from "node:path";
|
|
17512
17513
|
var recipientsPathFor = /* @__PURE__ */ __name((app, profile, env = process.env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "profiles", `${profile}.recipients.json`), "recipientsPathFor");
|
|
@@ -17618,9 +17619,9 @@ var RecipientList = class {
|
|
|
17618
17619
|
}
|
|
17619
17620
|
};
|
|
17620
17621
|
|
|
17621
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17622
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/guard.js
|
|
17622
17623
|
var HOUR_MS = 60 * 60 * 1e3;
|
|
17623
|
-
var
|
|
17624
|
+
var READS = /* @__PURE__ */ new Set([
|
|
17624
17625
|
"attachments.extract",
|
|
17625
17626
|
"conversations.embeddings",
|
|
17626
17627
|
"conversations.links",
|
|
@@ -17641,12 +17642,14 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17641
17642
|
const currentPermissions = /* @__PURE__ */ __name(() => typeof permissions === "function" ? permissions() : permissions, "currentPermissions");
|
|
17642
17643
|
let reservation;
|
|
17643
17644
|
const answered = /* @__PURE__ */ new WeakSet();
|
|
17644
|
-
const refuseReadOnly = /* @__PURE__ */ __name(() => {
|
|
17645
|
+
const refuseReadOnly = /* @__PURE__ */ __name(({ key }) => {
|
|
17646
|
+
if (key !== void 0 && READS.has(key))
|
|
17647
|
+
return;
|
|
17645
17648
|
if (readOnlyLock)
|
|
17646
17649
|
throw readOnlyRefusal(readOnlyLock, MESSENGER_CHANGE_REFUSAL);
|
|
17647
17650
|
}, "refuseReadOnly");
|
|
17648
17651
|
const refuseHeld = /* @__PURE__ */ __name(({ key }) => {
|
|
17649
|
-
if (key !== void 0 &&
|
|
17652
|
+
if (key !== void 0 && READS.has(key))
|
|
17650
17653
|
return;
|
|
17651
17654
|
const block = flood?.sendBlock();
|
|
17652
17655
|
if (!block)
|
|
@@ -17655,7 +17658,7 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17655
17658
|
}, "refuseHeld");
|
|
17656
17659
|
const permitted = /* @__PURE__ */ __name((request) => {
|
|
17657
17660
|
const { chatId, kind = "message", action, personIds } = request;
|
|
17658
|
-
refuseReadOnly();
|
|
17661
|
+
refuseReadOnly(request);
|
|
17659
17662
|
const levels = currentPermissions();
|
|
17660
17663
|
if (levels !== void 0) {
|
|
17661
17664
|
const key = request.key ?? keyForWrite(kind, action);
|
|
@@ -17749,7 +17752,7 @@ var sendGuard = /* @__PURE__ */ __name(({ profile, recipients, command = recipie
|
|
|
17749
17752
|
}, "counting");
|
|
17750
17753
|
return {
|
|
17751
17754
|
ask: /* @__PURE__ */ __name(async (request) => {
|
|
17752
|
-
refuseReadOnly();
|
|
17755
|
+
refuseReadOnly(request);
|
|
17753
17756
|
const levels = currentPermissions();
|
|
17754
17757
|
if (levels === void 0)
|
|
17755
17758
|
return;
|
|
@@ -17811,7 +17814,7 @@ var guardFor = /* @__PURE__ */ __name((app, settings, warn, env = process.env, a
|
|
|
17811
17814
|
}), "guardFor");
|
|
17812
17815
|
var journalFailure = /* @__PURE__ */ __name((error) => error?.code ?? (error instanceof Error ? error.name : "error"), "journalFailure");
|
|
17813
17816
|
|
|
17814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
17815
17818
|
var COMMAND_NEEDS = {
|
|
17816
17819
|
"account update": ["updateProfile", "change the profile"],
|
|
17817
17820
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17861,7 +17864,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17861
17864
|
return group;
|
|
17862
17865
|
}, "hideNever");
|
|
17863
17866
|
|
|
17864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17867
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17865
17868
|
var AUDIT_PAGE = 200;
|
|
17866
17869
|
var AUDIT_BUDGET = 10;
|
|
17867
17870
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17941,7 +17944,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17941
17944
|
return found;
|
|
17942
17945
|
}, "burstJoins");
|
|
17943
17946
|
|
|
17944
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17947
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17945
17948
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17946
17949
|
command.allowUnknownOption();
|
|
17947
17950
|
const parse2 = command.parseOptions.bind(command);
|
|
@@ -17961,7 +17964,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17961
17964
|
return command;
|
|
17962
17965
|
}, "queryWordsAfterOptions");
|
|
17963
17966
|
|
|
17964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17967
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17965
17968
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17966
17969
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17967
17970
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -18003,7 +18006,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
18003
18006
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
18004
18007
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
18005
18008
|
|
|
18006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
18007
18010
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
18008
18011
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
18009
18012
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -18026,7 +18029,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
18026
18029
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
18027
18030
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
18028
18031
|
|
|
18029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
18030
18033
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
18031
18034
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
18032
18035
|
const zone = timezoneOf();
|
|
@@ -18112,7 +18115,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
18112
18115
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
18113
18116
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
18114
18117
|
|
|
18115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
18116
18119
|
var integer4 = /* @__PURE__ */ __name((text2) => {
|
|
18117
18120
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
18118
18121
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -18261,7 +18264,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
18261
18264
|
}, "addMeetingCommandsDefinition");
|
|
18262
18265
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
18263
18266
|
|
|
18264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
18265
18268
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
18266
18269
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
18267
18270
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -18395,7 +18398,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
18395
18398
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
18396
18399
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
18397
18400
|
|
|
18398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
18399
18402
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
18400
18403
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
18401
18404
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -18404,7 +18407,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
18404
18407
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
18405
18408
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
18406
18409
|
|
|
18407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
18408
18411
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
18409
18412
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
18410
18413
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -18666,7 +18669,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
18666
18669
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
18667
18670
|
}), "sessionAnswer");
|
|
18668
18671
|
|
|
18669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
18670
18673
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
18671
18674
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
18672
18675
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -18728,7 +18731,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
18728
18731
|
}), "storedDeps");
|
|
18729
18732
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
18730
18733
|
|
|
18731
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
18732
18735
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
18733
18736
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
18734
18737
|
if (key in own)
|
|
@@ -18745,12 +18748,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
18745
18748
|
return found.bind(adapter);
|
|
18746
18749
|
}, "capability");
|
|
18747
18750
|
|
|
18748
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
18749
18752
|
import { randomBytes } from "node:crypto";
|
|
18750
18753
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
18751
18754
|
var newOperationId = newSendId;
|
|
18752
18755
|
|
|
18753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
18754
18757
|
var LINKS = /https?:\/\/\S+/g;
|
|
18755
18758
|
var unanswered = /* @__PURE__ */ __name((messages, { answerers: answerers2, before: before2 }) => questions(messages, { answerers: answerers2 }).filter(({ question, answer }) => answer === void 0 && Date.parse(question.timestamp) < before2).map(({ question }) => question), "unanswered");
|
|
18756
18759
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -18780,7 +18783,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
18780
18783
|
});
|
|
18781
18784
|
}, "questions");
|
|
18782
18785
|
|
|
18783
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18786
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
18784
18787
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
18785
18788
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
18786
18789
|
const name = typed.trim().toLowerCase();
|
|
@@ -18837,7 +18840,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
18837
18840
|
return best.name;
|
|
18838
18841
|
}, "categorize");
|
|
18839
18842
|
|
|
18840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
18841
18844
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
18842
18845
|
var RULES_IN = {
|
|
18843
18846
|
dialog: "all",
|
|
@@ -19043,7 +19046,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
19043
19046
|
return passes;
|
|
19044
19047
|
}, "applyTaskRulesToChats");
|
|
19045
19048
|
|
|
19046
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19049
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
19047
19050
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
19048
19051
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
19049
19052
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -19083,7 +19086,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
19083
19086
|
};
|
|
19084
19087
|
}, "dateWindow");
|
|
19085
19088
|
|
|
19086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
19087
19090
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
19088
19091
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
19089
19092
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -19106,10 +19109,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
19106
19109
|
}
|
|
19107
19110
|
}, "patiently");
|
|
19108
19111
|
|
|
19109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19110
19113
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
19111
19114
|
|
|
19112
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
19113
19116
|
var REQUEST_MS = 400;
|
|
19114
19117
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
19115
19118
|
const lowest = ranges[0];
|
|
@@ -19132,13 +19135,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
19132
19135
|
};
|
|
19133
19136
|
}, "estimateBackfill");
|
|
19134
19137
|
|
|
19135
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
19136
19139
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
19137
19140
|
...error,
|
|
19138
19141
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
19139
19142
|
}), "withRecovery");
|
|
19140
19143
|
|
|
19141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19144
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
19142
19145
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
19143
19146
|
if (isCliFailure(error))
|
|
19144
19147
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -19221,7 +19224,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
19221
19224
|
};
|
|
19222
19225
|
}, "mergeBatches");
|
|
19223
19226
|
|
|
19224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/groups.js
|
|
19225
19228
|
var ALL = "all";
|
|
19226
19229
|
var OWNER_NOTES = { provider: "notes", account: INTERNAL_NOTES };
|
|
19227
19230
|
var NOT_GROUP_NAMES = /* @__PURE__ */ new Set([ALL, "bots"]);
|
|
@@ -19293,7 +19296,7 @@ var groupEntries = /* @__PURE__ */ __name((saved) => ({
|
|
|
19293
19296
|
[ALL]: [ALL]
|
|
19294
19297
|
}), "groupEntries");
|
|
19295
19298
|
|
|
19296
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
19297
19300
|
var NO_MAIL = "no_mail";
|
|
19298
19301
|
var MAIL = "email";
|
|
19299
19302
|
var groupLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -19367,7 +19370,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
19367
19370
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
19368
19371
|
}, "accountsOfKind");
|
|
19369
19372
|
|
|
19370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
19371
19374
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
19372
19375
|
if (deps.reads !== "store")
|
|
19373
19376
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -19566,7 +19569,7 @@ var chatsMatchingIn = /* @__PURE__ */ __name(async (store, accounts, pattern) =>
|
|
|
19566
19569
|
}, "chatsMatchingIn");
|
|
19567
19570
|
var isText = /* @__PURE__ */ __name((value) => typeof value === "string" && value !== "", "isText");
|
|
19568
19571
|
|
|
19569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
19570
19573
|
var CONTEXT_MESSAGES = 3;
|
|
19571
19574
|
var CONTEXT_MINUTES = 10;
|
|
19572
19575
|
var MAX_CHARS = 1200;
|
|
@@ -19590,12 +19593,12 @@ var context = {
|
|
|
19590
19593
|
}, "describe")
|
|
19591
19594
|
};
|
|
19592
19595
|
|
|
19593
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19596
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
19594
19597
|
var BUILT_INS = [context];
|
|
19595
19598
|
var providers = [...BUILT_INS];
|
|
19596
19599
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
19597
19600
|
|
|
19598
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
19599
19602
|
var READ_PAGE = 5e3;
|
|
19600
19603
|
var CHAIN = 50;
|
|
19601
19604
|
var CONVERSATION_QUERY = {
|
|
@@ -19747,7 +19750,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
19747
19750
|
return size2;
|
|
19748
19751
|
}, "sized");
|
|
19749
19752
|
|
|
19750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
19751
19754
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
19752
19755
|
var MESSAGE_PAGE = 5e3;
|
|
19753
19756
|
var PER_SESSION = 8;
|
|
@@ -19766,7 +19769,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19766
19769
|
price: remote.price,
|
|
19767
19770
|
installed: true,
|
|
19768
19771
|
perBatch: PER_REQUEST * concurrency,
|
|
19769
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
19772
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-AYGZI7HT.js")).openRemote(remote, apiKey, {
|
|
19770
19773
|
concurrency,
|
|
19771
19774
|
env: deps.env ?? process.env
|
|
19772
19775
|
}), "open")
|
|
@@ -19786,7 +19789,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = chosenTextModel(dep
|
|
|
19786
19789
|
if (!isTextModelInstalled(model, directory2))
|
|
19787
19790
|
throw notDownloaded(model.id);
|
|
19788
19791
|
if (apart) {
|
|
19789
|
-
const { openProcess } = await import("./process-
|
|
19792
|
+
const { openProcess } = await import("./process-35IH3WHC.js");
|
|
19790
19793
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
19791
19794
|
}
|
|
19792
19795
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -20075,7 +20078,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
20075
20078
|
return { ...one, state };
|
|
20076
20079
|
}, "shaped");
|
|
20077
20080
|
|
|
20078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
20079
20082
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
20080
20083
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options2) => {
|
|
20081
20084
|
for (const [key, value, maximum] of [
|
|
@@ -20128,7 +20131,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options2, signal,
|
|
|
20128
20131
|
}
|
|
20129
20132
|
}, "catchUpSearch");
|
|
20130
20133
|
|
|
20131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
20132
20135
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
20133
20136
|
if (deps.reads === "store") {
|
|
20134
20137
|
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`);
|
|
@@ -20509,7 +20512,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
20509
20512
|
return message?.timestamp ?? fallback;
|
|
20510
20513
|
}, "timeOfKey");
|
|
20511
20514
|
|
|
20512
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
20513
20516
|
var DAY_MS = 864e5;
|
|
20514
20517
|
var NEW_DAYS = 30;
|
|
20515
20518
|
var SAME_TEXT_MIN = 20;
|
|
@@ -20586,7 +20589,7 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
20586
20589
|
};
|
|
20587
20590
|
}, "scorePerson");
|
|
20588
20591
|
|
|
20589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
20590
20593
|
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
20591
20594
|
const controller = new AbortController();
|
|
20592
20595
|
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
@@ -20602,7 +20605,7 @@ var withTimeLimit = /* @__PURE__ */ __name(async (ms, run2) => {
|
|
|
20602
20605
|
}
|
|
20603
20606
|
}, "withTimeLimit");
|
|
20604
20607
|
|
|
20605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
20606
20609
|
var REGISTRIES = {
|
|
20607
20610
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
20608
20611
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -20689,7 +20692,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
20689
20692
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
20690
20693
|
})), "notCovered");
|
|
20691
20694
|
|
|
20692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
20693
20696
|
var ACTIVITY_MESSAGES = 1e3;
|
|
20694
20697
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
20695
20698
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -20777,7 +20780,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
20777
20780
|
};
|
|
20778
20781
|
}, "botCheckService");
|
|
20779
20782
|
|
|
20780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
20781
20784
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
20782
20785
|
if (value === void 0)
|
|
20783
20786
|
return void 0;
|
|
@@ -20787,7 +20790,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
20787
20790
|
return id2;
|
|
20788
20791
|
}, "threadIdOf");
|
|
20789
20792
|
|
|
20790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
20791
20794
|
var TOP_POSTS = 5;
|
|
20792
20795
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
20793
20796
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20904,7 +20907,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20904
20907
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20905
20908
|
}, "median");
|
|
20906
20909
|
|
|
20907
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20908
20911
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20909
20912
|
const events = [];
|
|
20910
20913
|
for (const stay of stays) {
|
|
@@ -20936,7 +20939,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20936
20939
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20937
20940
|
}, "memberEvents");
|
|
20938
20941
|
|
|
20939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20940
20943
|
var EVENTS_DAYS = 7;
|
|
20941
20944
|
var TRACKED_DAYS = 30;
|
|
20942
20945
|
var STATS_PAGE = 1e3;
|
|
@@ -21231,7 +21234,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
21231
21234
|
return members.length === 0 ? null : members;
|
|
21232
21235
|
}, "storedMembers");
|
|
21233
21236
|
|
|
21234
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
21235
21238
|
var INBOX_CHATS = 20;
|
|
21236
21239
|
var REVIEW_DAYS = 3;
|
|
21237
21240
|
var UNANSWERED_HOURS = 24;
|
|
@@ -21439,7 +21442,59 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
21439
21442
|
};
|
|
21440
21443
|
}, "inboxService");
|
|
21441
21444
|
|
|
21442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/person-meetings.js
|
|
21446
|
+
var SCAN = 1e3;
|
|
21447
|
+
var personMeetings = /* @__PURE__ */ __name(async (store, people, accounts, { limit = 10, since, until } = {}) => {
|
|
21448
|
+
const byId2 = new Map(accounts.map((one) => [one.id, one]));
|
|
21449
|
+
let cut = false;
|
|
21450
|
+
const found = /* @__PURE__ */ new Map();
|
|
21451
|
+
for (const uid of people) {
|
|
21452
|
+
const rows = store.involvements.forPerson(Number(uid), {
|
|
21453
|
+
limit: SCAN,
|
|
21454
|
+
subjectTypes: ["meeting"],
|
|
21455
|
+
...since === void 0 ? {} : { since },
|
|
21456
|
+
...until === void 0 ? {} : { until }
|
|
21457
|
+
});
|
|
21458
|
+
cut ||= rows.length === SCAN;
|
|
21459
|
+
for (const row of rows) {
|
|
21460
|
+
if (row.subjectType !== "meeting" || row.accountId === null || !byId2.has(row.accountId))
|
|
21461
|
+
continue;
|
|
21462
|
+
const key = `${row.accountId}/${row.subjectId}`;
|
|
21463
|
+
const held = found.get(key) ?? {
|
|
21464
|
+
accountId: row.accountId,
|
|
21465
|
+
meetingId: row.subjectId,
|
|
21466
|
+
at: row.occurredAt,
|
|
21467
|
+
people: []
|
|
21468
|
+
};
|
|
21469
|
+
if (!held.people.includes(`person:${uid}`))
|
|
21470
|
+
held.people.push(`person:${uid}`);
|
|
21471
|
+
found.set(key, held);
|
|
21472
|
+
}
|
|
21473
|
+
}
|
|
21474
|
+
const newest = [...found.values()].sort((a, b) => b.at - a.at || b.meetingId - a.meetingId);
|
|
21475
|
+
const items = [];
|
|
21476
|
+
for (const { accountId, meetingId, people: who } of newest.slice(0, limit)) {
|
|
21477
|
+
const meeting = await store.meetings.meetingMetadata({ accountId, meetingId }).catch(() => void 0);
|
|
21478
|
+
if (meeting === void 0 || meeting.deletedAt !== null)
|
|
21479
|
+
continue;
|
|
21480
|
+
const transcripts = await store.meetings.transcripts({ accountId, meetingId, limit: 1 });
|
|
21481
|
+
const account = byId2.get(accountId);
|
|
21482
|
+
items.push({
|
|
21483
|
+
ref: formatMeetingReference({ type: "meeting", accountId, meetingId }),
|
|
21484
|
+
meetingId,
|
|
21485
|
+
account: { provider: account.provider, account: account.account },
|
|
21486
|
+
title: meeting.title,
|
|
21487
|
+
startedAt: meeting.startedAt === null ? null : new Date(meeting.startedAt).toISOString(),
|
|
21488
|
+
durationMs: meeting.durationMs,
|
|
21489
|
+
hasTranscript: transcripts.items.length > 0,
|
|
21490
|
+
event: meeting.eventId === null ? null : `event:${meeting.eventId}`,
|
|
21491
|
+
people: who
|
|
21492
|
+
});
|
|
21493
|
+
}
|
|
21494
|
+
return { items, total: newest.length, hasMore: cut || newest.length > limit };
|
|
21495
|
+
}, "personMeetings");
|
|
21496
|
+
|
|
21497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
21443
21498
|
var CONTEXT_MESSAGES2 = 10;
|
|
21444
21499
|
var CONTEXT_BYTES = 64 * 1024;
|
|
21445
21500
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -21620,6 +21675,11 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, readabl
|
|
|
21620
21675
|
const upcomingIds = new Set(upcoming.items.map(({ id: id2 }) => id2));
|
|
21621
21676
|
const past = accountIds.length ? await eventsOnce(store, { personId, accountIds, to: now, newest: true, ...since === void 0 ? {} : { from: since } }, messages) : nothing;
|
|
21622
21677
|
cut ||= upcoming.cut || past.cut;
|
|
21678
|
+
const recorded = await personMeetings(store, [record2.uid], readable, {
|
|
21679
|
+
limit: messages,
|
|
21680
|
+
...since === void 0 ? {} : { since }
|
|
21681
|
+
});
|
|
21682
|
+
cut ||= recorded.hasMore;
|
|
21623
21683
|
direct.sort(newestFirst);
|
|
21624
21684
|
const each = [...direct, ...beyond].sort(newestFirst);
|
|
21625
21685
|
theirs.sort(newestFirst);
|
|
@@ -21636,8 +21696,9 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, readabl
|
|
|
21636
21696
|
const kept2 = withinBytes(lists, bytes2);
|
|
21637
21697
|
const read = [
|
|
21638
21698
|
...reads.map(({ key, scope }) => ({ ...key, scope })),
|
|
21639
|
-
...calendars.map(({ provider, account, scope }) => ({ provider, account, scope }))
|
|
21640
|
-
|
|
21699
|
+
...calendars.map(({ provider, account, scope }) => ({ provider, account, scope })),
|
|
21700
|
+
...recorded.items.flatMap(({ account }) => readable.filter((one) => nameOf(one) === nameOf(account)))
|
|
21701
|
+
].map(({ provider, account, scope }) => ({ provider, account, scope }));
|
|
21641
21702
|
const accounts = [...new Map(read.map((one) => [nameOf(one), one])).values()].sort((a, b) => nameOf(a).localeCompare(nameOf(b)));
|
|
21642
21703
|
return {
|
|
21643
21704
|
accounts,
|
|
@@ -21653,6 +21714,7 @@ var recordContext = /* @__PURE__ */ __name(async (store, record2, reads, readabl
|
|
|
21653
21714
|
upcoming: upcoming.items.map(contextEvent),
|
|
21654
21715
|
recent: past.items.filter(({ id: id2 }) => !upcomingIds.has(id2)).map(contextEvent)
|
|
21655
21716
|
},
|
|
21717
|
+
meetings: recorded.items,
|
|
21656
21718
|
limits: { messages, bytes: bytes2 },
|
|
21657
21719
|
hasMore: cut || kept2.cut,
|
|
21658
21720
|
complete: notRead.length === 0,
|
|
@@ -21738,10 +21800,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
21738
21800
|
};
|
|
21739
21801
|
}, "personMessages");
|
|
21740
21802
|
|
|
21741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21742
21804
|
import { createHash } from "node:crypto";
|
|
21743
21805
|
|
|
21744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
21745
21807
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
21746
21808
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options2 = {}) => {
|
|
21747
21809
|
const parsed = parseMeetingReference(reference);
|
|
@@ -21759,7 +21821,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
21759
21821
|
return { parsed, meeting };
|
|
21760
21822
|
}, "authorizedMeetingMetadata");
|
|
21761
21823
|
|
|
21762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
21763
21825
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
21764
21826
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
21765
21827
|
if (signal?.aborted)
|
|
@@ -21958,7 +22020,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21958
22020
|
return { ...packet, fingerprint: hash(packet) };
|
|
21959
22021
|
}, "readMeetingEvidence");
|
|
21960
22022
|
|
|
21961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22023
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21962
22024
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options2) => {
|
|
21963
22025
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options2;
|
|
21964
22026
|
const requestedAccounts = options2.accountIds;
|
|
@@ -22057,7 +22119,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
22057
22119
|
};
|
|
22058
22120
|
}, "personMeetingContext");
|
|
22059
22121
|
|
|
22060
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
22061
22123
|
var PREPARE_BYTES = 96 * 1024;
|
|
22062
22124
|
var MEETINGS = 5;
|
|
22063
22125
|
var CUES = 3;
|
|
@@ -22180,7 +22242,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
22180
22242
|
}
|
|
22181
22243
|
}, "meetingsOf");
|
|
22182
22244
|
|
|
22183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
22184
22246
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
22185
22247
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
22186
22248
|
const held = await storeIfOpen(deps);
|
|
@@ -22250,7 +22312,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
22250
22312
|
complete: false
|
|
22251
22313
|
})), "quiet");
|
|
22252
22314
|
|
|
22253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
22254
22316
|
var TIMELINE_ITEMS = 50;
|
|
22255
22317
|
var TIMELINE_MAX = 500;
|
|
22256
22318
|
var SCOPES = ["personal", "work"];
|
|
@@ -22312,7 +22374,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
22312
22374
|
};
|
|
22313
22375
|
}, "personTimeline");
|
|
22314
22376
|
|
|
22315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22316
22378
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22317
22379
|
const ids = [...new Set(chatIds)];
|
|
22318
22380
|
if (ids.length === 0)
|
|
@@ -22338,7 +22400,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22338
22400
|
}));
|
|
22339
22401
|
}, "chatCoverage");
|
|
22340
22402
|
|
|
22341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22342
22404
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22343
22405
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22344
22406
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22402,7 +22464,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22402
22464
|
}
|
|
22403
22465
|
}, "validateContextEvidencePage");
|
|
22404
22466
|
|
|
22405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22406
22468
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22407
22469
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22408
22470
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22455,7 +22517,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22455
22517
|
};
|
|
22456
22518
|
}, "contextReadBudget");
|
|
22457
22519
|
|
|
22458
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22459
22521
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22460
22522
|
if (!port || typeof port.read !== "function")
|
|
22461
22523
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22499,7 +22561,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22499
22561
|
};
|
|
22500
22562
|
}, "createContextEvidenceReader");
|
|
22501
22563
|
|
|
22502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22503
22565
|
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");
|
|
22504
22566
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {}) => {
|
|
22505
22567
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22515,7 +22577,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options2 = {})
|
|
|
22515
22577
|
}, "excerpt");
|
|
22516
22578
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22517
22579
|
|
|
22518
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22519
22581
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22520
22582
|
async around(ref, window3) {
|
|
22521
22583
|
const at = parseLocator(ref);
|
|
@@ -22610,7 +22672,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22610
22672
|
};
|
|
22611
22673
|
}, "storedNeighbours");
|
|
22612
22674
|
|
|
22613
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22614
22676
|
import { createHash as createHash2 } from "node:crypto";
|
|
22615
22677
|
var DAY = 864e5;
|
|
22616
22678
|
var MAX_TIME = 864e13;
|
|
@@ -22926,7 +22988,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
22926
22988
|
return value;
|
|
22927
22989
|
}, "decodeCheckpoint");
|
|
22928
22990
|
|
|
22929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
22930
22992
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
22931
22993
|
var PAGE2 = 20;
|
|
22932
22994
|
var PEOPLE = 20;
|
|
@@ -23330,7 +23392,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23330
23392
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23331
23393
|
}, "peopleOf");
|
|
23332
23394
|
|
|
23333
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23334
23396
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23335
23397
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23336
23398
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23374,7 +23436,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23374
23436
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23375
23437
|
}, "matchVocabularyTerms");
|
|
23376
23438
|
|
|
23377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23378
23440
|
var KINDS = ["project", "tag", "topic"];
|
|
23379
23441
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options2 = {}) => {
|
|
23380
23442
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23429,7 +23491,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23429
23491
|
};
|
|
23430
23492
|
}, "findEvidenceMentions");
|
|
23431
23493
|
|
|
23432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
23433
23495
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
23434
23496
|
var DEFAULT_PURPOSES = ["work"];
|
|
23435
23497
|
var LINK_PURPOSE = "work";
|
|
@@ -23459,7 +23521,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
23459
23521
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
23460
23522
|
], "purposeList");
|
|
23461
23523
|
|
|
23462
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23524
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23463
23525
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23464
23526
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23465
23527
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23770,7 +23832,7 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23770
23832
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23771
23833
|
}, "purposeHintOf");
|
|
23772
23834
|
|
|
23773
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
23774
23836
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
23775
23837
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
23776
23838
|
const held = await storeIfOpen(deps);
|
|
@@ -24035,7 +24097,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
24035
24097
|
return rest;
|
|
24036
24098
|
}, "withoutPhone");
|
|
24037
24099
|
|
|
24038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
24039
24101
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
24040
24102
|
var PERIOD_FIELD = "created";
|
|
24041
24103
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -24166,7 +24228,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
24166
24228
|
}));
|
|
24167
24229
|
}, "meetingNames");
|
|
24168
24230
|
|
|
24169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
24170
24232
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
24171
24233
|
const tags = /* @__PURE__ */ new Map();
|
|
24172
24234
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -24175,7 +24237,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
24175
24237
|
return tags;
|
|
24176
24238
|
}, "taskTagFilters");
|
|
24177
24239
|
|
|
24178
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24240
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
24179
24241
|
var TASK_QUERY = {
|
|
24180
24242
|
entity: "task",
|
|
24181
24243
|
backend: "sql",
|
|
@@ -24675,7 +24737,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
24675
24737
|
};
|
|
24676
24738
|
}, "taskView");
|
|
24677
24739
|
|
|
24678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
24679
24741
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
24680
24742
|
if (newest === null)
|
|
24681
24743
|
return null;
|
|
@@ -24684,7 +24746,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
24684
24746
|
return newest.addressed ? "owed" : null;
|
|
24685
24747
|
}, "mailTurn");
|
|
24686
24748
|
|
|
24687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
24688
24750
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
24689
24751
|
if (error instanceof CliError && error.code === "not_found")
|
|
24690
24752
|
return void 0;
|
|
@@ -24742,7 +24804,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
24742
24804
|
};
|
|
24743
24805
|
}, "mailActivity");
|
|
24744
24806
|
|
|
24745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24807
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
24746
24808
|
var DAY2 = 864e5;
|
|
24747
24809
|
var AGENDA_DEFAULTS = { unanswered: DAY2, waiting: 7 * DAY2 };
|
|
24748
24810
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -24996,18 +25058,18 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
24996
25058
|
};
|
|
24997
25059
|
}, "agendaItem");
|
|
24998
25060
|
|
|
24999
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25000
25062
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
25001
25063
|
|
|
25002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25003
25065
|
import { lstat } from "node:fs/promises";
|
|
25004
25066
|
|
|
25005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25006
25068
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypto";
|
|
25007
25069
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
25008
25070
|
import { join as join5 } from "node:path";
|
|
25009
25071
|
|
|
25010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25072
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
25011
25073
|
import { createHash as createHash3 } from "node:crypto";
|
|
25012
25074
|
var metadataLimit = 16384;
|
|
25013
25075
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -25067,7 +25129,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
25067
25129
|
}
|
|
25068
25130
|
}, "readPartialMetadata");
|
|
25069
25131
|
|
|
25070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
25071
25133
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
25072
25134
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
25073
25135
|
import { join as join4 } from "node:path";
|
|
@@ -25159,7 +25221,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
25159
25221
|
};
|
|
25160
25222
|
}, "partialWriter");
|
|
25161
25223
|
|
|
25162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
25163
25225
|
var NativeRecordingPartialStore = class {
|
|
25164
25226
|
static {
|
|
25165
25227
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -25266,12 +25328,12 @@ var NativeRecordingPartialStore = class {
|
|
|
25266
25328
|
}
|
|
25267
25329
|
};
|
|
25268
25330
|
|
|
25269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25270
25332
|
import { createHash as createHash5 } from "node:crypto";
|
|
25271
25333
|
import { link as link2 } from "node:fs/promises";
|
|
25272
25334
|
import { basename as basename2, dirname as dirname5, join as join7, resolve as resolve2 } from "node:path";
|
|
25273
25335
|
|
|
25274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
25275
25337
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
25276
25338
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
25277
25339
|
signal?.throwIfAborted();
|
|
@@ -25306,7 +25368,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
25306
25368
|
signal?.throwIfAborted();
|
|
25307
25369
|
}, "commitPublication");
|
|
25308
25370
|
|
|
25309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
25310
25372
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
25311
25373
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
25312
25374
|
import { join as join6 } from "node:path";
|
|
@@ -25379,7 +25441,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
25379
25441
|
}
|
|
25380
25442
|
}, "writePublicationJournal");
|
|
25381
25443
|
|
|
25382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
25383
25445
|
var NativeRecordingPublication = class {
|
|
25384
25446
|
static {
|
|
25385
25447
|
__name(this, "NativeRecordingPublication");
|
|
@@ -25452,7 +25514,7 @@ var NativeRecordingPublication = class {
|
|
|
25452
25514
|
}
|
|
25453
25515
|
};
|
|
25454
25516
|
|
|
25455
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25517
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
25456
25518
|
import { createHash as createHash6 } from "node:crypto";
|
|
25457
25519
|
import { readdir } from "node:fs/promises";
|
|
25458
25520
|
import { isAbsolute as isAbsolute2, join as join8, resolve as resolve3 } from "node:path";
|
|
@@ -25539,7 +25601,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
25539
25601
|
beforePublish
|
|
25540
25602
|
}), "commitMediaEntry");
|
|
25541
25603
|
|
|
25542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
25543
25605
|
var validator = '"media-completed-v1"';
|
|
25544
25606
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
25545
25607
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -25640,7 +25702,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
25640
25702
|
return entry;
|
|
25641
25703
|
}, "archiveMediaFile");
|
|
25642
25704
|
|
|
25643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
25644
25706
|
import { mkdir, realpath } from "node:fs/promises";
|
|
25645
25707
|
import { join as join9, resolve as resolve4 } from "node:path";
|
|
25646
25708
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -25707,7 +25769,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
25707
25769
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
25708
25770
|
}, "withMediaArchiveLocks");
|
|
25709
25771
|
|
|
25710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25772
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
25711
25773
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
25712
25774
|
if (value === void 0)
|
|
25713
25775
|
return void 0;
|
|
@@ -25860,7 +25922,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options2) => {
|
|
|
25860
25922
|
}, { create: true });
|
|
25861
25923
|
}, "archiveMedia");
|
|
25862
25924
|
|
|
25863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
25864
25926
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
25865
25927
|
import { basename as basename3, dirname as dirname6, join as join10, resolve as resolve5 } from "node:path";
|
|
25866
25928
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -26013,7 +26075,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options2) => {
|
|
|
26013
26075
|
}, { additional: [target2], createAdditional: !options2.dryRun });
|
|
26014
26076
|
}, "moveMediaArchive");
|
|
26015
26077
|
|
|
26016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
26017
26079
|
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
26018
26080
|
import { join as join11 } from "node:path";
|
|
26019
26081
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
@@ -26038,7 +26100,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26038
26100
|
`);
|
|
26039
26101
|
await nativeRuntime({ env, progress });
|
|
26040
26102
|
progress(`${model.id}: loading it once to check it works`);
|
|
26041
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
26103
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-UENZ5HN3.js");
|
|
26042
26104
|
const embedder = await openEmbedder2(model, directory2);
|
|
26043
26105
|
try {
|
|
26044
26106
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -26059,7 +26121,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
26059
26121
|
}
|
|
26060
26122
|
await nativeRuntime({ env, progress });
|
|
26061
26123
|
progress(`${model.id}: loading it once to check it works`);
|
|
26062
|
-
const { openReranker } = await import("./rerank-
|
|
26124
|
+
const { openReranker } = await import("./rerank-5C2OZZXD.js");
|
|
26063
26125
|
const reranker = await openReranker(model, directory2);
|
|
26064
26126
|
try {
|
|
26065
26127
|
await reranker.score("check", ["check"]);
|
|
@@ -26077,7 +26139,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26077
26139
|
await installFiles(placedImage(model, directory2), { progress, ...bytes2 ? { bytes: bytes2 } : {} });
|
|
26078
26140
|
}
|
|
26079
26141
|
progress(`${model.id}: loading it once to check it works`);
|
|
26080
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
26142
|
+
const { openPictureEmbedder } = await import("./embedder-MJMGOJT7.js");
|
|
26081
26143
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
26082
26144
|
try {
|
|
26083
26145
|
const vector = await embedder.embedQuery("check");
|
|
@@ -26089,7 +26151,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
26089
26151
|
return { model, directory: directory2 };
|
|
26090
26152
|
}, "downloadImageModel");
|
|
26091
26153
|
|
|
26092
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
26093
26155
|
var MONEY_REQUEST = "money-request";
|
|
26094
26156
|
var MONEY_DONE = "money-done";
|
|
26095
26157
|
var PROMISE = "promise";
|
|
@@ -26123,10 +26185,10 @@ var MONEY_WORDS = [
|
|
|
26123
26185
|
}
|
|
26124
26186
|
];
|
|
26125
26187
|
|
|
26126
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
26127
26189
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
26128
26190
|
|
|
26129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
26130
26192
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
26131
26193
|
var MONEY_DONE_FORMS = words([
|
|
26132
26194
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -26166,7 +26228,7 @@ var PROMISE_FORMS = words([
|
|
|
26166
26228
|
"estar\xE1 listo"
|
|
26167
26229
|
]);
|
|
26168
26230
|
|
|
26169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26231
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
26170
26232
|
var EXCERPT_CHARS = 80;
|
|
26171
26233
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
26172
26234
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -26188,7 +26250,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
26188
26250
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
26189
26251
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
26190
26252
|
|
|
26191
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
26192
26254
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
26193
26255
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
26194
26256
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -26269,7 +26331,7 @@ var amounts = {
|
|
|
26269
26331
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
26270
26332
|
};
|
|
26271
26333
|
|
|
26272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
26273
26335
|
var children = {
|
|
26274
26336
|
id: "children",
|
|
26275
26337
|
version: 1,
|
|
@@ -26298,7 +26360,7 @@ var children = {
|
|
|
26298
26360
|
}, "read")
|
|
26299
26361
|
};
|
|
26300
26362
|
|
|
26301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26363
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
26302
26364
|
var coverage = {
|
|
26303
26365
|
id: "coverage",
|
|
26304
26366
|
version: 1,
|
|
@@ -26327,7 +26389,7 @@ var coverage = {
|
|
|
26327
26389
|
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")
|
|
26328
26390
|
};
|
|
26329
26391
|
|
|
26330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
26331
26393
|
var holding2 = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
26332
26394
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
26333
26395
|
signal: "payments",
|
|
@@ -26377,7 +26439,7 @@ var payments = {
|
|
|
26377
26439
|
}, "read")
|
|
26378
26440
|
};
|
|
26379
26441
|
|
|
26380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
26381
26443
|
var PATTERNS_PER_CHAT = 3;
|
|
26382
26444
|
var DAY3 = 864e5;
|
|
26383
26445
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -26466,7 +26528,7 @@ var promises = {
|
|
|
26466
26528
|
}, "read")
|
|
26467
26529
|
};
|
|
26468
26530
|
|
|
26469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
26470
26532
|
var PER_SIDE = 5;
|
|
26471
26533
|
var WEEK = 7 * 864e5;
|
|
26472
26534
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -26497,7 +26559,7 @@ var questions2 = {
|
|
|
26497
26559
|
}, "attention")
|
|
26498
26560
|
};
|
|
26499
26561
|
|
|
26500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
26501
26563
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
26502
26564
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
26503
26565
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -26565,7 +26627,7 @@ var replyNext = {
|
|
|
26565
26627
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
26566
26628
|
};
|
|
26567
26629
|
|
|
26568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
26569
26631
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
26570
26632
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
26571
26633
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -26611,7 +26673,7 @@ var topics = {
|
|
|
26611
26673
|
}, "read")
|
|
26612
26674
|
};
|
|
26613
26675
|
|
|
26614
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
26615
26677
|
var STATUS_SIGNALS = [
|
|
26616
26678
|
replyNext,
|
|
26617
26679
|
questions2,
|
|
@@ -26623,7 +26685,7 @@ var STATUS_SIGNALS = [
|
|
|
26623
26685
|
children
|
|
26624
26686
|
];
|
|
26625
26687
|
|
|
26626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
26627
26689
|
var DAY4 = 864e5;
|
|
26628
26690
|
var STATUS_WINDOW = 300;
|
|
26629
26691
|
var STATUS_CHATS = 16;
|
|
@@ -26812,7 +26874,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26812
26874
|
};
|
|
26813
26875
|
}, "projectStatus");
|
|
26814
26876
|
|
|
26815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
26816
26878
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
26817
26879
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
26818
26880
|
if (deps.offline)
|
|
@@ -26884,7 +26946,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
26884
26946
|
};
|
|
26885
26947
|
}, "accountService");
|
|
26886
26948
|
|
|
26887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
26888
26950
|
var MINUTE = 6e4;
|
|
26889
26951
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
26890
26952
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -26903,7 +26965,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
26903
26965
|
return new Date(at - at % MINUTE).toISOString();
|
|
26904
26966
|
}, "sendTime");
|
|
26905
26967
|
|
|
26906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
26907
26969
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
26908
26970
|
try {
|
|
26909
26971
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -27150,7 +27212,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
27150
27212
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
27151
27213
|
}, "linkLimits");
|
|
27152
27214
|
|
|
27153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
27154
27216
|
var THREADS_PAGE = 500;
|
|
27155
27217
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
27156
27218
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -27229,7 +27291,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
27229
27291
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
27230
27292
|
}, "readMail");
|
|
27231
27293
|
|
|
27232
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
27233
27295
|
var PERSON_FIELDS = /* @__PURE__ */ new Set(["from", "to", "cc", "bcc"]);
|
|
27234
27296
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is", "list"]);
|
|
27235
27297
|
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");
|
|
@@ -27598,7 +27660,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
27598
27660
|
};
|
|
27599
27661
|
}, "statsLucene");
|
|
27600
27662
|
|
|
27601
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
27602
27664
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
27603
27665
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
27604
27666
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -27767,7 +27829,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
27767
27829
|
};
|
|
27768
27830
|
}, "readRankingSelection");
|
|
27769
27831
|
|
|
27770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
27771
27833
|
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");
|
|
27772
27834
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
27773
27835
|
command,
|
|
@@ -27777,7 +27839,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
27777
27839
|
fieldsVersion: FIELD_VERSION
|
|
27778
27840
|
}), "searchRecordOf");
|
|
27779
27841
|
|
|
27780
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
27781
27843
|
function invalid2(message) {
|
|
27782
27844
|
throw new CliError("validation_error", message);
|
|
27783
27845
|
}
|
|
@@ -28071,7 +28133,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
28071
28133
|
}, "evidence")
|
|
28072
28134
|
}), "adminStatisticsService");
|
|
28073
28135
|
|
|
28074
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
28075
28137
|
import { createHash as createHash7, randomUUID as randomUUID5 } from "node:crypto";
|
|
28076
28138
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
28077
28139
|
var validateRepair = /* @__PURE__ */ __name((messenger, options2) => {
|
|
@@ -28208,12 +28270,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
28208
28270
|
return { plan, repair };
|
|
28209
28271
|
}, "gapsService");
|
|
28210
28272
|
|
|
28211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
28212
28274
|
import { createHash as createHash10 } from "node:crypto";
|
|
28213
28275
|
import { constants as constants2, mkdirSync as mkdirSync5 } from "node:fs";
|
|
28214
28276
|
import { lstat as lstat5, open as open6, readFile as readFile2, stat as stat2 } from "node:fs/promises";
|
|
28215
28277
|
|
|
28216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
28217
28279
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
28218
28280
|
import { basename as basename4, join as join12, relative as relative2, sep as sep2 } from "node:path";
|
|
28219
28281
|
var MAX_FILES = 1e4;
|
|
@@ -28284,15 +28346,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
28284
28346
|
return choices;
|
|
28285
28347
|
}, "directoryPaths");
|
|
28286
28348
|
|
|
28287
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28288
28350
|
import { posix } from "node:path";
|
|
28289
28351
|
|
|
28290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28291
28353
|
import { setImmediate as tick } from "node:timers/promises";
|
|
28292
28354
|
import { crc32 } from "node:zlib";
|
|
28293
28355
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
28294
28356
|
|
|
28295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
28296
28358
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
28297
28359
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
28298
28360
|
var SAMPLE = 65536;
|
|
@@ -28394,7 +28456,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
28394
28456
|
return result.text;
|
|
28395
28457
|
}, "decodeXml");
|
|
28396
28458
|
|
|
28397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
28398
28460
|
var MAX_PART = 10 * 1024 * 1024;
|
|
28399
28461
|
var MAX_ENTRIES = 1e3;
|
|
28400
28462
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -28609,7 +28671,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
28609
28671
|
return found;
|
|
28610
28672
|
}, "elements");
|
|
28611
28673
|
|
|
28612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
28613
28675
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
28614
28676
|
let name = "";
|
|
28615
28677
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -28664,7 +28726,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
28664
28726
|
return { text: parts.join("").trim(), truncated: false };
|
|
28665
28727
|
}, "sheetText");
|
|
28666
28728
|
|
|
28667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28729
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
28668
28730
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
28669
28731
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
28670
28732
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -29064,10 +29126,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
29064
29126
|
}
|
|
29065
29127
|
}, "readDocument");
|
|
29066
29128
|
|
|
29067
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29068
29130
|
import { extname as extname3 } from "node:path";
|
|
29069
29131
|
|
|
29070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
29071
29133
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
29072
29134
|
import { dirname as dirname7, extname as extname2, join as join13 } from "node:path";
|
|
29073
29135
|
import { fileURLToPath } from "node:url";
|
|
@@ -29128,7 +29190,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
29128
29190
|
}
|
|
29129
29191
|
}, "derived");
|
|
29130
29192
|
|
|
29131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29193
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
29132
29194
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
29133
29195
|
var image2 = {
|
|
29134
29196
|
id: "image",
|
|
@@ -29137,7 +29199,7 @@ var image2 = {
|
|
|
29137
29199
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
29138
29200
|
};
|
|
29139
29201
|
|
|
29140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
29141
29203
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
29142
29204
|
var doc = {
|
|
29143
29205
|
id: "doc",
|
|
@@ -29149,7 +29211,7 @@ var doc = {
|
|
|
29149
29211
|
}), "read")
|
|
29150
29212
|
};
|
|
29151
29213
|
|
|
29152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
29153
29215
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
29154
29216
|
var docx = {
|
|
29155
29217
|
id: "docx",
|
|
@@ -29162,7 +29224,7 @@ var docx = {
|
|
|
29162
29224
|
}), "read")
|
|
29163
29225
|
};
|
|
29164
29226
|
|
|
29165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
29166
29228
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
29167
29229
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
29168
29230
|
"fonttbl",
|
|
@@ -29338,7 +29400,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
29338
29400
|
}, "htmlText");
|
|
29339
29401
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
29340
29402
|
|
|
29341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
29342
29404
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
29343
29405
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
29344
29406
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -29394,7 +29456,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
29394
29456
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
29395
29457
|
}, "markdownSections");
|
|
29396
29458
|
|
|
29397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
29398
29460
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
29399
29461
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
29400
29462
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -29465,7 +29527,7 @@ var html = {
|
|
|
29465
29527
|
}, "read")
|
|
29466
29528
|
};
|
|
29467
29529
|
|
|
29468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29530
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
29469
29531
|
var office = {
|
|
29470
29532
|
id: "office",
|
|
29471
29533
|
version: documentExtractor("odt"),
|
|
@@ -29476,7 +29538,7 @@ var office = {
|
|
|
29476
29538
|
}, "read")
|
|
29477
29539
|
};
|
|
29478
29540
|
|
|
29479
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
29480
29542
|
var pdf = {
|
|
29481
29543
|
id: "pdf",
|
|
29482
29544
|
version: "unpdf",
|
|
@@ -29543,7 +29605,7 @@ var pdf = {
|
|
|
29543
29605
|
}), "read")
|
|
29544
29606
|
};
|
|
29545
29607
|
|
|
29546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
29547
29609
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
29548
29610
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
29549
29611
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -29563,7 +29625,7 @@ var plain = {
|
|
|
29563
29625
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
29564
29626
|
};
|
|
29565
29627
|
|
|
29566
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
29567
29629
|
var rtf = {
|
|
29568
29630
|
id: "rtf",
|
|
29569
29631
|
version: "v1",
|
|
@@ -29571,10 +29633,10 @@ var rtf = {
|
|
|
29571
29633
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
29572
29634
|
};
|
|
29573
29635
|
|
|
29574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29575
29637
|
import { basename as basename5 } from "node:path";
|
|
29576
29638
|
|
|
29577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
29578
29640
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
29579
29641
|
const cells = [];
|
|
29580
29642
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -29612,7 +29674,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
29612
29674
|
return { cells, truncated };
|
|
29613
29675
|
}, "delimitedSpans");
|
|
29614
29676
|
|
|
29615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
29616
29678
|
var DELIMITED = {
|
|
29617
29679
|
".csv": ",",
|
|
29618
29680
|
".tsv": " ",
|
|
@@ -29651,7 +29713,7 @@ var sheets = {
|
|
|
29651
29713
|
}, "read")
|
|
29652
29714
|
};
|
|
29653
29715
|
|
|
29654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
29655
29717
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
29656
29718
|
var HEAD_BYTES = 1024;
|
|
29657
29719
|
var readers = [...BUILT_INS2];
|
|
@@ -29661,7 +29723,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
29661
29723
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
29662
29724
|
}, "readWithRegistry");
|
|
29663
29725
|
|
|
29664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29726
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
29665
29727
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
29666
29728
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
29667
29729
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -30740,7 +30802,7 @@ function imageSize(input) {
|
|
|
30740
30802
|
}
|
|
30741
30803
|
__name(imageSize, "imageSize");
|
|
30742
30804
|
|
|
30743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
30744
30806
|
var MAX_PAGES = 20;
|
|
30745
30807
|
var MAX_PIXELS = 2e7;
|
|
30746
30808
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -30900,7 +30962,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
30900
30962
|
}
|
|
30901
30963
|
}, "ocrPdf");
|
|
30902
30964
|
|
|
30903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
30904
30966
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
30905
30967
|
const limits = pdfPreviewLimits(env);
|
|
30906
30968
|
const cancelled3 = /* @__PURE__ */ __name(() => {
|
|
@@ -30977,7 +31039,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
30977
31039
|
}
|
|
30978
31040
|
}, "pdfPreview");
|
|
30979
31041
|
|
|
30980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31042
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/picture-reading.js
|
|
30981
31043
|
import { spawn } from "node:child_process";
|
|
30982
31044
|
import { mkdtempSync, readFileSync as readFileSync5, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
|
|
30983
31045
|
import { tmpdir } from "node:os";
|
|
@@ -31140,7 +31202,7 @@ Read the attached picture.`,
|
|
|
31140
31202
|
}
|
|
31141
31203
|
}, "readPictureWithAgent");
|
|
31142
31204
|
|
|
31143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31205
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
31144
31206
|
import { createHash as createHash8 } from "node:crypto";
|
|
31145
31207
|
import { constants } from "node:fs";
|
|
31146
31208
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -31248,7 +31310,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
31248
31310
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
31249
31311
|
}, "transferMime");
|
|
31250
31312
|
|
|
31251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
31252
31314
|
import { createWriteStream, mkdirSync as mkdirSync4 } from "node:fs";
|
|
31253
31315
|
import { link as link3, rm } from "node:fs/promises";
|
|
31254
31316
|
import { join as join15, resolve as resolve6 } from "node:path";
|
|
@@ -31362,12 +31424,12 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
31362
31424
|
}
|
|
31363
31425
|
}, "save");
|
|
31364
31426
|
|
|
31365
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31366
31428
|
import { createHash as createHash9 } from "node:crypto";
|
|
31367
31429
|
import { lstat as lstat4, readFile } from "node:fs/promises";
|
|
31368
31430
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
31369
31431
|
|
|
31370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
31371
31433
|
var GROUP_SETTINGS = [
|
|
31372
31434
|
"allCanPin",
|
|
31373
31435
|
"onlyAdminsAdd",
|
|
@@ -31381,7 +31443,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
31381
31443
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
31382
31444
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
31383
31445
|
|
|
31384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
31385
31447
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
31386
31448
|
var PICTURE_FLOOR = 0.25;
|
|
31387
31449
|
var PAGE3 = 50;
|
|
@@ -31422,7 +31484,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
31422
31484
|
const directory2 = imageModelsDirectory(deps.env);
|
|
31423
31485
|
if (!isImageModelInstalled(model2, directory2))
|
|
31424
31486
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
31425
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
31487
|
+
const { openPictureEmbedder } = await import("./embedder-MJMGOJT7.js");
|
|
31426
31488
|
return openPictureEmbedder(model2, directory2);
|
|
31427
31489
|
}, "open");
|
|
31428
31490
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -31596,7 +31658,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
31596
31658
|
}, "search")
|
|
31597
31659
|
}), "withPictures");
|
|
31598
31660
|
|
|
31599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
31600
31662
|
var ATTACHMENT_QUERY = {
|
|
31601
31663
|
entity: "attachment",
|
|
31602
31664
|
backend: "sql",
|
|
@@ -32067,7 +32129,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32067
32129
|
}, "readPicture")
|
|
32068
32130
|
}), "attachmentsService");
|
|
32069
32131
|
|
|
32070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
32071
32133
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
32072
32134
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
32073
32135
|
const store = await accountStore(deps);
|
|
@@ -32097,7 +32159,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
32097
32159
|
}, "list")
|
|
32098
32160
|
}), "chatDocumentsService");
|
|
32099
32161
|
|
|
32100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
32101
32163
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
32102
32164
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
32103
32165
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -32184,7 +32246,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
32184
32246
|
}
|
|
32185
32247
|
}, "isRetentionSelection");
|
|
32186
32248
|
|
|
32187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32249
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
32188
32250
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
32189
32251
|
const fields = text2.split(",").map((one) => one.trim());
|
|
32190
32252
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -32391,7 +32453,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32391
32453
|
};
|
|
32392
32454
|
}, "countersService");
|
|
32393
32455
|
|
|
32394
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
32395
32457
|
var SYNC_KEY = "messages.sync-first";
|
|
32396
32458
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
32397
32459
|
var keyOf3 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -32523,7 +32585,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
32523
32585
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
32524
32586
|
}), "withRefresh");
|
|
32525
32587
|
|
|
32526
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
32527
32589
|
var CANDIDATES = 50;
|
|
32528
32590
|
var WORD_HITS = 200;
|
|
32529
32591
|
var RRF_K = 60;
|
|
@@ -32798,13 +32860,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
32798
32860
|
return mean2.map((value) => value / length);
|
|
32799
32861
|
}, "meanOf");
|
|
32800
32862
|
|
|
32801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32863
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
32802
32864
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
32803
32865
|
...embeddingsMaintenance(deps),
|
|
32804
32866
|
...embeddingsSearch(deps)
|
|
32805
32867
|
}), "embeddingsService");
|
|
32806
32868
|
|
|
32807
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
32808
32870
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
32809
32871
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
32810
32872
|
if (deps.offline)
|
|
@@ -32945,7 +33007,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
32945
33007
|
};
|
|
32946
33008
|
}, "foldersService");
|
|
32947
33009
|
|
|
32948
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
32949
33011
|
var REVIEW_COUNT = 500;
|
|
32950
33012
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
32951
33013
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -33024,7 +33086,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
33024
33086
|
};
|
|
33025
33087
|
}, "mentionsService");
|
|
33026
33088
|
|
|
33027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
33028
33090
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
33029
33091
|
position,
|
|
33030
33092
|
kind,
|
|
@@ -33073,7 +33135,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
33073
33135
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
33074
33136
|
}, "validatePermalink");
|
|
33075
33137
|
|
|
33076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
33077
33139
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
33078
33140
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
33079
33141
|
return `${seconds / 86400}d`;
|
|
@@ -33105,7 +33167,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
33105
33167
|
return seconds;
|
|
33106
33168
|
}, "pinDurationOf");
|
|
33107
33169
|
|
|
33108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
33109
33171
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
33110
33172
|
if (sendAs === void 0) {
|
|
33111
33173
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -33130,7 +33192,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
33130
33192
|
return sendAs;
|
|
33131
33193
|
}, "typedSendAs");
|
|
33132
33194
|
|
|
33133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
33134
33196
|
var TOTAL_CAP = 1e4;
|
|
33135
33197
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
33136
33198
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -33141,7 +33203,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
33141
33203
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
33142
33204
|
}, "totalOf");
|
|
33143
33205
|
|
|
33144
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
33145
33207
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
33146
33208
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
33147
33209
|
let narrows = false;
|
|
@@ -33170,7 +33232,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
33170
33232
|
return wanted(root).join(" ").trim();
|
|
33171
33233
|
}, "meaningWords");
|
|
33172
33234
|
|
|
33173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
33174
33236
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
33175
33237
|
var scaffolding = new Set(words2("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
33176
33238
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -33303,7 +33365,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
33303
33365
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
33304
33366
|
}, "questionLookup");
|
|
33305
33367
|
|
|
33306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
33307
33369
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
33308
33370
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
33309
33371
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options2 = COMBINED_DEFAULTS) => {
|
|
@@ -33497,7 +33559,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
33497
33559
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase2 : coverage2 * 4 + proximity + phrase2;
|
|
33498
33560
|
}, "signals");
|
|
33499
33561
|
|
|
33500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
33501
33563
|
var MEANING_DEPTH = 100;
|
|
33502
33564
|
var RRF_K2 = 60;
|
|
33503
33565
|
var RERANK_DEPTH = 50;
|
|
@@ -33823,7 +33885,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
33823
33885
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
33824
33886
|
}, "mixedWithReranker");
|
|
33825
33887
|
|
|
33826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
33827
33889
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
33828
33890
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
33829
33891
|
var threadBounds = /* @__PURE__ */ __name((options2 = {}) => {
|
|
@@ -34022,7 +34084,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
34022
34084
|
return result;
|
|
34023
34085
|
}, "readThreadContext");
|
|
34024
34086
|
|
|
34025
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
34026
34088
|
var SEARCH_FILL_MS = 200;
|
|
34027
34089
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
34028
34090
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -34091,7 +34153,7 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
34091
34153
|
}, "accountOf");
|
|
34092
34154
|
var keyOf4 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
34093
34155
|
|
|
34094
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34156
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meaning-model.js
|
|
34095
34157
|
var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
34096
34158
|
const chosen = chosenTextModel(env);
|
|
34097
34159
|
if (chosen.from === "chosen" || chosen.id !== DEFAULT_TEXT_MODEL)
|
|
@@ -34106,7 +34168,7 @@ var meaningModel = /* @__PURE__ */ __name(async (store, env = process.env) => {
|
|
|
34106
34168
|
return (counts.get(before2) ?? 0) > (counts.get(now) ?? 0) ? previous.id : current.id;
|
|
34107
34169
|
}, "meaningModel");
|
|
34108
34170
|
|
|
34109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
34110
34172
|
var meaningText = /* @__PURE__ */ __name((question) => {
|
|
34111
34173
|
try {
|
|
34112
34174
|
const text2 = questionLookup(question) === void 0 ? question : questionText(question);
|
|
@@ -34185,7 +34247,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
34185
34247
|
}
|
|
34186
34248
|
}, "meaningLane");
|
|
34187
34249
|
|
|
34188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34250
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
34189
34251
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
34190
34252
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
34191
34253
|
if (choice === "off")
|
|
@@ -34197,9 +34259,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34197
34259
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
34198
34260
|
try {
|
|
34199
34261
|
const warm = deps.embedders;
|
|
34200
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
34262
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-35IH3WHC.js")).openRerankerProcess(model, directory2, {
|
|
34201
34263
|
threads: defaultThreads()
|
|
34202
|
-
})) : await (await import("./rerank-
|
|
34264
|
+
})) : await (await import("./rerank-5C2OZZXD.js")).openReranker(model, directory2);
|
|
34203
34265
|
return {
|
|
34204
34266
|
model: model.id,
|
|
34205
34267
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -34219,7 +34281,7 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
34219
34281
|
};
|
|
34220
34282
|
}, "rerankLane");
|
|
34221
34283
|
|
|
34222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/question-period.js
|
|
34223
34285
|
var DAY5 = 864e5;
|
|
34224
34286
|
var SPAN = { start: 0, end: 0 };
|
|
34225
34287
|
var phrase = /* @__PURE__ */ __name((source) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${source})(?![\\p{L}\\p{N}])`, "giu"), "phrase");
|
|
@@ -34344,20 +34406,27 @@ var questionPeriod = /* @__PURE__ */ __name((text2, now, zone) => {
|
|
|
34344
34406
|
};
|
|
34345
34407
|
}, "questionPeriod");
|
|
34346
34408
|
|
|
34347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
34348
34410
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
34349
34411
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
34350
34412
|
const directory2 = imageModelsDirectory(env);
|
|
34351
34413
|
if (!isImageModelInstalled(model, directory2))
|
|
34352
34414
|
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 });
|
|
34353
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
34415
|
+
const { openPictureEmbedder } = await import("./embedder-MJMGOJT7.js");
|
|
34354
34416
|
return openPictureEmbedder(model, directory2);
|
|
34355
34417
|
}, "openPictureEmbedderFor");
|
|
34356
34418
|
|
|
34357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
34358
34420
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
34359
34421
|
const metadata = note.frontMatter;
|
|
34360
34422
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
34423
|
+
if (note.source === "file" && account !== void 0 && isImportedProvider(account.provider))
|
|
34424
|
+
return {
|
|
34425
|
+
kind: "document",
|
|
34426
|
+
provider: account.provider,
|
|
34427
|
+
account: account.account,
|
|
34428
|
+
...file?.url ? { url: file.url } : {}
|
|
34429
|
+
};
|
|
34361
34430
|
const remote = note.source === "file" && (account !== void 0 && kindIn(account.provider) === "documents" || metadata?.source === "google-drive");
|
|
34362
34431
|
const profile = remote && account ? Object.entries(profiles).flatMap(([command, named2]) => Object.entries(named2).map(([name, key]) => ({ command, name, key }))).find(({ key }) => key.provider === account.provider && key.account === account.account || isFolderProvider(key.provider) && key.account === account.name) : void 0;
|
|
34363
34432
|
const url = file?.url ?? (remote && typeof metadata?.sourceUrl === "string" ? metadata.sourceUrl : void 0);
|
|
@@ -34369,7 +34438,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
34369
34438
|
};
|
|
34370
34439
|
}, "documentSource");
|
|
34371
34440
|
|
|
34372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
34373
34442
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
34374
34443
|
const host = new URL(baseUrl).host;
|
|
34375
34444
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -34402,7 +34471,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
34402
34471
|
};
|
|
34403
34472
|
}, "embeddingKeys");
|
|
34404
34473
|
|
|
34405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
34406
34475
|
var options = strictObject({
|
|
34407
34476
|
temperature: range(0, 2),
|
|
34408
34477
|
top_p: range(0, 1),
|
|
@@ -34469,7 +34538,7 @@ var openai = {
|
|
|
34469
34538
|
}), "complete")
|
|
34470
34539
|
};
|
|
34471
34540
|
|
|
34472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34541
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
34473
34542
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
34474
34543
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
34475
34544
|
if (deps.signal?.aborted)
|
|
@@ -34484,7 +34553,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34484
34553
|
if (!adapter && target2.provider === "openai")
|
|
34485
34554
|
adapter = openai;
|
|
34486
34555
|
if (!adapter && target2.provider === "anthropic")
|
|
34487
|
-
adapter = (await import("./anthropic-
|
|
34556
|
+
adapter = (await import("./anthropic-OLNFE2CL.js")).anthropic;
|
|
34488
34557
|
if (!adapter)
|
|
34489
34558
|
throw new CliError("validation_error", `no model adapter for ${target2.provider}`);
|
|
34490
34559
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -34503,7 +34572,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34503
34572
|
const apiKey = await deps.key?.(target2.provider, target2);
|
|
34504
34573
|
if (deps.signal?.aborted)
|
|
34505
34574
|
throw new CliError("cancelled", "model request cancelled");
|
|
34506
|
-
const fetcher = deps.fetch ??
|
|
34575
|
+
const fetcher = deps.fetch ?? endpointFetch(baseUrl, 12e4);
|
|
34507
34576
|
let limited = false;
|
|
34508
34577
|
let unreachable = false;
|
|
34509
34578
|
let refused = false;
|
|
@@ -34544,7 +34613,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
34544
34613
|
}, "complete")
|
|
34545
34614
|
}), "modelGateway");
|
|
34546
34615
|
|
|
34547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/enrichment-setting.js
|
|
34548
34617
|
var SECTION2 = "enrichment";
|
|
34549
34618
|
var ENRICHMENT_PROVIDERS = ["openai", "anthropic"];
|
|
34550
34619
|
var DEFAULT_BASE_URLS = {
|
|
@@ -34619,7 +34688,7 @@ var costOf = /* @__PURE__ */ __name((usage, setting) => {
|
|
|
34619
34688
|
return price ? Math.round((usage.input * price.input + usage.output * price.output) * 1e6) / 1e6 : null;
|
|
34620
34689
|
}, "costOf");
|
|
34621
34690
|
|
|
34622
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/enrichment.js
|
|
34623
34692
|
var ENRICH_PER_RUN = 600;
|
|
34624
34693
|
var MAX_LINE = 400;
|
|
34625
34694
|
var line2 = pipe(unknown(), transform((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim().slice(0, MAX_LINE) : ""));
|
|
@@ -34695,7 +34764,7 @@ var enrichmentState = /* @__PURE__ */ __name(async (store, env, estimateFor, key
|
|
|
34695
34764
|
};
|
|
34696
34765
|
}, "enrichmentState");
|
|
34697
34766
|
|
|
34698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34767
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
34699
34768
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
34700
34769
|
let root;
|
|
34701
34770
|
try {
|
|
@@ -34722,7 +34791,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
34722
34791
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
34723
34792
|
}, "titleTiers");
|
|
34724
34793
|
|
|
34725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
34726
34795
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
34727
34796
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
34728
34797
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -35110,12 +35179,13 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
35110
35179
|
...lane
|
|
35111
35180
|
};
|
|
35112
35181
|
}, "searchNotes");
|
|
35113
|
-
var notesScopeOf = /* @__PURE__ */ __name((accounts) => {
|
|
35114
|
-
const folderIds = accounts.
|
|
35182
|
+
var notesScopeOf = /* @__PURE__ */ __name((accounts, stored = []) => {
|
|
35183
|
+
const folderIds = accounts.filter(({ provider, account }) => provider !== "notes" || account !== INTERNAL_NOTES).map(({ provider, account }) => provider === "notes" ? account : String(stored.find((one) => one.provider === provider && one.account === account)?.id ?? 0));
|
|
35115
35184
|
if (!folderIds.length)
|
|
35116
35185
|
return { source: "internal" };
|
|
35117
35186
|
return { folderIds, ...accounts.length > folderIds.length ? { withInternal: true } : {} };
|
|
35118
35187
|
}, "notesScopeOf");
|
|
35188
|
+
var importAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.storedAccounts()).filter(({ provider }) => isImportedProvider(provider)), "importAccounts");
|
|
35119
35189
|
var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accounts: list2, app, env, ...query }) => {
|
|
35120
35190
|
text2 = plainQuery(text2);
|
|
35121
35191
|
const own = app?.command ?? query.command;
|
|
@@ -35124,30 +35194,33 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
35124
35194
|
{ provider: "notes", account: INTERNAL_NOTES },
|
|
35125
35195
|
...(await store.notes.folders()).map(({ id: id2 }) => ({ provider: "notes", account: id2 })),
|
|
35126
35196
|
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => ({ provider: "notes", account: id2 })),
|
|
35127
|
-
...[await store.notes.addedAccount()].flatMap((added) => added ? [{ provider: "notes", account: added.id }] : [])
|
|
35197
|
+
...[await store.notes.addedAccount()].flatMap((added) => added ? [{ provider: "notes", account: added.id }] : []),
|
|
35198
|
+
...(await importAccounts(store)).map(({ provider, account: account2 }) => ({ provider, account: account2 }))
|
|
35128
35199
|
];
|
|
35129
35200
|
const lock = groupLockOf(app, env);
|
|
35130
35201
|
const typedScope = list2 ?? (lock === void 0 ? void 0 : `group:${lock}`);
|
|
35131
35202
|
const notesScope = typedScope !== void 0 && /(^|,)\s*group:/i.test(typedScope) ? `${typedScope},${sourceOf2(OWNER_NOTES)}` : typedScope;
|
|
35132
35203
|
const named2 = notesScope === void 0 ? { accounts: held, skipped: [] } : fitting(entriesOfList(notesScope, await listContextOf(store, account, app, void 0, env)), ["notes", "documents"], what);
|
|
35133
35204
|
const source = query.source ?? noteSourceOfQuery(text2).source;
|
|
35134
|
-
const
|
|
35205
|
+
const internal = /* @__PURE__ */ __name(({ provider, account: account2 }) => provider === "notes" && account2 === INTERNAL_NOTES, "internal");
|
|
35206
|
+
const typed = named2.accounts.filter((one) => source === void 0 || internal(one) === (source === "internal"));
|
|
35135
35207
|
if (!typed.length && list2 !== void 0)
|
|
35136
35208
|
throw new CliError("validation_error", source === "internal" ? "the query's source:internal keeps the notes written in memo, and the --source list names none of them: add notes:internal to --source, or drop source:internal from the query" : "the query's source:file keeps the files from notes folders, and the --source list names none of them: add notes:<folder id> to --source, or drop source:file from the query");
|
|
35137
|
-
const scope = list2 === void 0 ? {} : notesScopeOf(typed);
|
|
35209
|
+
const scope = list2 === void 0 ? {} : notesScopeOf(typed, await store.accounts.storedAccounts());
|
|
35138
35210
|
const found = await searchNotes(store, text2, {
|
|
35139
35211
|
...query,
|
|
35140
35212
|
...scope,
|
|
35141
|
-
...source ? { source } : {}
|
|
35213
|
+
...source ? { source } : {},
|
|
35214
|
+
...env === void 0 ? {} : { env }
|
|
35142
35215
|
});
|
|
35143
35216
|
return {
|
|
35144
35217
|
...found,
|
|
35145
|
-
accounts: typed.map(({ account: account2 }) => ({ resource: "notes", provider
|
|
35218
|
+
accounts: typed.map(({ provider, account: account2 }) => ({ resource: "notes", provider, account: account2 })),
|
|
35146
35219
|
skipped: named2.skipped
|
|
35147
35220
|
};
|
|
35148
35221
|
}, "searchNotesOf");
|
|
35149
35222
|
|
|
35150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35223
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
35151
35224
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
35152
35225
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
35153
35226
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -35265,7 +35338,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
35265
35338
|
};
|
|
35266
35339
|
}, "searchEvents");
|
|
35267
35340
|
|
|
35268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/search-all-business.js
|
|
35269
35342
|
var OWN_BUSINESS = { provider: "business", account: INTERNAL_NOTES };
|
|
35270
35343
|
var BUSINESS_WORDS_ONLY = "invoices, payments, orders, contracts, subscriptions, products and wallets are found by the words of their numbers and names only";
|
|
35271
35344
|
var placeOf = /* @__PURE__ */ __name(({ source, imported }) => source ?? (imported === void 0 ? OWN_BUSINESS : { provider: imported, account: "" }), "placeOf");
|
|
@@ -35295,7 +35368,7 @@ var searchBusiness = /* @__PURE__ */ __name(async (store, { words: words3, anyWo
|
|
|
35295
35368
|
};
|
|
35296
35369
|
}, "searchBusiness");
|
|
35297
35370
|
|
|
35298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
35299
35372
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
35300
35373
|
const { project, tag, topic, ...input } = request;
|
|
35301
35374
|
input.signal?.throwIfAborted();
|
|
@@ -35333,7 +35406,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
35333
35406
|
return { input, selection };
|
|
35334
35407
|
}, "resolveMeetingSelection");
|
|
35335
35408
|
|
|
35336
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
35337
35410
|
var MOST_HITS_PER_MEETING = 3;
|
|
35338
35411
|
var PAGE_ROWS = 200;
|
|
35339
35412
|
var MOST_PAGES = 25;
|
|
@@ -35561,7 +35634,7 @@ var titleItem = /* @__PURE__ */ __name((account, meeting, query) => ({
|
|
|
35561
35634
|
foundBy: ["title"]
|
|
35562
35635
|
}), "titleItem");
|
|
35563
35636
|
|
|
35564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35637
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/search-harder.js
|
|
35565
35638
|
var SECTION3 = "search_harder";
|
|
35566
35639
|
var HARDER_MODELS = {
|
|
35567
35640
|
anthropic: "claude-haiku-5-5",
|
|
@@ -35807,7 +35880,7 @@ var reorderHarder = /* @__PURE__ */ __name(async (question, hits, { laterPage, a
|
|
|
35807
35880
|
};
|
|
35808
35881
|
}, "reorderHarder");
|
|
35809
35882
|
|
|
35810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
35811
35884
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm", "business", "meetings"];
|
|
35812
35885
|
var refusal = /* @__PURE__ */ __name((error, text2) => {
|
|
35813
35886
|
const { reason, span } = error.details ?? {};
|
|
@@ -35822,7 +35895,7 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
35822
35895
|
const top = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
35823
35896
|
return top.every(({ node, occur }) => occur !== "must_not" && followable(node, occur === "must")) ? planQuestion(text2).scope : void 0;
|
|
35824
35897
|
}, "filtersBeside");
|
|
35825
|
-
var titleWords2 = /* @__PURE__ */ __name((text2, refused = "deals and leads are found by the words of their title, company and
|
|
35898
|
+
var titleWords2 = /* @__PURE__ */ __name((text2, refused = "deals and leads are found by the words of their title, company, contacts and activities only") => {
|
|
35826
35899
|
const { root } = parseLucene(text2, SEARCH_QUERY);
|
|
35827
35900
|
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
35828
35901
|
const words3 = clauses.map(({ node, occur }) => occur !== "must_not" && node.kind === "predicate" && (node.field === "text" || node.field === "title") && (node.operator === "term" || node.operator === "phrase") ? (
|
|
@@ -35849,9 +35922,11 @@ var sourceScope = /* @__PURE__ */ __name(async (store, account, source, asked, m
|
|
|
35849
35922
|
const entries = entriesOfList(source, await listContextOf(store, account, messenger.app));
|
|
35850
35923
|
const imported = asked.includes("business") ? new Set((await store.business.accounts()).map(accountKeyOf)) : /* @__PURE__ */ new Set();
|
|
35851
35924
|
const holdsBusiness = /* @__PURE__ */ __name((one) => imported.has(accountKeyOf(one)), "holdsBusiness");
|
|
35852
|
-
const
|
|
35925
|
+
const holdsDocuments = /* @__PURE__ */ __name((one) => asked.includes("notes") && holdsKind(one.provider, "documents"), "holdsDocuments");
|
|
35926
|
+
const { skipped } = fitting(entries, asked.filter((one) => one !== "business"), "search all", (kind) => `--only leaves ${kind} out`, (one) => holdsBusiness(one) || holdsDocuments(one));
|
|
35927
|
+
const holds = /* @__PURE__ */ __name((resource, one) => resource === "business" ? holdsBusiness(one) : listedHolds(one, resource) || resource === "notes" && holdsDocuments(one), "holds");
|
|
35853
35928
|
const named2 = /* @__PURE__ */ __name((resource) => [
|
|
35854
|
-
...new Map(entries.flatMap(({ accounts }) => accounts).filter((one) => resource
|
|
35929
|
+
...new Map(entries.flatMap(({ accounts }) => accounts).filter((one) => holds(resource, one)).map(({ provider, account: account2 }) => [`${provider}\0${account2}`, { provider, account: account2 }])).values()
|
|
35855
35930
|
], "named");
|
|
35856
35931
|
const scope = Object.fromEntries(asked.map((resource) => [resource, named2(resource)]));
|
|
35857
35932
|
const only = asked.filter((resource) => scope[resource]?.length);
|
|
@@ -35975,7 +36050,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
35975
36050
|
limit: depth,
|
|
35976
36051
|
command,
|
|
35977
36052
|
embedders,
|
|
35978
|
-
...chosen2 === void 0 ? {} : notesScopeOf(chosen2),
|
|
36053
|
+
...chosen2 === void 0 ? {} : notesScopeOf(chosen2, await store.accounts.storedAccounts()),
|
|
35979
36054
|
...request.exact ? { exact: true } : {},
|
|
35980
36055
|
...discover ? { discover: true } : {},
|
|
35981
36056
|
...request.timezone === void 0 ? {} : { timezone: request.timezone },
|
|
@@ -36000,13 +36075,16 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
36000
36075
|
text: hit.excerpt,
|
|
36001
36076
|
foundBy: hit.found_by
|
|
36002
36077
|
})));
|
|
36003
|
-
const read = chosen2
|
|
36004
|
-
|
|
36005
|
-
|
|
36006
|
-
|
|
36007
|
-
|
|
36078
|
+
const read = chosen2 ?? [
|
|
36079
|
+
...[
|
|
36080
|
+
INTERNAL_NOTES,
|
|
36081
|
+
...(await store.notes.folders()).map(({ id: id2 }) => id2),
|
|
36082
|
+
...(await store.notes.documentsAccounts()).map(({ id: id2 }) => id2),
|
|
36083
|
+
...[await store.notes.addedAccount()].flatMap((added) => added ? [added.id] : [])
|
|
36084
|
+
].map((account2) => ({ provider: "notes", account: account2 })),
|
|
36085
|
+
...(await importAccounts(store)).map(({ provider, account: account2 }) => ({ provider, account: account2 }))
|
|
36008
36086
|
];
|
|
36009
|
-
accounts.push(...read.map((account2) => ({ resource, provider
|
|
36087
|
+
accounts.push(...read.map(({ provider, account: account2 }) => ({ resource, provider, account: account2 })));
|
|
36010
36088
|
} else if (resource === "events") {
|
|
36011
36089
|
const read = scope?.events ?? await calendarAccounts(store);
|
|
36012
36090
|
if (!read.length)
|
|
@@ -36115,7 +36193,7 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
36115
36193
|
} finally {
|
|
36116
36194
|
await embedders.close();
|
|
36117
36195
|
}
|
|
36118
|
-
let ordered = insidePeriodFirst(oneList(lists, cosines), period);
|
|
36196
|
+
let ordered = insidePeriodFirst(oneList(await withoutTranscriptCopies(store, lists), cosines), period);
|
|
36119
36197
|
let harder;
|
|
36120
36198
|
if (request.harder) {
|
|
36121
36199
|
const asking = {
|
|
@@ -36156,6 +36234,21 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, asked, messenger =
|
|
|
36156
36234
|
...harder === void 0 ? {} : { harder }
|
|
36157
36235
|
};
|
|
36158
36236
|
}, "searchAll");
|
|
36237
|
+
var withoutTranscriptCopies = /* @__PURE__ */ __name(async (store, lists) => {
|
|
36238
|
+
const meetings = new Set(lists.flat().flatMap((item2) => item2.kind === "meeting" ? [item2.meetingId] : []));
|
|
36239
|
+
if (!meetings.size)
|
|
36240
|
+
return lists;
|
|
36241
|
+
const documentOf = /* @__PURE__ */ __name((item2) => item2.kind === "document" && /^document:\d+$/.test(item2.ref) ? Number(item2.ref.slice("document:".length)) : void 0, "documentOf");
|
|
36242
|
+
const documents = lists.flat().flatMap((item2) => documentOf(item2) ?? []);
|
|
36243
|
+
const transcripts = await store.meetings.transcriptMeetings(documents);
|
|
36244
|
+
if (!transcripts.size)
|
|
36245
|
+
return lists;
|
|
36246
|
+
return lists.map((list2) => list2.filter((item2) => {
|
|
36247
|
+
const document = documentOf(item2);
|
|
36248
|
+
const meeting = document === void 0 ? void 0 : transcripts.get(document);
|
|
36249
|
+
return meeting === void 0 || !meetings.has(meeting);
|
|
36250
|
+
}));
|
|
36251
|
+
}, "withoutTranscriptCopies");
|
|
36159
36252
|
var hitKey = /* @__PURE__ */ __name((item2) => item2.kind === "meeting" ? `${item2.ref}\0${item2.scope}\0${item2.id}` : item2.ref, "hitKey");
|
|
36160
36253
|
var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
36161
36254
|
const place = /* @__PURE__ */ new Map();
|
|
@@ -36184,7 +36277,7 @@ var insidePeriodFirst = /* @__PURE__ */ __name((ordered, period) => {
|
|
|
36184
36277
|
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);
|
|
36185
36278
|
}, "insidePeriodFirst");
|
|
36186
36279
|
|
|
36187
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
36188
36281
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
36189
36282
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
36190
36283
|
var DEFAULT_BACKEND = "both";
|
|
@@ -36373,7 +36466,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
36373
36466
|
return { report, sources };
|
|
36374
36467
|
}, "searchServer");
|
|
36375
36468
|
|
|
36376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36469
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
36377
36470
|
var DELETE_AT_ONCE = 10;
|
|
36378
36471
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
36379
36472
|
const files = fileLinks(attachments);
|
|
@@ -36813,7 +36906,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
36813
36906
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
36814
36907
|
}, "checkMediaOptions");
|
|
36815
36908
|
|
|
36816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36909
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
36817
36910
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
36818
36911
|
var RULES2 = {
|
|
36819
36912
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -36828,7 +36921,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES2
|
|
|
36828
36921
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
36829
36922
|
}), "classifyChannel");
|
|
36830
36923
|
|
|
36831
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
36832
36925
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
36833
36926
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
36834
36927
|
const store = await deps.store();
|
|
@@ -36914,7 +37007,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
36914
37007
|
};
|
|
36915
37008
|
}, "metadataService");
|
|
36916
37009
|
|
|
36917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
36918
37011
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
36919
37012
|
var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
36920
37013
|
const { chatId, title, rules, point, since, dryRun } = run2;
|
|
@@ -36951,7 +37044,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run2) => {
|
|
|
36951
37044
|
return { chatId, rows, notes };
|
|
36952
37045
|
}, "moderateWith");
|
|
36953
37046
|
|
|
36954
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37047
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
36955
37048
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
36956
37049
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
36957
37050
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -37029,7 +37122,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
37029
37122
|
}, "removePerson")
|
|
37030
37123
|
}), "moderatorOf");
|
|
37031
37124
|
|
|
37032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
37033
37126
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
37034
37127
|
id: note.id,
|
|
37035
37128
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -37073,7 +37166,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
37073
37166
|
};
|
|
37074
37167
|
}, "privatePeopleService");
|
|
37075
37168
|
|
|
37076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
37077
37170
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
37078
37171
|
total: 0,
|
|
37079
37172
|
population: 0,
|
|
@@ -37329,7 +37422,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
37329
37422
|
}, "evidence")
|
|
37330
37423
|
}), "rankingsService");
|
|
37331
37424
|
|
|
37332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
37333
37426
|
var FIELDS = ["date", "chat", "kind", "muted"];
|
|
37334
37427
|
var WAITING_TAIL = 100;
|
|
37335
37428
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -37463,7 +37556,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37463
37556
|
};
|
|
37464
37557
|
}, "replyStatsService");
|
|
37465
37558
|
|
|
37466
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
37467
37560
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
37468
37561
|
id: one.id,
|
|
37469
37562
|
name: one.name,
|
|
@@ -37589,7 +37682,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
37589
37682
|
};
|
|
37590
37683
|
}, "searchesService");
|
|
37591
37684
|
|
|
37592
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
37593
37686
|
var TAGGING_QUERY = {
|
|
37594
37687
|
entity: "tagging",
|
|
37595
37688
|
backend: "sql",
|
|
@@ -37673,7 +37766,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37673
37766
|
};
|
|
37674
37767
|
}, "tagsService");
|
|
37675
37768
|
|
|
37676
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
37677
37770
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
37678
37771
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
37679
37772
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -37872,10 +37965,10 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
37872
37965
|
};
|
|
37873
37966
|
}, "topicsService");
|
|
37874
37967
|
|
|
37875
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37968
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/crm/sync.js
|
|
37876
37969
|
var CLOCK_MARGIN = 60 * 6e4;
|
|
37877
37970
|
|
|
37878
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/crm/writer.js
|
|
37879
37972
|
var CRM_ASSIGN_OTHERS_KEY = "crm.assign-others";
|
|
37880
37973
|
var CRM_WRITE_DEFAULTS = {
|
|
37881
37974
|
"deals.delete": "ask",
|
|
@@ -37883,7 +37976,7 @@ var CRM_WRITE_DEFAULTS = {
|
|
|
37883
37976
|
[CRM_ASSIGN_OTHERS_KEY]: "deny"
|
|
37884
37977
|
};
|
|
37885
37978
|
|
|
37886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
37887
37980
|
import { createHash as createHash11, randomUUID as randomUUID6 } from "node:crypto";
|
|
37888
37981
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
37889
37982
|
var positive2 = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -37957,7 +38050,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
37957
38050
|
return { ...content, id: randomUUID6(), fingerprint: hash2(content) };
|
|
37958
38051
|
}, "prepareEvidencePacket");
|
|
37959
38052
|
|
|
37960
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
37961
38054
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
37962
38055
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
37963
38056
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -37977,7 +38070,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
37977
38070
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
37978
38071
|
}, "readEvidencePacket");
|
|
37979
38072
|
|
|
37980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38073
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
37981
38074
|
var scopeKeys = [
|
|
37982
38075
|
"accountId",
|
|
37983
38076
|
"meetingId",
|
|
@@ -37999,7 +38092,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
37999
38092
|
"maxVocabularyReadBytes"
|
|
38000
38093
|
]);
|
|
38001
38094
|
|
|
38002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38095
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/text-model-choice.js
|
|
38003
38096
|
import { createHash as createHash12 } from "node:crypto";
|
|
38004
38097
|
import { existsSync as existsSync2 } from "node:fs";
|
|
38005
38098
|
var useTextModel = /* @__PURE__ */ __name(async (id2, { env, command }) => {
|
|
@@ -38130,7 +38223,7 @@ var addCustomTextModel = /* @__PURE__ */ __name(async (id2, payload, { env, fetc
|
|
|
38130
38223
|
return { ...checked2.output, custom: true };
|
|
38131
38224
|
}, "addCustomTextModel");
|
|
38132
38225
|
|
|
38133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38226
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
38134
38227
|
var communicationFields = {
|
|
38135
38228
|
sources: pipe(array(strictObject({
|
|
38136
38229
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -38162,7 +38255,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
38162
38255
|
return { ...input, after, before: before2 };
|
|
38163
38256
|
}, "communicationRequest");
|
|
38164
38257
|
|
|
38165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
38166
38259
|
var MEETING_PREPARATION_LIMITS = {
|
|
38167
38260
|
meetings: { min: 1, max: 20, default: 5 },
|
|
38168
38261
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -38235,7 +38328,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
38235
38328
|
};
|
|
38236
38329
|
}, "validateMeetingPreparationRequest");
|
|
38237
38330
|
|
|
38238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
38239
38332
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
38240
38333
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
38241
38334
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -38283,7 +38376,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
38283
38376
|
}
|
|
38284
38377
|
}, "validatePreparationCommunications");
|
|
38285
38378
|
|
|
38286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
38287
38380
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
38288
38381
|
const installer = ports.installer();
|
|
38289
38382
|
const argv = updateCommand(installer, packageName);
|
|
@@ -38348,7 +38441,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
38348
38441
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
38349
38442
|
}, "dayAfter");
|
|
38350
38443
|
|
|
38351
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38444
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
38352
38445
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
38353
38446
|
const pictures = picturesService(deps);
|
|
38354
38447
|
const base = {
|
|
@@ -38385,7 +38478,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
38385
38478
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
38386
38479
|
}, "servicesFor");
|
|
38387
38480
|
|
|
38388
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
38389
38482
|
import { createHash as createHash13 } from "node:crypto";
|
|
38390
38483
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync6, rmSync as rmSync3 } from "node:fs";
|
|
38391
38484
|
import { createConnection, createServer } from "node:net";
|
|
@@ -38606,7 +38699,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options2) => new Promi
|
|
|
38606
38699
|
}, () => finish({ error: stopped() }));
|
|
38607
38700
|
}), "relayCommand");
|
|
38608
38701
|
|
|
38609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
38610
38703
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
38611
38704
|
close: /* @__PURE__ */ __name(async () => {
|
|
38612
38705
|
}, "close"),
|