@wirecat/zoom-cli 0.82.0 → 0.83.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 (222) hide show
  1. package/README.md +2 -2
  2. package/contracts/wirecat.json +54 -54
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js +1 -1
  5. package/dist/api.js.map +1 -1
  6. package/dist/bin/main.js +2 -15
  7. package/dist/bin/main.js.map +1 -1
  8. package/dist/bin/zm.js +2 -2
  9. package/dist/bundle/agent-3HDWEZ5M.js +47 -0
  10. package/dist/bundle/{all-profiles-RULEKTDQ.js → all-profiles-RY2OMSDL.js} +8 -8
  11. package/dist/bundle/answer-policy-IFVXPPGW.js +131 -0
  12. package/dist/bundle/{anthropic-4NAQBZFL.js → anthropic-36VPSF7B.js} +3 -3
  13. package/dist/bundle/{app-server-VLR42U5L.js → app-server-ZVJVUGB7.js} +72 -71
  14. package/dist/bundle/{bun-OPDGMZZQ.js → bun-F4M4KCNA.js} +2 -2
  15. package/dist/bundle/{bun-sqlite-HC6X4AOX.js → bun-sqlite-IOPYIUA7.js} +4 -4
  16. package/dist/bundle/{chunk-MAJJ4PG3.js → chunk-26TW5RZ6.js} +31 -315
  17. package/dist/bundle/{chunk-XQQVMECZ.js → chunk-2DK5BBFF.js} +1 -1
  18. package/dist/bundle/{chunk-BP4FYANF.js → chunk-2IBKKVVZ.js} +4 -4
  19. package/dist/bundle/{chunk-52Y4ETKU.js → chunk-2S54TM4N.js} +3 -3
  20. package/dist/bundle/{chunk-DCYFT3FR.js → chunk-3AQHKXVR.js} +4 -4
  21. package/dist/bundle/{chunk-VS6WURLX.js → chunk-3CW2C7ZA.js} +2 -2
  22. package/dist/bundle/{chunk-6QYZP4E2.js → chunk-3KUEZK5Z.js} +2 -2
  23. package/dist/bundle/{chunk-YJXJJ2XP.js → chunk-3PXUQFHX.js} +7 -7
  24. package/dist/bundle/{chunk-PSKTMMCO.js → chunk-575JMTDR.js} +17 -16
  25. package/dist/bundle/{chunk-QPHBK63S.js → chunk-5B2LV4MS.js} +2 -1
  26. package/dist/bundle/{chunk-OGNO35A2.js → chunk-5WL5RHOO.js} +5 -100
  27. package/dist/bundle/{chunk-ASBDFXLS.js → chunk-6C7ESL5N.js} +2 -2
  28. package/dist/bundle/{chunk-676C2LE6.js → chunk-6E4KLYNP.js} +10 -10
  29. package/dist/bundle/chunk-7JDXR75Q.js +465 -0
  30. package/dist/bundle/{chunk-UR5DBODY.js → chunk-AK3H2C65.js} +30 -26
  31. package/dist/bundle/{chunk-VB7FZOYX.js → chunk-AQ5RIOUE.js} +1 -1
  32. package/dist/bundle/{chunk-UKAAAOPC.js → chunk-AQLUAQXJ.js} +23 -15
  33. package/dist/bundle/{chunk-V5EJSF2B.js → chunk-ASTLGFTR.js} +205 -170
  34. package/dist/bundle/{chunk-PWVJUIDQ.js → chunk-ATHBB7OU.js} +2 -2
  35. package/dist/bundle/{chunk-GTKPMYK7.js → chunk-B2NM65RD.js} +13 -5
  36. package/dist/bundle/{chunk-G6PETRMV.js → chunk-B4KHDXJE.js} +2 -2
  37. package/dist/bundle/{chunk-4HLQ2JGK.js → chunk-BAFC7WNI.js} +3 -3
  38. package/dist/bundle/{chunk-KVJ3I7UL.js → chunk-BTLZYRIW.js} +5 -5
  39. package/dist/bundle/{chunk-KKFY23AK.js → chunk-BZDS2X6Y.js} +61 -61
  40. package/dist/bundle/{chunk-VZ5PPYDG.js → chunk-C7JPYWYQ.js} +1 -1
  41. package/dist/bundle/{chunk-W5QHB53X.js → chunk-CDQUW25G.js} +10 -10
  42. package/dist/bundle/{chunk-AIKFOBDO.js → chunk-CJWGJBHW.js} +28 -8
  43. package/dist/bundle/{chunk-HP7A2ZOP.js → chunk-D7RCUODT.js} +7 -7
  44. package/dist/bundle/{chunk-LEKKTJKK.js → chunk-DQJECJUE.js} +23 -102
  45. package/dist/bundle/{chunk-B32KZRQM.js → chunk-E4JQ3MCW.js} +11 -11
  46. package/dist/bundle/{chunk-HZENBDW2.js → chunk-E4ODYLEK.js} +6 -6
  47. package/dist/bundle/{chunk-RQOZBTNI.js → chunk-EE45N67Q.js} +3 -3
  48. package/dist/bundle/{chunk-VB72LTSZ.js → chunk-EEEU4MKK.js} +11 -11
  49. package/dist/bundle/{chunk-EGTCQKHV.js → chunk-ETIZGA4P.js} +5 -5
  50. package/dist/bundle/{chunk-BDKVOU3I.js → chunk-F44QK6CK.js} +3 -3
  51. package/dist/bundle/{chunk-274SLQNW.js → chunk-FH2UFNH6.js} +2 -2
  52. package/dist/bundle/{chunk-3HC5F3P7.js → chunk-FTH6WGYO.js} +1 -1
  53. package/dist/bundle/chunk-FWACRG4X.js +160 -0
  54. package/dist/bundle/chunk-G5SZL7G2.js +150 -0
  55. package/dist/bundle/{chunk-EQG3PIH2.js → chunk-G6CHEFAG.js} +2 -2
  56. package/dist/bundle/{chunk-66ALX4ZI.js → chunk-GHJD7PE6.js} +18 -18
  57. package/dist/bundle/{chunk-Q7ICVP25.js → chunk-GZ7WBU5Y.js} +1 -1
  58. package/dist/bundle/{chunk-UL2PXLKT.js → chunk-H6A4NWYJ.js} +320 -43
  59. package/dist/bundle/{chunk-WMANRJR5.js → chunk-HKLRI2LB.js} +6 -6
  60. package/dist/bundle/{chunk-L75SMSJR.js → chunk-HMD4FZYY.js} +3 -3
  61. package/dist/bundle/{chunk-2JHVQMVC.js → chunk-HO4JGD4Q.js} +1 -1
  62. package/dist/bundle/{chunk-WOPVBRPV.js → chunk-HUAHLO6N.js} +1 -1
  63. package/dist/bundle/{chunk-6VK332XS.js → chunk-IQZXFWFI.js} +2 -2
  64. package/dist/bundle/{chunk-NB7EOAUZ.js → chunk-ISQ23VKV.js} +1 -1
  65. package/dist/bundle/{chunk-QVYAV7F2.js → chunk-JEH33ZCD.js} +3 -3
  66. package/dist/bundle/{chunk-ICPJT672.js → chunk-JUNQYWQ2.js} +6 -6
  67. package/dist/bundle/{chunk-K5JGJIV2.js → chunk-JUXMVQWJ.js} +311 -152
  68. package/dist/bundle/{chunk-OBXQLFT5.js → chunk-KHQDWYCG.js} +1 -1
  69. package/dist/bundle/{chunk-GGMAIIVE.js → chunk-KYRYD4CR.js} +1 -1
  70. package/dist/bundle/chunk-LBGT6W4R.js +377 -0
  71. package/dist/bundle/{chunk-JQ54DYAQ.js → chunk-LN7HRYTH.js} +1 -1
  72. package/dist/bundle/{chunk-G46WJ7YO.js → chunk-MEB7HBTM.js} +5 -5
  73. package/dist/bundle/{chunk-M7H4MCAX.js → chunk-MEEFWYX3.js} +3 -3
  74. package/dist/bundle/{chunk-73MOMNLL.js → chunk-MNOAMJ6H.js} +1 -1
  75. package/dist/bundle/{chunk-A6EZK5RG.js → chunk-MYHPXJDG.js} +1 -1
  76. package/dist/bundle/{chunk-HC6VN5CO.js → chunk-NGI37RFW.js} +7 -7
  77. package/dist/bundle/{chunk-2GP573Q4.js → chunk-NZMWD7Y3.js} +3656 -2697
  78. package/dist/bundle/chunk-O6IECJRM.js +54 -0
  79. package/dist/bundle/{chunk-Y6PVS55U.js → chunk-OBWL3BUV.js} +35 -35
  80. package/dist/bundle/{chunk-2XBDILVW.js → chunk-OEEWVKJX.js} +1 -1
  81. package/dist/bundle/chunk-OGTN2KVG.js +147 -0
  82. package/dist/bundle/{chunk-GWGHH56B.js → chunk-OQYZ3W4K.js} +10 -10
  83. package/dist/bundle/{chunk-2CI2OEZQ.js → chunk-P3ZCTYGW.js} +2 -2
  84. package/dist/bundle/{chunk-OIPYBF43.js → chunk-PVEBAHFU.js} +2 -2
  85. package/dist/bundle/{chunk-2SWKQ7C4.js → chunk-R6IA5UQB.js} +1 -1
  86. package/dist/bundle/{chunk-T7IAWEBU.js → chunk-RLOH7RDN.js} +7 -7
  87. package/dist/bundle/{chunk-KJ6USQDZ.js → chunk-RQ4AXSCJ.js} +5 -5
  88. package/dist/bundle/{chunk-XQ2WL3HB.js → chunk-RYGTCRFZ.js} +2 -2
  89. package/dist/bundle/{chunk-N46F72AF.js → chunk-S4PXWIE4.js} +84 -86
  90. package/dist/bundle/{chunk-MQLPZBMQ.js → chunk-SDZZYZLL.js} +1 -1
  91. package/dist/bundle/{chunk-E745WZKY.js → chunk-SHQAYUK6.js} +6 -6
  92. package/dist/bundle/{chunk-3YM4B2GT.js → chunk-T3W4V4A6.js} +1 -1
  93. package/dist/bundle/{chunk-4N7PP76S.js → chunk-TCT5D2X2.js} +1 -1
  94. package/dist/bundle/{chunk-7QPIUMUG.js → chunk-TDWPOSPR.js} +10 -10
  95. package/dist/bundle/{chunk-ZED2CJW5.js → chunk-TER3N27H.js} +6 -6
  96. package/dist/bundle/{chunk-UQCTXZEP.js → chunk-TMTNP7QN.js} +9 -9
  97. package/dist/bundle/{chunk-KWU46LNK.js → chunk-TO5UEWXR.js} +2 -2
  98. package/dist/bundle/{chunk-OQFQ77AY.js → chunk-UBH7YF3C.js} +61 -59
  99. package/dist/bundle/{chunk-QVSL5WJ7.js → chunk-UEAE3JUU.js} +488 -436
  100. package/dist/bundle/{chunk-5KYQ53EF.js → chunk-UHR363OD.js} +7 -7
  101. package/dist/bundle/{chunk-7UVDPRFK.js → chunk-UM52A76S.js} +5 -5
  102. package/dist/bundle/{chunk-ZOYOXWJB.js → chunk-URP6BTHN.js} +34 -156
  103. package/dist/bundle/{chunk-N3JLO63O.js → chunk-UWQEAA6S.js} +1 -1
  104. package/dist/bundle/{chunk-OO4TRVPB.js → chunk-VR7QZGRU.js} +5 -5
  105. package/dist/bundle/{chunk-GBHMT2IU.js → chunk-VRH5PBSL.js} +13 -13
  106. package/dist/bundle/chunk-VTLQTQKY.js +1756 -0
  107. package/dist/bundle/{chunk-ACI4YIEH.js → chunk-VTYNLTDW.js} +1 -1
  108. package/dist/bundle/{chunk-NEMX3UNN.js → chunk-WY7XG6TE.js} +2 -2
  109. package/dist/bundle/{chunk-AC6VJNMJ.js → chunk-XEOZTA3H.js} +1 -1
  110. package/dist/bundle/{chunk-QG6PILDO.js → chunk-XH23ML2V.js} +1 -1
  111. package/dist/bundle/{chunk-5HAUK3I4.js → chunk-XYF76A26.js} +1179 -783
  112. package/dist/bundle/{chunk-KQPUVXKX.js → chunk-ZDYJAEVB.js} +2 -2
  113. package/dist/bundle/{chunk-TKNM22OH.js → chunk-ZJ63HDBT.js} +1 -1
  114. package/dist/bundle/{chunk-5TU7Y5UW.js → chunk-ZT4ZPUIO.js} +11 -11
  115. package/dist/bundle/{cli-U4O5XB7J.js → cli-JK6PQSSN.js} +94 -79
  116. package/dist/bundle/command-contract-F3QNBKPX.js +46 -0
  117. package/dist/bundle/{command-server-entry-KKH6ZWJV.js → command-server-entry-DJLGN62J.js} +31 -30
  118. package/dist/bundle/config-TYYMV3HV.js +118 -0
  119. package/dist/bundle/{decode-TPCNXEK4.js → decode-ZZICNNFF.js} +3 -3
  120. package/dist/bundle/{dist-7CLBCYZN.js → dist-NQPF25XI.js} +47 -46
  121. package/dist/bundle/{echarts-O3TNDAXJ.js → echarts-QMAA7HH5.js} +2 -2
  122. package/dist/bundle/{embed-WCJSFVSK.js → embed-T64EUKUI.js} +4 -4
  123. package/dist/bundle/{embedder-TBBUPXBX.js → embedder-ZEKISZXI.js} +7 -7
  124. package/dist/bundle/{first-run-ELEMFW42.js → first-run-ZFNY4RRH.js} +8 -8
  125. package/dist/bundle/first-screen-LPGCHRHZ.js +47 -0
  126. package/dist/bundle/{folders-LXOL4N4S.js → folders-ROKVKSCT.js} +2 -2
  127. package/dist/bundle/{instructions-AMH5RWVJ.js → instructions-4H7UREH2.js} +1 -1
  128. package/dist/bundle/{main-YAA7WQ23.js → main-GCK3VYAA.js} +24 -34
  129. package/dist/bundle/meeting-combined-7HDPOUPB.js +28 -0
  130. package/dist/bundle/{meeting-model-3BZJ3EQP.js → meeting-model-MVUW7UPQ.js} +10 -10
  131. package/dist/bundle/{meeting-semantic-3HU7I2SJ.js → meeting-semantic-IF633WGX.js} +3 -3
  132. package/dist/bundle/{meetings-XWMB6FOH.js → meetings-RY2AAPHV.js} +2 -2
  133. package/dist/bundle/{node-EGMCBAO7.js → node-P3PUHKYH.js} +2 -2
  134. package/dist/bundle/{node-sqlite-IJBWENFX.js → node-sqlite-ASAZJNHE.js} +5 -5
  135. package/dist/bundle/{oauth-SZDDAP7A.js → oauth-4U3OCK3W.js} +5 -5
  136. package/dist/bundle/oauth-AJARLPSY.js +46 -0
  137. package/dist/bundle/{open-NS3TMKZX.js → open-SEJRY2ZI.js} +3 -3
  138. package/dist/bundle/{openai-4DN6WI3B.js → openai-FZDSC2AA.js} +12 -12
  139. package/dist/bundle/{output-file-2UB5JP3R.js → output-file-RYIOIXMD.js} +1 -1
  140. package/dist/bundle/{process-SGHEN6MQ.js → process-AFIXYXWL.js} +1 -1
  141. package/dist/bundle/{program-GVCGZP27.js → program-OYLVYA4Z.js} +174 -236
  142. package/dist/bundle/{prompt-HJFMPFVC.js → prompt-BCRD64F4.js} +3 -3
  143. package/dist/bundle/{public-C2ZB2AGQ.js → public-SVJILCNI.js} +43 -35
  144. package/dist/bundle/{recognize-2SEI5PPM.js → recognize-25ITJWGX.js} +2 -2
  145. package/dist/bundle/{remote-2DMS74XE.js → remote-5FBAJX7O.js} +8 -8
  146. package/dist/bundle/{rerank-H6GCYVIA.js → rerank-2HGWWORY.js} +5 -5
  147. package/dist/bundle/run-log-7HRF4Y47.js +145 -0
  148. package/dist/bundle/{serve-ODVRPFJO.js → serve-RL35MSJD.js} +7 -7
  149. package/dist/bundle/{server-PCLIO24L.js → server-QUSBWACP.js} +64 -63
  150. package/dist/bundle/server-SCK2SRDK.js +96 -0
  151. package/dist/bundle/{services-4QAPXBLO.js → services-BGRIQNDC.js} +55 -53
  152. package/dist/bundle/{speech-MA6ZT3WE.js → speech-4W3ZMTFK.js} +21 -21
  153. package/dist/bundle/{sqlite-runtime-PVMAUXRN.js → sqlite-runtime-K3KLRZCV.js} +4 -4
  154. package/dist/bundle/{state-QFMTYUME.js → state-GYL4C74G.js} +4 -4
  155. package/dist/bundle/{store-25OTAQC3.js → store-27UQMNEO.js} +23 -21
  156. package/dist/bundle/{store-F724QIKJ.js → store-NLYH5SQX.js} +54 -43
  157. package/dist/bundle/store-connection-CZILWRSR.js +112 -0
  158. package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +84 -0
  159. package/dist/bundle/{streaming-S22C4DG5.js → streaming-73EKEGPF.js} +2 -2
  160. package/dist/bundle/surface-CV3C4RV2.js +82 -0
  161. package/dist/bundle/tokens-PY3S22LY.js +27 -0
  162. package/dist/bundle/zm.js +2 -2
  163. package/dist/bundle/{zoom-app-YWFB367P.js → zoom-app-4F4YY4OI.js} +8 -6
  164. package/dist/commands.d.ts +1 -8
  165. package/dist/commands.d.ts.map +1 -1
  166. package/dist/commands.js +3 -33
  167. package/dist/commands.js.map +1 -1
  168. package/dist/index.d.ts +1 -2
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/index.js +1 -2
  171. package/dist/index.js.map +1 -1
  172. package/dist/program-bindings.d.ts.map +1 -1
  173. package/dist/program-bindings.js +2 -12
  174. package/dist/program-bindings.js.map +1 -1
  175. package/dist/program.d.ts +3 -5
  176. package/dist/program.d.ts.map +1 -1
  177. package/dist/run.d.ts.map +1 -1
  178. package/dist/run.js +6 -1
  179. package/dist/run.js.map +1 -1
  180. package/dist/setup-commands.d.ts +5 -14
  181. package/dist/setup-commands.d.ts.map +1 -1
  182. package/dist/setup-commands.js +7 -142
  183. package/dist/setup-commands.js.map +1 -1
  184. package/dist/tokens.d.ts +20 -44
  185. package/dist/tokens.d.ts.map +1 -1
  186. package/dist/tokens.js +95 -308
  187. package/dist/tokens.js.map +1 -1
  188. package/dist/version.d.ts +1 -1
  189. package/dist/version.js +1 -1
  190. package/dist/zoom-app.js +1 -1
  191. package/dist/zoom-app.js.map +1 -1
  192. package/dist/zoom-session.d.ts +6 -0
  193. package/dist/zoom-session.d.ts.map +1 -0
  194. package/dist/zoom-session.js +72 -0
  195. package/dist/zoom-session.js.map +1 -0
  196. package/package.json +2 -2
  197. package/skills/zoom-cli/references/setup.md +2 -2
  198. package/dist/bundle/agent-F4TRJWWS.js +0 -46
  199. package/dist/bundle/answer-policy-6XC57AEZ.js +0 -131
  200. package/dist/bundle/chunk-2DBF2IIC.js +0 -330
  201. package/dist/bundle/chunk-DSZYABYL.js +0 -808
  202. package/dist/bundle/chunk-KXJ3JEDH.js +0 -2
  203. package/dist/bundle/chunk-LAYYO4WD.js +0 -31
  204. package/dist/bundle/chunk-PMUPN6JW.js +0 -773
  205. package/dist/bundle/chunk-TKVBFJ5C.js +0 -37
  206. package/dist/bundle/chunk-YY7XKHDY.js +0 -79
  207. package/dist/bundle/command-contract-FBTK6GQX.js +0 -45
  208. package/dist/bundle/config-FRJSIZNN.js +0 -118
  209. package/dist/bundle/first-screen-DIOBWMKP.js +0 -46
  210. package/dist/bundle/meeting-combined-UXCF4SJ3.js +0 -26
  211. package/dist/bundle/run-log-QU26SUZP.js +0 -145
  212. package/dist/bundle/server-NBPF6IDZ.js +0 -95
  213. package/dist/bundle/store-connection-OGPXANGB.js +0 -111
  214. package/dist/bundle/store-maintenance-command-2CM7LLNQ.js +0 -83
  215. package/dist/bundle/surface-7PXHWCF6.js +0 -81
  216. package/dist/bundle/tokens-NLUHA2DW.js +0 -25
  217. package/dist/login.d.ts +0 -16
  218. package/dist/login.d.ts.map +0 -1
  219. package/dist/login.js +0 -98
  220. package/dist/login.js.map +0 -1
  221. package/dist/bundle/{chunk-6CWL5BKG.js → chunk-3QN5KDFZ.js} +147 -147
  222. /package/dist/bundle/{chunk-7O7XM37N.js → chunk-7ECP5ZQR.js} +0 -0
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  formatMeetingReference
5
- } from "./chunk-KKFY23AK.js";
5
+ } from "./chunk-BZDS2X6Y.js";
6
6
  import {
7
7
  CliError
8
8
  } from "./chunk-IANKXHSE.js";
