@wirecat/zoom-cli 0.80.0 → 0.82.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 (201) hide show
  1. package/contracts/wirecat.json +71 -3
  2. package/dist/answers.d.ts +100 -0
  3. package/dist/answers.d.ts.map +1 -1
  4. package/dist/bin/zm.js +2 -2
  5. package/dist/bundle/agent-F4TRJWWS.js +46 -0
  6. package/dist/bundle/{all-profiles-5GOKWOT4.js → all-profiles-RULEKTDQ.js} +64 -22
  7. package/dist/bundle/answer-policy-6XC57AEZ.js +131 -0
  8. package/dist/bundle/{anthropic-NHXMOFYS.js → anthropic-4NAQBZFL.js} +6 -6
  9. package/dist/bundle/{app-server-HFW5Z5PI.js → app-server-VLR42U5L.js} +92 -80
  10. package/dist/bundle/{bun-M5IGY2TG.js → bun-OPDGMZZQ.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-MTP5JJQ2.js → bun-sqlite-HC6X4AOX.js} +7 -7
  12. package/dist/bundle/{chunk-TNL3YQ33.js → chunk-274SLQNW.js} +2 -2
  13. package/dist/bundle/{chunk-5CJ6AAUI.js → chunk-2CI2OEZQ.js} +4 -4
  14. package/dist/bundle/{chunk-GVKZZT7E.js → chunk-2DBF2IIC.js} +7 -78
  15. package/dist/bundle/{chunk-NRVMK5H3.js → chunk-2GP573Q4.js} +15748 -11939
  16. package/dist/bundle/{chunk-4OAR7BGU.js → chunk-2JHVQMVC.js} +1 -1
  17. package/dist/bundle/{chunk-XKLU5KV2.js → chunk-2SWKQ7C4.js} +1 -1
  18. package/dist/bundle/{chunk-W3GZ7JUO.js → chunk-2XBDILVW.js} +1 -1
  19. package/dist/bundle/{chunk-3UONR5HW.js → chunk-3HC5F3P7.js} +1 -1
  20. package/dist/bundle/{chunk-VN7TKMOW.js → chunk-3YM4B2GT.js} +1 -1
  21. package/dist/bundle/{chunk-PCPOO5FS.js → chunk-434YFJAE.js} +2 -2
  22. package/dist/bundle/{chunk-CW6CPQHI.js → chunk-4HLQ2JGK.js} +4 -4
  23. package/dist/bundle/{chunk-RT7C3SSJ.js → chunk-4N7PP76S.js} +1 -1
  24. package/dist/bundle/{chunk-JJX4HKDV.js → chunk-52Y4ETKU.js} +4 -4
  25. package/dist/bundle/{chunk-BIKHHFD2.js → chunk-5HAUK3I4.js} +2166 -2760
  26. package/dist/bundle/{chunk-W2QDYMAM.js → chunk-5KYQ53EF.js} +13 -9
  27. package/dist/bundle/{chunk-BW5JEOBE.js → chunk-5TU7Y5UW.js} +12 -12
  28. package/dist/bundle/{chunk-P2JTVRGU.js → chunk-66ALX4ZI.js} +168 -168
  29. package/dist/bundle/{chunk-EPIA2UUM.js → chunk-676C2LE6.js} +12 -12
  30. package/dist/bundle/{chunk-BNEJKGG7.js → chunk-6CWL5BKG.js} +78 -76
  31. package/dist/bundle/{chunk-TDBVM2SS.js → chunk-6QYZP4E2.js} +3 -3
  32. package/dist/bundle/{chunk-JXSEH64A.js → chunk-6VK332XS.js} +3 -3
  33. package/dist/bundle/{chunk-W7M4JYEE.js → chunk-73MOMNLL.js} +1 -1
  34. package/dist/bundle/{chunk-K672XJ2P.js → chunk-7QPIUMUG.js} +12 -12
  35. package/dist/bundle/{chunk-CWCDCNXA.js → chunk-7UVDPRFK.js} +6 -6
  36. package/dist/bundle/{chunk-RMX2WPWS.js → chunk-A6EZK5RG.js} +4 -4
  37. package/dist/bundle/{chunk-ONJPUFLX.js → chunk-AC6VJNMJ.js} +1 -1
  38. package/dist/bundle/{chunk-QIK2IBJ4.js → chunk-ACI4YIEH.js} +23 -7
  39. package/dist/bundle/{chunk-UX4JZMA4.js → chunk-AIKFOBDO.js} +278 -59
  40. package/dist/bundle/{chunk-GCPO7T2X.js → chunk-ASBDFXLS.js} +3 -3
  41. package/dist/bundle/{chunk-O4ZBFATF.js → chunk-B32KZRQM.js} +12 -12
  42. package/dist/bundle/{chunk-5RVXXDN7.js → chunk-BBGJQMRI.js} +1 -1
  43. package/dist/bundle/chunk-BDKVOU3I.js +52 -0
  44. package/dist/bundle/{chunk-GCUOZ2OA.js → chunk-BP4FYANF.js} +6 -6
  45. package/dist/bundle/{chunk-XTCAWNBP.js → chunk-DCYFT3FR.js} +4 -4
  46. package/dist/bundle/{chunk-FPUGMDJV.js → chunk-DNCLQPOM.js} +1 -1
  47. package/dist/bundle/{chunk-PKW3TPNP.js → chunk-DSZYABYL.js} +38 -19
  48. package/dist/bundle/{chunk-6MDL2LZA.js → chunk-E745WZKY.js} +8 -8
  49. package/dist/bundle/chunk-EGTCQKHV.js +340 -0
  50. package/dist/bundle/chunk-EQG3PIH2.js +108 -0
  51. package/dist/bundle/{chunk-ZPZT46O6.js → chunk-ESN3W2MZ.js} +48 -12
  52. package/dist/bundle/{chunk-7U5X37TE.js → chunk-G46WJ7YO.js} +6 -6
  53. package/dist/bundle/{chunk-L6FM5RQY.js → chunk-G6PETRMV.js} +3 -3
  54. package/dist/bundle/chunk-GBHMT2IU.js +755 -0
  55. package/dist/bundle/{chunk-6QCBTBDA.js → chunk-GGMAIIVE.js} +1 -1
  56. package/dist/bundle/{chunk-6I4C4ZFT.js → chunk-GTKPMYK7.js} +2 -2
  57. package/dist/bundle/{chunk-N5YUHN6S.js → chunk-GWGHH56B.js} +12 -12
  58. package/dist/bundle/{chunk-5XO2AY6D.js → chunk-HC6VN5CO.js} +10 -10
  59. package/dist/bundle/{chunk-ARL2TTPZ.js → chunk-HP7A2ZOP.js} +9 -9
  60. package/dist/bundle/chunk-HZENBDW2.js +209 -0
  61. package/dist/bundle/{chunk-ST3ZB7LS.js → chunk-IANKXHSE.js} +1 -1
  62. package/dist/bundle/{chunk-GGKEQQME.js → chunk-ICPJT672.js} +13 -9
  63. package/dist/bundle/chunk-JQ54DYAQ.js +80 -0
  64. package/dist/bundle/chunk-K5JGJIV2.js +640 -0
  65. package/dist/bundle/{chunk-DYRISFHZ.js → chunk-KJ6USQDZ.js} +19 -9
  66. package/dist/bundle/{chunk-TMYZKDQ7.js → chunk-KKFY23AK.js} +65 -65
  67. package/dist/bundle/chunk-KQPUVXKX.js +84 -0
  68. package/dist/bundle/{chunk-BPSURRAD.js → chunk-KVJ3I7UL.js} +43 -64
  69. package/dist/bundle/{chunk-NXFKZFTC.js → chunk-KWU46LNK.js} +3 -3
  70. package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
  71. package/dist/bundle/{chunk-YAA2D6RP.js → chunk-L75SMSJR.js} +5 -5
  72. package/dist/bundle/{chunk-OXPHJEJ2.js → chunk-LAYYO4WD.js} +3 -3
  73. package/dist/bundle/{chunk-6PIXP5IH.js → chunk-LEKKTJKK.js} +40 -26
  74. package/dist/bundle/{chunk-3AOESMW6.js → chunk-M7H4MCAX.js} +18 -259
  75. package/dist/bundle/{chunk-DZ6H3YJH.js → chunk-MAJJ4PG3.js} +19 -16
  76. package/dist/bundle/{chunk-G5VH4WUF.js → chunk-MQLPZBMQ.js} +2 -2
  77. package/dist/bundle/{chunk-3Z7CFQTI.js → chunk-N3JLO63O.js} +1 -1
  78. package/dist/bundle/{chunk-NMETTKCV.js → chunk-N46F72AF.js} +14 -14
  79. package/dist/bundle/{chunk-A3TUG2DP.js → chunk-NB7EOAUZ.js} +36 -1
  80. package/dist/bundle/{chunk-BRMV33MO.js → chunk-NEMX3UNN.js} +4 -4
  81. package/dist/bundle/{chunk-6CDMGT6Q.js → chunk-OBXQLFT5.js} +2 -2
  82. package/dist/bundle/{chunk-HH7GR6TN.js → chunk-OGNO35A2.js} +6 -6
  83. package/dist/bundle/{chunk-Q6MISDKJ.js → chunk-OIPYBF43.js} +3 -3
  84. package/dist/bundle/{chunk-6LY4LBSD.js → chunk-OO4TRVPB.js} +7 -7
  85. package/dist/bundle/{chunk-CHEHK6IW.js → chunk-OQFQ77AY.js} +214 -118
  86. package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
  87. package/dist/bundle/{chunk-Q5LUGY2V.js → chunk-PMUPN6JW.js} +9 -9
  88. package/dist/bundle/chunk-PSKTMMCO.js +561 -0
  89. package/dist/bundle/{chunk-U5N2PKKM.js → chunk-PWVJUIDQ.js} +2 -2
  90. package/dist/bundle/{chunk-475P3LWG.js → chunk-Q7ICVP25.js} +1 -1
  91. package/dist/bundle/{chunk-JGSVWLL2.js → chunk-QG6PILDO.js} +2 -2
  92. package/dist/bundle/{chunk-5K54M6RD.js → chunk-QPHBK63S.js} +1 -1
  93. package/dist/bundle/{chunk-RFXJLG5V.js → chunk-QVSL5WJ7.js} +5173 -3077
  94. package/dist/bundle/{chunk-IQWBGMCR.js → chunk-QVYAV7F2.js} +4 -4
  95. package/dist/bundle/{chunk-XIHENZW6.js → chunk-R2B6PUVI.js} +4 -4
  96. package/dist/bundle/{chunk-MH4L5LL6.js → chunk-RQOZBTNI.js} +16 -3
  97. package/dist/bundle/{chunk-FSLR2YGR.js → chunk-T7IAWEBU.js} +7 -7
  98. package/dist/bundle/{chunk-D4HKTC2T.js → chunk-TKNM22OH.js} +2 -2
  99. package/dist/bundle/{chunk-EI37UXDR.js → chunk-TKVBFJ5C.js} +1 -1
  100. package/dist/bundle/{chunk-O3DYRCIT.js → chunk-TXDR6YSF.js} +1 -1
  101. package/dist/bundle/{chunk-CWXOXIWS.js → chunk-TY7NDMFY.js} +1 -1
  102. package/dist/bundle/{chunk-Z3CPZ4I4.js → chunk-UAWSINMC.js} +306 -306
  103. package/dist/bundle/{chunk-4F7Q5CET.js → chunk-UKAAAOPC.js} +31 -180
  104. package/dist/bundle/{chunk-XL4ND7CZ.js → chunk-UL2PXLKT.js} +26 -26
  105. package/dist/bundle/{chunk-GRYXOSN6.js → chunk-UQCTXZEP.js} +10 -10
  106. package/dist/bundle/{chunk-E3JVLVVB.js → chunk-UR5DBODY.js} +37 -30
  107. package/dist/bundle/{chunk-SUG6YGAF.js → chunk-V5EJSF2B.js} +237 -167
  108. package/dist/bundle/{chunk-HGSBLY6M.js → chunk-VB72LTSZ.js} +12 -12
  109. package/dist/bundle/{chunk-2XZ2YKW4.js → chunk-VB7FZOYX.js} +2 -100
  110. package/dist/bundle/{chunk-PMO2Z6DQ.js → chunk-VS6WURLX.js} +3 -3
  111. package/dist/bundle/{chunk-5QXQIZJY.js → chunk-VZ5PPYDG.js} +3 -4
  112. package/dist/bundle/{chunk-YR5TRWT2.js → chunk-W5QHB53X.js} +287 -580
  113. package/dist/bundle/{chunk-2P6MQH4V.js → chunk-WMANRJR5.js} +6 -6
  114. package/dist/bundle/chunk-WOPVBRPV.js +29 -0
  115. package/dist/bundle/{chunk-W32HK7KG.js → chunk-XQ2WL3HB.js} +2 -2
  116. package/dist/bundle/{chunk-FIJREKLA.js → chunk-XQQVMECZ.js} +3 -3
  117. package/dist/bundle/{chunk-75JW7X2W.js → chunk-Y6PVS55U.js} +71 -61
  118. package/dist/bundle/{chunk-EMYRUJCV.js → chunk-YJXJJ2XP.js} +8 -8
  119. package/dist/bundle/{chunk-L2TURFT6.js → chunk-YY7XKHDY.js} +10 -3
  120. package/dist/bundle/chunk-ZED2CJW5.js +353 -0
  121. package/dist/bundle/chunk-ZOYOXWJB.js +746 -0
  122. package/dist/bundle/{cli-QNBYDOKV.js → cli-U4O5XB7J.js} +171 -124
  123. package/dist/bundle/command-contract-FBTK6GQX.js +45 -0
  124. package/dist/bundle/{command-server-entry-WMA4SWJ5.js → command-server-entry-KKH6ZWJV.js} +35 -35
  125. package/dist/bundle/config-FRJSIZNN.js +118 -0
  126. package/dist/bundle/{decode-7PXUXNIP.js → decode-TPCNXEK4.js} +6 -6
  127. package/dist/bundle/{dispatch-AWDROXWN.js → dispatch-FKMIPCPQ.js} +9 -9
  128. package/dist/bundle/{dist-TSBH4FOU.js → dist-7CLBCYZN.js} +23 -21
  129. package/dist/bundle/dist-PAKDDIBT.js +191 -0
  130. package/dist/bundle/{echarts-WIDIUEO6.js → echarts-O3TNDAXJ.js} +2 -2
  131. package/dist/bundle/{embed-EIRVQF5E.js → embed-WCJSFVSK.js} +7 -7
  132. package/dist/bundle/{embedder-MXPM6OXK.js → embedder-TBBUPXBX.js} +10 -10
  133. package/dist/bundle/{failure-JZW73RP7.js → failure-XTWBYI2A.js} +3 -3
  134. package/dist/bundle/first-run-ELEMFW42.js +29 -0
  135. package/dist/bundle/first-screen-DIOBWMKP.js +46 -0
  136. package/dist/bundle/{folders-TGFOE7DY.js → folders-LXOL4N4S.js} +5 -5
  137. package/dist/bundle/{instructions-D5LNE6NJ.js → instructions-AMH5RWVJ.js} +1 -1
  138. package/dist/bundle/{main-OHW5Z56X.js → main-YAA7WQ23.js} +24 -24
  139. package/dist/bundle/{mcp-RGNRW77S.js → mcp-5HFPWC3W.js} +2 -2
  140. package/dist/bundle/meeting-combined-UXCF4SJ3.js +26 -0
  141. package/dist/bundle/meeting-model-3BZJ3EQP.js +26 -0
  142. package/dist/bundle/{meeting-semantic-FYOVY4S2.js → meeting-semantic-3HU7I2SJ.js} +8 -8
  143. package/dist/bundle/{meetings-WI4SXPBJ.js → meetings-XWMB6FOH.js} +7 -7
  144. package/dist/bundle/{node-UEWUFR7N.js → node-EGMCBAO7.js} +2 -2
  145. package/dist/bundle/{node-sqlite-FJWKJHYU.js → node-sqlite-IJBWENFX.js} +8 -8
  146. package/dist/bundle/oauth-SZDDAP7A.js +20 -0
  147. package/dist/bundle/{open-EFYTWUGC.js → open-NS3TMKZX.js} +6 -6
  148. package/dist/bundle/openai-4DN6WI3B.js +28 -0
  149. package/dist/bundle/{output-file-J4SU6X4I.js → output-file-2UB5JP3R.js} +6 -6
  150. package/dist/bundle/{process-U5PLNIDC.js → process-SGHEN6MQ.js} +1 -1
  151. package/dist/bundle/{program-3JICCSA6.js → program-GVCGZP27.js} +170 -160
  152. package/dist/bundle/{prompt-YPDMSOKC.js → prompt-HJFMPFVC.js} +6 -6
  153. package/dist/bundle/public-C2ZB2AGQ.js +198 -0
  154. package/dist/bundle/{recognize-Z2SSWUKH.js → recognize-2SEI5PPM.js} +5 -5
  155. package/dist/bundle/{remote-R5HMDHOG.js → remote-2DMS74XE.js} +11 -11
  156. package/dist/bundle/{rerank-6NGBEMQ2.js → rerank-H6GCYVIA.js} +8 -8
  157. package/dist/bundle/run-log-QU26SUZP.js +145 -0
  158. package/dist/bundle/{serve-CU3RMWU7.js → serve-ODVRPFJO.js} +11 -11
  159. package/dist/bundle/server-NBPF6IDZ.js +95 -0
  160. package/dist/bundle/{server-SOQSVX2Q.js → server-PCLIO24L.js} +82 -69
  161. package/dist/bundle/{services-LROZ3RDT.js → services-4QAPXBLO.js} +60 -54
  162. package/dist/bundle/{speech-AS77HFIF.js → speech-MA6ZT3WE.js} +28 -28
  163. package/dist/bundle/{sqlite-runtime-U25NS6BK.js → sqlite-runtime-PVMAUXRN.js} +7 -7
  164. package/dist/bundle/{state-CPEVKK66.js → state-QFMTYUME.js} +7 -7
  165. package/dist/bundle/{store-6CHRMJM7.js → store-25OTAQC3.js} +31 -24
  166. package/dist/bundle/{store-QKHCZOYR.js → store-F724QIKJ.js} +34 -26
  167. package/dist/bundle/store-connection-OGPXANGB.js +111 -0
  168. package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +83 -0
  169. package/dist/bundle/{streaming-VDJOYGMO.js → streaming-S22C4DG5.js} +7 -7
  170. package/dist/bundle/surface-7PXHWCF6.js +81 -0
  171. package/dist/bundle/{tokens-JBN2OHQB.js → tokens-NLUHA2DW.js} +11 -10
  172. package/dist/bundle/zm.js +9 -9
  173. package/dist/bundle/{zoom-app-Q4IKYNG3.js → zoom-app-YWFB367P.js} +8 -8
  174. package/dist/commands.d.ts +1 -0
  175. package/dist/commands.d.ts.map +1 -1
  176. package/dist/commands.js +8 -2
  177. package/dist/commands.js.map +1 -1
  178. package/dist/setup-commands.d.ts +1 -1
  179. package/dist/setup-commands.d.ts.map +1 -1
  180. package/dist/setup-commands.js +31 -5
  181. package/dist/setup-commands.js.map +1 -1
  182. package/dist/version.d.ts +1 -1
  183. package/dist/version.js +1 -1
  184. package/dist/zoom-api/types.d.ts +5 -0
  185. package/dist/zoom-api/types.d.ts.map +1 -1
  186. package/package.json +3 -3
  187. package/dist/bundle/answer-policy-7PYXHK2I.js +0 -122
  188. package/dist/bundle/chunk-3BTRJYIT.js +0 -729
  189. package/dist/bundle/chunk-M4LAF627.js +0 -719
  190. package/dist/bundle/command-contract-CT6MV6YG.js +0 -45
  191. package/dist/bundle/config-ZFQFDEVL.js +0 -109
  192. package/dist/bundle/first-run-K6EHRAIM.js +0 -29
  193. package/dist/bundle/first-screen-C6AF4KT4.js +0 -45
  194. package/dist/bundle/meeting-combined-3OKFXZNA.js +0 -26
  195. package/dist/bundle/meeting-model-4XNF725D.js +0 -26
  196. package/dist/bundle/oauth-KOONTGLW.js +0 -20
  197. package/dist/bundle/openai-6Y2JRDNY.js +0 -28
  198. package/dist/bundle/run-log-LG3TI3WI.js +0 -136
  199. package/dist/bundle/server-X7JYRMKX.js +0 -85
  200. package/dist/bundle/store-connection-FCDVOPWB.js +0 -102
  201. package/dist/bundle/store-maintenance-command-6HVOAHOZ.js +0 -77
