@wirecat/mail-cli 0.16.3 → 0.17.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 +86 -0
- package/README.md +7 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-TUDREUUW.js → all-profiles-55AU2Q2N.js} +10 -10
- package/dist/bundle/{anthropic-KQOVSP6C.js → anthropic-I7RI7YPK.js} +6 -6
- package/dist/bundle/{app-server-QK7PKVT7.js → app-server-NY72GTQA.js} +47 -47
- package/dist/bundle/{bun-2NMWL5YB.js → bun-C2R7UPM2.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y4FP6SDX.js → bun-sqlite-RNPHH3KC.js} +5 -5
- package/dist/bundle/{chunk-KJV3BI7S.js → chunk-22IKW3TY.js} +23 -21
- package/dist/bundle/{chunk-B2NDDA2W.js → chunk-22WVQJW3.js} +10 -10
- package/dist/bundle/{chunk-4IIH5PXR.js → chunk-24H2KUGW.js} +28 -28
- package/dist/bundle/{chunk-VP5FL5JQ.js → chunk-2CY44MKY.js} +8 -8
- package/dist/bundle/{chunk-CGH6UH3T.js → chunk-2EVM7GV5.js} +8 -8
- package/dist/bundle/{chunk-GAYW2JRW.js → chunk-2ON2PDHC.js} +10 -10
- package/dist/bundle/{chunk-EBEYU7RW.js → chunk-45JQ72CH.js} +36 -142
- package/dist/bundle/{chunk-QCNK3YUZ.js → chunk-4HTTN4NO.js} +19 -19
- package/dist/bundle/{chunk-6DVPPLAN.js → chunk-6NN5ZX5T.js} +5 -5
- package/dist/bundle/{chunk-CRYWPLJP.js → chunk-A3PKKY24.js} +1 -1
- package/dist/bundle/{chunk-I3K6JG4I.js → chunk-B73I6KLW.js} +14 -60
- package/dist/bundle/{chunk-HVAXTTOT.js → chunk-BD7OK4P5.js} +3 -3
- package/dist/bundle/{chunk-Q4T2HBZP.js → chunk-BPDUVWL2.js} +2 -2
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-BWCYUXF7.js} +4 -4
- package/dist/bundle/{chunk-3ZJE5TIG.js → chunk-CHC2LWKY.js} +2 -2
- package/dist/bundle/{chunk-VTJ5TMGN.js → chunk-CHVHIDNK.js} +3 -3
- package/dist/bundle/{chunk-XEIGKPYU.js → chunk-DG43I7MC.js} +32 -3
- package/dist/bundle/{chunk-R6SBRHVG.js → chunk-F4P3VDJZ.js} +6 -6
- package/dist/bundle/{chunk-ZS6YKNYS.js → chunk-GBM7FFFI.js} +4 -4
- package/dist/bundle/{chunk-K2OQCQ2N.js → chunk-GYCJQGFO.js} +6 -6
- package/dist/bundle/{chunk-PYX6K527.js → chunk-H32SKDF2.js} +55 -54
- package/dist/bundle/{chunk-KMZRXGTF.js → chunk-HZL42476.js} +1 -1
- package/dist/bundle/{chunk-IJYYD2JU.js → chunk-IPFFPD3M.js} +325 -212
- package/dist/bundle/{chunk-M6O4DH5F.js → chunk-ITMGJX7I.js} +1 -1
- package/dist/bundle/{chunk-OYB3FUYQ.js → chunk-J7XH6CJC.js} +1 -1
- package/dist/bundle/{chunk-ANFIIXBL.js → chunk-JI225TBX.js} +2 -2
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-JSB6BTPT.js} +1 -1
- package/dist/bundle/{chunk-7LMTWOTP.js → chunk-KJKRLI2S.js} +2 -2
- package/dist/bundle/{chunk-FHY664YS.js → chunk-LNC7XMEQ.js} +4 -4
- package/dist/bundle/chunk-M6GLFDWV.js +64 -0
- package/dist/bundle/{chunk-PWTEWT4M.js → chunk-MG4NWXWI.js} +4 -4
- package/dist/bundle/{chunk-X7EBOXBY.js → chunk-MRTSDBTN.js} +12178 -1120
- package/dist/bundle/{chunk-N7DLDEFU.js → chunk-MTFTMPB6.js} +2 -2
- package/dist/bundle/{chunk-DDQXDX4U.js → chunk-OFZDCUUJ.js} +7 -7
- package/dist/bundle/{chunk-4IEDXIUN.js → chunk-OHS5CYZI.js} +240 -64
- package/dist/bundle/{chunk-ZNW4E3SG.js → chunk-QDX2O5BN.js} +3 -3
- package/dist/bundle/{chunk-VD6GZ3W2.js → chunk-QEO7MI3E.js} +2 -2
- package/dist/bundle/{chunk-EZIJPXDZ.js → chunk-QRNL5DIS.js} +6 -6
- package/dist/bundle/{chunk-XAANQN4R.js → chunk-QU5TWVG5.js} +108 -83
- package/dist/bundle/{chunk-HN3EDDVX.js → chunk-R3G33QIV.js} +13 -13
- package/dist/bundle/{chunk-TTOKDZQX.js → chunk-RFFE5ACS.js} +2 -2
- package/dist/bundle/{chunk-5FPQGUJA.js → chunk-RIAHISWA.js} +1 -1
- package/dist/bundle/{chunk-CT2MIWXY.js → chunk-RQGTRB73.js} +3 -3
- package/dist/bundle/{chunk-WKHHCCJE.js → chunk-S4NIDBLI.js} +23 -23
- package/dist/bundle/{chunk-YGJO5VNR.js → chunk-SHEVFBZT.js} +24 -24
- package/dist/bundle/{chunk-DKIAHQRN.js → chunk-SQAAOEGI.js} +9 -9
- package/dist/bundle/{chunk-5KPPP3QN.js → chunk-T4RRZILQ.js} +14 -2
- package/dist/bundle/{chunk-KV4267S4.js → chunk-TCYLDGRA.js} +1 -1
- package/dist/bundle/{chunk-POS35G6D.js → chunk-VMXMHC6E.js} +3 -3
- package/dist/bundle/{chunk-FROWEHK7.js → chunk-VXBUDZV3.js} +2 -2
- package/dist/bundle/{chunk-3CVDHJER.js → chunk-WHI3LTAW.js} +1 -1
- package/dist/bundle/{chunk-ARDUJR5Z.js → chunk-WOFGEJ6W.js} +1 -1
- package/dist/bundle/{chunk-G6RG2AZV.js → chunk-XJQJ3ZIY.js} +55 -8
- package/dist/bundle/{chunk-EDJQDR5X.js → chunk-XOJ5E777.js} +4 -4
- package/dist/bundle/{chunk-UBLFUQ7O.js → chunk-YB47AQWE.js} +97 -12
- package/dist/bundle/{chunk-RPEW7E3S.js → chunk-YCOBSDZY.js} +12 -12
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-YHUCNI2W.js} +2 -2
- package/dist/bundle/{chunk-LMN7SYX4.js → chunk-YIJRPPF5.js} +1 -1
- package/dist/bundle/{chunk-MLWN27HF.js → chunk-YO7BLBVE.js} +243 -247
- package/dist/bundle/command-contract-AUPKK5Y4.js +34 -0
- package/dist/bundle/{decode-WCS4KOHV.js → decode-5AYG6LLW.js} +5 -5
- package/dist/bundle/{dispatch-3ILCYZ4Q.js → dispatch-EVLWT6N3.js} +8 -8
- package/dist/bundle/{dist-FL422DTA.js → dist-JRTLLLLG.js} +31 -23
- package/dist/bundle/{echarts-45D6USAX.js → echarts-EFAEE4D2.js} +2 -2
- package/dist/bundle/{embed-4B4ATLCN.js → embed-6SSOYGZQ.js} +6 -6
- package/dist/bundle/{embedder-ASWGJXNV.js → embedder-VFSLGHBO.js} +9 -9
- package/dist/bundle/{failure-UDL5QZRZ.js → failure-RBBZ7F3L.js} +2 -2
- package/dist/bundle/{first-run-5K3UD4BU.js → first-run-PVEHOQOD.js} +11 -11
- package/dist/bundle/first-screen-7ONKJ7QW.js +32 -0
- package/dist/bundle/{instructions-6EFSPC7C.js → instructions-EOLC3GYB.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-JYLZR5LQ.js} +2 -2
- package/dist/bundle/{node-OXC26QXO.js → node-2ZRMQAYF.js} +2 -2
- package/dist/bundle/{node-sqlite-PXHZAG7Y.js → node-sqlite-UKWOBONA.js} +6 -6
- package/dist/bundle/{oauth-YK2QLC7U.js → oauth-HFD46WAY.js} +7 -7
- package/dist/bundle/{open-SABDXZ4B.js → open-2DLCQUC4.js} +5 -5
- package/dist/bundle/{openai-DPURPXEU.js → openai-A7YLLQEE.js} +14 -14
- package/dist/bundle/{process-YWPAOI6G.js → process-I3INVLFQ.js} +1 -1
- package/dist/bundle/{program-4ILOQHLO.js → program-4ZCATQND.js} +3380 -12407
- package/dist/bundle/{prompt-GKVNFGFE.js → prompt-R636OFYK.js} +5 -5
- package/dist/bundle/{recognize-344YDSLX.js → recognize-G4WUSU5I.js} +4 -4
- package/dist/bundle/{remote-53UZUJJU.js → remote-BMXVVYTN.js} +7 -7
- package/dist/bundle/{rerank-PAIRND6R.js → rerank-7W3QEZ3Q.js} +7 -7
- package/dist/bundle/{serve-DZSO7LJK.js → serve-JQCPQYOJ.js} +9 -9
- package/dist/bundle/server-GYVOIGF5.js +64 -0
- package/dist/bundle/{server-EGG3V67I.js → server-IMOCOYXH.js} +39 -39
- package/dist/bundle/{sqlite-runtime-ZQ6F3VYZ.js → sqlite-runtime-H2IEHDRZ.js} +6 -6
- package/dist/bundle/{state-LXPOWLZ5.js → state-J5N3Y4LX.js} +6 -6
- package/dist/bundle/{store-PHT75I6S.js → store-C4TIYTGI.js} +25 -25
- package/dist/bundle/{store-4ZMSK5R5.js → store-U5WIT3P4.js} +15 -15
- package/dist/bundle/store-maintenance-command-WRRZ7Q7B.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.d.ts.map +1 -1
- package/dist/commands/status.js +10 -4
- 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-CNMSF5QU.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-R3G33QIV.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-2ON2PDHC.js";
|
|
30
30
|
import {
|
|
31
31
|
MAX_MODEL_IMAGE_BYTES
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CHC2LWKY.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-IPFFPD3M.js";
|
|
73
73
|
import {
|
|
74
74
|
isCliFailure
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-SQAAOEGI.js";
|
|
76
76
|
import {
|
|
77
77
|
isNewer,
|
|
78
78
|
updateCommand
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-XOJ5E777.js";
|
|
80
80
|
import {
|
|
81
81
|
remoteKey
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BD7OK4P5.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-F4P3VDJZ.js";
|
|
94
94
|
import {
|
|
95
95
|
installFiles,
|
|
96
96
|
megabytes
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-GBM7FFFI.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-MRTSDBTN.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-45JQ72CH.js";
|
|
181
181
|
import {
|
|
182
182
|
TASK_KINDS,
|
|
183
183
|
TASK_STATES,
|
|
184
184
|
createTaskService,
|
|
185
185
|
isClosedState
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-YB47AQWE.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-OHS5CYZI.js";
|
|
228
228
|
import {
|
|
229
229
|
DEFAULT_STEMMERS,
|
|
230
230
|
createStemmer,
|
|
231
231
|
fold,
|
|
232
232
|
normalize
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-2EVM7GV5.js";
|
|
234
234
|
import {
|
|
235
235
|
DEFAULT_TASK_CATEGORIES,
|
|
236
236
|
FALLBACK_CATEGORY
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-GYCJQGFO.js";
|
|
238
238
|
import {
|
|
239
239
|
storePath,
|
|
240
240
|
wirecatDirectory
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-RFFE5ACS.js";
|
|
242
242
|
import {
|
|
243
243
|
resolvePaths
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-4HTTN4NO.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-XJQJ3ZIY.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-YHUCNI2W.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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/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");
|
|
@@ -17409,7 +17409,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
17409
17409
|
}, "addMeetingCommandsDefinition");
|
|
17410
17410
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
17411
17411
|
|
|
17412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
17413
17413
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
17414
17414
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
17415
17415
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -17542,7 +17542,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
17542
17542
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
17543
17543
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
17544
17544
|
|
|
17545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
17546
17546
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
17547
17547
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
17548
17548
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -17551,7 +17551,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
17551
17551
|
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
17552
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
17553
17553
|
|
|
17554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
17555
17555
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
17556
17556
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
17557
17557
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -17813,7 +17813,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
17813
17813
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
17814
17814
|
}), "sessionAnswer");
|
|
17815
17815
|
|
|
17816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/deps.js
|
|
17817
17817
|
var accountStore = /* @__PURE__ */ __name(async (deps) => (await deps.store()).forAccount(await deps.account()), "accountStore");
|
|
17818
17818
|
var crossAccount = /* @__PURE__ */ __name((deps, _reason) => deps.store(), "crossAccount");
|
|
17819
17819
|
var NO_LOCAL_STORE = "this answer comes from the messenger, not from the local store";
|
|
@@ -17877,7 +17877,7 @@ var storedDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({
|
|
|
17877
17877
|
}), "storedDeps");
|
|
17878
17878
|
var storeModeDeps = /* @__PURE__ */ __name((messenger, store, account, guard) => ({ ...storedDeps(messenger, store, account, guard), offline: false, reads: "store" }), "storeModeDeps");
|
|
17879
17879
|
|
|
17880
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
17881
17881
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
17882
17882
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
17883
17883
|
if (key in own)
|
|
@@ -17894,12 +17894,12 @@ var capability = /* @__PURE__ */ __name((adapter, method, what) => {
|
|
|
17894
17894
|
return found.bind(adapter);
|
|
17895
17895
|
}, "capability");
|
|
17896
17896
|
|
|
17897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/send-id.js
|
|
17898
17898
|
import { randomBytes } from "node:crypto";
|
|
17899
17899
|
var newSendId = /* @__PURE__ */ __name(() => randomBytes(8).readBigInt64BE().toString(), "newSendId");
|
|
17900
17900
|
var newOperationId = newSendId;
|
|
17901
17901
|
|
|
17902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17902
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/questions.js
|
|
17903
17903
|
var LINKS = /https?:\/\/\S+/g;
|
|
17904
17904
|
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
17905
|
var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker = "others" }) => {
|
|
@@ -17929,7 +17929,7 @@ var questions = /* @__PURE__ */ __name((messages, { answerers: answerers2, asker
|
|
|
17929
17929
|
});
|
|
17930
17930
|
}, "questions");
|
|
17931
17931
|
|
|
17932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/task-categories.js
|
|
17933
17933
|
var names = /* @__PURE__ */ __name((categories) => categories.map(({ name }) => name).join(", "), "names");
|
|
17934
17934
|
var taskCategoryOf = /* @__PURE__ */ __name((categories = DEFAULT_TASK_CATEGORIES, flag = "--category") => (typed) => {
|
|
17935
17935
|
const name = typed.trim().toLowerCase();
|
|
@@ -17986,7 +17986,7 @@ var categorize = /* @__PURE__ */ __name((text2, categories = DEFAULT_TASK_CATEGO
|
|
|
17986
17986
|
return best.name;
|
|
17987
17987
|
}, "categorize");
|
|
17988
17988
|
|
|
17989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/task-rules.js
|
|
17990
17990
|
var taskAccount = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "taskAccount");
|
|
17991
17991
|
var RULES_IN = {
|
|
17992
17992
|
dialog: "all",
|
|
@@ -18192,7 +18192,7 @@ var applyTaskRulesToChats = /* @__PURE__ */ __name(async (store, account, chatId
|
|
|
18192
18192
|
return passes;
|
|
18193
18193
|
}, "applyTaskRulesToChats");
|
|
18194
18194
|
|
|
18195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
18196
18196
|
var AGO = /^(\d+)(m|h|d)$/;
|
|
18197
18197
|
var AGO_MS = { m: 6e4, h: 36e5, d: 864e5 };
|
|
18198
18198
|
var DATE = /^\d{4}-\d{2}-\d{2}/;
|
|
@@ -18232,7 +18232,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
18232
18232
|
};
|
|
18233
18233
|
}, "dateWindow");
|
|
18234
18234
|
|
|
18235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/patience.js
|
|
18236
18236
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
18237
18237
|
var LONGEST_WAIT_MS = 5 * 60 * 1e3;
|
|
18238
18238
|
var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
@@ -18255,10 +18255,10 @@ var patiently = /* @__PURE__ */ __name(async (request, note, stop) => {
|
|
|
18255
18255
|
}
|
|
18256
18256
|
}, "patiently");
|
|
18257
18257
|
|
|
18258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
18259
18259
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
18260
18260
|
|
|
18261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/backfill-estimate.js
|
|
18262
18262
|
var REQUEST_MS = 400;
|
|
18263
18263
|
var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, maxPages, pauseMs }) => {
|
|
18264
18264
|
const lowest = ranges[0];
|
|
@@ -18281,13 +18281,13 @@ var estimateBackfill = /* @__PURE__ */ __name(({ ranges, held, newest, page, max
|
|
|
18281
18281
|
};
|
|
18282
18282
|
}, "estimateBackfill");
|
|
18283
18283
|
|
|
18284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/recovery.js
|
|
18285
18285
|
var withRecovery = /* @__PURE__ */ __name((error) => ({
|
|
18286
18286
|
...error,
|
|
18287
18287
|
retryable: typeof error.retryable === "boolean" ? error.retryable : error.code === "rate_limited" || error.status === 429
|
|
18288
18288
|
}), "withRecovery");
|
|
18289
18289
|
|
|
18290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/batch.js
|
|
18291
18291
|
var actionable = /* @__PURE__ */ __name((error) => {
|
|
18292
18292
|
if (isCliFailure(error))
|
|
18293
18293
|
return withRecovery({ code: error.code, message: error.message, ...error.details });
|
|
@@ -18370,7 +18370,7 @@ var mergeBatches = /* @__PURE__ */ __name((a, b) => {
|
|
|
18370
18370
|
};
|
|
18371
18371
|
}, "mergeBatches");
|
|
18372
18372
|
|
|
18373
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/message-resolution.js
|
|
18374
18374
|
var readChatId = /* @__PURE__ */ __name(async (deps, reference, store, account) => {
|
|
18375
18375
|
if (deps.reads !== "store")
|
|
18376
18376
|
return keptChatId(deps.messenger, reference, store, account);
|
|
@@ -18529,7 +18529,7 @@ var senderAmong = /* @__PURE__ */ __name(async (store, accounts, reference) => {
|
|
|
18529
18529
|
}
|
|
18530
18530
|
}, "senderAmong");
|
|
18531
18531
|
|
|
18532
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/images/context/index.js
|
|
18533
18533
|
var CONTEXT_MESSAGES = 3;
|
|
18534
18534
|
var CONTEXT_MINUTES = 10;
|
|
18535
18535
|
var MAX_CHARS = 1200;
|
|
@@ -18553,12 +18553,12 @@ var context = {
|
|
|
18553
18553
|
}, "describe")
|
|
18554
18554
|
};
|
|
18555
18555
|
|
|
18556
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/images/registry.js
|
|
18557
18557
|
var BUILT_INS = [context];
|
|
18558
18558
|
var providers = [...BUILT_INS];
|
|
18559
18559
|
var registeredImageProviders = /* @__PURE__ */ __name(() => providers, "registeredImageProviders");
|
|
18560
18560
|
|
|
18561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/conversations.js
|
|
18562
18562
|
var READ_PAGE = 5e3;
|
|
18563
18563
|
var CHAIN = 50;
|
|
18564
18564
|
var CONVERSATION_QUERY = {
|
|
@@ -18710,7 +18710,7 @@ var sized = /* @__PURE__ */ __name((size2) => {
|
|
|
18710
18710
|
return size2;
|
|
18711
18711
|
}, "sized");
|
|
18712
18712
|
|
|
18713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/embeddings-maintenance.js
|
|
18714
18714
|
var REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2e3 };
|
|
18715
18715
|
var MESSAGE_PAGE = 5e3;
|
|
18716
18716
|
var PER_SESSION = 8;
|
|
@@ -18729,7 +18729,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18729
18729
|
price: remote.price,
|
|
18730
18730
|
installed: true,
|
|
18731
18731
|
perBatch: PER_REQUEST * concurrency,
|
|
18732
|
-
open: /* @__PURE__ */ __name(async () => (await import("./remote-
|
|
18732
|
+
open: /* @__PURE__ */ __name(async () => (await import("./remote-BMXVVYTN.js")).openRemote(remote, apiKey, { concurrency }), "open")
|
|
18733
18733
|
};
|
|
18734
18734
|
}
|
|
18735
18735
|
const model = textModel(choice);
|
|
@@ -18746,7 +18746,7 @@ var embeddingTarget = /* @__PURE__ */ __name((deps, choice = DEFAULT_TEXT_MODEL)
|
|
|
18746
18746
|
if (!isTextModelInstalled(model, directory2))
|
|
18747
18747
|
throw notDownloaded(model.id);
|
|
18748
18748
|
if (apart) {
|
|
18749
|
-
const { openProcess } = await import("./process-
|
|
18749
|
+
const { openProcess } = await import("./process-I3INVLFQ.js");
|
|
18750
18750
|
return openProcess(model, directory2, { threads: threads ?? defaultThreads() });
|
|
18751
18751
|
}
|
|
18752
18752
|
return openEmbedder(model, directory2, { threads: threads ?? defaultThreads() });
|
|
@@ -19035,7 +19035,7 @@ var shaped = /* @__PURE__ */ __name(({ chatId, builtAt, algorithmVersion, pendin
|
|
|
19035
19035
|
return { ...one, state };
|
|
19036
19036
|
}, "shaped");
|
|
19037
19037
|
|
|
19038
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/search-catchup.js
|
|
19039
19039
|
var CATCH_UP_BOUNDS = { maxChunks: 500, maxMessages: 1e4, timeMs: 3e4 };
|
|
19040
19040
|
var validateCatchUpBounds = /* @__PURE__ */ __name((options) => {
|
|
19041
19041
|
for (const [key, value, maximum] of [
|
|
@@ -19088,7 +19088,7 @@ var catchUpSearch = /* @__PURE__ */ __name(async (deps, chat, options, signal, c
|
|
|
19088
19088
|
}
|
|
19089
19089
|
}, "catchUpSearch");
|
|
19090
19090
|
|
|
19091
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19091
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/archive.js
|
|
19092
19092
|
var pushed = /* @__PURE__ */ __name((deps, what) => {
|
|
19093
19093
|
if (deps.reads === "store") {
|
|
19094
19094
|
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 +19454,7 @@ var timeOfKey = /* @__PURE__ */ __name(async (store, account, chatId, key, byTim
|
|
|
19454
19454
|
return message?.timestamp ?? fallback;
|
|
19455
19455
|
}, "timeOfKey");
|
|
19456
19456
|
|
|
19457
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19457
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/upload.js
|
|
19458
19458
|
import { openAsBlob, realpathSync } from "node:fs";
|
|
19459
19459
|
import { open, stat } from "node:fs/promises";
|
|
19460
19460
|
import { basename, dirname, extname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
@@ -19656,7 +19656,7 @@ var readStickerFile = /* @__PURE__ */ __name(async (path, maxBytes, read) => {
|
|
|
19656
19656
|
return { name, source };
|
|
19657
19657
|
}, "readStickerFile");
|
|
19658
19658
|
|
|
19659
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/botcheck/check.js
|
|
19660
19660
|
var DAY_MS = 864e5;
|
|
19661
19661
|
var NEW_DAYS = 30;
|
|
19662
19662
|
var SAME_TEXT_MIN = 20;
|
|
@@ -19733,7 +19733,23 @@ var scorePerson = /* @__PURE__ */ __name(({ subject, provider, activity, photos,
|
|
|
19733
19733
|
};
|
|
19734
19734
|
}, "scorePerson");
|
|
19735
19735
|
|
|
19736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/http/time-limit.js
|
|
19737
|
+
var timeLimit = /* @__PURE__ */ __name((ms) => {
|
|
19738
|
+
const controller = new AbortController();
|
|
19739
|
+
const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
|
|
19740
|
+
timer.unref();
|
|
19741
|
+
return { signal: controller.signal, clear: /* @__PURE__ */ __name(() => clearTimeout(timer), "clear") };
|
|
19742
|
+
}, "timeLimit");
|
|
19743
|
+
var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
|
|
19744
|
+
const limit = timeLimit(ms);
|
|
19745
|
+
try {
|
|
19746
|
+
return await run(limit.signal);
|
|
19747
|
+
} finally {
|
|
19748
|
+
limit.clear();
|
|
19749
|
+
}
|
|
19750
|
+
}, "withTimeLimit");
|
|
19751
|
+
|
|
19752
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/botcheck/registries.js
|
|
19737
19753
|
var REGISTRIES = {
|
|
19738
19754
|
cas: { title: "Combot Anti-Spam (CAS)", docs: "https://cas.chat/api" },
|
|
19739
19755
|
lols: { title: "lols.bot", docs: "https://api.lols.bot/lols-bot.json" }
|
|
@@ -19742,16 +19758,18 @@ var TIMEOUT_MS = 1e4;
|
|
|
19742
19758
|
var askRegistries = /* @__PURE__ */ __name(async (id2, options = {}) => Promise.all([askCas(id2, options), askLols(id2, options)]), "askRegistries");
|
|
19743
19759
|
var getJson = /* @__PURE__ */ __name(async (url, headers, { fetch: fetchFn = fetch, timeoutMs = TIMEOUT_MS }) => {
|
|
19744
19760
|
try {
|
|
19745
|
-
const
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19761
|
+
const { status, text: text2 } = await withTimeLimit(timeoutMs, async (signal) => {
|
|
19762
|
+
const response = await fetchFn(url, {
|
|
19763
|
+
headers: { accept: "application/json", ...headers },
|
|
19764
|
+
signal,
|
|
19765
|
+
redirect: "error"
|
|
19766
|
+
});
|
|
19767
|
+
return { status: response.status, text: await response.text() };
|
|
19749
19768
|
});
|
|
19750
|
-
const text2 = await response.text();
|
|
19751
19769
|
try {
|
|
19752
|
-
return { status
|
|
19770
|
+
return { status, body: JSON.parse(text2) };
|
|
19753
19771
|
} catch {
|
|
19754
|
-
return { failed: `answered ${
|
|
19772
|
+
return { failed: `answered ${status} with something that is not JSON` };
|
|
19755
19773
|
}
|
|
19756
19774
|
} catch (error) {
|
|
19757
19775
|
return {
|
|
@@ -19818,7 +19836,7 @@ var notCovered = /* @__PURE__ */ __name((messenger, now = /* @__PURE__ */ new Da
|
|
|
19818
19836
|
detail: `lists Telegram accounts only, not ${messenger} ones`
|
|
19819
19837
|
})), "notCovered");
|
|
19820
19838
|
|
|
19821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/botcheck/service.js
|
|
19822
19840
|
var ACTIVITY_MESSAGES = 1e3;
|
|
19823
19841
|
var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
19824
19842
|
const subjectOf = /* @__PURE__ */ __name(async (reference) => {
|
|
@@ -19906,7 +19924,7 @@ var botCheckService = /* @__PURE__ */ __name((deps) => {
|
|
|
19906
19924
|
};
|
|
19907
19925
|
}, "botCheckService");
|
|
19908
19926
|
|
|
19909
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/thread.js
|
|
19910
19928
|
var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
19911
19929
|
if (value === void 0)
|
|
19912
19930
|
return void 0;
|
|
@@ -19916,7 +19934,7 @@ var threadIdOf = /* @__PURE__ */ __name((value) => {
|
|
|
19916
19934
|
return id2;
|
|
19917
19935
|
}, "threadIdOf");
|
|
19918
19936
|
|
|
19919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/chat-stats.js
|
|
19920
19938
|
var TOP_POSTS = 5;
|
|
19921
19939
|
var JOINS = /* @__PURE__ */ new Set(["join", "add"]);
|
|
19922
19940
|
var LEAVES = /* @__PURE__ */ new Set(["leave", "remove"]);
|
|
@@ -20033,7 +20051,7 @@ var median = /* @__PURE__ */ __name((values) => {
|
|
|
20033
20051
|
return Math.round(sorted.length % 2 === 0 ? ((sorted[middle - 1] ?? upper) + upper) / 2 : upper);
|
|
20034
20052
|
}, "median");
|
|
20035
20053
|
|
|
20036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/member-history.js
|
|
20037
20055
|
var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
20038
20056
|
const events = [];
|
|
20039
20057
|
for (const stay of stays) {
|
|
@@ -20065,7 +20083,7 @@ var memberEvents = /* @__PURE__ */ __name((stays, revisions, since = 0) => {
|
|
|
20065
20083
|
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
20084
|
}, "memberEvents");
|
|
20067
20085
|
|
|
20068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/chats.js
|
|
20069
20087
|
var EVENTS_DAYS = 7;
|
|
20070
20088
|
var TRACKED_DAYS = 30;
|
|
20071
20089
|
var STATS_PAGE = 1e3;
|
|
@@ -20360,7 +20378,7 @@ var storedMembers = /* @__PURE__ */ __name(async (store, chatId) => {
|
|
|
20360
20378
|
return members.length === 0 ? null : members;
|
|
20361
20379
|
}, "storedMembers");
|
|
20362
20380
|
|
|
20363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/inbox.js
|
|
20364
20382
|
var INBOX_CHATS = 20;
|
|
20365
20383
|
var REVIEW_DAYS = 3;
|
|
20366
20384
|
var UNANSWERED_HOURS = 24;
|
|
@@ -20568,7 +20586,7 @@ var inboxService = /* @__PURE__ */ __name((deps) => {
|
|
|
20568
20586
|
};
|
|
20569
20587
|
}, "inboxService");
|
|
20570
20588
|
|
|
20571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/person-context.js
|
|
20572
20590
|
var CONTEXT_MESSAGES2 = 10;
|
|
20573
20591
|
var CONTEXT_BYTES = 64 * 1024;
|
|
20574
20592
|
var toContext = /* @__PURE__ */ __name((key, message, chatTitle2) => ({
|
|
@@ -20829,10 +20847,10 @@ var personMessages = /* @__PURE__ */ __name(async (store, asked, reference, { ch
|
|
|
20829
20847
|
};
|
|
20830
20848
|
}, "personMessages");
|
|
20831
20849
|
|
|
20832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20833
20851
|
import { createHash } from "node:crypto";
|
|
20834
20852
|
|
|
20835
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20853
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/meeting-reference.js
|
|
20836
20854
|
var missing2 = /* @__PURE__ */ __name(() => new CliError("not_found", "the meeting evidence is unavailable for this account"), "missing");
|
|
20837
20855
|
var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId, reference, options = {}) => {
|
|
20838
20856
|
const parsed = parseMeetingReference(reference);
|
|
@@ -20850,7 +20868,7 @@ var authorizedMeetingMetadata = /* @__PURE__ */ __name(async (store, accountId,
|
|
|
20850
20868
|
return { parsed, meeting };
|
|
20851
20869
|
}, "authorizedMeetingMetadata");
|
|
20852
20870
|
|
|
20853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20871
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/meeting-evidence.js
|
|
20854
20872
|
var hash = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
20855
20873
|
var checkMeetingCancelled = /* @__PURE__ */ __name((signal) => {
|
|
20856
20874
|
if (signal?.aborted)
|
|
@@ -21049,7 +21067,7 @@ var readMeetingEvidence = /* @__PURE__ */ __name(async (store, accountId, refere
|
|
|
21049
21067
|
return { ...packet, fingerprint: hash(packet) };
|
|
21050
21068
|
}, "readMeetingEvidence");
|
|
21051
21069
|
|
|
21052
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/person-meeting-context.js
|
|
21053
21071
|
var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference, options) => {
|
|
21054
21072
|
const { meetings = 10, cues = 5, bytes: bytes2 = 64 * 1024, scanLimit = 1e3, since, signal } = options;
|
|
21055
21073
|
const requestedAccounts = options.accountIds;
|
|
@@ -21148,7 +21166,7 @@ var personMeetingContext = /* @__PURE__ */ __name(async (store, personReference,
|
|
|
21148
21166
|
};
|
|
21149
21167
|
}, "personMeetingContext");
|
|
21150
21168
|
|
|
21151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/person-preparation.js
|
|
21152
21170
|
var PREPARE_BYTES = 96 * 1024;
|
|
21153
21171
|
var MEETINGS = 5;
|
|
21154
21172
|
var CUES = 3;
|
|
@@ -21265,7 +21283,7 @@ var meetingsOf = /* @__PURE__ */ __name(async (store, uid, stored, since, left)
|
|
|
21265
21283
|
}
|
|
21266
21284
|
}, "meetingsOf");
|
|
21267
21285
|
|
|
21268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/person-profile.js
|
|
21269
21287
|
var personProfile = /* @__PURE__ */ __name(async (deps, person, known2) => {
|
|
21270
21288
|
const online = deps.offline ? void 0 : await deps.connection();
|
|
21271
21289
|
const held = await storeIfOpen(deps);
|
|
@@ -21335,7 +21353,7 @@ var quiet = /* @__PURE__ */ __name((facts) => facts.chats.map(({ id: id2, title,
|
|
|
21335
21353
|
complete: false
|
|
21336
21354
|
})), "quiet");
|
|
21337
21355
|
|
|
21338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/person-timeline.js
|
|
21339
21357
|
var TIMELINE_ITEMS = 50;
|
|
21340
21358
|
var TIMELINE_MAX = 500;
|
|
21341
21359
|
var SCOPES = ["personal", "work"];
|
|
@@ -21390,7 +21408,7 @@ var personTimeline = /* @__PURE__ */ __name(async (store, asked, reference, { sc
|
|
|
21390
21408
|
};
|
|
21391
21409
|
}, "personTimeline");
|
|
21392
21410
|
|
|
21393
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/people.js
|
|
21394
21412
|
var peopleService = /* @__PURE__ */ __name((deps) => {
|
|
21395
21413
|
const localCard = /* @__PURE__ */ __name(async (card, includeNotes = false) => {
|
|
21396
21414
|
const held = await storeIfOpen(deps);
|
|
@@ -21617,7 +21635,7 @@ var withoutPhone = /* @__PURE__ */ __name((answer) => {
|
|
|
21617
21635
|
return rest;
|
|
21618
21636
|
}, "withoutPhone");
|
|
21619
21637
|
|
|
21620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/task-stats.js
|
|
21621
21639
|
var TASK_STATS_BY = ["chat", "meeting", "project"];
|
|
21622
21640
|
var PERIOD_FIELD = "created";
|
|
21623
21641
|
var refuseNestedPeriod = /* @__PURE__ */ __name((node, top = true) => {
|
|
@@ -21720,7 +21738,7 @@ var meetingNames = /* @__PURE__ */ __name(async (store, groups) => {
|
|
|
21720
21738
|
}));
|
|
21721
21739
|
}, "meetingNames");
|
|
21722
21740
|
|
|
21723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/task-tag-filters.js
|
|
21724
21742
|
var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
21725
21743
|
const tags = /* @__PURE__ */ new Map();
|
|
21726
21744
|
for (const node of query ? walkQuery(query.root) : [])
|
|
@@ -21729,7 +21747,7 @@ var taskTagFilters = /* @__PURE__ */ __name(async (store, query) => {
|
|
|
21729
21747
|
return tags;
|
|
21730
21748
|
}, "taskTagFilters");
|
|
21731
21749
|
|
|
21732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/tasks.js
|
|
21733
21751
|
var TASK_QUERY = {
|
|
21734
21752
|
entity: "task",
|
|
21735
21753
|
backend: "sql",
|
|
@@ -22221,7 +22239,7 @@ var taskView = /* @__PURE__ */ __name(async (store, account, task2) => {
|
|
|
22221
22239
|
};
|
|
22222
22240
|
}, "taskView");
|
|
22223
22241
|
|
|
22224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/mail/owed.js
|
|
22225
22243
|
var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
22226
22244
|
if (newest === null)
|
|
22227
22245
|
return null;
|
|
@@ -22230,7 +22248,7 @@ var mailTurn = /* @__PURE__ */ __name((newest) => {
|
|
|
22230
22248
|
return newest.addressed ? "owed" : null;
|
|
22231
22249
|
}, "mailTurn");
|
|
22232
22250
|
|
|
22233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/agenda-mail.js
|
|
22234
22252
|
var absent = /* @__PURE__ */ __name((error) => {
|
|
22235
22253
|
if (error instanceof CliError && error.code === "not_found")
|
|
22236
22254
|
return void 0;
|
|
@@ -22288,7 +22306,7 @@ var mailActivity = /* @__PURE__ */ __name(async (store, account, since, chats) =
|
|
|
22288
22306
|
};
|
|
22289
22307
|
}, "mailActivity");
|
|
22290
22308
|
|
|
22291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/chat-coverage.js
|
|
22292
22310
|
var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
22293
22311
|
const ids = [...new Set(chatIds)];
|
|
22294
22312
|
if (ids.length === 0)
|
|
@@ -22314,7 +22332,7 @@ var chatCoverage = /* @__PURE__ */ __name(async (store, account, chatIds) => {
|
|
|
22314
22332
|
}));
|
|
22315
22333
|
}, "chatCoverage");
|
|
22316
22334
|
|
|
22317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22335
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/agenda.js
|
|
22318
22336
|
var DAY = 864e5;
|
|
22319
22337
|
var AGENDA_DEFAULTS = { unanswered: DAY, waiting: 7 * DAY };
|
|
22320
22338
|
var CLAIMS = ["none", "mine", "others", "any"];
|
|
@@ -22561,7 +22579,7 @@ var agendaItem = /* @__PURE__ */ __name((shown) => {
|
|
|
22561
22579
|
};
|
|
22562
22580
|
}, "agendaItem");
|
|
22563
22581
|
|
|
22564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/context/evidence-response.js
|
|
22565
22583
|
var contextSourceKey = /* @__PURE__ */ __name((source) => JSON.stringify([source.kind, source.accountId, source.provider, source.account]), "contextSourceKey");
|
|
22566
22584
|
var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
22567
22585
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
@@ -22625,7 +22643,7 @@ var validateContextEvidencePage = /* @__PURE__ */ __name((page, request) => {
|
|
|
22625
22643
|
}
|
|
22626
22644
|
}, "validateContextEvidencePage");
|
|
22627
22645
|
|
|
22628
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/context/read-budget.js
|
|
22629
22647
|
var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
22630
22648
|
if (!limits || typeof limits !== "object" || Array.isArray(limits))
|
|
22631
22649
|
throw new CliError("validation_error", "limits needs a context read allowance");
|
|
@@ -22678,7 +22696,7 @@ var contextReadBudget = /* @__PURE__ */ __name((limits = {}) => {
|
|
|
22678
22696
|
};
|
|
22679
22697
|
}, "contextReadBudget");
|
|
22680
22698
|
|
|
22681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22699
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/context-evidence.js
|
|
22682
22700
|
var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits) => {
|
|
22683
22701
|
if (!port || typeof port.read !== "function")
|
|
22684
22702
|
throw new CliError("configuration_error", "context evidence reader is unavailable");
|
|
@@ -22722,7 +22740,7 @@ var createContextEvidenceReader = /* @__PURE__ */ __name((port, allowed, limits)
|
|
|
22722
22740
|
};
|
|
22723
22741
|
}, "createContextEvidenceReader");
|
|
22724
22742
|
|
|
22725
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/excerpt.js
|
|
22726
22744
|
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
22745
|
var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) => {
|
|
22728
22746
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -22738,7 +22756,7 @@ var excerpt = /* @__PURE__ */ __name((text2, query, size2 = 240, options = {}) =
|
|
|
22738
22756
|
}, "excerpt");
|
|
22739
22757
|
var withExcerpt = /* @__PURE__ */ __name(({ matchedText, ...hit }, query) => ({ ...hit, excerpt: excerpt(matchedText ?? hit.text, query) }), "withExcerpt");
|
|
22740
22758
|
|
|
22741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-purposes.js
|
|
22742
22760
|
var BUILT_IN_PURPOSES = ["work", "sales", "support", "other"];
|
|
22743
22761
|
var DEFAULT_PURPOSES = ["work"];
|
|
22744
22762
|
var LINK_PURPOSE = "work";
|
|
@@ -22768,7 +22786,7 @@ var purposeList = /* @__PURE__ */ __name((value, previous = []) => [
|
|
|
22768
22786
|
...value.split(",").map((one) => one.trim()).filter(Boolean)
|
|
22769
22787
|
], "purposeList");
|
|
22770
22788
|
|
|
22771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22789
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-gathering-around.js
|
|
22772
22790
|
var storedMessageNeighbours = /* @__PURE__ */ __name((messages) => ({
|
|
22773
22791
|
async around(ref, window3) {
|
|
22774
22792
|
const at = parseLocator(ref);
|
|
@@ -22863,7 +22881,7 @@ var storedNeighbours = /* @__PURE__ */ __name((store) => {
|
|
|
22863
22881
|
};
|
|
22864
22882
|
}, "storedNeighbours");
|
|
22865
22883
|
|
|
22866
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-gathering-request.js
|
|
22867
22885
|
import { createHash as createHash2 } from "node:crypto";
|
|
22868
22886
|
var DAY2 = 864e5;
|
|
22869
22887
|
var MAX_TIME = 864e13;
|
|
@@ -23179,7 +23197,7 @@ var decodeCheckpoint = /* @__PURE__ */ __name((text2, plan) => {
|
|
|
23179
23197
|
return value;
|
|
23180
23198
|
}, "decodeCheckpoint");
|
|
23181
23199
|
|
|
23182
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-gathering.js
|
|
23183
23201
|
var terminal = /* @__PURE__ */ new Set(["done", "unavailable", "failed"]);
|
|
23184
23202
|
var PAGE2 = 20;
|
|
23185
23203
|
var PEOPLE = 20;
|
|
@@ -23583,7 +23601,7 @@ var peopleOf = /* @__PURE__ */ __name((items, senderOf) => {
|
|
|
23583
23601
|
return [...byKey.values()].sort((a, b) => b.items - a.items || a.name.localeCompare(b.name));
|
|
23584
23602
|
}, "peopleOf");
|
|
23585
23603
|
|
|
23586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23604
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/meeting-project-candidate-matching.js
|
|
23587
23605
|
var normalizedText = /* @__PURE__ */ __name((text2) => text2.normalize("NFKC").toLowerCase().replace(/\s+/gu, " "), "normalizedText");
|
|
23588
23606
|
var termsOf = /* @__PURE__ */ __name((entry) => [
|
|
23589
23607
|
{ name: entry.name, kind: "canonical" },
|
|
@@ -23627,7 +23645,7 @@ var matchVocabularyTerms = /* @__PURE__ */ __name((catalog, texts) => {
|
|
|
23627
23645
|
return result.sort((a, b) => Number(a.entry.id) - Number(b.entry.id));
|
|
23628
23646
|
}, "matchVocabularyTerms");
|
|
23629
23647
|
|
|
23630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-gathering-mentions.js
|
|
23631
23649
|
var KINDS = ["project", "tag", "topic"];
|
|
23632
23650
|
var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering, options = {}) => {
|
|
23633
23651
|
if (typeof vocabulary?.vocabulary !== "function")
|
|
@@ -23682,7 +23700,7 @@ var findEvidenceMentions = /* @__PURE__ */ __name(async (vocabulary, gathering,
|
|
|
23682
23700
|
};
|
|
23683
23701
|
}, "findEvidenceMentions");
|
|
23684
23702
|
|
|
23685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/stored-project-gathering.js
|
|
23686
23704
|
var storedChatCount = /* @__PURE__ */ __name((store) => async (account, chatId, { since, until }) => {
|
|
23687
23705
|
const window3 = { since: new Date(since).toISOString(), until: new Date(until - 1).toISOString() };
|
|
23688
23706
|
const [messages, newest, oldest] = await Promise.all([
|
|
@@ -23988,18 +24006,18 @@ var purposeHintOf = /* @__PURE__ */ __name((linked, rows, of) => {
|
|
|
23988
24006
|
return { chat: top.ref, relationship: link4.relationship, items, of };
|
|
23989
24007
|
}, "purposeHintOf");
|
|
23990
24008
|
|
|
23991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
23992
24010
|
import { setTimeout as sleep3 } from "node:timers/promises";
|
|
23993
24011
|
|
|
23994
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24012
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
23995
24013
|
import { lstat } from "node:fs/promises";
|
|
23996
24014
|
|
|
23997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
23998
24016
|
import { createHash as createHash4, randomUUID as randomUUID2 } from "node:crypto";
|
|
23999
24017
|
import { open as open3, rename as rename2, unlink as unlink2 } from "node:fs/promises";
|
|
24000
24018
|
import { join as join2 } from "node:path";
|
|
24001
24019
|
|
|
24002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-metadata.js
|
|
24003
24021
|
import { createHash as createHash3 } from "node:crypto";
|
|
24004
24022
|
var metadataLimit = 16384;
|
|
24005
24023
|
var partialIdentity = /* @__PURE__ */ __name((locator) => JSON.stringify([locator.provider, locator.account, locator.occurrenceId, locator.assetId]), "partialIdentity");
|
|
@@ -24059,7 +24077,7 @@ var readPartialMetadata = /* @__PURE__ */ __name(async (path, locator, maxBytes,
|
|
|
24059
24077
|
}
|
|
24060
24078
|
}, "readPartialMetadata");
|
|
24061
24079
|
|
|
24062
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-writer.js
|
|
24063
24081
|
import { randomUUID } from "node:crypto";
|
|
24064
24082
|
import { open as open2, rename, unlink } from "node:fs/promises";
|
|
24065
24083
|
import { join } from "node:path";
|
|
@@ -24151,7 +24169,7 @@ var partialWriter = /* @__PURE__ */ __name(async (input) => {
|
|
|
24151
24169
|
};
|
|
24152
24170
|
}, "partialWriter");
|
|
24153
24171
|
|
|
24154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/persistence/native/recording-partial-store.js
|
|
24155
24173
|
var NativeRecordingPartialStore = class {
|
|
24156
24174
|
static {
|
|
24157
24175
|
__name(this, "NativeRecordingPartialStore");
|
|
@@ -24258,12 +24276,12 @@ var NativeRecordingPartialStore = class {
|
|
|
24258
24276
|
}
|
|
24259
24277
|
};
|
|
24260
24278
|
|
|
24261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24262
24280
|
import { createHash as createHash5 } from "node:crypto";
|
|
24263
24281
|
import { link as link2 } from "node:fs/promises";
|
|
24264
24282
|
import { basename as basename2, dirname as dirname2, join as join4, resolve as resolve2 } from "node:path";
|
|
24265
24283
|
|
|
24266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-files.js
|
|
24267
24285
|
import { unlink as unlink3 } from "node:fs/promises";
|
|
24268
24286
|
var verifiedPublicationFile = /* @__PURE__ */ __name(async (path, expected2, signal, writable = false) => {
|
|
24269
24287
|
signal?.throwIfAborted();
|
|
@@ -24298,7 +24316,7 @@ var commitPublication = /* @__PURE__ */ __name(async (root, partialPath, finalPa
|
|
|
24298
24316
|
signal?.throwIfAborted();
|
|
24299
24317
|
}, "commitPublication");
|
|
24300
24318
|
|
|
24301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication-journal.js
|
|
24302
24320
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
24303
24321
|
import { open as open4, rename as rename3, unlink as unlink4 } from "node:fs/promises";
|
|
24304
24322
|
import { join as join3 } from "node:path";
|
|
@@ -24371,7 +24389,7 @@ var writePublicationJournal = /* @__PURE__ */ __name(async (root, path, prefix,
|
|
|
24371
24389
|
}
|
|
24372
24390
|
}, "writePublicationJournal");
|
|
24373
24391
|
|
|
24374
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/persistence/native/recording-publication.js
|
|
24375
24393
|
var NativeRecordingPublication = class {
|
|
24376
24394
|
static {
|
|
24377
24395
|
__name(this, "NativeRecordingPublication");
|
|
@@ -24444,7 +24462,7 @@ var NativeRecordingPublication = class {
|
|
|
24444
24462
|
}
|
|
24445
24463
|
};
|
|
24446
24464
|
|
|
24447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/media-archive-manifest.js
|
|
24448
24466
|
import { createHash as createHash6 } from "node:crypto";
|
|
24449
24467
|
import { readdir } from "node:fs/promises";
|
|
24450
24468
|
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve3 } from "node:path";
|
|
@@ -24531,7 +24549,7 @@ var commitMediaEntry = /* @__PURE__ */ __name((root, one, beforePublish) => writ
|
|
|
24531
24549
|
beforePublish
|
|
24532
24550
|
}), "commitMediaEntry");
|
|
24533
24551
|
|
|
24534
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/media-archive-files.js
|
|
24535
24553
|
var validator = '"media-completed-v1"';
|
|
24536
24554
|
var maximumFileBytes = 64 * 1024 * 1024 * 1024;
|
|
24537
24555
|
var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file, beforeWrite, signal, metadata = {}) => {
|
|
@@ -24632,7 +24650,7 @@ var archiveMediaFile = /* @__PURE__ */ __name(async (root, identity, kind, file,
|
|
|
24632
24650
|
return entry;
|
|
24633
24651
|
}, "archiveMediaFile");
|
|
24634
24652
|
|
|
24635
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/media-archive-locks.js
|
|
24636
24654
|
import { mkdir, realpath } from "node:fs/promises";
|
|
24637
24655
|
import { join as join6, resolve as resolve4 } from "node:path";
|
|
24638
24656
|
var archiveLocations = /* @__PURE__ */ __name(async (initial, signal) => {
|
|
@@ -24699,7 +24717,7 @@ var withMediaArchiveLocks = /* @__PURE__ */ __name(async (directory2, signal, ru
|
|
|
24699
24717
|
throw new CliError("validation_error", "archive locations changed during locking; run the command again");
|
|
24700
24718
|
}, "withMediaArchiveLocks");
|
|
24701
24719
|
|
|
24702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/media-archive.js
|
|
24703
24721
|
var validateMediaSince = /* @__PURE__ */ __name((value, flag = "--since-time") => {
|
|
24704
24722
|
if (value === void 0)
|
|
24705
24723
|
return void 0;
|
|
@@ -24852,7 +24870,7 @@ var archiveMedia = /* @__PURE__ */ __name(async (ports, options) => {
|
|
|
24852
24870
|
}, { create: true });
|
|
24853
24871
|
}, "archiveMedia");
|
|
24854
24872
|
|
|
24855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/media-archive-move.js
|
|
24856
24874
|
import { realpath as realpath2, unlink as unlink5 } from "node:fs/promises";
|
|
24857
24875
|
import { basename as basename3, dirname as dirname3, join as join7, resolve as resolve5 } from "node:path";
|
|
24858
24876
|
var canonicalDestination = /* @__PURE__ */ __name(async (directory2) => {
|
|
@@ -25005,7 +25023,7 @@ var moveMediaArchive = /* @__PURE__ */ __name(async (options) => {
|
|
|
25005
25023
|
}, { additional: [target2], createAdditional: !options.dryRun });
|
|
25006
25024
|
}, "moveMediaArchive");
|
|
25007
25025
|
|
|
25008
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25026
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/model-downloads.js
|
|
25009
25027
|
var bytesOf = /* @__PURE__ */ __name((model) => model.files.reduce((sum2, file) => sum2 + file.bytes, 0), "bytesOf");
|
|
25010
25028
|
var nativeRuntime = /* @__PURE__ */ __name(async ({ env, progress = /* @__PURE__ */ __name(() => {
|
|
25011
25029
|
}, "progress") }) => {
|
|
@@ -25028,7 +25046,7 @@ var downloadTextModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25028
25046
|
}
|
|
25029
25047
|
await nativeRuntime({ env, progress });
|
|
25030
25048
|
progress(`${model.id}: loading it once to check it works`);
|
|
25031
|
-
const { openEmbedder: openEmbedder2 } = await import("./embed-
|
|
25049
|
+
const { openEmbedder: openEmbedder2 } = await import("./embed-6SSOYGZQ.js");
|
|
25032
25050
|
const embedder = await openEmbedder2(model, directory2);
|
|
25033
25051
|
try {
|
|
25034
25052
|
const [vector] = await embedder.embed(["check"], "query");
|
|
@@ -25049,7 +25067,7 @@ var downloadRerankModel = /* @__PURE__ */ __name(async (id2, { env, progress = /
|
|
|
25049
25067
|
}
|
|
25050
25068
|
await nativeRuntime({ env, progress });
|
|
25051
25069
|
progress(`${model.id}: loading it once to check it works`);
|
|
25052
|
-
const { openReranker } = await import("./rerank-
|
|
25070
|
+
const { openReranker } = await import("./rerank-7W3QEZ3Q.js");
|
|
25053
25071
|
const reranker = await openReranker(model, directory2);
|
|
25054
25072
|
try {
|
|
25055
25073
|
await reranker.score("check", ["check"]);
|
|
@@ -25067,7 +25085,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25067
25085
|
await installFiles(placedImage(model, directory2), { progress });
|
|
25068
25086
|
}
|
|
25069
25087
|
progress(`${model.id}: loading it once to check it works`);
|
|
25070
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
25088
|
+
const { openPictureEmbedder } = await import("./embedder-VFSLGHBO.js");
|
|
25071
25089
|
const embedder = await openPictureEmbedder(model, directory2);
|
|
25072
25090
|
try {
|
|
25073
25091
|
const vector = await embedder.embedQuery("check");
|
|
@@ -25079,7 +25097,7 @@ var downloadImageModel = /* @__PURE__ */ __name(async (id2, { env, progress = /*
|
|
|
25079
25097
|
return { model, directory: directory2 };
|
|
25080
25098
|
}, "downloadImageModel");
|
|
25081
25099
|
|
|
25082
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/money-words.js
|
|
25083
25101
|
var MONEY_REQUEST = "money-request";
|
|
25084
25102
|
var MONEY_DONE = "money-done";
|
|
25085
25103
|
var PROMISE = "promise";
|
|
@@ -25113,10 +25131,10 @@ var MONEY_WORDS = [
|
|
|
25113
25131
|
}
|
|
25114
25132
|
];
|
|
25115
25133
|
|
|
25116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/money-words.js
|
|
25117
25135
|
var moneyClassesOf = /* @__PURE__ */ __name((text2) => listsHit(text2, MONEY_WORDS), "moneyClassesOf");
|
|
25118
25136
|
|
|
25119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25137
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/status-words.js
|
|
25120
25138
|
var words = /* @__PURE__ */ __name((forms) => new RegExp(`(?<![\\p{L}\\p{N}])(?:${forms.join("|")})(?![\\p{L}\\p{N}])`, "iu"), "words");
|
|
25121
25139
|
var MONEY_DONE_FORMS = words([
|
|
25122
25140
|
"\u043E\u043F\u043B\u0430\u0442\u0438\u043B[\u0430\u0438]?",
|
|
@@ -25156,7 +25174,7 @@ var PROMISE_FORMS = words([
|
|
|
25156
25174
|
"estar\xE1 listo"
|
|
25157
25175
|
]);
|
|
25158
25176
|
|
|
25159
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25177
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/items.js
|
|
25160
25178
|
var EXCERPT_CHARS = 80;
|
|
25161
25179
|
var excerpt2 = /* @__PURE__ */ __name((text2) => {
|
|
25162
25180
|
const flat = text2.replace(/\s+/g, " ").trim();
|
|
@@ -25178,7 +25196,7 @@ var whoOf = /* @__PURE__ */ __name((message) => ({
|
|
|
25178
25196
|
var fromOwner = /* @__PURE__ */ __name((message) => message.outgoing === true, "fromOwner");
|
|
25179
25197
|
var day = /* @__PURE__ */ __name((at) => new Date(at).toISOString().slice(0, 10), "day");
|
|
25180
25198
|
|
|
25181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/amounts.js
|
|
25182
25200
|
var MONEY = DEFAULT_TASK_CATEGORIES.filter((category) => category.name === "money");
|
|
25183
25201
|
var verbOf = /* @__PURE__ */ __name((text2) => {
|
|
25184
25202
|
if (MONEY_DONE_FORMS.test(text2))
|
|
@@ -25258,7 +25276,7 @@ var amounts = {
|
|
|
25258
25276
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.state === "open" ? [{ chat: item2.chat, weight: 2, why: "money open" }] : []), "attention")
|
|
25259
25277
|
};
|
|
25260
25278
|
|
|
25261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/children.js
|
|
25262
25280
|
var children = {
|
|
25263
25281
|
id: "children",
|
|
25264
25282
|
version: 1,
|
|
@@ -25287,7 +25305,7 @@ var children = {
|
|
|
25287
25305
|
}, "read")
|
|
25288
25306
|
};
|
|
25289
25307
|
|
|
25290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/coverage.js
|
|
25291
25309
|
var coverage = {
|
|
25292
25310
|
id: "coverage",
|
|
25293
25311
|
version: 1,
|
|
@@ -25316,29 +25334,7 @@ var coverage = {
|
|
|
25316
25334
|
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
25335
|
};
|
|
25318
25336
|
|
|
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
|
|
25337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/payments.js
|
|
25342
25338
|
var holding = /* @__PURE__ */ __name((row) => row.review !== "rejected", "holding");
|
|
25343
25339
|
var item = /* @__PURE__ */ __name((row, at, data) => ({
|
|
25344
25340
|
signal: "payments",
|
|
@@ -25388,7 +25384,7 @@ var payments = {
|
|
|
25388
25384
|
}, "read")
|
|
25389
25385
|
};
|
|
25390
25386
|
|
|
25391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/promises.js
|
|
25392
25388
|
var PATTERNS_PER_CHAT = 3;
|
|
25393
25389
|
var DAY3 = 864e5;
|
|
25394
25390
|
var KINDS2 = /* @__PURE__ */ new Set(["promise", "request"]);
|
|
@@ -25477,7 +25473,7 @@ var promises = {
|
|
|
25477
25473
|
}, "read")
|
|
25478
25474
|
};
|
|
25479
25475
|
|
|
25480
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25476
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/questions.js
|
|
25481
25477
|
var PER_SIDE = 5;
|
|
25482
25478
|
var WEEK = 7 * 864e5;
|
|
25483
25479
|
var NOBODY = /* @__PURE__ */ new Set();
|
|
@@ -25508,7 +25504,7 @@ var questions2 = {
|
|
|
25508
25504
|
}, "attention")
|
|
25509
25505
|
};
|
|
25510
25506
|
|
|
25511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25507
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/reply-next.js
|
|
25512
25508
|
var targetOf = /* @__PURE__ */ __name((message, chat, owners) => {
|
|
25513
25509
|
const byId2 = /* @__PURE__ */ __name((id2) => chat.messages.find((one) => one.id === id2), "byId");
|
|
25514
25510
|
const quoted = message.replyTo ?? (message.replyToId === void 0 ? void 0 : byId2(message.replyToId));
|
|
@@ -25576,7 +25572,7 @@ var replyNext = {
|
|
|
25576
25572
|
attention: /* @__PURE__ */ __name((items) => items.flatMap((item2) => item2.chat !== null && item2.data.next === "owner" ? [{ chat: item2.chat, weight: 2, why: "your move" }] : []), "attention")
|
|
25577
25573
|
};
|
|
25578
25574
|
|
|
25579
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25575
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/topics.js
|
|
25580
25576
|
var escaped = /* @__PURE__ */ __name((text2) => text2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "escaped");
|
|
25581
25577
|
var wholeWord = /* @__PURE__ */ __name((word) => new RegExp(`(?<![\\p{L}\\p{N}])${escaped(word)}(?![\\p{L}\\p{N}])`, "u"), "wholeWord");
|
|
25582
25578
|
var matcherOf = /* @__PURE__ */ __name((query) => {
|
|
@@ -25622,9 +25618,8 @@ var topics = {
|
|
|
25622
25618
|
}, "read")
|
|
25623
25619
|
};
|
|
25624
25620
|
|
|
25625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/signals/index.js
|
|
25626
25622
|
var STATUS_SIGNALS = [
|
|
25627
|
-
lastMessage,
|
|
25628
25623
|
replyNext,
|
|
25629
25624
|
questions2,
|
|
25630
25625
|
promises,
|
|
@@ -25635,7 +25630,7 @@ var STATUS_SIGNALS = [
|
|
|
25635
25630
|
children
|
|
25636
25631
|
];
|
|
25637
25632
|
|
|
25638
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/project-status/index.js
|
|
25639
25634
|
var DAY4 = 864e5;
|
|
25640
25635
|
var STATUS_WINDOW = 300;
|
|
25641
25636
|
var STATUS_CHATS = 16;
|
|
@@ -25817,7 +25812,7 @@ var projectStatus = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
25817
25812
|
};
|
|
25818
25813
|
}, "projectStatus");
|
|
25819
25814
|
|
|
25820
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25815
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/account.js
|
|
25821
25816
|
var accountService = /* @__PURE__ */ __name((deps) => {
|
|
25822
25817
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
25823
25818
|
if (deps.offline)
|
|
@@ -25889,7 +25884,7 @@ var accountService = /* @__PURE__ */ __name((deps) => {
|
|
|
25889
25884
|
};
|
|
25890
25885
|
}, "accountService");
|
|
25891
25886
|
|
|
25892
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25887
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/send-time.js
|
|
25893
25888
|
var MINUTE = 6e4;
|
|
25894
25889
|
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
25895
25890
|
var DELAY = /^(\d+)(m|h|d)$/;
|
|
@@ -25908,7 +25903,7 @@ var sendTime = /* @__PURE__ */ __name((value, now = Date.now(), flag = "--at-tim
|
|
|
25908
25903
|
return new Date(at - at % MINUTE).toISOString();
|
|
25909
25904
|
}, "sendTime");
|
|
25910
25905
|
|
|
25911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/admin.js
|
|
25912
25907
|
var recordMembership = /* @__PURE__ */ __name(async (deps, operationId, done2, change, fix, write) => {
|
|
25913
25908
|
try {
|
|
25914
25909
|
const held = await accountStoreIfOpen(deps);
|
|
@@ -26155,7 +26150,7 @@ var linkLimits = /* @__PURE__ */ __name(({ approval, expires, maxUses }) => {
|
|
|
26155
26150
|
return expires === void 0 ? void 0 : sendTime(expires, Date.now(), "--expire-time");
|
|
26156
26151
|
}, "linkLimits");
|
|
26157
26152
|
|
|
26158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/mail-search.js
|
|
26159
26154
|
var THREADS_PAGE = 500;
|
|
26160
26155
|
var threadsOf = /* @__PURE__ */ __name(async (store, key) => {
|
|
26161
26156
|
const account = await store.accounts.storedAccount(key).catch(() => void 0);
|
|
@@ -26234,7 +26229,7 @@ var readMail = /* @__PURE__ */ __name(async (store, locator, { before: before2 =
|
|
|
26234
26229
|
return thread.slice(Math.max(0, at - before2), at + after + 1).map((hit) => hit.id === message ? { ...hit, anchor: true } : hit);
|
|
26235
26230
|
}, "readMail");
|
|
26236
26231
|
|
|
26237
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26232
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/search-kind.js
|
|
26238
26233
|
var NO_MAIL = "no_mail";
|
|
26239
26234
|
var MAIL = "email";
|
|
26240
26235
|
var listContextOf = /* @__PURE__ */ __name(async (store, account, app, stored) => {
|
|
@@ -26281,7 +26276,7 @@ var accountsOfKind = /* @__PURE__ */ __name((kind, chosen, held, explicit, comma
|
|
|
26281
26276
|
return chosenMail.map(({ provider, account }) => ({ provider, account }));
|
|
26282
26277
|
}, "accountsOfKind");
|
|
26283
26278
|
|
|
26284
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/messages-search.js
|
|
26285
26280
|
var MAIL_FIELDS = /* @__PURE__ */ new Set(["to", "cc", "bcc", "subject", "mailbox", "label", "is"]);
|
|
26286
26281
|
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
26282
|
var prepareLucene = /* @__PURE__ */ __name(async (store, account, request, messenger) => {
|
|
@@ -26629,7 +26624,7 @@ var statsLucene = /* @__PURE__ */ __name(async (store, account, request, messeng
|
|
|
26629
26624
|
};
|
|
26630
26625
|
}, "statsLucene");
|
|
26631
26626
|
|
|
26632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/rankings-selection.js
|
|
26633
26628
|
var RANKING_SELECTION_BYTES = 64 * 1024;
|
|
26634
26629
|
var object = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0, "object");
|
|
26635
26630
|
function invalid(message = "ranking selection is invalid \u2014 obtain a new drilldown from stats top") {
|
|
@@ -26798,7 +26793,7 @@ var readRankingSelection = /* @__PURE__ */ __name(async (store, input) => {
|
|
|
26798
26793
|
};
|
|
26799
26794
|
}, "readRankingSelection");
|
|
26800
26795
|
|
|
26801
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/search-record.js
|
|
26802
26797
|
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
26798
|
var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
26804
26799
|
command,
|
|
@@ -26808,7 +26803,7 @@ var searchRecordOf = /* @__PURE__ */ __name((command, params) => ({
|
|
|
26808
26803
|
fieldsVersion: FIELD_VERSION
|
|
26809
26804
|
}), "searchRecordOf");
|
|
26810
26805
|
|
|
26811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/admin-statistics.js
|
|
26812
26807
|
function invalid2(message) {
|
|
26813
26808
|
throw new CliError("validation_error", message);
|
|
26814
26809
|
}
|
|
@@ -27102,7 +27097,7 @@ var adminStatisticsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
27102
27097
|
}, "evidence")
|
|
27103
27098
|
}), "adminStatisticsService");
|
|
27104
27099
|
|
|
27105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/archive-gaps.js
|
|
27106
27101
|
import { createHash as createHash7, randomUUID as randomUUID4 } from "node:crypto";
|
|
27107
27102
|
var GAP_BOUNDS = { maxGaps: 5, limit: 500, timeMs: 3e4 };
|
|
27108
27103
|
var validateRepair = /* @__PURE__ */ __name((messenger, options) => {
|
|
@@ -27239,12 +27234,12 @@ var gapsService = /* @__PURE__ */ __name((deps) => {
|
|
|
27239
27234
|
return { plan, repair };
|
|
27240
27235
|
}, "gapsService");
|
|
27241
27236
|
|
|
27242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27237
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
27243
27238
|
import { createHash as createHash9 } from "node:crypto";
|
|
27244
27239
|
import { constants as constants2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
27245
27240
|
import { lstat as lstat4, open as open6, readFile, stat as stat2 } from "node:fs/promises";
|
|
27246
27241
|
|
|
27247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/directory.js
|
|
27248
27243
|
import { lstat as lstat2, readdir as readdir2, realpath as realpath3 } from "node:fs/promises";
|
|
27249
27244
|
import { basename as basename4, join as join8, relative as relative2, sep as sep2 } from "node:path";
|
|
27250
27245
|
var MAX_FILES = 1e4;
|
|
@@ -27315,15 +27310,15 @@ var directoryPaths = /* @__PURE__ */ __name(async (store, chat, directory2, app,
|
|
|
27315
27310
|
return choices;
|
|
27316
27311
|
}, "directoryPaths");
|
|
27317
27312
|
|
|
27318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27313
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27319
27314
|
import { posix } from "node:path";
|
|
27320
27315
|
|
|
27321
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27322
27317
|
import { setImmediate as tick } from "node:timers/promises";
|
|
27323
27318
|
import { crc32 } from "node:zlib";
|
|
27324
27319
|
var import_xmldom = __toESM(require_lib(), 1);
|
|
27325
27320
|
|
|
27326
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27321
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/encoding.js
|
|
27327
27322
|
var import_chardet = __toESM(require_lib2(), 1);
|
|
27328
27323
|
var import_iconv_lite = __toESM(require_lib3(), 1);
|
|
27329
27324
|
var SAMPLE = 65536;
|
|
@@ -27425,7 +27420,7 @@ var decodeXml = /* @__PURE__ */ __name((bytes2) => {
|
|
|
27425
27420
|
return result.text;
|
|
27426
27421
|
}, "decodeXml");
|
|
27427
27422
|
|
|
27428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/container.js
|
|
27429
27424
|
var MAX_PART = 10 * 1024 * 1024;
|
|
27430
27425
|
var MAX_ENTRIES = 1e3;
|
|
27431
27426
|
var decoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -27640,7 +27635,7 @@ var elements = /* @__PURE__ */ __name((node, name, namespace) => {
|
|
|
27640
27635
|
return found;
|
|
27641
27636
|
}, "elements");
|
|
27642
27637
|
|
|
27643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/sheets.js
|
|
27644
27639
|
var columnName = /* @__PURE__ */ __name((column) => {
|
|
27645
27640
|
let name = "";
|
|
27646
27641
|
for (let rest = column; rest > 0; rest = Math.floor((rest - 1) / 26))
|
|
@@ -27695,7 +27690,7 @@ var sheetText = /* @__PURE__ */ __name((sheets2, maxChars = MAX_TEXT_CHARS) => {
|
|
|
27695
27690
|
return { text: parts.join("").trim(), truncated: false };
|
|
27696
27691
|
}, "sheetText");
|
|
27697
27692
|
|
|
27698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/documents.js
|
|
27699
27694
|
var OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
27700
27695
|
var TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
27701
27696
|
var TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
@@ -28095,10 +28090,10 @@ var readDocument = /* @__PURE__ */ __name(async (bytes2, kind, signal) => {
|
|
|
28095
28090
|
}
|
|
28096
28091
|
}, "readDocument");
|
|
28097
28092
|
|
|
28098
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28099
28094
|
import { extname as extname3 } from "node:path";
|
|
28100
28095
|
|
|
28101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/engine.js
|
|
28102
28097
|
import { readFileSync } from "node:fs";
|
|
28103
28098
|
import { dirname as dirname4, extname as extname2, join as join9 } from "node:path";
|
|
28104
28099
|
import { fileURLToPath } from "node:url";
|
|
@@ -28159,7 +28154,7 @@ var derived = /* @__PURE__ */ __name((bytes2, extractor, read) => {
|
|
|
28159
28154
|
}
|
|
28160
28155
|
}, "derived");
|
|
28161
28156
|
|
|
28162
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/image/index.js
|
|
28163
28158
|
var IMAGES = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".gif", ".heic", ".tif", ".tiff", ".bmp"]);
|
|
28164
28159
|
var image2 = {
|
|
28165
28160
|
id: "image",
|
|
@@ -28168,7 +28163,7 @@ var image2 = {
|
|
|
28168
28163
|
read: /* @__PURE__ */ __name(async () => ({ status: "needs-agent" }), "read")
|
|
28169
28164
|
};
|
|
28170
28165
|
|
|
28171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28166
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/doc/index.js
|
|
28172
28167
|
var OLE = "\xD0\xCF\xE0\xA1\xB1\xE1";
|
|
28173
28168
|
var doc = {
|
|
28174
28169
|
id: "doc",
|
|
@@ -28180,7 +28175,7 @@ var doc = {
|
|
|
28180
28175
|
}), "read")
|
|
28181
28176
|
};
|
|
28182
28177
|
|
|
28183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/docx/index.js
|
|
28184
28179
|
var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
28185
28180
|
var docx = {
|
|
28186
28181
|
id: "docx",
|
|
@@ -28193,7 +28188,7 @@ var docx = {
|
|
|
28193
28188
|
}), "read")
|
|
28194
28189
|
};
|
|
28195
28190
|
|
|
28196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/markup.js
|
|
28197
28192
|
var import_iconv_lite2 = __toESM(require_lib3(), 1);
|
|
28198
28193
|
var RTF_SKIPPED = /* @__PURE__ */ new Set([
|
|
28199
28194
|
"fonttbl",
|
|
@@ -28369,7 +28364,7 @@ var htmlText = /* @__PURE__ */ __name((source) => {
|
|
|
28369
28364
|
}, "htmlText");
|
|
28370
28365
|
var safeChar = /* @__PURE__ */ __name((code, fallback) => code > 0 && code <= 1114111 ? String.fromCodePoint(code) : fallback, "safeChar");
|
|
28371
28366
|
|
|
28372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/html/page.js
|
|
28373
28368
|
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" ? value.replace(/\s+/g, " ").trim() : "", "clean");
|
|
28374
28369
|
var namesIn = /* @__PURE__ */ __name((value) => [value].flat().map((entry) => typeof entry === "string" ? clean(entry) : clean(entry?.name)).filter(Boolean).join(", "), "namesIn");
|
|
28375
28370
|
var jsonLdNodes = /* @__PURE__ */ __name((document) => {
|
|
@@ -28425,7 +28420,7 @@ var markdownSections = /* @__PURE__ */ __name((text2) => {
|
|
|
28425
28420
|
return found.map((section, index) => ({ ...section, end: found[index + 1]?.start ?? text2.length }));
|
|
28426
28421
|
}, "markdownSections");
|
|
28427
28422
|
|
|
28428
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28423
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/html/index.js
|
|
28429
28424
|
var HTML = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml"]);
|
|
28430
28425
|
var first = /* @__PURE__ */ __name((...values) => values.find((value) => typeof value === "string" && value !== ""), "first");
|
|
28431
28426
|
var loaded = /* @__PURE__ */ __name(async (load, name) => {
|
|
@@ -28496,7 +28491,7 @@ var html = {
|
|
|
28496
28491
|
}, "read")
|
|
28497
28492
|
};
|
|
28498
28493
|
|
|
28499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/office/index.js
|
|
28500
28495
|
var office = {
|
|
28501
28496
|
id: "office",
|
|
28502
28497
|
version: documentExtractor("odt"),
|
|
@@ -28507,7 +28502,7 @@ var office = {
|
|
|
28507
28502
|
}, "read")
|
|
28508
28503
|
};
|
|
28509
28504
|
|
|
28510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/pdf/index.js
|
|
28511
28506
|
var pdf = {
|
|
28512
28507
|
id: "pdf",
|
|
28513
28508
|
version: "unpdf",
|
|
@@ -28574,7 +28569,7 @@ var pdf = {
|
|
|
28574
28569
|
}), "read")
|
|
28575
28570
|
};
|
|
28576
28571
|
|
|
28577
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/plain/index.js
|
|
28578
28573
|
var PLAIN = /* @__PURE__ */ new Set([".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log"]);
|
|
28579
28574
|
var isPlain = /* @__PURE__ */ __name((hint) => PLAIN.has(extensionOf(hint)) || hint.mime?.startsWith("text/") || hint.mime === "application/json", "isPlain");
|
|
28580
28575
|
var readPlain = /* @__PURE__ */ __name((bytes2) => {
|
|
@@ -28594,7 +28589,7 @@ var plain = {
|
|
|
28594
28589
|
read: /* @__PURE__ */ __name(async (bytes2) => readPlain(bytes2), "read")
|
|
28595
28590
|
};
|
|
28596
28591
|
|
|
28597
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28592
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/rtf/index.js
|
|
28598
28593
|
var rtf = {
|
|
28599
28594
|
id: "rtf",
|
|
28600
28595
|
version: "v1",
|
|
@@ -28602,10 +28597,10 @@ var rtf = {
|
|
|
28602
28597
|
read: /* @__PURE__ */ __name(async (bytes2) => derived(bytes2, "rtf:v1", rtfText), "read")
|
|
28603
28598
|
};
|
|
28604
28599
|
|
|
28605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28606
28601
|
import { basename as basename5 } from "node:path";
|
|
28607
28602
|
|
|
28608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/csv-spans.js
|
|
28609
28604
|
var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) => {
|
|
28610
28605
|
const cells = [];
|
|
28611
28606
|
let row = 1, column = 1, start = 0, quoted = false, truncated = false;
|
|
@@ -28643,7 +28638,7 @@ var delimitedSpans = /* @__PURE__ */ __name((text2, delimiter, maxCells = 1e4) =
|
|
|
28643
28638
|
return { cells, truncated };
|
|
28644
28639
|
}, "delimitedSpans");
|
|
28645
28640
|
|
|
28646
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28641
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/sheets/index.js
|
|
28647
28642
|
var DELIMITED = {
|
|
28648
28643
|
".csv": ",",
|
|
28649
28644
|
".tsv": " ",
|
|
@@ -28682,7 +28677,7 @@ var sheets = {
|
|
|
28682
28677
|
}, "read")
|
|
28683
28678
|
};
|
|
28684
28679
|
|
|
28685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/readers/registry.js
|
|
28686
28681
|
var BUILT_INS2 = [office, pdf, docx, doc, rtf, html, sheets, plain, image2];
|
|
28687
28682
|
var HEAD_BYTES = 1024;
|
|
28688
28683
|
var readers = [...BUILT_INS2];
|
|
@@ -28692,7 +28687,7 @@ var readWithRegistry = /* @__PURE__ */ __name(async (bytes2, hint, context2) =>
|
|
|
28692
28687
|
return reader ? reader.read(bytes2, hint, context2) : { status: "unsupported" };
|
|
28693
28688
|
}, "readWithRegistry");
|
|
28694
28689
|
|
|
28695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/extract.js
|
|
28696
28691
|
var importEngine = /* @__PURE__ */ __name((name) => importFrom(new URL("attachments/extract.js", import.meta.resolve("@wirecat/cli-core")).href, name), "importEngine");
|
|
28697
28692
|
var extensionOf2 = /* @__PURE__ */ __name(({ name, path }) => extname3(name ?? path).toLowerCase(), "extensionOf");
|
|
28698
28693
|
var extractText = /* @__PURE__ */ __name(async (bytes2, hint, load, signal, env = process.env) => {
|
|
@@ -29771,7 +29766,7 @@ function imageSize(input) {
|
|
|
29771
29766
|
}
|
|
29772
29767
|
__name(imageSize, "imageSize");
|
|
29773
29768
|
|
|
29774
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/ocr.js
|
|
29775
29770
|
var MAX_PAGES = 20;
|
|
29776
29771
|
var MAX_PIXELS = 2e7;
|
|
29777
29772
|
var cancelled2 = /* @__PURE__ */ __name((signal) => {
|
|
@@ -29922,7 +29917,7 @@ var ocrPdf = /* @__PURE__ */ __name(async (bytes2, pipeline2, load, signal) => {
|
|
|
29922
29917
|
}
|
|
29923
29918
|
}, "ocrPdf");
|
|
29924
29919
|
|
|
29925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/pdf-preview.js
|
|
29926
29921
|
var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = importEngine, env = process.env) => {
|
|
29927
29922
|
const limits = pdfPreviewLimits(env);
|
|
29928
29923
|
const cancelled4 = /* @__PURE__ */ __name(() => {
|
|
@@ -29999,7 +29994,7 @@ var pdfPreview = /* @__PURE__ */ __name(async (bytes2, page, signal, load = impo
|
|
|
29999
29994
|
}
|
|
30000
29995
|
}, "pdfPreview");
|
|
30001
29996
|
|
|
30002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29997
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/attachments/transfer.js
|
|
30003
29998
|
import { createHash as createHash8 } from "node:crypto";
|
|
30004
29999
|
import { constants } from "node:fs";
|
|
30005
30000
|
import { lstat as lstat3, open as open5 } from "node:fs/promises";
|
|
@@ -30107,7 +30102,7 @@ var transferMime = /* @__PURE__ */ __name((head, hint, name = null) => {
|
|
|
30107
30102
|
return hint !== null && /^[a-z0-9.+-]+\/[a-z0-9.+-]+$/i.test(hint) ? hint : "application/octet-stream";
|
|
30108
30103
|
}, "transferMime");
|
|
30109
30104
|
|
|
30110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/file-download.js
|
|
30111
30106
|
import { createWriteStream, mkdirSync } from "node:fs";
|
|
30112
30107
|
import { link as link3, rm } from "node:fs/promises";
|
|
30113
30108
|
import { join as join10, resolve as resolve6 } from "node:path";
|
|
@@ -30221,7 +30216,7 @@ var save = /* @__PURE__ */ __name(async (file, directory2, fallbackName, { uniqu
|
|
|
30221
30216
|
}
|
|
30222
30217
|
}, "save");
|
|
30223
30218
|
|
|
30224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/attachments.js
|
|
30225
30220
|
var ATTACHMENT_QUERY = {
|
|
30226
30221
|
entity: "attachment",
|
|
30227
30222
|
backend: "sql",
|
|
@@ -30644,7 +30639,7 @@ var attachmentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30644
30639
|
}, "setText")
|
|
30645
30640
|
}), "attachmentsService");
|
|
30646
30641
|
|
|
30647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/chat-documents.js
|
|
30648
30643
|
var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
30649
30644
|
list: /* @__PURE__ */ __name(async (chat, { limit, offset, ref }) => {
|
|
30650
30645
|
const store = await accountStore(deps);
|
|
@@ -30674,7 +30669,7 @@ var chatDocumentsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
30674
30669
|
}, "list")
|
|
30675
30670
|
}), "chatDocumentsService");
|
|
30676
30671
|
|
|
30677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30672
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/retention.js
|
|
30678
30673
|
var observationDuration = /* @__PURE__ */ __name((text2, flag) => {
|
|
30679
30674
|
const match = /^(\d+(?:\.\d+)?)([smhdw])$/.exec(text2);
|
|
30680
30675
|
const units2 = { s: 1e3, m: 6e4, h: 36e5, d: 864e5, w: 6048e5 };
|
|
@@ -30761,7 +30756,7 @@ var isRetentionSelection = /* @__PURE__ */ __name((selection) => {
|
|
|
30761
30756
|
}
|
|
30762
30757
|
}, "isRetentionSelection");
|
|
30763
30758
|
|
|
30764
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30759
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/counters.js
|
|
30765
30760
|
var counterFields = /* @__PURE__ */ __name((text2 = "views,reactions,comments") => {
|
|
30766
30761
|
const fields = text2.split(",").map((one) => one.trim());
|
|
30767
30762
|
if (!fields.length || fields.some((one) => !COUNTER_FIELDS.includes(one)) || new Set(fields).size !== fields.length)
|
|
@@ -30968,7 +30963,7 @@ var countersService = /* @__PURE__ */ __name((deps) => {
|
|
|
30968
30963
|
};
|
|
30969
30964
|
}, "countersService");
|
|
30970
30965
|
|
|
30971
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/search-refresh.js
|
|
30972
30967
|
var SYNC_KEY = "messages.sync-first";
|
|
30973
30968
|
var SYNC_BOUNDS = { maxChats: 5, timeMs: 3e4, maxMessages: 500 };
|
|
30974
30969
|
var keyOf2 = /* @__PURE__ */ __name((chat) => JSON.stringify([chat.account.provider, chat.account.account, chat.chatId]), "keyOf");
|
|
@@ -31100,7 +31095,7 @@ var withRefresh = /* @__PURE__ */ __name((found, refreshed) => ({
|
|
|
31100
31095
|
...!refreshed || refreshed.complete ? {} : { coverage: { ...found.coverage, state: "stale" } }
|
|
31101
31096
|
}), "withRefresh");
|
|
31102
31097
|
|
|
31103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/embeddings-search.js
|
|
31104
31099
|
var CANDIDATES = 50;
|
|
31105
31100
|
var WORD_HITS = 200;
|
|
31106
31101
|
var RRF_K = 60;
|
|
@@ -31375,13 +31370,13 @@ var meanOf = /* @__PURE__ */ __name((vectors) => {
|
|
|
31375
31370
|
return mean2.map((value) => value / length);
|
|
31376
31371
|
}, "meanOf");
|
|
31377
31372
|
|
|
31378
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/embeddings.js
|
|
31379
31374
|
var embeddingsService = /* @__PURE__ */ __name((deps) => ({
|
|
31380
31375
|
...embeddingsMaintenance(deps),
|
|
31381
31376
|
...embeddingsSearch(deps)
|
|
31382
31377
|
}), "embeddingsService");
|
|
31383
31378
|
|
|
31384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/folders.js
|
|
31385
31380
|
var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
31386
31381
|
const online = /* @__PURE__ */ __name(async (command) => {
|
|
31387
31382
|
if (deps.offline)
|
|
@@ -31522,7 +31517,7 @@ var foldersService = /* @__PURE__ */ __name((deps) => {
|
|
|
31522
31517
|
};
|
|
31523
31518
|
}, "foldersService");
|
|
31524
31519
|
|
|
31525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/mentions.js
|
|
31526
31521
|
var REVIEW_COUNT = 500;
|
|
31527
31522
|
var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
31528
31523
|
const located = /* @__PURE__ */ __name(async () => {
|
|
@@ -31601,7 +31596,7 @@ var mentionsService = /* @__PURE__ */ __name((deps) => {
|
|
|
31601
31596
|
};
|
|
31602
31597
|
}, "mentionsService");
|
|
31603
31598
|
|
|
31604
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/message-link.js
|
|
31605
31600
|
var fileLinks = /* @__PURE__ */ __name((attachments) => hitFiles(attachments).map(({ position, kind, name }) => ({
|
|
31606
31601
|
position,
|
|
31607
31602
|
kind,
|
|
@@ -31650,7 +31645,7 @@ var validatePermalink = /* @__PURE__ */ __name((link4) => {
|
|
|
31650
31645
|
return { url: link4.url, access: link4.access, reason: link4.reason };
|
|
31651
31646
|
}, "validatePermalink");
|
|
31652
31647
|
|
|
31653
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/pin-duration.js
|
|
31654
31649
|
var spokenSeconds = /* @__PURE__ */ __name((seconds) => {
|
|
31655
31650
|
if (seconds % 86400 === 0 && seconds > 86400)
|
|
31656
31651
|
return `${seconds / 86400}d`;
|
|
@@ -31682,7 +31677,7 @@ var pinDurationOf = /* @__PURE__ */ __name((value, allowed, flag = "--expire-tim
|
|
|
31682
31677
|
return seconds;
|
|
31683
31678
|
}, "pinDurationOf");
|
|
31684
31679
|
|
|
31685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/sends/send-as.js
|
|
31686
31681
|
var sendAsCheck = /* @__PURE__ */ __name((connection, sendAs) => {
|
|
31687
31682
|
if (sendAs === void 0) {
|
|
31688
31683
|
const saved = connection.savedSender?.bind(connection);
|
|
@@ -31707,7 +31702,7 @@ var typedSendAs = /* @__PURE__ */ __name((typed) => {
|
|
|
31707
31702
|
return sendAs;
|
|
31708
31703
|
}, "typedSendAs");
|
|
31709
31704
|
|
|
31710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/search/total.js
|
|
31711
31706
|
var TOTAL_CAP = 1e4;
|
|
31712
31707
|
var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
31713
31708
|
const least = shown + (hasMore ? 1 : 0);
|
|
@@ -31718,7 +31713,7 @@ var totalOf = /* @__PURE__ */ __name((count4, shown, hasMore, exact = true) => {
|
|
|
31718
31713
|
return { value: count4, relation: exact ? "eq" : "gte" };
|
|
31719
31714
|
}, "totalOf");
|
|
31720
31715
|
|
|
31721
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31716
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/search/lucene/meaning-parts.js
|
|
31722
31717
|
var WORD_FIELDS = /* @__PURE__ */ new Set(["text", "exact"]);
|
|
31723
31718
|
var fieldsOfQuery = /* @__PURE__ */ __name((root, everything) => {
|
|
31724
31719
|
let narrows = false;
|
|
@@ -31747,7 +31742,7 @@ var meaningWords = /* @__PURE__ */ __name((root) => {
|
|
|
31747
31742
|
return wanted(root).join(" ").trim();
|
|
31748
31743
|
}, "meaningWords");
|
|
31749
31744
|
|
|
31750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31745
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
31751
31746
|
var words2 = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
31752
31747
|
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
31748
|
var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
|
|
@@ -31879,7 +31874,7 @@ var questionLookup = /* @__PURE__ */ __name((text2) => {
|
|
|
31879
31874
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
31880
31875
|
}, "questionLookup");
|
|
31881
31876
|
|
|
31882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31877
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/messages-combined.js
|
|
31883
31878
|
var COMBINED_DEFAULTS = { candidateDepth: 300, rrfK: 60, rerank: "all", chatCap: 0 };
|
|
31884
31879
|
var tokensOf = /* @__PURE__ */ __name((text2) => normalize(text2).match(/[\p{L}\p{N}\p{Co}\p{M}]+/gu) ?? [], "tokensOf");
|
|
31885
31880
|
var searchCombined = /* @__PURE__ */ __name(async (store, account, request, messenger = {}, options = COMBINED_DEFAULTS) => {
|
|
@@ -32072,7 +32067,7 @@ var signals = /* @__PURE__ */ __name((hit, terms, corrections, execution, mode,
|
|
|
32072
32067
|
return mode === "coverage" ? coverage2 * 4 : mode === "proximity" ? proximity : mode === "phrase" ? phrase : coverage2 * 4 + proximity + phrase;
|
|
32073
32068
|
}, "signals");
|
|
32074
32069
|
|
|
32075
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/messages-discovery.js
|
|
32076
32071
|
var MEANING_DEPTH = 100;
|
|
32077
32072
|
var RRF_K2 = 60;
|
|
32078
32073
|
var RERANK_DEPTH = 50;
|
|
@@ -32397,7 +32392,7 @@ var mixedWithReranker = /* @__PURE__ */ __name((head, scores) => {
|
|
|
32397
32392
|
})).sort((a, b) => b.mixed - a.mixed).map(({ hit }) => hit);
|
|
32398
32393
|
}, "mixedWithReranker");
|
|
32399
32394
|
|
|
32400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32395
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/thread-context.js
|
|
32401
32396
|
var THREAD_BOUNDS = { maxHops: 8, maxMessages: 50, maxBytes: 65536, withinMs: 864e5 };
|
|
32402
32397
|
var bytes = /* @__PURE__ */ __name((items, links) => Buffer.byteLength(JSON.stringify({ items, links }), "utf8"), "bytes");
|
|
32403
32398
|
var threadBounds = /* @__PURE__ */ __name((options = {}) => {
|
|
@@ -32596,7 +32591,7 @@ var readThreadContext = /* @__PURE__ */ __name(async (store, account, chat, mess
|
|
|
32596
32591
|
return result;
|
|
32597
32592
|
}, "readThreadContext");
|
|
32598
32593
|
|
|
32599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/messages-archive-search.js
|
|
32600
32595
|
var SEARCH_FILL_MS = 200;
|
|
32601
32596
|
var statsStore = /* @__PURE__ */ __name(async (store, account, request, messenger = {}) => {
|
|
32602
32597
|
const stop = Date.now() + SEARCH_FILL_MS;
|
|
@@ -32663,12 +32658,12 @@ var accountOf2 = /* @__PURE__ */ __name((hit) => {
|
|
|
32663
32658
|
}, "accountOf");
|
|
32664
32659
|
var keyOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}/${account}`, "keyOf");
|
|
32665
32660
|
|
|
32666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32667
32662
|
import { createHash as createHash10 } from "node:crypto";
|
|
32668
32663
|
import { readFile as readFile2, stat as stat3 } from "node:fs/promises";
|
|
32669
32664
|
import { setTimeout as sleep4 } from "node:timers/promises";
|
|
32670
32665
|
|
|
32671
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/models.js
|
|
32672
32667
|
var GROUP_SETTINGS = [
|
|
32673
32668
|
"allCanPin",
|
|
32674
32669
|
"onlyAdminsAdd",
|
|
@@ -32682,7 +32677,7 @@ var ADMIN_RIGHTS = ["read", "members", "admins", "info", "pin", "link", "post",
|
|
|
32682
32677
|
var senderIsMe = /* @__PURE__ */ __name((message, account) => message.outgoing === true || message.senderId !== null && String(message.senderId) === account, "senderIsMe");
|
|
32683
32678
|
var MEDIA_KINDS = ["photo", "video", "file", "audio", "link"];
|
|
32684
32679
|
|
|
32685
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/pictures.js
|
|
32686
32681
|
var PICTURE_MAX_BYTES = 25 * 1024 * 1024;
|
|
32687
32682
|
var PICTURE_FLOOR = 0.25;
|
|
32688
32683
|
var PAGE4 = 50;
|
|
@@ -32699,7 +32694,7 @@ var picturesService = /* @__PURE__ */ __name((deps) => {
|
|
|
32699
32694
|
const directory2 = imageModelsDirectory(deps.env);
|
|
32700
32695
|
if (!isImageModelInstalled(model2, directory2))
|
|
32701
32696
|
throw new CliError("not_found", missingModel(model2.id), { reason: "model.not-downloaded", model: model2.id });
|
|
32702
|
-
const { openPictureEmbedder } = await import("./embedder-
|
|
32697
|
+
const { openPictureEmbedder } = await import("./embedder-VFSLGHBO.js");
|
|
32703
32698
|
return openPictureEmbedder(model2, directory2);
|
|
32704
32699
|
}, "open");
|
|
32705
32700
|
const embedder = /* @__PURE__ */ __name(() => {
|
|
@@ -32896,7 +32891,7 @@ var withPictures = /* @__PURE__ */ __name((messages, pictures) => ({
|
|
|
32896
32891
|
}, "search")
|
|
32897
32892
|
}), "withPictures");
|
|
32898
32893
|
|
|
32899
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/messages-meaning.js
|
|
32900
32895
|
var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, shared, within) => {
|
|
32901
32896
|
const target2 = embeddingTarget(deps, DEFAULT_TEXT_MODEL);
|
|
32902
32897
|
const skipped = /* @__PURE__ */ __name((reason, step) => ({
|
|
@@ -32964,7 +32959,7 @@ var meaningLane = /* @__PURE__ */ __name((deps) => async (question, accounts, sh
|
|
|
32964
32959
|
}
|
|
32965
32960
|
}, "meaningLane");
|
|
32966
32961
|
|
|
32967
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/messages-rerank.js
|
|
32968
32963
|
var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
32969
32964
|
const choice = deps.reranker ?? DEFAULT_RERANK_MODEL;
|
|
32970
32965
|
if (choice === "off")
|
|
@@ -32976,9 +32971,9 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32976
32971
|
return { skipped: { reason: `${model.id} is not downloaded`, step: "models.download", model: model.id } };
|
|
32977
32972
|
try {
|
|
32978
32973
|
const warm = deps.embedders;
|
|
32979
|
-
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-
|
|
32974
|
+
const reranker = warm ? await warm.reranker(`rerank:${model.id}`, async () => (await import("./process-I3INVLFQ.js")).openRerankerProcess(model, directory2, {
|
|
32980
32975
|
threads: defaultThreads()
|
|
32981
|
-
})) : await (await import("./rerank-
|
|
32976
|
+
})) : await (await import("./rerank-7W3QEZ3Q.js")).openReranker(model, directory2);
|
|
32982
32977
|
return {
|
|
32983
32978
|
model: model.id,
|
|
32984
32979
|
score: /* @__PURE__ */ __name((question, passages) => reranker.score(plainWords(question), passages), "score"),
|
|
@@ -32998,17 +32993,17 @@ var rerankLane = /* @__PURE__ */ __name((deps) => {
|
|
|
32998
32993
|
};
|
|
32999
32994
|
}, "rerankLane");
|
|
33000
32995
|
|
|
33001
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32996
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/document-pictures.js
|
|
33002
32997
|
var openPictureEmbedderFor = /* @__PURE__ */ __name(async ({ env, command } = {}) => {
|
|
33003
32998
|
const model = imageModel(DEFAULT_IMAGE_MODEL);
|
|
33004
32999
|
const directory2 = imageModelsDirectory(env);
|
|
33005
33000
|
if (!isImageModelInstalled(model, directory2))
|
|
33006
33001
|
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-
|
|
33002
|
+
const { openPictureEmbedder } = await import("./embedder-VFSLGHBO.js");
|
|
33008
33003
|
return openPictureEmbedder(model, directory2);
|
|
33009
33004
|
}, "openPictureEmbedderFor");
|
|
33010
33005
|
|
|
33011
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/document-source.js
|
|
33012
33007
|
var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) => {
|
|
33013
33008
|
const metadata = note.frontMatter;
|
|
33014
33009
|
const account = accounts.find(({ id: id2 }) => String(id2) === note.folderId);
|
|
@@ -33023,7 +33018,7 @@ var documentSource = /* @__PURE__ */ __name((note, accounts, profiles, file) =>
|
|
|
33023
33018
|
};
|
|
33024
33019
|
}, "documentSource");
|
|
33025
33020
|
|
|
33026
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33021
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/notes-title-tier.js
|
|
33027
33022
|
var plainQueryWords = /* @__PURE__ */ __name((query) => {
|
|
33028
33023
|
let root;
|
|
33029
33024
|
try {
|
|
@@ -33050,7 +33045,7 @@ var titleTiers = /* @__PURE__ */ __name((hits, words3) => {
|
|
|
33050
33045
|
return [...hits].sort((a, b) => rank(a) - rank(b));
|
|
33051
33046
|
}, "titleTiers");
|
|
33052
33047
|
|
|
33053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33048
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/notes-search.js
|
|
33054
33049
|
var storeQuery = /* @__PURE__ */ __name(async (store, text2, { exact, timezone } = {}) => resolvedQuery(store, parsedQuery(text2, exact), timezone), "storeQuery");
|
|
33055
33050
|
var parsedQuery = /* @__PURE__ */ __name((text2, exact) => validateFields(parseLucene(text2, { ...SEARCH_QUERY, defaultField: exact ? "exact" : "text" })).root, "parsedQuery");
|
|
33056
33051
|
var resolvedQuery = /* @__PURE__ */ __name(async (store, root, timezone) => {
|
|
@@ -33467,7 +33462,7 @@ var searchNotesOf = /* @__PURE__ */ __name(async (store, account, text2, { accou
|
|
|
33467
33462
|
};
|
|
33468
33463
|
}, "searchNotesOf");
|
|
33469
33464
|
|
|
33470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/events-search.js
|
|
33471
33466
|
var MAX_EVENTS_OFFSET = 1e3;
|
|
33472
33467
|
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
33473
33468
|
var accountIdsOf = /* @__PURE__ */ __name(async (store, accounts) => {
|
|
@@ -33584,7 +33579,7 @@ var searchEvents = /* @__PURE__ */ __name(async (store, query, { limit = 20, off
|
|
|
33584
33579
|
};
|
|
33585
33580
|
}, "searchEvents");
|
|
33586
33581
|
|
|
33587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/search-all.js
|
|
33588
33583
|
var RESOURCES_SEARCHED = ["messages", "mail", "notes", "events"];
|
|
33589
33584
|
var skippable = /* @__PURE__ */ __name((error) => error instanceof CliError && (error.code === "validation_error" || error.code === "not_found"), "skippable");
|
|
33590
33585
|
var filtersBeside = /* @__PURE__ */ __name((text2) => {
|
|
@@ -33813,7 +33808,7 @@ var oneList = /* @__PURE__ */ __name((lists, cosines) => {
|
|
|
33813
33808
|
return [...place.values()].sort((a, b) => a.rank - b.rank || cosine(b.item.ref) - cosine(a.item.ref)).map(({ item: item2 }) => item2);
|
|
33814
33809
|
}, "oneList");
|
|
33815
33810
|
|
|
33816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/search-all-meetings.js
|
|
33817
33812
|
var RESOURCES_SEARCHED_WITH_MEETINGS = [...RESOURCES_SEARCHED, "meetings"];
|
|
33818
33813
|
var whole2 = /* @__PURE__ */ __name((value, minimum, maximum, label) => {
|
|
33819
33814
|
if (!Number.isSafeInteger(value) || value < minimum || value > maximum)
|
|
@@ -34066,7 +34061,7 @@ var searchAllOfSource = /* @__PURE__ */ __name(async (store, account, source, re
|
|
|
34066
34061
|
return { ...found, skipped: [...skipped, ...empty2, ...unnamed, ...found.skipped] };
|
|
34067
34062
|
}, "searchAllOfSource");
|
|
34068
34063
|
|
|
34069
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/server-search.js
|
|
34070
34065
|
var SERVER_SEARCH_KEY = "messages.server-search";
|
|
34071
34066
|
var SERVER_BOUNDS = { timeMs: 5e3, perCall: 100, maxCalls: 3, textBytes: 262144 };
|
|
34072
34067
|
var DEFAULT_BACKEND = "both";
|
|
@@ -34255,7 +34250,7 @@ var searchServer = /* @__PURE__ */ __name(async (deps, request) => {
|
|
|
34255
34250
|
return { report, sources };
|
|
34256
34251
|
}, "searchServer");
|
|
34257
34252
|
|
|
34258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/messages.js
|
|
34259
34254
|
var DELETE_AT_ONCE = 10;
|
|
34260
34255
|
var filesOf = /* @__PURE__ */ __name(({ attachments }) => {
|
|
34261
34256
|
const files = fileLinks(attachments);
|
|
@@ -34696,7 +34691,7 @@ var checkMediaOptions = /* @__PURE__ */ __name((messenger, asked, attachments) =
|
|
|
34696
34691
|
throw new CliError("validation_error", `${MEDIA_FLAGS[first2]} needs a --photo or --file`);
|
|
34697
34692
|
}, "checkMediaOptions");
|
|
34698
34693
|
|
|
34699
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34694
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/domain/channel-tags.js
|
|
34700
34695
|
var CHANNEL_TAG_RULES_VERSION = "keywords-v1";
|
|
34701
34696
|
var RULES = {
|
|
34702
34697
|
ai: [/\b(ai|gpt|llm|machine learning|artificial intelligence)\b/iu, /нейросет|искусственн/iu],
|
|
@@ -34711,7 +34706,7 @@ var classifyChannel = /* @__PURE__ */ __name((metadata) => Object.entries(RULES)
|
|
|
34711
34706
|
return fields.length ? [{ tag, score: fields.length / 3, fields }] : [];
|
|
34712
34707
|
}), "classifyChannel");
|
|
34713
34708
|
|
|
34714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34709
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/metadata.js
|
|
34715
34710
|
var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
34716
34711
|
const held = /* @__PURE__ */ __name(async (reference, { includeLeft = false } = {}) => {
|
|
34717
34712
|
const store = await deps.store();
|
|
@@ -34797,7 +34792,7 @@ var metadataService = /* @__PURE__ */ __name((deps) => {
|
|
|
34797
34792
|
};
|
|
34798
34793
|
}, "metadataService");
|
|
34799
34794
|
|
|
34800
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34795
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/moderation/run.js
|
|
34801
34796
|
var FIRST_LOOK_MS = 24 * 36e5;
|
|
34802
34797
|
var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
34803
34798
|
const { chatId, title, rules, point, since, dryRun } = run;
|
|
@@ -34834,7 +34829,7 @@ var moderateWith = /* @__PURE__ */ __name(async (run) => {
|
|
|
34834
34829
|
return { chatId, rows, notes };
|
|
34835
34830
|
}, "moderateWith");
|
|
34836
34831
|
|
|
34837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/moderation.js
|
|
34838
34833
|
var moderationService = /* @__PURE__ */ __name((deps) => {
|
|
34839
34834
|
const file = /* @__PURE__ */ __name(() => new ModerationRules(moderationPathFor(deps.messenger.app, deps.profile ?? "default", deps.env ?? process.env)), "file");
|
|
34840
34835
|
const group = /* @__PURE__ */ __name(async (chat) => {
|
|
@@ -34912,7 +34907,7 @@ var moderatorOf = /* @__PURE__ */ __name((adapter, deps) => ({
|
|
|
34912
34907
|
}, "removePerson")
|
|
34913
34908
|
}), "moderatorOf");
|
|
34914
34909
|
|
|
34915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/private-people.js
|
|
34916
34911
|
var noteItem = /* @__PURE__ */ __name((provider, note) => ({
|
|
34917
34912
|
id: note.id,
|
|
34918
34913
|
contact: formatReference({ type: "contact", provider, id: note.personId }),
|
|
@@ -34956,7 +34951,7 @@ var privatePeopleService = /* @__PURE__ */ __name((deps) => {
|
|
|
34956
34951
|
};
|
|
34957
34952
|
}, "privatePeopleService");
|
|
34958
34953
|
|
|
34959
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/rankings.js
|
|
34960
34955
|
var empty = /* @__PURE__ */ __name(() => ({
|
|
34961
34956
|
total: 0,
|
|
34962
34957
|
population: 0,
|
|
@@ -35212,7 +35207,7 @@ var rankingsService = /* @__PURE__ */ __name((deps) => ({
|
|
|
35212
35207
|
}, "evidence")
|
|
35213
35208
|
}), "rankingsService");
|
|
35214
35209
|
|
|
35215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/reply-stats.js
|
|
35216
35211
|
var FIELDS = ["date", "chat", "kind"];
|
|
35217
35212
|
var WAITING_TAIL = 100;
|
|
35218
35213
|
var plainOnly = /* @__PURE__ */ __name((text2, command) => {
|
|
@@ -35339,7 +35334,7 @@ var replyStatsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35339
35334
|
};
|
|
35340
35335
|
}, "replyStatsService");
|
|
35341
35336
|
|
|
35342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/searches.js
|
|
35343
35338
|
var savedSearchItem = /* @__PURE__ */ __name((one) => ({
|
|
35344
35339
|
id: one.id,
|
|
35345
35340
|
name: one.name,
|
|
@@ -35468,7 +35463,7 @@ var searchesService = /* @__PURE__ */ __name((deps) => {
|
|
|
35468
35463
|
};
|
|
35469
35464
|
}, "searchesService");
|
|
35470
35465
|
|
|
35471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/tags.js
|
|
35472
35467
|
var TAGGING_QUERY = {
|
|
35473
35468
|
entity: "tagging",
|
|
35474
35469
|
backend: "sql",
|
|
@@ -35552,7 +35547,7 @@ var tagsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35552
35547
|
};
|
|
35553
35548
|
}, "tagsService");
|
|
35554
35549
|
|
|
35555
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35550
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/topics.js
|
|
35556
35551
|
var actionOf = /* @__PURE__ */ __name(({ title, closed, pinned, hidden, icon }) => {
|
|
35557
35552
|
const set = [closed, pinned, hidden].filter((one) => one !== void 0).length;
|
|
35558
35553
|
if (title !== void 0 || icon !== void 0 || set !== 1)
|
|
@@ -35751,7 +35746,7 @@ var topicsService = /* @__PURE__ */ __name((deps) => {
|
|
|
35751
35746
|
};
|
|
35752
35747
|
}, "topicsService");
|
|
35753
35748
|
|
|
35754
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/evidence.js
|
|
35755
35750
|
import { createHash as createHash11, randomUUID as randomUUID5 } from "node:crypto";
|
|
35756
35751
|
var hash2 = /* @__PURE__ */ __name((value) => createHash11("sha256").update(JSON.stringify(value)).digest("hex"), "hash");
|
|
35757
35752
|
var positive = /* @__PURE__ */ __name((value, name, minimum = 1) => {
|
|
@@ -35825,7 +35820,7 @@ var prepareEvidencePacket = /* @__PURE__ */ __name(({ kind, source, page, limits
|
|
|
35825
35820
|
return { ...content, id: randomUUID5(), fingerprint: hash2(content) };
|
|
35826
35821
|
}, "prepareEvidencePacket");
|
|
35827
35822
|
|
|
35828
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/evidence-read.js
|
|
35829
35824
|
var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, limit, before: before2 }, messenger = {}) => {
|
|
35830
35825
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 100)
|
|
35831
35826
|
throw new CliError("validation_error", "evidence message limit must be an integer from 1 to 100");
|
|
@@ -35845,7 +35840,7 @@ var readEvidencePacket = /* @__PURE__ */ __name(async (store, account, { chat, l
|
|
|
35845
35840
|
return { ...packet, nextBeforeId: older && last ? last.id : null };
|
|
35846
35841
|
}, "readEvidencePacket");
|
|
35847
35842
|
|
|
35848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/meeting-project-discovery.js
|
|
35849
35844
|
var scopeKeys = [
|
|
35850
35845
|
"accountId",
|
|
35851
35846
|
"meetingId",
|
|
@@ -35867,7 +35862,7 @@ var optionKeys = /* @__PURE__ */ new Set([
|
|
|
35867
35862
|
"maxVocabularyReadBytes"
|
|
35868
35863
|
]);
|
|
35869
35864
|
|
|
35870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/context/communication-selection.js
|
|
35871
35866
|
var communicationFields = {
|
|
35872
35867
|
sources: pipe(array(strictObject({
|
|
35873
35868
|
id: pipe(string(), regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/)),
|
|
@@ -35899,7 +35894,7 @@ var communicationRequest = /* @__PURE__ */ __name((value, preparationAfter) => {
|
|
|
35899
35894
|
return { ...input, after, before: before2 };
|
|
35900
35895
|
}, "communicationRequest");
|
|
35901
35896
|
|
|
35902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/meeting-preparation-validation.js
|
|
35903
35898
|
var MEETING_PREPARATION_LIMITS = {
|
|
35904
35899
|
meetings: { min: 1, max: 20, default: 5 },
|
|
35905
35900
|
cues: { min: 1, max: 100, default: 10 },
|
|
@@ -35972,7 +35967,7 @@ var validateMeetingPreparationRequest = /* @__PURE__ */ __name((externalId, orig
|
|
|
35972
35967
|
};
|
|
35973
35968
|
}, "validateMeetingPreparationRequest");
|
|
35974
35969
|
|
|
35975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/meeting-communications-selection.js
|
|
35976
35971
|
var validatePreparationCommunications = /* @__PURE__ */ __name((section, request, after) => {
|
|
35977
35972
|
const fail2 = /* @__PURE__ */ __name(() => {
|
|
35978
35973
|
throw new CliError("invalid_response", "Preparation communications returned another selection or invalid evidence");
|
|
@@ -36020,7 +36015,7 @@ var validatePreparationCommunications = /* @__PURE__ */ __name((section, request
|
|
|
36020
36015
|
}
|
|
36021
36016
|
}, "validatePreparationCommunications");
|
|
36022
36017
|
|
|
36023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/package-upgrade.js
|
|
36024
36019
|
var upgradePackage = /* @__PURE__ */ __name(async ({ current, command, packageName, check: check2 }, ports) => {
|
|
36025
36020
|
const installer = ports.installer();
|
|
36026
36021
|
const argv = updateCommand(installer, packageName);
|
|
@@ -36085,7 +36080,7 @@ var dayAfter = /* @__PURE__ */ __name((published) => {
|
|
|
36085
36080
|
return Number.isNaN(time) ? null : new Date(time + 24 * 60 * 60 * 1e3).toISOString();
|
|
36086
36081
|
}, "dayAfter");
|
|
36087
36082
|
|
|
36088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/services/index.js
|
|
36089
36084
|
var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
36090
36085
|
const pictures = picturesService(deps);
|
|
36091
36086
|
const base = {
|
|
@@ -36122,7 +36117,7 @@ var servicesFor = /* @__PURE__ */ __name((deps) => {
|
|
|
36122
36117
|
return deps.messenger.services ? { ...base, ...deps.messenger.services(base, deps) } : base;
|
|
36123
36118
|
}, "servicesFor");
|
|
36124
36119
|
|
|
36125
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
36126
36121
|
import { createHash as createHash12 } from "node:crypto";
|
|
36127
36122
|
import { chmodSync, lstatSync, mkdirSync as mkdirSync3, rmSync } from "node:fs";
|
|
36128
36123
|
import { createConnection, createServer } from "node:net";
|
|
@@ -36343,7 +36338,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
36343
36338
|
}, () => finish({ error: stopped() }));
|
|
36344
36339
|
}), "relayCommand");
|
|
36345
36340
|
|
|
36346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36341
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.587.0_@wirecat+cli-base@0.80.0_commander@15.0.0_esbuild@0.28.2_type_0f4056d0db575ed69cb7c50d6a509493/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
36347
36342
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
36348
36343
|
close: /* @__PURE__ */ __name(async () => {
|
|
36349
36344
|
}, "close"),
|
|
@@ -36434,6 +36429,7 @@ export {
|
|
|
36434
36429
|
onlineDeps,
|
|
36435
36430
|
storedDeps,
|
|
36436
36431
|
storeModeDeps,
|
|
36432
|
+
withTimeLimit,
|
|
36437
36433
|
REGISTRIES,
|
|
36438
36434
|
registriesCover,
|
|
36439
36435
|
mailTurn,
|