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