@@ -619,6 +619,17 @@
619
619
  "local": "read"
620
620
  }
621
621
  },
622
+ {
623
+ "path": [
624
+ "session",
625
+ "list"
626
+ ],
627
+ "summary": "list the profiles on this computer and the state of each one's saved Zoom login",
628
+ "effects": {
629
+ "remote": "none",
630
+ "local": "read"
631
+ }
632
+ },
622
633
  {
623
634
  "path": [
624
635
  "session",
@@ -1295,8 +1306,17 @@
1295
1306
  },
1296
1307
  "desktop": {
1297
1308
  "tagline": "Zoom transcripts and recordings, searchable",
1298
- "profiles": null,
1309
+ "profiles": {
1310
+ "args": [
1311
+ "session",
1312
+ "list",
1313
+ "--no-record",
1314
+ "--json"
1315
+ ],
1316
+ "shape": "items"
1317
+ },
1299
1318
  "doctor": [
1319
+ "{profile}",
1300
1320
  "doctor",
1301
1321
  "--record",
1302
1322
  "--json"
@@ -1323,6 +1343,7 @@
1323
1343
  },
1324
1344
  "search": null,
1325
1345
  "setup": [
1346
+ "{profile}",
1326
1347
  "session",
1327
1348
  "start"
1328
1349
  ],
@@ -1400,12 +1421,21 @@
1400
1421
  "tasks": null,
1401
1422
  "sync": {
1402
1423
  "run": [
1424
+ "{profile}",
1403
1425
  "meetings",
1404
1426
  "sync",
1405
1427
  "--record",
1406
1428
  "--json"
1407
1429
  ],
1408
- "last": null,
1430
+ "last": [
1431
+ "runs",
1432
+ "list",
1433
+ "command:\"meetings sync\" status:success",
1434
+ "--limit",
1435
+ "50",
1436
+ "--no-record",
1437
+ "--json"
1438
+ ],
1409
1439
  "lastShape": "runs",
1410
1440
  "what": "meetings and transcripts",
1411
1441
  "note": null
@@ -1422,6 +1452,44 @@
1422
1452
  "app": "zoom-cli",
1423
1453
  "env": "ZM"
1424
1454
  },
1425
- "settings": null
1455
+ "settings": null,
1456
+ "accountRemove": {
1457
+ "signOut": [
1458
+ "{profile}",
1459
+ "session",
1460
+ "end",
1461
+ "--record",
1462
+ "--json"
1463
+ ],
1464
+ "remove": {
1465
+ "minVersion": "0.0.0",
1466
+ "keepData": [
1467
+ "{profile}",
1468
+ "account",
1469
+ "remove",
1470
+ "--keep-data",
1471
+ "--record",
1472
+ "--json"
1473
+ ],
1474
+ "deleteData": [
1475
+ "{profile}",
1476
+ "account",
1477
+ "remove",
1478
+ "--delete-data",
1479
+ "--record",
1480
+ "--json"
1481
+ ],
1482
+ "dryRun": "--dry-run",
1483
+ "confirm": "--yes"
1484
+ },
1485
+ "removes": [
1486
+ "signIn"
1487
+ ],
1488
+ "keeps": [
1489
+ "settings",
1490
+ "data",
1491
+ "listed"
1492
+ ]
1493
+ }
1426
1494
  }
1427
1495
  }
