@wirecat/zoom-cli 0.83.0 → 0.84.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 (481) hide show
  1. package/README.md +10 -10
  2. package/contracts/wirecat.json +34 -1
  3. package/dist/account-removal.d.ts +1 -1
  4. package/dist/account-removal.d.ts.map +1 -1
  5. package/dist/account-removal.js +1 -1
  6. package/dist/account-removal.js.map +1 -1
  7. package/dist/agent-skill.js +1 -1
  8. package/dist/agent-skill.js.map +1 -1
  9. package/dist/answer-entities.d.ts +1 -1
  10. package/dist/answer-entities.d.ts.map +1 -1
  11. package/dist/answer-entities.js +1 -1
  12. package/dist/answer-entities.js.map +1 -1
  13. package/dist/answer-output.d.ts +2 -2
  14. package/dist/answer-output.d.ts.map +1 -1
  15. package/dist/answer-output.js +1 -1
  16. package/dist/answer-output.js.map +1 -1
  17. package/dist/answer-policy.d.ts.map +1 -1
  18. package/dist/answer-policy.js +1 -2
  19. package/dist/answer-policy.js.map +1 -1
  20. package/dist/answers.js +1 -1
  21. package/dist/answers.js.map +1 -1
  22. package/dist/api.d.ts +2 -2
  23. package/dist/api.d.ts.map +1 -1
  24. package/dist/api.js +1 -1
  25. package/dist/api.js.map +1 -1
  26. package/dist/archive-commands.d.ts +1 -1
  27. package/dist/archive-commands.d.ts.map +1 -1
  28. package/dist/archive-commands.js +1 -2
  29. package/dist/archive-commands.js.map +1 -1
  30. package/dist/archive-import.d.ts +1 -1
  31. package/dist/archive-import.d.ts.map +1 -1
  32. package/dist/archive-import.js +1 -1
  33. package/dist/archive-import.js.map +1 -1
  34. package/dist/archive-transcripts.d.ts +1 -1
  35. package/dist/archive-transcripts.d.ts.map +1 -1
  36. package/dist/archive-transcripts.js +1 -2
  37. package/dist/archive-transcripts.js.map +1 -1
  38. package/dist/bin/main.js +3 -3
  39. package/dist/bin/main.js.map +1 -1
  40. package/dist/bin/zm.js +11 -11
  41. package/dist/bundle/answer-policy-OQQWAUHH.js +33 -0
  42. package/dist/bundle/chunk-3YDF76DP.js +922 -0
  43. package/dist/bundle/chunk-AEWYRB6F.js +8 -0
  44. package/dist/bundle/{chunk-OGTN2KVG.js → chunk-AF2Z6VOG.js} +4 -14
  45. package/dist/bundle/{chunk-26TW5RZ6.js → chunk-DAYBU7WR.js} +61 -94
  46. package/dist/bundle/{chunk-2DK5BBFF.js → chunk-JD63PEI3.js} +3 -8
  47. package/dist/bundle/{chunk-H6A4NWYJ.js → chunk-L5ZYKXAY.js} +114 -128
  48. package/dist/bundle/{chunk-R6IA5UQB.js → chunk-W4TDCCT3.js} +8 -2
  49. package/dist/bundle/{chunk-XEOZTA3H.js → chunk-W6YFWJDR.js} +2 -5
  50. package/dist/bundle/{chunk-434YFJAE.js → chunk-WSGD5Q6L.js} +3 -9
  51. package/dist/bundle/config-MP5YLHEY.js +29 -0
  52. package/dist/bundle/{folders-ROKVKSCT.js → folders-B2GKJOC2.js} +2 -7
  53. package/dist/bundle/{main-GCK3VYAA.js → main-YZPLPXB7.js} +19 -41
  54. package/dist/bundle/{output-file-RYIOIXMD.js → output-file-PKA7MJEP.js} +3 -11
  55. package/dist/bundle/{program-OYLVYA4Z.js → program-7JY6XJ6K.js} +642 -801
  56. package/dist/bundle/run-log-ML7ZCWXD.js +54 -0
  57. package/dist/bundle/store-connection-LQGKS3DN.js +21 -0
  58. package/dist/bundle/streaming-PRGWGNHY.js +12 -0
  59. package/dist/bundle/tokens-57RJVBK6.js +18 -0
  60. package/dist/bundle/zm.js +4 -161
  61. package/dist/bundle/{zoom-app-4F4YY4OI.js → zoom-app-EYJST6GF.js} +5 -13
  62. package/dist/chat-file.d.ts +1 -1
  63. package/dist/chat-file.d.ts.map +1 -1
  64. package/dist/commands.js +1 -1
  65. package/dist/commands.js.map +1 -1
  66. package/dist/config-issues.d.ts +1 -1
  67. package/dist/config-issues.d.ts.map +1 -1
  68. package/dist/config-issues.js +1 -1
  69. package/dist/config-issues.js.map +1 -1
  70. package/dist/config.d.ts +1 -2
  71. package/dist/config.d.ts.map +1 -1
  72. package/dist/config.js +1 -2
  73. package/dist/config.js.map +1 -1
  74. package/dist/contacts-commands.d.ts +1 -1
  75. package/dist/contacts-commands.d.ts.map +1 -1
  76. package/dist/contacts-commands.js +1 -1
  77. package/dist/contacts-commands.js.map +1 -1
  78. package/dist/contract-overrides.js +1 -1
  79. package/dist/contract-overrides.js.map +1 -1
  80. package/dist/errors.d.ts +1 -1
  81. package/dist/errors.d.ts.map +1 -1
  82. package/dist/execution.d.ts +1 -1
  83. package/dist/execution.d.ts.map +1 -1
  84. package/dist/execution.js +1 -1
  85. package/dist/execution.js.map +1 -1
  86. package/dist/files.d.ts +2 -2
  87. package/dist/files.d.ts.map +1 -1
  88. package/dist/files.js +1 -1
  89. package/dist/files.js.map +1 -1
  90. package/dist/first-screen.js +1 -1
  91. package/dist/first-screen.js.map +1 -1
  92. package/dist/identity.d.ts +1 -1
  93. package/dist/identity.d.ts.map +1 -1
  94. package/dist/identity.js +6 -0
  95. package/dist/identity.js.map +1 -1
  96. package/dist/ingestion-search-commands.d.ts +1 -1
  97. package/dist/ingestion-search-commands.d.ts.map +1 -1
  98. package/dist/ingestion-search-commands.js +1 -1
  99. package/dist/ingestion-search-commands.js.map +1 -1
  100. package/dist/local-transcription-commands.d.ts +1 -1
  101. package/dist/local-transcription-commands.d.ts.map +1 -1
  102. package/dist/local-transcription-commands.js +1 -2
  103. package/dist/local-transcription-commands.js.map +1 -1
  104. package/dist/local-transcription.d.ts +1 -2
  105. package/dist/local-transcription.d.ts.map +1 -1
  106. package/dist/local-transcription.js +3 -3
  107. package/dist/local-transcription.js.map +1 -1
  108. package/dist/meeting-commands.d.ts +1 -1
  109. package/dist/meeting-commands.d.ts.map +1 -1
  110. package/dist/meeting-commands.js +1 -2
  111. package/dist/meeting-commands.js.map +1 -1
  112. package/dist/meeting-communications-binding.d.ts +1 -2
  113. package/dist/meeting-communications-binding.d.ts.map +1 -1
  114. package/dist/meeting-communications-binding.js.map +1 -1
  115. package/dist/meeting-context-commands.d.ts +1 -1
  116. package/dist/meeting-context-commands.d.ts.map +1 -1
  117. package/dist/meeting-context-commands.js +1 -1
  118. package/dist/meeting-context-commands.js.map +1 -1
  119. package/dist/meeting-context.d.ts +2 -4
  120. package/dist/meeting-context.d.ts.map +1 -1
  121. package/dist/meeting-context.js +1 -1
  122. package/dist/meeting-context.js.map +1 -1
  123. package/dist/meeting-integration-commands.d.ts +1 -1
  124. package/dist/meeting-integration-commands.d.ts.map +1 -1
  125. package/dist/meeting-integration-commands.js +1 -2
  126. package/dist/meeting-integration-commands.js.map +1 -1
  127. package/dist/meeting-integration.d.ts +1 -1
  128. package/dist/meeting-integration.d.ts.map +1 -1
  129. package/dist/meeting-integration.js +1 -1
  130. package/dist/meeting-integration.js.map +1 -1
  131. package/dist/meeting-inventory.d.ts +1 -1
  132. package/dist/meeting-inventory.d.ts.map +1 -1
  133. package/dist/meeting-inventory.js +1 -1
  134. package/dist/meeting-inventory.js.map +1 -1
  135. package/dist/meeting-preparation.d.ts +1 -2
  136. package/dist/meeting-preparation.d.ts.map +1 -1
  137. package/dist/meeting-preparation.js +1 -1
  138. package/dist/meeting-preparation.js.map +1 -1
  139. package/dist/meeting-project-candidates.d.ts +1 -1
  140. package/dist/meeting-project-candidates.d.ts.map +1 -1
  141. package/dist/meeting-project-evidence-commands.d.ts +1 -1
  142. package/dist/meeting-project-evidence-commands.d.ts.map +1 -1
  143. package/dist/meeting-project-evidence-commands.js +1 -2
  144. package/dist/meeting-project-evidence-commands.js.map +1 -1
  145. package/dist/meeting-read-command-bindings.js +1 -1
  146. package/dist/meeting-read-command-bindings.js.map +1 -1
  147. package/dist/meeting-review-commands.d.ts +1 -3
  148. package/dist/meeting-review-commands.d.ts.map +1 -1
  149. package/dist/meeting-review-commands.js +1 -2
  150. package/dist/meeting-review-commands.js.map +1 -1
  151. package/dist/meeting-search-commands.d.ts +2 -3
  152. package/dist/meeting-search-commands.d.ts.map +1 -1
  153. package/dist/meeting-search-commands.js +2 -4
  154. package/dist/meeting-search-commands.js.map +1 -1
  155. package/dist/meeting-searches-commands.d.ts +1 -2
  156. package/dist/meeting-searches-commands.d.ts.map +1 -1
  157. package/dist/meeting-searches-commands.js +1 -2
  158. package/dist/meeting-searches-commands.js.map +1 -1
  159. package/dist/meeting-selection-options.d.ts +1 -1
  160. package/dist/meeting-selection-options.d.ts.map +1 -1
  161. package/dist/meeting-selection-options.js +1 -2
  162. package/dist/meeting-selection-options.js.map +1 -1
  163. package/dist/meeting-semantic-commands.d.ts +1 -2
  164. package/dist/meeting-semantic-commands.d.ts.map +1 -1
  165. package/dist/meeting-semantic-commands.js +1 -1
  166. package/dist/meeting-semantic-commands.js.map +1 -1
  167. package/dist/meeting-semantic.d.ts +2 -2
  168. package/dist/meeting-semantic.d.ts.map +1 -1
  169. package/dist/meeting-semantic.js +1 -1
  170. package/dist/meeting-semantic.js.map +1 -1
  171. package/dist/meeting-source.d.ts +1 -1
  172. package/dist/meeting-source.d.ts.map +1 -1
  173. package/dist/meeting-stats-commands.d.ts +1 -3
  174. package/dist/meeting-stats-commands.d.ts.map +1 -1
  175. package/dist/meeting-stats-commands.js +1 -2
  176. package/dist/meeting-stats-commands.js.map +1 -1
  177. package/dist/models-commands.d.ts +1 -1
  178. package/dist/models-commands.d.ts.map +1 -1
  179. package/dist/models-commands.js +1 -1
  180. package/dist/models-commands.js.map +1 -1
  181. package/dist/occurrence-schedule.d.ts +1 -1
  182. package/dist/occurrence-schedule.d.ts.map +1 -1
  183. package/dist/permissions.d.ts +1 -1
  184. package/dist/permissions.d.ts.map +1 -1
  185. package/dist/permissions.js +1 -2
  186. package/dist/permissions.js.map +1 -1
  187. package/dist/profile.js +1 -1
  188. package/dist/profile.js.map +1 -1
  189. package/dist/program-bindings.js +1 -1
  190. package/dist/program-bindings.js.map +1 -1
  191. package/dist/program.d.ts +1 -2
  192. package/dist/program.d.ts.map +1 -1
  193. package/dist/program.js +1 -1
  194. package/dist/program.js.map +1 -1
  195. package/dist/progress-commands.d.ts +1 -1
  196. package/dist/progress-commands.d.ts.map +1 -1
  197. package/dist/progress-commands.js +1 -2
  198. package/dist/progress-commands.js.map +1 -1
  199. package/dist/read-only.js +1 -1
  200. package/dist/read-only.js.map +1 -1
  201. package/dist/recording-archive.d.ts.map +1 -1
  202. package/dist/recording-archive.js +1 -2
  203. package/dist/recording-archive.js.map +1 -1
  204. package/dist/recording-manifest.js +1 -1
  205. package/dist/recording-manifest.js.map +1 -1
  206. package/dist/recording-partial-store.d.ts +2 -3
  207. package/dist/recording-partial-store.d.ts.map +1 -1
  208. package/dist/recording-partial-store.js +1 -1
  209. package/dist/recording-partial-store.js.map +1 -1
  210. package/dist/recording-promotion-store.d.ts +1 -2
  211. package/dist/recording-promotion-store.d.ts.map +1 -1
  212. package/dist/recording-promotion-store.js +1 -2
  213. package/dist/recording-promotion-store.js.map +1 -1
  214. package/dist/recording-schedule-commands.d.ts +1 -1
  215. package/dist/recording-schedule-commands.d.ts.map +1 -1
  216. package/dist/recording-schedule-commands.js +1 -1
  217. package/dist/recording-schedule-commands.js.map +1 -1
  218. package/dist/recording-schedule-store.js +1 -1
  219. package/dist/recording-schedule-store.js.map +1 -1
  220. package/dist/recording-schedule-systemd.js +1 -1
  221. package/dist/recording-schedule-systemd.js.map +1 -1
  222. package/dist/recording-schedule.d.ts +1 -1
  223. package/dist/recording-schedule.d.ts.map +1 -1
  224. package/dist/recording-schedule.js +1 -1
  225. package/dist/recording-schedule.js.map +1 -1
  226. package/dist/recording-sync-store.d.ts +1 -1
  227. package/dist/recording-sync-store.d.ts.map +1 -1
  228. package/dist/recording-sync-store.js +1 -2
  229. package/dist/recording-sync-store.js.map +1 -1
  230. package/dist/recording-sync.d.ts +1 -1
  231. package/dist/recording-sync.d.ts.map +1 -1
  232. package/dist/recording-sync.js +1 -1
  233. package/dist/recording-sync.js.map +1 -1
  234. package/dist/recording-writer-lease.d.ts +1 -1
  235. package/dist/recording-writer-lease.d.ts.map +1 -1
  236. package/dist/recording-writer-lease.js +1 -1
  237. package/dist/recording-writer-lease.js.map +1 -1
  238. package/dist/recordings.d.ts +1 -1
  239. package/dist/recordings.d.ts.map +1 -1
  240. package/dist/recordings.js.map +1 -1
  241. package/dist/remote-meetings.d.ts +19 -19
  242. package/dist/remote-meetings.d.ts.map +1 -1
  243. package/dist/remote-meetings.js +1 -1
  244. package/dist/remote-meetings.js.map +1 -1
  245. package/dist/request-events.d.ts +1 -1
  246. package/dist/request-events.d.ts.map +1 -1
  247. package/dist/request-events.js +1 -1
  248. package/dist/request-events.js.map +1 -1
  249. package/dist/run-log.d.ts +1 -1
  250. package/dist/run-log.d.ts.map +1 -1
  251. package/dist/run-log.js +1 -1
  252. package/dist/run-log.js.map +1 -1
  253. package/dist/run.d.ts +1 -1
  254. package/dist/run.d.ts.map +1 -1
  255. package/dist/run.js +1 -2
  256. package/dist/run.js.map +1 -1
  257. package/dist/series-inventory.d.ts +2 -2
  258. package/dist/series-inventory.js +1 -1
  259. package/dist/series-inventory.js.map +1 -1
  260. package/dist/setup-commands.d.ts +1 -1
  261. package/dist/setup-commands.d.ts.map +1 -1
  262. package/dist/setup-commands.js +1 -1
  263. package/dist/setup-commands.js.map +1 -1
  264. package/dist/store-commands.d.ts +1 -1
  265. package/dist/store-commands.d.ts.map +1 -1
  266. package/dist/store-commands.js +1 -2
  267. package/dist/store-commands.js.map +1 -1
  268. package/dist/store-connection.d.ts +1 -3
  269. package/dist/store-connection.d.ts.map +1 -1
  270. package/dist/store-connection.js +14 -14
  271. package/dist/store-connection.js.map +1 -1
  272. package/dist/sync-progress.d.ts +4 -4
  273. package/dist/sync-progress.d.ts.map +1 -1
  274. package/dist/sync-progress.js +1 -1
  275. package/dist/sync-progress.js.map +1 -1
  276. package/dist/tokens.d.ts +1 -1
  277. package/dist/tokens.d.ts.map +1 -1
  278. package/dist/tokens.js +1 -1
  279. package/dist/tokens.js.map +1 -1
  280. package/dist/unified-search.d.ts +1 -1
  281. package/dist/unified-search.d.ts.map +1 -1
  282. package/dist/upcoming-meetings.d.ts +2 -2
  283. package/dist/upcoming-meetings.js +1 -1
  284. package/dist/upcoming-meetings.js.map +1 -1
  285. package/dist/upgrade.d.ts.map +1 -1
  286. package/dist/upgrade.js +1 -2
  287. package/dist/upgrade.js.map +1 -1
  288. package/dist/version.d.ts +1 -1
  289. package/dist/version.js +1 -1
  290. package/dist/watch-commands.d.ts +1 -2
  291. package/dist/watch-commands.d.ts.map +1 -1
  292. package/dist/watch-commands.js +1 -2
  293. package/dist/watch-commands.js.map +1 -1
  294. package/dist/watch-service.d.ts +1 -1
  295. package/dist/watch-service.d.ts.map +1 -1
  296. package/dist/watch-service.js +1 -1
  297. package/dist/watch-service.js.map +1 -1
  298. package/dist/zoom-app.d.ts +2 -2
  299. package/dist/zoom-app.d.ts.map +1 -1
  300. package/dist/zoom-app.js +1 -1
  301. package/dist/zoom-app.js.map +1 -1
  302. package/dist/zoom-search-commands.d.ts +1 -1
  303. package/dist/zoom-search-commands.d.ts.map +1 -1
  304. package/dist/zoom-search-commands.js +1 -1
  305. package/dist/zoom-search-commands.js.map +1 -1
  306. package/dist/zoom-session.d.ts +1 -1
  307. package/dist/zoom-session.d.ts.map +1 -1
  308. package/dist/zoom-session.js +1 -1
  309. package/dist/zoom-session.js.map +1 -1
  310. package/package.json +3 -3
  311. package/scenarios/person-in-meetings.md +1 -1
  312. package/skills/zoom-cli/SKILL.md +1 -1
  313. package/skills/zoom-cli/references/people-and-projects.md +5 -5
  314. package/skills/zoom-cli/references/prepare.md +2 -2
  315. package/dist/bundle/agent-3HDWEZ5M.js +0 -47
  316. package/dist/bundle/all-profiles-RY2OMSDL.js +0 -321
  317. package/dist/bundle/answer-policy-IFVXPPGW.js +0 -131
  318. package/dist/bundle/anthropic-36VPSF7B.js +0 -91
  319. package/dist/bundle/app-server-ZVJVUGB7.js +0 -267
  320. package/dist/bundle/bun-F4M4KCNA.js +0 -169
  321. package/dist/bundle/bun-sqlite-IOPYIUA7.js +0 -76
  322. package/dist/bundle/chunk-2IBKKVVZ.js +0 -335
  323. package/dist/bundle/chunk-2S54TM4N.js +0 -230
  324. package/dist/bundle/chunk-3AQHKXVR.js +0 -161
  325. package/dist/bundle/chunk-3CW2C7ZA.js +0 -217
  326. package/dist/bundle/chunk-3KUEZK5Z.js +0 -73
  327. package/dist/bundle/chunk-3PXUQFHX.js +0 -2333
  328. package/dist/bundle/chunk-3QN5KDFZ.js +0 -3012
  329. package/dist/bundle/chunk-575JMTDR.js +0 -562
  330. package/dist/bundle/chunk-5B2LV4MS.js +0 -26
  331. package/dist/bundle/chunk-5WL5RHOO.js +0 -167
  332. package/dist/bundle/chunk-6C7ESL5N.js +0 -295
  333. package/dist/bundle/chunk-6E4KLYNP.js +0 -229
  334. package/dist/bundle/chunk-7JDXR75Q.js +0 -465
  335. package/dist/bundle/chunk-AK3H2C65.js +0 -1349
  336. package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
  337. package/dist/bundle/chunk-AQLUAQXJ.js +0 -1259
  338. package/dist/bundle/chunk-ASTLGFTR.js +0 -12270
  339. package/dist/bundle/chunk-ATHBB7OU.js +0 -106
  340. package/dist/bundle/chunk-B2NM65RD.js +0 -80
  341. package/dist/bundle/chunk-B4KHDXJE.js +0 -64
  342. package/dist/bundle/chunk-BAFC7WNI.js +0 -276
  343. package/dist/bundle/chunk-BBGJQMRI.js +0 -34
  344. package/dist/bundle/chunk-BTLZYRIW.js +0 -1007
  345. package/dist/bundle/chunk-BZDS2X6Y.js +0 -5150
  346. package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
  347. package/dist/bundle/chunk-CDQUW25G.js +0 -3752
  348. package/dist/bundle/chunk-CJWGJBHW.js +0 -1044
  349. package/dist/bundle/chunk-D72URWJE.js +0 -532
  350. package/dist/bundle/chunk-D7RCUODT.js +0 -185
  351. package/dist/bundle/chunk-DFDN6AUB.js +0 -21
  352. package/dist/bundle/chunk-DNCLQPOM.js +0 -7
  353. package/dist/bundle/chunk-DQJECJUE.js +0 -2257
  354. package/dist/bundle/chunk-E4JQ3MCW.js +0 -2338
  355. package/dist/bundle/chunk-E4ODYLEK.js +0 -209
  356. package/dist/bundle/chunk-EE45N67Q.js +0 -86
  357. package/dist/bundle/chunk-EEEU4MKK.js +0 -210
  358. package/dist/bundle/chunk-ESN3W2MZ.js +0 -2624
  359. package/dist/bundle/chunk-ETIZGA4P.js +0 -340
  360. package/dist/bundle/chunk-F44QK6CK.js +0 -52
  361. package/dist/bundle/chunk-FH2UFNH6.js +0 -54
  362. package/dist/bundle/chunk-FTH6WGYO.js +0 -24
  363. package/dist/bundle/chunk-FWACRG4X.js +0 -160
  364. package/dist/bundle/chunk-FXBHOCJK.js +0 -24600
  365. package/dist/bundle/chunk-G5SZL7G2.js +0 -150
  366. package/dist/bundle/chunk-G6CHEFAG.js +0 -108
  367. package/dist/bundle/chunk-GHJD7PE6.js +0 -1068
  368. package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
  369. package/dist/bundle/chunk-HKLRI2LB.js +0 -555
  370. package/dist/bundle/chunk-HMD4FZYY.js +0 -133
  371. package/dist/bundle/chunk-HO4JGD4Q.js +0 -16
  372. package/dist/bundle/chunk-HTQTIKWP.js +0 -928
  373. package/dist/bundle/chunk-HUAHLO6N.js +0 -29
  374. package/dist/bundle/chunk-IANKXHSE.js +0 -46
  375. package/dist/bundle/chunk-IQZXFWFI.js +0 -170
  376. package/dist/bundle/chunk-ISQ23VKV.js +0 -123
  377. package/dist/bundle/chunk-JEH33ZCD.js +0 -58
  378. package/dist/bundle/chunk-JUNQYWQ2.js +0 -228
  379. package/dist/bundle/chunk-JUXMVQWJ.js +0 -799
  380. package/dist/bundle/chunk-KHQDWYCG.js +0 -82
  381. package/dist/bundle/chunk-KYRYD4CR.js +0 -38
  382. package/dist/bundle/chunk-LBGT6W4R.js +0 -377
  383. package/dist/bundle/chunk-LN7HRYTH.js +0 -80
  384. package/dist/bundle/chunk-MEB7HBTM.js +0 -95
  385. package/dist/bundle/chunk-MEEFWYX3.js +0 -388
  386. package/dist/bundle/chunk-MNOAMJ6H.js +0 -94
  387. package/dist/bundle/chunk-MYHPXJDG.js +0 -142
  388. package/dist/bundle/chunk-NGI37RFW.js +0 -692
  389. package/dist/bundle/chunk-NZMWD7Y3.js +0 -68149
  390. package/dist/bundle/chunk-O6IECJRM.js +0 -54
  391. package/dist/bundle/chunk-OBWL3BUV.js +0 -800
  392. package/dist/bundle/chunk-OEEWVKJX.js +0 -53
  393. package/dist/bundle/chunk-OQYZ3W4K.js +0 -374
  394. package/dist/bundle/chunk-P3ZCTYGW.js +0 -101
  395. package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
  396. package/dist/bundle/chunk-PVEBAHFU.js +0 -100
  397. package/dist/bundle/chunk-R2B6PUVI.js +0 -206
  398. package/dist/bundle/chunk-RLOH7RDN.js +0 -362
  399. package/dist/bundle/chunk-RQ4AXSCJ.js +0 -616
  400. package/dist/bundle/chunk-RYGTCRFZ.js +0 -140
  401. package/dist/bundle/chunk-S4PXWIE4.js +0 -408
  402. package/dist/bundle/chunk-SDZZYZLL.js +0 -58
  403. package/dist/bundle/chunk-SHQAYUK6.js +0 -1199
  404. package/dist/bundle/chunk-T3W4V4A6.js +0 -63
  405. package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
  406. package/dist/bundle/chunk-TDWPOSPR.js +0 -198
  407. package/dist/bundle/chunk-TER3N27H.js +0 -353
  408. package/dist/bundle/chunk-TMTNP7QN.js +0 -214
  409. package/dist/bundle/chunk-TO5UEWXR.js +0 -288
  410. package/dist/bundle/chunk-TXDR6YSF.js +0 -23
  411. package/dist/bundle/chunk-TY7NDMFY.js +0 -46
  412. package/dist/bundle/chunk-UAWSINMC.js +0 -875
  413. package/dist/bundle/chunk-UBH7YF3C.js +0 -9354
  414. package/dist/bundle/chunk-UEAE3JUU.js +0 -46576
  415. package/dist/bundle/chunk-UHR363OD.js +0 -357
  416. package/dist/bundle/chunk-UM52A76S.js +0 -259
  417. package/dist/bundle/chunk-URP6BTHN.js +0 -624
  418. package/dist/bundle/chunk-UWQEAA6S.js +0 -13
  419. package/dist/bundle/chunk-VR7QZGRU.js +0 -185
  420. package/dist/bundle/chunk-VRH5PBSL.js +0 -755
  421. package/dist/bundle/chunk-VTLQTQKY.js +0 -1756
  422. package/dist/bundle/chunk-VTYNLTDW.js +0 -331
  423. package/dist/bundle/chunk-WY7XG6TE.js +0 -76
  424. package/dist/bundle/chunk-XH23ML2V.js +0 -195
  425. package/dist/bundle/chunk-XYF76A26.js +0 -27556
  426. package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
  427. package/dist/bundle/chunk-ZDYJAEVB.js +0 -84
  428. package/dist/bundle/chunk-ZJ63HDBT.js +0 -71
  429. package/dist/bundle/chunk-ZT4ZPUIO.js +0 -218
  430. package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
  431. package/dist/bundle/cli-JK6PQSSN.js +0 -1270
  432. package/dist/bundle/command-contract-F3QNBKPX.js +0 -46
  433. package/dist/bundle/command-server-entry-DJLGN62J.js +0 -176
  434. package/dist/bundle/config-TYYMV3HV.js +0 -118
  435. package/dist/bundle/decode-ZZICNNFF.js +0 -31
  436. package/dist/bundle/dispatch-FKMIPCPQ.js +0 -412
  437. package/dist/bundle/dist-NQPF25XI.js +0 -322
  438. package/dist/bundle/dist-PAKDDIBT.js +0 -191
  439. package/dist/bundle/dist-XUFQCJXW.js +0 -7577
  440. package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
  441. package/dist/bundle/embed-T64EUKUI.js +0 -38
  442. package/dist/bundle/embedder-ZEKISZXI.js +0 -111
  443. package/dist/bundle/failure-XTWBYI2A.js +0 -25
  444. package/dist/bundle/first-run-ZFNY4RRH.js +0 -29
  445. package/dist/bundle/first-screen-LPGCHRHZ.js +0 -47
  446. package/dist/bundle/instructions-4H7UREH2.js +0 -11
  447. package/dist/bundle/mcp-5HFPWC3W.js +0 -167
  448. package/dist/bundle/meeting-combined-7HDPOUPB.js +0 -28
  449. package/dist/bundle/meeting-model-MVUW7UPQ.js +0 -26
  450. package/dist/bundle/meeting-semantic-IF633WGX.js +0 -23
  451. package/dist/bundle/meetings-RY2AAPHV.js +0 -332
  452. package/dist/bundle/node-KM3CUABH.js +0 -2340
  453. package/dist/bundle/node-P3PUHKYH.js +0 -176
  454. package/dist/bundle/node-TLZSIHIJ.js +0 -21
  455. package/dist/bundle/node-sqlite-ASAZJNHE.js +0 -74
  456. package/dist/bundle/oauth-4U3OCK3W.js +0 -20
  457. package/dist/bundle/oauth-AJARLPSY.js +0 -46
  458. package/dist/bundle/open-SEJRY2ZI.js +0 -23
  459. package/dist/bundle/openai-FZDSC2AA.js +0 -28
  460. package/dist/bundle/process-AFIXYXWL.js +0 -91
  461. package/dist/bundle/prompt-BCRD64F4.js +0 -17
  462. package/dist/bundle/public-SVJILCNI.js +0 -206
  463. package/dist/bundle/recognize-25ITJWGX.js +0 -26
  464. package/dist/bundle/remote-5FBAJX7O.js +0 -32
  465. package/dist/bundle/rerank-2HGWWORY.js +0 -52
  466. package/dist/bundle/run-log-7HRF4Y47.js +0 -145
  467. package/dist/bundle/serve-RL35MSJD.js +0 -199
  468. package/dist/bundle/server-QUSBWACP.js +0 -229
  469. package/dist/bundle/server-SCK2SRDK.js +0 -96
  470. package/dist/bundle/services-BGRIQNDC.js +0 -609
  471. package/dist/bundle/speech-4W3ZMTFK.js +0 -89
  472. package/dist/bundle/sqlite-runtime-K3KLRZCV.js +0 -20
  473. package/dist/bundle/state-GYL4C74G.js +0 -36
  474. package/dist/bundle/store-27UQMNEO.js +0 -189
  475. package/dist/bundle/store-NLYH5SQX.js +0 -316
  476. package/dist/bundle/store-connection-CZILWRSR.js +0 -112
  477. package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +0 -84
  478. package/dist/bundle/streaming-73EKEGPF.js +0 -18
  479. package/dist/bundle/surface-CV3C4RV2.js +0 -82
  480. package/dist/bundle/tokens-PY3S22LY.js +0 -27
  481. /package/dist/bundle/{chunk-7ECP5ZQR.js → chunk-7O7XM37N.js} +0 -0
