@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,562 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- UNTRUSTED,
5
- UNTRUSTED_NEUTRAL,
6
- agentArguments,
7
- agentJson
8
- } from "./chunk-E4ODYLEK.js";
9
- import {
10
- callerOf
11
- } from "./chunk-G6CHEFAG.js";
12
- import {
13
- refuseLacking
14
- } from "./chunk-ZDYJAEVB.js";
15
- import {
16
- onlineDeps,
17
- servicesFor,
18
- storeModeDeps
19
- } from "./chunk-UEAE3JUU.js";
20
- import {
21
- failureContext
22
- } from "./chunk-CJWGJBHW.js";
23
- import {
24
- DEFAULT_OUTPUT_BYTES,
25
- ENTITIES,
26
- LOCAL_WRITE,
27
- REMOTE_WRITE,
28
- answerSchema,
29
- judgedAnswer,
30
- judgedEffects,
31
- listOf,
32
- refuseStoreChange,
33
- sealed,
34
- startRecording
35
- } from "./chunk-ASTLGFTR.js";
36
- import {
37
- currentCaller,
38
- keepsSuccess,
39
- runContextOf,
40
- withCaller
41
- } from "./chunk-RLOH7RDN.js";
42
- import {
43
- fetchesAt,
44
- keyForCommand,
45
- levelFor,
46
- readKeysForCommand
47
- } from "./chunk-RQ4AXSCJ.js";
48
- import {
49
- MAX_BUFFERED_INPUT
50
- } from "./chunk-KHQDWYCG.js";
51
- import {
52
- inRun,
53
- newRunId
54
- } from "./chunk-HKLRI2LB.js";
55
- import {
56
- storeBusy,
57
- storeDamaged
58
- } from "./chunk-B2NM65RD.js";
59
- import {
60
- traceIdOf
61
- } from "./chunk-3QN5KDFZ.js";
62
- import {
63
- array,
64
- boolean,
65
- description,
66
- errorObjectOf,
67
- integer,
68
- itemEnvelopeSchema,
69
- listEnvelopeSchema,
70
- looseObject,
71
- maxLength,
72
- maxValue,
73
- mcpErrorResult,
74
- minLength,
75
- minValue,
76
- number,
77
- optional,
78
- pipe,
79
- record,
80
- regex,
81
- safeParse,
82
- strictObject,
83
- string,
84
- summarize,
85
- toJsonSchema,
86
- toStandardJsonSchema,
87
- unknown
88
- } from "./chunk-ESN3W2MZ.js";
89
- import {
90
- CliError,
91
- errorCodes
92
- } from "./chunk-IANKXHSE.js";
93
- import {
94
- __name
95
- } from "./chunk-ZVVMGPBJ.js";
96
-
97
- // 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/mcp/surface.js
98
- import { randomUUID } from "node:crypto";
99
-
100
- // 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/mcp/tool.js
101
- var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
102
- var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
103
- var message = pipe(
104
- string(),
105
- maxLength(256),
106
- // biome-ignore lint/suspicious/noControlCharactersInRegex: refusing them is the point
107
- regex(/^[^\s\x00-\x1F\x7F-\x9F]+$/, "a message id has no spaces or control characters"),
108
- description("message id")
109
- );
110
- var READ = { readOnlyHint: true, destructiveHint: false, openWorldHint: true };
111
- var WRITE = {
112
- readOnlyHint: false,
113
- destructiveHint: true,
114
- idempotentHint: false,
115
- openWorldHint: true
116
- };
117
- var tool = /* @__PURE__ */ __name((definition) => definition, "tool");
118
- var chatOf = /* @__PURE__ */ __name((messenger) => pipe(string(), minLength(1), description(messenger.chatArgument)), "chatOf");
119
- var tierOf = /* @__PURE__ */ __name((key, definition, messenger) => {
120
- if (definition.annotations.readOnlyHint === true)
121
- return "read";
122
- if (/^admin|_admin/.test(key))
123
- return "admin";
124
- if (/delete|ban|kick|remove|purge|block/.test(key))
125
- return "destructive";
126
- if (/draft/.test(key))
127
- return "draft";
128
- if (key === "messages_pin" && messenger?.quietPins === false)
129
- return "write-public";
130
- if (/mark_read|mark_unread|read_mark|archive|mute|pin|tag|note|label|folder|alias|save|_(un)?star$/.test(key))
131
- return "write-private";
132
- return "write-public";
133
- }, "tierOf");
134
- var effectsOf = /* @__PURE__ */ __name((definition) => {
135
- if (definition.effects)
136
- return definition.effects;
137
- const { readOnlyHint, openWorldHint } = definition.annotations;
138
- if (readOnlyHint === true)
139
- return { remote: openWorldHint === false ? "none" : "read", local: "read" };
140
- return openWorldHint === false ? LOCAL_WRITE : REMOTE_WRITE;
141
- }, "effectsOf");
142
- var outcomeOf = /* @__PURE__ */ __name((result) => {
143
- if (!result.isError)
144
- return { status: "ok" };
145
- const code = result.structuredContent?.error?.code;
146
- const error = typeof code === "string" ? code : "generic_failure";
147
- return { status: error === "permission_error" ? "refused" : "failed", error };
148
- }, "outcomeOf");
149
- var commandOf = /* @__PURE__ */ __name((name, definition) => definition.command ?? name.replaceAll("_", " "), "commandOf");
150
- var toolKey = /* @__PURE__ */ __name((name, definition) => definition.key !== void 0 ? definition.key : keyForCommand(commandOf(name, definition).split(" ")), "toolKey");
151
- var inputOf = /* @__PURE__ */ __name((definition, syncAllowed) => strictObject(syncAllowed || !("sync_first" in definition.input.entries) ? definition.input.entries : Object.fromEntries(Object.entries(definition.input.entries).filter(([name]) => !["sync_first", "sync_time", "max_chats", "max_messages"].includes(name)))), "inputOf");
152
- var syncAllowedFor = /* @__PURE__ */ __name((key, defaults) => {
153
- const permissions = defaults.settings.permissions ?? {};
154
- const shared = defaults.syncAllowed ?? fetchesAt(levelFor(permissions, "messages.sync-first").level);
155
- return shared && (!key.startsWith("stats_") || fetchesAt(levelFor(permissions, `${key.replaceAll("_", ".")}.sync-first`).level));
156
- }, "syncAllowedFor");
157
- var entryRunner = /* @__PURE__ */ __name((registration) => {
158
- const run = callRunner(registration);
159
- const { log } = registration;
160
- return async (key, definition, args, ctx) => {
161
- const startedAt = Date.now();
162
- const command = `mcp ${commandOf(key, definition)}`;
163
- const traceId = traceIdOf(ctx?.mcpReq?._meta?.traceparent);
164
- const app = registration.messenger?.app;
165
- const caller = registration.callers ? callerOf(ctx, key, registration.callers) : currentCaller();
166
- const env = registration.defaults.env ?? process.env;
167
- const settings = registration.defaults.settings;
168
- const recording = key !== "runs_search" && settings.keepFailedRuns !== false && app?.appName ? startRecording({
169
- app,
170
- command,
171
- ...settings.profile === void 0 ? {} : { profile: settings.profile },
172
- env,
173
- record: keepsSuccess({ record: settings.record ?? true, fromFlag: false, env, caller }),
174
- keepFailed: true,
175
- trace: false,
176
- format: "json",
177
- context: runContextOf({ bin: app.command, command, env, caller }),
178
- ...settings.keepRunsForDays === void 0 ? {} : { keepDays: settings.keepRunsForDays },
179
- ...settings.keepSuccessfulRunsForDays === void 0 ? {} : { keepSuccessDays: settings.keepSuccessfulRunsForDays },
180
- ...settings.runsSizeLimitMb === void 0 ? {} : { maxBytes: settings.runsSizeLimitMb * 1024 * 1024 },
181
- ...traceId === void 0 ? {} : { traceId }
182
- }) : void 0;
183
- const profile = registration.defaults.settings.profile;
184
- const scope = {
185
- runId: recording?.runId ?? newRunId(new Date(startedAt), command),
186
- command,
187
- startedAt,
188
- ...profile === void 0 ? {} : { profile },
189
- ...traceId === void 0 ? {} : { traceId },
190
- ...recording ? { events: recording.events } : {}
191
- };
192
- const work = /* @__PURE__ */ __name(() => inRun(scope, () => {
193
- const input = inputOf(definition, syncAllowedFor(key, registration.defaults));
194
- const parsed = safeParse(input, args);
195
- return parsed.success ? run(key, definition, parsed.output, ctx) : failed(new CliError("validation_error", `${commandOf(key, definition)}: ${summarize(parsed.issues)}`, {
196
- arguments: toJsonSchema(input)
197
- }), app?.errors);
198
- }), "work");
199
- const result = await (caller ? withCaller(caller, work) : work());
200
- if (recording) {
201
- if (result.isError) {
202
- const error = result.structuredContent?.error;
203
- const code = error?.code && errorCodes.includes(error.code) ? error.code : void 0;
204
- await recording.fail(code ? new CliError(code, "MCP operation failed") : new Error("MCP operation failed")).catch(() => void 0);
205
- } else
206
- await recording.succeed(result.structuredContent).catch(() => void 0);
207
- }
208
- await log?.({
209
- tool: key,
210
- tier: tierOf(key, definition, registration.messenger),
211
- ...outcomeOf(result),
212
- startedAt,
213
- finishedAt: Date.now()
214
- }, caller)?.catch(() => void 0);
215
- return result;
216
- };
217
- }, "entryRunner");
218
- var callRunner = /* @__PURE__ */ __name(({ messenger, session, withStore, withServices, defaults, around, targets }) => {
219
- const where = {
220
- profile: defaults.settings.profile,
221
- env: defaults.env,
222
- pictures: defaults.settings.pictureSearch,
223
- reranker: defaults.settings.searchReranker
224
- };
225
- return async (key, definition, args, ctx) => {
226
- const path = commandOf(key, definition).split(" ");
227
- const run = `mcp ${path.join(" ")}`;
228
- try {
229
- const execute = /* @__PURE__ */ __name(async () => {
230
- const syncAllowed = syncAllowedFor(key, defaults);
231
- if (Buffer.byteLength(JSON.stringify(args)) > MAX_BUFFERED_INPUT)
232
- throw new CliError("validation_error", "tool arguments exceed the buffered input limit", {
233
- reason: "input.too-large",
234
- max_bytes: MAX_BUFFERED_INPUT,
235
- retryable: false
236
- });
237
- definition.check?.(args);
238
- if (definition.changesStore)
239
- refuseStoreChange(messenger.app, defaults.env);
240
- refuseLacking(messenger, path);
241
- for (const permission of readKeysForCommand(path)) {
242
- if (levelFor(defaults.settings.permissions ?? {}, permission).level === "deny")
243
- throw new CliError("permission_error", `profile denies ${permission}`, { permission });
244
- }
245
- if (args.sync_first && !syncAllowed)
246
- throw new CliError("permission_error", "messages.sync-first is not allowed by this profile");
247
- if (definition.custom) {
248
- const result2 = await definition.custom(args, { ...defaults, signal: ctx.mcpReq.signal }, ctx);
249
- return answered(result2, definition.outputLimit?.(args, defaults), targets);
250
- }
251
- if (definition.local)
252
- return answered(await definition.local(args, defaults), definition.outputLimit?.(args, defaults), targets);
253
- const { online, stored: local, served } = definition;
254
- const stored = local && (!definition.storedWhen || definition.storedWhen(args)) ? local : void 0;
255
- const result = stored ? await withStore((store, account) => stored(store, account, args, { ...defaults, signal: ctx.mcpReq.signal }, (work) => session.use(run, work)), {
256
- name: run
257
- }) : served && withServices ? await withServices((services, connect) => served(services, args, defaults, connect), { name: run }) : served && messenger.history === "store" ? await withStore((store, account) => served(servicesFor({
258
- ...storeModeDeps(messenger, store, account, defaults.guard),
259
- ...where,
260
- embedders: defaults.embedders
261
- }), args, defaults, (work) => session.use(run, async (adapter, release) => {
262
- try {
263
- return await work(adapter);
264
- } finally {
265
- await release();
266
- }
267
- })), { name: run }) : served ? await session.use(run, (adapter, release) => served(servicesFor(onlineDeps(messenger, adapter, defaults.guard, where)), args, defaults, (work) => (async () => {
268
- try {
269
- return await work(adapter);
270
- } finally {
271
- await release();
272
- }
273
- })())) : await session.use(run, (adapter, release) => online(adapter, args, { ...defaults, release }));
274
- return answered(result, definition.outputLimit?.(args, defaults), targets);
275
- }, "execute");
276
- return around ? await around(key, definition, execute) : await execute();
277
- } catch (error) {
278
- return failed(error, messenger?.app?.errors, effectsOf(definition));
279
- }
280
- };
281
- }, "callRunner");
282
- var outputSchemaOf = /* @__PURE__ */ __name((definition) => {
283
- if (!definition.output)
284
- return looseObject({});
285
- const entity = ENTITIES[definition.output.entity];
286
- return definition.output.list ? listEnvelopeSchema(entity) : itemEnvelopeSchema(entity);
287
- }, "outputSchemaOf");
288
- var Picture = class {
289
- static {
290
- __name(this, "Picture");
291
- }
292
- bytes;
293
- mimeType;
294
- about;
295
- constructor(bytes, mimeType, about) {
296
- this.bytes = bytes;
297
- this.mimeType = mimeType;
298
- this.about = about;
299
- }
300
- };
301
- var BinaryResource = class {
302
- static {
303
- __name(this, "BinaryResource");
304
- }
305
- base64;
306
- mimeType;
307
- uri;
308
- about;
309
- constructor(base64, mimeType, uri, about) {
310
- this.base64 = base64;
311
- this.mimeType = mimeType;
312
- this.uri = uri;
313
- this.about = about;
314
- }
315
- };
316
- var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES, targets) => {
317
- const bounded = /* @__PURE__ */ __name((result) => {
318
- if (maxBytes !== 0 && Buffer.byteLength(JSON.stringify(result.content)) > maxBytes)
319
- throw new CliError("invalid_response", "tool output exceeds its byte limit \u2014 reduce limit or use a narrower request", { reason: "output.too-large", max_bytes: maxBytes, retryable: false });
320
- return result;
321
- }, "bounded");
322
- if (answer === null || Array.isArray(answer) || typeof answer !== "object")
323
- throw new CliError("invalid_response", "tool result must be an object", { retryable: false });
324
- const objectBody = /* @__PURE__ */ __name((value) => {
325
- const serialized = JSON.parse(agentJson(value));
326
- if (serialized === null || Array.isArray(serialized) || typeof serialized !== "object")
327
- throw new CliError("invalid_response", "serialized tool result must be an object", { retryable: false });
328
- return serialized;
329
- }, "objectBody");
330
- if (answer instanceof BinaryResource) {
331
- const about = sealed(answer.about);
332
- return bounded({
333
- structuredContent: objectBody(about),
334
- content: [
335
- { type: "resource", resource: { uri: answer.uri, mimeType: answer.mimeType, blob: answer.base64 } },
336
- { type: "text", text: agentJson(about) }
337
- ]
338
- });
339
- }
340
- if (answer instanceof Picture) {
341
- const about = sealed(answer.about);
342
- return bounded({
343
- structuredContent: objectBody(about),
344
- content: [
345
- { type: "image", data: Buffer.from(answer.bytes).toString("base64"), mimeType: answer.mimeType },
346
- { type: "text", text: agentJson(about) }
347
- ]
348
- });
349
- }
350
- const body = objectBody(sealed(targets ? judgedAnswer(answer, targets) : answer));
351
- return bounded({ content: [{ type: "text", text: JSON.stringify(body) }], structuredContent: body });
352
- }, "answered");
353
- var failed = /* @__PURE__ */ __name((error, errors, effects) => {
354
- const judged = judgedEffects(effects);
355
- const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
356
- return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeBusy(storeDamaged(error)), context))));
357
- }, "failed");
358
-
359
- // 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/mcp/surface.js
360
- var MATCHES = 8;
361
- var ANSWER = answerSchema();
362
- var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
363
- const meta = pipe(looseObject({}), description(`run facts; ${prefix}_tools_search shows the full answer`));
364
- const next = optional(pipe(array(looseObject({})), description("steps to run next: command and args")));
365
- return looseObject(writes ? { item: optional(unknown()), next, meta } : {
366
- items: optional(array(unknown())),
367
- item: optional(unknown()),
368
- page: optional(looseObject({ has_more: boolean() })),
369
- next,
370
- missing: optional(array(looseObject({ field: string(), why: string() }))),
371
- meta
372
- });
373
- }, "agentAnswer");
374
- var listedAs = /* @__PURE__ */ __name((prefix, writes) => {
375
- const checked = toStandardJsonSchema(ANSWER);
376
- const shown = toStandardJsonSchema(agentAnswer(prefix, writes))["~standard"].jsonSchema;
377
- return { "~standard": { ...checked["~standard"], jsonSchema: shown } };
378
- }, "listedAs");
379
- var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
380
- var STOP_WORDS = new Set("a an the to of in on at by for from with into out about and or but is are be been was were it its this that these those which who whom whose what when where how do does did can could should would will my our your their his her them they we you i one some any all each every another other".split(" "));
381
- var wordsOf = /* @__PURE__ */ __name((text) => text.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), "wordsOf");
382
- var stem = /* @__PURE__ */ __name((word) => {
383
- const bare = word.replace(/'s$/u, "");
384
- if (bare.length > 4 && bare.endsWith("ies"))
385
- return `${bare.slice(0, -3)}y`;
386
- for (const ending of ["ing", "ed", "es", "s"])
387
- if (bare.length - ending.length >= 3 && bare.endsWith(ending))
388
- return bare.slice(0, -ending.length);
389
- return bare;
390
- }, "stem");
391
- var sameWord = /* @__PURE__ */ __name((asked, known) => {
392
- if (asked === known)
393
- return true;
394
- const [short, long] = asked.length <= known.length ? [asked, known] : [known, asked];
395
- return short.length >= 3 && long.startsWith(short);
396
- }, "sameWord");
397
- var fieldsOf = /* @__PURE__ */ __name((command, one) => [
398
- [4, [...wordsOf(command), ...(one.aliases ?? []).flatMap(wordsOf)]],
399
- [2, wordsOf(one.title)],
400
- [1, [...wordsOf(one.description), ...(one.keywords ?? []).flatMap(wordsOf), ...Object.keys(one.input.entries)]]
401
- ].map(([weight, words]) => [weight, [...new Set(words.map(stem))]]), "fieldsOf");
402
- var search = /* @__PURE__ */ __name((commands, query) => {
403
- const named = normal(query);
404
- const all = Object.entries(commands);
405
- if (!named)
406
- return all.map((entry) => entry).sort((a, b) => a[0].localeCompare(b[0]));
407
- const words = [
408
- ...new Set(wordsOf(query).filter((word) => word.length > 1 && !STOP_WORDS.has(word)).map(stem))
409
- ];
410
- return all.map((entry) => {
411
- const fields = fieldsOf(entry[0], entry[1]);
412
- const weights = words.map((word) => fields.reduce((best, [weight, known]) => known.some((one) => sameWord(word, one)) ? Math.max(best, weight) : best, 0));
413
- const matched = weights.filter((weight) => weight > 0).length;
414
- const exact = normal(entry[0]) === named || (entry[1].aliases ?? []).some((alias) => normal(alias) === named);
415
- return { entry, matched, rank: (exact ? 1e3 : 0) + matched * 10 + weights.reduce((a, b) => a + b, 0) };
416
- }).filter(({ matched, rank }) => matched > 0 || rank >= 1e3).sort((a, b) => b.rank - a.rank || wordsOf(a.entry[0]).length - wordsOf(b.entry[0]).length || a.entry[0].localeCompare(b.entry[0])).map(({ entry }) => entry);
417
- }, "search");
418
- var nearest = /* @__PURE__ */ __name((commands, asked) => {
419
- const words = normal(asked).split(" ");
420
- return Object.keys(commands).map((one) => ({ one, shared: words.filter((word) => normal(one).split(" ").includes(word)).length })).filter(({ shared }) => shared > 0).sort((a, b) => b.shared - a.shared).slice(0, 3).map(({ one }) => one);
421
- }, "nearest");
422
- var runnableOnly = /* @__PURE__ */ __name((result, offered) => {
423
- const body = result.structuredContent;
424
- if (result.isError || !Array.isArray(body?.next))
425
- return result;
426
- const next = body.next.filter((step) => step.command === void 0 || offered(step.command));
427
- const { next: _, ...rest } = body;
428
- const kept = next.length > 0 ? { ...rest, next } : rest;
429
- return {
430
- ...result,
431
- structuredContent: kept,
432
- content: result.content.map((part) => part.type === "text" ? { ...part, text: JSON.stringify(kept) } : part)
433
- };
434
- }, "runnableOnly");
435
- var takesNothing = /* @__PURE__ */ __name((one) => Object.values(one.input.entries).every((entry) => entry.type === "optional"), "takesNothing");
436
- var sampleOf = /* @__PURE__ */ __name((commands) => {
437
- const reading = Object.entries(commands).filter(([, one]) => !one.writes);
438
- const bare = reading.filter(([, one]) => takesNothing(one));
439
- return bare.find(([command]) => command.endsWith(" list"))?.[0] ?? bare[0]?.[0] ?? reading[0]?.[0] ?? Object.keys(commands)[0] ?? "";
440
- }, "sampleOf");
441
- var registerCommands = /* @__PURE__ */ __name((server, prefix, commands, errors, withheld, isMessenger) => {
442
- const byNormal = new Map(Object.keys(commands).map((command) => [normal(command), command]));
443
- const messenger = isMessenger ?? Object.keys(commands).some((command) => command.split(" ")[0] === "messages");
444
- const tasks = messenger ? '"unread", "send message", "chat members"' : '"list", "show", "change a setting"';
445
- const sample = messenger ? "messages list" : sampleOf(commands);
446
- const untrusted = messenger ? UNTRUSTED : UNTRUSTED_NEUTRAL;
447
- server.registerTool(`${prefix}_tools_search`, {
448
- outputSchema: toStandardJsonSchema(looseObject({})),
449
- title: "Find a command",
450
- description: `Find the command for a task \u2014 ${tasks} \u2014 before calling ${prefix}_read or ${prefix}_write with it. Each match gives its command, whether it writes, its arguments and the shape of its answer. With no words, lists every command and title, without arguments.`,
451
- inputSchema: toStandardJsonSchema(strictObject({ query: optional(pipe(string(), description("words that describe the task"))) })),
452
- annotations: { ...READ, openWorldHint: false, idempotentHint: true }
453
- }, async ({ query }) => {
454
- const found = search(commands, query ?? "");
455
- const items = query?.trim() ? found.slice(0, MATCHES).map(([command, one]) => ({
456
- command,
457
- title: one.title,
458
- description: one.description,
459
- writes: one.writes,
460
- availability: one.availability?.() ?? { available: true },
461
- arguments: toJsonSchema(one.input),
462
- output: toJsonSchema(one.output ?? ANSWER)
463
- })) : found.map(([command, one]) => ({
464
- command,
465
- title: one.title,
466
- writes: one.writes,
467
- availability: one.availability?.() ?? { available: true }
468
- }));
469
- const { next: _paging, ...list } = listOf(`${prefix}_tools_search`, {
470
- items,
471
- limit: Math.max(items.length, query?.trim() ? MATCHES : 1),
472
- has_more: found.length > items.length
473
- });
474
- return answered(list);
475
- });
476
- const callers = {
477
- env: process.env,
478
- client: /* @__PURE__ */ __name(() => server.server.getClientVersion(), "client"),
479
- connectionId: randomUUID()
480
- };
481
- const runner = /* @__PURE__ */ __name((writing) => async ({ command: asked, arguments: given }, ctx) => {
482
- try {
483
- const command = byNormal.get(normal(asked));
484
- const one = command === void 0 ? void 0 : commands[command];
485
- if (command === void 0 || !one) {
486
- withheld?.(normal(asked));
487
- const near = nearest(commands, asked);
488
- throw new CliError("validation_error", `no command "${asked}" here${near.length ? ` \u2014 did you mean ${near.map((name) => `"${name}"`).join(", ")}?` : ""}; ${prefix}_tools_search finds one`);
489
- }
490
- if (one.writes !== writing)
491
- throw new CliError("validation_error", `"${command}" ${writing ? "only reads" : "writes"}: call it with ${prefix}_${writing ? "read" : "write"}`);
492
- const args = writing ? agentArguments(given ?? {}) : given ?? {};
493
- const caller = currentCaller() ?? callerOf(ctx, command.replace(/[ -]/g, "_"), callers);
494
- if (one.checked)
495
- return runnableOnly(await withCaller(caller, () => one.run(args, ctx)), (named) => byNormal.has(normal(named)));
496
- const parsed = safeParse(strictObject(one.input.entries), args);
497
- if (!parsed.success)
498
- throw new CliError("validation_error", `${command}: ${summarize(parsed.issues)}`, {
499
- arguments: toJsonSchema(one.input)
500
- });
501
- return runnableOnly(await withCaller(caller, () => one.run(parsed.output, ctx)), (named) => byNormal.has(normal(named)));
502
- } catch (error) {
503
- return failed(error, errors);
504
- }
505
- }, "runner");
506
- const call = strictObject({
507
- command: pipe(string(), minLength(1), description(`a command ${prefix}_tools_search returned: "${sample}"`)),
508
- arguments: optional(pipe(record(string(), unknown()), description("that command's arguments")))
509
- });
510
- server.registerTool(`${prefix}_read`, {
511
- outputSchema: listedAs(prefix, false),
512
- title: "Run a reading command",
513
- description: `Run one command that only reads, with the arguments ${prefix}_tools_search showed. ${untrusted}`,
514
- inputSchema: toStandardJsonSchema(call),
515
- annotations: READ
516
- }, runner(false));
517
- if (Object.values(commands).some((one) => one.writes))
518
- server.registerTool(`${prefix}_write`, {
519
- outputSchema: listedAs(prefix, true),
520
- title: "Run a writing command",
521
- description: `Run one command that changes something \u2014 ${messenger ? "sends, edits, deletes, joins" : "creates, edits, deletes"} \u2014 with the arguments ${prefix}_tools_search showed. ${untrusted}`,
522
- inputSchema: toStandardJsonSchema(call),
523
- annotations: WRITE
524
- }, runner(true));
525
- }, "registerCommands");
526
- var surfaceCommands = /* @__PURE__ */ __name((tools, registration) => {
527
- const run = entryRunner(registration);
528
- return Object.fromEntries(Object.entries(tools).map(([key, definition]) => [
529
- commandOf(key, definition),
530
- {
531
- title: definition.title,
532
- description: definition.description,
533
- writes: definition.annotations.readOnlyHint !== true,
534
- input: inputOf(definition, syncAllowedFor(key, registration.defaults)),
535
- ...definition.output ? { output: outputSchemaOf(definition) } : {},
536
- checked: true,
537
- run: /* @__PURE__ */ __name((args, ctx) => run(key, definition, args, ctx), "run")
538
- }
539
- ]));
540
- }, "surfaceCommands");
541
- var outputOf = /* @__PURE__ */ __name(({ entity, view }) => answerSchema(ENTITIES[view ? `${entity}.${view}` : entity] ?? unknown()), "outputOf");
542
-
543
- export {
544
- message,
545
- READ,
546
- WRITE,
547
- tool,
548
- chatOf,
549
- tierOf,
550
- outcomeOf,
551
- commandOf,
552
- toolKey,
553
- Picture,
554
- BinaryResource,
555
- answered,
556
- failed,
557
- normal,
558
- search,
559
- registerCommands,
560
- surfaceCommands,
561
- outputOf
562
- };
@@ -1,26 +0,0 @@
1
- import { createRequire as __bundleRequire } from "node:module";
2
- const require = __bundleRequire(import.meta.url);
3
- import {
4
- __name
5
- } from "./chunk-ZVVMGPBJ.js";
6
-
7
- // node_modules/.pnpm/@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/http/time-limit.js
8
- var timeLimit = /* @__PURE__ */ __name((ms) => {
9
- const controller = new AbortController();
10
- const timer = setTimeout(() => controller.abort(new DOMException("The operation timed out.", "TimeoutError")), ms);
11
- timer.unref();
12
- return { signal: controller.signal, clear: /* @__PURE__ */ __name(() => clearTimeout(timer), "clear") };
13
- }, "timeLimit");
14
- var withTimeLimit = /* @__PURE__ */ __name(async (ms, run) => {
15
- const limit = timeLimit(ms);
16
- try {
17
- return await run(limit.signal);
18
- } finally {
19
- limit.clear();
20
- }
21
- }, "withTimeLimit");
22
-
23
- export {
24
- timeLimit,
25
- withTimeLimit
26
- };