@wirecat/zoom-cli 0.67.0 → 0.69.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 (180) hide show
  1. package/dist/answer-entities.d.ts +18 -0
  2. package/dist/answer-entities.d.ts.map +1 -1
  3. package/dist/answer-entities.js +12 -0
  4. package/dist/answer-entities.js.map +1 -1
  5. package/dist/answer-policy.d.ts.map +1 -1
  6. package/dist/answer-policy.js +2 -1
  7. package/dist/answer-policy.js.map +1 -1
  8. package/dist/bin/zm.js +2 -2
  9. package/dist/bundle/{all-profiles-SEW2VL76.js → all-profiles-ZQWPCJEK.js} +12 -12
  10. package/dist/bundle/answer-policy-VBDYLUXI.js +104 -0
  11. package/dist/bundle/{anthropic-FSNASJML.js → anthropic-7FUQ2HYJ.js} +7 -7
  12. package/dist/bundle/{app-server-EVSRYJ3H.js → app-server-DNPE2EQB.js} +61 -58
  13. package/dist/bundle/{bun-DACL5SVO.js → bun-ZVQFCFCC.js} +2 -2
  14. package/dist/bundle/{bun-sqlite-HQ2KOXSI.js → bun-sqlite-EB2UMUPJ.js} +6 -6
  15. package/dist/bundle/{chunk-4ZR5DJ26.js → chunk-2SYWVIQJ.js} +3 -3
  16. package/dist/bundle/chunk-37B7A4RP.js +66 -0
  17. package/dist/bundle/{chunk-WHQ4ZCJI.js → chunk-3TPRYZUW.js} +214 -86
  18. package/dist/bundle/{chunk-L6CAUVMU.js → chunk-4APZQYCH.js} +5 -5
  19. package/dist/bundle/{chunk-ASCHAVNW.js → chunk-52DCABMU.js} +27 -27
  20. package/dist/bundle/{chunk-LM26DJOK.js → chunk-5GOE6PQK.js} +6 -6
  21. package/dist/bundle/{chunk-QX2MAT6I.js → chunk-5H6VTEEC.js} +3 -3
  22. package/dist/bundle/{chunk-V33VGWT3.js → chunk-5ZF6QVMC.js} +16 -6
  23. package/dist/bundle/{chunk-GP4NSYDU.js → chunk-5ZJXKASF.js} +254 -13
  24. package/dist/bundle/chunk-6AMMTXEA.js +12473 -0
  25. package/dist/bundle/{chunk-Q65SDEFN.js → chunk-6KMTQX3D.js} +2 -2
  26. package/dist/bundle/{chunk-TBRG2DPE.js → chunk-6N2D6JGX.js} +2 -2
  27. package/dist/bundle/{chunk-X67YD3QI.js → chunk-6TICX3MN.js} +2 -2
  28. package/dist/bundle/{chunk-4GCKDO2H.js → chunk-7AUP2WT3.js} +3 -3
  29. package/dist/bundle/{chunk-JVCHGI7W.js → chunk-B5D7NZI7.js} +1 -1
  30. package/dist/bundle/{chunk-AAZFLJSH.js → chunk-B6JMVB6R.js} +10 -10
  31. package/dist/bundle/{chunk-CRLBTNC4.js → chunk-BL36NSV5.js} +3 -3
  32. package/dist/bundle/{chunk-4UVT2QCO.js → chunk-BOAMDYLY.js} +4 -4
  33. package/dist/bundle/{chunk-VQTAU4DV.js → chunk-C6TEYKXV.js} +8 -8
  34. package/dist/bundle/{chunk-6AJDVJVZ.js → chunk-CKK6JOC4.js} +2 -2
  35. package/dist/bundle/{chunk-4U2555EQ.js → chunk-CUZHKYC2.js} +30 -28
  36. package/dist/bundle/{chunk-7LLUUXJB.js → chunk-DHD25JII.js} +1 -1
  37. package/dist/bundle/{chunk-RYKG6AEH.js → chunk-EPPSMCEV.js} +4 -2
  38. package/dist/bundle/chunk-F5DYBWH7.js +299 -0
  39. package/dist/bundle/{chunk-KIJLM5UL.js → chunk-FBLUKCIR.js} +1 -1
  40. package/dist/bundle/{chunk-WZ5XK74U.js → chunk-FEM2JQN2.js} +1 -1
  41. package/dist/bundle/{chunk-SSXCOUP3.js → chunk-G6IX2MD2.js} +500 -227
  42. package/dist/bundle/{chunk-OTMGAKUM.js → chunk-GR3QDHBU.js} +7 -7
  43. package/dist/bundle/{chunk-QEI55M2F.js → chunk-GXDOTUUO.js} +10 -10
  44. package/dist/bundle/chunk-H3MFBYTQ.js +261 -0
  45. package/dist/bundle/{chunk-DFUPETW7.js → chunk-HC56J5LB.js} +135 -76
  46. package/dist/bundle/{chunk-D6OXI2NV.js → chunk-HSI7YOYK.js} +229 -67
  47. package/dist/bundle/{chunk-FGTPREAZ.js → chunk-HW5QTRFF.js} +35 -35
  48. package/dist/bundle/{chunk-VNIBTNV4.js → chunk-IEC4E65G.js} +2 -2
  49. package/dist/bundle/{chunk-EUPZSR2G.js → chunk-IPBZKUC3.js} +4 -4
  50. package/dist/bundle/{chunk-EQ7XRRKV.js → chunk-JHFP3Z5S.js} +11 -11
  51. package/dist/bundle/{chunk-3GO3KME7.js → chunk-JX5JJZC3.js} +3 -3
  52. package/dist/bundle/{chunk-7HAIM7GV.js → chunk-JZ4YOAHA.js} +963 -622
  53. package/dist/bundle/{chunk-B3KWAULD.js → chunk-KAPJQGHE.js} +2 -2
  54. package/dist/bundle/{chunk-T6CZWSHF.js → chunk-KNE6VFHZ.js} +21 -21
  55. package/dist/bundle/{chunk-I7SOXH64.js → chunk-KX5MZVPX.js} +66 -39
  56. package/dist/bundle/chunk-L62EJDNZ.js +64 -0
  57. package/dist/bundle/{chunk-EPDRF66S.js → chunk-LDRQ5NAP.js} +22 -14
  58. package/dist/bundle/{chunk-7VU5UGRR.js → chunk-LEA4BGK7.js} +16 -16
  59. package/dist/bundle/{chunk-ZMPTO2WB.js → chunk-LQX74VKG.js} +1 -1
  60. package/dist/bundle/{chunk-LKJXTACE.js → chunk-MJMVIFSC.js} +7 -7
  61. package/dist/bundle/{chunk-KWRSC6O6.js → chunk-MNOVYS43.js} +18 -4
  62. package/dist/bundle/{chunk-M43MBWJX.js → chunk-MOTKS7XG.js} +20741 -14882
  63. package/dist/bundle/{chunk-MWEOVTIF.js → chunk-MSDCZ6GT.js} +4 -4
  64. package/dist/bundle/{chunk-SOZVC3SV.js → chunk-MVDPZRFE.js} +1 -1
  65. package/dist/bundle/{chunk-NTZDM5SJ.js → chunk-NRRI37NJ.js} +9 -9
  66. package/dist/bundle/{chunk-BKY4XVB4.js → chunk-O7L44JK2.js} +2632 -1870
  67. package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-OE7EIP5L.js} +1 -1
  68. package/dist/bundle/{chunk-RAMPYIO2.js → chunk-OSBHEM2A.js} +11 -11
  69. package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
  70. package/dist/bundle/{chunk-DG4DWAU7.js → chunk-QLGG7S6F.js} +3 -3
  71. package/dist/bundle/{chunk-6UFWFKFH.js → chunk-QW5VPZEH.js} +2 -2
  72. package/dist/bundle/{chunk-C6UKW7JO.js → chunk-QXM7S3Y3.js} +6 -6
  73. package/dist/bundle/{chunk-ESFMHBHH.js → chunk-R2ULMWB4.js} +62 -53
  74. package/dist/bundle/{chunk-L6WUAGPN.js → chunk-R3JYPY3J.js} +3 -3
  75. package/dist/bundle/{chunk-2UW533HQ.js → chunk-RGJ7OWHU.js} +4 -4
  76. package/dist/bundle/{chunk-7K5TDTZY.js → chunk-RPQ3JOD3.js} +7 -7
  77. package/dist/bundle/{chunk-L643D4RJ.js → chunk-S2EAGDS7.js} +12 -12
  78. package/dist/bundle/{chunk-4KDZ22RA.js → chunk-SQT47CFW.js} +1 -1
  79. package/dist/bundle/{chunk-CLEZE65P.js → chunk-SZ3Z4ZNO.js} +1 -1
  80. package/dist/bundle/chunk-T5X4LGXE.js +380 -0
  81. package/dist/bundle/{chunk-SMVO5R3T.js → chunk-TFFEFEG2.js} +39 -26
  82. package/dist/bundle/{chunk-LFQ73UFK.js → chunk-TKXLWFM2.js} +3 -3
  83. package/dist/bundle/{chunk-SCFFCIIP.js → chunk-TN77LX6W.js} +2 -2
  84. package/dist/bundle/{chunk-VFIEYRYD.js → chunk-TWIC6JJG.js} +8 -8
  85. package/dist/bundle/{chunk-FXQPK742.js → chunk-UEZ6URJR.js} +29 -15
  86. package/dist/bundle/{chunk-OZEYFJX2.js → chunk-V4MM6GST.js} +1 -1
  87. package/dist/bundle/chunk-V74QFMSL.js +31 -0
  88. package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
  89. package/dist/bundle/{chunk-6TZF2JP7.js → chunk-WY4NYPPS.js} +13 -13
  90. package/dist/bundle/{chunk-B5Z4XPVS.js → chunk-XITUFTON.js} +2 -2
  91. package/dist/bundle/{chunk-FWU3ZYHE.js → chunk-XJBYGMZ4.js} +776 -134
  92. package/dist/bundle/{chunk-KANH7GBB.js → chunk-XRZDYWF6.js} +2 -2
  93. package/dist/bundle/{chunk-ZRMZBMOF.js → chunk-Z6TTGTMU.js} +156 -9
  94. package/dist/bundle/{chunk-IFDO3YPJ.js → chunk-ZRHMB3LQ.js} +1 -1
  95. package/dist/bundle/{cli-YUATSOLA.js → cli-P3BZUE6S.js} +106 -64
  96. package/dist/bundle/command-contract-TOLB32NJ.js +41 -0
  97. package/dist/bundle/config-4KLLIADY.js +90 -0
  98. package/dist/bundle/{decode-IL44LNC3.js → decode-QWOQXM7M.js} +6 -6
  99. package/dist/bundle/{dispatch-3BGIXSJR.js → dispatch-5MGDLOK4.js} +9 -9
  100. package/dist/bundle/{dist-3W27UQ2S.js → dist-OUE4MF37.js} +108 -28
  101. package/dist/bundle/{echarts-CO4D26JF.js → echarts-65IMPY43.js} +2 -2
  102. package/dist/bundle/{embed-XH2X4DFM.js → embed-4IULBCKL.js} +7 -7
  103. package/dist/bundle/{embedder-WTFWDXBJ.js → embedder-JW4W6IZI.js} +10 -10
  104. package/dist/bundle/{failure-HTIS3NLS.js → failure-CR64C4XA.js} +3 -3
  105. package/dist/bundle/{first-run-5RBH7FDO.js → first-run-CH6C674R.js} +12 -12
  106. package/dist/bundle/first-screen-OCAW5ZN6.js +39 -0
  107. package/dist/bundle/{folders-F4DNQPIY.js → folders-VU4IN35Y.js} +5 -5
  108. package/dist/bundle/{instructions-EPPBL6TT.js → instructions-G5QIH2TM.js} +1 -1
  109. package/dist/bundle/{main-LVQTCDZS.js → main-O4ZJIEWP.js} +21 -23
  110. package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
  111. package/dist/bundle/{meetings-BMELXRTR.js → meetings-77CCAVYD.js} +13 -7
  112. package/dist/bundle/{node-CQVMWVIG.js → node-E6VQHU4Y.js} +2 -2
  113. package/dist/bundle/{node-sqlite-QQEX7LZT.js → node-sqlite-RJZ4PGLD.js} +7 -7
  114. package/dist/bundle/{oauth-AYGX7CQS.js → oauth-F4JKNRW4.js} +8 -8
  115. package/dist/bundle/{open-MIL2TOT6.js → open-NYOGMIAA.js} +6 -6
  116. package/dist/bundle/openai-5U6EQTFQ.js +25 -0
  117. package/dist/bundle/{output-file-4XADZPYH.js → output-file-6COFGPUL.js} +6 -6
  118. package/dist/bundle/{process-NJVQK6GB.js → process-OBWUKBMX.js} +1 -1
  119. package/dist/bundle/{program-WUYRS6H7.js → program-MU7DEJTO.js} +115 -187
  120. package/dist/bundle/{prompt-J4QPFLEA.js → prompt-2QWQTHWT.js} +6 -6
  121. package/dist/bundle/{recognize-OLJZVNWW.js → recognize-SNUNTUC3.js} +5 -5
  122. package/dist/bundle/{remote-JPUXNYLV.js → remote-2CTCIQGF.js} +8 -8
  123. package/dist/bundle/{rerank-XVV3X5TT.js → rerank-XDA7NJNH.js} +8 -8
  124. package/dist/bundle/{run-log-DJXBEVS5.js → run-log-NSG3DJVX.js} +59 -59
  125. package/dist/bundle/{serve-NYYUO3MR.js → serve-TWQFHOV2.js} +10 -10
  126. package/dist/bundle/{server-4Z5E4YTT.js → server-RIQ6HMH2.js} +47 -47
  127. package/dist/bundle/server-XO6XQQTJ.js +72 -0
  128. package/dist/bundle/{services-EKWM76HP.js → services-NKZQJQIV.js} +49 -33
  129. package/dist/bundle/{speech-WFJ44ACJ.js → speech-ZOB76SXA.js} +14 -14
  130. package/dist/bundle/{state-VIRCT4VW.js → state-7YYEIXQ5.js} +7 -7
  131. package/dist/bundle/{store-ZTDZ6UY5.js → store-E6RTSSNR.js} +29 -18
  132. package/dist/bundle/{store-2Q4GEZJS.js → store-OX4HRBLO.js} +80 -29
  133. package/dist/bundle/store-connection-55QPNUDS.js +83 -0
  134. package/dist/bundle/store-maintenance-command-Q5MSU6OK.js +62 -0
  135. package/dist/bundle/{streaming-7BPKIGAS.js → streaming-O53PIORL.js} +7 -7
  136. package/dist/bundle/{tokens-CQHMMKNX.js → tokens-QKNEP2GJ.js} +7 -7
  137. package/dist/bundle/zm.js +9 -10
  138. package/dist/bundle/zoom-app-TSI2MGVK.js +41 -0
  139. package/dist/commands.d.ts.map +1 -1
  140. package/dist/commands.js +1 -0
  141. package/dist/commands.js.map +1 -1
  142. package/dist/config.d.ts.map +1 -1
  143. package/dist/config.js +2 -3
  144. package/dist/config.js.map +1 -1
  145. package/dist/identity.d.ts +1 -0
  146. package/dist/identity.d.ts.map +1 -1
  147. package/dist/identity.js +11 -0
  148. package/dist/identity.js.map +1 -1
  149. package/dist/program-bindings.d.ts.map +1 -1
  150. package/dist/program-bindings.js +7 -2
  151. package/dist/program-bindings.js.map +1 -1
  152. package/dist/setup-commands.d.ts +6 -0
  153. package/dist/setup-commands.d.ts.map +1 -1
  154. package/dist/setup-commands.js +24 -9
  155. package/dist/setup-commands.js.map +1 -1
  156. package/dist/version.d.ts +1 -1
  157. package/dist/version.js +1 -1
  158. package/dist/zoom-app.d.ts +32 -0
  159. package/dist/zoom-app.d.ts.map +1 -1
  160. package/dist/zoom-app.js +61 -0
  161. package/dist/zoom-app.js.map +1 -1
  162. package/package.json +3 -3
  163. package/dist/bundle/answer-policy-5OYUL6UF.js +0 -103
  164. package/dist/bundle/chunk-3ZIHUSMM.js +0 -22
  165. package/dist/bundle/chunk-54RTMQL6.js +0 -132
  166. package/dist/bundle/chunk-6VFORXL3.js +0 -101
  167. package/dist/bundle/chunk-D4KBD63W.js +0 -19
  168. package/dist/bundle/chunk-J3ZBEWQY.js +0 -880
  169. package/dist/bundle/chunk-SXFODCYK.js +0 -9
  170. package/dist/bundle/chunk-YRNZT4GQ.js +0 -176
  171. package/dist/bundle/chunk-Z3WXI4DK.js +0 -31
  172. package/dist/bundle/command-contract-UWHY55UE.js +0 -41
  173. package/dist/bundle/config-TGF6E6ZD.js +0 -89
  174. package/dist/bundle/first-screen-PGFIXJAX.js +0 -39
  175. package/dist/bundle/openai-7QZZXQW5.js +0 -25
  176. package/dist/bundle/server-VW5UVCH7.js +0 -72
  177. package/dist/bundle/store-connection-FKVVQLEF.js +0 -83
  178. package/dist/bundle/store-maintenance-command-AU73UVUQ.js +0 -62
  179. package/dist/bundle/zoom-app-OEKFMJS6.js +0 -25
  180. /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.js} +0 -0