@@ -10,7 +10,7 @@ import {
10
10
  __name
11
11
  } from "./chunk-ZVVMGPBJ.js";
12
12
 
13
- // 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/services/meeting-semantic.js
13
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
14
14
  var positive = /* @__PURE__ */ __name((value, name, max) => {
15
15
  if (!Number.isSafeInteger(value) || value < 1 || value > max)
16
16
  throw new CliError("validation_error", `Invalid ${name}`);
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
 
4
- // 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/ports/wirecat-tools.js
4
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/ports/wirecat-tools.js
5
5
  var WIRECAT_TOOLS = [
6
6
  {
7
7
  command: "tg",
@@ -4,10 +4,10 @@ import {
4
4
  readSharedSection,
5
5
  sharedConfigPath,
6
6
  writeSharedSection
7
- } from "./chunk-E745WZKY.js";
7
+ } from "./chunk-SHQAYUK6.js";
8
8
  import {
9
9
  storePath
10
- } from "./chunk-274SLQNW.js";
10
+ } from "./chunk-FH2UFNH6.js";
11
11
  import {
12
12
  CliError
13
13
  } from "./chunk-IANKXHSE.js";
@@ -15,7 +15,7 @@ import {
15
15
  __name
16
16
  } from "./chunk-ZVVMGPBJ.js";
17
17
 
18
- // 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/setup-answers.js
18
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
19
19
  var PERMISSION_ANSWERS = ["readonly", "allow"];
20
20
  var QUESTIONS = ["languages", "tools", "permissions"];
21
21
  var SECTION = "setup";
@@ -4,24 +4,24 @@ import {
4
4
  embeddingKeys,
5
5
  endpointKeyName,
6
6
  modelGateway
7
- } from "./chunk-676C2LE6.js";
7
+ } from "./chunk-6E4KLYNP.js";
8
8
  import {
9
9
  modelAddressAllowed,
10
10
  onThisComputer
11
- } from "./chunk-6QYZP4E2.js";
11
+ } from "./chunk-3KUEZK5Z.js";
12
12
  import {
13
13
  readSharedSection,
14
14
  sharedConfigPath,
15
15
  writeSharedSection
16
- } from "./chunk-E745WZKY.js";
16
+ } from "./chunk-SHQAYUK6.js";
17
17
  import {
18
18
  storePath
19
- } from "./chunk-274SLQNW.js";
19
+ } from "./chunk-FH2UFNH6.js";
20
20
  import {
21
21
  Credentials,
22
22
  isMovedRun,
23
23
  resolvePaths
24
- } from "./chunk-6CWL5BKG.js";
24
+ } from "./chunk-3QN5KDFZ.js";
25
25
  import {
26
26
  check,
27
27
  getDotPath,
@@ -42,7 +42,7 @@ import {
42
42
  __name
43
43
  } from "./chunk-ZVVMGPBJ.js";
44
44
 
45
- // 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/ai.js
45
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/models/ai.js
46
46
  var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
47
47
  var DEFAULT_BASE_URL = {
48
48
  anthropic: "https://api.anthropic.com",
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  withTimeLimit
5
- } from "./chunk-QPHBK63S.js";
5
+ } from "./chunk-5B2LV4MS.js";
6
6
  import {
7
7
  acquireLock
8
- } from "./chunk-N46F72AF.js";
8
+ } from "./chunk-S4PXWIE4.js";
9
9
  import {
10
10
  Credentials,
11
11
  isMovedRun,
12
12
  keyringService,
13
13
  realSleep,
14
14
  systemKeyring
15
- } from "./chunk-6CWL5BKG.js";
15
+ } from "./chunk-3QN5KDFZ.js";
16
16
  import {
17
17
  CliError,
18
18
  isCliError
@@ -21,154 +21,34 @@ import {
21
21
  __name
22
22
  } from "./chunk-ZVVMGPBJ.js";
23
23
 
24
- // 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/oauth/storage.js
25
- var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
26
- var parse = /* @__PURE__ */ __name((raw) => {
27
- let value;
28
- try {
29
- value = JSON.parse(raw);
30
- } catch {
31
- throw invalid();
32
- }
33
- if (typeof value !== "object" || value === null || Array.isArray(value))
34
- throw invalid();
35
- return value;
36
- }, "parse");
37
- var text = /* @__PURE__ */ __name((value) => typeof value === "string" && value ? value : void 0, "text");
38
- var finite = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) ? value : void 0, "finite");
39
- var previousOf = /* @__PURE__ */ __name((raw) => {
40
- if (raw === void 0)
41
- return {};
42
- try {
43
- return parse(raw);
44
- } catch {
45
- return {};
46
- }
47
- }, "previousOf");
48
- var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, field]) => field !== void 0)), "defined");
49
- var oauthAccount = /* @__PURE__ */ __name((providerId, profile) => {
50
- if (!profile.trim())
51
- throw new CliError("validation_error", "name a profile: a sign-in always belongs to one", {
52
- reason: "profile.missing"
53
- });
54
- return `oauth:${providerId}:${profile}`;
55
- }, "oauthAccount");
56
- var standardCodec = /* @__PURE__ */ __name((providerId) => ({
57
- decode: /* @__PURE__ */ __name((raw) => {
58
- const value = parse(raw);
59
- const refreshToken = text(value.refreshToken);
60
- const clientId = text(value.clientId);
61
- if (value.version !== 1 || value.provider !== providerId || !refreshToken || !clientId)
62
- throw invalid();
63
- if (!Array.isArray(value.scopes) || !value.scopes.every((scope) => typeof scope === "string"))
64
- throw invalid();
65
- const source = text(value.clientSource);
66
- return {
67
- client: defined({ clientId, clientSecret: text(value.clientSecret), source }),
68
- tokens: defined({
69
- accessToken: text(value.accessToken),
70
- refreshToken,
71
- expiresAt: finite(value.expiresAt),
72
- scopes: value.scopes,
73
- tokenType: text(value.tokenType)
74
- })
75
- };
76
- }, "decode"),
77
- encode: /* @__PURE__ */ __name(({ tokens, client, previous, extra }) => JSON.stringify(defined({
78
- ...previousOf(previous),
79
- ...extra,
80
- version: 1,
81
- provider: providerId,
82
- clientId: client.clientId,
83
- // Only WireCat's secret, which is public: a later release may ship another default app, and a refresh needs
84
- // the secret of the app that signed in. An owner's own secret stays where the owner keeps it.
85
- clientSecret: client.source === "constants" ? client.clientSecret : void 0,
86
- clientSource: client.source,
87
- accessToken: tokens.accessToken,
88
- refreshToken: tokens.refreshToken,
89
- expiresAt: tokens.expiresAt,
90
- scopes: tokens.scopes,
91
- tokenType: tokens.tokenType
92
- })), "encode")
93
- }), "standardCodec");
94
- var googleStandard = standardCodec("google");
95
- var keyringFailure = /* @__PURE__ */ __name((thrown, secret) => {
96
- const failure = new CliError("configuration_error", "could not reach the saved sign-in; use an available keyring or file storage", { reason: "oauth.not-saved" });
97
- const words = thrown instanceof Error ? thrown.message : String(thrown);
98
- failure.cause = new Error(secret ? words.replaceAll(secret, "[secret]") : words);
99
- return failure;
100
- }, "keyringFailure");
101
- var credentialStorage = /* @__PURE__ */ __name((options) => {
102
- if (!options.credentials.keyring)
103
- throw new CliError("configuration_error", "a sign-in store needs its keyring passed in, never a default");
104
- const credentials = new Credentials(options.credentials);
105
- const { account, codec } = options;
106
- const moved = options.credentials.isolated === true || options.credentials.keyring === systemKeyring && isMovedRun({ appName: options.credentials.service, env: options.credentials.env ?? process.env });
107
- const service = keyringService(options.credentials.service, options.credentials.configDir, options.credentials.isolated);
108
- const raw = /* @__PURE__ */ __name((name) => {
109
- try {
110
- return credentials.read(name)?.secret;
111
- } catch (error) {
112
- if (error instanceof CliError)
113
- throw error;
114
- throw keyringFailure(error);
115
- }
116
- }, "raw");
117
- const fallsBack = options.credentials.storage !== "keyring";
118
- const replaced = /* @__PURE__ */ __name((name) => {
119
- try {
120
- return raw(name);
121
- } catch (error) {
122
- if (fallsBack && error instanceof CliError && error.details.reason === "keyring.unreachable")
123
- return void 0;
124
- throw error;
125
- }
126
- }, "replaced");
127
- const save = /* @__PURE__ */ __name((value, writeOptions) => {
128
- try {
129
- credentials.write(account, value, writeOptions);
130
- } catch (error) {
131
- throw keyringFailure(error, value);
132
- }
133
- }, "save");
134
- const current = /* @__PURE__ */ __name(() => {
135
- const own = raw(account);
136
- if (own !== void 0)
137
- return own;
138
- for (const legacy of options.legacyAccounts ?? []) {
139
- const found = raw(legacy);
140
- if (found === void 0)
141
- continue;
142
- codec.decode(found);
143
- if (!moved)
144
- save(found);
145
- return found;
146
- }
147
- return void 0;
148
- }, "current");
149
- return {
150
- key: `${service}\0${account}`,
151
- moved,
152
- ...codec.rotating ? { rotating: true } : {},
153
- probe: /* @__PURE__ */ __name(() => {
154
- replaced(account);
155
- }, "probe"),
156
- read: /* @__PURE__ */ __name(() => {
157
- const value = current();
158
- return value === void 0 ? void 0 : codec.decode(value);
159
- }, "read"),
160
- write: /* @__PURE__ */ __name((input, writeOptions) => save(codec.encode({ ...input, previous: replaced(account), ...writeOptions?.signIn ? { signIn: true } : {} }), writeOptions), "write"),
161
- remove: /* @__PURE__ */ __name(() => {
162
- try {
163
- return credentials.remove(account);
164
- } catch (error) {
165
- throw keyringFailure(error);
166
- }
167
- }, "remove")
168
- };
169
- }, "credentialStorage");
24
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/private-files.js
25
+ import { existsSync, statSync } from "node:fs";
26
+ var shellQuoted = /* @__PURE__ */ __name((path) => `'${path.replaceAll("'", `'\\''`)}'`, "shellQuoted");
27
+ var privateFiles = /* @__PURE__ */ __name(({ files, dirs }, platform = process.platform) => {
28
+ if (platform === "win32")
29
+ return { checked: false, reason: "Windows has no Unix file modes" };
30
+ const problems = [];
31
+ const check = /* @__PURE__ */ __name((path, want, folder) => {
32
+ if (!existsSync(path))
33
+ return;
34
+ const stat = statSync(path);
35
+ if (stat.isDirectory() !== folder)
36
+ return;
37
+ const mode = stat.mode & 511;
38
+ if ((mode & 63) === 0)
39
+ return;
40
+ const octal = /* @__PURE__ */ __name((value) => `0${value.toString(8)}`, "octal");
41
+ problems.push({ path, mode: octal(mode), want: octal(want), fix: `chmod ${want.toString(8)} ${shellQuoted(path)}` });
42
+ }, "check");
43
+ for (const file of files)
44
+ check(file, 384, false);
45
+ for (const dir of dirs)
46
+ check(dir, 448, true);
47
+ return { checked: true, ok: problems.length === 0, problems };
48
+ }, "privateFiles");
49
+ var withSqliteSidecars = /* @__PURE__ */ __name((path) => [path, `${path}-wal`, `${path}-shm`], "withSqliteSidecars");
170
50
 
171
- // 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/oauth/authorize.js
51
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/oauth/authorize.js
172
52
  import { createHash, randomBytes } from "node:crypto";
173
53
  import { createServer } from "node:http";
174
54
  var DEFAULT_TIMEOUT_MS = 3e5;
@@ -304,9 +184,10 @@ var authorize = /* @__PURE__ */ __name(async (options) => {
304
184
  }
305
185
  }, "authorize");
306
186
 
307
- // 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/oauth/requests.js
187
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/oauth/requests.js
308
188
  var REQUEST_LIMIT_MS = 3e4;
309
189
  var TOKEN_LOG_EVENT = "oauth.token";
190
+ var TOKEN_LOG_ALLOW = ["provider", "operation", "outcome", "status", "rotated", "pid"];
310
191
  var object = /* @__PURE__ */ __name((value) => {
311
192
  if (typeof value !== "object" || value === null || Array.isArray(value))
312
193
  throw new Error("not an object");
@@ -465,7 +346,7 @@ var revokeToken = /* @__PURE__ */ __name(async (provider, tokens, context) => {
465
346
  });
466
347
  }, "revokeToken");
467
348
 
468
- // 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/oauth/keeper.js
349
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/oauth/keeper.js
469
350
  import { createHash as createHash2 } from "node:crypto";
470
351
  import { join } from "node:path";
471
352
  import { setTimeout as delay } from "node:timers/promises";
@@ -632,9 +513,287 @@ var tokenKeeper = /* @__PURE__ */ __name((options) => {
632
513
  };
633
514
  }, "tokenKeeper");
634
515
 
516
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/oauth/storage.js
517
+ var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
518
+ var parse = /* @__PURE__ */ __name((raw) => {
519
+ let value;
520
+ try {
521
+ value = JSON.parse(raw);
522
+ } catch {
523
+ throw invalid();
524
+ }
525
+ if (typeof value !== "object" || value === null || Array.isArray(value))
526
+ throw invalid();
527
+ return value;
528
+ }, "parse");
529
+ var text = /* @__PURE__ */ __name((value) => typeof value === "string" && value ? value : void 0, "text");
530
+ var finite = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) ? value : void 0, "finite");
531
+ var previousOf = /* @__PURE__ */ __name((raw) => {
532
+ if (raw === void 0)
533
+ return {};
534
+ try {
535
+ return parse(raw);
536
+ } catch {
537
+ return {};
538
+ }
539
+ }, "previousOf");
540
+ var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, field]) => field !== void 0)), "defined");
541
+ var oauthAccount = /* @__PURE__ */ __name((providerId, profile) => {
542
+ if (!profile.trim())
543
+ throw new CliError("validation_error", "name a profile: a sign-in always belongs to one", {
544
+ reason: "profile.missing"
545
+ });
546
+ return `oauth:${providerId}:${profile}`;
547
+ }, "oauthAccount");
548
+ var standardCodec = /* @__PURE__ */ __name((providerId) => ({
549
+ decode: /* @__PURE__ */ __name((raw) => {
550
+ const value = parse(raw);
551
+ const refreshToken = text(value.refreshToken);
552
+ const clientId = text(value.clientId);
553
+ if (value.version !== 1 || value.provider !== providerId || !refreshToken || !clientId)
554
+ throw invalid();
555
+ if (!Array.isArray(value.scopes) || !value.scopes.every((scope) => typeof scope === "string"))
556
+ throw invalid();
557
+ const source = text(value.clientSource);
558
+ return {
559
+ client: defined({ clientId, clientSecret: text(value.clientSecret), source }),
560
+ tokens: defined({
561
+ accessToken: text(value.accessToken),
562
+ refreshToken,
563
+ expiresAt: finite(value.expiresAt),
564
+ scopes: value.scopes,
565
+ tokenType: text(value.tokenType)
566
+ })
567
+ };
568
+ }, "decode"),
569
+ encode: /* @__PURE__ */ __name(({ tokens, client, previous, extra }) => JSON.stringify(defined({
570
+ ...previousOf(previous),
571
+ ...extra,
572
+ version: 1,
573
+ provider: providerId,
574
+ clientId: client.clientId,
575
+ // Only WireCat's secret, which is public: a later release may ship another default app, and a refresh needs
576
+ // the secret of the app that signed in. An owner's own secret stays where the owner keeps it.
577
+ clientSecret: client.source === "constants" ? client.clientSecret : void 0,
578
+ clientSource: client.source,
579
+ accessToken: tokens.accessToken,
580
+ refreshToken: tokens.refreshToken,
581
+ expiresAt: tokens.expiresAt,
582
+ scopes: tokens.scopes,
583
+ tokenType: tokens.tokenType
584
+ })), "encode")
585
+ }), "standardCodec");
586
+ var driveSessionCodec = {
587
+ decode: /* @__PURE__ */ __name((raw) => {
588
+ const value = parse(raw);
589
+ const tokens = value.tokens;
590
+ if (typeof tokens !== "object" || tokens === null || Array.isArray(tokens))
591
+ throw invalid();
592
+ const fields = tokens;
593
+ const refreshToken = text(fields.refresh_token);
594
+ const clientId = text(value.clientId);
595
+ if (!refreshToken || !clientId || typeof value.principal !== "string")
596
+ throw invalid();
597
+ return {
598
+ client: defined({
599
+ clientId,
600
+ clientSecret: text(value.clientSecret),
601
+ source: text(value.clientSource)
602
+ }),
603
+ tokens: defined({
604
+ accessToken: text(fields.access_token),
605
+ refreshToken,
606
+ expiresAt: finite(fields.expiry_date),
607
+ scopes: typeof fields.scope === "string" ? fields.scope.split(/\s+/).filter(Boolean) : [],
608
+ tokenType: text(fields.token_type)
609
+ })
610
+ };
611
+ }, "decode"),
612
+ encode: /* @__PURE__ */ __name(({ tokens, client, previous, extra }) => {
613
+ const before = previousOf(previous);
614
+ const oldTokens = typeof before.tokens === "object" && before.tokens !== null ? before.tokens : {};
615
+ const session = {
616
+ ...before,
617
+ ...extra,
618
+ clientId: client.clientId,
619
+ ...client.clientSecret ? { clientSecret: client.clientSecret } : {},
620
+ ...client.source ? { clientSource: client.source } : {},
621
+ tokens: defined({
622
+ ...oldTokens,
623
+ access_token: tokens.accessToken,
624
+ refresh_token: tokens.refreshToken,
625
+ expiry_date: tokens.expiresAt,
626
+ ...tokens.scopes.length ? { scope: tokens.scopes.join(" ") } : {},
627
+ token_type: tokens.tokenType
628
+ })
629
+ };
630
+ if (typeof session.principal !== "string")
631
+ throw new CliError("configuration_error", "drive's sign-in entry needs the account's principal");
632
+ return JSON.stringify(session);
633
+ }, "encode")
634
+ };
635
+ var googleStandard = standardCodec("google");
636
+ var googleTokenCodec = {
637
+ decode: /* @__PURE__ */ __name((raw) => {
638
+ const stored = googleStandard.decode(raw);
639
+ const clientSecret = text(parse(raw).clientSecret);
640
+ return clientSecret ? { ...stored, client: { clientId: stored.client?.clientId ?? "", clientSecret } } : stored;
641
+ }, "decode"),
642
+ encode: /* @__PURE__ */ __name((input) => {
643
+ const entry = parse(googleStandard.encode(input));
644
+ if (input.client.clientSecret)
645
+ entry.clientSecret = input.client.clientSecret;
646
+ else
647
+ delete entry.clientSecret;
648
+ return JSON.stringify(entry);
649
+ }, "encode")
650
+ };
651
+ var accountTokenCodec = /* @__PURE__ */ __name((providerId) => {
652
+ const standard = standardCodec(providerId);
653
+ return {
654
+ rotating: true,
655
+ decode: /* @__PURE__ */ __name((raw) => {
656
+ const stored = standard.decode(raw);
657
+ const value = parse(raw);
658
+ const clientSecret = text(value.clientSecret);
659
+ const host = text(value.host);
660
+ const userId = text(value.userId);
661
+ if (!host || !userId || !clientSecret)
662
+ throw invalid();
663
+ return { ...stored, client: { ...stored.client, clientSecret }, account: { host, userId } };
664
+ }, "decode"),
665
+ encode: /* @__PURE__ */ __name((input) => {
666
+ const entry = parse(standard.encode(input));
667
+ const from = input.signIn ? input.extra ?? {} : entry;
668
+ if (!input.client.clientSecret || typeof from.host !== "string" || typeof from.userId !== "string")
669
+ throw new CliError("configuration_error", "an account-bound sign-in needs the app's secret, its host and user");
670
+ entry.clientSecret = input.client.clientSecret;
671
+ return JSON.stringify(entry);
672
+ }, "encode")
673
+ };
674
+ }, "accountTokenCodec");
675
+ var zoomTokenCodec = {
676
+ decode: /* @__PURE__ */ __name((raw) => {
677
+ const value = parse(raw);
678
+ const accessToken = text(value.accessToken);
679
+ const refreshToken = text(value.refreshToken);
680
+ const expiresAt = finite(value.expiresAt);
681
+ if (!accessToken || !refreshToken || expiresAt === void 0)
682
+ throw invalid();
683
+ if (!Array.isArray(value.scopes) || !value.scopes.every((scope) => typeof scope === "string"))
684
+ throw invalid();
685
+ return { tokens: { accessToken, refreshToken, expiresAt, scopes: value.scopes } };
686
+ }, "decode"),
687
+ encode: /* @__PURE__ */ __name(({ tokens }) => {
688
+ if (!tokens.accessToken)
689
+ throw new CliError("invalid_response", "zm's sign-in entry needs an access token");
690
+ return JSON.stringify({
691
+ accessToken: tokens.accessToken,
692
+ refreshToken: tokens.refreshToken,
693
+ expiresAt: tokens.expiresAt ?? 0,
694
+ scopes: tokens.scopes
695
+ });
696
+ }, "encode")
697
+ };
698
+ var keyringFailure = /* @__PURE__ */ __name((thrown, secret) => {
699
+ const failure = new CliError("configuration_error", "could not reach the saved sign-in; use an available keyring or file storage", { reason: "oauth.not-saved" });
700
+ const words = thrown instanceof Error ? thrown.message : String(thrown);
701
+ failure.cause = new Error(secret ? words.replaceAll(secret, "[secret]") : words);
702
+ return failure;
703
+ }, "keyringFailure");
704
+ var credentialStorage = /* @__PURE__ */ __name((options) => {
705
+ if (!options.credentials.keyring)
706
+ throw new CliError("configuration_error", "a sign-in store needs its keyring passed in, never a default");
707
+ const credentials = new Credentials(options.credentials);
708
+ const { account, codec } = options;
709
+ const moved = options.credentials.isolated === true || options.credentials.keyring === systemKeyring && isMovedRun({ appName: options.credentials.service, env: options.credentials.env ?? process.env });
710
+ const service = keyringService(options.credentials.service, options.credentials.configDir, options.credentials.isolated);
711
+ const legacies = (options.legacyAccounts ?? []).map((legacy) => typeof legacy === "string" ? { account: legacy, store: credentials } : { account: legacy.account, store: new Credentials({ ...options.credentials, service: legacy.service }) });
712
+ const sourced = /* @__PURE__ */ __name((name, store = credentials) => {
713
+ try {
714
+ return store.read(name);
715
+ } catch (error) {
716
+ if (error instanceof CliError)
717
+ throw error;
718
+ throw keyringFailure(error);
719
+ }
720
+ }, "sourced");
721
+ const raw = /* @__PURE__ */ __name((name) => sourced(name)?.secret, "raw");
722
+ const fallsBack = options.credentials.storage !== "keyring";
723
+ const replaced = /* @__PURE__ */ __name((name) => {
724
+ try {
725
+ return raw(name);
726
+ } catch (error) {
727
+ if (fallsBack && error instanceof CliError && error.details.reason === "keyring.unreachable")
728
+ return void 0;
729
+ throw error;
730
+ }
731
+ }, "replaced");
732
+ const save = /* @__PURE__ */ __name((value, writeOptions) => {
733
+ try {
734
+ credentials.write(account, value, writeOptions);
735
+ } catch (error) {
736
+ throw keyringFailure(error, value);
737
+ }
738
+ }, "save");
739
+ const current = /* @__PURE__ */ __name(() => {
740
+ const own = raw(account);
741
+ if (own !== void 0)
742
+ return own;
743
+ for (const legacy of legacies) {
744
+ const found = sourced(legacy.account, legacy.store);
745
+ if (found === void 0)
746
+ continue;
747
+ codec.decode(found.secret);
748
+ if (!moved && found.source === "file")
749
+ try {
750
+ new Credentials({ ...options.credentials, storage: "file" }).write(account, found.secret);
751
+ } catch (error) {
752
+ throw keyringFailure(error, found.secret);
753
+ }
754
+ else if (!moved)
755
+ save(found.secret);
756
+ return found.secret;
757
+ }
758
+ return void 0;
759
+ }, "current");
760
+ return {
761
+ key: `${service}\0${account}`,
762
+ moved,
763
+ ...codec.rotating ? { rotating: true } : {},
764
+ probe: /* @__PURE__ */ __name(() => {
765
+ replaced(account);
766
+ }, "probe"),
767
+ read: /* @__PURE__ */ __name(() => {
768
+ const value = current();
769
+ return value === void 0 ? void 0 : codec.decode(value);
770
+ }, "read"),
771
+ write: /* @__PURE__ */ __name((input, writeOptions) => save(codec.encode({ ...input, previous: replaced(account), ...writeOptions?.signIn ? { signIn: true } : {} }), writeOptions), "write"),
772
+ remove: /* @__PURE__ */ __name(() => {
773
+ try {
774
+ const older = moved ? [] : legacies.flatMap((legacy) => legacy.store.remove(legacy.account));
775
+ return [.../* @__PURE__ */ new Set([...credentials.remove(account), ...older])];
776
+ } catch (error) {
777
+ throw keyringFailure(error);
778
+ }
779
+ }, "remove")
780
+ };
781
+ }, "credentialStorage");
782
+
635
783
  export {
784
+ privateFiles,
785
+ withSqliteSidecars,
786
+ authorize,
787
+ TOKEN_LOG_EVENT,
788
+ TOKEN_LOG_ALLOW,
789
+ requestTokens,
790
+ revokeToken,
636
791
  tokenKeeper,
637
792
  oauthAccount,
638
793
  standardCodec,
794
+ driveSessionCodec,
795
+ googleTokenCodec,
796
+ accountTokenCodec,
797
+ zoomTokenCodec,
639
798
  credentialStorage
640
799
  };
@@ -7,7 +7,7 @@ import {
7
7
  __name
8
8
  } from "./chunk-ZVVMGPBJ.js";
9
9
 
10
- // 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/input-policy.js
10
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
11
11
  var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
12
12
  var MAX_SECRET_INPUT = 64 * 1024;
13
13
  var policies = /* @__PURE__ */ new WeakMap();
@@ -4,7 +4,7 @@ import {
4
4
  __name
5
5
  } from "./chunk-ZVVMGPBJ.js";
6
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/store/driver.js
7
+ // node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/driver.js
8
8
  var TIME_LIMIT_FUNCTION = "wc_time_limit";
9
9
  var TimeLimitReached = class extends Error {
10
10
  static {