package/dist/answers.d.ts CHANGED
@@ -88,6 +88,31 @@ export declare const answerSchema: v.UnionSchema<[v.StrictObjectSchema<{
88
88
  }, undefined>, undefined>;
89
89
  readonly ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
90
90
  }, undefined>, undefined>;
91
+ readonly model_run: v.OptionalSchema<v.StrictObjectSchema<{
92
+ readonly provider: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
93
+ readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
94
+ readonly endpoint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
95
+ readonly sent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
96
+ readonly done: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
97
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
98
+ readonly usage: v.OptionalSchema<v.StrictObjectSchema<{
99
+ readonly input: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
100
+ readonly output: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
101
+ }, undefined>, undefined>;
102
+ readonly cost_usd: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
103
+ readonly ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
104
+ }, undefined>, undefined>;
105
+ readonly query: v.OptionalSchema<v.StrictObjectSchema<{
106
+ readonly chat: v.OptionalSchema<v.StrictObjectSchema<{
107
+ readonly word: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
108
+ readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
109
+ readonly title: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>, undefined>;
110
+ }, undefined>, undefined>;
111
+ readonly respelled: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
112
+ readonly word: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
113
+ readonly tried: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
114
+ }, undefined>, undefined>, undefined>;
115
+ }, undefined>, undefined>;
91
116
  }, undefined>;
