@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,928 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- __name
5
- } from "./chunk-ZVVMGPBJ.js";
6
-
7
- // node_modules/.pnpm/ansi-regex@6.4.0/node_modules/ansi-regex/index.js
8
- function ansiRegex({ onlyFirst = false } = {}) {
9
- const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
10
- const osc = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${ST})`;
11
- const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
12
- const pattern = `${osc}|${csi}`;
13
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
14
- }
15
- __name(ansiRegex, "ansiRegex");
16
-
17
- // node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.js
18
- var regex = ansiRegex();
19
- function stripAnsi(string) {
20
- if (typeof string !== "string") {
21
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
22
- }
23
- if (!string.includes("\x1B") && !string.includes("\x9B")) {
24
- return string;
25
- }
26
- return string.replace(regex, "");
27
- }
28
- __name(stripAnsi, "stripAnsi");
29
-
30
- // node_modules/.pnpm/get-east-asian-width@1.7.0/node_modules/get-east-asian-width/lookup-data.js
31
- var ambiguousMinimalCodePoint = 161;
32
- var ambiguousMaximumCodePoint = 1114109;
33
- var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
34
- var fullwidthMinimalCodePoint = 12288;
35
- var fullwidthMaximumCodePoint = 65510;
36
- var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
37
- var wideMinimalCodePoint = 4352;
38
- var wideMaximumCodePoint = 262141;
39
- var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101594, 101631, 101664, 101760, 101874, 101888, 102801, 102816, 102866, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110888, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110952, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127406, 127406, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128729, 128732, 128735, 128747, 128748, 128756, 128764, 128986, 128986, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129734, 129736, 129736, 129740, 129757, 129759, 129771, 129775, 129786, 131072, 196605, 196608, 262141];
40
-
41
- // node_modules/.pnpm/get-east-asian-width@1.7.0/node_modules/get-east-asian-width/utilities.js
42
- var isInRange = /* @__PURE__ */ __name((ranges, codePoint) => {
43
- let low = 0;
44
- let high = Math.floor(ranges.length / 2) - 1;
45
- while (low <= high) {
46
- const mid = Math.floor((low + high) / 2);
47
- const i = mid * 2;
48
- if (codePoint < ranges[i]) {
49
- high = mid - 1;
50
- } else if (codePoint > ranges[i + 1]) {
51
- low = mid + 1;
52
- } else {
53
- return true;
54
- }
55
- }
56
- return false;
57
- }, "isInRange");
58
-
59
- // node_modules/.pnpm/get-east-asian-width@1.7.0/node_modules/get-east-asian-width/lookup.js
60
- var commonCjkCodePoint = 19968;
61
- var [wideFastPathStart, wideFastPathEnd] = /* @__PURE__ */ findWideFastPathRange(wideRanges);
62
- function findWideFastPathRange(ranges) {
63
- let fastPathStart = ranges[0];
64
- let fastPathEnd = ranges[1];
65
- for (let index = 0; index < ranges.length; index += 2) {
66
- const start = ranges[index];
67
- const end = ranges[index + 1];
68
- if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
69
- return [start, end];
70
- }
71
- if (end - start > fastPathEnd - fastPathStart) {
72
- fastPathStart = start;
73
- fastPathEnd = end;
74
- }
75
- }
76
- return [fastPathStart, fastPathEnd];
77
- }
78
- __name(findWideFastPathRange, "findWideFastPathRange");
79
- var isAmbiguous = /* @__PURE__ */ __name((codePoint) => {
80
- if (codePoint < ambiguousMinimalCodePoint || codePoint > ambiguousMaximumCodePoint) {
81
- return false;
82
- }
83
- return isInRange(ambiguousRanges, codePoint);
84
- }, "isAmbiguous");
85
- var isFullwidth = /* @__PURE__ */ __name((codePoint) => {
86
- if (codePoint < fullwidthMinimalCodePoint || codePoint > fullwidthMaximumCodePoint) {
87
- return false;
88
- }
89
- return isInRange(fullwidthRanges, codePoint);
90
- }, "isFullwidth");
91
- var isWide = /* @__PURE__ */ __name((codePoint) => {
92
- if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
93
- return true;
94
- }
95
- if (codePoint < wideMinimalCodePoint || codePoint > wideMaximumCodePoint) {
96
- return false;
97
- }
98
- return isInRange(wideRanges, codePoint);
99
- }, "isWide");
100
-
101
- // node_modules/.pnpm/get-east-asian-width@1.7.0/node_modules/get-east-asian-width/index.js
102
- function validate(codePoint) {
103
- if (!Number.isSafeInteger(codePoint)) {
104
- throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
105
- }
106
- }
107
- __name(validate, "validate");
108
- function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
109
- validate(codePoint);
110
- if (isFullwidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
111
- return 2;
112
- }
113
- return 1;
114
- }
115
- __name(eastAsianWidth, "eastAsianWidth");
116
-
117
- // node_modules/.pnpm/string-width@8.3.0/node_modules/string-width/index.js
118
- var segmenter = new Intl.Segmenter();
119
- var visibleCharacterRegex = new RegExp("[^\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]", "v");
120
- var spacingMarkRegex = new RegExp("\\p{Spacing_Mark}", "v");
121
- var rgiEmojiRegex = new RegExp("^\\p{RGI_Emoji}$", "v");
122
- var unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
123
- var extendedPictographicRegex = new RegExp("\\p{Extended_Pictographic}", "gu");
124
- function isDoubleWidthNonRgiEmojiSequence(segment) {
125
- if (segment.length > 50) {
126
- return false;
127
- }
128
- if (unqualifiedKeycapRegex.test(segment)) {
129
- return true;
130
- }
131
- if (segment.includes("\u200D")) {
132
- const pictographics = segment.match(extendedPictographicRegex);
133
- return pictographics !== null && pictographics.length >= 2;
134
- }
135
- return false;
136
- }
137
- __name(isDoubleWidthNonRgiEmojiSequence, "isDoubleWidthNonRgiEmojiSequence");
138
- function baseVisible(segment) {
139
- const index = segment.search(visibleCharacterRegex);
140
- return index === -1 ? void 0 : segment.slice(index);
141
- }
142
- __name(baseVisible, "baseVisible");
143
- function isHangulLeadingJamo(codePoint) {
144
- return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
145
- }
146
- __name(isHangulLeadingJamo, "isHangulLeadingJamo");
147
- function isHangulVowelJamo(codePoint) {
148
- return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
149
- }
150
- __name(isHangulVowelJamo, "isHangulVowelJamo");
151
- function isHangulTrailingJamo(codePoint) {
152
- return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
153
- }
154
- __name(isHangulTrailingJamo, "isHangulTrailingJamo");
155
- function isHangulJamo(codePoint) {
156
- return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
157
- }
158
- __name(isHangulJamo, "isHangulJamo");
159
- function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
160
- const codePoints = [];
161
- for (const character of visibleSegment) {
162
- if (!visibleCharacterRegex.test(character)) {
163
- continue;
164
- }
165
- codePoints.push(character.codePointAt(0));
166
- }
167
- if (codePoints.length === 0) {
168
- return void 0;
169
- }
170
- let width = 0;
171
- for (let index = 0; index < codePoints.length; index++) {
172
- const codePoint = codePoints[index];
173
- if (!isHangulJamo(codePoint)) {
174
- if (width === 0) {
175
- return void 0;
176
- }
177
- for (let remaining = index; remaining < codePoints.length; remaining++) {
178
- width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
179
- }
180
- return width;
181
- }
182
- if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
183
- width += 2;
184
- index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
185
- continue;
186
- }
187
- width += eastAsianWidth(codePoint, eastAsianWidthOptions);
188
- }
189
- return width;
190
- }
191
- __name(hangulClusterWidth, "hangulClusterWidth");
192
- function trailingWidth(visibleSegment, eastAsianWidthOptions) {
193
- let extra = 0;
194
- let first = true;
195
- for (const character of visibleSegment) {
196
- if (first) {
197
- first = false;
198
- continue;
199
- }
200
- if (spacingMarkRegex.test(character) || character >= "\uFF00" && character <= "\uFFEF") {
201
- extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
202
- }
203
- }
204
- return extra;
205
- }
206
- __name(trailingWidth, "trailingWidth");
207
- function stringWidth(input, options = {}) {
208
- if (typeof input !== "string" || input.length === 0) {
209
- return 0;
210
- }
211
- const {
212
- ambiguousIsNarrow = true,
213
- countAnsiEscapeCodes = false
214
- } = options;
215
- let string = input;
216
- if (!countAnsiEscapeCodes && (string.includes("\x1B") || string.includes("\x9B"))) {
217
- string = stripAnsi(string);
218
- }
219
- if (string.length === 0) {
220
- return 0;
221
- }
222
- if (/^[\u0020-\u007E]*$/.test(string)) {
223
- return string.length;
224
- }
225
- let width = 0;
226
- const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
227
- for (const { segment } of segmenter.segment(string)) {
228
- const visibleSegment = baseVisible(segment);
229
- if (visibleSegment === void 0) {
230
- continue;
231
- }
232
- if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
233
- width += 2;
234
- continue;
235
- }
236
- const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
237
- if (hangulWidth !== void 0) {
238
- width += hangulWidth;
239
- continue;
240
- }
241
- const codePoint = visibleSegment.codePointAt(0);
242
- width += eastAsianWidth(codePoint, eastAsianWidthOptions);
243
- width += trailingWidth(visibleSegment, eastAsianWidthOptions);
244
- }
245
- return width;
246
- }
247
- __name(stringWidth, "stringWidth");
248
-
249
- // node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
250
- var ANSI_BACKGROUND_OFFSET = 10;
251
- var wrapAnsi16 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${code + offset}m`, "wrapAnsi16");
252
- var wrapAnsi256 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, "wrapAnsi256");
253
- var wrapAnsi16m = /* @__PURE__ */ __name((offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, "wrapAnsi16m");
254
- var styles = {
255
- modifier: {
256
- reset: [0, 0],
257
- // 21 isn't widely supported and 22 does the same thing
258
- bold: [1, 22],
259
- dim: [2, 22],
260
- italic: [3, 23],
261
- underline: [4, 24],
262
- overline: [53, 55],
263
- inverse: [7, 27],
264
- hidden: [8, 28],
265
- strikethrough: [9, 29]
266
- },
267
- color: {
268
- black: [30, 39],
269
- red: [31, 39],
270
- green: [32, 39],
271
- yellow: [33, 39],
272
- blue: [34, 39],
273
- magenta: [35, 39],
274
- cyan: [36, 39],
275
- white: [37, 39],
276
- // Bright color
277
- blackBright: [90, 39],
278
- gray: [90, 39],
279
- // Alias of `blackBright`
280
- grey: [90, 39],
281
- // Alias of `blackBright`
282
- redBright: [91, 39],
283
- greenBright: [92, 39],
284
- yellowBright: [93, 39],
285
- blueBright: [94, 39],
286
- magentaBright: [95, 39],
287
- cyanBright: [96, 39],
288
- whiteBright: [97, 39]
289
- },
290
- bgColor: {
291
- bgBlack: [40, 49],
292
- bgRed: [41, 49],
293
- bgGreen: [42, 49],
294
- bgYellow: [43, 49],
295
- bgBlue: [44, 49],
296
- bgMagenta: [45, 49],
297
- bgCyan: [46, 49],
298
- bgWhite: [47, 49],
299
- // Bright color
300
- bgBlackBright: [100, 49],
301
- bgGray: [100, 49],
302
- // Alias of `bgBlackBright`
303
- bgGrey: [100, 49],
304
- // Alias of `bgBlackBright`
305
- bgRedBright: [101, 49],
306
- bgGreenBright: [102, 49],
307
- bgYellowBright: [103, 49],
308
- bgBlueBright: [104, 49],
309
- bgMagentaBright: [105, 49],
310
- bgCyanBright: [106, 49],
311
- bgWhiteBright: [107, 49]
312
- }
313
- };
314
- var modifierNames = Object.keys(styles.modifier);
315
- var foregroundColorNames = Object.keys(styles.color);
316
- var backgroundColorNames = Object.keys(styles.bgColor);
317
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
318
- function assembleStyles() {
319
- const codes = /* @__PURE__ */ new Map();
320
- for (const [groupName, group] of Object.entries(styles)) {
321
- for (const [styleName, style] of Object.entries(group)) {
322
- styles[styleName] = {
323
- open: `\x1B[${style[0]}m`,
324
- close: `\x1B[${style[1]}m`
325
- };
326
- group[styleName] = styles[styleName];
327
- codes.set(style[0], style[1]);
328
- }
329
- Object.defineProperty(styles, groupName, {
330
- value: group,
331
- enumerable: false
332
- });
333
- }
334
- Object.defineProperty(styles, "codes", {
335
- value: codes,
336
- enumerable: false
337
- });
338
- styles.color.close = "\x1B[39m";
339
- styles.bgColor.close = "\x1B[49m";
340
- styles.color.ansi = wrapAnsi16();
341
- styles.color.ansi256 = wrapAnsi256();
342
- styles.color.ansi16m = wrapAnsi16m();
343
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
344
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
345
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
346
- Object.defineProperties(styles, {
347
- rgbToAnsi256: {
348
- value(red, green, blue) {
349
- if (red === green && green === blue) {
350
- if (red < 8) {
351
- return 16;
352
- }
353
- if (red > 248) {
354
- return 231;
355
- }
356
- return Math.round((red - 8) / 247 * 24) + 232;
357
- }
358
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
359
- },
360
- enumerable: false
361
- },
362
- hexToRgb: {
363
- value(hex) {
364
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
365
- if (!matches) {
366
- return [0, 0, 0];
367
- }
368
- let [colorString] = matches;
369
- if (colorString.length === 3) {
370
- colorString = [...colorString].map((character) => character + character).join("");
371
- }
372
- const integer = Number.parseInt(colorString, 16);
373
- return [
374
- /* eslint-disable no-bitwise */
375
- integer >> 16 & 255,
376
- integer >> 8 & 255,
377
- integer & 255
378
- /* eslint-enable no-bitwise */
379
- ];
380
- },
381
- enumerable: false
382
- },
383
- hexToAnsi256: {
384
- value: /* @__PURE__ */ __name((hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), "value"),
385
- enumerable: false
386
- },
387
- ansi256ToAnsi: {
388
- value(code) {
389
- if (code < 8) {
390
- return 30 + code;
391
- }
392
- if (code < 16) {
393
- return 90 + (code - 8);
394
- }
395
- let red;
396
- let green;
397
- let blue;
398
- if (code >= 232) {
399
- red = ((code - 232) * 10 + 8) / 255;
400
- green = red;
401
- blue = red;
402
- } else {
403
- code -= 16;
404
- const remainder = code % 36;
405
- red = Math.floor(code / 36) / 5;
406
- green = Math.floor(remainder / 6) / 5;
407
- blue = remainder % 6 / 5;
408
- }
409
- const value = Math.max(red, green, blue) * 2;
410
- if (value === 0) {
411
- return 30;
412
- }
413
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
414
- if (value === 2) {
415
- result += 60;
416
- }
417
- return result;
418
- },
419
- enumerable: false
420
- },
421
- rgbToAnsi: {
422
- value: /* @__PURE__ */ __name((red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)), "value"),
423
- enumerable: false
424
- },
425
- hexToAnsi: {
426
- value: /* @__PURE__ */ __name((hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), "value"),
427
- enumerable: false
428
- }
429
- });
430
- return styles;
431
- }
432
- __name(assembleStyles, "assembleStyles");
433
- var ansiStyles = assembleStyles();
434
- var ansi_styles_default = ansiStyles;
435
-
436
- // node_modules/.pnpm/wrap-ansi@10.0.2/node_modules/wrap-ansi/index.js
437
- var ANSI_ESCAPE = "\x1B";
438
- var ANSI_ESCAPE_BELL = "\x07";
439
- var C1_CSI = "\x9B";
440
- var ANSI_CSI = "[";
441
- var ANSI_OSC = "]";
442
- var ANSI_SGR_TERMINATOR = "m";
443
- var ANSI_SGR_RESET = 0;
444
- var ANSI_SGR_RESET_FOREGROUND = 39;
445
- var ANSI_SGR_RESET_BACKGROUND = 49;
446
- var ANSI_SGR_RESET_UNDERLINE_COLOR = 59;
447
- var ANSI_SGR_FOREGROUND_EXTENDED = 38;
448
- var ANSI_SGR_BACKGROUND_EXTENDED = 48;
449
- var ANSI_SGR_UNDERLINE_COLOR_EXTENDED = 58;
450
- var ANSI_SGR_COLOR_MODE_RGB = 2;
451
- var ANSI_SGR_COLOR_MODE_256 = 5;
452
- var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;`;
453
- var ESCAPES = /* @__PURE__ */ new Set([
454
- ANSI_ESCAPE,
455
- C1_CSI
456
- ]);
457
- var ESCAPE_CHARACTERS = [...ESCAPES].join("");
458
- var CSI_INTRODUCER = `(?:${ANSI_ESCAPE}\\${ANSI_CSI}|${C1_CSI})`;
459
- var CSI_PARAMETERS = "[0-?]*[ -/]*[@-~]";
460
- var SGR_PARAMETERS = `(?<sgr>[0-9;:]*)${ANSI_SGR_TERMINATOR}`;
461
- var OSC_STRING_TERMINATOR = `(?:${ANSI_ESCAPE_BELL}|${ANSI_ESCAPE}\\\\)`;
462
- var OSC_STRING_PAYLOAD = String.raw`[^\u0000-\u001F\u007F-\u009F]*`;
463
- var LINK_PARAMETERS = String.raw`8;(?<parameters>[^;\u0000-\u001F\u007F-\u009F]*);(?<uri>${OSC_STRING_PAYLOAD})${OSC_STRING_TERMINATOR}`;
464
- var OSC_STRING = `${OSC_STRING_PAYLOAD}${OSC_STRING_TERMINATOR}`;
465
- var ANSI_ESCAPE_REGEX = new RegExp(
466
- `${CSI_INTRODUCER}(?:${SGR_PARAMETERS}|${CSI_PARAMETERS})|${ANSI_ESCAPE}\\${ANSI_OSC}(?:${LINK_PARAMETERS}|${OSC_STRING})`,
467
- "y"
468
- );
469
- var ANSI_SGR_MODIFIER_CLOSE_CODES = new Set(ansi_styles_default.codes.values());
470
- ANSI_SGR_MODIFIER_CLOSE_CODES.delete(ANSI_SGR_RESET);
471
- var segmenter2 = new Intl.Segmenter();
472
- var getStringWidth = /* @__PURE__ */ __name((string) => stringWidth(string, { countAnsiEscapeCodes: true }), "getStringWidth");
473
- var TAB_SIZE = 8;
474
- var ESCAPE_INTRODUCER_REGEX = new RegExp(`[${ESCAPE_CHARACTERS}]`, "g");
475
- var ROW_BOUNDARY_REGEX = new RegExp(`[\\n${ESCAPE_CHARACTERS}]`, "g");
476
- var ASCII_PRINTABLE_REGEX = /^[ -~]*$/;
477
- var wrapAnsiCode = /* @__PURE__ */ __name((code) => `${ANSI_ESCAPE}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, "wrapAnsiCode");
478
- var wrapAnsiHyperlink = /* @__PURE__ */ __name((url, parameters = "") => `${ANSI_ESCAPE}${ANSI_ESCAPE_LINK}${parameters};${url}${ANSI_ESCAPE_BELL}`, "wrapAnsiHyperlink");
479
- var matchAnsiEscape = /* @__PURE__ */ __name((string, index) => {
480
- if (!ESCAPES.has(string[index])) {
481
- return;
482
- }
483
- ANSI_ESCAPE_REGEX.lastIndex = index;
484
- return ANSI_ESCAPE_REGEX.exec(string) ?? void 0;
485
- }, "matchAnsiEscape");
486
- var forEachSegment = /* @__PURE__ */ __name((string, onPlainText, onEscape = () => {
487
- }) => {
488
- let plainStart = 0;
489
- let index = 0;
490
- while (index < string.length) {
491
- ESCAPE_INTRODUCER_REGEX.lastIndex = index;
492
- const introducer = ESCAPE_INTRODUCER_REGEX.exec(string);
493
- if (!introducer) {
494
- break;
495
- }
496
- const escape = matchAnsiEscape(string, introducer.index);
497
- if (!escape) {
498
- index = introducer.index + 1;
499
- continue;
500
- }
501
- if (introducer.index > plainStart) {
502
- onPlainText(string.slice(plainStart, introducer.index));
503
- }
504
- onEscape(escape[0]);
505
- index = introducer.index + escape[0].length;
506
- plainStart = index;
507
- }
508
- if (plainStart < string.length) {
509
- onPlainText(string.slice(plainStart));
510
- }
511
- }, "forEachSegment");
512
- var getWidth = /* @__PURE__ */ __name((string) => {
513
- let plainText = "";
514
- forEachSegment(string, (part) => {
515
- plainText += part;
516
- });
517
- return getStringWidth(plainText);
518
- }, "getWidth");
519
- var getTokens = /* @__PURE__ */ __name((string) => {
520
- const tokens = [];
521
- forEachSegment(string, (plainText) => {
522
- if (ASCII_PRINTABLE_REGEX.test(plainText)) {
523
- for (const character of plainText) {
524
- tokens.push({ value: character, width: 1 });
525
- }
526
- return;
527
- }
528
- for (const { segment } of segmenter2.segment(plainText)) {
529
- tokens.push({ value: segment, width: getStringWidth(segment) });
530
- }
531
- }, (escape) => {
532
- tokens.push({ value: escape, width: 0 });
533
- });
534
- return tokens;
535
- }, "getTokens");
536
- var splitWords = /* @__PURE__ */ __name((string) => {
537
- let currentWord = { value: "", plainText: "" };
538
- const words = [currentWord];
539
- forEachSegment(string, (plainText) => {
540
- const parts = plainText.split(" ");
541
- currentWord.value += parts[0];
542
- currentWord.plainText += parts[0];
543
- for (let index = 1; index < parts.length; index++) {
544
- currentWord = { value: parts[index], plainText: parts[index] };
545
- words.push(currentWord);
546
- }
547
- }, (escape) => {
548
- currentWord.value += escape;
549
- });
550
- for (const word of words) {
551
- word.width = getStringWidth(word.plainText);
552
- }
553
- return words;
554
- }, "splitWords");
555
- var getColonColorToken = /* @__PURE__ */ __name((parameter) => {
556
- const parts = parameter.split(":");
557
- const code = Number.parseInt(parts[0], 10);
558
- const mode = Number.parseInt(parts[1], 10);
559
- if (![ANSI_SGR_FOREGROUND_EXTENDED, ANSI_SGR_BACKGROUND_EXTENDED, ANSI_SGR_UNDERLINE_COLOR_EXTENDED].includes(code)) {
560
- return;
561
- }
562
- if (mode === ANSI_SGR_COLOR_MODE_256 && parts.length === 3 && /^\d+$/.test(parts[2])) {
563
- return { code, open: parameter, hasArguments: true };
564
- }
565
- if (mode !== ANSI_SGR_COLOR_MODE_RGB) {
566
- return;
567
- }
568
- const components = parts.length === 6 ? parts.slice(3) : parts.slice(2);
569
- const colorSpace = parts.length === 6 ? parts[2] : void 0;
570
- if (components.length === 3 && components.every((component) => /^\d+$/.test(component)) && (colorSpace === void 0 || /^\d*$/.test(colorSpace))) {
571
- return { code, open: parameter, hasArguments: true };
572
- }
573
- }, "getColonColorToken");
574
- var getSgrTokens = /* @__PURE__ */ __name((sgrParameters) => {
575
- const parameters = sgrParameters.split(";");
576
- const sgrTokens = [];
577
- for (let index = 0; index < parameters.length; index++) {
578
- const parameter = parameters[index];
579
- if (parameter.includes(":")) {
580
- const colonColorToken = getColonColorToken(parameter);
581
- if (colonColorToken) {
582
- sgrTokens.push(colonColorToken);
583
- }
584
- continue;
585
- }
586
- const code = parameter === "" ? ANSI_SGR_RESET : Number.parseInt(parameter, 10);
587
- if (!Number.isFinite(code)) {
588
- continue;
589
- }
590
- if (code === ANSI_SGR_FOREGROUND_EXTENDED || code === ANSI_SGR_BACKGROUND_EXTENDED || code === ANSI_SGR_UNDERLINE_COLOR_EXTENDED) {
591
- if (index + 1 >= parameters.length) {
592
- break;
593
- }
594
- const mode = Number.parseInt(parameters[index + 1], 10);
595
- const colorIndex = Number.parseInt(parameters[index + 2], 10);
596
- if (mode === ANSI_SGR_COLOR_MODE_256 && Number.isFinite(colorIndex)) {
597
- sgrTokens.push({ code, open: [code, mode, colorIndex].join(";"), hasArguments: true });
598
- index += 2;
599
- continue;
600
- }
601
- const red = Number.parseInt(parameters[index + 2], 10);
602
- const green = Number.parseInt(parameters[index + 3], 10);
603
- const blue = Number.parseInt(parameters[index + 4], 10);
604
- if (mode === ANSI_SGR_COLOR_MODE_RGB && Number.isFinite(red) && Number.isFinite(green) && Number.isFinite(blue)) {
605
- sgrTokens.push({ code, open: [code, mode, red, green, blue].join(";"), hasArguments: true });
606
- index += 4;
607
- continue;
608
- }
609
- break;
610
- }
611
- sgrTokens.push({ code, open: String(code), hasArguments: false });
612
- }
613
- return sgrTokens;
614
- }, "getSgrTokens");
615
- var removeActiveStyle = /* @__PURE__ */ __name((activeStyles, family) => {
616
- const activeStyleIndex = activeStyles.findIndex((activeStyle) => activeStyle.family === family);
617
- if (activeStyleIndex !== -1) {
618
- activeStyles.splice(activeStyleIndex, 1);
619
- }
620
- }, "removeActiveStyle");
621
- var upsertActiveStyle = /* @__PURE__ */ __name((activeStyles, nextActiveStyle) => {
622
- removeActiveStyle(activeStyles, nextActiveStyle.family);
623
- activeStyles.push(nextActiveStyle);
624
- }, "upsertActiveStyle");
625
- var removeModifierStylesByClose = /* @__PURE__ */ __name((activeStyles, closeCode) => {
626
- for (let index = activeStyles.length - 1; index >= 0; index--) {
627
- const activeStyle = activeStyles[index];
628
- if (activeStyle.family.startsWith("modifier-") && activeStyle.close === closeCode) {
629
- activeStyles.splice(index, 1);
630
- }
631
- }
632
- }, "removeModifierStylesByClose");
633
- var getColorStyle = /* @__PURE__ */ __name((sgrToken) => {
634
- const { code, open, hasArguments } = sgrToken;
635
- if (code >= 30 && code <= 37 || code >= 90 && code <= 97 || code === ANSI_SGR_FOREGROUND_EXTENDED && hasArguments) {
636
- return {
637
- family: "foreground",
638
- open,
639
- close: ANSI_SGR_RESET_FOREGROUND
640
- };
641
- }
642
- if (code >= 40 && code <= 47 || code >= 100 && code <= 107 || code === ANSI_SGR_BACKGROUND_EXTENDED && hasArguments) {
643
- return {
644
- family: "background",
645
- open,
646
- close: ANSI_SGR_RESET_BACKGROUND
647
- };
648
- }
649
- if (code === ANSI_SGR_UNDERLINE_COLOR_EXTENDED && hasArguments) {
650
- return {
651
- family: "underlineColor",
652
- open,
653
- close: ANSI_SGR_RESET_UNDERLINE_COLOR
654
- };
655
- }
656
- }, "getColorStyle");
657
- var applySgrResetCode = /* @__PURE__ */ __name((code, activeStyles) => {
658
- if (code === ANSI_SGR_RESET) {
659
- activeStyles.length = 0;
660
- return true;
661
- }
662
- if (code === ANSI_SGR_RESET_FOREGROUND) {
663
- removeActiveStyle(activeStyles, "foreground");
664
- return true;
665
- }
666
- if (code === ANSI_SGR_RESET_BACKGROUND) {
667
- removeActiveStyle(activeStyles, "background");
668
- return true;
669
- }
670
- if (code === ANSI_SGR_RESET_UNDERLINE_COLOR) {
671
- removeActiveStyle(activeStyles, "underlineColor");
672
- return true;
673
- }
674
- if (ANSI_SGR_MODIFIER_CLOSE_CODES.has(code)) {
675
- removeModifierStylesByClose(activeStyles, code);
676
- return true;
677
- }
678
- return false;
679
- }, "applySgrResetCode");
680
- var applySgrToken = /* @__PURE__ */ __name((sgrToken, activeStyles) => {
681
- const { code } = sgrToken;
682
- if (applySgrResetCode(code, activeStyles)) {
683
- return;
684
- }
685
- const colorStyle = getColorStyle(sgrToken);
686
- if (colorStyle) {
687
- upsertActiveStyle(activeStyles, colorStyle);
688
- return;
689
- }
690
- const close = ansi_styles_default.codes.get(code);
691
- if (close !== void 0 && close !== ANSI_SGR_RESET) {
692
- upsertActiveStyle(activeStyles, {
693
- family: `modifier-${code}`,
694
- open: sgrToken.open,
695
- close
696
- });
697
- }
698
- }, "applySgrToken");
699
- var applySgrParameters = /* @__PURE__ */ __name((sgrParameters, activeStyles) => {
700
- for (const sgrToken of getSgrTokens(sgrParameters)) {
701
- applySgrToken(sgrToken, activeStyles);
702
- }
703
- }, "applySgrParameters");
704
- var applySgrResets = /* @__PURE__ */ __name((sgrParameters, activeStyles) => {
705
- for (const { code } of getSgrTokens(sgrParameters)) {
706
- applySgrResetCode(code, activeStyles);
707
- }
708
- }, "applySgrResets");
709
- var applyLeadingSgrResets = /* @__PURE__ */ __name((string, startIndex, activeStyles) => {
710
- let index = startIndex;
711
- while (index < string.length) {
712
- const match = matchAnsiEscape(string, index);
713
- if (!match) {
714
- break;
715
- }
716
- if (match.groups.sgr !== void 0) {
717
- applySgrResets(match.groups.sgr, activeStyles);
718
- }
719
- index += match[0].length;
720
- }
721
- }, "applyLeadingSgrResets");
722
- var getClosingSgrSequence = /* @__PURE__ */ __name((activeStyles) => [...activeStyles].reverse().map((activeStyle) => wrapAnsiCode(activeStyle.close)).join(""), "getClosingSgrSequence");
723
- var getOpeningSgrSequence = /* @__PURE__ */ __name((activeStyles) => activeStyles.map((activeStyle) => wrapAnsiCode(activeStyle.open)).join(""), "getOpeningSgrSequence");
724
- var wrapWord = /* @__PURE__ */ __name((rows, word, columns, rowWidth) => {
725
- const tokens = getTokens(word);
726
- let visible = rowWidth;
727
- for (let index = 0; index < tokens.length; index++) {
728
- const token = tokens[index];
729
- if (token.width > 0 && visible > 0 && visible + token.width > columns) {
730
- rows.push("");
731
- visible = 0;
732
- }
733
- rows[rows.length - 1] += token.value;
734
- visible += token.width;
735
- if (visible === columns && index < tokens.length - 1) {
736
- rows.push("");
737
- visible = 0;
738
- }
739
- }
740
- if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
741
- rows[rows.length - 2] += rows.pop();
742
- }
743
- return getWidth(rows.at(-1));
744
- }, "wrapWord");
745
- var stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((string) => {
746
- if (!string.includes(" ")) {
747
- return string;
748
- }
749
- const segments = [];
750
- forEachSegment(string, (plainText) => {
751
- segments.push({ value: plainText, isEscape: false });
752
- }, (escape) => {
753
- segments.push({ value: escape, isEscape: true });
754
- });
755
- for (let index = segments.length - 1; index >= 0; index--) {
756
- const segment = segments[index];
757
- if (segment.isEscape) {
758
- continue;
759
- }
760
- let end = segment.value.length;
761
- while (end > 0 && segment.value[end - 1] === " ") {
762
- end--;
763
- }
764
- segment.value = segment.value.slice(0, end);
765
- if (getStringWidth(segment.value) > 0) {
766
- break;
767
- }
768
- }
769
- return segments.map((segment) => segment.value).join("");
770
- }, "stringVisibleTrimSpacesRight");
771
- var expandTabs = /* @__PURE__ */ __name((line) => {
772
- if (!line.includes(" ")) {
773
- return line;
774
- }
775
- let visible = 0;
776
- let expandedLine = "";
777
- let plainTextSinceTab = "";
778
- const expandPlainText = /* @__PURE__ */ __name((plainText) => {
779
- const segments = plainText.split(" ");
780
- for (const [index, segment] of segments.entries()) {
781
- expandedLine += segment;
782
- plainTextSinceTab += segment;
783
- if (index < segments.length - 1) {
784
- visible += getStringWidth(plainTextSinceTab);
785
- plainTextSinceTab = "";
786
- const spaces = TAB_SIZE - visible % TAB_SIZE;
787
- expandedLine += " ".repeat(spaces);
788
- visible += spaces;
789
- }
790
- }
791
- }, "expandPlainText");
792
- forEachSegment(line, expandPlainText, (escape) => {
793
- expandedLine += escape;
794
- });
795
- return expandedLine;
796
- }, "expandTabs");
797
- var restoreStylesAcrossRows = /* @__PURE__ */ __name((preString) => {
798
- let returnValue = "";
799
- let activeHyperlink;
800
- const activeStyles = [];
801
- let index = 0;
802
- let copiedIndex = 0;
803
- while (index < preString.length) {
804
- ROW_BOUNDARY_REGEX.lastIndex = index;
805
- const boundary = ROW_BOUNDARY_REGEX.exec(preString);
806
- if (!boundary) {
807
- break;
808
- }
809
- index = boundary.index;
810
- if (boundary[0] !== "\n") {
811
- const escape = matchAnsiEscape(preString, index);
812
- if (!escape) {
813
- index++;
814
- continue;
815
- }
816
- const { groups } = escape;
817
- if (groups.sgr !== void 0) {
818
- applySgrParameters(groups.sgr, activeStyles);
819
- } else if (groups.uri !== void 0) {
820
- activeHyperlink = groups.uri.length === 0 ? void 0 : { parameters: groups.parameters, uri: groups.uri };
821
- }
822
- index += escape[0].length;
823
- continue;
824
- }
825
- returnValue += preString.slice(copiedIndex, index);
826
- if (index > copiedIndex) {
827
- if (activeHyperlink) {
828
- returnValue += wrapAnsiHyperlink("");
829
- }
830
- returnValue += getClosingSgrSequence(activeStyles);
831
- }
832
- returnValue += "\n";
833
- index++;
834
- copiedIndex = index;
835
- if (index < preString.length && preString[index] !== "\n") {
836
- const openingStyles = [...activeStyles];
837
- applyLeadingSgrResets(preString, index, openingStyles);
838
- returnValue += getOpeningSgrSequence(openingStyles);
839
- if (activeHyperlink) {
840
- returnValue += wrapAnsiHyperlink(activeHyperlink.uri, activeHyperlink.parameters);
841
- }
842
- }
843
- }
844
- return returnValue + preString.slice(copiedIndex);
845
- }, "restoreStylesAcrossRows");
846
- var exec = /* @__PURE__ */ __name((string, columns, options = {}) => {
847
- if (options.trim !== false && string.trim() === "") {
848
- return "";
849
- }
850
- const words = splitWords(string);
851
- let rows = [""];
852
- let rowLength = 0;
853
- let trimmedRowIndex = -1;
854
- let isFirstWord = true;
855
- for (const word of words) {
856
- const rowIndex = rows.length - 1;
857
- if (options.trim !== false && trimmedRowIndex !== rowIndex) {
858
- const row = rows[rowIndex];
859
- const trimmedRow = row.trimStart();
860
- if (trimmedRow.length !== row.length) {
861
- rows[rowIndex] = trimmedRow;
862
- rowLength = getWidth(trimmedRow);
863
- }
864
- if (trimmedRow.length > 0) {
865
- trimmedRowIndex = rowIndex;
866
- }
867
- }
868
- if (isFirstWord) {
869
- isFirstWord = false;
870
- } else {
871
- if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
872
- rows.push("");
873
- rowLength = 0;
874
- }
875
- if (rowLength > 0 || options.trim === false) {
876
- rows[rows.length - 1] += " ";
877
- rowLength++;
878
- }
879
- }
880
- if (options.hard && options.wordWrap !== false && word.width > columns) {
881
- const remainingColumns = columns - rowLength;
882
- const breaksStartingThisLine = 1 + Math.floor((word.width - remainingColumns - 1) / columns);
883
- const breaksStartingNextLine = Math.floor((word.width - 1) / columns);
884
- if (breaksStartingNextLine < breaksStartingThisLine) {
885
- rows.push("");
886
- rowLength = 0;
887
- }
888
- rowLength = wrapWord(rows, word.value, columns, rowLength);
889
- continue;
890
- }
891
- if (rowLength + word.width > columns && rowLength > 0 && word.width > 0) {
892
- if (options.wordWrap === false && rowLength < columns) {
893
- rowLength = wrapWord(rows, word.value, columns, rowLength);
894
- continue;
895
- }
896
- rows.push("");
897
- rowLength = 0;
898
- }
899
- if (rowLength + word.width > columns && options.wordWrap === false) {
900
- rowLength = wrapWord(rows, word.value, columns, rowLength);
901
- continue;
902
- }
903
- rows[rows.length - 1] += word.value;
904
- rowLength += word.width;
905
- }
906
- if (options.trim !== false) {
907
- rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
908
- }
909
- return restoreStylesAcrossRows(rows.join("\n"));
910
- }, "exec");
911
- var normalizeText = /* @__PURE__ */ __name((string) => {
912
- let normalizedString = "";
913
- forEachSegment(string, (plainText) => {
914
- normalizedString += plainText.normalize();
915
- }, (escape) => {
916
- normalizedString += escape;
917
- });
918
- return normalizedString;
919
- }, "normalizeText");
920
- function wrapAnsi(string, columns, options) {
921
- return normalizeText(String(string)).replaceAll("\r\n", "\n").split("\n").map((line) => exec(expandTabs(line), columns, options)).join("\n");
922
- }
923
- __name(wrapAnsi, "wrapAnsi");
924
-
925
- export {
926
- stringWidth,
927
- wrapAnsi
928
- };