@wirecat/zoom-cli 0.82.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 (492) hide show
  1. package/README.md +12 -12
  2. package/contracts/wirecat.json +88 -55
  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 +2 -2
  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 +4 -17
  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-AF2Z6VOG.js +137 -0
  45. package/dist/bundle/{chunk-MAJJ4PG3.js → chunk-DAYBU7WR.js} +79 -396
  46. package/dist/bundle/{chunk-XQQVMECZ.js → chunk-JD63PEI3.js} +3 -8
  47. package/dist/bundle/{chunk-UL2PXLKT.js → chunk-L5ZYKXAY.js} +392 -129
  48. package/dist/bundle/{chunk-2SWKQ7C4.js → chunk-W4TDCCT3.js} +8 -2
  49. package/dist/bundle/{chunk-AC6VJNMJ.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-LXOL4N4S.js → folders-B2GKJOC2.js} +2 -7
  53. package/dist/bundle/{main-YAA7WQ23.js → main-YZPLPXB7.js} +21 -53
  54. package/dist/bundle/{output-file-2UB5JP3R.js → output-file-PKA7MJEP.js} +3 -11
  55. package/dist/bundle/{program-GVCGZP27.js → program-7JY6XJ6K.js} +714 -935
  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-YWFB367P.js → zoom-app-EYJST6GF.js} +4 -10
  62. package/dist/chat-file.d.ts +1 -1
  63. package/dist/chat-file.d.ts.map +1 -1
  64. package/dist/commands.d.ts +1 -8
  65. package/dist/commands.d.ts.map +1 -1
  66. package/dist/commands.js +3 -33
  67. package/dist/commands.js.map +1 -1
  68. package/dist/config-issues.d.ts +1 -1
  69. package/dist/config-issues.d.ts.map +1 -1
  70. package/dist/config-issues.js +1 -1
  71. package/dist/config-issues.js.map +1 -1
  72. package/dist/config.d.ts +1 -2
  73. package/dist/config.d.ts.map +1 -1
  74. package/dist/config.js +1 -2
  75. package/dist/config.js.map +1 -1
  76. package/dist/contacts-commands.d.ts +1 -1
  77. package/dist/contacts-commands.d.ts.map +1 -1
  78. package/dist/contacts-commands.js +1 -1
  79. package/dist/contacts-commands.js.map +1 -1
  80. package/dist/contract-overrides.js +1 -1
  81. package/dist/contract-overrides.js.map +1 -1
  82. package/dist/errors.d.ts +1 -1
  83. package/dist/errors.d.ts.map +1 -1
  84. package/dist/execution.d.ts +1 -1
  85. package/dist/execution.d.ts.map +1 -1
  86. package/dist/execution.js +1 -1
  87. package/dist/execution.js.map +1 -1
  88. package/dist/files.d.ts +2 -2
  89. package/dist/files.d.ts.map +1 -1
  90. package/dist/files.js +1 -1
  91. package/dist/files.js.map +1 -1
  92. package/dist/first-screen.js +1 -1
  93. package/dist/first-screen.js.map +1 -1
  94. package/dist/identity.d.ts +1 -1
  95. package/dist/identity.d.ts.map +1 -1
  96. package/dist/identity.js +6 -0
  97. package/dist/identity.js.map +1 -1
  98. package/dist/index.d.ts +1 -2
  99. package/dist/index.d.ts.map +1 -1
  100. package/dist/index.js +1 -2
  101. package/dist/index.js.map +1 -1
  102. package/dist/ingestion-search-commands.d.ts +1 -1
  103. package/dist/ingestion-search-commands.d.ts.map +1 -1
  104. package/dist/ingestion-search-commands.js +1 -1
  105. package/dist/ingestion-search-commands.js.map +1 -1
  106. package/dist/local-transcription-commands.d.ts +1 -1
  107. package/dist/local-transcription-commands.d.ts.map +1 -1
  108. package/dist/local-transcription-commands.js +1 -2
  109. package/dist/local-transcription-commands.js.map +1 -1
  110. package/dist/local-transcription.d.ts +1 -2
  111. package/dist/local-transcription.d.ts.map +1 -1
  112. package/dist/local-transcription.js +3 -3
  113. package/dist/local-transcription.js.map +1 -1
  114. package/dist/meeting-commands.d.ts +1 -1
  115. package/dist/meeting-commands.d.ts.map +1 -1
  116. package/dist/meeting-commands.js +1 -2
  117. package/dist/meeting-commands.js.map +1 -1
  118. package/dist/meeting-communications-binding.d.ts +1 -2
  119. package/dist/meeting-communications-binding.d.ts.map +1 -1
  120. package/dist/meeting-communications-binding.js.map +1 -1
  121. package/dist/meeting-context-commands.d.ts +1 -1
  122. package/dist/meeting-context-commands.d.ts.map +1 -1
  123. package/dist/meeting-context-commands.js +1 -1
  124. package/dist/meeting-context-commands.js.map +1 -1
  125. package/dist/meeting-context.d.ts +2 -4
  126. package/dist/meeting-context.d.ts.map +1 -1
  127. package/dist/meeting-context.js +1 -1
  128. package/dist/meeting-context.js.map +1 -1
  129. package/dist/meeting-integration-commands.d.ts +1 -1
  130. package/dist/meeting-integration-commands.d.ts.map +1 -1
  131. package/dist/meeting-integration-commands.js +1 -2
  132. package/dist/meeting-integration-commands.js.map +1 -1
  133. package/dist/meeting-integration.d.ts +1 -1
  134. package/dist/meeting-integration.d.ts.map +1 -1
  135. package/dist/meeting-integration.js +1 -1
  136. package/dist/meeting-integration.js.map +1 -1
  137. package/dist/meeting-inventory.d.ts +1 -1
  138. package/dist/meeting-inventory.d.ts.map +1 -1
  139. package/dist/meeting-inventory.js +1 -1
  140. package/dist/meeting-inventory.js.map +1 -1
  141. package/dist/meeting-preparation.d.ts +1 -2
  142. package/dist/meeting-preparation.d.ts.map +1 -1
  143. package/dist/meeting-preparation.js +1 -1
  144. package/dist/meeting-preparation.js.map +1 -1
  145. package/dist/meeting-project-candidates.d.ts +1 -1
  146. package/dist/meeting-project-candidates.d.ts.map +1 -1
  147. package/dist/meeting-project-evidence-commands.d.ts +1 -1
  148. package/dist/meeting-project-evidence-commands.d.ts.map +1 -1
  149. package/dist/meeting-project-evidence-commands.js +1 -2
  150. package/dist/meeting-project-evidence-commands.js.map +1 -1
  151. package/dist/meeting-read-command-bindings.js +1 -1
  152. package/dist/meeting-read-command-bindings.js.map +1 -1
  153. package/dist/meeting-review-commands.d.ts +1 -3
  154. package/dist/meeting-review-commands.d.ts.map +1 -1
  155. package/dist/meeting-review-commands.js +1 -2
  156. package/dist/meeting-review-commands.js.map +1 -1
  157. package/dist/meeting-search-commands.d.ts +2 -3
  158. package/dist/meeting-search-commands.d.ts.map +1 -1
  159. package/dist/meeting-search-commands.js +2 -4
  160. package/dist/meeting-search-commands.js.map +1 -1
  161. package/dist/meeting-searches-commands.d.ts +1 -2
  162. package/dist/meeting-searches-commands.d.ts.map +1 -1
  163. package/dist/meeting-searches-commands.js +1 -2
  164. package/dist/meeting-searches-commands.js.map +1 -1
  165. package/dist/meeting-selection-options.d.ts +1 -1
  166. package/dist/meeting-selection-options.d.ts.map +1 -1
  167. package/dist/meeting-selection-options.js +1 -2
  168. package/dist/meeting-selection-options.js.map +1 -1
  169. package/dist/meeting-semantic-commands.d.ts +1 -2
  170. package/dist/meeting-semantic-commands.d.ts.map +1 -1
  171. package/dist/meeting-semantic-commands.js +1 -1
  172. package/dist/meeting-semantic-commands.js.map +1 -1
  173. package/dist/meeting-semantic.d.ts +2 -2
  174. package/dist/meeting-semantic.d.ts.map +1 -1
  175. package/dist/meeting-semantic.js +1 -1
  176. package/dist/meeting-semantic.js.map +1 -1
  177. package/dist/meeting-source.d.ts +1 -1
  178. package/dist/meeting-source.d.ts.map +1 -1
  179. package/dist/meeting-stats-commands.d.ts +1 -3
  180. package/dist/meeting-stats-commands.d.ts.map +1 -1
  181. package/dist/meeting-stats-commands.js +1 -2
  182. package/dist/meeting-stats-commands.js.map +1 -1
  183. package/dist/models-commands.d.ts +1 -1
  184. package/dist/models-commands.d.ts.map +1 -1
  185. package/dist/models-commands.js +1 -1
  186. package/dist/models-commands.js.map +1 -1
  187. package/dist/occurrence-schedule.d.ts +1 -1
  188. package/dist/occurrence-schedule.d.ts.map +1 -1
  189. package/dist/permissions.d.ts +1 -1
  190. package/dist/permissions.d.ts.map +1 -1
  191. package/dist/permissions.js +1 -2
  192. package/dist/permissions.js.map +1 -1
  193. package/dist/profile.js +1 -1
  194. package/dist/profile.js.map +1 -1
  195. package/dist/program-bindings.d.ts.map +1 -1
  196. package/dist/program-bindings.js +3 -13
  197. package/dist/program-bindings.js.map +1 -1
  198. package/dist/program.d.ts +4 -7
  199. package/dist/program.d.ts.map +1 -1
  200. package/dist/program.js +1 -1
  201. package/dist/program.js.map +1 -1
  202. package/dist/progress-commands.d.ts +1 -1
  203. package/dist/progress-commands.d.ts.map +1 -1
  204. package/dist/progress-commands.js +1 -2
  205. package/dist/progress-commands.js.map +1 -1
  206. package/dist/read-only.js +1 -1
  207. package/dist/read-only.js.map +1 -1
  208. package/dist/recording-archive.d.ts.map +1 -1
  209. package/dist/recording-archive.js +1 -2
  210. package/dist/recording-archive.js.map +1 -1
  211. package/dist/recording-manifest.js +1 -1
  212. package/dist/recording-manifest.js.map +1 -1
  213. package/dist/recording-partial-store.d.ts +2 -3
  214. package/dist/recording-partial-store.d.ts.map +1 -1
  215. package/dist/recording-partial-store.js +1 -1
  216. package/dist/recording-partial-store.js.map +1 -1
  217. package/dist/recording-promotion-store.d.ts +1 -2
  218. package/dist/recording-promotion-store.d.ts.map +1 -1
  219. package/dist/recording-promotion-store.js +1 -2
  220. package/dist/recording-promotion-store.js.map +1 -1
  221. package/dist/recording-schedule-commands.d.ts +1 -1
  222. package/dist/recording-schedule-commands.d.ts.map +1 -1
  223. package/dist/recording-schedule-commands.js +1 -1
  224. package/dist/recording-schedule-commands.js.map +1 -1
  225. package/dist/recording-schedule-store.js +1 -1
  226. package/dist/recording-schedule-store.js.map +1 -1
  227. package/dist/recording-schedule-systemd.js +1 -1
  228. package/dist/recording-schedule-systemd.js.map +1 -1
  229. package/dist/recording-schedule.d.ts +1 -1
  230. package/dist/recording-schedule.d.ts.map +1 -1
  231. package/dist/recording-schedule.js +1 -1
  232. package/dist/recording-schedule.js.map +1 -1
  233. package/dist/recording-sync-store.d.ts +1 -1
  234. package/dist/recording-sync-store.d.ts.map +1 -1
  235. package/dist/recording-sync-store.js +1 -2
  236. package/dist/recording-sync-store.js.map +1 -1
  237. package/dist/recording-sync.d.ts +1 -1
  238. package/dist/recording-sync.d.ts.map +1 -1
  239. package/dist/recording-sync.js +1 -1
  240. package/dist/recording-sync.js.map +1 -1
  241. package/dist/recording-writer-lease.d.ts +1 -1
  242. package/dist/recording-writer-lease.d.ts.map +1 -1
  243. package/dist/recording-writer-lease.js +1 -1
  244. package/dist/recording-writer-lease.js.map +1 -1
  245. package/dist/recordings.d.ts +1 -1
  246. package/dist/recordings.d.ts.map +1 -1
  247. package/dist/recordings.js.map +1 -1
  248. package/dist/remote-meetings.d.ts +19 -19
  249. package/dist/remote-meetings.d.ts.map +1 -1
  250. package/dist/remote-meetings.js +1 -1
  251. package/dist/remote-meetings.js.map +1 -1
  252. package/dist/request-events.d.ts +1 -1
  253. package/dist/request-events.d.ts.map +1 -1
  254. package/dist/request-events.js +1 -1
  255. package/dist/request-events.js.map +1 -1
  256. package/dist/run-log.d.ts +1 -1
  257. package/dist/run-log.d.ts.map +1 -1
  258. package/dist/run-log.js +1 -1
  259. package/dist/run-log.js.map +1 -1
  260. package/dist/run.d.ts +1 -1
  261. package/dist/run.d.ts.map +1 -1
  262. package/dist/run.js +6 -2
  263. package/dist/run.js.map +1 -1
  264. package/dist/series-inventory.d.ts +2 -2
  265. package/dist/series-inventory.js +1 -1
  266. package/dist/series-inventory.js.map +1 -1
  267. package/dist/setup-commands.d.ts +6 -15
  268. package/dist/setup-commands.d.ts.map +1 -1
  269. package/dist/setup-commands.js +7 -142
  270. package/dist/setup-commands.js.map +1 -1
  271. package/dist/store-commands.d.ts +1 -1
  272. package/dist/store-commands.d.ts.map +1 -1
  273. package/dist/store-commands.js +1 -2
  274. package/dist/store-commands.js.map +1 -1
  275. package/dist/store-connection.d.ts +1 -3
  276. package/dist/store-connection.d.ts.map +1 -1
  277. package/dist/store-connection.js +14 -14
  278. package/dist/store-connection.js.map +1 -1
  279. package/dist/sync-progress.d.ts +4 -4
  280. package/dist/sync-progress.d.ts.map +1 -1
  281. package/dist/sync-progress.js +1 -1
  282. package/dist/sync-progress.js.map +1 -1
  283. package/dist/tokens.d.ts +20 -44
  284. package/dist/tokens.d.ts.map +1 -1
  285. package/dist/tokens.js +95 -308
  286. package/dist/tokens.js.map +1 -1
  287. package/dist/unified-search.d.ts +1 -1
  288. package/dist/unified-search.d.ts.map +1 -1
  289. package/dist/upcoming-meetings.d.ts +2 -2
  290. package/dist/upcoming-meetings.js +1 -1
  291. package/dist/upcoming-meetings.js.map +1 -1
  292. package/dist/upgrade.d.ts.map +1 -1
  293. package/dist/upgrade.js +1 -2
  294. package/dist/upgrade.js.map +1 -1
  295. package/dist/version.d.ts +1 -1
  296. package/dist/version.js +1 -1
  297. package/dist/watch-commands.d.ts +1 -2
  298. package/dist/watch-commands.d.ts.map +1 -1
  299. package/dist/watch-commands.js +1 -2
  300. package/dist/watch-commands.js.map +1 -1
  301. package/dist/watch-service.d.ts +1 -1
  302. package/dist/watch-service.d.ts.map +1 -1
  303. package/dist/watch-service.js +1 -1
  304. package/dist/watch-service.js.map +1 -1
  305. package/dist/zoom-app.d.ts +2 -2
  306. package/dist/zoom-app.d.ts.map +1 -1
  307. package/dist/zoom-app.js +2 -2
  308. package/dist/zoom-app.js.map +1 -1
  309. package/dist/zoom-search-commands.d.ts +1 -1
  310. package/dist/zoom-search-commands.d.ts.map +1 -1
  311. package/dist/zoom-search-commands.js +1 -1
  312. package/dist/zoom-search-commands.js.map +1 -1
  313. package/dist/zoom-session.d.ts +6 -0
  314. package/dist/zoom-session.d.ts.map +1 -0
  315. package/dist/zoom-session.js +72 -0
  316. package/dist/zoom-session.js.map +1 -0
  317. package/package.json +3 -3
  318. package/scenarios/person-in-meetings.md +1 -1
  319. package/skills/zoom-cli/SKILL.md +1 -1
  320. package/skills/zoom-cli/references/people-and-projects.md +5 -5
  321. package/skills/zoom-cli/references/prepare.md +2 -2
  322. package/skills/zoom-cli/references/setup.md +2 -2
  323. package/dist/bundle/agent-F4TRJWWS.js +0 -46
  324. package/dist/bundle/all-profiles-RULEKTDQ.js +0 -321
  325. package/dist/bundle/answer-policy-6XC57AEZ.js +0 -131
  326. package/dist/bundle/anthropic-4NAQBZFL.js +0 -91
  327. package/dist/bundle/app-server-VLR42U5L.js +0 -266
  328. package/dist/bundle/bun-OPDGMZZQ.js +0 -169
  329. package/dist/bundle/bun-sqlite-HC6X4AOX.js +0 -76
  330. package/dist/bundle/chunk-274SLQNW.js +0 -54
  331. package/dist/bundle/chunk-2CI2OEZQ.js +0 -101
  332. package/dist/bundle/chunk-2DBF2IIC.js +0 -330
  333. package/dist/bundle/chunk-2GP573Q4.js +0 -67190
  334. package/dist/bundle/chunk-2JHVQMVC.js +0 -16
  335. package/dist/bundle/chunk-2XBDILVW.js +0 -53
  336. package/dist/bundle/chunk-3HC5F3P7.js +0 -24
  337. package/dist/bundle/chunk-3YM4B2GT.js +0 -63
  338. package/dist/bundle/chunk-4HLQ2JGK.js +0 -276
  339. package/dist/bundle/chunk-4N7PP76S.js +0 -6848
  340. package/dist/bundle/chunk-52Y4ETKU.js +0 -230
  341. package/dist/bundle/chunk-5HAUK3I4.js +0 -27160
  342. package/dist/bundle/chunk-5KYQ53EF.js +0 -357
  343. package/dist/bundle/chunk-5TU7Y5UW.js +0 -218
  344. package/dist/bundle/chunk-66ALX4ZI.js +0 -1068
  345. package/dist/bundle/chunk-676C2LE6.js +0 -229
  346. package/dist/bundle/chunk-6CWL5BKG.js +0 -3012
  347. package/dist/bundle/chunk-6QYZP4E2.js +0 -73
  348. package/dist/bundle/chunk-6VK332XS.js +0 -170
  349. package/dist/bundle/chunk-73MOMNLL.js +0 -94
  350. package/dist/bundle/chunk-7QPIUMUG.js +0 -198
  351. package/dist/bundle/chunk-7UVDPRFK.js +0 -259
  352. package/dist/bundle/chunk-A6EZK5RG.js +0 -142
  353. package/dist/bundle/chunk-ACI4YIEH.js +0 -331
  354. package/dist/bundle/chunk-AIKFOBDO.js +0 -1024
  355. package/dist/bundle/chunk-ASBDFXLS.js +0 -295
  356. package/dist/bundle/chunk-B32KZRQM.js +0 -2338
  357. package/dist/bundle/chunk-BBGJQMRI.js +0 -34
  358. package/dist/bundle/chunk-BDKVOU3I.js +0 -52
  359. package/dist/bundle/chunk-BP4FYANF.js +0 -335
  360. package/dist/bundle/chunk-D72URWJE.js +0 -532
  361. package/dist/bundle/chunk-DCYFT3FR.js +0 -161
  362. package/dist/bundle/chunk-DFDN6AUB.js +0 -21
  363. package/dist/bundle/chunk-DNCLQPOM.js +0 -7
  364. package/dist/bundle/chunk-DSZYABYL.js +0 -808
  365. package/dist/bundle/chunk-E745WZKY.js +0 -1199
  366. package/dist/bundle/chunk-EGTCQKHV.js +0 -340
  367. package/dist/bundle/chunk-EQG3PIH2.js +0 -108
  368. package/dist/bundle/chunk-ESN3W2MZ.js +0 -2624
  369. package/dist/bundle/chunk-FXBHOCJK.js +0 -24600
  370. package/dist/bundle/chunk-G46WJ7YO.js +0 -95
  371. package/dist/bundle/chunk-G6PETRMV.js +0 -64
  372. package/dist/bundle/chunk-GBHMT2IU.js +0 -755
  373. package/dist/bundle/chunk-GGMAIIVE.js +0 -38
  374. package/dist/bundle/chunk-GTKPMYK7.js +0 -72
  375. package/dist/bundle/chunk-GWGHH56B.js +0 -374
  376. package/dist/bundle/chunk-HC6VN5CO.js +0 -692
  377. package/dist/bundle/chunk-HP7A2ZOP.js +0 -185
  378. package/dist/bundle/chunk-HTQTIKWP.js +0 -928
  379. package/dist/bundle/chunk-HZENBDW2.js +0 -209
  380. package/dist/bundle/chunk-IANKXHSE.js +0 -46
  381. package/dist/bundle/chunk-ICPJT672.js +0 -228
  382. package/dist/bundle/chunk-JQ54DYAQ.js +0 -80
  383. package/dist/bundle/chunk-K5JGJIV2.js +0 -640
  384. package/dist/bundle/chunk-KJ6USQDZ.js +0 -616
  385. package/dist/bundle/chunk-KKFY23AK.js +0 -5150
  386. package/dist/bundle/chunk-KQPUVXKX.js +0 -84
  387. package/dist/bundle/chunk-KVJ3I7UL.js +0 -1007
  388. package/dist/bundle/chunk-KWU46LNK.js +0 -288
  389. package/dist/bundle/chunk-KXJ3JEDH.js +0 -2
  390. package/dist/bundle/chunk-L75SMSJR.js +0 -133
  391. package/dist/bundle/chunk-LAYYO4WD.js +0 -31
  392. package/dist/bundle/chunk-LEKKTJKK.js +0 -2336
  393. package/dist/bundle/chunk-M7H4MCAX.js +0 -388
  394. package/dist/bundle/chunk-MQLPZBMQ.js +0 -58
  395. package/dist/bundle/chunk-N3JLO63O.js +0 -13
  396. package/dist/bundle/chunk-N46F72AF.js +0 -410
  397. package/dist/bundle/chunk-NB7EOAUZ.js +0 -123
  398. package/dist/bundle/chunk-NEMX3UNN.js +0 -76
  399. package/dist/bundle/chunk-OBXQLFT5.js +0 -82
  400. package/dist/bundle/chunk-OGNO35A2.js +0 -262
  401. package/dist/bundle/chunk-OIPYBF43.js +0 -100
  402. package/dist/bundle/chunk-OO4TRVPB.js +0 -185
  403. package/dist/bundle/chunk-OQFQ77AY.js +0 -9352
  404. package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
  405. package/dist/bundle/chunk-PMUPN6JW.js +0 -773
  406. package/dist/bundle/chunk-PSKTMMCO.js +0 -561
  407. package/dist/bundle/chunk-PWVJUIDQ.js +0 -106
  408. package/dist/bundle/chunk-Q7ICVP25.js +0 -18
  409. package/dist/bundle/chunk-QG6PILDO.js +0 -195
  410. package/dist/bundle/chunk-QPHBK63S.js +0 -25
  411. package/dist/bundle/chunk-QVSL5WJ7.js +0 -46524
  412. package/dist/bundle/chunk-QVYAV7F2.js +0 -58
  413. package/dist/bundle/chunk-R2B6PUVI.js +0 -206
  414. package/dist/bundle/chunk-RQOZBTNI.js +0 -86
  415. package/dist/bundle/chunk-T7IAWEBU.js +0 -362
  416. package/dist/bundle/chunk-TKNM22OH.js +0 -71
  417. package/dist/bundle/chunk-TKVBFJ5C.js +0 -37
  418. package/dist/bundle/chunk-TXDR6YSF.js +0 -23
  419. package/dist/bundle/chunk-TY7NDMFY.js +0 -46
  420. package/dist/bundle/chunk-UAWSINMC.js +0 -875
  421. package/dist/bundle/chunk-UKAAAOPC.js +0 -1251
  422. package/dist/bundle/chunk-UQCTXZEP.js +0 -214
  423. package/dist/bundle/chunk-UR5DBODY.js +0 -1345
  424. package/dist/bundle/chunk-V5EJSF2B.js +0 -12235
  425. package/dist/bundle/chunk-VB72LTSZ.js +0 -210
  426. package/dist/bundle/chunk-VB7FZOYX.js +0 -633
  427. package/dist/bundle/chunk-VS6WURLX.js +0 -217
  428. package/dist/bundle/chunk-VZ5PPYDG.js +0 -77
  429. package/dist/bundle/chunk-W5QHB53X.js +0 -3752
  430. package/dist/bundle/chunk-WMANRJR5.js +0 -555
  431. package/dist/bundle/chunk-WOPVBRPV.js +0 -29
  432. package/dist/bundle/chunk-XQ2WL3HB.js +0 -140
  433. package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
  434. package/dist/bundle/chunk-Y6PVS55U.js +0 -800
  435. package/dist/bundle/chunk-YJXJJ2XP.js +0 -2333
  436. package/dist/bundle/chunk-YY7XKHDY.js +0 -79
  437. package/dist/bundle/chunk-ZED2CJW5.js +0 -353
  438. package/dist/bundle/chunk-ZOYOXWJB.js +0 -746
  439. package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
  440. package/dist/bundle/cli-U4O5XB7J.js +0 -1255
  441. package/dist/bundle/command-contract-FBTK6GQX.js +0 -45
  442. package/dist/bundle/command-server-entry-KKH6ZWJV.js +0 -175
  443. package/dist/bundle/config-FRJSIZNN.js +0 -118
  444. package/dist/bundle/decode-TPCNXEK4.js +0 -31
  445. package/dist/bundle/dispatch-FKMIPCPQ.js +0 -412
  446. package/dist/bundle/dist-7CLBCYZN.js +0 -321
  447. package/dist/bundle/dist-PAKDDIBT.js +0 -191
  448. package/dist/bundle/dist-XUFQCJXW.js +0 -7577
  449. package/dist/bundle/echarts-O3TNDAXJ.js +0 -42501
  450. package/dist/bundle/embed-WCJSFVSK.js +0 -38
  451. package/dist/bundle/embedder-TBBUPXBX.js +0 -111
  452. package/dist/bundle/failure-XTWBYI2A.js +0 -25
  453. package/dist/bundle/first-run-ELEMFW42.js +0 -29
  454. package/dist/bundle/first-screen-DIOBWMKP.js +0 -46
  455. package/dist/bundle/instructions-AMH5RWVJ.js +0 -11
  456. package/dist/bundle/mcp-5HFPWC3W.js +0 -167
  457. package/dist/bundle/meeting-combined-UXCF4SJ3.js +0 -26
  458. package/dist/bundle/meeting-model-3BZJ3EQP.js +0 -26
  459. package/dist/bundle/meeting-semantic-3HU7I2SJ.js +0 -23
  460. package/dist/bundle/meetings-XWMB6FOH.js +0 -332
  461. package/dist/bundle/node-EGMCBAO7.js +0 -176
  462. package/dist/bundle/node-KM3CUABH.js +0 -2340
  463. package/dist/bundle/node-TLZSIHIJ.js +0 -21
  464. package/dist/bundle/node-sqlite-IJBWENFX.js +0 -74
  465. package/dist/bundle/oauth-SZDDAP7A.js +0 -20
  466. package/dist/bundle/open-NS3TMKZX.js +0 -23
  467. package/dist/bundle/openai-4DN6WI3B.js +0 -28
  468. package/dist/bundle/process-SGHEN6MQ.js +0 -91
  469. package/dist/bundle/prompt-HJFMPFVC.js +0 -17
  470. package/dist/bundle/public-C2ZB2AGQ.js +0 -198
  471. package/dist/bundle/recognize-2SEI5PPM.js +0 -26
  472. package/dist/bundle/remote-2DMS74XE.js +0 -32
  473. package/dist/bundle/rerank-H6GCYVIA.js +0 -52
  474. package/dist/bundle/run-log-QU26SUZP.js +0 -145
  475. package/dist/bundle/serve-ODVRPFJO.js +0 -199
  476. package/dist/bundle/server-NBPF6IDZ.js +0 -95
  477. package/dist/bundle/server-PCLIO24L.js +0 -228
  478. package/dist/bundle/services-4QAPXBLO.js +0 -607
  479. package/dist/bundle/speech-MA6ZT3WE.js +0 -89
  480. package/dist/bundle/sqlite-runtime-PVMAUXRN.js +0 -20
  481. package/dist/bundle/state-QFMTYUME.js +0 -36
  482. package/dist/bundle/store-25OTAQC3.js +0 -187
  483. package/dist/bundle/store-F724QIKJ.js +0 -305
  484. package/dist/bundle/store-connection-OGPXANGB.js +0 -111
  485. package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +0 -83
  486. package/dist/bundle/streaming-S22C4DG5.js +0 -18
  487. package/dist/bundle/surface-7PXHWCF6.js +0 -81
  488. package/dist/bundle/tokens-NLUHA2DW.js +0 -25
  489. package/dist/login.d.ts +0 -16
  490. package/dist/login.d.ts.map +0 -1
  491. package/dist/login.js +0 -98
  492. package/dist/login.js.map +0 -1