92
117
  }, undefined>, v.StrictObjectSchema<{
93
118
  readonly item: v.GenericSchema;
@@ -157,6 +182,31 @@ export declare const answerSchema: v.UnionSchema<[v.StrictObjectSchema<{
157
182
  }, undefined>, undefined>;
158
183
  readonly ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
159
184
  }, undefined>, undefined>;
185
+ readonly model_run: v.OptionalSchema<v.StrictObjectSchema<{
186
+ readonly provider: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
187
+ readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
188
+ readonly endpoint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
189
+ readonly sent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
190
+ readonly done: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
191
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
192
+ readonly usage: v.OptionalSchema<v.StrictObjectSchema<{
193
+ readonly input: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
194
+ readonly output: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
195
+ }, undefined>, undefined>;
196
+ readonly cost_usd: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
197
+ readonly ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
198
+ }, undefined>, undefined>;
199
+ readonly query: v.OptionalSchema<v.StrictObjectSchema<{
200
+ readonly chat: v.OptionalSchema<v.StrictObjectSchema<{
201
+ readonly word: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
202
+ readonly chat_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
203
+ readonly title: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>, undefined>;
204
+ }, undefined>, undefined>;
205
+ readonly respelled: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
206
+ readonly word: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
207
+ readonly tried: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
208
+ }, undefined>, undefined>, undefined>;
209
+ }, undefined>, undefined>;
160
210
  }, undefined>;