@@ -1,357 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- WIRECAT_TOOLS
5
- } from "./chunk-ISQ23VKV.js";
6
- import {
7
- hasOwnAction,
8
- isHidden
9
- } from "./chunk-HUAHLO6N.js";
10
- import {
11
- wrapAnsi
12
- } from "./chunk-HTQTIKWP.js";
13
- import {
14
- commandPathOf,
15
- outputOf
16
- } from "./chunk-HMD4FZYY.js";
17
- import {
18
- Command,
19
- Help,
20
- NO_EFFECTS,
21
- Option,
22
- annotate,
23
- commandAt,
24
- environmentOf,
25
- metaOf,
26
- takesProfile
27
- } from "./chunk-ASTLGFTR.js";
28
- import {
29
- writes
30
- } from "./chunk-ESN3W2MZ.js";
31
- import {
32
- CliError
33
- } from "./chunk-IANKXHSE.js";
34
- import {
35
- __name
36
- } from "./chunk-ZVVMGPBJ.js";
37
-
38
- // 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/help/command-help.js
39
- var ARGUMENT_KINDS = {
40
- chat: "chat",
41
- chats: "chat",
42
- message: "message",
43
- messages: "message",
44
- post: "message",
45
- person: "person",
46
- people: "person",
47
- task: "task",
48
- meeting: "meeting",
49
- folder: "folder",
50
- folders: "folder",
51
- topic: "topic",
52
- note: "note",
53
- document: "document",
54
- model: "model"
55
- };
56
- var ENTITY_KINDS = {
57
- message: "message",
58
- message_link: "message",
59
- chat: "chat",
60
- contact: "person",
61
- member: "person",
62
- person: "person",
63
- task: "task",
64
- meeting: "meeting",
65
- meeting_details: "meeting",
66
- meeting_hit: "meeting",
67
- meeting_summary: "meeting",
68
- folder: "folder",
69
- topic: "topic",
70
- note: "note",
71
- document: "document",
72
- model: "model"
73
- };
74
- var HOME = {
75
- chat: "chats",
76
- message: "messages",
77
- person: "contacts",
78
- task: "tasks",
79
- meeting: "meetings",
80
- folder: "folders",
81
- topic: "topics",
82
- note: "notes",
83
- document: "documents",
84
- model: "models"
85
- };
86
- var SAMPLES = {
87
- chat: "Team",
88
- message: "1234",
89
- post: "1234",
90
- person: "Anna",
91
- people: "Anna",
92
- task: "12",
93
- meeting: "123",
94
- folder: "Work",
95
- topic: "General",
96
- model: "default",
97
- query: '"invoice"',
98
- text: '"on my way"',
99
- title: '"Weekly sync"',
100
- name: "daily",
101
- id: "1",
102
- file: "./report.pdf",
103
- link: "https://example.com/join/abc",
104
- url: "https://example.com",
105
- since: "1d",
106
- duration: "1d",
107
- limit: "20"
108
- };
109
- var MAX_NEXT = 3;
110
- var choices = /* @__PURE__ */ new WeakMap();
111
- var nextUsually = /* @__PURE__ */ __name((command, choice) => {
112
- choices.set(command, choice);
113
- return command;
114
- }, "nextUsually");
115
- var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
116
- var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || hasOwnAction(command), "runs");
117
- var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !isHidden(child)).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
118
- var rootOf = /* @__PURE__ */ __name((command) => {
119
- let at = command;
120
- while (at.parent)
121
- at = at.parent;
122
- return at;
123
- }, "rootOf");
124
- var call = /* @__PURE__ */ __name((command) => [
125
- rootOf(command).name(),
126
- ...commandPathOf(command),
127
- ...command.registeredArguments.map((one) => one.required ? `<${one.name()}>` : `[${one.name()}]`)
128
- ].join(" "), "call");
129
- var fieldsOf = /* @__PURE__ */ __name((schema) => {
130
- const variants = schema.anyOf;
131
- if (variants)
132
- return variants.flatMap(fieldsOf);
133
- const required = schema.required ?? [];
134
- return [...required, ...Object.keys(schema.properties ?? {})];
135
- }, "fieldsOf");
136
- var returnsOf = /* @__PURE__ */ __name((command) => {
137
- const output = metaOf(command).output;
138
- const { item, coverage } = outputOf(command);
139
- if (!output || coverage !== "declared-entity")
140
- return "";
141
- const fields = [...new Set(fieldsOf(item))];
142
- const noun = (output.view ? `${output.entity} ${output.view}` : output.entity).replaceAll("_", " ");
143
- const more = fields.length > 8 ? `, and ${fields.length - 8} more` : "";
144
- const root = rootOf(command);
145
- const schema = commandAt(root, "commands info") ? `; every field: ${root.name()} commands info ${commandPathOf(command).join(" ")}` : "";
146
- return `${noun} \u2014 ${fields.slice(0, 8).join(", ")}${more}${schema}`;
147
- }, "returnsOf");
148
- var nextOf = /* @__PURE__ */ __name((command) => {
149
- const root = rootOf(command);
150
- const choice = choices.get(command) ?? {};
151
- const drop = new Set(choice.drop ?? []);
152
- const pinned = (choice.pin ?? []).flatMap((path) => commandAt(root, path) ?? []);
153
- const output = metaOf(command).output;
154
- const kind = output ? ENTITY_KINDS[output.entity] : void 0;
155
- const all = leaves(root);
156
- const derived = kind ? all.filter((other) => other !== command && !pinned.includes(other)).filter((other) => other.registeredArguments.some((argument) => kindOfArgument(argument) === kind)).map((other, order) => ({ other, order })).sort((a, b) => {
157
- const rank = /* @__PURE__ */ __name((other) => [
158
- Number(writes(metaOf(other).effects)),
159
- Number(!other.registeredArguments.some((one) => one.required && kindOfArgument(one) === kind)),
160
- Number(commandPathOf(other)[0] !== HOME[kind]),
161
- Number(other.parent !== command.parent)
162
- ], "rank");
163
- const [left, right] = [rank(a.other), rank(b.other)];
164
- return left.reduce((found, value, at) => found || value - (right[at] ?? 0), 0) || a.order - b.order;
165
- }).map(({ other }) => other) : [];
166
- return [...pinned, ...derived].filter((other) => !drop.has(commandPathOf(other).join(" "))).slice(0, MAX_NEXT);
167
- }, "nextOf");
168
- var sample = /* @__PURE__ */ __name((name) => SAMPLES[name] ?? `<${name}>`, "sample");
169
- var generatedExample = /* @__PURE__ */ __name((command) => {
170
- const { query } = metaOf(command);
171
- const words = command.registeredArguments.flatMap((argument) => {
172
- const name = argument.name();
173
- if (name === "query" && query)
174
- return [];
175
- if (!argument.required && SAMPLES[name] === void 0)
176
- return [];
177
- return [argument.argChoices?.[0] ?? sample(name)];
178
- });
179
- const options = command.options.filter((option) => option.mandatory).flatMap((option) => {
180
- const flag = option.long ?? option.short ?? option.flags;
181
- const placeholder = /[<[]([^>\]]+)[>\]]/.exec(option.flags)?.[1];
182
- if (!(option.required || option.optional))
183
- return [flag];
184
- return [flag, option.argChoices?.[0] ?? sample(placeholder ?? option.attributeName())];
185
- });
186
- return [rootOf(command).name(), ...commandPathOf(command), ...words, ...options].join(" ");
187
- }, "generatedExample");
188
- var profiled = /* @__PURE__ */ new WeakSet();
189
- var EXAMPLE_PROFILE = "personal";
190
- var withProfile = /* @__PURE__ */ __name((command, example) => {
191
- const root = rootOf(command);
192
- const top = commandPathOf(command)[0];
193
- if (!profiled.has(root) || top === void 0 || !takesProfile(command))
194
- return example;
195
- if (example.split(" ").includes("--profiles"))
196
- return example;
197
- const prefix = `${root.name()} ${top}`;
198
- return example === prefix || example.startsWith(`${prefix} `) ? `${root.name()} ${EXAMPLE_PROFILE} ${example.slice(root.name().length + 1)}` : example;
199
- }, "withProfile");
200
- var commandHelp = /* @__PURE__ */ __name((command) => {
201
- const written = metaOf(command).examples ?? [];
202
- return {
203
- returns: returnsOf(command),
204
- next: nextOf(command).map(call),
205
- examples: (written.length > 0 ? written : [generatedExample(command)]).map((one) => withProfile(command, one)),
206
- origin: written.length > 0 ? "written" : "generated"
207
- };
208
- }, "commandHelp");
209
- var LABEL = 15;
210
- var commandHelpText = /* @__PURE__ */ __name((command) => {
211
- const { returns, next, examples } = commandHelp(command);
212
- const rows = /* @__PURE__ */ __name((label, values) => values.map((value, at) => `${(at === 0 ? label : "").padEnd(LABEL)}${value}`), "rows");
213
- const availability = environmentOf(command).discoveryAvailability?.({
214
- ...metaOf(command),
215
- path: commandPathOf(command)
216
- });
217
- const profileMatters = profiled.has(rootOf(command)) && takesProfile(command);
218
- const access = !availability ? [] : availability.available ? profileMatters ? rows("Availability:", ["available for this profile"]) : [] : rows("Availability:", [`unavailable \u2014 ${availability.reason}`]);
219
- return [
220
- "",
221
- ...access,
222
- ...rows("Returns:", returns ? [returns] : []),
223
- ...rows("Next usually:", next),
224
- ...rows("Example:", examples),
225
- ""
226
- ].join("\n");
227
- }, "commandHelpText");
228
- var commandHelpMarkdown = /* @__PURE__ */ __name((root, path) => {
229
- const command = commandAt(root, path.join(" "));
230
- if (!command || !runs(command))
231
- return [];
232
- const { returns, next, examples } = commandHelp(command);
233
- const code = /* @__PURE__ */ __name((values) => values.map((value) => `\`${value}\``).join(", "), "code");
234
- return [
235
- ...returns ? [`**Returns:** ${returns}`] : [],
236
- ...next.length > 0 ? [`**Next usually:** ${code(next)}`] : [],
237
- `**Example:** ${code(examples)}`
238
- ];
239
- }, "commandHelpMarkdown");
240
- var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {}) => {
241
- if (profile)
242
- profiled.add(program);
243
- for (const command of leaves(program))
244
- command.addHelpText("after", () => commandHelpText(command));
245
- }, "installCommandHelp");
246
- var exampleReport = /* @__PURE__ */ __name((program) => {
247
- const written = [];
248
- const generated = [];
249
- for (const command of leaves(program))
250
- (commandHelp(command).origin === "written" ? written : generated).push(commandPathOf(command).join(" "));
251
- const total = written.length + generated.length;
252
- const text = [
253
- `${program.name()}: ${written.length} of ${total} commands have a written example; ${generated.length} show a generated one:`,
254
- ...generated.map((path) => ` ${program.name()} ${path}`),
255
- ""
256
- ].join("\n");
257
- return { written, generated, text };
258
- }, "exampleReport");
259
-
260
- // 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/help/first-screen.js
261
- var WIDTH = 100;
262
- var widest = /* @__PURE__ */ __name((texts) => texts.reduce((most, text) => Math.max(most, text.length), 0), "widest");
263
- var block = /* @__PURE__ */ __name((title, rows, column) => rows.length === 0 ? [] : ["", `${title}:`, ...rows.map(([left, right]) => ` ${left.padEnd(column)}${right}`)], "block");
264
- var TOPICS = [
265
- ["--json", "output"],
266
- ["--offline", "offline"],
267
- ["--timeout", "timeouts"],
268
- ["--dry-run", "dry run"]
269
- ];
270
- var optionTopics = /* @__PURE__ */ __name((program) => {
271
- const longs = new Set(program.options.map((option) => option.long));
272
- const topics = TOPICS.filter(([long]) => longs.has(long)).map(([, topic]) => topic);
273
- return topics.length > 0 ? topics.join(", ") : "the options every command takes";
274
- }, "optionTopics");
275
- var pointers = /* @__PURE__ */ __name((program, cli, start, profile) => {
276
- const has = /* @__PURE__ */ __name((path) => commandAt(program, path) !== void 0, "has");
277
- const next = [
278
- has("commands") ? [`${cli} commands`, "every command, by section"] : void 0,
279
- has("guide") ? [`${cli} guide`, "scenarios: command sequences for common tasks"] : void 0,
280
- [`${cli} help options`, optionTopics(program)]
281
- ].filter((row) => row !== void 0);
282
- const rows = [
283
- ...start ? [["Start here:", start, profile ? "(any profile name works)" : ""]] : [],
284
- ...has("session list") ? [["", `${cli} session list`, "your profiles and their logged-in accounts"]] : [],
285
- ...next.map(([command = "", does = ""], at) => [at === 0 ? "Next:" : "", command, does]),
286
- ...has("skill show") ? [["For agents:", `${cli} skill show`, "rules and the discovery loop"]] : []
287
- ];
288
- const width = widest(rows.map(([, command]) => command)) + 2;
289
- return ["", ...rows.map(([label, command, does]) => `${label.padEnd(14)}${command.padEnd(width)}${does}`.trimEnd())];
290
- }, "pointers");
291
- var firstScreen = /* @__PURE__ */ __name((program, screen = {}) => {
292
- const cli = program.name();
293
- const profile = screen.profile !== false;
294
- const pitch = screen.pitch ?? program.description().split("\n")[0] ?? "";
295
- const can = (screen.can ?? []).map(({ command, does }) => [command, does]);
296
- const works = WIRECAT_TOOLS.filter((tool) => tool.command !== cli).map(({ command, shown, does }) => [shown ?? command, does]);
297
- const column = Math.max(22, widest([...can, ...works].map(([left]) => left))) + 2;
298
- const start = screen.start ?? (commandAt(program, "setup") ? `${cli} ${EXAMPLE_PROFILE} setup` : void 0);
299
- return [
300
- wrapAnsi(`${cli} \u2014 ${pitch}`, WIDTH),
301
- "",
302
- `Usage: ${cli} ${profile ? "<profile> " : ""}<command> [options]`,
303
- ...profile ? ["Account commands start with your profile, a name you choose; none is ever assumed."] : [],
304
- ...block("What you can do", can, column),
305
- ...block("Works with", works, column),
306
- ...pointers(program, cli, start, profile),
307
- ""
308
- ].join("\n");
309
- }, "firstScreen");
310
- var optionsScreen = /* @__PURE__ */ __name((program) => {
311
- const helper = program.createHelp();
312
- const width = helper.longestOptionTermLength(program, helper);
313
- return [
314
- `Options for every ${program.name()} command:`,
315
- ...helper.visibleOptions(program).map((option) => helper.formatItem(helper.optionTerm(option), width, helper.optionDescription(option), helper)),
316
- ""
317
- ].join("\n");
318
- }, "optionsScreen");
319
- var installHelp = /* @__PURE__ */ __name((program, screen = {}) => {
320
- let full = false;
321
- const own = program.configureHelp();
322
- program.configureHelp({
323
- ...own,
324
- // Commander copies this configuration to children made with `.command()`, so only the root gets the screen.
325
- formatHelp: /* @__PURE__ */ __name((command, helper) => command === program && !full ? firstScreen(program, screen) : (own.formatHelp ?? Help.prototype.formatHelp).call(helper, command, helper), "formatHelp")
326
- });
327
- installCommandHelp(program, { profile: screen.profile !== false });
328
- program.addOption(new Option("--help-all", "the full help: every command and option").hideHelp());
329
- program.on("option:help-all", () => {
330
- full = true;
331
- program.help();
332
- });
333
- if (program.commands.some((command) => command.name() === "help"))
334
- return program;
335
- const help = annotate(new Command("help"), { effects: NO_EFFECTS, mcp: false }).description("this screen; help options: the options for every command; help <command>: that command's help").argument("[topic...]", "options, or a command path").action((topic) => {
336
- if (topic.length === 0)
337
- return program.outputHelp();
338
- if (topic.length === 1 && topic[0] === "options")
339
- return program.configureOutput().writeOut?.(optionsScreen(program));
340
- const command = commandAt(program, topic.join(" "));
341
- if (!command)
342
- throw new CliError("validation_error", `no command "${topic.join(" ")}" \u2014 run \`${program.name()} help\`, or \`${program.name()} help options\``, { available: program.commands.map((one) => one.name()).filter((name) => name !== "help") });
343
- command.outputHelp();
344
- });
345
- program.addCommand(help, { hidden: true });
346
- return program;
347
- }, "installHelp");
348
-
349
- export {
350
- nextUsually,
351
- commandHelp,
352
- commandHelpText,
353
- commandHelpMarkdown,
354
- exampleReport,
355
- firstScreen,
356
- installHelp
357
- };
@@ -1,259 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- OPENAI_URL,
5
- openRemote,
6
- remoteKey,
7
- remoteModel
8
- } from "./chunk-D7RCUODT.js";
9
- import {
10
- isTextModelInstalled,
11
- openEmbedder,
12
- textModelsDirectory
13
- } from "./chunk-BTLZYRIW.js";
14
- import {
15
- textModel,
16
- vectorModelKey
17
- } from "./chunk-2IBKKVVZ.js";
18
- import {
19
- endpointFetch
20
- } from "./chunk-3KUEZK5Z.js";
21
- import {
22
- CliError
23
- } from "./chunk-IANKXHSE.js";
24
- import {
25
- __name
26
- } from "./chunk-ZVVMGPBJ.js";
27
-
28
- // 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-model.js
29
- var integer = /* @__PURE__ */ __name((value, name, max) => {
30
- if (!Number.isSafeInteger(value) || value < 1 || value > max)
31
- throw new CliError("validation_error", `Invalid ${name}`);
32
- return value;
33
- }, "integer");
34
- var cancelled = /* @__PURE__ */ __name((signal) => {
35
- if (signal?.aborted)
36
- throw new CliError("cancelled", "Meeting embedding was cancelled");
37
- }, "cancelled");
38
- var validatedRemote = /* @__PURE__ */ __name((remote) => {
39
- let url;
40
- try {
41
- url = new URL(remote.baseUrl);
42
- } catch {
43
- throw new CliError("validation_error", "Invalid embedding endpoint");
44
- }
45
- if (!["http:", "https:"].includes(url.protocol) || url.username || url.password || url.search || url.hash)
46
- throw new CliError("validation_error", "Embedding endpoint requires HTTP/S without credentials, query or fragment");
47
- if (typeof remote.model !== "string" || !/^[\w./:-]{1,200}$/.test(remote.model))
48
- throw new CliError("validation_error", "Invalid embedding model name");
49
- const dims = integer(remote.dims, "embedding dimensions", 8192);
50
- const baseUrl = remote.baseUrl.replace(/\/+$/, "");
51
- const result = remoteModel({ model: remote.model, dims, ...baseUrl === OPENAI_URL ? {} : { baseUrl } });
52
- return result;
53
- }, "validatedRemote");
54
- var meetingEmbeddingModel = /* @__PURE__ */ __name((choice, env) => {
55
- if (typeof choice === "string") {
56
- const model = textModel(choice, env);
57
- return { key: vectorModelKey(model), dims: model.dims, kind: "local", model: model.id };
58
- }
59
- if (!choice || typeof choice !== "object" || !choice.remote)
60
- throw new CliError("validation_error", "An explicit embedding model is required");
61
- const remote = validatedRemote(choice.remote);
62
- if (choice.concurrency !== void 0 && choice.concurrency !== 1)
63
- throw new CliError("validation_error", "Meeting embedding supports one remote request worker");
64
- return { key: remoteKey(remote), dims: remote.dims, kind: "remote", model: remote.model };
65
- }, "meetingEmbeddingModel");
66
- var createMeetingRemoteModel = /* @__PURE__ */ __name((input) => {
67
- try {
68
- return validatedRemote(remoteModel(input));
69
- } catch (error) {
70
- if (error instanceof CliError)
71
- throw error;
72
- throw new CliError("validation_error", "Invalid embedding endpoint");
73
- }
74
- }, "createMeetingRemoteModel");
75
- var withAbort = /* @__PURE__ */ __name(async (pending, signal) => {
76
- cancelled(signal);
77
- if (!signal)
78
- return pending;
79
- let onAbort = /* @__PURE__ */ __name(() => {
80
- }, "onAbort");
81
- const interrupted = new Promise((_, reject) => {
82
- onAbort = /* @__PURE__ */ __name(() => reject(new CliError("cancelled", "Meeting embedding was cancelled")), "onAbort");
83
- signal.addEventListener("abort", onAbort, { once: true });
84
- });
85
- try {
86
- return await Promise.race([pending, interrupted]);
87
- } finally {
88
- signal.removeEventListener("abort", onAbort);
89
- }
90
- }, "withAbort");
91
- var boundedResponse = /* @__PURE__ */ __name(async (response, maxBytes, signal) => {
92
- const length = response.headers.get("content-length");
93
- if (length !== null && (!/^\d+$/.test(length) || Number(length) > maxBytes)) {
94
- void response.body?.cancel().catch(() => {
95
- });
96
- throw new CliError("invalid_response", "Embedding response exceeds the byte budget");
97
- }
98
- if (!response.body)
99
- throw new CliError("invalid_response", "Embedding response has no body");
100
- const reader = response.body.getReader();
101
- const chunks = [];
102
- let bytes = 0;
103
- try {
104
- for (; ; ) {
105
- cancelled(signal);
106
- const part = await withAbort(reader.read(), signal);
107
- cancelled(signal);
108
- if (part.done)
109
- break;
110
- bytes += part.value.byteLength;
111
- if (bytes > maxBytes)
112
- throw new CliError("invalid_response", "Embedding response exceeds the byte budget");
113
- chunks.push(part.value);
114
- }
115
- const body = Buffer.concat(chunks, bytes).toString("utf8");
116
- try {
117
- return JSON.parse(body);
118
- } catch {
119
- throw new CliError("invalid_response", "Embedding response is not JSON");
120
- }
121
- } finally {
122
- void reader.cancel().catch(() => {
123
- });
124
- reader.releaseLock();
125
- }
126
- }, "boundedResponse");
127
- var openMeetingEmbedder = /* @__PURE__ */ __name(async (choice, options = {}) => {
128
- const descriptor = meetingEmbeddingModel(choice, options.env);
129
- const { signal } = options;
130
- cancelled(signal);
131
- const maxInputBytes = integer(options.maxInputBytes ?? 1024 * 1024, "input byte budget", 16 * 1024 * 1024);
132
- const maxResponseBytes = integer(options.maxResponseBytes ?? 8 * 1024 * 1024, "response byte budget", 64 * 1024 * 1024);
133
- if (options.threads !== void 0)
134
- integer(options.threads, "embedding threads", 128);
135
- let engine;
136
- let remoteFailure;
137
- if (typeof choice === "string") {
138
- const model = textModel(choice, options.env);
139
- const directory = options.directory ?? textModelsDirectory(options.env);
140
- if (!isTextModelInstalled(model, directory))
141
- throw new CliError("configuration_error", "The explicit local embedding model is not installed");
142
- engine = await openEmbedder(model, directory, {
143
- ...options.threads === void 0 ? {} : { threads: options.threads }
144
- });
145
- } else {
146
- const remote = validatedRemote(choice.remote);
147
- const key = choice.apiKey ?? (remote.provider === "openai" ? (options.env ?? process.env).OPENAI_API_KEY : void 0);
148
- if (remote.provider === "openai" && !key)
149
- throw new CliError("authentication_error", "The explicit remote embedding model requires an API key");
150
- const post = options.fetch ?? endpointFetch(remote.baseUrl, 12e4);
151
- const guarded = /* @__PURE__ */ __name(async (url, init) => {
152
- try {
153
- cancelled(signal);
154
- const responseTask = post(url, { ...init, redirect: "manual", ...signal ? { signal } : {} }).then((response2) => {
155
- if (signal?.aborted) {
156
- void response2.body?.cancel().catch(() => {
157
- });
158
- cancelled(signal);
159
- }
160
- return response2;
161
- });
162
- const response = await withAbort(responseTask, signal);
163
- if (signal?.aborted) {
164
- void response.body?.cancel().catch(() => {
165
- });
166
- cancelled(signal);
167
- }
168
- if (response.status >= 300 && response.status < 400) {
169
- void response.body?.cancel().catch(() => {
170
- });
171
- throw new CliError("invalid_response", "Embedding redirects are refused");
172
- }
173
- if (!response.ok) {
174
- void response.body?.cancel().catch(() => {
175
- });
176
- return new Response("{}", { status: response.status });
177
- }
178
- const body = await boundedResponse(response, maxResponseBytes, signal);
179
- if (!body || typeof body !== "object" || !("data" in body) || !Array.isArray(body.data) || body.data.length > 256)
180
- throw new CliError("invalid_response", "Embedding response lacks vector data");
181
- for (const entry of body.data) {
182
- if (!entry || typeof entry !== "object" || !Number.isSafeInteger(entry.index) || entry.index < 0 || !Array.isArray(entry.embedding) || entry.embedding.length !== remote.dims || entry.embedding.some((value) => typeof value !== "number" || !Number.isFinite(value) || !Number.isFinite(Math.fround(value))))
183
- throw new CliError("invalid_response", "Embedding response contains invalid vectors");
184
- }
185
- const indices = body.data.map((entry) => entry.index).sort((a, b) => a - b);
186
- if (indices.some((index, position) => index !== position))
187
- throw new CliError("invalid_response", "Embedding response contains invalid vector indices");
188
- return new Response(JSON.stringify({ data: body.data.map((entry) => ({ index: entry.index, embedding: entry.embedding })) }), { status: response.status });
189
- } catch (error) {
190
- remoteFailure = error;
191
- throw error;
192
- }
193
- }, "guarded");
194
- engine = openRemote(remote, key, { concurrency: 1, fetch: guarded, tries: 1, env: options.env ?? process.env });
195
- }
196
- if (signal?.aborted) {
197
- await engine.close();
198
- cancelled(signal);
199
- }
200
- let closed = false;
201
- let running = false;
202
- let active = null;
203
- let closing = null;
204
- return {
205
- ...descriptor,
206
- async embed(texts, kind) {
207
- cancelled(signal);
208
- if (closed)
209
- throw new CliError("configuration_error", "Meeting embedder is closed");
210
- if (!Array.isArray(texts) || texts.length > 1e3 || texts.some((text) => typeof text !== "string") || !["query", "passage"].includes(kind))
211
- throw new CliError("validation_error", "Invalid meeting embedding inputs");
212
- if (Buffer.byteLength(JSON.stringify(texts), "utf8") > maxInputBytes || texts.length * descriptor.dims * 4 > maxResponseBytes)
213
- throw new CliError("validation_error", "Meeting embedding input or vector payload exceeds its byte budget");
214
- if (running)
215
- throw new CliError("validation_error", "A meeting embedding request is already running");
216
- running = true;
217
- let settled = /* @__PURE__ */ __name(() => {
218
- }, "settled");
219
- active = new Promise((resolve) => {
220
- settled = resolve;
221
- });
222
- remoteFailure = void 0;
223
- try {
224
- const vectors = await engine.embed([...texts], kind);
225
- cancelled(signal);
226
- if (vectors.length !== texts.length || vectors.some((vector) => vector.length !== descriptor.dims || !vector.some((value) => value !== 0) || [...vector].some((value) => !Number.isFinite(value))))
227
- throw new CliError("invalid_response", "Meeting embedder returned invalid vectors");
228
- return vectors;
229
- } catch (error) {
230
- cancelled(signal);
231
- if (remoteFailure instanceof CliError)
232
- throw remoteFailure;
233
- if (error instanceof CliError)
234
- throw error;
235
- throw new CliError("provider_error", "Meeting embedding failed");
236
- } finally {
237
- running = false;
238
- settled();
239
- active = null;
240
- }
241
- },
242
- async close() {
243
- if (!closing) {
244
- closed = true;
245
- closing = (async () => {
246
- await active;
247
- await engine.close();
248
- })();
249
- }
250
- await closing;
251
- }
252
- };
253
- }, "openMeetingEmbedder");
254
-
255
- export {
256
- meetingEmbeddingModel,
257
- createMeetingRemoteModel,
258
- openMeetingEmbedder
259
- };