@@ -2,25 +2,25 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  storePath
5
- } from "./chunk-6AJDVJVZ.js";
5
+ } from "./chunk-CKK6JOC4.js";
6
6
  import {
7
7
  resolvePaths
8
- } from "./chunk-T6CZWSHF.js";
8
+ } from "./chunk-KNE6VFHZ.js";
9
9
  import {
10
10
  CliError
11
- } from "./chunk-WZ5XK74U.js";
11
+ } from "./chunk-FEM2JQN2.js";
12
12
  import {
13
13
  singleLine
14
- } from "./chunk-6IBM4Z3V.js";
14
+ } from "./chunk-OE7EIP5L.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/shared-config.js
20
20
  import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
21
21
  import { dirname, join, resolve } from "node:path";
22
22
 
23
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
23
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
24
24
  var DEFAULT_TASK_CATEGORIES = [
25
25
  {
26
26
  name: "taxes",
@@ -775,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
775
775
  }
776
776
  }, "storedTaskCategories");
777
777
 
778
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
778
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/shared-config.js
779
779
  var SECTION = "task_categories";
780
780
  var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
781
781
  const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  validateFormattedText
5
- } from "./chunk-GP4NSYDU.js";
5
+ } from "./chunk-5ZJXKASF.js";
6
6
  import {
7
7
  inputPolicy
8
- } from "./chunk-TBRG2DPE.js";
8
+ } from "./chunk-6N2D6JGX.js";
9
9
  import {
10
10
  indent
11
- } from "./chunk-T6CZWSHF.js";
11
+ } from "./chunk-KNE6VFHZ.js";
12
12
  import {
13
13
  CliError
14
- } from "./chunk-WZ5XK74U.js";
14
+ } from "./chunk-FEM2JQN2.js";
15
15
  import {
16
16
  __name
17
17
  } from "./chunk-ZVVMGPBJ.js";