161
211
  }, undefined>], undefined>;
162
212
  export declare const readMetadata: (now?: () => number, runId?: string) => (() => Meta);
@@ -235,6 +285,31 @@ export declare const toolAnswer: (value: unknown, meta: Meta, registry?: Command
235
285
  } | undefined;
236
286
  ms: number;
237
287
  } | undefined;
288
+ model_run?: {
289
+ provider: string;
290
+ model: string;
291
+ endpoint: string;
292
+ sent: number;
293
+ done: number;
294
+ left: number;
295
+ usage?: {
296
+ input: number;
297
+ output: number;
298
+ } | undefined;
299
+ cost_usd: number | null;
300
+ ms: number;
301
+ } | undefined;
302
+ query?: {
303
+ chat?: {
304
+ word: string;
305
+ chat_id: string;
306
+ title: string | null;
307
+ } | undefined;
308
+ respelled?: {
309
+ word: string;
310
+ tried: string[];
311
+ }[] | undefined;
312
+ } | undefined;
238
313
  };
239
314
  } | {
240
315
  item: unknown;
@@ -291,6 +366,31 @@ export declare const toolAnswer: (value: unknown, meta: Meta, registry?: Command
291
366
  } | undefined;
292
367
  ms: number;
293
368
  } | undefined;
369
+ model_run?: {
370
+ provider: string;
371
+ model: string;
372
+ endpoint: string;
373
+ sent: number;
374
+ done: number;
375
+ left: number;
376
+ usage?: {
377
+ input: number;
378
+ output: number;
379
+ } | undefined;
380
+ cost_usd: number | null;
381
+ ms: number;
382
+ } | undefined;
383
+ query?: {
384
+ chat?: {
385
+ word: string;
386
+ chat_id: string;
387
+ title: string | null;
388
+ } | undefined;
389
+ respelled?: {
390
+ word: string;
391
+ tried: string[];
392
+ }[] | undefined;
393
+ } | undefined;
294
394
  };
295
395
  };
296
396
  //# sourceMappingURL=answers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"answers.d.ts","sourceRoot":"","sources":["../src/answers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAuB,CAAA;AAEhD,eAAO,MAAM,YAAY,SAAS,MAAM,MAAM,UAAoB,MAAM,KAAkB,CAAC,MAAM,IAAI,CAGpG,CAAA;AAED,8GAA8G;AAC9G,eAAO,MAAM,UAAU,UAAW,OAAO,QAAQ,IAAI,aAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAexE,CAAA"}
1
+ {"version":3,"file":"answers.d.ts","sourceRoot":"","sources":["../src/answers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAuB,CAAA;AAEhD,eAAO,MAAM,YAAY,SAAS,MAAM,MAAM,UAAoB,MAAM,KAAkB,CAAC,MAAM,IAAI,CAGpG,CAAA;AAED,8GAA8G;AAC9G,eAAO,MAAM,UAAU,UAAW,OAAO,QAAQ,IAAI,aAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAexE,CAAA"}
package/dist/bin/zm.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.80.0\n")
12
+ process.stdout.write("0.82.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -28,7 +28,7 @@ if (
28
28
  : next(specifier, context),
29
29
  })
30
30
  }
