@wirecat/mail-cli 0.38.0 → 0.39.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.
Files changed (395) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +9 -7
  3. package/contracts/wirecat.json +63 -2
  4. package/dist/bin/mail.js +11 -11
  5. package/dist/bundle/{chunk-HIKPVWCL.js → chunk-BXH2YUBR.js} +32 -5
  6. package/dist/bundle/mail.js +4 -166
  7. package/dist/bundle/program-ZSF2VJI6.js +17329 -0
  8. package/dist/commands/account-remove.js +1 -2
  9. package/dist/commands/account.js +1 -1
  10. package/dist/commands/attachments.js +1 -2
  11. package/dist/commands/context.js +1 -1
  12. package/dist/commands/doctor.js +1 -1
  13. package/dist/commands/drafts-send.js +1 -2
  14. package/dist/commands/drafts.js +1 -2
  15. package/dist/commands/export.js +1 -2
  16. package/dist/commands/folders.js +1 -2
  17. package/dist/commands/import.js +1 -1
  18. package/dist/commands/messages.js +1 -1
  19. package/dist/commands/organising.js +1 -2
  20. package/dist/commands/read.js +2 -4
  21. package/dist/commands/restore.js +1 -1
  22. package/dist/commands/rules.js +1 -2
  23. package/dist/commands/send.js +1 -2
  24. package/dist/commands/session-start.js +1 -1
  25. package/dist/commands/session.js +1 -1
  26. package/dist/commands/stats.js +1 -1
  27. package/dist/commands/status.js +3 -5
  28. package/dist/commands/sync.js +1 -1
  29. package/dist/commands/tags.js +1 -2
  30. package/dist/config.js +1 -1
  31. package/dist/identity.js +26 -0
  32. package/dist/mail/changes.js +3 -2
  33. package/dist/mail/cleanup.js +3 -2
  34. package/dist/mail/domain-age.js +1 -1
  35. package/dist/mail/memo-trash.js +47 -0
  36. package/dist/mail/organise.js +1 -1
  37. package/dist/mail/save.js +1 -1
  38. package/dist/mail/send.js +1 -1
  39. package/dist/oauth.js +1 -3
  40. package/dist/profile.js +1 -1
  41. package/dist/program.js +1 -2
  42. package/dist/providers.js +4 -4
  43. package/dist/store.js +1 -1
  44. package/dist/version.js +1 -1
  45. package/package.json +5 -5
  46. package/dist/bin/mail.d.ts +0 -3
  47. package/dist/bin/mail.d.ts.map +0 -1
  48. package/dist/bin/mail.js.map +0 -1
  49. package/dist/bundle/agent-U43CYLAP.js +0 -41
  50. package/dist/bundle/all-profiles-OCUZMXMI.js +0 -320
  51. package/dist/bundle/anthropic-CABWJABQ.js +0 -90
  52. package/dist/bundle/app-server-TTWPIGWG.js +0 -257
  53. package/dist/bundle/bun-F4M4KCNA.js +0 -169
  54. package/dist/bundle/bun-sqlite-YKYG25CR.js +0 -75
  55. package/dist/bundle/chunk-24UGTK32.js +0 -185
  56. package/dist/bundle/chunk-2HDXD6LM.js +0 -615
  57. package/dist/bundle/chunk-2SQLHBDP.js +0 -54
  58. package/dist/bundle/chunk-2YO3PLOE.js +0 -2843
  59. package/dist/bundle/chunk-3TYER5IK.js +0 -80
  60. package/dist/bundle/chunk-4FXDUXZP.js +0 -192
  61. package/dist/bundle/chunk-5ICUC66S.js +0 -76
  62. package/dist/bundle/chunk-725OPCHI.js +0 -4070
  63. package/dist/bundle/chunk-77YTUOKN.js +0 -1255
  64. package/dist/bundle/chunk-7ECP5ZQR.js +0 -2
  65. package/dist/bundle/chunk-7EJWHADX.js +0 -323
  66. package/dist/bundle/chunk-7KO5FSAW.js +0 -64
  67. package/dist/bundle/chunk-A3KNH3Q4.js +0 -353
  68. package/dist/bundle/chunk-AGO3OVKW.js +0 -40856
  69. package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
  70. package/dist/bundle/chunk-BA5B5ZF4.js +0 -12177
  71. package/dist/bundle/chunk-C4PUDTGD.js +0 -106
  72. package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
  73. package/dist/bundle/chunk-CJJFOT7W.js +0 -52
  74. package/dist/bundle/chunk-CLTFTGBP.js +0 -560
  75. package/dist/bundle/chunk-D72URWJE.js +0 -532
  76. package/dist/bundle/chunk-DFDN6AUB.js +0 -21
  77. package/dist/bundle/chunk-DKGKPJA3.js +0 -3752
  78. package/dist/bundle/chunk-DNCLQPOM.js +0 -7
  79. package/dist/bundle/chunk-DPV53EZC.js +0 -206
  80. package/dist/bundle/chunk-DYCE72XB.js +0 -794
  81. package/dist/bundle/chunk-EDWY73H7.js +0 -133
  82. package/dist/bundle/chunk-EJQAP6A6.js +0 -1007
  83. package/dist/bundle/chunk-ESNZL7SB.js +0 -330
  84. package/dist/bundle/chunk-FFER7KJI.js +0 -407
  85. package/dist/bundle/chunk-FTH6WGYO.js +0 -24
  86. package/dist/bundle/chunk-FWGNDKJK.js +0 -195
  87. package/dist/bundle/chunk-G46PNDWL.js +0 -58
  88. package/dist/bundle/chunk-G5HG7ZWQ.js +0 -1169
  89. package/dist/bundle/chunk-G6NY7LFB.js +0 -230
  90. package/dist/bundle/chunk-GMWKNWWY.js +0 -388
  91. package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
  92. package/dist/bundle/chunk-HFDDVGDH.js +0 -9512
  93. package/dist/bundle/chunk-HFRH5YJ6.js +0 -86
  94. package/dist/bundle/chunk-HI6MTNID.js +0 -338
  95. package/dist/bundle/chunk-HO4JGD4Q.js +0 -16
  96. package/dist/bundle/chunk-HTQTIKWP.js +0 -928
  97. package/dist/bundle/chunk-HUAHLO6N.js +0 -29
  98. package/dist/bundle/chunk-HYUUAH2N.js +0 -188
  99. package/dist/bundle/chunk-I4AWLFYH.js +0 -377
  100. package/dist/bundle/chunk-I4PZOWYG.js +0 -334
  101. package/dist/bundle/chunk-IDCZ4LWS.js +0 -150
  102. package/dist/bundle/chunk-ISQ23VKV.js +0 -123
  103. package/dist/bundle/chunk-KLRCTMES.js +0 -100
  104. package/dist/bundle/chunk-KP5JDYY6.js +0 -2669
  105. package/dist/bundle/chunk-KYRYD4CR.js +0 -38
  106. package/dist/bundle/chunk-LB2CF3GG.js +0 -730
  107. package/dist/bundle/chunk-LC7ZD2RW.js +0 -92
  108. package/dist/bundle/chunk-M65NILSA.js +0 -259
  109. package/dist/bundle/chunk-NQFG7AES.js +0 -364
  110. package/dist/bundle/chunk-OAO3JKQD.js +0 -463
  111. package/dist/bundle/chunk-OEEWVKJX.js +0 -53
  112. package/dist/bundle/chunk-OVHC7OV4.js +0 -218
  113. package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
  114. package/dist/bundle/chunk-PT4VLN3K.js +0 -161
  115. package/dist/bundle/chunk-QETNCUWB.js +0 -1703
  116. package/dist/bundle/chunk-QK3Z7BCC.js +0 -95
  117. package/dist/bundle/chunk-QWF3TFW4.js +0 -1342
  118. package/dist/bundle/chunk-RHEDE7D4.js +0 -80
  119. package/dist/bundle/chunk-RI5YZ23Y.js +0 -1068
  120. package/dist/bundle/chunk-ROUZN6UQ.js +0 -1997
  121. package/dist/bundle/chunk-RQD7CAGF.js +0 -288
  122. package/dist/bundle/chunk-S6JG4YUH.js +0 -72
  123. package/dist/bundle/chunk-SBLHQAH3.js +0 -360
  124. package/dist/bundle/chunk-SXLIADMY.js +0 -52
  125. package/dist/bundle/chunk-SYCM6SQ5.js +0 -2470
  126. package/dist/bundle/chunk-T3W4V4A6.js +0 -63
  127. package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
  128. package/dist/bundle/chunk-TES7MB6I.js +0 -82
  129. package/dist/bundle/chunk-TQDSBLQB.js +0 -2
  130. package/dist/bundle/chunk-TXDR6YSF.js +0 -23
  131. package/dist/bundle/chunk-TY7NDMFY.js +0 -46
  132. package/dist/bundle/chunk-UGFMQWAZ.js +0 -1044
  133. package/dist/bundle/chunk-VA6PHTMV.js +0 -690
  134. package/dist/bundle/chunk-VK24UQSD.js +0 -142
  135. package/dist/bundle/chunk-VUHH4MQW.js +0 -73464
  136. package/dist/bundle/chunk-W3BOR6AT.js +0 -2333
  137. package/dist/bundle/chunk-WA53OJ7V.js +0 -160
  138. package/dist/bundle/chunk-XGVMQMTS.js +0 -1197
  139. package/dist/bundle/chunk-XQUUANA2.js +0 -24600
  140. package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
  141. package/dist/bundle/chunk-YP4FYLFI.js +0 -170
  142. package/dist/bundle/chunk-ZDBWBCEO.js +0 -108
  143. package/dist/bundle/chunk-ZKVUAH5N.js +0 -274
  144. package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
  145. package/dist/bundle/command-contract-V2WIL6RL.js +0 -40
  146. package/dist/bundle/command-server-entry-ZC5YF4EC.js +0 -169
  147. package/dist/bundle/decode-NXAGEUAD.js +0 -296
  148. package/dist/bundle/dispatch-USKS7J74.js +0 -411
  149. package/dist/bundle/dist-HFUVURJG.js +0 -7577
  150. package/dist/bundle/dist-PAKDDIBT.js +0 -191
  151. package/dist/bundle/dist-XN2CRP3U.js +0 -318
  152. package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
  153. package/dist/bundle/embed-3P3LSM2O.js +0 -37
  154. package/dist/bundle/embedder-2SANUF2X.js +0 -110
  155. package/dist/bundle/failure-D4FGOIWF.js +0 -24
  156. package/dist/bundle/first-run-HEZKQLJL.js +0 -28
  157. package/dist/bundle/first-screen-7TQZ4I6X.js +0 -41
  158. package/dist/bundle/instructions-4H7UREH2.js +0 -11
  159. package/dist/bundle/mcp-5HFPWC3W.js +0 -167
  160. package/dist/bundle/meeting-combined-HF2NL4PU.js +0 -26
  161. package/dist/bundle/meeting-model-B7RVFB7L.js +0 -24
  162. package/dist/bundle/meeting-semantic-YQTL7YVQ.js +0 -21
  163. package/dist/bundle/node-KM3CUABH.js +0 -2340
  164. package/dist/bundle/node-P3PUHKYH.js +0 -176
  165. package/dist/bundle/node-TLZSIHIJ.js +0 -21
  166. package/dist/bundle/node-sqlite-OFHTCHJH.js +0 -73
  167. package/dist/bundle/oauth-IVB5RP7T.js +0 -19
  168. package/dist/bundle/open-KDGDLCWV.js +0 -22
  169. package/dist/bundle/openai-NVUBKA7Z.js +0 -237
  170. package/dist/bundle/process-AFIXYXWL.js +0 -91
  171. package/dist/bundle/program-JQ7EFODJ.js +0 -47008
  172. package/dist/bundle/prompt-QG7FC2SA.js +0 -16
  173. package/dist/bundle/public-FBD7MQUM.js +0 -204
  174. package/dist/bundle/recognize-ZBR5KNID.js +0 -25
  175. package/dist/bundle/remote-QOTHNO2M.js +0 -30
  176. package/dist/bundle/rerank-JD2NIUW6.js +0 -51
  177. package/dist/bundle/serve-QZT3FKK7.js +0 -198
  178. package/dist/bundle/server-M6JJ7IKS.js +0 -219
  179. package/dist/bundle/server-TAMXMWK6.js +0 -87
  180. package/dist/bundle/sqlite-runtime-N2PY7C7J.js +0 -19
  181. package/dist/bundle/state-OGRUMU7P.js +0 -35
  182. package/dist/bundle/store-7UE63OQR.js +0 -313
  183. package/dist/bundle/store-DGJKE4ZJ.js +0 -186
  184. package/dist/bundle/store-maintenance-command-WIDKMZLK.js +0 -74
  185. package/dist/bundle/surface-LTEEEZU4.js +0 -73
  186. package/dist/commands/account-remove.d.ts +0 -3
  187. package/dist/commands/account-remove.d.ts.map +0 -1
  188. package/dist/commands/account-remove.js.map +0 -1
  189. package/dist/commands/account.d.ts +0 -3
  190. package/dist/commands/account.d.ts.map +0 -1
  191. package/dist/commands/account.js.map +0 -1
  192. package/dist/commands/attachments.d.ts +0 -3
  193. package/dist/commands/attachments.d.ts.map +0 -1
  194. package/dist/commands/attachments.js.map +0 -1
  195. package/dist/commands/context.d.ts +0 -79
  196. package/dist/commands/context.d.ts.map +0 -1
  197. package/dist/commands/context.js.map +0 -1
  198. package/dist/commands/doctor.d.ts +0 -68
  199. package/dist/commands/doctor.d.ts.map +0 -1
  200. package/dist/commands/doctor.js.map +0 -1
  201. package/dist/commands/drafts-send.d.ts +0 -7
  202. package/dist/commands/drafts-send.d.ts.map +0 -1
  203. package/dist/commands/drafts-send.js.map +0 -1
  204. package/dist/commands/drafts.d.ts +0 -3
  205. package/dist/commands/drafts.d.ts.map +0 -1
  206. package/dist/commands/drafts.js.map +0 -1
  207. package/dist/commands/export.d.ts +0 -3
  208. package/dist/commands/export.d.ts.map +0 -1
  209. package/dist/commands/export.js.map +0 -1
  210. package/dist/commands/folders.d.ts +0 -3
  211. package/dist/commands/folders.d.ts.map +0 -1
  212. package/dist/commands/folders.js.map +0 -1
  213. package/dist/commands/import.d.ts +0 -3
  214. package/dist/commands/import.d.ts.map +0 -1
  215. package/dist/commands/import.js.map +0 -1
  216. package/dist/commands/login.d.ts +0 -5
  217. package/dist/commands/login.d.ts.map +0 -1
  218. package/dist/commands/login.js.map +0 -1
  219. package/dist/commands/mailbox.d.ts +0 -17
  220. package/dist/commands/mailbox.d.ts.map +0 -1
  221. package/dist/commands/mailbox.js.map +0 -1
  222. package/dist/commands/messages.d.ts +0 -4
  223. package/dist/commands/messages.d.ts.map +0 -1
  224. package/dist/commands/messages.js.map +0 -1
  225. package/dist/commands/organising.d.ts +0 -98
  226. package/dist/commands/organising.d.ts.map +0 -1
  227. package/dist/commands/organising.js.map +0 -1
  228. package/dist/commands/read.d.ts +0 -6
  229. package/dist/commands/read.d.ts.map +0 -1
  230. package/dist/commands/read.js.map +0 -1
  231. package/dist/commands/restore.d.ts +0 -3
  232. package/dist/commands/restore.d.ts.map +0 -1
  233. package/dist/commands/restore.js.map +0 -1
  234. package/dist/commands/rules.d.ts +0 -3
  235. package/dist/commands/rules.d.ts.map +0 -1
  236. package/dist/commands/rules.js.map +0 -1
  237. package/dist/commands/send.d.ts +0 -51
  238. package/dist/commands/send.d.ts.map +0 -1
  239. package/dist/commands/send.js.map +0 -1
  240. package/dist/commands/server-search.d.ts +0 -8
  241. package/dist/commands/server-search.d.ts.map +0 -1
  242. package/dist/commands/server-search.js.map +0 -1
  243. package/dist/commands/session-start.d.ts +0 -3
  244. package/dist/commands/session-start.d.ts.map +0 -1
  245. package/dist/commands/session-start.js.map +0 -1
  246. package/dist/commands/session.d.ts +0 -3
  247. package/dist/commands/session.d.ts.map +0 -1
  248. package/dist/commands/session.js.map +0 -1
  249. package/dist/commands/stats.d.ts +0 -3
  250. package/dist/commands/stats.d.ts.map +0 -1
  251. package/dist/commands/stats.js.map +0 -1
  252. package/dist/commands/status.d.ts +0 -3
  253. package/dist/commands/status.d.ts.map +0 -1
  254. package/dist/commands/status.js.map +0 -1
  255. package/dist/commands/sync.d.ts +0 -11
  256. package/dist/commands/sync.d.ts.map +0 -1
  257. package/dist/commands/sync.js.map +0 -1
  258. package/dist/commands/tags.d.ts +0 -3
  259. package/dist/commands/tags.d.ts.map +0 -1
  260. package/dist/commands/tags.js.map +0 -1
  261. package/dist/commands/words.d.ts +0 -8
  262. package/dist/commands/words.d.ts.map +0 -1
  263. package/dist/commands/words.js.map +0 -1
  264. package/dist/config.d.ts +0 -239
  265. package/dist/config.d.ts.map +0 -1
  266. package/dist/config.js.map +0 -1
  267. package/dist/discovery.d.ts +0 -31
  268. package/dist/discovery.d.ts.map +0 -1
  269. package/dist/discovery.js.map +0 -1
  270. package/dist/export/format.d.ts +0 -19
  271. package/dist/export/format.d.ts.map +0 -1
  272. package/dist/export/format.js.map +0 -1
  273. package/dist/export/journal.d.ts +0 -34
  274. package/dist/export/journal.d.ts.map +0 -1
  275. package/dist/export/journal.js.map +0 -1
  276. package/dist/export/write.d.ts +0 -14
  277. package/dist/export/write.d.ts.map +0 -1
  278. package/dist/export/write.js.map +0 -1
  279. package/dist/identity.d.ts +0 -7
  280. package/dist/identity.d.ts.map +0 -1
  281. package/dist/identity.js.map +0 -1
  282. package/dist/mail/backend.d.ts +0 -138
  283. package/dist/mail/backend.d.ts.map +0 -1
  284. package/dist/mail/backend.js.map +0 -1
  285. package/dist/mail/changes.d.ts +0 -99
  286. package/dist/mail/changes.d.ts.map +0 -1
  287. package/dist/mail/changes.js.map +0 -1
  288. package/dist/mail/cleanup.d.ts +0 -41
  289. package/dist/mail/cleanup.d.ts.map +0 -1
  290. package/dist/mail/cleanup.js.map +0 -1
  291. package/dist/mail/compose.d.ts +0 -75
  292. package/dist/mail/compose.d.ts.map +0 -1
  293. package/dist/mail/compose.js.map +0 -1
  294. package/dist/mail/domain-age.d.ts +0 -29
  295. package/dist/mail/domain-age.d.ts.map +0 -1
  296. package/dist/mail/domain-age.js.map +0 -1
  297. package/dist/mail/drafts.d.ts +0 -54
  298. package/dist/mail/drafts.d.ts.map +0 -1
  299. package/dist/mail/drafts.js.map +0 -1
  300. package/dist/mail/imap/account.d.ts +0 -5
  301. package/dist/mail/imap/account.d.ts.map +0 -1
  302. package/dist/mail/imap/account.js.map +0 -1
  303. package/dist/mail/imap/connection.d.ts +0 -72
  304. package/dist/mail/imap/connection.d.ts.map +0 -1
  305. package/dist/mail/imap/connection.js.map +0 -1
  306. package/dist/mail/imap/errors.d.ts +0 -11
  307. package/dist/mail/imap/errors.d.ts.map +0 -1
  308. package/dist/mail/imap/errors.js.map +0 -1
  309. package/dist/mail/imap/index.d.ts +0 -7
  310. package/dist/mail/imap/index.d.ts.map +0 -1
  311. package/dist/mail/imap/index.js.map +0 -1
  312. package/dist/mail/imap/messages.d.ts +0 -17
  313. package/dist/mail/imap/messages.d.ts.map +0 -1
  314. package/dist/mail/imap/messages.js.map +0 -1
  315. package/dist/mail/imap/read.d.ts +0 -7
  316. package/dist/mail/imap/read.d.ts.map +0 -1
  317. package/dist/mail/imap/read.js.map +0 -1
  318. package/dist/mail/imap/search.d.ts +0 -19
  319. package/dist/mail/imap/search.d.ts.map +0 -1
  320. package/dist/mail/imap/search.js.map +0 -1
  321. package/dist/mail/imap/write.d.ts +0 -5
  322. package/dist/mail/imap/write.d.ts.map +0 -1
  323. package/dist/mail/imap/write.js.map +0 -1
  324. package/dist/mail/locate.d.ts +0 -32
  325. package/dist/mail/locate.d.ts.map +0 -1
  326. package/dist/mail/locate.js.map +0 -1
  327. package/dist/mail/mbox.d.ts +0 -9
  328. package/dist/mail/mbox.d.ts.map +0 -1
  329. package/dist/mail/mbox.js.map +0 -1
  330. package/dist/mail/organise.d.ts +0 -101
  331. package/dist/mail/organise.d.ts.map +0 -1
  332. package/dist/mail/organise.js.map +0 -1
  333. package/dist/mail/restore.d.ts +0 -22
  334. package/dist/mail/restore.d.ts.map +0 -1
  335. package/dist/mail/restore.js.map +0 -1
  336. package/dist/mail/rethread.d.ts +0 -14
  337. package/dist/mail/rethread.d.ts.map +0 -1
  338. package/dist/mail/rethread.js.map +0 -1
  339. package/dist/mail/rules/apply.d.ts +0 -48
  340. package/dist/mail/rules/apply.d.ts.map +0 -1
  341. package/dist/mail/rules/apply.js.map +0 -1
  342. package/dist/mail/rules/file.d.ts +0 -9
  343. package/dist/mail/rules/file.d.ts.map +0 -1
  344. package/dist/mail/rules/file.js.map +0 -1
  345. package/dist/mail/rules/filters.d.ts +0 -11
  346. package/dist/mail/rules/filters.d.ts.map +0 -1
  347. package/dist/mail/rules/filters.js.map +0 -1
  348. package/dist/mail/rules/folders.d.ts +0 -11
  349. package/dist/mail/rules/folders.d.ts.map +0 -1
  350. package/dist/mail/rules/folders.js.map +0 -1
  351. package/dist/mail/rules/query.d.ts +0 -16
  352. package/dist/mail/rules/query.d.ts.map +0 -1
  353. package/dist/mail/rules/query.js.map +0 -1
  354. package/dist/mail/rules/store.d.ts +0 -9
  355. package/dist/mail/rules/store.d.ts.map +0 -1
  356. package/dist/mail/rules/store.js.map +0 -1
  357. package/dist/mail/save.d.ts +0 -9
  358. package/dist/mail/save.d.ts.map +0 -1
  359. package/dist/mail/save.js.map +0 -1
  360. package/dist/mail/send-as.d.ts +0 -21
  361. package/dist/mail/send-as.d.ts.map +0 -1
  362. package/dist/mail/send-as.js.map +0 -1
  363. package/dist/mail/send.d.ts +0 -76
  364. package/dist/mail/send.d.ts.map +0 -1
  365. package/dist/mail/send.js.map +0 -1
  366. package/dist/mail/smtp.d.ts +0 -4
  367. package/dist/mail/smtp.d.ts.map +0 -1
  368. package/dist/mail/smtp.js.map +0 -1
  369. package/dist/oauth.d.ts +0 -75
  370. package/dist/oauth.d.ts.map +0 -1
  371. package/dist/oauth.js.map +0 -1
  372. package/dist/profile.d.ts +0 -20
  373. package/dist/profile.d.ts.map +0 -1
  374. package/dist/profile.js.map +0 -1
  375. package/dist/program.d.ts +0 -6
  376. package/dist/program.d.ts.map +0 -1
  377. package/dist/program.js.map +0 -1
  378. package/dist/providers.d.ts +0 -255
  379. package/dist/providers.d.ts.map +0 -1
  380. package/dist/providers.js.map +0 -1
  381. package/dist/reasons.d.ts +0 -9
  382. package/dist/reasons.d.ts.map +0 -1
  383. package/dist/reasons.js.map +0 -1
  384. package/dist/secret.d.ts +0 -31
  385. package/dist/secret.d.ts.map +0 -1
  386. package/dist/secret.js.map +0 -1
  387. package/dist/store.d.ts +0 -12
  388. package/dist/store.d.ts.map +0 -1
  389. package/dist/store.js.map +0 -1
  390. package/dist/version.d.ts +0 -2
  391. package/dist/version.d.ts.map +0 -1
  392. package/dist/version.js.map +0 -1
  393. package/dist/wcat.d.ts +0 -3
  394. package/dist/wcat.d.ts.map +0 -1
  395. package/dist/wcat.js.map +0 -1