18
18
 
19
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/checks.js
19
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/checks.js
20
20
  var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
21
21
  var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
22
22
  var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
23
23
 
24
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/markdown.js
24
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/markdown.js
25
25
  var MARKERS = [
26
26
  ["**", "bold"],
27
27
  ["~~", "strike"],
@@ -67,7 +67,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
67
67
  return end;
68
68
  }, "closing");
69
69
 
70
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
70
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
71
71
  var STYLES = [
72
72
  ["**", "bold"],
73
73
  ["__", "underline"],
@@ -227,7 +227,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
227
227
  return validateFormattedText(result);
228
228
  }, "parseMarkdownSpans");
229
229
 
230
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/domain/polls.js
230
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/polls.js
231
231
  var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
232
232
  const cast = votes.filter((vote) => vote.answers.length > 0);
233
233
  const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
@@ -1876,7 +1876,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
1876
1876
  var qrcode_default = qrcode;
1877
1877
  var stringToBytes = qrcode.stringToBytes;
1878
1878
 
1879
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/terminal/qr.js
1879
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/terminal/qr.js
1880
1880
  var QUIET_ZONE = 4;
1881
1881
  var BLACK_ON_WHITE = "\x1B[30;107m";
1882
1882
  var RESET = "\x1B[0m";
@@ -1923,7 +1923,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
1923
1923
  return lines.join("\n");