31
- const chunks = ["../bundle/all-profiles-5GOKWOT4.js","../bundle/answer-policy-7PYXHK2I.js","../bundle/anthropic-NHXMOFYS.js","../bundle/app-server-HFW5Z5PI.js","../bundle/bun-M5IGY2TG.js","../bundle/bun-sqlite-MTP5JJQ2.js","../bundle/cli-QNBYDOKV.js","../bundle/command-contract-CT6MV6YG.js","../bundle/command-server-entry-WMA4SWJ5.js","../bundle/config-ZFQFDEVL.js","../bundle/decode-7PXUXNIP.js","../bundle/dispatch-AWDROXWN.js","../bundle/dist-TSBH4FOU.js","../bundle/dist-XUFQCJXW.js","../bundle/echarts-WIDIUEO6.js","../bundle/embed-EIRVQF5E.js","../bundle/embedder-MXPM6OXK.js","../bundle/failure-JZW73RP7.js","../bundle/first-run-K6EHRAIM.js","../bundle/first-screen-C6AF4KT4.js","../bundle/folders-TGFOE7DY.js","../bundle/instructions-D5LNE6NJ.js","../bundle/main-OHW5Z56X.js","../bundle/mcp-RGNRW77S.js","../bundle/meeting-combined-3OKFXZNA.js","../bundle/meeting-model-4XNF725D.js","../bundle/meeting-semantic-FYOVY4S2.js","../bundle/meetings-WI4SXPBJ.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-UEWUFR7N.js","../bundle/node-sqlite-FJWKJHYU.js","../bundle/oauth-KOONTGLW.js","../bundle/open-EFYTWUGC.js","../bundle/openai-6Y2JRDNY.js","../bundle/output-file-J4SU6X4I.js","../bundle/process-U5PLNIDC.js","../bundle/program-3JICCSA6.js","../bundle/prompt-YPDMSOKC.js","../bundle/recognize-Z2SSWUKH.js","../bundle/remote-R5HMDHOG.js","../bundle/rerank-6NGBEMQ2.js","../bundle/run-log-LG3TI3WI.js","../bundle/serve-CU3RMWU7.js","../bundle/server-SOQSVX2Q.js","../bundle/server-X7JYRMKX.js","../bundle/services-LROZ3RDT.js","../bundle/speech-AS77HFIF.js","../bundle/sqlite-runtime-U25NS6BK.js","../bundle/state-CPEVKK66.js","../bundle/store-6CHRMJM7.js","../bundle/store-QKHCZOYR.js","../bundle/store-connection-FCDVOPWB.js","../bundle/store-maintenance-command-6HVOAHOZ.js","../bundle/streaming-VDJOYGMO.js","../bundle/tokens-JBN2OHQB.js","../bundle/zoom-app-Q4IKYNG3.js"]
31
+ const chunks = ["../bundle/agent-F4TRJWWS.js","../bundle/all-profiles-RULEKTDQ.js","../bundle/answer-policy-6XC57AEZ.js","../bundle/anthropic-4NAQBZFL.js","../bundle/app-server-VLR42U5L.js","../bundle/bun-OPDGMZZQ.js","../bundle/bun-sqlite-HC6X4AOX.js","../bundle/cli-U4O5XB7J.js","../bundle/command-contract-FBTK6GQX.js","../bundle/command-server-entry-KKH6ZWJV.js","../bundle/config-FRJSIZNN.js","../bundle/decode-TPCNXEK4.js","../bundle/dispatch-FKMIPCPQ.js","../bundle/dist-7CLBCYZN.js","../bundle/dist-PAKDDIBT.js","../bundle/dist-XUFQCJXW.js","../bundle/echarts-O3TNDAXJ.js","../bundle/embed-WCJSFVSK.js","../bundle/embedder-TBBUPXBX.js","../bundle/failure-XTWBYI2A.js","../bundle/first-run-ELEMFW42.js","../bundle/first-screen-DIOBWMKP.js","../bundle/folders-LXOL4N4S.js","../bundle/instructions-AMH5RWVJ.js","../bundle/main-YAA7WQ23.js","../bundle/mcp-5HFPWC3W.js","../bundle/meeting-combined-UXCF4SJ3.js","../bundle/meeting-model-3BZJ3EQP.js","../bundle/meeting-semantic-3HU7I2SJ.js","../bundle/meetings-XWMB6FOH.js","../bundle/node-EGMCBAO7.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-IJBWENFX.js","../bundle/oauth-SZDDAP7A.js","../bundle/open-NS3TMKZX.js","../bundle/openai-4DN6WI3B.js","../bundle/output-file-2UB5JP3R.js","../bundle/process-SGHEN6MQ.js","../bundle/program-GVCGZP27.js","../bundle/prompt-HJFMPFVC.js","../bundle/public-C2ZB2AGQ.js","../bundle/recognize-2SEI5PPM.js","../bundle/remote-2DMS74XE.js","../bundle/rerank-H6GCYVIA.js","../bundle/run-log-QU26SUZP.js","../bundle/serve-ODVRPFJO.js","../bundle/server-NBPF6IDZ.js","../bundle/server-PCLIO24L.js","../bundle/services-4QAPXBLO.js","../bundle/speech-MA6ZT3WE.js","../bundle/sqlite-runtime-PVMAUXRN.js","../bundle/state-QFMTYUME.js","../bundle/store-25OTAQC3.js","../bundle/store-F724QIKJ.js","../bundle/store-connection-OGPXANGB.js","../bundle/store-maintenance-command-2CM7LLNQ.js","../bundle/streaming-S22C4DG5.js","../bundle/surface-7PXHWCF6.js","../bundle/tokens-NLUHA2DW.js","../bundle/zoom-app-YWFB367P.js"]
32
32
  if (((words) => words
33
33
  .filter((word) => !word.startsWith("-"))
34
34
  .slice(0, 2)
@@ -0,0 +1,46 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ runCommandForAgent,
5
+ toolsFromCommands
6
+ } from "./chunk-W5QHB53X.js";
7
+ import "./chunk-BDKVOU3I.js";
8
+ import "./chunk-EQG3PIH2.js";
9
+ import "./chunk-PL5P7UKW.js";
10
+ import "./chunk-EGTCQKHV.js";
11
+ import "./chunk-GBHMT2IU.js";
12
+ import "./chunk-WOPVBRPV.js";
13
+ import "./chunk-V5EJSF2B.js";
14
+ import "./chunk-2CI2OEZQ.js";
15
+ import "./chunk-TKNM22OH.js";
16
+ import "./chunk-T7IAWEBU.js";
17
+ import "./chunk-3YM4B2GT.js";
18
+ import "./chunk-QVYAV7F2.js";
19
+ import "./chunk-KJ6USQDZ.js";
20
+ import "./chunk-G6PETRMV.js";
21
+ import "./chunk-BP4FYANF.js";
22
+ import "./chunk-6QYZP4E2.js";
23
+ import "./chunk-ACI4YIEH.js";
24
+ import "./chunk-4HLQ2JGK.js";
25
+ import "./chunk-JQ54DYAQ.js";
26
+ import "./chunk-ZOYOXWJB.js";
27
+ import "./chunk-WMANRJR5.js";
28
+ import "./chunk-GTKPMYK7.js";
29
+ import "./chunk-DSZYABYL.js";
30
+ import "./chunk-73MOMNLL.js";
31
+ import "./chunk-LAYYO4WD.js";
32
+ import "./chunk-E745WZKY.js";
33
+ import "./chunk-274SLQNW.js";
34
+ import "./chunk-KKFY23AK.js";
35
+ import "./chunk-UAWSINMC.js";
36
+ import "./chunk-DNCLQPOM.js";
37
+ import "./chunk-6CWL5BKG.js";
38
+ import "./chunk-ESN3W2MZ.js";
39
+ import "./chunk-Y5E2WNWB.js";
40
+ import "./chunk-IANKXHSE.js";
41
+ import "./chunk-BBGJQMRI.js";
42
+ import "./chunk-ZVVMGPBJ.js";
43
+ export {
44
+ runCommandForAgent,
45
+ toolsFromCommands
46
+ };
@@ -1,35 +1,38 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
- CALLER_META_KEY,
5
- PROXY_CLIENT_NAME,
6
4
  StdioServerTransport,
7
5
  answeredWire,
8
- callerOf,
9
6
  serveStdio
10
- } from "./chunk-2XZ2YKW4.js";
7
+ } from "./chunk-VB7FZOYX.js";
8
+ import {
9
+ CALLER_META_KEY,
10
+ PROXY_CLIENT_NAME,
11
+ callerOf
12
+ } from "./chunk-EQG3PIH2.js";
11
13
  import {
14
+ InMemoryTransport,
12
15
  McpServer
13
- } from "./chunk-5D4AEUVA.js";
14
- import "./chunk-FSLR2YGR.js";
15
- import "./chunk-6I4C4ZFT.js";
16
- import "./chunk-W7M4JYEE.js";
17
- import "./chunk-FPUGMDJV.js";
18
- import "./chunk-BNEJKGG7.js";
16
+ } from "./chunk-PL5P7UKW.js";
17
+ import "./chunk-T7IAWEBU.js";
18
+ import "./chunk-GTKPMYK7.js";
19
+ import "./chunk-73MOMNLL.js";
20
+ import "./chunk-DNCLQPOM.js";
21
+ import "./chunk-6CWL5BKG.js";
19
22
  import {
20
23
  errorObjectOf,
21
24
  mcpErrorResult
22
- } from "./chunk-ZPZT46O6.js";
25
+ } from "./chunk-ESN3W2MZ.js";
23
26
  import "./chunk-Y5E2WNWB.js";
24
27
  import {
25
28
  CliError
26
- } from "./chunk-ST3ZB7LS.js";
27
- import "./chunk-5RVXXDN7.js";
29
+ } from "./chunk-IANKXHSE.js";
30
+ import "./chunk-BBGJQMRI.js";
28
31
  import {
29
32
  __name
30
33
  } from "./chunk-ZVVMGPBJ.js";
31
34
 
32
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
35
+ // 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/all-profiles.js
33
36
  import { spawn } from "node:child_process";
34
37
  import { randomUUID } from "node:crypto";
35
38
  var PROTOCOL = "2025-06-18";