@@ -3,63 +3,48 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  profileAccountKey,
5
5
  profilePattern
6
- } from "./chunk-MAJJ4PG3.js";
6
+ } from "./chunk-DAYBU7WR.js";
7
7
  import {
8
- checkCancelled
9
- } from "./chunk-434YFJAE.js";
10
- import {
11
- openWavAudio,
12
- preflightWavAudio
13
- } from "./chunk-VS6WURLX.js";
14
- import {
15
- pagingOf
16
- } from "./chunk-ZED2CJW5.js";
17
- import {
18
- createMeetingSearchCommand,
19
- meetingHitSearchRequest,
20
- meetingSearchArguments,
21
- meetingSearchMeta
22
- } from "./chunk-GBHMT2IU.js";
8
+ array,
9
+ boolean,
10
+ integer,
11
+ isoTimestamp,
12
+ literal,
13
+ minLength,
14
+ minValue,
15
+ nullable,
16
+ number,
17
+ optional,
18
+ picklist,
19
+ pipe,
20
+ record,
21
+ safeParse,
22
+ strictObject,
23
+ string,
24
+ union
25
+ } from "./chunk-3YDF76DP.js";
23
26
  import {
24
- Command,
25
- FETCH,
26
- LOCAL_READ,
27
- NO_EFFECTS,
28
- annotate,
29
- answerSchema,
30
- itemOf,
31
- listOf,
32
- metaNow,
33
- metaOf,
34
- overrideSharedContract,
35
- parseDuration
36
- } from "./chunk-V5EJSF2B.js";
37
- import {
38
- canonicalMeetingReference,
39
- meetingHitsList,
40
- parseMeetingReference,
41
- validateMeetingContextChange,
42
- validateMeetingHitSearch
43
- } from "./chunk-KKFY23AK.js";
44
- import {
45
- createOutputBuffer
46
- } from "./chunk-6CWL5BKG.js";
47
- import {
48
- CliError,
49
- isCliError
50
- } from "./chunk-IANKXHSE.js";
27
+ checkCancelled
28
+ } from "./chunk-WSGD5Q6L.js";
51
29
  import {
52
30
  __name
53
- } from "./chunk-ZVVMGPBJ.js";
31
+ } from "./chunk-AEWYRB6F.js";
32
+
33
+ // dist/store-connection.js
34
+ import { CliError as CliError12, isCliError } from "@wirecat/cli-base";
35
+ import { validateMeetingContextChange } from "@wirecat/cli-core";
54
36
 