@@ -1,360 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- validateVector
5
- } from "./chunk-YP4FYLFI.js";
6
- import {
7
- meaningFloor
8
- } from "./chunk-I4PZOWYG.js";
9
- import {
10
- RRF_K
11
- } from "./chunk-QETNCUWB.js";
12
- import {
13
- MESSAGE_PARSING
14
- } from "./chunk-WA53OJ7V.js";
15
- import {
16
- normalize
17
- } from "./chunk-HO4JGD4Q.js";
18
- import {
19
- formatMeetingReference,
20
- implicitTextTerms,
21
- liftMeetingFields,
22
- parseLucene,
23
- parseMeetingReference,
24
- refreshMeetingIndex,
25
- walkQuery
26
- } from "./chunk-725OPCHI.js";
27
- import {
28
- CliError
29
- } from "./chunk-S6JG4YUH.js";
30
- import {
31
- __name
32
- } from "./chunk-ZVVMGPBJ.js";
33
-
34
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
35
- import { createHash } from "node:crypto";
36
-
37
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/search/question-plan.js
38
- var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
39
- var joinedHyphens = /* @__PURE__ */ __name((text) => (normalize(text).match(new RegExp("(?<![:\\p{L}\\p{N}-])\\p{L}[\\p{L}\\p{N}]*(?:-\\p{L}[\\p{L}\\p{N}]*)+", "gu")) ?? []).map((word) => word.replaceAll("-", "")), "joinedHyphens");
40
- var scaffolding = new Set(words("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"));
41
- var questionWord = /\b(?:what|which|how|who|where|when|can|could|should)\b|(?:^|\s)(?:сколько|какой|какая|какие|какое|кто|кому|кем|где|когда|как|что|можно|может|могут|ли)(?:\s|$)/iu;
42
- var QUESTION_STARTS = new Set(words("what which how who whom whose where when why can could should would did do does is are was were will \u0447\u0442\u043E \u043A\u0442\u043E \u043A\u043E\u0433\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u043E\u0435 \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u0443\u044E \u043A\u0430\u043A\u0438\u043C \u043A\u0430\u043A\u043E\u0433\u043E \u043A\u0430\u043A\u0438\u0445 \u043F\u043E\u0447\u0435\u043C\u0443 \u0437\u0430\u0447\u0435\u043C \u043E\u0442\u043A\u0443\u0434\u0430 \u043A\u0443\u0434\u0430 \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043B\u0438 \u043C\u043E\u0436\u043D\u043E \u0440\u0430\u0437\u0432\u0435 \u0447\u0435\u0439 \u0447\u044C\u044F \u0447\u044C\u0451 \u0447\u044C\u0438"));
43
- var QUESTION_FILLER = new Set(words("about any did does why whom whose would will \u044D\u0442\u043E \u043C\u044B \u0432\u044B \u044F \u043E\u043D\u0438 \u043E\u043D \u043E\u043D\u0430 \u043E \u043E\u0431 \u043F\u0440\u043E \u043B\u0438"));
44
- var LINKING = new Set(words("and or but not nor with without this that these those there their they them you your our its his her all any and for into onto over then than also just and \u043F\u0440\u0438 \u0434\u043B\u044F \u0431\u0435\u0437 \u043D\u0430\u0434 \u043F\u043E\u0434 \u0438\u043B\u0438 \u043B\u0438\u0431\u043E \u0435\u0433\u043E \u0435\u0451 \u0438\u0445 \u0432\u0441\u0435 \u0432\u0441\u0451 \u0443\u0436\u0435 \u0435\u0449\u0451 \u0442\u0430\u043A \u0442\u043E\u0436\u0435 \u0442\u0430\u043A\u0436\u0435 \u0431\u044B\u043B \u0431\u044B\u043B\u0430 \u0431\u044B\u043B\u0438 \u0431\u044B\u043B\u043E \u0431\u0443\u0434\u0435\u0442 \u044D\u0442\u043E \u044D\u0442\u0430 \u044D\u0442\u043E\u0442 \u044D\u0442\u0438 \u0442\u0430\u043C \u0442\u0443\u0442"));
45
- var isFunctionWord = /* @__PURE__ */ __name((word) => scaffolding.has(word) || QUESTION_STARTS.has(word) || QUESTION_FILLER.has(word) || LINKING.has(word), "isFunctionWord");
46
- var questionTerms = /* @__PURE__ */ __name((text) => /\?\s*$/u.test(text) || QUESTION_STARTS.has(words(text)[0] ?? "") ? words(text).filter((word) => !scaffolding.has(word) && !QUESTION_STARTS.has(word) && !QUESTION_FILLER.has(word)) : null, "questionTerms");
47
- function planQuestion(text, strict = false) {
48
- if (strict)
49
- return {
50
- changed: false,
51
- natural: false,
52
- queries: [text],
53
- scope: "",
54
- terms: words(text),
55
- rankingTerms: words(text),
56
- removed: [],
57
- aliases: []
58
- };
59
- const inputAst = parseLucene(text, MESSAGE_PARSING);
60
- const rawTextual = walkQuery(inputAst.root).filter((node) => node.field === "text" || node.field === "exact");
61
- const body = rawTextual.map((node) => node.value).join(" ");
62
- const prefix = words(body).slice(0, 2);
63
- const questionPrefix = [
64
- "what",
65
- "which",
66
- "how",
67
- "who",
68
- "where",
69
- "when",
70
- "can",
71
- "could",
72
- "should",
73
- "\u0441\u043A\u043E\u043B\u044C\u043A\u043E",
74
- "\u043A\u0430\u043A\u043E\u0438",
75
- "\u043A\u0430\u043A\u0430\u044F",
76
- "\u043A\u0430\u043A\u0438\u0435",
77
- "\u043A\u0430\u043A\u043E\u0435",
78
- "\u043A\u0442\u043E",
79
- "\u043A\u043E\u043C\u0443",
80
- "\u043A\u0435\u043C",
81
- "\u0433\u0434\u0435",
82
- "\u043A\u043E\u0433\u0434\u0430",
83
- "\u043A\u0430\u043A",
84
- "\u0447\u0442\u043E",
85
- "\u043C\u043E\u0436\u043D\u043E",
86
- "\u043C\u043E\u0436\u0435\u0442",
87
- "\u043C\u043E\u0433\u0443\u0442"
88
- ].includes(prefix[0] ?? "") || ["\u043A", "\u0432\u043E"].includes(prefix[0] ?? "") && ["\u043A\u043E\u043C\u0443", "\u0441\u043A\u043E\u043B\u044C\u043A\u043E"].includes(prefix[1] ?? "");
89
- const natural = questionWord.test(body) && (/\?/u.test(body) || questionPrefix);
90
- let cleaned = text;
91
- if (natural && !text.includes("\\")) {
92
- const last = rawTextual.at(-1);
93
- const mark = (last?.span.end ?? 0) - 1;
94
- if (last?.operator === "wildcard" && text[mark] === "?")
95
- cleaned = text.slice(0, mark) + text.slice(mark + 1);
96
- }
97
- const ast = cleaned === text ? inputAst : parseLucene(cleaned, MESSAGE_PARSING);
98
- const predicates = walkQuery(ast.root);
99
- const textual = predicates.filter((p) => p.field === "text" || p.field === "exact");
100
- const fields = predicates.filter((p) => p.field !== "text" && p.field !== "exact");
101
- const scope = fields.map((p) => {
102
- const raw = cleaned.slice(p.span.start, p.span.end);
103
- return new RegExp(`^${p.field}[:=<>]`, "u").test(raw) ? raw : `${p.field}:${raw}`;
104
- }).join(" ");
105
- const bypass = strict || !natural || implicitTextTerms(cleaned).size === 0 || // A quoted single word is how `plainQuery` keeps `10:30` or `HH:MM` literal; it is no phrase the asker wrote.
106
- textual.some((p) => !(p.operator === "term" || p.operator === "phrase" && !/\s/u.test(p.value)) || p.field === "exact");
107
- if (bypass)
108
- return {
109
- changed: false,
110
- natural: false,
111
- queries: [text],
112
- scope,
113
- terms: textual.flatMap((p) => words(p.value)),
114
- rankingTerms: textual.flatMap((p) => words(p.value)),
115
- removed: [],
116
- aliases: []
117
- };
118
- const original = textual.flatMap((p) => words(p.value));
119
- const removed = original.filter((w) => scaffolding.has(w));
120
- const terms = [...new Set(original.filter((w) => !scaffolding.has(w)))];
121
- if (!terms.length)
122
- return {
123
- changed: false,
124
- natural: true,
125
- queries: [text],
126
- scope,
127
- terms,
128
- rankingTerms: original,
129
- removed,
130
- aliases: []
131
- };
132
- const alias = [...terms];
133
- const changes = [];
134
- const replace = /* @__PURE__ */ __name((from, to) => {
135
- for (let i = 0; i < alias.length; i++)
136
- if (from.includes(alias[i] ?? "")) {
137
- changes.push(`${alias[i]} -> ${to}`);
138
- alias[i] = to;
139
- }
140
- }, "replace");
141
- if (terms.some((w) => ["refund", "euros", "euro", "money", "\u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430", "\u0432\u043E\u0437\u0432\u0440\u0430\u0442", "\u0435\u0432\u0440\u043E"].includes(w))) {
142
- replace(["returned", "refunded", "received"], "refund");
143
- replace(["\u0432\u0435\u0440\u043D\u0443\u043B\u0438", "\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u043E", "\u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0435\u043D\u043E"], "\u0432\u043E\u0437\u0432\u0440\u0430\u0442");
144
- }
145
- if (terms.some((w) => ["log", "logs", "retention", "backup", "\u043B\u043E\u0433\u043E\u0432", "\u043B\u043E\u0433\u0438", "\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435", "\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u044F"].includes(w))) {
146
- replace(["lifetime", "kept", "keep"], "retention");
147
- replace(["\u0445\u0440\u0430\u043D\u044F\u0442\u0441\u044F", "\u0445\u0440\u0430\u043D\u044F\u0442", "\u0445\u0440\u0430\u043D\u0438\u0442\u044C", "\u0441\u0440\u043E\u043A"], "\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435");
148
- }
149
- if (terms.includes("service") || terms.includes("build"))
150
- replace(["currently", "now"], "current");
151
- const render = /* @__PURE__ */ __name((ws) => [...new Set(ws)].join(" ") + (scope ? ` ${scope}` : ""), "render");
152
- const queries = [.../* @__PURE__ */ new Set([render(terms), render(alias)])].slice(0, 2);
153
- return { changed: true, natural: true, queries, scope, terms, rankingTerms: original, removed, aliases: changes };
154
- }
155
- __name(planQuestion, "planQuestion");
156
- var questionText = /* @__PURE__ */ __name((text) => text.replace(new RegExp("(?<=\\p{L})\\?(?=\\s|$)", "gu"), "").replace(/"(?:[^"\\]|\\.)*"|(?<=\d):(?=\d)/gu, (found) => found === ":" ? " " : found), "questionText");
157
- var lookupTerms = /* @__PURE__ */ __name((plan) => [
158
- ...new Set(plan.terms.concat(plan.aliases.flatMap((alias) => words(alias.split(" -> ")[1] ?? ""))))
159
- ], "lookupTerms");
160
- var anyOfTerms = /* @__PURE__ */ __name((terms, scope) => `(${terms.join(" OR ")})${scope ? ` ${scope}` : ""}`, "anyOfTerms");
161
- var questionLookup = /* @__PURE__ */ __name((text) => {
162
- let plan;
163
- try {
164
- plan = planQuestion(questionText(text));
165
- } catch (error) {
166
- if (error instanceof CliError)
167
- return void 0;
168
- throw error;
169
- }
170
- const terms = plan.changed ? lookupTerms(plan) : [];
171
- return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
172
- }, "questionLookup");
173
-
174
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
175
- var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
176
- const { project, tag, topic, ...input } = request;
177
- input.signal?.throwIfAborted();
178
- if (project !== void 0 && input.projectId !== void 0 || [tag, topic].filter((value) => value !== void 0).length + Number(input.tagId !== void 0) > 1)
179
- throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
180
- const selection = [];
181
- const knowledge = store.knowledge;
182
- if (!knowledge && [project, tag, topic].some((value) => value !== void 0))
183
- throw new CliError("configuration_error", "this store cannot resolve project, tag or topic names");
184
- for (const [kind, name] of [
185
- ["project", project],
186
- ["tag", tag],
187
- ["topic", topic]
188
- ]) {
189
- if (name === void 0)
190
- continue;
191
- if (!knowledge)
192
- continue;
193
- const found = await knowledge.resolveVocabulary(name, { kind, signal: input.signal });
194
- input.signal?.throwIfAborted();
195
- if (found.ambiguous || found.matches.length !== 1)
196
- throw new CliError(found.matches.length ? "validation_error" : "not_found", `the ${kind} name needs one canonical record`, {
197
- candidates: found.matches.map((entry2) => ({ kind: entry2.kind, id: entry2.id, name: entry2.name }))
198
- });
199
- const entry = found.matches[0];
200
- const id = Number(entry?.id);
201
- if (!entry || entry.kind !== kind || !Number.isSafeInteger(id) || id < 1)
202
- throw new CliError("invalid_response", "vocabulary resolution returned an invalid canonical record");
203
- if (kind === "project")
204
- input.projectId = id;
205
- else
206
- input.tagId = id;
207
- selection.push({ kind, id, name: entry.name, by: "explicit-link" });
208
- }
209
- return { input, selection };
210
- }, "resolveMeetingSelection");
211
-
212
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
213
- var DEPTH = 200;
214
- var cursorOf = /* @__PURE__ */ __name((value, key) => {
215
- if (value === void 0)
216
- return 0;
217
- let cursor;
218
- try {
219
- cursor = JSON.parse(Buffer.from(value, "base64url").toString("utf8"));
220
- } catch {
221
- throw new CliError("validation_error", "the cursor is not from a combined meeting search; search again");
222
- }
223
- if (cursor?.version !== 1 || cursor.key !== key || !Number.isSafeInteger(cursor.offset) || cursor.offset < 0)
224
- throw new CliError("validation_error", "the cursor belongs to another query, filter or model; search again");
225
- return cursor.offset;
226
- }, "cursorOf");
227
- var searchMeetingsCombined = /* @__PURE__ */ __name(async (store, embedder, typed, request) => {
228
- const { maxChunks, maxRows, maxTextBytes, ...chosen } = request;
229
- const { query, request: words2 } = liftMeetingFields(typed, chosen);
230
- const { input, selection } = await resolveMeetingSelection(store, words2);
231
- const { after, limit = 20, maxReadBytes, ...filters } = input;
232
- const terms = questionTerms(query);
233
- const wordQuery = terms === null ? query : terms.join(" ");
234
- const key = createHash("sha256").update(JSON.stringify([query, embedder.key, Object.entries(filters).filter(([name]) => name !== "signal")])).digest("base64url");
235
- const offset = cursorOf(after, key);
236
- let byWords = [];
237
- let indexing = "ready";
238
- let refused;
239
- if (wordQuery.trim()) {
240
- await refreshMeetingIndex(store.meetings, input.accountId, input.signal);
241
- try {
242
- const page = await store.meetings.searchHits(wordQuery, { ...filters, limit: DEPTH, maxReadBytes });
243
- byWords = page.items;
244
- indexing = page.coverage.indexing;
245
- } catch (error) {
246
- if (!(error instanceof CliError) || error.code !== "validation_error")
247
- throw error;
248
- refused = error.message;
249
- }
250
- }
251
- input.signal?.throwIfAborted();
252
- const vectors = await embedder.embed([query], "query");
253
- if (vectors.length !== 1)
254
- throw new CliError("invalid_response", "Meeting query model returned another vector count");
255
- const vector = vectors[0];
256
- const ranked = await store.meetingVectors.ranked(embedder.key, validateVector(vector, embedder.dims), {
257
- ...filters,
258
- limit: DEPTH,
259
- ...maxChunks === void 0 ? {} : { maxChunks },
260
- ...maxRows === void 0 ? {} : { maxRows },
261
- ...maxTextBytes === void 0 ? {} : { maxTextBytes }
262
- });
263
- const floor = meaningFloor(embedder.key);
264
- const byMeaning = ranked.items.filter(({ score }) => score > floor);
265
- const merged = /* @__PURE__ */ new Map();
266
- byMeaning.forEach((hit, rank) => {
267
- const reference = { type: "meeting", accountId: input.accountId, meetingId: hit.meetingId };
268
- const first = formatMeetingReference({
269
- ...reference,
270
- transcriptId: hit.transcriptId,
271
- cuePosition: hit.firstPosition
272
- });
273
- merged.set(`${hit.transcriptId}:${hit.firstPosition}`, {
274
- ref: first,
275
- meetingId: hit.meetingId,
276
- scope: "transcript",
277
- text: hit.text,
278
- startMs: null,
279
- source: { title: hit.title, startedAt: hit.startedAt, url: null },
280
- by: ["meaning"],
281
- score: hit.score,
282
- passage: {
283
- first,
284
- last: formatMeetingReference({ ...reference, transcriptId: hit.transcriptId, cuePosition: hit.lastPosition })
285
- },
286
- fused: 1 / (RRF_K + rank + 1)
287
- });
288
- });
289
- byWords.forEach((hit, rank) => {
290
- const share = 1 / (RRF_K + rank + 1);
291
- const cue = hit.scope === "transcript" ? parseMeetingReference(hit.ref) : void 0;
292
- const within = cue?.cuePosition === void 0 ? void 0 : byMeaning.find((passage) => passage.transcriptId === cue.transcriptId && passage.firstPosition <= cue.cuePosition && cue.cuePosition <= passage.lastPosition);
293
- const held = within && merged.get(`${within.transcriptId}:${within.firstPosition}`);
294
- const found = {
295
- ref: hit.ref,
296
- text: hit.text,
297
- startMs: hit.startMs,
298
- ...hit.match === void 0 ? {} : { match: hit.match },
299
- ...hit.corrections === void 0 ? {} : { corrections: hit.corrections }
300
- };
301
- if (held && !held.by.includes("words")) {
302
- Object.assign(held, found, { by: ["words", "meaning"], fused: held.fused + share });
303
- if (hit.source?.url)
304
- held.source.url = hit.source.url;
305
- } else if (held)
306
- held.fused += share;
307
- else
308
- merged.set(`w:${hit.ref}:${hit.scope}:${hit.id}`, {
309
- ...found,
310
- meetingId: hit.meetingId,
311
- scope: hit.scope,
312
- source: {
313
- title: hit.source?.title ?? null,
314
- startedAt: hit.source?.startedAt ?? null,
315
- url: hit.source?.url ?? null
316
- },
317
- by: ["words"],
318
- score: null,
319
- fused: share
320
- });
321
- });
322
- const ordered = [...merged.values()].sort((a, b) => b.fused - a.fused || Number(b.by.includes("words")) - Number(a.by.includes("words")) || (b.score ?? -2) - (a.score ?? -2));
323
- const items = ordered.slice(offset, offset + limit).map(({ fused: _, ...hit }) => hit);
324
- const hasMore = ordered.length > offset + limit;
325
- return {
326
- items,
327
- hasMore,
328
- nextCursor: hasMore ? Buffer.from(JSON.stringify({ version: 1, key, offset: offset + limit })).toString("base64url") : null,
329
- selection,
330
- words: {
331
- query: wordQuery,
332
- ...terms === null ? {} : { from: "question" },
333
- ...refused === void 0 ? {} : { refused }
334
- },
335
- model: { key: embedder.key, model: embedder.model, kind: embedder.kind, dims: embedder.dims },
336
- coverage: {
337
- archiveCompleteness: "unknown",
338
- indexCompleteness: "unknown",
339
- indexing,
340
- /** Every vector of the selection was compared; false when `maxChunks` stopped the scan. */
341
- meaningScanComplete: ranked.complete,
342
- scanned: ranked.scanned,
343
- /** Each side ranks this many at most; pages past them hold nothing more. */
344
- depth: DEPTH
345
- }
346
- };
347
- }, "searchMeetingsCombined");
348
-
349
- export {
350
- words,
351
- joinedHyphens,
352
- isFunctionWord,
353
- planQuestion,
354
- questionText,
355
- lookupTerms,
356
- anyOfTerms,
357
- questionLookup,
358
- resolveMeetingSelection,
359
- searchMeetingsCombined
360
- };
@@ -1,52 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- changesMessenger
5
- } from "./chunk-BA5B5ZF4.js";
6
- import {
7
- AUTHORITY_KEY,
8
- BOT_API_KEY,
9
- authorityAllowed,
10
- botApiAllowed,
11
- isBotApi,
12
- keyForCommand,
13
- levelFor,
14
- readKeysForCommand
15
- } from "./chunk-2HDXD6LM.js";
16
- import {
17
- writes
18
- } from "./chunk-KP5JDYY6.js";
19
- import {
20
- __name
21
- } from "./chunk-ZVVMGPBJ.js";
22
-
23
- // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/command-availability.js
24
- var commandAvailability = /* @__PURE__ */ __name((info, levels, keyOf, authority, readOnly = false, mcp = true, declared, fetches) => {
25
- const declaredKey = declared?.keyOf(info.path);
26
- const key = declared ? declaredKey : keyOf?.(info.path) ?? keyForCommand(info.path);
27
- const { level } = key ? levelFor(levels, key, declared?.defaults) : { level: "allow" };
28
- const judged = { ...key ? { permission: key } : {}, level };
29
- const blocked = /* @__PURE__ */ __name((reason, permission) => ({
30
- available: false,
31
- reason,
32
- ...judged,
33
- ...permission && permission !== judged.permission ? { permission, level: levelFor(levels, permission).level } : {}
34
- }), "blocked");
35
- const declaredChange = Boolean(declaredKey) && (info.effects === void 0 || info.effects.remote === "write");
36
- if (readOnly && (changesMessenger(info) || declaredChange || authority?.(info.path)))
37
- return blocked("the read-only lock blocks this change");
38
- if (mcp && authority?.(info.path) && !authorityAllowed(levels))
39
- return blocked(`the profile keeps ${AUTHORITY_KEY} off`, AUTHORITY_KEY);
40
- if (mcp && isBotApi(info.path) && !botApiAllowed(levels))
41
- return blocked(`the profile requires ${BOT_API_KEY}: allow`, BOT_API_KEY);
42
- if (level === "deny")
43
- return blocked(`the profile denies ${key}`);
44
- if (level === "readonly" && writes(info.effects) && fetches?.(info.path) !== true)
45
- return blocked(`${key} is readonly in this profile`);
46
- const denied = (declared ? [] : readKeysForCommand(info.path)).find((read) => levelFor(levels, read).level === "deny");
47
- return denied ? blocked(`the profile denies ${denied}`, denied) : { available: true, ...judged };
48
- }, "commandAvailability");
49
-
50
- export {
51
- commandAvailability
52
- };