@wirecat/mail-cli 0.16.3 → 0.18.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 +100 -0
- package/README.md +7 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-4CVOXA5Y.js} +10 -10
- package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-5VIKYINO.js} +6 -6
- package/dist/bundle/{app-server-QK7PKVT7.js → app-server-LTSQBDPF.js} +53 -50
- package/dist/bundle/{bun-2NMWL5YB.js → bun-C7DBRUW2.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-Y5JKT62B.js} +5 -5
- package/dist/bundle/{chunk-MLWN27HF.js → chunk-23HWKHPZ.js} +326 -288
- package/dist/bundle/{chunk-4IEDXIUN.js → chunk-2NWOYXPJ.js} +240 -64
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-3DQYO7FB.js} +1 -1
- package/dist/bundle/{chunk-I3K6JG4I.js → chunk-3W5H4TM7.js} +182 -60
- package/dist/bundle/{chunk-CGH6UH3T.js → chunk-3YRE6DNM.js} +8 -8
- package/dist/bundle/{chunk-LMN7SYX4.js → chunk-43I5XD7S.js} +1 -1
- package/dist/bundle/{chunk-KMZRXGTF.js → chunk-5S6Q3SWU.js} +4 -2
- package/dist/bundle/{chunk-XEIGKPYU.js → chunk-6RO5RDNR.js} +50 -3
- package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-7P4ICYJT.js} +1 -1
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-7SWWVDEZ.js} +4 -4
- package/dist/bundle/{chunk-4IIH5PXR.js → chunk-A5OMARL4.js} +28 -28
- package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-ACLILULA.js} +3 -3
- package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-AOMSP4EI.js} +6 -6
- package/dist/bundle/{chunk-G6RG2AZV.js → chunk-BHNBWFT5.js} +55 -8
- package/dist/bundle/{chunk-FHY664YS.js → chunk-BMFPCW6Q.js} +4 -4
- package/dist/bundle/{chunk-PWTEWT4M.js → chunk-BMGVKULS.js} +4 -4
- package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-BMV56JCL.js} +19 -19
- package/dist/bundle/{chunk-B2NDDA2W.js → chunk-C4RUKMDT.js} +16 -10
- package/dist/bundle/{chunk-XAANQN4R.js → chunk-C5T5K7HW.js} +208 -83
- package/dist/bundle/{chunk-7LMTWOTP.js → chunk-CPEN6BZZ.js} +2 -2
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-DALBYUPC.js} +2 -2
- package/dist/bundle/{chunk-6DVPPLAN.js → chunk-DPSH46NO.js} +5 -5
- package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-EFP5NN7I.js} +3 -3
- package/dist/bundle/{chunk-KJV3BI7S.js → chunk-ERBEBORA.js} +23 -21
- package/dist/bundle/{chunk-RPEW7E3S.js → chunk-FLOOPXOT.js} +12 -12
- package/dist/bundle/{chunk-R6SBRHVG.js → chunk-GLLLYACZ.js} +6 -6
- package/dist/bundle/{chunk-WKHHCCJE.js → chunk-GRP67IQ4.js} +56 -47
- package/dist/bundle/{chunk-5KPPP3QN.js → chunk-HFUS33UT.js} +14 -2
- package/dist/bundle/{chunk-TTOKDZQX.js → chunk-HTFBXGJF.js} +2 -2
- package/dist/bundle/{chunk-N7DLDEFU.js → chunk-IANOK5SE.js} +2 -2
- package/dist/bundle/{chunk-3CVDHJER.js → chunk-ITUC5WAV.js} +1 -1
- package/dist/bundle/{chunk-POS35G6D.js → chunk-JO3BIMYK.js} +3 -3
- package/dist/bundle/{chunk-EBEYU7RW.js → chunk-KVSC657S.js} +44 -143
- package/dist/bundle/{chunk-DDQXDX4U.js → chunk-L3YX7A5M.js} +7 -7
- package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-M7C4IGJ6.js} +8 -8
- package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-MCR43SWG.js} +4 -4
- package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-N5VEJ3E7.js} +97 -12
- package/dist/bundle/{chunk-IJYYD2JU.js → chunk-NDJZQCF3.js} +467 -231
- package/dist/bundle/{chunk-HN3EDDVX.js → chunk-OLJDZTHB.js} +13 -13
- package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-OMKPALMX.js} +2 -2
- package/dist/bundle/{chunk-X7EBOXBY.js → chunk-OUGGAAXI.js} +13235 -1228
- package/dist/bundle/{chunk-YGJO5VNR.js → chunk-P6WCG6X2.js} +36 -30
- package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-QPF4LTK5.js} +6 -6
- package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-RIO3TD3I.js} +1 -1
- package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RQSF7X22.js} +1 -1
- package/dist/bundle/{chunk-GAYW2JRW.js → chunk-SIYT2BBI.js} +10 -10
- package/dist/bundle/chunk-SMS5YNPB.js +64 -0
- package/dist/bundle/{chunk-PYX6K527.js → chunk-SW2KERUB.js} +648 -130
- package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-TVZ77ZOV.js} +2 -2
- package/dist/bundle/{chunk-DKIAHQRN.js → chunk-U43HUE35.js} +9 -9
- package/dist/bundle/{chunk-CT2MIWXY.js → chunk-UEGABYXI.js} +3 -3
- package/dist/bundle/{chunk-KV4267S4.js → chunk-UHC5I3JV.js} +1 -1
- package/dist/bundle/{chunk-EDJQDR5X.js → chunk-UWL2IOII.js} +4 -4
- package/dist/bundle/{chunk-M6O4DH5F.js → chunk-UXD5JMS5.js} +1 -1
- package/dist/bundle/{chunk-ANFIIXBL.js → chunk-WA3DQSAZ.js} +2 -2
- package/dist/bundle/{chunk-FROWEHK7.js → chunk-XGTW3GRX.js} +2 -2
- package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-YA2JPMYX.js} +2 -2
- package/dist/bundle/{chunk-CRYWPLJP.js → chunk-ZLH465EU.js} +1 -1
- package/dist/bundle/{chunk-HVAXTTOT.js → chunk-ZT2Y267T.js} +3 -3
- package/dist/bundle/command-contract-Y3GIKCPB.js +34 -0
- package/dist/bundle/{decode-WCS4KOHV.js → decode-WVIDLK4E.js} +5 -5
- package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-R5OF2FVZ.js} +8 -8
- package/dist/bundle/{dist-FL422DTA.js → dist-KGQWS3XL.js} +41 -23
- package/dist/bundle/{echarts-45D6USAX.js → echarts-VMKACZBF.js} +2 -2
- package/dist/bundle/{embed-4B4ATLCN.js → embed-EQINOOST.js} +6 -6
- package/dist/bundle/{embedder-ASWGJXNV.js → embedder-LM52TDRN.js} +9 -9
- package/dist/bundle/{failure-UDL5QZRZ.js → failure-WYKVF6RH.js} +2 -2
- package/dist/bundle/{first-run-5K3UD4BU.js → first-run-H4VXZAAF.js} +11 -11
- package/dist/bundle/first-screen-ZP74TJLK.js +32 -0
- package/dist/bundle/{instructions-6EFSPC7C.js → instructions-NLSME663.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-CFVG2OUS.js} +2 -2
- package/dist/bundle/{node-OXC26QXO.js → node-FGMSXLTA.js} +2 -2
- package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-K3T3ZRBY.js} +6 -6
- package/dist/bundle/{oauth-YK2QLC7U.js → oauth-OJKJ6JLH.js} +7 -7
- package/dist/bundle/{open-SABDXZ4B.js → open-DCYIXHXS.js} +5 -5
- package/dist/bundle/{openai-DPURPXEU.js → openai-C4H4W57J.js} +14 -14
- package/dist/bundle/{process-YWPAOI6G.js → process-MN4NSYGA.js} +1 -1
- package/dist/bundle/{program-4ILOQHLO.js → program-ZZZOKWCX.js} +4026 -12667
- package/dist/bundle/{prompt-GKVNFGFE.js → prompt-ELEJUDAU.js} +5 -5
- package/dist/bundle/{recognize-344YDSLX.js → recognize-G2FVMI5M.js} +4 -4
- package/dist/bundle/{remote-53UZUJJU.js → remote-F4YVSEYM.js} +7 -7
- package/dist/bundle/{rerank-PAIRND6R.js → rerank-7VM5R5N6.js} +7 -7
- package/dist/bundle/{serve-DZSO7LJK.js → serve-A7NRFPRN.js} +9 -9
- package/dist/bundle/{server-EGG3V67I.js → server-7R2BEIRY.js} +39 -39
- package/dist/bundle/server-DFJA2HBO.js +64 -0
- package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-4SKUB4EN.js} +6 -6
- package/dist/bundle/{state-LXPOWLZ5.js → state-S2FKK2XB.js} +6 -6
- package/dist/bundle/{store-PHT75I6S.js → store-4HAARQVR.js} +34 -26
- package/dist/bundle/{store-4ZMSK5R5.js → store-FLHO3UMA.js} +17 -15
- package/dist/bundle/store-maintenance-command-BINJIQ6F.js +54 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +56 -64
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/attachments.d.ts.map +1 -1
- package/dist/commands/attachments.js +15 -12
- package/dist/commands/attachments.js.map +1 -1
- package/dist/commands/context.d.ts +4 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +12 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/{mail → commands}/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/drafts-send.d.ts.map +1 -1
- package/dist/commands/drafts-send.js +12 -10
- package/dist/commands/drafts-send.js.map +1 -1
- package/dist/commands/drafts.d.ts.map +1 -1
- package/dist/commands/drafts.js +28 -14
- package/dist/commands/drafts.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +194 -195
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +19 -32
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +10 -5
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/messages.d.ts +0 -21
- package/dist/commands/messages.d.ts.map +1 -1
- package/dist/commands/messages.js +10 -278
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/organising.d.ts +98 -0
- package/dist/commands/organising.d.ts.map +1 -0
- package/dist/commands/organising.js +231 -0
- package/dist/commands/organising.js.map +1 -0
- package/dist/commands/restore.d.ts +3 -0
- package/dist/commands/restore.d.ts.map +1 -0
- package/dist/commands/restore.js +93 -0
- package/dist/commands/restore.js.map +1 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +3 -2
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/send.d.ts +14 -3
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +18 -11
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +14 -4
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/status.js +2 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +136 -141
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js +11 -7
- package/dist/commands/tags.js.map +1 -1
- package/dist/commands/words.d.ts +8 -0
- package/dist/commands/words.d.ts.map +1 -0
- package/dist/commands/words.js +52 -0
- package/dist/commands/words.js.map +1 -0
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +2 -1
- package/dist/discovery.js.map +1 -1
- package/dist/export/journal.d.ts +8 -6
- package/dist/export/journal.d.ts.map +1 -1
- package/dist/export/journal.js +39 -14
- package/dist/export/journal.js.map +1 -1
- package/dist/mail/changes.d.ts +9 -2
- package/dist/mail/changes.d.ts.map +1 -1
- package/dist/mail/changes.js +45 -17
- package/dist/mail/changes.js.map +1 -1
- package/dist/mail/cleanup.d.ts.map +1 -1
- package/dist/mail/cleanup.js +5 -1
- package/dist/mail/cleanup.js.map +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +24 -6
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/drafts.d.ts.map +1 -1
- package/dist/mail/drafts.js +9 -7
- package/dist/mail/drafts.js.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +8 -9
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +2 -2
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +8 -5
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/write.d.ts.map +1 -1
- package/dist/mail/imap/write.js +2 -1
- package/dist/mail/imap/write.js.map +1 -1
- package/dist/mail/locate.d.ts +32 -0
- package/dist/mail/locate.d.ts.map +1 -0
- package/dist/mail/locate.js +99 -0
- package/dist/mail/locate.js.map +1 -0
- package/dist/mail/mbox.d.ts.map +1 -1
- package/dist/mail/mbox.js +7 -5
- package/dist/mail/mbox.js.map +1 -1
- package/dist/mail/organise.d.ts +35 -50
- package/dist/mail/organise.d.ts.map +1 -1
- package/dist/mail/organise.js +44 -279
- package/dist/mail/organise.js.map +1 -1
- package/dist/mail/restore.d.ts +22 -0
- package/dist/mail/restore.d.ts.map +1 -0
- package/dist/mail/restore.js +193 -0
- package/dist/mail/restore.js.map +1 -0
- package/dist/mail/rules/apply.d.ts.map +1 -1
- package/dist/mail/rules/apply.js +5 -4
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +37 -8
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/filters.d.ts.map +1 -1
- package/dist/mail/rules/filters.js +13 -7
- package/dist/mail/rules/filters.js.map +1 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +7 -7
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/mail/save.js +1 -1
- package/dist/mail/save.js.map +1 -1
- package/dist/mail/send.d.ts +4 -3
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +8 -8
- package/dist/mail/send.js.map +1 -1
- package/dist/mail/smtp.js +1 -1
- package/dist/mail/smtp.js.map +1 -1
- package/dist/oauth.d.ts +3 -2
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +16 -7
- package/dist/oauth.js.map +1 -1
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +3 -2
- package/dist/profile.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/providers.js +3 -3
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +12 -0
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/mail-cli/SKILL.md +3 -3
- package/dist/bundle/chunk-GIKNAOER.js +0 -132
- package/dist/bundle/command-contract-GVNLRXWS.js +0 -34
- package/dist/bundle/first-screen-NNX54MYC.js +0 -32
- package/dist/bundle/server-SGGMRV2K.js +0 -64
- package/dist/bundle/store-maintenance-command-C6ONZNRX.js +0 -54
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
- package/dist/mail/doctor.d.ts.map +0 -1
- package/dist/mail/doctor.js.map +0 -1
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-QZLK2ISN.js} +0 -0
- /package/dist/{mail → commands}/doctor.d.ts +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
sameOrdinaryFile,
|
|
9
9
|
syncDirectory,
|
|
10
10
|
writeFileAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OLJDZTHB.js";
|
|
12
12
|
import {
|
|
13
13
|
MAX_ACTIONS,
|
|
14
14
|
ModerationRules,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
someUndone,
|
|
27
27
|
validateFormattedText,
|
|
28
28
|
visibleFormattedText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SIYT2BBI.js";
|
|
30
30
|
import {
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OMKPALMX.js";
|
|
33
33
|
import {
|
|
34
34
|
Command,
|
|
35
35
|
DEFAULT_IMAGE_MODEL,
|
|
@@ -69,17 +69,17 @@ import {
|
|
|
69
69
|
typedCommand,
|
|
70
70
|
vectorModelKey,
|
|
71
71
|
withAttempt
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-NDJZQCF3.js";
|
|
73
73
|
import {
|
|
74
74
|
isCliFailure
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-U43HUE35.js";
|
|
76
76
|
import {
|
|
77
77
|
isNewer,
|
|
78
78
|
updateCommand
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-UWL2IOII.js";
|
|
80
80
|
import {
|
|
81
81
|
remoteKey
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-ZT2Y267T.js";
|
|
83
83
|
import {
|
|
84
84
|
Unzip,
|
|
85
85
|
UnzipInflate,
|
|
@@ -90,11 +90,11 @@ import {
|
|
|
90
90
|
placedText,
|
|
91
91
|
runEmbedders,
|
|
92
92
|
textModelsDirectory
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-GLLLYACZ.js";
|
|
94
94
|
import {
|
|
95
95
|
installFiles,
|
|
96
96
|
megabytes
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-MCR43SWG.js";
|
|
98
98
|
import {
|
|
99
99
|
AGENDA_COLUMNS,
|
|
100
100
|
CHAT_COLUMNS,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
validateAst,
|
|
158
158
|
validateFields,
|
|
159
159
|
withoutField
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-OUGGAAXI.js";
|
|
161
161
|
import {
|
|
162
162
|
COUNTER_FIELDS,
|
|
163
163
|
INTERNAL_NOTES,
|
|
@@ -177,13 +177,13 @@ import {
|
|
|
177
177
|
providerNamed,
|
|
178
178
|
rankingOptions,
|
|
179
179
|
rankingQuestion
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-KVSC657S.js";
|
|
181
181
|
import {
|
|
182
182
|
TASK_KINDS,
|
|
183
183
|
TASK_STATES,
|
|
184
184
|
createTaskService,
|
|
185
185
|
isClosedState
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-N5VEJ3E7.js";
|
|
187
187
|
import {
|
|
188
188
|
EVENT_QUERY,
|
|
189
189
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -224,24 +224,24 @@ import {
|
|
|
224
224
|
validateQuery,
|
|
225
225
|
walkQuery,
|
|
226
226
|
zonedMoment
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-2NWOYXPJ.js";
|
|
228
228
|
import {
|
|
229
229
|
DEFAULT_STEMMERS,
|
|
230
230
|
createStemmer,
|
|
231
231
|
fold,
|
|
232
232
|
normalize
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-3YRE6DNM.js";
|
|
234
234
|
import {
|
|
235
235
|
DEFAULT_TASK_CATEGORIES,
|
|
236
236
|
FALLBACK_CATEGORY
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-QPF4LTK5.js";
|
|
238
238
|
import {
|
|
239
239
|
storePath,
|
|
240
240
|
wirecatDirectory
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-HTFBXGJF.js";
|
|
242
242
|
import {
|
|
243
243
|
resolvePaths
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-BMV56JCL.js";
|
|
245
245
|
import {
|
|
246
246
|
array,
|
|
247
247
|
boolean,
|
|
@@ -258,7 +258,7 @@ import {
|
|
|
258
258
|
safeParse,
|
|
259
259
|
strictObject,
|
|
260
260
|
string
|
|
261
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-BHNBWFT5.js";
|
|
262
262
|
import {
|
|
263
263
|
importFrom,
|
|
264
264
|
resolveFrom
|
|
@@ -267,7 +267,7 @@ import {
|
|
|
267
267
|
CliError,
|
|
268
268
|
isCliError,
|
|
269
269
|
singleLine
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-DALBYUPC.js";
|
|
271
271
|
import {
|
|
272
272
|
__commonJS,
|
|
273
273
|
__name,
|
|
@@ -16883,10 +16883,10 @@ var require_lib3 = __commonJS({
|
|
|
16883
16883
|
}
|
|
16884
16884
|
});
|
|
16885
16885
|
|
|
16886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/ports/traits.js
|
|
16887
16887
|
var syncsOneChat = /* @__PURE__ */ __name((messenger) => messenger.history !== "store" || messenger.historyOnDemand === true, "syncsOneChat");
|
|
16888
16888
|
|
|
16889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16889
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/conversations/link.js
|
|
16890
16890
|
var RULES_VERSION = 5;
|
|
16891
16891
|
var LOOK_BACK = 50;
|
|
16892
16892
|
var SAME_SENDER_WITHIN = 10;
|
|
@@ -16976,7 +16976,7 @@ var latest = /* @__PURE__ */ __name((window3, matches) => {
|
|
|
16976
16976
|
var sameThread = /* @__PURE__ */ __name((a, b) => a.threadId === b.threadId, "sameThread");
|
|
16977
16977
|
var link = /* @__PURE__ */ __name((message, parentId, source, kind, confidence, method) => ({ messageId: message.id, parentId, source, kind, confidence, method }), "link");
|
|
16978
16978
|
|
|
16979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
16980
16980
|
var COMMAND_NEEDS = {
|
|
16981
16981
|
"account update": ["updateProfile", "change the profile"],
|
|
16982
16982
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -17026,7 +17026,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
17026
17026
|
return group;
|
|
17027
17027
|
}, "hideNever");
|
|
17028
17028
|
|
|
17029
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17029
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/members-audit.js
|
|
17030
17030
|
var AUDIT_PAGE = 200;
|
|
17031
17031
|
var AUDIT_BUDGET = 10;
|
|
17032
17032
|
var AUDIT_PAUSE_MS = 1e3;
|
|
@@ -17106,7 +17106,7 @@ var burstJoins = /* @__PURE__ */ __name((members) => {
|
|
|
17106
17106
|
return found;
|
|
17107
17107
|
}, "burstJoins");
|
|
17108
17108
|
|
|
17109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
17110
17110
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
17111
17111
|
command.allowUnknownOption();
|
|
17112
17112
|
const parse = command.parseOptions.bind(command);
|
|
@@ -17126,7 +17126,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
17126
17126
|
return command;
|
|
17127
17127
|
}, "queryWordsAfterOptions");
|
|
17128
17128
|
|
|
17129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
17130
17130
|
var count = /* @__PURE__ */ __name((value) => {
|
|
17131
17131
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17132
17132
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -17168,7 +17168,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
17168
17168
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
17169
17169
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
17170
17170
|
|
|
17171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
17172
17172
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
17173
17173
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
17174
17174
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -17191,7 +17191,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
17191
17191
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
17192
17192
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
17193
17193
|
|
|
17194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17194
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
17195
17195
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
17196
17196
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
17197
17197
|
const zone = timezoneOf();
|
|
@@ -17277,7 +17277,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
17277
17277
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
17278
17278
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
17279
17279
|
|
|
17280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
17281
17281
|
var integer3 = /* @__PURE__ */ __name((text2) => {
|
|
17282
17282
|
if (!/^[1-9]\d*$/.test(text2) || !Number.isSafeInteger(Number(text2)))
|
|
17283
17283
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -17356,14 +17356,15 @@ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17356
17356
|
offline: false,
|
|
17357
17357
|
output: { entity: "meeting_ingestion" }
|
|
17358
17358
|
}).description("bring the stored meetings up to date from the connected account")).option("--since-time <time>", "fetch meetings starting at or after this ISO 8601 date or time", date).option("--lookback-days <days>", "revisit recent occurrences for late transcripts (0\u201331)", lookbackDays, 0).action(async (opts, command) => {
|
|
17359
|
-
|
|
17359
|
+
const source = deps.source;
|
|
17360
|
+
if (!source)
|
|
17360
17361
|
throw new MeetingError("configuration_error", "meeting source is unavailable");
|
|
17361
|
-
print(await pull(
|
|
17362
|
+
await deps.inRun(command, async () => print(await pull(source, deps.store, {
|
|
17362
17363
|
accountId: deps.accountId,
|
|
17363
17364
|
since: opts.sinceTime === void 0 ? void 0 : new Date(opts.sinceTime).toISOString(),
|
|
17364
17365
|
now: deps.now?.(),
|
|
17365
17366
|
lookbackMs: opts.lookbackDays * 864e5
|
|
17366
|
-
}), command);
|
|
17367
|
+
}), command));
|
|
17367
17368
|
});
|
|
17368
17369
|
const importCommand = annotate(group.command("import"), {
|
|
17369
17370
|
effects: LOCAL_WRITE,
|
|
@@ -17409,7 +17410,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17409
17410
|
}, "addMeetingCommandsDefinition");
|
|
17410
17411
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17411
17412
|
|
|
17412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17413
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17413
17414
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17414
17415
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17415
17416
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17542,7 +17543,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17542
17543
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17543
17544
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17544
17545
|
|
|
17545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17546
17547
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17547
17548
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17548
17549
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17551,7 +17552,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17551
17552
|
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");
|
|
17552
17553
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17553
17554
|
|
|
17554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17555
17556
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17556
17557
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17557
17558
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17813,7 +17814,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17813
17814
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17814
17815
|
}), "sessionAnswer");
|
|
17815
17816
|
|
|
17816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17817
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17817
17818
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17818
17819
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17819
17820
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17877,7 +17878,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17877
17878
|
}), "storedDeps");
|
|
17878
17879
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17879
17880
|
|
|
17880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17881
17882
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17882
17883
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17883
17884
|
if (key in own)
|
|
@@ -17894,12 +17895,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17894
17895
|
return found.bind(adapter);
|
|
17895
17896
|
}, "capability");
|
|
17896
17897
|
|
|
17897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17898
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17898
17899
|
import { randomBytes } from "node:crypto";
|
|
17899
17900
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17900
17901
|
var newOperationId = newSendId;
|
|
17901
17902
|
|
|
17902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17903
17904
|
var LINKS = /https?:\/\/\S+/g;
|
|
17904
17905
|
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");
|
|
17905
17906
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17929,7 +17930,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17929
17930
|
});
|
|
17930
17931
|
}, "questions");
|
|
17931
17932
|
|
|
17932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17933
17934
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17934
17935
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17935
17936
|
const name = typed.trim().toLowerCase();
|
|
@@ -17963,7 +17964,7 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17963
17964
|
const stem = stemmersOf();
|
|
17964
17965
|
const english = stem.english.stemTokens(text2);
|
|
17965
17966
|
const spanish = readsSpanish(text2) ? stem.spanish.stemTokens(text2) : [];
|
|
17966
|
-
const
|
|
17967
|
+
const counted2 = [];
|
|
17967
17968
|
for (const triggers of triggerStems(categories)) {
|
|
17968
17969
|
const hit = /* @__PURE__ */ new Set();
|
|
17969
17970
|
english.forEach((word, at) => {
|
|
@@ -17973,20 +17974,20 @@ var hitsByList = /* @__PURE__ */ __name((text2, categories) => {
|
|
|
17973
17974
|
else if (other !== void 0 && triggers.spanish.has(other))
|
|
17974
17975
|
hit.add(other);
|
|
17975
17976
|
});
|
|
17976
|
-
|
|
17977
|
+
counted2.push({ name: triggers.name, hits: hit.size });
|
|
17977
17978
|
}
|
|
17978
|
-
return
|
|
17979
|
+
return counted2;
|
|
17979
17980
|
}, "hitsByList");
|
|
17980
17981
|
var listsHit = /* @__PURE__ */ __name((text2, categories) => hitsByList(text2, categories).filter(({ hits }) => hits > 0).map(({ name }) => name), "listsHit");
|
|
17981
17982
|
var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGORIES) => {
|
|
17982
17983
|
let best = { name: FALLBACK_CATEGORY, hits: 0 };
|
|
17983
|
-
for (const
|
|
17984
|
-
if (
|
|
17985
|
-
best =
|
|
17984
|
+
for (const counted2 of hitsByList(text2, categories))
|
|
17985
|
+
if (counted2.hits > best.hits)
|
|
17986
|
+
best = counted2;
|
|
17986
17987
|
return best.name;
|
|
17987
17988
|
}, "categorize");
|
|
17988
17989
|
|
|
17989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17990
17991
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17991
17992
|
var RULES_IN = {
|
|
17992
17993
|
dialog: "all",
|
|
@@ -18192,7 +18193,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18192
18193
|
return passes;
|
|
18193
18194
|
}, "applyTaskRulesToChats");
|
|
18194
18195
|
|
|
18195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18196
18197
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18197
18198
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18198
18199
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18232,7 +18233,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18232
18233
|
};
|
|
18233
18234
|
}, "dateWindow");
|
|
18234
18235
|
|
|
18235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18236
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18236
18237
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18237
18238
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18238
18239
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18255,10 +18256,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18255
18256
|
}
|
|
18256
18257
|
}, "patiently");
|
|
18257
18258
|
|
|
18258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18259
18260
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18260
18261
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18262
18263
|
var REQUEST_MS = 400;
|
|
18263
18264
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18264
18265
|
const lowest = ranges[0];
|
|
@@ -18281,13 +18282,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18281
18282
|
};
|
|
18282
18283
|
}, "estimateBackfill");
|
|
18283
18284
|
|
|
18284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18285
18286
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18286
18287
|
...error,
|
|
18287
18288
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18288
18289
|
}), "withRecovery");
|
|
18289
18290
|
|
|
18290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18291
18292
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18292
18293
|
if (isCliFailure(error))
|
|
18293
18294
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18370,7 +18371,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18370
18371
|
};
|
|
18371
18372
|
}, "mergeBatches");
|
|
18372
18373
|
|
|
18373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18374
18375
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18375
18376
|
if (deps.reads !== "store")
|
|
18376
18377
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18529,7 +18530,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18529
18530
|
}
|
|
18530
18531
|
}, "senderAmong");
|
|
18531
18532
|
|
|
18532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18533
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18533
18534
|
var CONTEXT_MESSAGES = 3;
|
|
18534
18535
|
var CONTEXT_MINUTES = 10;
|
|
18535
18536
|
var MAX_CHARS = 1200;
|
|
@@ -18553,12 +18554,12 @@ var context = {
|
|
|
18553
18554
|
}, "describe")
|
|
18554
18555
|
};
|
|
18555
18556
|
|
|
18556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18557
18558
|
var BUILT_INS = [context];
|
|
18558
18559
|
var providers = [...BUILT_INS];
|
|
18559
18560
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18560
18561
|
|
|
18561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18562
18563
|
var READ_PAGE = 5e3;
|
|
18563
18564
|
var CHAIN = 50;
|
|
18564
18565
|
var CONVERSATION_QUERY = {
|
|
@@ -18710,7 +18711,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18710
18711
|
return size2;
|
|
18711
18712
|
}, "sized");
|
|
18712
18713
|
|
|
18713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18714
18715
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18715
18716
|
var MESSAGE_PAGE = 5e3;
|
|
18716
18717
|
var PER_SESSION = 8;
|
|
@@ -18729,7 +18730,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18729
18730
|
price: remote.price,
|
|
18730
18731
|
installed: true,
|
|
18731
18732
|
perBatch: PER_REQUEST * concurrency,
|
|
18732
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18733
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-F4YVSEYM.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18733
18734
|
};
|
|
18734
18735
|
}
|
|
18735
18736
|
const model = textModel(choice);
|
|
@@ -18746,7 +18747,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18746
18747
|
if (!isTextModelInstalled(model, directory2))
|
|
18747
18748
|
throw notDownloaded(model.id);
|
|
18748
18749
|
if (apart) {
|
|
18749
|
-
const { openProcess } = await import("./process-
|
|
18750
|
+
const { openProcess } = await import("./process-MN4NSYGA.js");
|
|
18750
18751
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18751
18752
|
}
|
|
18752
18753
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19035,7 +19036,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19035
19036
|
return { ...one, state };
|
|
19036
19037
|
}, "shaped");
|
|
19037
19038
|
|
|
19038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19039
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19039
19040
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19040
19041
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19041
19042
|
for (const [key, value, maximum] of [
|
|
@@ -19088,7 +19089,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19088
19089
|
}
|
|
19089
19090
|
}, "catchUpSearch");
|
|
19090
19091
|
|
|
19091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19092
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19092
19093
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19093
19094
|
if (deps.reads === "store") {
|
|
19094
19095
|
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`);
|
|
@@ -19454,7 +19455,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19454
19455
|
return message?.timestamp ?? fallback;
|
|
19455
19456
|
}, "timeOfKey");
|
|
19456
19457
|
|
|
19457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19458
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
19458
19459
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
19459
19460
|
import { open, stat } from "node:fs/promises";
|
|
19460
19461
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -19656,7 +19657,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
19656
19657
|
return { name, source };
|
|
19657
19658
|
}, "readStickerFile");
|
|
19658
19659
|
|
|
19659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19660
19661
|
var DAY_MS = 864e5;
|
|
19661
19662
|
var NEW_DAYS = 30;
|
|
19662
19663
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19733,7 +19734,23 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19733
19734
|
};
|
|
19734
19735
|
}, "scorePerson");
|
|
19735
19736
|
|
|
19736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19738
|
+
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19739
|
+
const controller = new AbortController();
|
|
19740
|
+
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
19741
|
+
timer.unref();
|
|
19742
|
+
return { signal: controller.signal, clear: /* @__PURE__ */ __name(() => clearTimeout(timer), "clear") };
|
|
19743
|
+
}, "timeLimit");
|
|
19744
|
+
var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
19745
|
+
const limit = timeLimit(ms);
|
|
19746
|
+
try {
|
|
19747
|
+
return await run(limit.signal);
|
|
19748
|
+
} finally {
|
|
19749
|
+
limit.clear();
|
|
19750
|
+
}
|
|
19751
|
+
}, "withTimeLimit");
|
|
19752
|
+
|
|
19753
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19737
19754
|
var REGISTRIES = {
|
|
19738
19755
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19739
19756
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19742,16 +19759,18 @@ var TIMEOUT_MS = 1e4;
|
|
|
19742
19759
|
var askRegistries = /* @__PURE__ */ __name(async (id2, options = {}) => Promise.all([askCas(id2, options), askLols(id2, options)]), "askRegistries");
|
|
19743
19760
|
var getJson = /* @__PURE__ */ __name(async (url, headers, { fetch: fetchFn = fetch, timeoutMs = TIMEOUT_MS }) => {
|
|
19744
19761
|
try {
|
|
19745
|
-
const
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19762
|
+
const { status, text: text2 } = await withTimeLimit(timeoutMs, async (signal) => {
|
|
19763
|
+
const response = await fetchFn(url, {
|
|
19764
|
+
headers: { accept: "application/json", ...headers },
|
|
19765
|
+
signal,
|
|
19766
|
+
redirect: "error"
|
|
19767
|
+
});
|
|
19768
|
+
return { status: response.status, text: await response.text() };
|
|
19749
19769
|
});
|
|
19750
|
-
const text2 = await response.text();
|
|
19751
19770
|
try {
|
|
19752
|
-
return { status
|
|
19771
|
+
return { status, body: JSON.parse(text2) };
|
|
19753
19772
|
} catch {
|
|
19754
|
-
return { failed: `answered ${
|
|
19773
|
+
return { failed: `answered ${status} with something that is not JSON` };
|
|
19755
19774
|
}
|
|
19756
19775
|
} catch (error) {
|
|
19757
19776
|
return {
|
|
@@ -19818,7 +19837,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19818
19837
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19819
19838
|
})), "notCovered");
|
|
19820
19839
|
|
|
19821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19822
19841
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19823
19842
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19824
19843
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19906,7 +19925,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19906
19925
|
};
|
|
19907
19926
|
}, "botCheckService");
|
|
19908
19927
|
|
|
19909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19910
19929
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19911
19930
|
if (value === void 0)
|
|
19912
19931
|
return void 0;
|
|
@@ -19916,7 +19935,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19916
19935
|
return id2;
|
|
19917
19936
|
}, "threadIdOf");
|
|
19918
19937
|
|
|
19919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19938
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19920
19939
|
var TOP_POSTS = 5;
|
|
19921
19940
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19922
19941
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20033,7 +20052,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20033
20052
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20034
20053
|
}, "median");
|
|
20035
20054
|
|
|
20036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20055
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20037
20056
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20038
20057
|
const events = [];
|
|
20039
20058
|
for (const stay of stays) {
|
|
@@ -20065,7 +20084,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20065
20084
|
return events.filter(({ at }) => Date.parse(at) >= since).sort((a, b) => Date.parse(a.at) - Date.parse(b.at) || a.id.localeCompare(b.id));
|
|
20066
20085
|
}, "memberEvents");
|
|
20067
20086
|
|
|
20068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20069
20088
|
var EVENTS_DAYS = 7;
|
|
20070
20089
|
var TRACKED_DAYS = 30;
|
|
20071
20090
|
var STATS_PAGE = 1e3;
|
|
@@ -20183,8 +20202,8 @@ var chatsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
20183
20202
|
});
|
|
20184
20203
|
const counts = await store.roster.memberCounts(chatId, { since: new Date(from).toISOString().slice(0, 10) });
|
|
20185
20204
|
const known2 = unrecorded ? { ...stats, complete: false, membersUnrecorded: true } : stats;
|
|
20186
|
-
const
|
|
20187
|
-
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ?
|
|
20205
|
+
const counted2 = counts.length > 0 ? { ...known2, memberCounts: counts } : known2;
|
|
20206
|
+
return completeness.state === "complete" || !syncsOneChat(deps.messenger) ? counted2 : { ...counted2, fetch: typedCommand(deps.messenger.app.command, `messages sync ${chatId}`) };
|
|
20188
20207
|
}, "stats"),
|
|
20189
20208
|
sendAs: /* @__PURE__ */ __name(async (chat) => {
|
|
20190
20209
|
if (deps.offline) {
|
|
@@ -20360,7 +20379,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20360
20379
|
return members.length === 0 ? null : members;
|
|
20361
20380
|
}, "storedMembers");
|
|
20362
20381
|
|
|
20363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20364
20383
|
var INBOX_CHATS = 20;
|
|
20365
20384
|
var REVIEW_DAYS = 3;
|
|
20366
20385
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20568,7 +20587,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20568
20587
|
};
|
|
20569
20588
|
}, "inboxService");
|
|
20570
20589
|
|
|
20571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20590
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20572
20591
|
var CONTEXT_MESSAGES2 = 10;
|
|
20573
20592
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20574
20593
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20829,10 +20848,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20829
20848
|
};
|
|
20830
20849
|
}, "personMessages");
|
|
20831
20850
|
|
|
20832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20833
20852
|
import { createHash } from "node:crypto";
|
|
20834
20853
|
|
|
20835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20836
20855
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20837
20856
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20838
20857
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20850,7 +20869,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20850
20869
|
return { parsed, meeting };
|
|
20851
20870
|
}, "authorizedMeetingMetadata");
|
|
20852
20871
|
|
|
20853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20854
20873
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20855
20874
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20856
20875
|
if (signal?.aborted)
|
|
@@ -21049,7 +21068,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21049
21068
|
return { ...packet, fingerprint: hash(packet) };
|
|
21050
21069
|
}, "readMeetingEvidence");
|
|
21051
21070
|
|
|
21052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21053
21072
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21054
21073
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21055
21074
|
const requestedAccounts = options.accountIds;
|
|
@@ -21148,7 +21167,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21148
21167
|
};
|
|
21149
21168
|
}, "personMeetingContext");
|
|
21150
21169
|
|
|
21151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21170
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21152
21171
|
var PREPARE_BYTES = 96 * 1024;
|
|
21153
21172
|
var MEETINGS = 5;
|
|
21154
21173
|
var CUES = 3;
|
|
@@ -21265,7 +21284,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21265
21284
|
}
|
|
21266
21285
|
}, "meetingsOf");
|
|
21267
21286
|
|
|
21268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21287
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21269
21288
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21270
21289
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21271
21290
|
const held = await storeIfOpen(deps);
|
|
@@ -21335,7 +21354,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21335
21354
|
complete: false
|
|
21336
21355
|
})), "quiet");
|
|
21337
21356
|
|
|
21338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21339
21358
|
var TIMELINE_ITEMS = 50;
|
|
21340
21359
|
var TIMELINE_MAX = 500;
|
|
21341
21360
|
var SCOPES = ["personal", "work"];
|
|
@@ -21390,7 +21409,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21390
21409
|
};
|
|
21391
21410
|
}, "personTimeline");
|
|
21392
21411
|
|
|
21393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21394
21413
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21395
21414
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21396
21415
|
const held = await storeIfOpen(deps);
|
|
@@ -21617,7 +21636,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21617
21636
|
return rest;
|
|
21618
21637
|
}, "withoutPhone");
|
|
21619
21638
|
|
|
21620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21621
21640
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21622
21641
|
var PERIOD_FIELD = "created";
|
|
21623
21642
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21720,7 +21739,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21720
21739
|
}));
|
|
21721
21740
|
}, "meetingNames");
|
|
21722
21741
|
|
|
21723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21724
21743
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21725
21744
|
const tags = /* @__PURE__ */ new Map();
|
|
21726
21745
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21729,7 +21748,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21729
21748
|
return tags;
|
|
21730
21749
|
}, "taskTagFilters");
|
|
21731
21750
|
|
|
21732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21733
21752
|
var TASK_QUERY = {
|
|
21734
21753
|
entity: "task",
|
|
21735
21754
|
backend: "sql",
|
|
@@ -22221,7 +22240,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22221
22240
|
};
|
|
22222
22241
|
}, "taskView");
|
|
22223
22242
|
|
|
22224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22243
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22225
22244
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22226
22245
|
if (newest === null)
|
|
22227
22246
|
return null;
|
|
@@ -22230,7 +22249,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22230
22249
|
return newest.addressed ? "owed" : null;
|
|
22231
22250
|
}, "mailTurn");
|
|
22232
22251
|
|
|
22233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22234
22253
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22235
22254
|
if (error instanceof CliError && error.code === "not_found")
|
|
22236
22255
|
return void 0;
|
|
@@ -22288,7 +22307,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22288
22307
|
};
|
|
22289
22308
|
}, "mailActivity");
|
|
22290
22309
|
|
|
22291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22292
22311
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22293
22312
|
const ids = [...new Set(chatIds)];
|
|
22294
22313
|
if (ids.length === 0)
|
|
@@ -22314,7 +22333,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22314
22333
|
}));
|
|
22315
22334
|
}, "chatCoverage");
|
|
22316
22335
|
|
|
22317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22336
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22318
22337
|
var DAY = 864e5;
|
|
22319
22338
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22320
22339
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22561,7 +22580,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22561
22580
|
};
|
|
22562
22581
|
}, "agendaItem");
|
|
22563
22582
|
|
|
22564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22565
22584
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22566
22585
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22567
22586
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22625,7 +22644,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22625
22644
|
}
|
|
22626
22645
|
}, "validateContextEvidencePage");
|
|
22627
22646
|
|
|
22628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22629
22648
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22630
22649
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22631
22650
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22678,7 +22697,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22678
22697
|
};
|
|
22679
22698
|
}, "contextReadBudget");
|
|
22680
22699
|
|
|
22681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22700
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22682
22701
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22683
22702
|
if (!port || typeof port.read !== "function")
|
|
22684
22703
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22722,7 +22741,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22722
22741
|
};
|
|
22723
22742
|
}, "createContextEvidenceReader");
|
|
22724
22743
|
|
|
22725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22726
22745
|
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");
|
|
22727
22746
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22728
22747
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22738,7 +22757,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22738
22757
|
}, "excerpt");
|
|
22739
22758
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22740
22759
|
|
|
22741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22760
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22742
22761
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22743
22762
|
var DEFAULT_PURPOSES = ["work"];
|
|
22744
22763
|
var LINK_PURPOSE = "work";
|
|
@@ -22768,7 +22787,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22768
22787
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22769
22788
|
], "purposeList");
|
|
22770
22789
|
|
|
22771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22772
22791
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22773
22792
|
async around(ref, window3) {
|
|
22774
22793
|
const at = parseLocator(ref);
|
|
@@ -22863,7 +22882,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22863
22882
|
};
|
|
22864
22883
|
}, "storedNeighbours");
|
|
22865
22884
|
|
|
22866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22867
22886
|
import { createHash as createHash2 } from "node:crypto";
|
|
22868
22887
|
var DAY2 = 864e5;
|
|
22869
22888
|
var MAX_TIME = 864e13;
|
|
@@ -23179,7 +23198,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23179
23198
|
return value;
|
|
23180
23199
|
}, "decodeCheckpoint");
|
|
23181
23200
|
|
|
23182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23201
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23183
23202
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23184
23203
|
var PAGE2 = 20;
|
|
23185
23204
|
var PEOPLE = 20;
|
|
@@ -23583,7 +23602,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23583
23602
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23584
23603
|
}, "peopleOf");
|
|
23585
23604
|
|
|
23586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23587
23606
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23588
23607
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23589
23608
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23627,7 +23646,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23627
23646
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23628
23647
|
}, "matchVocabularyTerms");
|
|
23629
23648
|
|
|
23630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23631
23650
|
var KINDS = ["project", "tag", "topic"];
|
|
23632
23651
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23633
23652
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23682,7 +23701,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23682
23701
|
};
|
|
23683
23702
|
}, "findEvidenceMentions");
|
|
23684
23703
|
|
|
23685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23704
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23686
23705
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23687
23706
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23688
23707
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23950,7 +23969,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23950
23969
|
const leftOut = [];
|
|
23951
23970
|
for (const one of all.filter((chat) => !purposeRead(purposes, chat.purpose))) {
|
|
23952
23971
|
const account = { provider: one.provider, account: one.account };
|
|
23953
|
-
const [
|
|
23972
|
+
const [counted2, [held]] = await Promise.all([
|
|
23954
23973
|
count4(account, one.chat, { since: gathered.window.after, until: gathered.window.before }),
|
|
23955
23974
|
chatCoverage(store, account, [one.chat])
|
|
23956
23975
|
]);
|
|
@@ -23963,7 +23982,7 @@ var gatherStoredProject = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
23963
23982
|
purpose: one.purpose ?? LINK_PURPOSE,
|
|
23964
23983
|
relationship: one.relationship,
|
|
23965
23984
|
...one.proposed ? { proposed: one.proposed } : {},
|
|
23966
|
-
...
|
|
23985
|
+
...counted2
|
|
23967
23986
|
});
|
|
23968
23987
|
}
|
|
23969
23988
|
return {
|
|
@@ -23988,18 +24007,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23988
24007
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23989
24008
|
}, "purposeHintOf");
|
|
23990
24009
|
|
|
23991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
23992
24011
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
23993
24012
|
|
|
23994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
23995
24014
|
import { lstat } from "node:fs/promises";
|
|
23996
24015
|
|
|
23997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24016
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
23998
24017
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
23999
24018
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24000
24019
|
import { join as join2 } from "node:path";
|
|
24001
24020
|
|
|
24002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24003
24022
|
import { createHash as createHash3 } from "node:crypto";
|
|
24004
24023
|
var metadataLimit = 16384;
|
|
24005
24024
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24059,7 +24078,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24059
24078
|
}
|
|
24060
24079
|
}, "readPartialMetadata");
|
|
24061
24080
|
|
|
24062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24063
24082
|
import { randomUUID } from "node:crypto";
|
|
24064
24083
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
24065
24084
|
import { join } from "node:path";
|
|
@@ -24151,7 +24170,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24151
24170
|
};
|
|
24152
24171
|
}, "partialWriter");
|
|
24153
24172
|
|
|
24154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24155
24174
|
var NativeRecordingPartialStore = class {
|
|
24156
24175
|
static {
|
|
24157
24176
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24258,12 +24277,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24258
24277
|
}
|
|
24259
24278
|
};
|
|
24260
24279
|
|
|
24261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24262
24281
|
import { createHash as createHash5 } from "node:crypto";
|
|
24263
24282
|
import { link as link2 } from "node:fs/promises";
|
|
24264
24283
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
24265
24284
|
|
|
24266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24285
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24267
24286
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24268
24287
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24269
24288
|
signal?.throwIfAborted();
|
|
@@ -24298,7 +24317,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24298
24317
|
signal?.throwIfAborted();
|
|
24299
24318
|
}, "commitPublication");
|
|
24300
24319
|
|
|
24301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24320
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24302
24321
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24303
24322
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24304
24323
|
import { join as join3 } from "node:path";
|
|
@@ -24371,7 +24390,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24371
24390
|
}
|
|
24372
24391
|
}, "writePublicationJournal");
|
|
24373
24392
|
|
|
24374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24393
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24375
24394
|
var NativeRecordingPublication = class {
|
|
24376
24395
|
static {
|
|
24377
24396
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24444,7 +24463,7 @@ var NativeRecordingPublication = class {
|
|
|
24444
24463
|
}
|
|
24445
24464
|
};
|
|
24446
24465
|
|
|
24447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24448
24467
|
import { createHash as createHash6 } from "node:crypto";
|
|
24449
24468
|
import { readdir } from "node:fs/promises";
|
|
24450
24469
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -24531,7 +24550,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24531
24550
|
beforePublish
|
|
24532
24551
|
}), "commitMediaEntry");
|
|
24533
24552
|
|
|
24534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24535
24554
|
var validator = '"media-completed-v1"';
|
|
24536
24555
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24537
24556
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24632,7 +24651,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24632
24651
|
return entry;
|
|
24633
24652
|
}, "archiveMediaFile");
|
|
24634
24653
|
|
|
24635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24636
24655
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24637
24656
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
24638
24657
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24699,7 +24718,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24699
24718
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24700
24719
|
}, "withMediaArchiveLocks");
|
|
24701
24720
|
|
|
24702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24703
24722
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24704
24723
|
if (value === void 0)
|
|
24705
24724
|
return void 0;
|
|
@@ -24852,7 +24871,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24852
24871
|
}, { create: true });
|
|
24853
24872
|
}, "archiveMedia");
|
|
24854
24873
|
|
|
24855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24856
24875
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24857
24876
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
24858
24877
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25005,7 +25024,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
25005
25024
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
25006
25025
|
}, "moveMediaArchive");
|
|
25007
25026
|
|
|
25008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25027
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25009
25028
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
25010
25029
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25011
25030
|
}, "progress") }) => {
|
|
@@ -25028,7 +25047,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25028
25047
|
}
|
|
25029
25048
|
await nativeRuntime({ env, progress });
|
|
25030
25049
|
progress(`${model.id}: loading it once to check it works`);
|
|
25031
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25050
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-EQINOOST.js");
|
|
25032
25051
|
const embedder = await openEmbedder2(model, directory2);
|
|
25033
25052
|
try {
|
|
25034
25053
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25049,7 +25068,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25049
25068
|
}
|
|
25050
25069
|
await nativeRuntime({ env, progress });
|
|
25051
25070
|
progress(`${model.id}: loading it once to check it works`);
|
|
25052
|
-
const { openReranker } = await import("./rerank-
|
|
25071
|
+
const { openReranker } = await import("./rerank-7VM5R5N6.js");
|
|
25053
25072
|
const reranker = await openReranker(model, directory2);
|
|
25054
25073
|
try {
|
|
25055
25074
|
await reranker.score("check", ["check"]);
|
|
@@ -25067,7 +25086,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25067
25086
|
await installFiles(placedImage(model, directory2), { progress });
|
|
25068
25087
|
}
|
|
25069
25088
|
progress(`${model.id}: loading it once to check it works`);
|
|
25070
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25089
|
+
const { openPictureEmbedder } = await import("./embedder-LM52TDRN.js");
|
|
25071
25090
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25072
25091
|
try {
|
|
25073
25092
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25079,7 +25098,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25079
25098
|
return { model, directory: directory2 };
|
|
25080
25099
|
}, "downloadImageModel");
|
|
25081
25100
|
|
|
25082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25101
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25083
25102
|
var MONEY_REQUEST = "money-request";
|
|
25084
25103
|
var MONEY_DONE = "money-done";
|
|
25085
25104
|
var PROMISE = "promise";
|
|
@@ -25113,10 +25132,10 @@ var MONEY_WORDS = [
|
|
|
25113
25132
|
}
|
|
25114
25133
|
];
|
|
25115
25134
|
|
|
25116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25117
25136
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25118
25137
|
|
|
25119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25120
25139
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25121
25140
|
var MONEY_DONE_FORMS = words([
|
|
25122
25141
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25156,7 +25175,7 @@ var PROMISE_FORMS = words([
|
|
|
25156
25175
|
"estar\xE1 listo"
|
|
25157
25176
|
]);
|
|
25158
25177
|
|
|
25159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25160
25179
|
var EXCERPT_CHARS = 80;
|
|
25161
25180
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25162
25181
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25178,7 +25197,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25178
25197
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25179
25198
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25180
25199
|
|
|
25181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25182
25201
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25183
25202
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25184
25203
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25218,10 +25237,10 @@ var rowsOf = /* @__PURE__ */ __name((chat) => chat.messages.flatMap((message) =>
|
|
|
25218
25237
|
var centsText = /* @__PURE__ */ __name((cents) => `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, "0")}`, "centsText");
|
|
25219
25238
|
var amounts = {
|
|
25220
25239
|
id: "amounts",
|
|
25221
|
-
version:
|
|
25240
|
+
version: 3,
|
|
25222
25241
|
scope: "chat",
|
|
25223
|
-
read: /* @__PURE__ */ __name(async (
|
|
25224
|
-
if (!chat)
|
|
25242
|
+
read: /* @__PURE__ */ __name(async (context2, chat) => {
|
|
25243
|
+
if (!chat || context2.books)
|
|
25225
25244
|
return [];
|
|
25226
25245
|
const groups = /* @__PURE__ */ new Map();
|
|
25227
25246
|
for (const row of rowsOf(chat)) {
|
|
@@ -25234,7 +25253,8 @@ var amounts = {
|
|
|
25234
25253
|
const lastAsk = asks.at(-1);
|
|
25235
25254
|
const first2 = asks[0] ?? done2[0] ?? rows[0];
|
|
25236
25255
|
const paidAfter = done2.some((row) => !lastAsk || Date.parse(row.message.timestamp) >= Date.parse(lastAsk.message.timestamp));
|
|
25237
|
-
const
|
|
25256
|
+
const paid2 = asks.length ? paidAfter : done2.length > 0;
|
|
25257
|
+
const state = paid2 ? "paid-mentioned" : asks.length ? "asked" : "mentioned";
|
|
25238
25258
|
const cited = asks.length ? [...asks, ...paidAfter ? done2.slice(-1) : []] : rows;
|
|
25239
25259
|
return {
|
|
25240
25260
|
signal: "amounts",
|
|
@@ -25255,10 +25275,10 @@ var amounts = {
|
|
|
25255
25275
|
};
|
|
25256
25276
|
});
|
|
25257
25277
|
}, "read"),
|
|
25258
|
-
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "
|
|
25278
|
+
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "asked" ? [{ chat: item2.chat, weight: 2, why: "money asked" }] : []), "attention")
|
|
25259
25279
|
};
|
|
25260
25280
|
|
|
25261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25262
25282
|
var children = {
|
|
25263
25283
|
id: "children",
|
|
25264
25284
|
version: 1,
|
|
@@ -25287,7 +25307,7 @@ var children = {
|
|
|
25287
25307
|
}, "read")
|
|
25288
25308
|
};
|
|
25289
25309
|
|
|
25290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25291
25311
|
var coverage = {
|
|
25292
25312
|
id: "coverage",
|
|
25293
25313
|
version: 1,
|
|
@@ -25316,29 +25336,7 @@ var coverage = {
|
|
|
25316
25336
|
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")
|
|
25317
25337
|
};
|
|
25318
25338
|
|
|
25319
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25320
|
-
var lastMessage = {
|
|
25321
|
-
id: "last-message",
|
|
25322
|
-
version: 1,
|
|
25323
|
-
scope: "chat",
|
|
25324
|
-
read: /* @__PURE__ */ __name(async (_context, chat) => {
|
|
25325
|
-
const last = chat?.messages.at(-1);
|
|
25326
|
-
if (!chat || !last)
|
|
25327
|
-
return [];
|
|
25328
|
-
const item2 = {
|
|
25329
|
-
signal: "last-message",
|
|
25330
|
-
chat: chat.ref,
|
|
25331
|
-
at: last.timestamp,
|
|
25332
|
-
who: whoOf(last),
|
|
25333
|
-
evidence: evidenceOf(chat, last),
|
|
25334
|
-
basis: "store",
|
|
25335
|
-
data: {}
|
|
25336
|
-
};
|
|
25337
|
-
return [item2];
|
|
25338
|
-
}, "read")
|
|
25339
|
-
};
|
|
25340
|
-
|
|
25341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.569.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_8785fed449bbc2a6b34fc086f24a8413/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25339
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25342
25340
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25343
25341
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25344
25342
|
signal: "payments",
|
|
@@ -25388,7 +25386,7 @@ var payments = {
|
|
|
25388
25386
|
}, "read")
|
|
25389
25387
|
};
|
|
25390
25388
|
|
|
25391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25392
25390
|
var PATTERNS_PER_CHAT = 3;
|
|
25393
25391
|
var DAY3 = 864e5;
|
|
25394
25392
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25477,7 +25475,7 @@ var promises = {
|
|
|
25477
25475
|
}, "read")
|
|
25478
25476
|
};
|
|
25479
25477
|
|
|
25480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25481
25479
|
var PER_SIDE = 5;
|
|
25482
25480
|
var WEEK = 7 * 864e5;
|
|
25483
25481
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25508,7 +25506,7 @@ var questions2 = {
|
|
|
25508
25506
|
}, "attention")
|
|
25509
25507
|
};
|
|
25510
25508
|
|
|
25511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25512
25510
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25513
25511
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25514
25512
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25576,7 +25574,7 @@ var replyNext = {
|
|
|
25576
25574
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25577
25575
|
};
|
|
25578
25576
|
|
|
25579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25577
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25580
25578
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25581
25579
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25582
25580
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25622,9 +25620,8 @@ var topics = {
|
|
|
25622
25620
|
}, "read")
|
|
25623
25621
|
};
|
|
25624
25622
|
|
|
25625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25623
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25626
25624
|
var STATUS_SIGNALS = [
|
|
25627
|
-
lastMessage,
|
|
25628
25625
|
replyNext,
|
|
25629
25626
|
questions2,
|
|
25630
25627
|
promises,
|
|
@@ -25635,7 +25632,7 @@ var STATUS_SIGNALS = [
|
|
|
25635
25632
|
children
|
|
25636
25633
|
];
|
|
25637
25634
|
|
|
25638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25635
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25639
25636
|
var DAY4 = 864e5;
|
|
25640
25637
|
var STATUS_WINDOW = 300;
|
|
25641
25638
|
var STATUS_CHATS = 16;
|
|
@@ -25680,17 +25677,23 @@ var childrenOf = /* @__PURE__ */ __name(async (store, root, catalog) => {
|
|
|
25680
25677
|
}, "childrenOf");
|
|
25681
25678
|
var inAccounts = /* @__PURE__ */ __name((accounts, provider, account) => accounts === void 0 || accounts.some((one) => one.provider === provider && one.account === account), "inAccounts");
|
|
25682
25679
|
var failure = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "failure");
|
|
25683
|
-
var
|
|
25684
|
-
const
|
|
25685
|
-
|
|
25686
|
-
|
|
25687
|
-
|
|
25680
|
+
var owed = /* @__PURE__ */ __name((item2) => {
|
|
25681
|
+
const data = item2.data;
|
|
25682
|
+
return item2.signal === "payments" && data.state === "expected" && data.status === "confirmed";
|
|
25683
|
+
}, "owed");
|
|
25684
|
+
var keepsBooks = /* @__PURE__ */ __name(async (store, projects) => {
|
|
25685
|
+
for (const project of projects) {
|
|
25686
|
+
const filter = { project, review: "confirmed", limit: 1 };
|
|
25687
|
+
if ((await store.finance.invoices(filter)).length || (await store.finance.payments(filter)).length)
|
|
25688
|
+
return true;
|
|
25689
|
+
}
|
|
25690
|
+
return false;
|
|
25691
|
+
}, "keepsBooks");
|
|
25688
25692
|
var totalsOf = /* @__PURE__ */ __name((items) => {
|
|
25689
25693
|
const totals = /* @__PURE__ */ new Map();
|
|
25690
|
-
const open7 = counted2(items);
|
|
25691
25694
|
for (const item2 of items) {
|
|
25692
25695
|
const data = item2.data;
|
|
25693
|
-
if (!
|
|
25696
|
+
if (!owed(item2) || data.amount === void 0)
|
|
25694
25697
|
continue;
|
|
25695
25698
|
const key = `${data.direction}|${data.currency ?? ""}`;
|
|
25696
25699
|
const total = totals.get(key) ?? {
|
|
@@ -25773,6 +25776,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25773
25776
|
chats,
|
|
25774
25777
|
project: { ...root, children: children2, cut },
|
|
25775
25778
|
store,
|
|
25779
|
+
books: await keepsBooks(store, [root.ref, ...children2.map((child) => child.ref)]),
|
|
25776
25780
|
contextQueries: input.contextQueries ?? []
|
|
25777
25781
|
};
|
|
25778
25782
|
const items = [];
|
|
@@ -25817,7 +25821,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25817
25821
|
};
|
|
25818
25822
|
}, "projectStatus");
|
|
25819
25823
|
|
|
25820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25821
25825
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25822
25826
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25823
25827
|
if (deps.offline)
|
|
@@ -25889,7 +25893,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25889
25893
|
};
|
|
25890
25894
|
}, "accountService");
|
|
25891
25895
|
|
|
25892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25893
25897
|
var MINUTE = 6e4;
|
|
25894
25898
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25895
25899
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25908,7 +25912,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25908
25912
|
return new Date(at - at % MINUTE).toISOString();
|
|
25909
25913
|
}, "sendTime");
|
|
25910
25914
|
|
|
25911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25912
25916
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
25913
25917
|
try {
|
|
25914
25918
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26054,21 +26058,21 @@ var adminService = /* @__PURE__ */ __name((deps) => {
|
|
|
26054
26058
|
const answerAll = capability(connection, "answerAllJoinRequests", "answer every join request at once");
|
|
26055
26059
|
const { id: chatId } = await connection.resolve(chat);
|
|
26056
26060
|
const page = await list2(chatId, { limit: 100, ...link4 === void 0 ? {} : { link: link4 } });
|
|
26057
|
-
const
|
|
26061
|
+
const counted2 = page.total ?? page.items.length;
|
|
26058
26062
|
if (page.total === void 0 && page.hasMore)
|
|
26059
26063
|
throw new CliError("validation_error", "too many requests to count; answer them by person, or by --link");
|
|
26060
|
-
if (
|
|
26061
|
-
return { chatId, accepted: accept, counted:
|
|
26064
|
+
if (counted2 === 0)
|
|
26065
|
+
return { chatId, accepted: accept, counted: counted2 };
|
|
26062
26066
|
const operationId = newOperationId();
|
|
26063
26067
|
await guardedWrite(deps.guard, {
|
|
26064
26068
|
operationId,
|
|
26065
26069
|
chatId,
|
|
26066
26070
|
kind: "chat",
|
|
26067
26071
|
action: accept ? "requests.accept" : "requests.decline",
|
|
26068
|
-
count:
|
|
26069
|
-
people:
|
|
26072
|
+
count: counted2,
|
|
26073
|
+
people: counted2
|
|
26070
26074
|
}, () => answerAll(chatId, accept, link4));
|
|
26071
|
-
return { operationId, chatId, accepted: accept, counted:
|
|
26075
|
+
return { operationId, chatId, accepted: accept, counted: counted2 };
|
|
26072
26076
|
}, "answerAllRequests"),
|
|
26073
26077
|
links: /* @__PURE__ */ __name(async (chat, window3) => {
|
|
26074
26078
|
if (deps.offline)
|
|
@@ -26155,7 +26159,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26155
26159
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26156
26160
|
}, "linkLimits");
|
|
26157
26161
|
|
|
26158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26159
26163
|
var THREADS_PAGE = 500;
|
|
26160
26164
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26161
26165
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26234,7 +26238,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26234
26238
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26235
26239
|
}, "readMail");
|
|
26236
26240
|
|
|
26237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26238
26242
|
var NO_MAIL = "no_mail";
|
|
26239
26243
|
var MAIL = "email";
|
|
26240
26244
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26281,7 +26285,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26281
26285
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26282
26286
|
}, "accountsOfKind");
|
|
26283
26287
|
|
|
26284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26288
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26285
26289
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26286
26290
|
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");
|
|
26287
26291
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26629,7 +26633,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26629
26633
|
};
|
|
26630
26634
|
}, "statsLucene");
|
|
26631
26635
|
|
|
26632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26633
26637
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26634
26638
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26635
26639
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26798,7 +26802,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26798
26802
|
};
|
|
26799
26803
|
}, "readRankingSelection");
|
|
26800
26804
|
|
|
26801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26802
26806
|
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");
|
|
26803
26807
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26804
26808
|
command,
|
|
@@ -26808,7 +26812,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26808
26812
|
fieldsVersion: FIELD_VERSION
|
|
26809
26813
|
}), "searchRecordOf");
|
|
26810
26814
|
|
|
26811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26812
26816
|
function invalid2(message) {
|
|
26813
26817
|
throw new CliError("validation_error", message);
|
|
26814
26818
|
}
|
|
@@ -27102,7 +27106,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27102
27106
|
}, "evidence")
|
|
27103
27107
|
}), "adminStatisticsService");
|
|
27104
27108
|
|
|
27105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27106
27110
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27107
27111
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27108
27112
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27239,12 +27243,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27239
27243
|
return { plan, repair };
|
|
27240
27244
|
}, "gapsService");
|
|
27241
27245
|
|
|
27242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27246
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27243
27247
|
import { createHash as createHash9 } from "node:crypto";
|
|
27244
27248
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27245
27249
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27246
27250
|
|
|
27247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27248
27252
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27249
27253
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27250
27254
|
var MAX_FILES = 1e4;
|
|
@@ -27315,15 +27319,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27315
27319
|
return choices;
|
|
27316
27320
|
}, "directoryPaths");
|
|
27317
27321
|
|
|
27318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27322
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27319
27323
|
import { posix } from "node:path";
|
|
27320
27324
|
|
|
27321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27325
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27322
27326
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27323
27327
|
import { crc32 } from "node:zlib";
|
|
27324
27328
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27325
27329
|
|
|
27326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27327
27331
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27328
27332
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27329
27333
|
var SAMPLE = 65536;
|
|
@@ -27425,7 +27429,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27425
27429
|
return result.text;
|
|
27426
27430
|
}, "decodeXml");
|
|
27427
27431
|
|
|
27428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27429
27433
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27430
27434
|
var MAX_ENTRIES = 1e3;
|
|
27431
27435
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27640,7 +27644,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27640
27644
|
return found;
|
|
27641
27645
|
}, "elements");
|
|
27642
27646
|
|
|
27643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27644
27648
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27645
27649
|
let name = "";
|
|
27646
27650
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27695,7 +27699,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27695
27699
|
return { text: parts.join("").trim(), truncated: false };
|
|
27696
27700
|
}, "sheetText");
|
|
27697
27701
|
|
|
27698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27699
27703
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27700
27704
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27701
27705
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28095,10 +28099,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28095
28099
|
}
|
|
28096
28100
|
}, "readDocument");
|
|
28097
28101
|
|
|
28098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28099
28103
|
import { extname as extname3 } from "node:path";
|
|
28100
28104
|
|
|
28101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28102
28106
|
import { readFileSync } from "node:fs";
|
|
28103
28107
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28104
28108
|
import { fileURLToPath } from "node:url";
|
|
@@ -28159,7 +28163,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
28159
28163
|
}
|
|
28160
28164
|
}, "derived");
|
|
28161
28165
|
|
|
28162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28163
28167
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28164
28168
|
var image2 = {
|
|
28165
28169
|
id: "image",
|
|
@@ -28168,7 +28172,7 @@ var image2 = {
|
|
|
28168
28172
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28169
28173
|
};
|
|
28170
28174
|
|
|
28171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28175
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28172
28176
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28173
28177
|
var doc = {
|
|
28174
28178
|
id: "doc",
|
|
@@ -28180,7 +28184,7 @@ var doc = {
|
|
|
28180
28184
|
}), "read")
|
|
28181
28185
|
};
|
|
28182
28186
|
|
|
28183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28184
28188
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28185
28189
|
var docx = {
|
|
28186
28190
|
id: "docx",
|
|
@@ -28193,7 +28197,7 @@ var docx = {
|
|
|
28193
28197
|
}), "read")
|
|
28194
28198
|
};
|
|
28195
28199
|
|
|
28196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28197
28201
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28198
28202
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28199
28203
|
"fonttbl",
|
|
@@ -28369,7 +28373,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28369
28373
|
}, "htmlText");
|
|
28370
28374
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28371
28375
|
|
|
28372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28376
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28373
28377
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28374
28378
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28375
28379
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28425,7 +28429,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28425
28429
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28426
28430
|
}, "markdownSections");
|
|
28427
28431
|
|
|
28428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28429
28433
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28430
28434
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28431
28435
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28496,7 +28500,7 @@ var html = {
|
|
|
28496
28500
|
}, "read")
|
|
28497
28501
|
};
|
|
28498
28502
|
|
|
28499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28503
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28500
28504
|
var office = {
|
|
28501
28505
|
id: "office",
|
|
28502
28506
|
version: documentExtractor("odt"),
|
|
@@ -28507,7 +28511,7 @@ var office = {
|
|
|
28507
28511
|
}, "read")
|
|
28508
28512
|
};
|
|
28509
28513
|
|
|
28510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28511
28515
|
var pdf = {
|
|
28512
28516
|
id: "pdf",
|
|
28513
28517
|
version: "unpdf",
|
|
@@ -28574,7 +28578,7 @@ var pdf = {
|
|
|
28574
28578
|
}), "read")
|
|
28575
28579
|
};
|
|
28576
28580
|
|
|
28577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28578
28582
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28579
28583
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28580
28584
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28594,7 +28598,7 @@ var plain = {
|
|
|
28594
28598
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28595
28599
|
};
|
|
28596
28600
|
|
|
28597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28598
28602
|
var rtf = {
|
|
28599
28603
|
id: "rtf",
|
|
28600
28604
|
version: "v1",
|
|
@@ -28602,10 +28606,10 @@ var rtf = {
|
|
|
28602
28606
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28603
28607
|
};
|
|
28604
28608
|
|
|
28605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28606
28610
|
import { basename as basename5 } from "node:path";
|
|
28607
28611
|
|
|
28608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28609
28613
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28610
28614
|
const cells = [];
|
|
28611
28615
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28643,7 +28647,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28643
28647
|
return { cells, truncated };
|
|
28644
28648
|
}, "delimitedSpans");
|
|
28645
28649
|
|
|
28646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28650
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28647
28651
|
var DELIMITED = {
|
|
28648
28652
|
".csv": ",",
|
|
28649
28653
|
".tsv": " ",
|
|
@@ -28682,7 +28686,7 @@ var sheets = {
|
|
|
28682
28686
|
}, "read")
|
|
28683
28687
|
};
|
|
28684
28688
|
|
|
28685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28686
28690
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28687
28691
|
var HEAD_BYTES = 1024;
|
|
28688
28692
|
var readers = [...BUILT_INS2];
|
|
@@ -28692,7 +28696,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28692
28696
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28693
28697
|
}, "readWithRegistry");
|
|
28694
28698
|
|
|
28695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28696
28700
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28697
28701
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28698
28702
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29771,7 +29775,7 @@ function imageSize(input) {
|
|
|
29771
29775
|
}
|
|
29772
29776
|
__name(imageSize, "imageSize");
|
|
29773
29777
|
|
|
29774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29775
29779
|
var MAX_PAGES = 20;
|
|
29776
29780
|
var MAX_PIXELS = 2e7;
|
|
29777
29781
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29922,7 +29926,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29922
29926
|
}
|
|
29923
29927
|
}, "ocrPdf");
|
|
29924
29928
|
|
|
29925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29926
29930
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29927
29931
|
const limits = pdfPreviewLimits(env);
|
|
29928
29932
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -29999,7 +30003,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29999
30003
|
}
|
|
30000
30004
|
}, "pdfPreview");
|
|
30001
30005
|
|
|
30002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30003
30007
|
import { createHash as createHash8 } from "node:crypto";
|
|
30004
30008
|
import { constants } from "node:fs";
|
|
30005
30009
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30107,7 +30111,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30107
30111
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30108
30112
|
}, "transferMime");
|
|
30109
30113
|
|
|
30110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30111
30115
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30112
30116
|
import { link as link3, rm } from "node:fs/promises";
|
|
30113
30117
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30221,7 +30225,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30221
30225
|
}
|
|
30222
30226
|
}, "save");
|
|
30223
30227
|
|
|
30224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30228
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30225
30229
|
var ATTACHMENT_QUERY = {
|
|
30226
30230
|
entity: "attachment",
|
|
30227
30231
|
backend: "sql",
|
|
@@ -30644,7 +30648,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30644
30648
|
}, "setText")
|
|
30645
30649
|
}), "attachmentsService");
|
|
30646
30650
|
|
|
30647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30648
30652
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30649
30653
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30650
30654
|
const store = await accountStore(deps);
|
|
@@ -30674,7 +30678,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30674
30678
|
}, "list")
|
|
30675
30679
|
}), "chatDocumentsService");
|
|
30676
30680
|
|
|
30677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30678
30682
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30679
30683
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30680
30684
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30761,7 +30765,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30761
30765
|
}
|
|
30762
30766
|
}, "isRetentionSelection");
|
|
30763
30767
|
|
|
30764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30768
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30765
30769
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30766
30770
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30767
30771
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30968,7 +30972,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30968
30972
|
};
|
|
30969
30973
|
}, "countersService");
|
|
30970
30974
|
|
|
30971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30975
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30972
30976
|
var SYNC_KEY = "messages.sync-first";
|
|
30973
30977
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30974
30978
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31060,7 +31064,7 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31060
31064
|
}
|
|
31061
31065
|
try {
|
|
31062
31066
|
const newest = (await store.messages.messages(account, chatId, { limit: 1 })).items[0];
|
|
31063
|
-
let
|
|
31067
|
+
let counted2 = 0;
|
|
31064
31068
|
const fetched = await archiveService(deps).fetch(chatId, {
|
|
31065
31069
|
limit: options.maxMessages - result.messages,
|
|
31066
31070
|
pageSize: Math.min(100, deps.messenger.fetching?.maxPageSize ?? 100),
|
|
@@ -31069,11 +31073,11 @@ var refreshSearch = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
31069
31073
|
stop,
|
|
31070
31074
|
note,
|
|
31071
31075
|
onPage: /* @__PURE__ */ __name(({ fetched: fetched2 }) => {
|
|
31072
|
-
result.messages += fetched2 -
|
|
31073
|
-
|
|
31076
|
+
result.messages += fetched2 - counted2;
|
|
31077
|
+
counted2 = fetched2;
|
|
31074
31078
|
}, "onPage")
|
|
31075
31079
|
});
|
|
31076
|
-
result.messages += fetched.fetched -
|
|
31080
|
+
result.messages += fetched.fetched - counted2;
|
|
31077
31081
|
if (fetched.stopped || !fetched.complete && !fetched.reachedSince) {
|
|
31078
31082
|
result.complete = false;
|
|
31079
31083
|
result.failed.push({
|
|
@@ -31100,7 +31104,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31100
31104
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31101
31105
|
}), "withRefresh");
|
|
31102
31106
|
|
|
31103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31104
31108
|
var CANDIDATES = 50;
|
|
31105
31109
|
var WORD_HITS = 200;
|
|
31106
31110
|
var RRF_K = 60;
|
|
@@ -31375,13 +31379,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31375
31379
|
return mean2.map((value) => value / length);
|
|
31376
31380
|
}, "meanOf");
|
|
31377
31381
|
|
|
31378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31382
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31379
31383
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31380
31384
|
...embeddingsMaintenance(deps),
|
|
31381
31385
|
...embeddingsSearch(deps)
|
|
31382
31386
|
}), "embeddingsService");
|
|
31383
31387
|
|
|
31384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31388
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31385
31389
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31386
31390
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31387
31391
|
if (deps.offline)
|
|
@@ -31522,7 +31526,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31522
31526
|
};
|
|
31523
31527
|
}, "foldersService");
|
|
31524
31528
|
|
|
31525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31526
31530
|
var REVIEW_COUNT = 500;
|
|
31527
31531
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31528
31532
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31601,7 +31605,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31601
31605
|
};
|
|
31602
31606
|
}, "mentionsService");
|
|
31603
31607
|
|
|
31604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31605
31609
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31606
31610
|
position,
|
|
31607
31611
|
kind,
|
|
@@ -31650,7 +31654,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31650
31654
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31651
31655
|
}, "validatePermalink");
|
|
31652
31656
|
|
|
31653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31654
31658
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31655
31659
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31656
31660
|
return `${seconds / 86400}d`;
|
|
@@ -31682,7 +31686,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31682
31686
|
return seconds;
|
|
31683
31687
|
}, "pinDurationOf");
|
|
31684
31688
|
|
|
31685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31686
31690
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31687
31691
|
if (sendAs === void 0) {
|
|
31688
31692
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31707,7 +31711,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31707
31711
|
return sendAs;
|
|
31708
31712
|
}, "typedSendAs");
|
|
31709
31713
|
|
|
31710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31711
31715
|
var TOTAL_CAP = 1e4;
|
|
31712
31716
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31713
31717
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31718,7 +31722,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31718
31722
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31719
31723
|
}, "totalOf");
|
|
31720
31724
|
|
|
31721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31725
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31722
31726
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31723
31727
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31724
31728
|
let narrows = false;
|
|
@@ -31747,7 +31751,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31747
31751
|
return wanted(root).join(" ").trim();
|
|
31748
31752
|
}, "meaningWords");
|
|
31749
31753
|
|
|
31750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31751
31755
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31752
31756
|
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"));
|
|
31753
31757
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31879,7 +31883,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31879
31883
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31880
31884
|
}, "questionLookup");
|
|
31881
31885
|
|
|
31882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31886
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31883
31887
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31884
31888
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31885
31889
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32072,7 +32076,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32072
32076
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32073
32077
|
}, "signals");
|
|
32074
32078
|
|
|
32075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32079
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32076
32080
|
var MEANING_DEPTH = 100;
|
|
32077
32081
|
var RRF_K2 = 60;
|
|
32078
32082
|
var RERANK_DEPTH = 50;
|
|
@@ -32397,7 +32401,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32397
32401
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32398
32402
|
}, "mixedWithReranker");
|
|
32399
32403
|
|
|
32400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32404
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32401
32405
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32402
32406
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32403
32407
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32596,7 +32600,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32596
32600
|
return result;
|
|
32597
32601
|
}, "readThreadContext");
|
|
32598
32602
|
|
|
32599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32600
32604
|
var SEARCH_FILL_MS = 200;
|
|
32601
32605
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32602
32606
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32663,12 +32667,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32663
32667
|
}, "accountOf");
|
|
32664
32668
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32665
32669
|
|
|
32666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32667
32671
|
import { createHash as createHash10 } from "node:crypto";
|
|
32668
32672
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32669
32673
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32670
32674
|
|
|
32671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32672
32676
|
var GROUP_SETTINGS = [
|
|
32673
32677
|
"allCanPin",
|
|
32674
32678
|
"onlyAdminsAdd",
|
|
@@ -32682,7 +32686,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32682
32686
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32683
32687
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32684
32688
|
|
|
32685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32686
32690
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32687
32691
|
var PICTURE_FLOOR = 0.25;
|
|
32688
32692
|
var PAGE4 = 50;
|
|
@@ -32699,7 +32703,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32699
32703
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32700
32704
|
if (!isImageModelInstalled(model2, directory2))
|
|
32701
32705
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32702
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32706
|
+
const { openPictureEmbedder } = await import("./embedder-LM52TDRN.js");
|
|
32703
32707
|
return openPictureEmbedder(model2, directory2);
|
|
32704
32708
|
}, "open");
|
|
32705
32709
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32896,7 +32900,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32896
32900
|
}, "search")
|
|
32897
32901
|
}), "withPictures");
|
|
32898
32902
|
|
|
32899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32900
32904
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32901
32905
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32902
32906
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32964,7 +32968,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32964
32968
|
}
|
|
32965
32969
|
}, "meaningLane");
|
|
32966
32970
|
|
|
32967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32968
32972
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32969
32973
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32970
32974
|
if (choice === "off")
|
|
@@ -32976,9 +32980,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32976
32980
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32977
32981
|
try {
|
|
32978
32982
|
const warm = deps.embedders;
|
|
32979
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32983
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-MN4NSYGA.js")).openRerankerProcess(model, directory2, {
|
|
32980
32984
|
threads: defaultThreads()
|
|
32981
|
-
})) : await (await import("./rerank-
|
|
32985
|
+
})) : await (await import("./rerank-7VM5R5N6.js")).openReranker(model, directory2);
|
|
32982
32986
|
return {
|
|
32983
32987
|
model: model.id,
|
|
32984
32988
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32998,17 +33002,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32998
33002
|
};
|
|
32999
33003
|
}, "rerankLane");
|
|
33000
33004
|
|
|
33001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33002
33006
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33003
33007
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33004
33008
|
const directory2 = imageModelsDirectory(env);
|
|
33005
33009
|
if (!isImageModelInstalled(model, directory2))
|
|
33006
33010
|
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 });
|
|
33007
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
33011
|
+
const { openPictureEmbedder } = await import("./embedder-LM52TDRN.js");
|
|
33008
33012
|
return openPictureEmbedder(model, directory2);
|
|
33009
33013
|
}, "openPictureEmbedderFor");
|
|
33010
33014
|
|
|
33011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33012
33016
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
33013
33017
|
const metadata = note.frontMatter;
|
|
33014
33018
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -33023,7 +33027,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
33023
33027
|
};
|
|
33024
33028
|
}, "documentSource");
|
|
33025
33029
|
|
|
33026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33030
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33027
33031
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33028
33032
|
let root;
|
|
33029
33033
|
try {
|
|
@@ -33050,7 +33054,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33050
33054
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33051
33055
|
}, "titleTiers");
|
|
33052
33056
|
|
|
33053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33054
33058
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33055
33059
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33056
33060
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33329,13 +33333,13 @@ var searchNotes = /* @__PURE__ */ __name(async (store, query, { limit = 20, offs
|
|
|
33329
33333
|
meaningSkipped = error.message;
|
|
33330
33334
|
}
|
|
33331
33335
|
}
|
|
33332
|
-
const
|
|
33333
|
-
const titled =
|
|
33334
|
-
text: [titleQuery(
|
|
33336
|
+
const titleWords2 = plainQueryWords(rest);
|
|
33337
|
+
const titled = titleWords2 === void 0 ? { items: [], hasMore: false } : await searchNotesQuery(store, {
|
|
33338
|
+
text: [titleQuery(titleWords2), filter ?? ""].filter(Boolean).join(" AND "),
|
|
33335
33339
|
limit: Math.max(window3, CANDIDATES2),
|
|
33336
33340
|
...scope
|
|
33337
33341
|
});
|
|
33338
|
-
const tier =
|
|
33342
|
+
const tier = titleWords2 === void 0 ? [] : titleTiers(titled.items, titleWords2);
|
|
33339
33343
|
const tierRefs = new Set(tier.map(({ ref }) => ref));
|
|
33340
33344
|
const slice = meaning === void 0 && tier.length === 0;
|
|
33341
33345
|
const matched = await searchNotesQuery(store, {
|
|
@@ -33467,7 +33471,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33467
33471
|
};
|
|
33468
33472
|
}, "searchNotesOf");
|
|
33469
33473
|
|
|
33470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33471
33475
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33472
33476
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33473
33477
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33584,8 +33588,8 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33584
33588
|
};
|
|
33585
33589
|
}, "searchEvents");
|
|
33586
33590
|
|
|
33587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33588
|
-
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
33591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33592
|
+
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events", "crm"];
|
|
33589
33593
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33590
33594
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
33591
33595
|
const { root } = parseLucene(text2, MESSAGE_PARSING);
|
|
@@ -33593,6 +33597,15 @@ var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
|
33593
33597
|
const top = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33594
33598
|
return top.every(({ node, occur }) => occur !== "must_not" && followable(node, occur === "must")) ? planQuestion(text2).scope : void 0;
|
|
33595
33599
|
}, "filtersBeside");
|
|
33600
|
+
var titleWords = /* @__PURE__ */ __name((text2) => {
|
|
33601
|
+
const { root } = parseLucene(text2, SEARCH_QUERY);
|
|
33602
|
+
const clauses = root.kind === "boolean" ? root.clauses : [{ node: root, occur: "must" }];
|
|
33603
|
+
const words3 = clauses.map(({ node, occur }) => occur !== "must_not" && node.kind === "predicate" && node.field === "text" && (node.operator === "term" || node.operator === "phrase") ? node.value : (() => {
|
|
33604
|
+
throw new CliError("validation_error", "deals and leads are found by the words of their title only");
|
|
33605
|
+
})());
|
|
33606
|
+
return { words: words3, anyWord: clauses.length > 1 && clauses.every(({ occur }) => occur === "should") };
|
|
33607
|
+
}, "titleWords");
|
|
33608
|
+
var crmAccounts = /* @__PURE__ */ __name(async (store) => (await store.accounts.accounts()).filter(({ provider }) => kindIn(provider) === "crm"), "crmAccounts");
|
|
33596
33609
|
var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, searchMessages = (query) => searchStore(store, account, query, messenger), meaning) => {
|
|
33597
33610
|
if (!request.text.trim())
|
|
33598
33611
|
throw new CliError("validation_error", "say what to find");
|
|
@@ -33771,6 +33784,29 @@ var searchAll = /* @__PURE__ */ __name(async (store, account, request, messenger
|
|
|
33771
33784
|
foundBy: hit.found_by
|
|
33772
33785
|
})));
|
|
33773
33786
|
accounts.push(...read.map(({ provider, account: account2 }) => ({ resource, provider, account: account2 })));
|
|
33787
|
+
} else if (resource === "crm") {
|
|
33788
|
+
const { words: words3, anyWord } = titleWords(request.text);
|
|
33789
|
+
const chosen = request.scope?.crm;
|
|
33790
|
+
const found = await store.deals.find({
|
|
33791
|
+
words: words3,
|
|
33792
|
+
anyWord: anyWord || discover,
|
|
33793
|
+
limit: Math.min(window3 + 1, 500),
|
|
33794
|
+
...chosen === void 0 ? {} : { accounts: chosen }
|
|
33795
|
+
});
|
|
33796
|
+
hasMore ||= found.length > window3;
|
|
33797
|
+
lists.push(found.slice(0, window3).map((deal) => ({
|
|
33798
|
+
kind: deal.kind,
|
|
33799
|
+
ref: deal.ref,
|
|
33800
|
+
provider: deal.account?.provider ?? "crm",
|
|
33801
|
+
account: deal.account?.account ?? INTERNAL_NOTES,
|
|
33802
|
+
title: deal.title,
|
|
33803
|
+
timestamp: deal.updatedAt,
|
|
33804
|
+
text: deal.summary,
|
|
33805
|
+
foundBy: ["title"]
|
|
33806
|
+
})));
|
|
33807
|
+
const read = chosen ?? [...await crmAccounts(store), { provider: "crm", account: INTERNAL_NOTES }];
|
|
33808
|
+
for (const { provider, account: account2 } of read)
|
|
33809
|
+
accounts.push({ resource, provider, account: account2 });
|
|
33774
33810
|
} else
|
|
33775
33811
|
lists.push(await messagesOf(resource));
|
|
33776
33812
|
searched.push(resource);
|
|
@@ -33813,7 +33849,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33813
33849
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33814
33850
|
}, "oneList");
|
|
33815
33851
|
|
|
33816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33817
33853
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33818
33854
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33819
33855
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34058,7 +34094,8 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34058
34094
|
messages: named2("messages"),
|
|
34059
34095
|
mail: named2("mail"),
|
|
34060
34096
|
notes: named2("notes"),
|
|
34061
|
-
events: named2("events")
|
|
34097
|
+
events: named2("events"),
|
|
34098
|
+
crm: named2("crm")
|
|
34062
34099
|
},
|
|
34063
34100
|
...meetings[0] ? { meetingAccount: meetings[0] } : {}
|
|
34064
34101
|
}, messenger, searchMessages, meaning);
|
|
@@ -34066,7 +34103,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34066
34103
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34067
34104
|
}, "searchAllOfSource");
|
|
34068
34105
|
|
|
34069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34070
34107
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34071
34108
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34072
34109
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34255,7 +34292,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34255
34292
|
return { report, sources };
|
|
34256
34293
|
}, "searchServer");
|
|
34257
34294
|
|
|
34258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34259
34296
|
var DELETE_AT_ONCE = 10;
|
|
34260
34297
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34261
34298
|
const files = fileLinks(attachments);
|
|
@@ -34696,7 +34733,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34696
34733
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34697
34734
|
}, "checkMediaOptions");
|
|
34698
34735
|
|
|
34699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34700
34737
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34701
34738
|
var RULES = {
|
|
34702
34739
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34711,7 +34748,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34711
34748
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34712
34749
|
}), "classifyChannel");
|
|
34713
34750
|
|
|
34714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34715
34752
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34716
34753
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34717
34754
|
const store = await deps.store();
|
|
@@ -34797,7 +34834,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34797
34834
|
};
|
|
34798
34835
|
}, "metadataService");
|
|
34799
34836
|
|
|
34800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
34801
34838
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
34802
34839
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
34803
34840
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -34834,7 +34871,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
34834
34871
|
return { chatId, rows, notes };
|
|
34835
34872
|
}, "moderateWith");
|
|
34836
34873
|
|
|
34837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34874
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
34838
34875
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
34839
34876
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
34840
34877
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34912,7 +34949,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34912
34949
|
}, "removePerson")
|
|
34913
34950
|
}), "moderatorOf");
|
|
34914
34951
|
|
|
34915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34952
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34916
34953
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34917
34954
|
id: note.id,
|
|
34918
34955
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -34956,7 +34993,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34956
34993
|
};
|
|
34957
34994
|
}, "privatePeopleService");
|
|
34958
34995
|
|
|
34959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34960
34997
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34961
34998
|
total: 0,
|
|
34962
34999
|
population: 0,
|
|
@@ -35212,7 +35249,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35212
35249
|
}, "evidence")
|
|
35213
35250
|
}), "rankingsService");
|
|
35214
35251
|
|
|
35215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35252
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35216
35253
|
var FIELDS = ["date", "chat", "kind"];
|
|
35217
35254
|
var WAITING_TAIL = 100;
|
|
35218
35255
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35339,7 +35376,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35339
35376
|
};
|
|
35340
35377
|
}, "replyStatsService");
|
|
35341
35378
|
|
|
35342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35343
35380
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35344
35381
|
id: one.id,
|
|
35345
35382
|
name: one.name,
|
|
@@ -35468,7 +35505,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35468
35505
|
};
|
|
35469
35506
|
}, "searchesService");
|
|
35470
35507
|
|
|
35471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35472
35509
|
var TAGGING_QUERY = {
|
|
35473
35510
|
entity: "tagging",
|
|
35474
35511
|
backend: "sql",
|
|
@@ -35552,7 +35589,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35552
35589
|
};
|
|
35553
35590
|
}, "tagsService");
|
|
35554
35591
|
|
|
35555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
35556
35593
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
35557
35594
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
35558
35595
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -35751,7 +35788,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35751
35788
|
};
|
|
35752
35789
|
}, "topicsService");
|
|
35753
35790
|
|
|
35754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35791
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
35755
35792
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
35756
35793
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35757
35794
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -35825,7 +35862,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
35825
35862
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
35826
35863
|
}, "prepareEvidencePacket");
|
|
35827
35864
|
|
|
35828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
35829
35866
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
35830
35867
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
35831
35868
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -35845,7 +35882,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
35845
35882
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
35846
35883
|
}, "readEvidencePacket");
|
|
35847
35884
|
|
|
35848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
35849
35886
|
var scopeKeys = [
|
|
35850
35887
|
"accountId",
|
|
35851
35888
|
"meetingId",
|
|
@@ -35867,7 +35904,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
35867
35904
|
"maxVocabularyReadBytes"
|
|
35868
35905
|
]);
|
|
35869
35906
|
|
|
35870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
35871
35908
|
var communicationFields = {
|
|
35872
35909
|
sources: pipe(array(strictObject({
|
|
35873
35910
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -35899,7 +35936,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
35899
35936
|
return { ...input, after, before: before2 };
|
|
35900
35937
|
}, "communicationRequest");
|
|
35901
35938
|
|
|
35902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35939
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
35903
35940
|
var MEETING_PREPARATION_LIMITS = {
|
|
35904
35941
|
meetings: { min: 1, max: 20, default: 5 },
|
|
35905
35942
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -35972,7 +36009,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
35972
36009
|
};
|
|
35973
36010
|
}, "validateMeetingPreparationRequest");
|
|
35974
36011
|
|
|
35975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
35976
36013
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
35977
36014
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
35978
36015
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36020,7 +36057,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36020
36057
|
}
|
|
36021
36058
|
}, "validatePreparationCommunications");
|
|
36022
36059
|
|
|
36023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36060
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36024
36061
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36025
36062
|
const installer = ports.installer();
|
|
36026
36063
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36085,7 +36122,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36085
36122
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36086
36123
|
}, "dayAfter");
|
|
36087
36124
|
|
|
36088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36089
36126
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36090
36127
|
const pictures = picturesService(deps);
|
|
36091
36128
|
const base = {
|
|
@@ -36122,7 +36159,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36122
36159
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36123
36160
|
}, "servicesFor");
|
|
36124
36161
|
|
|
36125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36126
36163
|
import { createHash as createHash12 } from "node:crypto";
|
|
36127
36164
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36128
36165
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36343,7 +36380,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36343
36380
|
}, () => finish({ error: stopped() }));
|
|
36344
36381
|
}), "relayCommand");
|
|
36345
36382
|
|
|
36346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.600.0_@wirecat+cli-base@0.80.7_commander@15.0.0_esbuild@0.28.2_type_b9e89c8ee4e42a523b0faff8db1d3e1d/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36347
36384
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36348
36385
|
close: /* @__PURE__ */ __name(async () => {
|
|
36349
36386
|
}, "close"),
|
|
@@ -36434,6 +36471,7 @@ export {
|
|
|
36434
36471
|
onlineDeps,
|
|
36435
36472
|
storedDeps,
|
|
36436
36473
|
storeModeDeps,
|
|
36474
|
+
withTimeLimit,
|
|
36437
36475
|
REGISTRIES,
|
|
36438
36476
|
registriesCover,
|
|
36439
36477
|
mailTurn,
|