55
37
  // dist/local-transcription.js
56
38
  import { isAbsolute } from "node:path";
39
+ import { CliError as CliError2 } from "@wirecat/cli-base";
40
+ import { openWavAudio, preflightWavAudio } from "@wirecat/cli-core";
57
41
 
58
42
  // dist/media-decode.js
59
43
  import { execFile } from "node:child_process";
60
44
  import { mkdtemp, open, rm } from "node:fs/promises";
61
45
  import { tmpdir } from "node:os";
62
46
  import { join } from "node:path";
47
+ import { CliError } from "@wirecat/cli-base";
63
48
  var readyWav = /* @__PURE__ */ __name(async (file) => {
64
49
  const handle = await open(file, "r").catch(() => {
65
50
  throw new CliError("not_found", "the audio or video file could not be opened");
@@ -113,9 +98,9 @@ var wavFor = /* @__PURE__ */ __name(async (file, options = {}) => {
113
98
  var validateLocalTranscriptionOptions = /* @__PURE__ */ __name((input) => {
114
99
  const options = { ...input };
115
100
  if (typeof options.model !== "string" || !options.model.trim() || options.model.length > 200 || /[\0\r\n]/.test(options.model))
116
- throw new CliError("validation_error", "local transcription requires an explicit speech model");
101
+ throw new CliError2("validation_error", "local transcription requires an explicit speech model");
117
102
  if (options.modelsDirectory !== void 0 && (typeof options.modelsDirectory !== "string" || !isAbsolute(options.modelsDirectory) || options.modelsDirectory.length > 4096 || /[\0\r\n]/.test(options.modelsDirectory)))
118
- throw new CliError("validation_error", "speech model directory must be an absolute bounded path");
103
+ throw new CliError2("validation_error", "speech model directory must be an absolute bounded path");
119
104
  for (const [value, max, label] of [
120
105
  [options.maxBytes, 4 * 1024 ** 3, "media bytes"],
121
106
  [options.maxDurationMs, 24 * 36e5, "media duration"],
@@ -123,16 +108,16 @@ var validateLocalTranscriptionOptions = /* @__PURE__ */ __name((input) => {
123
108
  [options.maxTextBytes, 64 * 1024 ** 2, "transcript text bytes"]
124
109
  ])
125
110
  if (value !== void 0 && (!Number.isSafeInteger(value) || value < 1 || value > max))
126
- throw new CliError("validation_error", `invalid ${label} budget`);
111
+ throw new CliError2("validation_error", `invalid ${label} budget`);
127
112
  for (const value of [options.apply, options.dryRun])
128
113
  if (value !== void 0 && typeof value !== "boolean")
129
- throw new CliError("validation_error", "transcription apply and dry-run options must be booleans");
114
+ throw new CliError2("validation_error", "transcription apply and dry-run options must be booleans");
130
115
  return options;
131
116
  }, "validateLocalTranscriptionOptions");
132
117
  var compactLocalTranscriptionReceipt = /* @__PURE__ */ __name((receipt) => {
133
118
  const append = receipt.append;
134
119
  if (!receipt.applied || !append || !Number.isSafeInteger(append.meeting.meeting.id) || append.meeting.meeting.id < 1)
135
- throw new CliError("outcome_unknown", "transcription did not return a usable committed acknowledgement");
120
+ throw new CliError2("outcome_unknown", "transcription did not return a usable committed acknowledgement");
136
121
  return {
137
122
  applied: true,
138
123
  accountId: receipt.accountId,
@@ -156,11 +141,11 @@ var engineFailure = /* @__PURE__ */ __name(async (model, work) => {
156
141
  } catch (error) {
157
142
  if (error instanceof Error)
158
143
  throw error;
159
- throw new CliError("configuration_error", `the speech engine could not run ${model}; \`zm models download ${model}\` checks its files and repairs them`);
144
+ throw new CliError2("configuration_error", `the speech engine could not run ${model}; \`zm models download ${model}\` checks its files and repairs them`);
160
145
  }
161
146
  }, "engineFailure");
162
147
  var loadSpeech = /* @__PURE__ */ __name(async () => {
163
- const speech = await import("./speech-MA6ZT3WE.js");
148
+ const speech = await import("@wirecat/cli-core");
164
149
  return { describe: speech.localSpeechRecognitionModel, open: speech.openLocalSpeechRecognizer };
165
150
  }, "loadSpeech");
166
151
  var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
@@ -187,7 +172,7 @@ var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
187
172
  },
188
173
  async *segments(media, context) {
189
174
  if (!plan || !recognition || !speech || media.contentHash !== plan.media.contentHash || media.id !== plan.media.id || media.size !== plan.media.size || media.durationMs !== plan.media.durationMs || media.recognition.engine !== recognition.engine || media.recognition.model !== recognition.model || media.recognition.version !== recognition.version)
190
- throw new CliError("validation_error", "transcription media descriptor does not match its prepared audio and model");
175
+ throw new CliError2("validation_error", "transcription media descriptor does not match its prepared audio and model");
191
176
  const audio = await openWavAudio(plan, context);
192
177
  let model;
193
178
  try {
@@ -200,13 +185,13 @@ var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
200
185
  signal: context.signal
201
186
  }));
202
187
  if (model.engine !== recognition.engine || model.model !== recognition.model || model.version !== recognition.version)
203
- throw new CliError("validation_error", "installed speech recognizer changed after the media preview");
188
+ throw new CliError2("validation_error", "installed speech recognizer changed after the media preview");
204
189
  for await (const window of audio.windows()) {
205
190
  checkCancelled(context.signal);
206
191
  const recognizer = model;
207
- const text = await engineFailure(recognition.model, () => recognizer.recognize(window.samples, { signal: context.signal }));
192
+ const text2 = await engineFailure(recognition.model, () => recognizer.recognize(window.samples, { signal: context.signal }));
208
193
  checkCancelled(context.signal);
209
- yield { startMs: window.startMs, endMs: window.endMs, text };
194
+ yield { startMs: window.startMs, endMs: window.endMs, text: text2 };
210
195
  }
211
196
  } finally {
212
197
  try {
@@ -221,7 +206,7 @@ var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
221
206
  var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input = {}) => {
222
207
  const accountId = store.accountId;
223
208
  if (!Number.isSafeInteger(accountId) || accountId < 1)
224
- throw new CliError("validation_error", "local transcription requires a selected existing account");
209
+ throw new CliError2("validation_error", "local transcription requires a selected existing account");
225
210
  const options = { ...input, ...input.env ? { env: { ...input.env } } : {} };
226
211
  const resolveMeeting = store.resolveMeeting.bind(store);
227
212
  const appendTranscriptsWithReceipt = store.appendTranscriptsWithReceipt.bind(store);
@@ -236,7 +221,7 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
236
221
  externalId: resolved.externalId
237
222
  };
238
223
  if (!found || found.accountId !== accountId || !Number.isSafeInteger(found.meetingId) || found.meetingId < 1 || typeof found.externalId !== "string" || !found.externalId.trim())
239
- throw new CliError("not_found", "meeting was not found in the selected account");
224
+ throw new CliError2("not_found", "meeting was not found in the selected account");
240
225
  const target = Object.freeze({ accountId, externalId: found.externalId, now: options.now?.() ?? Date.now() });
241
226
  const audio = await wavFor(file, { signal: request.signal });
242
227
  try {
@@ -246,11 +231,11 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
246
231
  env: options.env,
247
232
  speech: options.speech
248
233
  });
249
- const { transcribeMeeting } = await import("./meetings-XWMB6FOH.js");
234
+ const { transcribeMeeting } = await import("@wirecat/cli-core");
250
235
  return await transcribeMeeting(source, {
251
236
  appendTranscriptsWithReceipt(value) {
252
237
  if (value.accountId !== accountId || value.externalId !== target.externalId)
253
- throw new CliError("validation_error", "transcription append must retain its selected target");
238
+ throw new CliError2("validation_error", "transcription append must retain its selected target");
254
239
  return appendTranscriptsWithReceipt(value);
255
240
  }
256
241
  }, target, request);
@@ -262,35 +247,36 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
262
247
  }, "createLocalTranscriptionCapabilities");
263
248
 
264
249
  // dist/meeting-context.js
265
- var integer = /* @__PURE__ */ __name((value, min, max) => Number.isSafeInteger(value) && value >= min && value <= max, "integer");
250
+ import { CliError as CliError3 } from "@wirecat/cli-base";
251
+ var integer2 = /* @__PURE__ */ __name((value, min, max) => Number.isSafeInteger(value) && value >= min && value <= max, "integer");
266
252
  var validateEvidenceOptions = /* @__PURE__ */ __name((options = {}) => {
267
- if (!integer(options.cues ?? 100, 1, 1e3) || !integer(options.bytes ?? 65536, 2, 4194304) || !integer(options.maxReadBytes ?? 4194304, 1, 67108864) || !integer(options.maxTranscriptPages ?? 100, 1, 1e3) || options.afterTranscriptId !== void 0 && !integer(options.afterTranscriptId, 1, Number.MAX_SAFE_INTEGER) || options.after !== void 0 && options.afterTranscriptId !== void 0 || options.after !== void 0 && (typeof options.after !== "string" || !options.after.trim()))
268
- throw new CliError("validation_error", "meeting evidence requires 1\u20131000 cues and 2\u20134194304 bytes");
253
+ if (!integer2(options.cues ?? 100, 1, 1e3) || !integer2(options.bytes ?? 65536, 2, 4194304) || !integer2(options.maxReadBytes ?? 4194304, 1, 67108864) || !integer2(options.maxTranscriptPages ?? 100, 1, 1e3) || options.afterTranscriptId !== void 0 && !integer2(options.afterTranscriptId, 1, Number.MAX_SAFE_INTEGER) || options.after !== void 0 && options.afterTranscriptId !== void 0 || options.after !== void 0 && (typeof options.after !== "string" || !options.after.trim()))
254
+ throw new CliError3("validation_error", "meeting evidence requires 1\u20131000 cues and 2\u20134194304 bytes");
269
255
  }, "validateEvidenceOptions");
270
256
  var validatePersonContext = /* @__PURE__ */ __name((person, options = {}) => {
271
257
  validateEvidenceOptions(options);
272
- if (typeof person !== "string" || !/^person:[1-9]\d*$/.test(person) || !integer(Number(person.slice(7)), 1, Number.MAX_SAFE_INTEGER) || !integer(options.meetings ?? 10, 1, 100) || !integer(options.scanLimit ?? 1e3, 1, 1e3) || options.since !== void 0 && !Number.isSafeInteger(options.since))
273
- throw new CliError("validation_error", "person meeting context requires person:<positive ID> and valid bounded limits");
258
+ if (typeof person !== "string" || !/^person:[1-9]\d*$/.test(person) || !integer2(Number(person.slice(7)), 1, Number.MAX_SAFE_INTEGER) || !integer2(options.meetings ?? 10, 1, 100) || !integer2(options.scanLimit ?? 1e3, 1, 1e3) || options.since !== void 0 && !Number.isSafeInteger(options.since))
259
+ throw new CliError3("validation_error", "person meeting context requires person:<positive ID> and valid bounded limits");
274
260
  }, "validatePersonContext");
275
261
  var validateTaskKind = /* @__PURE__ */ __name((kind) => {
276
262
  if (!["question", "request", "mention", "promise"].includes(kind))
277
- throw new CliError("validation_error", "task kind must be question, request, mention or promise");
263
+ throw new CliError3("validation_error", "task kind must be question, request, mention or promise");
278
264
  return kind;
279
265
  }, "validateTaskKind");
280
266
  var validateTaskProposal = /* @__PURE__ */ __name((value) => {
281
267
  if (typeof value !== "object" || value === null || !("applied" in value) || value.applied !== false || !("persistence" in value) || value.persistence !== "proposal-only")
282
- throw new CliError("invalid_response", "task proposal must be unapplied and proposal-only");
268
+ throw new CliError3("invalid_response", "task proposal must be unapplied and proposal-only");
283
269
  }, "validateTaskProposal");
284
270
  var loadProducer = /* @__PURE__ */ __name(async () => {
285
- const [domain, services] = await Promise.all([import("./dist-7CLBCYZN.js"), import("./services-4QAPXBLO.js")]);
271
+ const [domain, services] = await Promise.all([import("@wirecat/cli-core"), import("@wirecat/cli-core")]);
286
272
  return { ...services, ...domain };
287
273
  }, "loadProducer");
288
274
  var createMeetingContextCapabilities = /* @__PURE__ */ __name((store, meetings, accountId, load = loadProducer) => {
289
- if (!integer(accountId, 1, Number.MAX_SAFE_INTEGER))
290
- throw new CliError("validation_error", "meeting context requires a selected positive account ID");
275
+ if (!integer2(accountId, 1, Number.MAX_SAFE_INTEGER))
276
+ throw new CliError3("validation_error", "meeting context requires a selected positive account ID");
291
277
  const ownedReference = /* @__PURE__ */ __name((api, reference) => {
292
278
  if (api.parseMeetingReference(reference).accountId !== accountId)
293
- throw new CliError("not_found", "meeting reference is unavailable for the selected account");
279
+ throw new CliError3("not_found", "meeting reference is unavailable for the selected account");
294
280
  return api.canonicalMeetingReference(reference);
295
281
  }, "ownedReference");
296
282
  return {
@@ -358,32 +344,298 @@ var createMeetingContextCapabilities = /* @__PURE__ */ __name((store, meetings,
358
344
  }, "createMeetingContextCapabilities");
359
345
 
360
346
  // dist/meeting-integration.js
347
+ import { CliError as CliError4 } from "@wirecat/cli-base";
348
+ import { canonicalMeetingReference, parseMeetingReference } from "@wirecat/cli-core";
361
349
  var integrationReference = /* @__PURE__ */ __name((reference) => {
362
350
  const parsed = parseMeetingReference(reference);
363
351
  if (parsed.transcriptId !== void 0)
364
- throw new CliError("validation_error", "this operation requires a root meeting reference");
352
+ throw new CliError4("validation_error", "this operation requires a root meeting reference");
365
353
  return { parsed, reference: canonicalMeetingReference(reference) };
366
354
  }, "integrationReference");
367
355
 
356
+ // dist/meeting-search-commands.js
357
+ import { CliError as CliError9 } from "@wirecat/cli-base";
358
+ import { annotate as annotate3 } from "@wirecat/cli-base/commands";
359
+ import { createMeetingSearchCommand, FETCH as FETCH2, LOCAL_READ, listOf as listOf2, meetingHitSearchRequest, meetingHitsList, meetingSearchArguments, meetingSearchMeta, NO_EFFECTS, overrideSharedContract, pagingOf } from "@wirecat/cli-core";
360
+ import { Command } from "commander";
361
+
362
+ // dist/execution.js
363
+ import { CliError as CliError7, createOutputBuffer } from "@wirecat/cli-base";
364
+ import { metaOf as metaOf2 } from "@wirecat/cli-base/commands";
365
+ import { parseDuration } from "@wirecat/cli-core";
366
+
368
367
  // dist/answers.js
369
368
  import { randomUUID } from "node:crypto";
370
- var answerSchema2 = answerSchema();
369
+ import { CliError as CliError6 } from "@wirecat/cli-base";
370
+ import { metaNow as metaNow2, runnable, answerSchema as sharedAnswerSchema } from "@wirecat/cli-core";
371
+
372
+ // dist/answer-output.js
373
+ import { createRenderer, exitCodeOfAnswer, projectFields } from "@wirecat/cli-base";
374
+ import { metaOf } from "@wirecat/cli-base/commands";
375
+ import { itemOf, listOf, metaNow, renderAnswer, snakeKeys } from "@wirecat/cli-core";
376
+
377
+ // dist/answer-entities.js
378
+ import { CliError as CliError5 } from "@wirecat/cli-base";
379
+ import { annotate } from "@wirecat/cli-base/commands";
380
+ import { answerEntity, MEETING_RESULT_ENTITIES, meetingResultItem } from "@wirecat/cli-core";
381
+ var text = string();
382
+ var identifier = pipe(text, minLength(1));
383
+ var nullableText = nullable(text);
384
+ var count = pipe(number(), integer(), minValue(0));
385
+ var flag = boolean();
386
+ var optionalCount = optional(count);
387
+ var scope = strictObject({ provider: text, account: text });
388
+ var asset = strictObject({
389
+ id: nullableText,
390
+ type: text,
391
+ format: nullableText,
392
+ size: nullable(count),
393
+ status: text,
394
+ available: flag,
395
+ started_at: nullableText,
396
+ ended_at: nullableText
397
+ });
398
+ var occurrence = strictObject({ id: text, uuid: text, title: nullableText, started_at: nullableText });
399
+ var recording = strictObject({ ...occurrence.entries, assets: array(asset) });
400
+ var archivedFile = strictObject({
401
+ id: text,
402
+ path: text,
403
+ size: count,
404
+ sha256: text,
405
+ remote_size: nullable(count),
406
+ type: text,
407
+ format: nullableText,
408
+ started_at: nullableText,
409
+ ended_at: nullableText
410
+ });
411
+ var archive = strictObject({
412
+ uuid: text,
413
+ manifest_path: text,
414
+ downloaded: array(archivedFile),
415
+ skipped: array(archivedFile),
416
+ unavailable: array(asset)
417
+ });
418
+ var manifest = strictObject({ version: literal(1), meeting: occurrence, files: array(archivedFile) });
419
+ var lock = strictObject({
420
+ name: text,
421
+ status: picklist(["active", "stale", "foreign", "unrecognized"]),
422
+ pid: nullable(count),
423
+ host: nullableText
424
+ });
425
+ var archiveReceipt = strictObject({
426
+ window: strictObject({ from: text, to: text }),
427
+ meeting: strictObject({ id: text, uuid: text, title: nullableText }),
428
+ archive,
429
+ availability: optional(literal("unknown")),
430
+ checkpoint_revision: optional(nullable(count))
431
+ });
432
+ var schedule = strictObject({
433
+ version: literal(1),
434
+ id: text,
435
+ name: text,
436
+ scope,
437
+ destination: text,
438
+ from: text,
439
+ daily_at: text,
440
+ time_zone: text,
441
+ lookback_days: count,
442
+ max_bytes: count,
443
+ created_at: pipe(text, isoTimestamp())
444
+ });
445
+ var job = strictObject({
446
+ version: literal(1),
447
+ schedule,
448
+ capture: strictObject({ profile: text, client_id: text, config_dir: text, runtime: text, cli_path: text }),
449
+ state: picklist(["pending", "enabled", "disabled"])
450
+ });
451
+ var scheduleReceipt = strictObject({
452
+ applied: flag,
453
+ backend: text,
454
+ job,
455
+ units: optional(strictObject({ service_name: text, timer_name: text, service: text, timer: text })),
456
+ timer_state: picklist(["not_checked", "verified_enabled", "verified_disabled"])
457
+ });
458
+ var cue = strictObject({ start_ms: count, end_ms: count, speaker: nullableText, text });
459
+ var archiveImport = strictObject({
460
+ uuid: text,
461
+ asset_ids: array(text),
462
+ status: picklist(["acknowledged", "unavailable"]),
463
+ meeting_id: optional(identifier),
464
+ created: optional(flag),
465
+ inserted_transcripts: optionalCount,
466
+ replayed_transcripts: optionalCount,
467
+ superseded_transcripts: optionalCount,
468
+ reason: optional(literal("missing_or_deleted"))
469
+ });
470
+ var searchHit = strictObject({
471
+ source: text,
472
+ id: nullableText,
473
+ title: nullableText,
474
+ time: nullableText,
475
+ text: nullableText,
476
+ url: nullableText,
477
+ people: array(text),
478
+ container_id: nullableText,
479
+ details: record(text, nullable(union([text, number(), flag])))
480
+ });
481
+ var zoomAppSetup = strictObject({
482
+ marketplace_url: identifier,
483
+ guide_url: identifier,
484
+ app_type: identifier,
485
+ management: identifier,
486
+ oauth: identifier,
487
+ redirect_url: identifier,
488
+ allow_list: array(identifier),
489
+ scopes: array(strictObject({ scope: identifier, required: flag, use: identifier })),
490
+ config_key: identifier
491
+ });
492
+ var ZOOM_ANSWER_ENTITIES = {
493
+ app: { name: "zoom_app_setup", schema: zoomAppSetup },
494
+ "recordings list": { name: "zoom_recording", schema: recording },
495
+ "recordings show": { name: "zoom_recording", schema: recording },
496
+ "recordings download": { name: "zoom_archive", schema: union([archive, archiveReceipt]) },
497
+ "recordings archive show": { name: "zoom_archive_manifest", schema: manifest },
498
+ "recordings archive check": {
499
+ name: "zoom_archive_check",
500
+ schema: strictObject({ manifest_path: text, id: text, path: text, valid: flag })
501
+ },
502
+ "recordings archive locks": { name: "zoom_archive_lock", schema: lock },
503
+ "recordings archive recover": {
504
+ name: "zoom_archive_recovery",
505
+ schema: strictObject({ locks: array(lock), removed: array(text) })
506
+ },
507
+ "recordings archive transcript": {
508
+ name: "zoom_archive_transcript",
509
+ schema: strictObject({ meeting: occurrence, asset: archivedFile, cues: array(cue) })
510
+ },
511
+ "recordings archive import": { name: "zoom_archive_import", schema: archiveImport },
512
+ "recordings schedule list": { name: "zoom_archive_job", schema: job },
513
+ "recordings schedule show": { name: "zoom_archive_job", schema: job },
514
+ "recordings schedule create": { name: "zoom_archive_schedule_change", schema: scheduleReceipt },
515
+ "recordings schedule disable": { name: "zoom_archive_schedule_change", schema: scheduleReceipt },
516
+ "recordings schedule run": { name: "zoom_archive_receipt", schema: archiveReceipt },
517
+ "zoom search": { name: "zoom_search_hit", schema: searchHit },
518
+ "meetings embeddings": { name: "meeting_embedding", schema: MEETING_RESULT_ENTITIES.meeting_embedding, shared: true },
519
+ "meetings sync": { name: "meeting_ingestion", schema: MEETING_RESULT_ENTITIES.meeting_ingestion, shared: true },
520
+ "meetings import": { name: "meeting_ingestion", schema: MEETING_RESULT_ENTITIES.meeting_ingestion, shared: true },
521
+ "meetings repair": {
522
+ name: "meeting_repair",
523
+ schema: MEETING_RESULT_ENTITIES.meeting_repair,
524
+ shared: true
525
+ },
526
+ watch: { name: "meeting_ingestion", schema: MEETING_RESULT_ENTITIES.meeting_ingestion, shared: true },
527
+ "meetings export": { name: "meeting_export", schema: MEETING_RESULT_ENTITIES.meeting_export, shared: true },
528
+ "meetings link": { name: "meeting_association", schema: MEETING_RESULT_ENTITIES.meeting_association, shared: true },
529
+ "meetings transcribe": {
530
+ name: "meeting_transcription",
531
+ schema: MEETING_RESULT_ENTITIES.meeting_transcription,
532
+ shared: true
533
+ }
534
+ };
535
+ var declareZoomAnswers = /* @__PURE__ */ __name((program) => {
536
+ const walk = /* @__PURE__ */ __name((command, path) => {
537
+ const entity = ZOOM_ANSWER_ENTITIES[path.join(" ")];
538
+ if (entity?.shared)
539
+ annotate(command, { output: { entity: entity.name } });
540
+ else if (entity)
541
+ answerEntity(command, entity.name, entity.schema);
542
+ for (const child of command.commands)
543
+ walk(child, [...path, child.name()]);
544
+ }, "walk");
545
+ walk(program, []);
546
+ }, "declareZoomAnswers");
547
+ var publicValue = /* @__PURE__ */ __name((value, key = "") => {
548
+ if (typeof value === "number" && key === "meeting_id")
549
+ return String(value);
550
+ if (typeof value === "number" && key === "created_at")
551
+ return new Date(value).toISOString();
552
+ if (Array.isArray(value))
553
+ return value.map((item) => publicValue(item));
554
+ if (value && typeof value === "object")
555
+ return Object.fromEntries(Object.entries(value).map(([name, item]) => [name, publicValue(item, name)]));
556
+ return value;
557
+ }, "publicValue");
558
+ var schemas = new Map(Object.values(ZOOM_ANSWER_ENTITIES).map(({ name, schema }) => [name, schema]));
559
+ var normalizeZoomAnswer = /* @__PURE__ */ __name((body, entity) => {
560
+ const schema = entity ? schemas.get(entity) : void 0;
561
+ if (!schema)
562
+ return body;
563
+ const checked = /* @__PURE__ */ __name((value) => {
564
+ if (entity && Object.hasOwn(MEETING_RESULT_ENTITIES, entity))
565
+ return meetingResultItem(entity, value);
566
+ const parsed = safeParse(schema, publicValue(value));
567
+ if (!parsed.success) {
568
+ const applied = value && typeof value === "object" && "applied" in value && value.applied === true;
569
+ throw new CliError5(applied ? "outcome_unknown" : "invalid_response", `the command returned an invalid ${entity} answer`);
570
+ }
571
+ return parsed.output;
572
+ }, "checked");
573
+ return "item" in body ? { ...body, item: checked(body.item) } : { ...body, items: body.items.map(checked) };
574
+ }, "normalizeZoomAnswer");
575
+
576
+ // dist/answer-output.js
577
+ var UTC_TIME = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?Z/;
578
+ var record2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "record");
579
+ var only = /* @__PURE__ */ __name((value, keys) => Object.keys(value).every((key) => keys.includes(key)), "only");
580
+ var bodyOf = /* @__PURE__ */ __name((value) => {
581
+ const data = snakeKeys(value);
582
+ if (record2(data) && only(data, ["item", "items", "page", "next", "missing", "meta"])) {
583
+ if ("item" in data || Array.isArray(data.items) && record2(data.page))
584
+ return data;
585
+ }
586
+ if (record2(data) && Array.isArray(data.items) && only(data, ["items", "page", "limit", "has_more"]))
587
+ return listOf("list", {
588
+ items: data.items,
589
+ limit: Math.max(1, data.items.length),
590
+ has_more: data.has_more === true
591
+ });
592
+ return itemOf(data);
593
+ }, "bodyOf");
594
+ var renderBody = /* @__PURE__ */ __name((command, body, options) => {
595
+ const data = normalizeZoomAnswer(snakeKeys(body), metaOf(command).output?.entity);
596
+ const fields = options.fields;
597
+ const projected = fields ? projectFields(data, fields) : data;
598
+ const meta = metaNow({ ...projected.meta, run_id: options.meta.run_id, duration_ms: options.meta.duration_ms });
599
+ const chunks = [];
600
+ const streams = {
601
+ data: /* @__PURE__ */ __name((text3) => chunks.push(`${text3}
602
+ `), "data"),
603
+ diagnostic: /* @__PURE__ */ __name((text3) => options.diagnostic(`${text3}
604
+ `), "diagnostic")
605
+ };
606
+ const renderer = createRenderer({ format: options.format, color: false, quiet: options.quiet, streams });
607
+ for (const warning of options.warnings ?? [])
608
+ renderer.warn(warning);
609
+ const exitCode = process.exitCode;
610
+ try {
611
+ renderAnswer(command, { renderer, format: options.format, streams }, { ...projected, meta });
612
+ } finally {
613
+ process.exitCode = exitCode;
614
+ }
615
+ const text2 = chunks.join("");
616
+ const label = options.format === "pretty" && UTC_TIME.test(text2) ? "times in UTC\n" : "";
617
+ return { text: text2 + label, exitCode: exitCodeOfAnswer(meta, metaOf(command).partial === true) };
618
+ }, "renderBody");
619
+ var wholeList = /* @__PURE__ */ __name((command, items) => listOf(command, { items, limit: Math.max(1, items.length), has_more: false }), "wholeList");
620
+
621
+ // dist/answers.js
622
+ var answerSchema = sharedAnswerSchema();
371
623
  var readMetadata = /* @__PURE__ */ __name((now = Date.now, runId = randomUUID()) => {
372
624
  const started = now();
373
- return () => metaNow({ run_id: runId, duration_ms: Math.max(0, Math.round(now() - started)) });
625
+ return () => metaNow2({ run_id: runId, duration_ms: Math.max(0, Math.round(now() - started)) });
374
626
  }, "readMetadata");
375
627
 
376
628
  // dist/execution.js
377
- var duration = /* @__PURE__ */ __name((text, source = "duration") => {
378
- const value = parseDuration(text, source);
629
+ var duration = /* @__PURE__ */ __name((text2, source = "duration") => {
630
+ const value = parseDuration(text2, source);
379
631
  if (!Number.isSafeInteger(value) || value > 2147483647)
380
- throw new CliError("validation_error", "duration exceeds the supported timer range");
632
+ throw new CliError7("validation_error", "duration exceeds the supported timer range");
381
633
  return value;
382
634
  }, "duration");
383
- var bytes = /* @__PURE__ */ __name((text) => {
384
- if (!/^\d+$/.test(text) || !Number.isSafeInteger(Number(text)))
385
- throw new CliError("validation_error", "expected a nonnegative whole byte count");
386
- return Number(text);
635
+ var bytes = /* @__PURE__ */ __name((text2) => {
636
+ if (!/^\d+$/.test(text2) || !Number.isSafeInteger(Number(text2)))
637
+ throw new CliError7("validation_error", "expected a nonnegative whole byte count");
638
+ return Number(text2);
387
639
  }, "bytes");
388
640
  var longRunning = /* @__PURE__ */ new WeakSet();
389
641
  var runsLong = /* @__PURE__ */ __name((command) => {
@@ -391,7 +643,7 @@ var runsLong = /* @__PURE__ */ __name((command) => {
391
643
  return command;
392
644
  }, "runsLong");
393
645
  var commandDeadline = /* @__PURE__ */ __name((action) => {
394
- const { lifetime } = metaOf(action);
646
+ const { lifetime } = metaOf2(action);
395
647
  if (lifetime === "persistent")
396
648
  return void 0;
397
649
  if (lifetime === "interactive")
@@ -409,54 +661,58 @@ var sharedExecution = /* @__PURE__ */ __name((action, environment, now, runId) =
409
661
  }, "sharedExecution");
410
662
 
411
663
  // dist/meeting-semantic-commands.js
664
+ import { CliError as CliError8 } from "@wirecat/cli-base";
665
+ import { annotate as annotate2 } from "@wirecat/cli-base/commands";
666
+ import { FETCH, itemOf as itemOf2 } from "@wirecat/cli-core";
412
667
  var bounded = /* @__PURE__ */ __name((value, maximum) => value === void 0 || Number.isSafeInteger(value) && value > 0 && value <= maximum, "bounded");
413
668
  var validateMeetingModel = /* @__PURE__ */ __name((options) => {
414
669
  if (typeof options.model !== "string" || !options.model.trim() || options.model.length > 1e3)
415
- throw new CliError("validation_error", "select an explicit embedding model");
670
+ throw new CliError8("validation_error", "select an explicit embedding model");
416
671
  if (options.baseUrl === void 0) {
417
672
  if (options.dims !== void 0)
418
- throw new CliError("validation_error", "dimensions require an explicit remote base URL");
673
+ throw new CliError8("validation_error", "dimensions require an explicit remote base URL");
419
674
  return;
420
675
  }
421
676
  let url;
422
677
  try {
423
678
  url = new URL(options.baseUrl);
424
679
  } catch {
425
- throw new CliError("validation_error", "embedding base URL must be an HTTP or HTTPS URL");
680
+ throw new CliError8("validation_error", "embedding base URL must be an HTTP or HTTPS URL");
426
681
  }
427
682
  if (!["http:", "https:"].includes(url.protocol) || url.username || url.password || url.search || url.hash || !/^[\w./:-]{1,200}$/.test(options.model) || options.dims === void 0 || !bounded(options.dims, 8192))
428
- throw new CliError("validation_error", "remote embeddings require an HTTP base URL without credentials and explicit dimensions");
683
+ throw new CliError8("validation_error", "remote embeddings require an HTTP base URL without credentials and explicit dimensions");
429
684
  }, "validateMeetingModel");
430
685
  var validateMeetingSemantic = /* @__PURE__ */ __name((query, options) => {
431
686
  validateMeetingModel(options);
432
687
  if (typeof query !== "string" || !query.trim() || Buffer.byteLength(query, "utf8") > 65536 || !bounded(options.limit, 1e3) || !bounded(options.maxChunks, 1e5) || !bounded(options.maxRows, 1e5) || !bounded(options.maxTextBytes, 64 * 1024 * 1024))
433
- throw new CliError("validation_error", "meeting semantic search requires a nonempty bounded query and positive limits");
688
+ throw new CliError8("validation_error", "meeting semantic search requires a nonempty bounded query and positive limits");
434
689
  }, "validateMeetingSemantic");
435
690
  var validateMeetingEmbeddings = /* @__PURE__ */ __name((options) => {
436
691
  validateMeetingModel(options);
437
692
  if (!bounded(options.limit, 1e3) || !bounded(options.afterTranscriptId, Number.MAX_SAFE_INTEGER) || !bounded(options.maxRows, 1e5) || !bounded(options.maxTextBytes, 64 * 1024 * 1024) || options.afterHash !== void 0 && !/^[a-f0-9]{64}$/.test(options.afterHash))
438
- throw new CliError("validation_error", "meeting embedding generation requires valid bounded limits and cursors");
693
+ throw new CliError8("validation_error", "meeting embedding generation requires valid bounded limits and cursors");
439
694
  }, "validateMeetingEmbeddings");
440
695
  var addMeetingEmbeddingCommand = /* @__PURE__ */ __name((program, deps) => {
441
696
  const meetings = program.commands.find((command) => command.name() === "meetings");
442
697
  if (!meetings)
443
- throw new CliError("configuration_error", "meeting command group is unavailable");
698
+ throw new CliError8("configuration_error", "meeting command group is unavailable");
444
699
  const model = /* @__PURE__ */ __name((command) => command.requiredOption("--model <model>", "embedding model: an installed local one, or one served at --base-url").option("--base-url <url>", "remote embedding service; OpenAI reads OPENAI_API_KEY").option("--dims <n>", "vector size the remote service returns, in dimensions", bytes), "model");
445
700
  const budget = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many results or items in one batch, 1 through 1000", bytes).option("--max-rows <n>", "most transcript lines to read, 1 through 100000", bytes).option("--max-text-bytes <bytes>", "most transcript text to read, in bytes (default 4 MiB)", bytes), "budget");
446
- annotate(budget(model(meetings.command("embeddings").description("preview building meeting vectors; --yes builds one batch"))).option("--after-transcript-id <id>", "continue splitting transcripts after this one", bytes).option("--after-hash <hash>", "continue embedding after this passage").option("--yes", "split transcripts and build their vectors; otherwise only preview").action(async (options) => {
701
+ annotate2(budget(model(meetings.command("embeddings").description("preview building meeting vectors; --yes builds one batch"))).option("--after-transcript-id <id>", "continue splitting transcripts after this one", bytes).option("--after-hash <hash>", "continue embedding after this passage").option("--yes", "split transcripts and build their vectors; otherwise only preview").action(async (options) => {
447
702
  validateMeetingEmbeddings(options);
448
703
  if (options.baseUrl !== void 0 && deps.offline())
449
- throw new CliError("configuration_error", "remote embeddings require network access; remove --offline");
704
+ throw new CliError8("configuration_error", "remote embeddings require network access; remove --offline");
450
705
  const api = await deps.capabilities();
451
706
  const result = await api.generate({ ...options, signal: deps.signal() });
452
707
  if (options.yes)
453
- await deps.receipt(itemOf(result));
708
+ await deps.receipt(itemOf2(result));
454
709
  else
455
- deps.output(itemOf(result));
710
+ deps.output(itemOf2(result));
456
711
  }), { origin: "handwritten", effects: FETCH, examples: ["zm personal meetings embeddings --model e5-small --json"] });
457
712
  }, "addMeetingEmbeddingCommand");
458
713
 
459
714
  // dist/meeting-search-commands.js
715
+ import { validateMeetingHitSearch } from "@wirecat/cli-core";
460
716
  var FLAG = {
461
717
  meetingId: "--meeting-id",
462
718
  identityId: "--identity-id",
@@ -480,7 +736,7 @@ var FLAG = {
480
736
  var refuse = /* @__PURE__ */ __name((options, keys, mode) => {
481
737
  const given = keys.filter((key) => options[key] !== void 0).map((key) => FLAG[key]);
482
738
  if (given.length)
483
- throw new CliError("validation_error", `${given.join(", ")} do not apply ${mode}`);
739
+ throw new CliError9("validation_error", `${given.join(", ")} do not apply ${mode}`);
484
740
  }, "refuse");
485
741
  var recordingHit = /* @__PURE__ */ __name((directory) => (match) => {
486
742
  const meetingStart = Date.parse(match.meeting.startedAt ?? "");
@@ -498,7 +754,7 @@ var recordingHit = /* @__PURE__ */ __name((directory) => (match) => {
498
754
  offset_ms: match.startMs + (Number.isFinite(lead) && lead > 0 ? lead : 0)
499
755
  };
500
756
  }, "recordingHit");
501
- var combinedList = /* @__PURE__ */ __name((found, limit, args) => listOf("search meetings", {
757
+ var combinedList = /* @__PURE__ */ __name((found, limit, args) => listOf2("search meetings", {
502
758
  items: found.items.map((hit) => ({
503
759
  ref: hit.ref,
504
760
  meeting: hit.ref.split("/").slice(0, 2).join("/"),
@@ -556,7 +812,7 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
556
812
  };
557
813
  validateMeetingSemantic(query, meaning);
558
814
  if (meaning.baseUrl !== void 0 && deps.offline())
559
- throw new CliError("configuration_error", "remote embeddings require network access; remove --offline");
815
+ throw new CliError9("configuration_error", "remote embeddings require network access; remove --offline");
560
816
  return combinedList(await (await deps.meaning()).search(query, meaning), meaning.limit, meetingSearchArguments(query, options));
561
817
  }
562
818
  refuse(options, ["baseUrl", "dims", "maxChunks", "maxRows", "maxTextBytes"], "without --model");
@@ -566,16 +822,16 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
566
822
  deps.output(await execute(query, options));
567
823
  });
568
824
  overrideSharedContract(command, "Zoom meeting search may build missing embeddings, so its effects and examples include that explicit mode.", (one) => {
569
- annotate(one, {
825
+ annotate3(one, {
570
826
  origin: "handwritten",
571
- effects: FETCH,
827
+ effects: FETCH2,
572
828
  examples: [
573
829
  'zm personal search meetings "example plan" --since-time 2026-09-01 --json',
574
830
  'zm personal search meetings "example plan" --model e5-small --json'
575
831
  ]
576
832
  });
577
833
  });
578
- const search = program.commands.find((child) => child.name() === "search") ?? annotate(program.command("search"), { effects: NO_EFFECTS });
834
+ const search = program.commands.find((child) => child.name() === "search") ?? annotate3(program.command("search"), { effects: NO_EFFECTS });
579
835
  const recordings = search.command("recordings").description("find words in the transcripts of a downloaded archive folder, before any import").argument("<directory>", "archive folder").argument("<query...>", "words to find as one phrase, ignoring case").option("--limit <n>", "how many hits, 1 through 1000 (default 100)", bytes).action(async (directory, words, options) => {
580
836
  const found = await deps.archive(directory, words.join(" "), { limit: options.limit, signal: deps.signal() });
581
837
  deps.output({
@@ -583,7 +839,7 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
583
839
  page: { mode: "page", limit: found.limit, has_more: found.hasMore }
584
840
  });
585
841
  });
586
- annotate(recordings, {
842
+ annotate3(recordings, {
587
843
  origin: "handwritten",
588
844
  effects: LOCAL_READ,
589
845
  output: { entity: "hit" },
@@ -593,10 +849,11 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
593
849
  }, "addMeetingSearchCommands");
594
850
 
595
851
  // dist/meeting-semantic.js
596
- var loadProducer2 = /* @__PURE__ */ __name(async () => import("./services-4QAPXBLO.js"), "loadProducer");
852
+ import { CliError as CliError10 } from "@wirecat/cli-base";
853
+ var loadProducer2 = /* @__PURE__ */ __name(async () => import("@wirecat/cli-core"), "loadProducer");
597
854
  var createMeetingSemanticCapabilities = /* @__PURE__ */ __name((store, accountId, options = {}) => {
598
855
  if (!Number.isSafeInteger(accountId) || accountId < 1)
599
- throw new CliError("validation_error", "meeting vectors require a selected positive account ID");
856
+ throw new CliError10("validation_error", "meeting vectors require a selected positive account ID");
600
857
  const load = options.load ?? loadProducer2;
601
858
  const choice = /* @__PURE__ */ __name((api, input) => input.baseUrl === void 0 ? input.model : { remote: api.createMeetingRemoteModel({ model: input.model, baseUrl: input.baseUrl, dims: input.dims }) }, "choice");
602
859
  const budget = /* @__PURE__ */ __name((input) => ({
@@ -687,16 +944,17 @@ var createMeetingSemanticCapabilities = /* @__PURE__ */ __name((store, accountId
687
944
  }, "createMeetingSemanticCapabilities");
688
945
 
689
946
  // dist/unified-search.js
947
+ import { CliError as CliError11 } from "@wirecat/cli-base";
690
948
  var resources = ["messages", "mail", "notes", "meetings"];
691
949
  var validateUnifiedSearch = /* @__PURE__ */ __name((input, meetingsOnly = false) => {
692
950
  const limit = input.limit ?? 100;
693
- const only = input.only ?? ["meetings"];
694
- if (typeof input.text !== "string" || !input.text.trim() || !Number.isSafeInteger(limit) || limit < 1 || limit > 1e3 || input.offset !== void 0 && (!Number.isSafeInteger(input.offset) || input.offset < 0) || !Array.isArray(only) || !only.length || only.some((resource) => !resources.includes(resource)) || meetingsOnly && (only.length !== 1 || only[0] !== "meetings") || input.exact !== void 0 && typeof input.exact !== "boolean")
695
- throw new CliError("validation_error", "expected nonempty search text, supported resources and a limit from 1 through 1000");
951
+ const only2 = input.only ?? ["meetings"];
952
+ if (typeof input.text !== "string" || !input.text.trim() || !Number.isSafeInteger(limit) || limit < 1 || limit > 1e3 || input.offset !== void 0 && (!Number.isSafeInteger(input.offset) || input.offset < 0) || !Array.isArray(only2) || !only2.length || only2.some((resource) => !resources.includes(resource)) || meetingsOnly && (only2.length !== 1 || only2[0] !== "meetings") || input.exact !== void 0 && typeof input.exact !== "boolean")
953
+ throw new CliError11("validation_error", "expected nonempty search text, supported resources and a limit from 1 through 1000");
696
954
  return {
697
955
  text: input.text,
698
956
  limit,
699
- only: [...new Set(only)],
957
+ only: [...new Set(only2)],
700
958
  ...input.offset === void 0 ? {} : { offset: input.offset },
701
959
  exact: input.exact,
702
960
  signal: input.signal
@@ -712,7 +970,7 @@ var runUnifiedSearch = /* @__PURE__ */ __name(async (search, input, meetingsOnly
712
970
 
713
971
  // dist/store-connection.js
714
972
  var storeUnavailable = /* @__PURE__ */ __name(async () => {
715
- throw new CliError("configuration_error", "the shared SQLite meeting store is not available yet");
973
+ throw new CliError12("configuration_error", "the shared SQLite meeting store is not available yet");
716
974
  }, "storeUnavailable");
717
975
  var unavailableStore = {
718
976
  saveMeeting: storeUnavailable,
@@ -733,16 +991,16 @@ var unavailableStore = {
733
991
  };
734
992
  var connectSelectedProfile = /* @__PURE__ */ __name((connect, profile, intent, context) => {
735
993
  if (!profile)
736
- throw new CliError("validation_error", "name a profile: `zm <profile> \u2026`");
994
+ throw new CliError12("validation_error", "name a profile: `zm <profile> \u2026`");
737
995
  return connect({ profile, externalId: profileAccountKey(profile), intent, ...context ? { context } : {} });
738
996
  }, "connectSelectedProfile");
739
997
  var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (request) => {
740
998
  const { profile, externalId, intent, context } = request ?? {};
741
999
  if (typeof profile !== "string" || !profilePattern.test(profile) || externalId !== profileAccountKey(profile) || intent !== "read" && intent !== "ingestion" && intent !== "preparation" || context !== void 0 && (intent !== "preparation" || typeof context.resolve !== "function" || typeof context.assert !== "function"))
742
- throw new CliError("validation_error", "expected a selected Zoom profile and read or ingestion intent");
1000
+ throw new CliError12("validation_error", "expected a selected Zoom profile and read or ingestion intent");
743
1001
  let store;
744
1002
  try {
745
- const open2 = options.openStore ?? (await import("./public-C2ZB2AGQ.js")).openStore;
1003
+ const open2 = options.openStore ?? (await import("@wirecat/cli-core")).openStore;
746
1004
  store = await open2({
747
1005
  path: options.path,
748
1006
  env: options.env,
@@ -754,16 +1012,16 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
754
1012
  const key = { provider: "zoom", account: externalId };
755
1013
  const accountId = intent === "ingestion" ? await connected.accounts.saveAccount(key, { name: profile }) : (await connected.accounts.storedAccount(key)).id;
756
1014
  if (!Number.isSafeInteger(accountId) || accountId < 1)
757
- throw new CliError("configuration_error", "the selected meeting account is unavailable");
1015
+ throw new CliError12("configuration_error", "the selected meeting account is unavailable");
758
1016
  const ownAccount = /* @__PURE__ */ __name((input, what) => {
759
1017
  if (input.accountId !== accountId)
760
- throw new CliError("validation_error", `${what} account is selected by the connection`);
1018
+ throw new CliError12("validation_error", `${what} account is selected by the connection`);
761
1019
  return input;
762
1020
  }, "ownAccount");
763
1021
  let cachedBatchReader;
764
1022
  const batchReader = /* @__PURE__ */ __name(async () => {
765
1023
  if (!cachedBatchReader) {
766
- const { createMeetingBatchReader } = await import("./services-4QAPXBLO.js");
1024
+ const { createMeetingBatchReader } = await import("@wirecat/cli-core");
767
1025
  cachedBatchReader = createMeetingBatchReader(connected, accountId);
768
1026
  }
769
1027
  return cachedBatchReader;
@@ -772,10 +1030,10 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
772
1030
  meetingPreparation: {
773
1031
  scope: key,
774
1032
  create: /* @__PURE__ */ __name(async (upcoming) => {
775
- const { createMeetingPreparationService } = await import("./services-4QAPXBLO.js");
1033
+ const { createMeetingPreparationService } = await import("@wirecat/cli-core");
776
1034
  const reader = connected.contextEvidence;
777
1035
  if (context && !reader)
778
- throw new CliError("configuration_error", "the installed store does not support bounded communications");
1036
+ throw new CliError12("configuration_error", "the installed store does not support bounded communications");
779
1037
  const communications = context && reader ? {
780
1038
  reader,
781
1039
  selections: await context.resolve({
@@ -797,7 +1055,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
797
1055
  close: /* @__PURE__ */ __name(() => connected.close(), "close"),
798
1056
  appendTranscriptsWithReceipt: /* @__PURE__ */ __name((input) => meetings.appendTranscriptsWithReceipt(ownAccount(input, "append")), "appendTranscriptsWithReceipt"),
799
1057
  meetingProjectCandidates: /* @__PURE__ */ __name(async (reference, request2) => {
800
- const { createStoredMeetingProjectCandidateReader } = await import("./services-4QAPXBLO.js");
1058
+ const { createStoredMeetingProjectCandidateReader } = await import("@wirecat/cli-core");
801
1059
  const read = createStoredMeetingProjectCandidateReader(key, accountId, {
802
1060
  meetings,
803
1061
  vocabulary: connected.knowledge
@@ -805,7 +1063,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
805
1063
  return read(reference, request2);
806
1064
  }, "meetingProjectCandidates"),
807
1065
  meetingProjectEvidence: /* @__PURE__ */ __name(async (project, request2) => {
808
- const { readMeetingProjectDiscovery } = await import("./services-4QAPXBLO.js");
1066
+ const { readMeetingProjectDiscovery } = await import("@wirecat/cli-core");
809
1067
  return readMeetingProjectDiscovery({
810
1068
  vocabulary: connected.knowledge,
811
1069
  search: { searchHits: /* @__PURE__ */ __name((query, hits) => meetings.searchHits(query, hits), "searchHits") }
@@ -832,18 +1090,18 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
832
1090
  },
833
1091
  meetingSearch: /* @__PURE__ */ __name(async (query, request2) => {
834
1092
  validateMeetingHitSearch(query, request2);
835
- const { searchMeetingHits } = await import("./services-4QAPXBLO.js");
1093
+ const { searchMeetingHits } = await import("@wirecat/cli-core");
836
1094
  return searchMeetingHits({ meetings, knowledge: connected.knowledge }, query, { ...request2, accountId });
837
1095
  }, "meetingSearch"),
838
1096
  meetingIntegration: {
839
1097
  change: /* @__PURE__ */ __name(async (reference, input, mutation = {}) => {
840
1098
  const source = integrationReference(reference);
841
1099
  if (source.parsed.accountId !== accountId)
842
- throw new CliError("not_found", "meeting is unavailable for the selected account");
1100
+ throw new CliError12("not_found", "meeting is unavailable for the selected account");
843
1101
  const change = validateMeetingContextChange(input);
844
1102
  if (change.action !== "event.link" && change.action !== "person.link")
845
- throw new CliError("validation_error", "meeting linking supports only explicit event or person changes");
846
- const api = await import("./services-4QAPXBLO.js");
1103
+ throw new CliError12("validation_error", "meeting linking supports only explicit event or person changes");
1104
+ const api = await import("@wirecat/cli-core");
847
1105
  await api.resolveMeetingReference(meetings, accountId, source.reference, { signal: mutation.signal });
848
1106
  const service = await api.createMeetingContextService({
849
1107
  accounts: connected.accounts,
@@ -854,7 +1112,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
854
1112
  facts: connected.facts
855
1113
  }, key, mutation.author === void 0 ? {} : { author: mutation.author });
856
1114
  if (service.accountId !== accountId || service.scope.provider !== key.provider || service.scope.account !== key.account)
857
- throw new CliError("invalid_response", "meeting context service returned an inconsistent account");
1115
+ throw new CliError12("invalid_response", "meeting context service returned an inconsistent account");
858
1116
  return service.change(source.parsed.meetingId, change, {
859
1117
  apply: mutation.apply,
860
1118
  dryRun: mutation.dryRun,
@@ -864,43 +1122,48 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
864
1122
  },
865
1123
  unifiedSearch: /* @__PURE__ */ __name(async (input) => {
866
1124
  const request2 = validateUnifiedSearch(input);
867
- const { searchAll } = await import("./services-4QAPXBLO.js");
1125
+ const { searchAll } = await import("@wirecat/cli-core");
868
1126
  return searchAll(connected, key, { ...request2, scope: { meetings: [key] }, env: options.env });
869
1127
  }, "unifiedSearch"),
870
1128
  meetingContext: createMeetingContextCapabilities(connected, meetings, accountId),
871
1129
  meetingSemantic: createMeetingSemanticCapabilities(connected, accountId, { env: options.env }),
872
1130
  meetingSearches: await (async () => {
873
- const { meetingSearchesService } = await import("./services-4QAPXBLO.js");
1131
+ const { meetingSearchesService } = await import("@wirecat/cli-core");
874
1132
  return meetingSearchesService(async () => connected.searches);
875
1133
  })(),
876
1134
  meetingStats: /* @__PURE__ */ __name(async (request2) => {
877
- const { readMeetingStats } = await import("./services-4QAPXBLO.js");
1135
+ const { readMeetingStats } = await import("@wirecat/cli-core");
878
1136
  return readMeetingStats(connected, { ...request2, accountId });
879
1137
  }, "meetingStats"),
880
1138
  meetingCounts: /* @__PURE__ */ __name(async (request2) => {
881
- const { readMeetingCounts } = await import("./services-4QAPXBLO.js");
1139
+ const { readMeetingCounts } = await import("@wirecat/cli-core");
882
1140
  return readMeetingCounts(connected, { ...request2, accountId });
883
1141
  }, "meetingCounts"),
884
1142
  meetingReview: /* @__PURE__ */ __name(async (request2) => {
885
- const { readMeetingReview } = await import("./services-4QAPXBLO.js");
1143
+ const { readMeetingReview } = await import("@wirecat/cli-core");
886
1144
  return readMeetingReview(connected, { ...request2, accountId });
887
1145
  }, "meetingReview"),
888
1146
  meetingLinks: /* @__PURE__ */ __name(async (request2) => {
889
- const { readMeetingLinks } = await import("./services-4QAPXBLO.js");
1147
+ const { readMeetingLinks } = await import("@wirecat/cli-core");
890
1148
  return readMeetingLinks(connected, { ...request2, accountId });
891
1149
  }, "meetingLinks")
892
1150
  };
893
1151
  } catch (error) {
894
1152
  await store?.close().catch(() => void 0);
895
1153
  if (isCliError(error) && error.code === "not_found")
896
- throw new CliError("configuration_error", "no stored meetings for the selected profile; import transcripts or pull first");
1154
+ throw new CliError12("configuration_error", "no stored meetings for the selected profile; import transcripts or pull first");
897
1155
  if (isCliError(error))
898
1156
  throw error;
899
- throw new CliError("configuration_error", "could not connect to the shared meeting store; check MESSAGING_STORE and the installed store version");
1157
+ throw new CliError12("configuration_error", "could not connect to the shared meeting store; check MESSAGING_STORE and the installed store version");
900
1158
  }
901
1159
  }, "createStoreConnector");
902
1160
 
903
1161
  export {
1162
+ ZOOM_ANSWER_ENTITIES,
1163
+ declareZoomAnswers,
1164
+ bodyOf,
1165
+ renderBody,
1166
+ wholeList,
904
1167
  duration,
905
1168
  bytes,
906
1169
  runsLong,