@@ -170,13 +173,16 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
170
173
  inputSchema: {
171
174
  ...tool.inputSchema,
172
175
  properties: {
173
- profile: {
176
+ profile: profiles.length === 0 ? (
177
+ // An empty enum matches nothing, and a directory that checks the schema refuses the tool.
178
+ {
179
+ type: "string",
180
+ description: `Which ${name} account, by its profile. None is set up on this computer yet.`
181
+ }
182
+ ) : {
174
183
  type: "string",
175
184
  enum: [...profiles],
176
- oneOf: profiles.map((profile) => ({
177
- const: profile,
178
- title: signedIn(profile) ? profile : `${profile} \u2014 not signed in`
179
- })),
185
+ oneOf: profiles.map((one) => ({ const: one, title: signedIn(one) ? one : `${one} \u2014 not signed in` })),
180
186
  description: `Which ${name} account, by its profile. If the owner did not name one, ask which \u2014 never guess.${states}`
181
187
  },
182
188
  ...schema.properties
@@ -199,9 +205,14 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
199
205
  const signedIn = /* @__PURE__ */ __name((profile) => options.signedIn?.(profile) ?? true, "signedIn");
200
206
  const build = /* @__PURE__ */ __name(() => {
201
207
  const profiles = [...options.profiles()].sort();
202
- const server = new McpServer({ name: options.command, version: options.version }, { capabilities: { tools: {} }, instructions: options.instructions });
208
+ const server = new McpServer({ name: options.command, version: options.version }, {
209
+ capabilities: { tools: {} },
210
+ // Read per session, as the profiles are: clients cut the instructions short, so this line comes first.
211
+ instructions: profiles.length === 0 && options.setup ? `${options.setup.charAt(0).toUpperCase()}${options.setup.slice(1)}.
212
+ ${options.instructions}` : options.instructions
213
+ });
203
214
  server.server.setRequestHandler("tools/list", async () => ({
204
- tools: profiles.length === 0 ? [] : (await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
215
+ tools: (profiles.length === 0 ? await options.catalogue?.() ?? [] : await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
205
216
  }));
206
217
  const callers = {
207
218
  env: options.env ?? process.env,
@@ -211,6 +222,8 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
211
222
  server.server.setRequestHandler("tools/call", async (request, ctx) => {
212
223
  const { name, arguments: given = {}, _meta } = request.params;
213
224
  const { profile, ...rest } = given;
225
+ if (profiles.length === 0)
226
+ return refusal("configuration_error", options.setup ?? `no ${options.command} profile on this computer yet.`);
214
227
  if (typeof profile !== "string" || !profiles.includes(profile))
215
228
  return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
216
229
  if (!signedIn(profile))
@@ -232,6 +245,34 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
232
245
  }, "build");
233
246
  return { build, close: /* @__PURE__ */ __name(() => children.close(), "close") };
234
247
  }, "allProfilesServer");
248
+ var listedTools = /* @__PURE__ */ __name(async (server) => {
249
+ const [own, other] = InMemoryTransport.createLinkedPair();
250
+ const answers = /* @__PURE__ */ new Map();
251
+ other.onmessage = (message) => {
252
+ const { id, result, error } = message;
253
+ if (typeof id === "number")
254
+ answers.get(id)?.(result, error);
255
+ };
256
+ const ask = /* @__PURE__ */ __name((id, method, params) => new Promise((resolve, reject) => {
257
+ answers.set(id, (result, error) => error || !result ? reject(new Error(error?.message ?? `${method} had no answer`)) : resolve(result));
258
+ void other.send({ jsonrpc: "2.0", id, method, params });
259
+ }), "ask");
260
+ await server.connect(own);
261
+ try {
262
+ await ask(1, "initialize", {
263
+ protocolVersion: PROTOCOL,
264
+ capabilities: {},
265
+ clientInfo: { name: PROXY_CLIENT_NAME, version: "1" }
266
+ });
267
+ await other.send({ jsonrpc: "2.0", method: "notifications/initialized" });
268
+ const answer = await ask(2, "tools/list", {});
269
+ if (!Array.isArray(answer.tools))
270
+ throw new Error("the catalogue server listed no tools");
271
+ return answer.tools;
272
+ } finally {
273
+ await server.close();
274
+ }
275
+ }, "listedTools");
235
276
  var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {}) => {
236
277
  const { build, close } = allProfilesServer(options);
237
278
  const own = io.stdin !== void 0 && io.stdin !== process.stdin;
@@ -250,7 +291,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
250
291
  }, "serveAllProfilesOverStdio");
251
292
  var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
252
293
  const { build, close } = allProfilesServer(options);
253
- const { serveOverHttp } = await import("./serve-CU3RMWU7.js");
294
+ const { serveOverHttp } = await import("./serve-ODVRPFJO.js");
254
295
  const listening = await serveOverHttp(build, {
255
296
  ...http,
256
297
  appName: options.command,
@@ -273,6 +314,7 @@ var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
273
314
  export {
274
315
  CHILD_IDLE_MS,
275
316
  allProfilesServer,
317
+ listedTools,
276
318
  serveAllProfilesOverHttp,
277
319
  serveAllProfilesOverStdio,
278
320
  withProfile
@@ -0,0 +1,131 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import "./chunk-5HAUK3I4.js";
4
+ import "./chunk-7QPIUMUG.js";
5
+ import "./chunk-K5JGJIV2.js";
6
+ import "./chunk-TKVBFJ5C.js";
7
+ import "./chunk-UR5DBODY.js";
8
+ import "./chunk-3HC5F3P7.js";
9
+ import "./chunk-M7H4MCAX.js";
10
+ import "./chunk-BDKVOU3I.js";
11
+ import "./chunk-HZENBDW2.js";
12
+ import "./chunk-VZ5PPYDG.js";
13
+ import "./chunk-DCYFT3FR.js";
14
+ import "./chunk-OQFQ77AY.js";
15
+ import "./chunk-ICPJT672.js";
16
+ import "./chunk-UKAAAOPC.js";
17
+ import "./chunk-ZED2CJW5.js";
18
+ import "./chunk-EGTCQKHV.js";
19
+ import "./chunk-KQPUVXKX.js";
20
+ import "./chunk-RQOZBTNI.js";
21
+ import "./chunk-QVSL5WJ7.js";
22
+ import "./chunk-676C2LE6.js";
23
+ import "./chunk-QPHBK63S.js";
24
+ import "./chunk-N46F72AF.js";
25
+ import "./chunk-GBHMT2IU.js";
26
+ import "./chunk-GWGHH56B.js";
27
+ import "./chunk-6VK332XS.js";
28
+ import "./chunk-5KYQ53EF.js";
29
+ import "./chunk-NB7EOAUZ.js";
30
+ import "./chunk-WOPVBRPV.js";
31
+ import "./chunk-5TU7Y5UW.js";
32
+ import "./chunk-A6EZK5RG.js";
33
+ import "./chunk-TY7NDMFY.js";
34
+ import "./chunk-B32KZRQM.js";
35
+ import "./chunk-XQ2WL3HB.js";
36
+ import {
37
+ failureContext
38
+ } from "./chunk-AIKFOBDO.js";
39
+ import "./chunk-QG6PILDO.js";
40
+ import "./chunk-HC6VN5CO.js";
41
+ import "./chunk-HTQTIKWP.js";
42
+ import "./chunk-NEMX3UNN.js";
43
+ import "./chunk-KXJ3JEDH.js";
44
+ import "./chunk-66ALX4ZI.js";
45
+ import "./chunk-7UVDPRFK.js";
46
+ import "./chunk-HP7A2ZOP.js";
47
+ import "./chunk-KVJ3I7UL.js";
48
+ import "./chunk-OO4TRVPB.js";
49
+ import "./chunk-N3JLO63O.js";
50
+ import "./chunk-Q7ICVP25.js";
51
+ import "./chunk-L75SMSJR.js";
52
+ import {
53
+ judgedEffects,
54
+ judgedTargets
55
+ } from "./chunk-V5EJSF2B.js";
56
+ import "./chunk-2CI2OEZQ.js";
57
+ import "./chunk-TKNM22OH.js";
58
+ import "./chunk-T7IAWEBU.js";
59
+ import "./chunk-3YM4B2GT.js";
60
+ import "./chunk-QVYAV7F2.js";
61
+ import "./chunk-KJ6USQDZ.js";
62
+ import "./chunk-G6PETRMV.js";
63
+ import "./chunk-BP4FYANF.js";
64
+ import "./chunk-6QYZP4E2.js";
65
+ import "./chunk-ACI4YIEH.js";
66
+ import "./chunk-4HLQ2JGK.js";
67
+ import "./chunk-OIPYBF43.js";
68
+ import "./chunk-OBXQLFT5.js";
69
+ import "./chunk-2GP573Q4.js";
70
+ import "./chunk-JQ54DYAQ.js";
71
+ import "./chunk-PMUPN6JW.js";
72
+ import "./chunk-YJXJJ2XP.js";
73
+ import "./chunk-LEKKTJKK.js";
74
+ import "./chunk-YY7XKHDY.js";
75
+ import "./chunk-2JHVQMVC.js";
76
+ import "./chunk-ZOYOXWJB.js";
77
+ import "./chunk-WMANRJR5.js";
78
+ import "./chunk-GTKPMYK7.js";
79
+ import "./chunk-DSZYABYL.js";
80
+ import "./chunk-73MOMNLL.js";
81
+ import "./chunk-LAYYO4WD.js";
82
+ import "./chunk-E745WZKY.js";
83
+ import "./chunk-4N7PP76S.js";
84
+ import {
85
+ VERSION,
86
+ ZM
87
+ } from "./chunk-2SWKQ7C4.js";
88
+ import "./chunk-TXDR6YSF.js";
89
+ import "./chunk-D72URWJE.js";
90
+ import "./chunk-274SLQNW.js";
91
+ import "./chunk-PWVJUIDQ.js";
92
+ import "./chunk-G46WJ7YO.js";
93
+ import "./chunk-GGMAIIVE.js";
94
+ import "./chunk-KKFY23AK.js";
95
+ import "./chunk-UAWSINMC.js";
96
+ import "./chunk-DNCLQPOM.js";
97
+ import "./chunk-6CWL5BKG.js";
98
+ import {
99
+ errorObjectOf,
100
+ errorRecordOf,
101
+ exitCodeOfError,
102
+ renderError
103
+ } from "./chunk-ESN3W2MZ.js";
104
+ import "./chunk-Y5E2WNWB.js";
105
+ import "./chunk-IANKXHSE.js";
106
+ import "./chunk-BBGJQMRI.js";
107
+ import {
108
+ __name
109
+ } from "./chunk-ZVVMGPBJ.js";
110
+
111
+ // dist/answer-policy.js
112
+ var hostFailureContext = /* @__PURE__ */ __name((registry, effects) => ({
113
+ ...failureContext(ZM.errors),
114
+ ...effects ? { effects: judgedEffects(effects) } : {},
115
+ ...registry ? { targets: judgedTargets(registry) } : {}
116
+ }), "hostFailureContext");
117
+ var reportFailure = /* @__PURE__ */ __name((failure, args, deps, command = "zm", context = hostFailureContext()) => {
118
+ const end = args.indexOf("--");
119
+ const flags = args.slice(0, end < 0 ? void 0 : end);
120
+ const machine = flags.some((word) => word === "--json" || word === "--jsonl");
121
+ const object = errorObjectOf(failure, context);
122
+ const record = flags.includes("--debug") ? errorRecordOf(failure, object, { command, service: "zm", version: VERSION }) : void 0;
123
+ const interactive = deps.outputIsTTY === true && !machine;
124
+ deps.diagnostic(`${renderError(object, { cli: "zm", interactive, ...record ? { record } : {} })}
125
+ `);
126
+ return exitCodeOfError(object);
127
+ }, "reportFailure");
128
+ export {
129
+ hostFailureContext,
130
+ reportFailure
131
+ };
@@ -5,11 +5,11 @@ import {
5
5
  checkedOptions,
6
6
  messagesFor,
7
7
  systemFor
8
- } from "./chunk-BRMV33MO.js";
8
+ } from "./chunk-NEMX3UNN.js";
9
9
  import {
10
10
  Anthropic
11
11
  } from "./chunk-FXBHOCJK.js";
12
- import "./chunk-BNEJKGG7.js";
12
+ import "./chunk-6CWL5BKG.js";
13
13
  import {
14
14
  array,
15
15
  literal,
@@ -19,15 +19,15 @@ import {
19
19
  strictObject,
20
20
  string,
21
21
  unknown
22
- } from "./chunk-ZPZT46O6.js";
22
+ } from "./chunk-ESN3W2MZ.js";
23
23
  import "./chunk-Y5E2WNWB.js";
24
- import "./chunk-ST3ZB7LS.js";
25
- import "./chunk-5RVXXDN7.js";
24
+ import "./chunk-IANKXHSE.js";
25
+ import "./chunk-BBGJQMRI.js";
26
26
  import {
27
27
  __name
28
28
  } from "./chunk-ZVVMGPBJ.js";
29
29
 
30
- // node_modules/.pnpm/@wirecat+cli-core@0.691.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_d368e4a5540cfb6719e97dbe530c5868/node_modules/@wirecat/cli-core/dist/models/anthropic.js
30
+ // 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/models/anthropic.js
31
31
  var options = strictObject({
32
32
  stop_sequences: optional(array(string())),
33
33
  thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),