1924
1924
  }, "plainQr");
1925
1925
 
1926
- // node_modules/.pnpm/@wirecat+cli-core@0.570.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_093219d088c44dcb3d8868e1fe992f3e/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
1926
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
1927
1927
  var MARGIN = 2;
1928
1928
  var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
1929
1929
  var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
@@ -0,0 +1,261 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ checkCancelled
5
+ } from "./chunk-KAPJQGHE.js";
6
+ import {
7
+ BASE_CONSTANTS,
8
+ baseConstantsSchema,
9
+ loadConstants
10
+ } from "./chunk-KNE6VFHZ.js";
11
+ import {
12
+ nonEmpty,
13
+ object,
14
+ optional,
15
+ pipe,
16
+ string,
17
+ transform
18
+ } from "./chunk-NRRI37NJ.js";
19
+ import {
20
+ CliError
21
+ } from "./chunk-FEM2JQN2.js";
22
+ import {
23
+ __name
24
+ } from "./chunk-ZVVMGPBJ.js";
25
+
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/constants/obscure.js
27
+ import { createDecipheriv } from "node:crypto";
28
+ var KEY = Buffer.from("d43012779aa2dded3e98092a3dbcf5d8980c564172f5ce0a5fd0574e5f740339", "hex");
29
+ var reveal = /* @__PURE__ */ __name((obscured) => {
30
+ const bytes = Buffer.from(obscured, "base64url");
31
+ const decipher = createDecipheriv("aes-256-ctr", KEY, bytes.subarray(0, 16));
32
+ return Buffer.concat([decipher.update(bytes.subarray(16)), decipher.final()]).toString("utf8");
33
+ }, "reveal");
34
+
35
+ // node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/constants/index.js
36
+ var CORE_CONSTANTS = new URL("../../constants.json", new URL("constants/index.js", import.meta.resolve("@wirecat/cli-core")).href);
37
+ var constantsSchema = object({
38
+ ...baseConstantsSchema.entries,
39
+ google: object({
40
+ app: object({
41
+ client_id: pipe(string(), nonEmpty(), transform(reveal)),
42
+ client_secret: optional(pipe(string(), transform(reveal)))
43
+ })
44
+ }),
45
+ microsoft: object({ app: object({ client_id: pipe(string(), nonEmpty()) }) })
46
+ });
47
+ var loaded = /* @__PURE__ */ new Map();
48
+ var constants = /* @__PURE__ */ __name((toolLayer, schema2) => {
49
+ const key = toolLayer?.href ?? "";
50
+ if (!loaded.has(key)) {
51
+ const layers = toolLayer ? [BASE_CONSTANTS, CORE_CONSTANTS, toolLayer] : [BASE_CONSTANTS, CORE_CONSTANTS];
52
+ loaded.set(key, loadConstants(layers, schema2 ?? constantsSchema));
53
+ }
54
+ return loaded.get(key);
55
+ }, "constants");
56
+ var oauthApp = /* @__PURE__ */ __name((options) => {
57
+ const { env, prefix, provider } = options;
58
+ const name = `${prefix}_${provider.toUpperCase()}_CLIENT`;
59
+ const clientSecret = env[`${name}_SECRET`];
60
+ const own = [
61
+ [options.clientId, "flag"],
62
+ [env[`${name}_ID`], "env"],
63
+ [options.configClientId, "config"]
64
+ ];
65
+ const [clientId, source] = own.find(([id]) => id) ?? [];
66
+ if (clientId && source)
67
+ return app({ clientId, ...clientSecret ? { clientSecret } : {} }, source);
68
+ if (clientSecret)
69
+ throw new CliError("configuration_error", `${name}_SECRET is set without a client id; set ${name}_ID too, or unset it to use WireCat's app`, { reason: "sign-in.secret-without-id" });
70
+ const wirecat = options.wirecat;
71
+ if (!wirecat?.client_id)
72
+ return void 0;
73
+ return app({ clientId: wirecat.client_id, ...wirecat.client_secret ? { clientSecret: wirecat.client_secret } : {} }, "constants");
74
+ }, "oauthApp");
75
+ var app = /* @__PURE__ */ __name((client, source) => ({ client: { ...client, source }, source }), "app");
76
+ var oauthClientReport = /* @__PURE__ */ __name((app2, reason) => app2?.source ? { client: app2.source === "constants" ? "wirecat" : "own", source: app2.source } : { client: null, source: null, ...reason ? { reason } : {} }, "oauthClientReport");
77
+
78
+ // dist/login.js
79
+ import { createHash, randomBytes } from "node:crypto";
80
+ import { createServer } from "node:http";
81
+ var REDIRECT = "https://wirecat.dev/zoom-callback";
82
+ var login = /* @__PURE__ */ __name(async (options) => {
83
+ checkCancelled(options.signal);
84
+ const verifier = randomBytes(48).toString("base64url");
85
+ const challenge = createHash("sha256").update(verifier).digest("base64url");
86
+ const controller = new AbortController();
87
+ let state = "";
88
+ let accept = /* @__PURE__ */ __name(() => {
89
+ }, "accept");
90
+ let fail = /* @__PURE__ */ __name(() => {
91
+ }, "fail");
92
+ const codePromise = new Promise((resolve, reject) => {
93
+ accept = resolve;
94
+ fail = reject;
95
+ });
96
+ const onAbort = /* @__PURE__ */ __name(() => {
97
+ try {
98
+ checkCancelled(options.signal);
99
+ } catch (error) {
100
+ fail(error instanceof Error ? error : new CliError("cancelled", "command cancelled"));
101
+ }
102
+ }, "onAbort");
103
+ options.signal?.addEventListener("abort", onAbort, { once: true });
104
+ void codePromise.catch(() => {
105
+ });
106
+ const server = createServer((request, response) => {
107
+ const query = new URL(request.url ?? "/", "http://127.0.0.1");
108
+ if (query.pathname !== "/callback") {
109
+ response.writeHead(404).end();
110
+ return;
111
+ }
112
+ if (query.searchParams.get("state") !== state) {
113
+ response.writeHead(400).end("state does not match");
114
+ return;
115
+ }
116
+ const code = query.searchParams.get("code");
117
+ response.end("zm: received, you can close this tab");
118
+ if (code)
119
+ accept(code);
120
+ else
121
+ fail(new CliError("authentication_error", "Zoom login was not approved"));
122
+ });
123
+ const timer = setTimeout(() => fail(new CliError("authentication_error", "Zoom login timed out")), options.timeoutMs ?? 3e5);
124
+ try {
125
+ await new Promise((resolve, reject) => {
126
+ server.once("error", reject);
127
+ server.listen(0, "127.0.0.1", resolve);
128
+ });
129
+ const address = server.address();
130
+ if (!address || typeof address === "string")
131
+ throw new CliError("configuration_error", "could not start the local login listener");
132
+ state = `${address.port}.${randomBytes(24).toString("base64url")}`;
133
+ const authorize = new URL("https://zoom.us/oauth/authorize");
134
+ authorize.search = new URLSearchParams({
135
+ response_type: "code",
136
+ client_id: options.tokens.options.clientId,
137
+ redirect_uri: REDIRECT,
138
+ code_challenge: challenge,
139
+ code_challenge_method: "S256",
140
+ state
141
+ }).toString();
142
+ checkCancelled(options.signal);
143
+ options.showUrl?.(authorize.toString());
144
+ const pastePromise = options.readPaste?.(controller.signal).then((text) => {
145
+ const query = new URLSearchParams(text.includes("?") ? text.slice(text.indexOf("?") + 1) : text);
146
+ if (query.get("state") !== state || !query.get("code"))
147
+ throw new CliError("authentication_error", "pasted login must contain the matching code and state");
148
+ return query.get("code") ?? "";
149
+ });
150
+ void Promise.resolve().then(() => options.openBrowser(authorize.toString())).catch(() => {
151
+ if (!options.readPaste)
152
+ fail(new CliError("configuration_error", "could not open the browser; retry with --browser <program>"));
153
+ });
154
+ const code = await (pastePromise ? Promise.race([codePromise, pastePromise]) : codePromise);
155
+ controller.abort();
156
+ const tokens = await options.tokens.exchange({
157
+ grant_type: "authorization_code",
158
+ code,
159
+ redirect_uri: REDIRECT,
160
+ code_verifier: verifier
161
+ });
162
+ return { loggedIn: true, scopes: tokens.scopes, credentialStorage: options.tokens.storageOf() };
163
+ } finally {
164
+ options.signal?.removeEventListener("abort", onAbort);
165
+ clearTimeout(timer);
166
+ controller.abort();
167
+ server.close();
168
+ server.closeAllConnections();
169
+ }
170
+ }, "login");
171
+
172
+ // dist/zoom-app.js
173
+ var schema = object({
174
+ ...constantsSchema.entries,
175
+ zoom: object({ app: object({ client_id: string() }) })
176
+ });
177
+ var ZOOM_CONSTANTS = new URL("../constants.json", new URL("../zoom-app.js", import.meta.url).href);
178
+ var NO_ZOOM_APP = "WireCat has no Zoom app yet; make your own (docs/zoom-app.md) and set zoom.client_id or ZM_ZOOM_CLIENT_ID";
179
+ var SET_ZOOM_APP = "run zm config set zoom.client_id <Public Client ID> first, or set ZM_ZOOM_CLIENT_ID";
180
+ var zoomApp = /* @__PURE__ */ __name((options) => oauthApp({
181
+ provider: "zoom",
182
+ prefix: "ZM",
183
+ env: options.env,
184
+ clientId: options.clientId,
185
+ configClientId: options.configClientId ?? void 0,
186
+ wirecat: constants(ZOOM_CONSTANTS, schema).zoom.app
187
+ }), "zoomApp");
188
+ var zoomClientId = /* @__PURE__ */ __name((config, env) => zoomApp({ env, configClientId: config?.clientId })?.client.clientId, "zoomClientId");
189
+ var zoomClientReport = /* @__PURE__ */ __name((config, env) => oauthClientReport(zoomApp({ env, configClientId: config?.clientId }), NO_ZOOM_APP), "zoomClientReport");
190
+ var checkedClientId = /* @__PURE__ */ __name((value) => {
191
+ if (!value.trim() || /\s/.test(value))
192
+ throw new CliError("validation_error", "client id must not contain whitespace");
193
+ return value;
194
+ }, "checkedClientId");
195
+ var ZOOM_APP_BUILD_URL = "https://marketplace.zoom.us/develop/create";
196
+ var ZOOM_APP_GUIDE_URL = "https://github.com/WireCatLabs/zoom-cli/blob/main/docs/zoom-app.md";
197
+ var ZOOM_APP_SCOPES = [
198
+ { scope: "meeting:read:list_meetings", required: true, use: "find your meetings and scheduled series" },
199
+ { scope: "meeting:read:list_past_instances", required: true, use: "find each meeting that ran" },
200
+ { scope: "cloud_recording:read:meeting_transcript", required: true, use: "read meeting transcripts" },
201
+ { scope: "meeting:read:list_past_participants", required: true, use: "read who joined and when" },
202
+ { scope: "meeting:read:summary", required: true, use: "read Zoom AI summaries" },
203
+ { scope: "cloud_recording:read:list_user_recordings", required: false, use: "find your cloud recordings" },
204
+ { scope: "cloud_recording:read:list_recording_files", required: false, use: "download recordings and meeting chat" },
205
+ { scope: "user:read:user", required: false, use: "session status --check" },
206
+ { scope: "meeting:read:meeting", required: false, use: "show one meeting, prepare a series" },
207
+ { scope: "meeting:read:invitation", required: false, use: "show a meeting's invitation" },
208
+ { scope: "meeting:write:meeting", required: false, use: "create a meeting" },
209
+ { scope: "meeting:update:meeting", required: false, use: "change a meeting" },
210
+ { scope: "meeting:delete:meeting", required: false, use: "cancel a meeting" },
211
+ { scope: "team_chat:read:list_contacts", required: false, use: "contacts list" },
212
+ { scope: "team_chat:read:contact", required: false, use: "contacts show" },
213
+ { scope: "agentic_search:read:search", required: false, use: "zoom search" }
214
+ ];
215
+ var zoomAppSetup = /* @__PURE__ */ __name(() => ({
216
+ marketplace_url: ZOOM_APP_BUILD_URL,
217
+ guide_url: ZOOM_APP_GUIDE_URL,
218
+ app_type: "General app",
219
+ management: "User-managed",
220
+ oauth: "Public Client OAuth",
221
+ redirect_url: REDIRECT,
222
+ allow_list: [REDIRECT],
223
+ scopes: ZOOM_APP_SCOPES,
224
+ config_key: "zoom.client_id"
225
+ }), "zoomAppSetup");
226
+ var zoomAppChecklist = /* @__PURE__ */ __name(() => {
227
+ const scopes = /* @__PURE__ */ __name((required) => ZOOM_APP_SCOPES.filter((one) => one.required === required).map((one) => one.scope).join(", "), "scopes");
228
+ return [
229
+ `1. Open ${ZOOM_APP_BUILD_URL} and build a General app.`,
230
+ "2. Choose User-managed. Under App Credentials, turn on Use Public Client OAuth and copy the Public Client ID.",
231
+ `3. OAuth Redirect URL: ${REDIRECT}`,
232
+ `4. OAuth Allow List: ${REDIRECT}`,
233
+ `5. Add the scopes meetings sync needs: ${scopes(true)}`,
234
+ ` Only for the features you use: ${scopes(false)}`,
235
+ "6. Run zm config set zoom.client_id <Public Client ID>, then zm <profile> session start.",
236
+ `The whole guide: ${ZOOM_APP_GUIDE_URL}`
237
+ ].join("\n");
238
+ }, "zoomAppChecklist");
239
+ var CLIENT_ID_NEED = {
240
+ field: "client_id",
241
+ secret: false,
242
+ prompt: "Public Client ID of your Zoom app",
243
+ hint: `Build a General app (User-managed, Public Client OAuth) at ${ZOOM_APP_BUILD_URL}; zm app lists what to enter.`
244
+ };
245
+
246
+ export {
247
+ login,
248
+ ZOOM_CONSTANTS,
249
+ NO_ZOOM_APP,
250
+ SET_ZOOM_APP,
251
+ zoomApp,
252
+ zoomClientId,
253
+ zoomClientReport,
254
+ checkedClientId,
255
+ ZOOM_APP_BUILD_URL,
256
+ ZOOM_APP_GUIDE_URL,
257
+ ZOOM_APP_SCOPES,
258
+ zoomAppSetup,
259
+ zoomAppChecklist,
260
+ CLIENT_ID_NEED
261
+ };