gong-code 0.1.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 (374) hide show
  1. package/README.md +38 -0
  2. package/dist/SKILL-22jccbka.md +1 -0
  3. package/dist/chunk-01wdn84e.js +8 -0
  4. package/dist/chunk-04bc74vz.js +243 -0
  5. package/dist/chunk-05t2vqsb.js +490 -0
  6. package/dist/chunk-0727wret.js +159 -0
  7. package/dist/chunk-07rervty.js +200 -0
  8. package/dist/chunk-0b9nxvyg.js +478 -0
  9. package/dist/chunk-0e428b73.js +600 -0
  10. package/dist/chunk-0hqfheht.js +3439 -0
  11. package/dist/chunk-0pnk52c2.js +116 -0
  12. package/dist/chunk-0sbddf6m.js +68 -0
  13. package/dist/chunk-0vf7xb84.js +176 -0
  14. package/dist/chunk-0yz17yjy.js +1061 -0
  15. package/dist/chunk-0zscb6c7.js +10 -0
  16. package/dist/chunk-10p21kq6.js +378 -0
  17. package/dist/chunk-17k78pmz.js +120 -0
  18. package/dist/chunk-19jvvqzp.js +1390 -0
  19. package/dist/chunk-1d5czqnr.js +173 -0
  20. package/dist/chunk-1gjysfnf.js +13876 -0
  21. package/dist/chunk-1jjfv0wd.js +467 -0
  22. package/dist/chunk-1jjzp2pa.js +617 -0
  23. package/dist/chunk-1m38dj2k.js +155 -0
  24. package/dist/chunk-1pgttway.js +211 -0
  25. package/dist/chunk-1vvnx0gb.js +8035 -0
  26. package/dist/chunk-1ztm9yps.js +49145 -0
  27. package/dist/chunk-208x1t0m.js +88 -0
  28. package/dist/chunk-20xqs3yk.js +843 -0
  29. package/dist/chunk-2b2c0wnn.js +584 -0
  30. package/dist/chunk-2g07117j.js +541 -0
  31. package/dist/chunk-2g6p2t3w.js +780 -0
  32. package/dist/chunk-2kjeaeg7.js +28 -0
  33. package/dist/chunk-2n0s2dhc.js +12 -0
  34. package/dist/chunk-2p0hvt8k.js +785 -0
  35. package/dist/chunk-2qmxg9y7.js +40174 -0
  36. package/dist/chunk-2qpy8kne.js +28 -0
  37. package/dist/chunk-2rgbf62a.js +40 -0
  38. package/dist/chunk-2tx0s41y.js +150 -0
  39. package/dist/chunk-2x8zk5cz.js +101 -0
  40. package/dist/chunk-2yqy25z4.js +48 -0
  41. package/dist/chunk-318g78ty.js +552 -0
  42. package/dist/chunk-31gfg8tz.js +290 -0
  43. package/dist/chunk-32n0s532.js +1317 -0
  44. package/dist/chunk-35dw2r9g.js +137 -0
  45. package/dist/chunk-36b5zqvn.js +1865 -0
  46. package/dist/chunk-38kpx69j.js +97 -0
  47. package/dist/chunk-3b01vp8p.js +815 -0
  48. package/dist/chunk-3f76a1ek.js +317 -0
  49. package/dist/chunk-3fd1hkhh.js +4254 -0
  50. package/dist/chunk-3ffxa7zj.js +8 -0
  51. package/dist/chunk-3gcj7w95.js +8 -0
  52. package/dist/chunk-3jf3k40v.js +970 -0
  53. package/dist/chunk-3k51qfp9.js +9301 -0
  54. package/dist/chunk-3mhygd2v.js +1180 -0
  55. package/dist/chunk-3p6y0gvb.js +117 -0
  56. package/dist/chunk-3r60xdt5.js +93 -0
  57. package/dist/chunk-43agf6xv.js +8 -0
  58. package/dist/chunk-46zr418r.js +15 -0
  59. package/dist/chunk-48k2bs4w.js +118 -0
  60. package/dist/chunk-4p987a4z.js +84 -0
  61. package/dist/chunk-4px25pe0.js +776 -0
  62. package/dist/chunk-4s93jyky.js +113 -0
  63. package/dist/chunk-4xv8bedf.js +58 -0
  64. package/dist/chunk-4y382mzd.js +346 -0
  65. package/dist/chunk-52dzw4bc.js +246 -0
  66. package/dist/chunk-52qqmh5g.js +110 -0
  67. package/dist/chunk-53grnhp7.js +8 -0
  68. package/dist/chunk-59craaxx.js +4249 -0
  69. package/dist/chunk-5b833jqs.js +96 -0
  70. package/dist/chunk-5cp2q9sh.js +58 -0
  71. package/dist/chunk-5dbaxmts.js +87 -0
  72. package/dist/chunk-5f5sxgp0.js +96 -0
  73. package/dist/chunk-5mkfderj.js +195 -0
  74. package/dist/chunk-5qw0mpvq.js +389 -0
  75. package/dist/chunk-5rxmszm8.js +48 -0
  76. package/dist/chunk-5ygxa3hr.js +65 -0
  77. package/dist/chunk-61d5dqq2.js +71 -0
  78. package/dist/chunk-6350958y.js +272 -0
  79. package/dist/chunk-65z8hg8j.js +1337 -0
  80. package/dist/chunk-6aq85gdq.js +8 -0
  81. package/dist/chunk-6cjh9exg.js +40751 -0
  82. package/dist/chunk-6e41p5m6.js +187 -0
  83. package/dist/chunk-6jb6xcnq.js +10511 -0
  84. package/dist/chunk-6jta29r1.js +20 -0
  85. package/dist/chunk-6q7f2rrv.js +4757 -0
  86. package/dist/chunk-6sg0ec6v.js +41 -0
  87. package/dist/chunk-6v0rhx4e.js +328 -0
  88. package/dist/chunk-6x5mz95v.js +751 -0
  89. package/dist/chunk-6xqp51qr.js +87 -0
  90. package/dist/chunk-6xvyx1s9.js +6957 -0
  91. package/dist/chunk-6ywh7wgp.js +468 -0
  92. package/dist/chunk-75ne77gm.js +1920 -0
  93. package/dist/chunk-77cb06js.js +602 -0
  94. package/dist/chunk-78n9kfp8.js +1645 -0
  95. package/dist/chunk-7be87rww.js +277 -0
  96. package/dist/chunk-7e1qjk3s.js +125 -0
  97. package/dist/chunk-7e7nxnss.js +360 -0
  98. package/dist/chunk-7g8156qp.js +55 -0
  99. package/dist/chunk-7nz71s42.js +3353 -0
  100. package/dist/chunk-7r078t2x.js +113 -0
  101. package/dist/chunk-7shx41hj.js +3094 -0
  102. package/dist/chunk-7yexhdjs.js +216 -0
  103. package/dist/chunk-83kmfcjv.js +256 -0
  104. package/dist/chunk-846rr9n1.js +107 -0
  105. package/dist/chunk-84ncsm1r.js +183 -0
  106. package/dist/chunk-867x8aq0.js +8936 -0
  107. package/dist/chunk-8byh30kb.js +1947 -0
  108. package/dist/chunk-8c8f6gnt.js +432 -0
  109. package/dist/chunk-8gtdseev.js +454 -0
  110. package/dist/chunk-8jfh9rq6.js +642 -0
  111. package/dist/chunk-8n4n4m67.js +800 -0
  112. package/dist/chunk-8za61tze.js +847 -0
  113. package/dist/chunk-9029sbq1.js +57 -0
  114. package/dist/chunk-94dm5rrm.js +673 -0
  115. package/dist/chunk-9bs8n985.js +329 -0
  116. package/dist/chunk-9c23776j.js +763 -0
  117. package/dist/chunk-9e93g81n.js +298 -0
  118. package/dist/chunk-9f3d61y7.js +548 -0
  119. package/dist/chunk-9gc3andd.js +422 -0
  120. package/dist/chunk-9kn3tgpb.js +130 -0
  121. package/dist/chunk-9m5rn7hk.js +61 -0
  122. package/dist/chunk-9p4hsd6a.js +50 -0
  123. package/dist/chunk-9qasfk8n.js +758 -0
  124. package/dist/chunk-9snp5mn2.js +533 -0
  125. package/dist/chunk-9tcvras3.js +2331 -0
  126. package/dist/chunk-a0186ngk.js +57 -0
  127. package/dist/chunk-a2m8f0aj.js +268 -0
  128. package/dist/chunk-a2rcafav.js +716 -0
  129. package/dist/chunk-a9hjdzar.js +160 -0
  130. package/dist/chunk-aak6ts5n.js +526 -0
  131. package/dist/chunk-aca3w84n.js +267 -0
  132. package/dist/chunk-ae76ded0.js +30 -0
  133. package/dist/chunk-afnjhn3j.js +21933 -0
  134. package/dist/chunk-ahj70tf0.js +880 -0
  135. package/dist/chunk-apjsxssq.js +169 -0
  136. package/dist/chunk-av49wjj1.js +43 -0
  137. package/dist/chunk-axggebfy.js +206 -0
  138. package/dist/chunk-az7jpbv8.js +16 -0
  139. package/dist/chunk-azz7sep6.js +328 -0
  140. package/dist/chunk-b4tpz2g1.js +93 -0
  141. package/dist/chunk-bczf2eyq.js +115 -0
  142. package/dist/chunk-bd95f637.js +208 -0
  143. package/dist/chunk-bdhdmkya.js +10 -0
  144. package/dist/chunk-bp0ynk17.js +32 -0
  145. package/dist/chunk-bq75gxjs.js +90 -0
  146. package/dist/chunk-btk5jaq6.js +10464 -0
  147. package/dist/chunk-bv4c48a5.js +120 -0
  148. package/dist/chunk-byfb105n.js +341 -0
  149. package/dist/chunk-c0bdmy7w.js +4223 -0
  150. package/dist/chunk-c20aqkz8.js +641 -0
  151. package/dist/chunk-c4jg3s2c.js +163 -0
  152. package/dist/chunk-c61q5cer.js +258 -0
  153. package/dist/chunk-c9f761sy.js +386 -0
  154. package/dist/chunk-ca6jkz06.js +157 -0
  155. package/dist/chunk-ccyg9ap9.js +171374 -0
  156. package/dist/chunk-cfej8cc7.js +371 -0
  157. package/dist/chunk-cjqxdnf9.js +23 -0
  158. package/dist/chunk-ckrs789w.js +8 -0
  159. package/dist/chunk-cqeq13wg.js +48 -0
  160. package/dist/chunk-crfj3w5e.js +22821 -0
  161. package/dist/chunk-ct5x6z7g.js +8066 -0
  162. package/dist/chunk-cv5h8n8c.js +101 -0
  163. package/dist/chunk-cwe8h159.js +1563 -0
  164. package/dist/chunk-cwm234zz.js +908 -0
  165. package/dist/chunk-d1jkfp45.js +1580 -0
  166. package/dist/chunk-d3hb1qdr.js +126 -0
  167. package/dist/chunk-d70d0zer.js +713 -0
  168. package/dist/chunk-d91tx29f.js +105 -0
  169. package/dist/chunk-d952pymh.js +20 -0
  170. package/dist/chunk-d9af3z8k.js +720 -0
  171. package/dist/chunk-da1n53c2.js +47 -0
  172. package/dist/chunk-df5c1x8m.js +732 -0
  173. package/dist/chunk-dkv64xys.js +71 -0
  174. package/dist/chunk-dm7166v6.js +251 -0
  175. package/dist/chunk-dr0y5a61.js +258 -0
  176. package/dist/chunk-drzb0rrd.js +306 -0
  177. package/dist/chunk-dw1v1q7w.js +37 -0
  178. package/dist/chunk-e224qet4.js +348 -0
  179. package/dist/chunk-e50ckbv0.js +1099 -0
  180. package/dist/chunk-e5gn6by6.js +1165 -0
  181. package/dist/chunk-e7m3f74m.js +37 -0
  182. package/dist/chunk-e8ghgwaj.js +295 -0
  183. package/dist/chunk-ed8k4ya2.js +41 -0
  184. package/dist/chunk-eh0vnqdz.js +76 -0
  185. package/dist/chunk-epwrzr35.js +4301 -0
  186. package/dist/chunk-er9h6sw5.js +5379 -0
  187. package/dist/chunk-eta5aekm.js +79 -0
  188. package/dist/chunk-ev5gxscq.js +63 -0
  189. package/dist/chunk-evp72hv5.js +212 -0
  190. package/dist/chunk-ex41stfq.js +127 -0
  191. package/dist/chunk-ezpa510h.js +62 -0
  192. package/dist/chunk-f0fm6dey.js +477 -0
  193. package/dist/chunk-f239sbhc.js +152 -0
  194. package/dist/chunk-f2bj47xf.js +109 -0
  195. package/dist/chunk-f4t24rq4.js +258 -0
  196. package/dist/chunk-f9ghvzy8.js +106 -0
  197. package/dist/chunk-f9rahzgr.js +99 -0
  198. package/dist/chunk-ff75qzty.js +521 -0
  199. package/dist/chunk-fj0ctt6q.js +264 -0
  200. package/dist/chunk-fj7wxdt3.js +221 -0
  201. package/dist/chunk-fnnpqv92.js +714 -0
  202. package/dist/chunk-fpd3zzx1.js +26696 -0
  203. package/dist/chunk-fqv2cn76.js +227 -0
  204. package/dist/chunk-fqw9j3bj.js +439 -0
  205. package/dist/chunk-frbcqhz0.js +4984 -0
  206. package/dist/chunk-fzkj59sg.js +174 -0
  207. package/dist/chunk-fzpzbpbw.js +248 -0
  208. package/dist/chunk-g52cpmd1.js +686 -0
  209. package/dist/chunk-g98m2qe6.js +31 -0
  210. package/dist/chunk-g9zgq4vy.js +715 -0
  211. package/dist/chunk-gbpt7tm8.js +687 -0
  212. package/dist/chunk-gg52jka8.js +373 -0
  213. package/dist/chunk-gjttphax.js +5793 -0
  214. package/dist/chunk-gs7vjaas.js +65 -0
  215. package/dist/chunk-gv8n85j2.js +8 -0
  216. package/dist/chunk-gxdwm6pt.js +650 -0
  217. package/dist/chunk-gy8wajg2.js +1014 -0
  218. package/dist/chunk-gz3647m0.js +200 -0
  219. package/dist/chunk-gzg07mqh.js +16 -0
  220. package/dist/chunk-h3zc60tq.js +44 -0
  221. package/dist/chunk-h4p1qt16.js +74 -0
  222. package/dist/chunk-h8219f18.js +282 -0
  223. package/dist/chunk-h9agq92v.js +331 -0
  224. package/dist/chunk-hhjtpwbj.js +16 -0
  225. package/dist/chunk-hpgpwzra.js +548 -0
  226. package/dist/chunk-hsnjvn19.js +80 -0
  227. package/dist/chunk-hsp9qrry.js +417 -0
  228. package/dist/chunk-hwz6aq2m.js +3939 -0
  229. package/dist/chunk-hzph0hbh.js +272 -0
  230. package/dist/chunk-hzqkss6v.js +153 -0
  231. package/dist/chunk-j0t31f39.js +1149 -0
  232. package/dist/chunk-j1qm6n1v.js +30 -0
  233. package/dist/chunk-j6e4b522.js +81 -0
  234. package/dist/chunk-j7qfbvxk.js +84 -0
  235. package/dist/chunk-j7qv3hvm.js +1635 -0
  236. package/dist/chunk-j8mxc6k6.js +213 -0
  237. package/dist/chunk-jevj87jn.js +224 -0
  238. package/dist/chunk-jk2ps88q.js +815 -0
  239. package/dist/chunk-jz7tbdyv.js +1599 -0
  240. package/dist/chunk-k36jpjvh.js +300 -0
  241. package/dist/chunk-k4nmrt3w.js +61 -0
  242. package/dist/chunk-kavn03r9.js +16606 -0
  243. package/dist/chunk-kkgav8dm.js +54 -0
  244. package/dist/chunk-kkq26g5c.js +33 -0
  245. package/dist/chunk-kp6nepx4.js +106 -0
  246. package/dist/chunk-ksefybc8.js +1551 -0
  247. package/dist/chunk-kv147680.js +3436 -0
  248. package/dist/chunk-kya46axt.js +833 -0
  249. package/dist/chunk-kyz233ny.js +227 -0
  250. package/dist/chunk-kzs75xmj.js +143 -0
  251. package/dist/chunk-m0vrez9w.js +266 -0
  252. package/dist/chunk-m1wadav3.js +118 -0
  253. package/dist/chunk-m4rfx3cj.js +221 -0
  254. package/dist/chunk-mc9zaggs.js +6374 -0
  255. package/dist/chunk-mcg5ttj4.js +105 -0
  256. package/dist/chunk-mf4r7918.js +63 -0
  257. package/dist/chunk-mh9khrt4.js +286 -0
  258. package/dist/chunk-mhc4szw7.js +22 -0
  259. package/dist/chunk-mkq0yzp0.js +38 -0
  260. package/dist/chunk-mr58jv4w.js +256 -0
  261. package/dist/chunk-mrrx3bmt.js +168 -0
  262. package/dist/chunk-mtyk3zz6.js +87 -0
  263. package/dist/chunk-mvgxntv6.js +62 -0
  264. package/dist/chunk-mwnjydcm.js +102 -0
  265. package/dist/chunk-mwxt0m3f.js +862 -0
  266. package/dist/chunk-mz1pxck8.js +998 -0
  267. package/dist/chunk-n3agghys.js +214 -0
  268. package/dist/chunk-n6q02ya9.js +442 -0
  269. package/dist/chunk-nt3y91vh.js +443 -0
  270. package/dist/chunk-nt837qt9.js +21 -0
  271. package/dist/chunk-ntgmegfs.js +39 -0
  272. package/dist/chunk-nwk16bbd.js +30 -0
  273. package/dist/chunk-p367ay90.js +672 -0
  274. package/dist/chunk-p7m3x9qk.js +48 -0
  275. package/dist/chunk-pagmjwp5.js +132 -0
  276. package/dist/chunk-pbd4r8ek.js +161 -0
  277. package/dist/chunk-pdkpssgv.js +2422 -0
  278. package/dist/chunk-pf6z1e35.js +32 -0
  279. package/dist/chunk-pfzejvpt.js +213 -0
  280. package/dist/chunk-pktxyhvk.js +400 -0
  281. package/dist/chunk-pp5xhveq.js +124 -0
  282. package/dist/chunk-ppnd7a8x.js +38 -0
  283. package/dist/chunk-pqh2w7dr.js +2202 -0
  284. package/dist/chunk-pr878d0z.js +240 -0
  285. package/dist/chunk-psf0y7hy.js +140 -0
  286. package/dist/chunk-pz2zz2f7.js +1586 -0
  287. package/dist/chunk-q0xkrxy8.js +890 -0
  288. package/dist/chunk-q5b0kpr3.js +14369 -0
  289. package/dist/chunk-q7z3t531.js +334 -0
  290. package/dist/chunk-qdjjtgwt.js +3183 -0
  291. package/dist/chunk-qezv7msv.js +26 -0
  292. package/dist/chunk-qmxn7f86.js +2643 -0
  293. package/dist/chunk-qqc3b97c.js +15 -0
  294. package/dist/chunk-qwrp63wh.js +145 -0
  295. package/dist/chunk-qyvqbst3.js +537 -0
  296. package/dist/chunk-qztvd4hd.js +465 -0
  297. package/dist/chunk-r0bvez4y.js +235 -0
  298. package/dist/chunk-r3z0896k.js +2831 -0
  299. package/dist/chunk-r4cxb6t7.js +32 -0
  300. package/dist/chunk-rb8k68m7.js +118 -0
  301. package/dist/chunk-rdprgm4t.js +42 -0
  302. package/dist/chunk-rex82hys.js +1710 -0
  303. package/dist/chunk-rjjakkw2.js +2560 -0
  304. package/dist/chunk-rka6gcv3.js +304 -0
  305. package/dist/chunk-rkz12ghm.js +144 -0
  306. package/dist/chunk-rnc7m1qs.js +436 -0
  307. package/dist/chunk-rx6z23h0.js +165 -0
  308. package/dist/chunk-s76582j1.js +28 -0
  309. package/dist/chunk-sez03qd9.js +7140 -0
  310. package/dist/chunk-sjvdn2ep.js +130 -0
  311. package/dist/chunk-smwhyy8p.js +115 -0
  312. package/dist/chunk-snw7nh0d.js +695 -0
  313. package/dist/chunk-sqx9c057.js +193 -0
  314. package/dist/chunk-sscms68s.js +16 -0
  315. package/dist/chunk-stknnmsb.js +272 -0
  316. package/dist/chunk-sywdxbs6.js +853 -0
  317. package/dist/chunk-syxy4pf2.js +782 -0
  318. package/dist/chunk-t0hpqsqn.js +6157 -0
  319. package/dist/chunk-tjm70vnw.js +123 -0
  320. package/dist/chunk-trzh0msn.js +154 -0
  321. package/dist/chunk-v1z17cpg.js +723 -0
  322. package/dist/chunk-vsfj449x.js +333 -0
  323. package/dist/chunk-vvkq20tt.js +287 -0
  324. package/dist/chunk-vxgdzx6p.js +338 -0
  325. package/dist/chunk-vxqhjyfz.js +15 -0
  326. package/dist/chunk-vzsstfmb.js +80 -0
  327. package/dist/chunk-w1jew5sn.js +69 -0
  328. package/dist/chunk-w3kwr76v.js +789 -0
  329. package/dist/chunk-w40netr9.js +59 -0
  330. package/dist/chunk-w99cpfdg.js +559 -0
  331. package/dist/chunk-wacn14d2.js +271 -0
  332. package/dist/chunk-wbhrqrq3.js +3033 -0
  333. package/dist/chunk-wfg9g0p7.js +17612 -0
  334. package/dist/chunk-wj3vjsbx.js +93 -0
  335. package/dist/chunk-wjhq855a.js +372 -0
  336. package/dist/chunk-wr06gqxh.js +114 -0
  337. package/dist/chunk-ws0z2y1g.js +195 -0
  338. package/dist/chunk-wt62wqcj.js +98 -0
  339. package/dist/chunk-wx4v7ddx.js +42 -0
  340. package/dist/chunk-wy0t3vb2.js +6101 -0
  341. package/dist/chunk-wysz7qk4.js +280 -0
  342. package/dist/chunk-x63fx1vd.js +192 -0
  343. package/dist/chunk-x8b7vft8.js +132 -0
  344. package/dist/chunk-x8jhkgxb.js +346 -0
  345. package/dist/chunk-x9z4q5k5.js +275 -0
  346. package/dist/chunk-xjd7e9jq.js +126 -0
  347. package/dist/chunk-xjr0n27e.js +42 -0
  348. package/dist/chunk-xpwyw7cd.js +24 -0
  349. package/dist/chunk-xw4ycnyz.js +37 -0
  350. package/dist/chunk-y66bqywr.js +17303 -0
  351. package/dist/chunk-ycarry7d.js +157 -0
  352. package/dist/chunk-ycr0hp6v.js +1486 -0
  353. package/dist/chunk-yqmaw6hf.js +496 -0
  354. package/dist/chunk-yrtm7d23.js +602 -0
  355. package/dist/chunk-yts879rw.js +48 -0
  356. package/dist/chunk-yvmhx96e.js +347 -0
  357. package/dist/chunk-ywq00rg4.js +246 -0
  358. package/dist/chunk-yygeg5mj.js +752 -0
  359. package/dist/chunk-z0exw850.js +726 -0
  360. package/dist/chunk-z2dp53wn.js +17 -0
  361. package/dist/chunk-z4rzc9nd.js +103 -0
  362. package/dist/chunk-zb0akt77.js +684 -0
  363. package/dist/chunk-zb2xrj5t.js +1789 -0
  364. package/dist/chunk-zbptn0ky.js +423 -0
  365. package/dist/chunk-zd45wbmf.js +1090 -0
  366. package/dist/chunk-zjkvspz9.js +2050 -0
  367. package/dist/chunk-zke1sp3x.js +1524 -0
  368. package/dist/chunk-zv2cvfsv.js +58 -0
  369. package/dist/chunk-zy4tmqst.js +644 -0
  370. package/dist/chunk-zygzzzvk.js +192 -0
  371. package/dist/cli-21v3v6ny.md +1 -0
  372. package/dist/cli.js +246 -0
  373. package/dist/server-n5f2q89z.md +1 -0
  374. package/package.json +161 -0
@@ -0,0 +1,465 @@
1
+ // @bun
2
+ import {
3
+ init_useExitOnCtrlCDWithKeybindings,
4
+ useExitOnCtrlCDWithKeybindings
5
+ } from "./chunk-f9rahzgr.js";
6
+ import {
7
+ Pane,
8
+ init_KeybindingContext,
9
+ init_Pane,
10
+ init_useKeybinding,
11
+ useKeybinding,
12
+ useOptionalKeybindingContext
13
+ } from "./chunk-8n4n4m67.js";
14
+ import {
15
+ require_jsx_dev_runtime,
16
+ require_react
17
+ } from "./chunk-0yz17yjy.js";
18
+ import {
19
+ init_analytics,
20
+ logEvent
21
+ } from "./chunk-ezpa510h.js";
22
+ import {
23
+ __esm,
24
+ __toESM
25
+ } from "./chunk-eta5aekm.js";
26
+ import {
27
+ __INVALID__REF__
28
+ } from "./chunk-ccyg9ap9.js";
29
+ import {
30
+ Text,
31
+ ThemedBox_default,
32
+ ThemedText,
33
+ init_Text,
34
+ init_ink,
35
+ require_compiler_runtime
36
+ } from "./chunk-fpd3zzx1.js";
37
+
38
+ // src/keybindings/useShortcutDisplay.ts
39
+ function useShortcutDisplay(action, context, fallback) {
40
+ const keybindingContext = useOptionalKeybindingContext();
41
+ const resolved = keybindingContext?.getDisplayText(action, context);
42
+ const isFallback = resolved === undefined;
43
+ const reason = keybindingContext ? "action_not_found" : "no_context";
44
+ const hasLoggedRef = import_react.useRef(false);
45
+ import_react.useEffect(() => {
46
+ if (isFallback && !hasLoggedRef.current) {
47
+ hasLoggedRef.current = true;
48
+ logEvent("tengu_keybinding_fallback_used", {
49
+ action,
50
+ context,
51
+ fallback,
52
+ reason
53
+ });
54
+ }
55
+ }, [isFallback, action, context, fallback, reason]);
56
+ return isFallback ? fallback : resolved;
57
+ }
58
+ var import_react;
59
+ var init_useShortcutDisplay = __esm(() => {
60
+ init_analytics();
61
+ init_KeybindingContext();
62
+ import_react = __toESM(require_react(), 1);
63
+ });
64
+
65
+ // src/components/design-system/KeyboardShortcutHint.tsx
66
+ function KeyboardShortcutHint(t0) {
67
+ const $ = import_compiler_runtime.c(9);
68
+ const {
69
+ shortcut,
70
+ action,
71
+ parens: t1,
72
+ bold: t2
73
+ } = t0;
74
+ const parens = t1 === undefined ? false : t1;
75
+ const bold = t2 === undefined ? false : t2;
76
+ let t3;
77
+ if ($[0] !== bold || $[1] !== shortcut) {
78
+ t3 = bold ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
79
+ bold: true,
80
+ children: shortcut
81
+ }, undefined, false, undefined, this) : shortcut;
82
+ $[0] = bold;
83
+ $[1] = shortcut;
84
+ $[2] = t3;
85
+ } else {
86
+ t3 = $[2];
87
+ }
88
+ const shortcutText = t3;
89
+ if (parens) {
90
+ let t42;
91
+ if ($[3] !== action || $[4] !== shortcutText) {
92
+ t42 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
93
+ children: [
94
+ "(",
95
+ shortcutText,
96
+ " to ",
97
+ action,
98
+ ")"
99
+ ]
100
+ }, undefined, true, undefined, this);
101
+ $[3] = action;
102
+ $[4] = shortcutText;
103
+ $[5] = t42;
104
+ } else {
105
+ t42 = $[5];
106
+ }
107
+ return t42;
108
+ }
109
+ let t4;
110
+ if ($[6] !== action || $[7] !== shortcutText) {
111
+ t4 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
112
+ children: [
113
+ shortcutText,
114
+ " to ",
115
+ action
116
+ ]
117
+ }, undefined, true, undefined, this);
118
+ $[6] = action;
119
+ $[7] = shortcutText;
120
+ $[8] = t4;
121
+ } else {
122
+ t4 = $[8];
123
+ }
124
+ return t4;
125
+ }
126
+ var import_compiler_runtime, jsx_dev_runtime;
127
+ var init_KeyboardShortcutHint = __esm(() => {
128
+ init_Text();
129
+ import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
130
+ jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
131
+ });
132
+
133
+ // src/components/ConfigurableShortcutHint.tsx
134
+ function ConfigurableShortcutHint(t0) {
135
+ const $ = import_compiler_runtime2.c(5);
136
+ const {
137
+ action,
138
+ context,
139
+ fallback,
140
+ description,
141
+ parens,
142
+ bold
143
+ } = t0;
144
+ const shortcut = useShortcutDisplay(action, context, fallback);
145
+ let t1;
146
+ if ($[0] !== bold || $[1] !== description || $[2] !== parens || $[3] !== shortcut) {
147
+ t1 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(KeyboardShortcutHint, {
148
+ shortcut,
149
+ action: description,
150
+ parens,
151
+ bold
152
+ }, undefined, false, undefined, this);
153
+ $[0] = bold;
154
+ $[1] = description;
155
+ $[2] = parens;
156
+ $[3] = shortcut;
157
+ $[4] = t1;
158
+ } else {
159
+ t1 = $[4];
160
+ }
161
+ return t1;
162
+ }
163
+ var import_compiler_runtime2, jsx_dev_runtime2;
164
+ var init_ConfigurableShortcutHint = __esm(() => {
165
+ init_useShortcutDisplay();
166
+ init_KeyboardShortcutHint();
167
+ import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
168
+ jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
169
+ });
170
+
171
+ // src/components/design-system/Byline.tsx
172
+ function Byline(t0) {
173
+ const $ = import_compiler_runtime3.c(5);
174
+ const {
175
+ children
176
+ } = t0;
177
+ let t1;
178
+ let t2;
179
+ if ($[0] !== children) {
180
+ t2 = Symbol.for("react.early_return_sentinel");
181
+ bb0: {
182
+ const validChildren = import_react2.Children.toArray(children);
183
+ if (validChildren.length === 0) {
184
+ t2 = null;
185
+ break bb0;
186
+ }
187
+ t1 = validChildren.map(_temp);
188
+ }
189
+ $[0] = children;
190
+ $[1] = t1;
191
+ $[2] = t2;
192
+ } else {
193
+ t1 = $[1];
194
+ t2 = $[2];
195
+ }
196
+ if (t2 !== Symbol.for("react.early_return_sentinel")) {
197
+ return t2;
198
+ }
199
+ let t3;
200
+ if ($[3] !== t1) {
201
+ t3 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
202
+ children: t1
203
+ }, undefined, false, undefined, this);
204
+ $[3] = t1;
205
+ $[4] = t3;
206
+ } else {
207
+ t3 = $[4];
208
+ }
209
+ return t3;
210
+ }
211
+ function _temp(child, index) {
212
+ return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(import_react2.default.Fragment, {
213
+ children: [
214
+ index > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
215
+ dimColor: true,
216
+ children: " \xB7 "
217
+ }, undefined, false, undefined, this),
218
+ child
219
+ ]
220
+ }, import_react2.isValidElement(child) ? child.key ?? index : index, true, undefined, this);
221
+ }
222
+ var import_compiler_runtime3, import_react2, jsx_dev_runtime3;
223
+ var init_Byline = __esm(() => {
224
+ init_ink();
225
+ import_compiler_runtime3 = __toESM(require_compiler_runtime(), 1);
226
+ import_react2 = __toESM(require_react(), 1);
227
+ jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
228
+ });
229
+
230
+ // src/components/design-system/Dialog.tsx
231
+ function Dialog(t0) {
232
+ const $ = import_compiler_runtime4.c(27);
233
+ const {
234
+ title,
235
+ subtitle,
236
+ children,
237
+ onCancel,
238
+ color: t1,
239
+ hideInputGuide,
240
+ hideBorder,
241
+ inputGuide,
242
+ isCancelActive: t2
243
+ } = t0;
244
+ const color = t1 === undefined ? "permission" : t1;
245
+ const isCancelActive = t2 === undefined ? true : t2;
246
+ const exitState = useExitOnCtrlCDWithKeybindings(undefined, undefined, isCancelActive);
247
+ let t3;
248
+ if ($[0] !== isCancelActive) {
249
+ t3 = {
250
+ context: "Confirmation",
251
+ isActive: isCancelActive
252
+ };
253
+ $[0] = isCancelActive;
254
+ $[1] = t3;
255
+ } else {
256
+ t3 = $[1];
257
+ }
258
+ useKeybinding("confirm:no", onCancel, t3);
259
+ let t4;
260
+ if ($[2] !== exitState.keyName || $[3] !== exitState.pending) {
261
+ t4 = exitState.pending ? /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
262
+ children: [
263
+ "Press ",
264
+ exitState.keyName,
265
+ " again to exit"
266
+ ]
267
+ }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Byline, {
268
+ children: [
269
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(KeyboardShortcutHint, {
270
+ shortcut: "Enter",
271
+ action: "confirm"
272
+ }, undefined, false, undefined, this),
273
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ConfigurableShortcutHint, {
274
+ action: "confirm:no",
275
+ context: "Confirmation",
276
+ fallback: "Esc",
277
+ description: "cancel"
278
+ }, undefined, false, undefined, this)
279
+ ]
280
+ }, undefined, true, undefined, this);
281
+ $[2] = exitState.keyName;
282
+ $[3] = exitState.pending;
283
+ $[4] = t4;
284
+ } else {
285
+ t4 = $[4];
286
+ }
287
+ const defaultInputGuide = t4;
288
+ let t5;
289
+ if ($[5] !== color || $[6] !== title) {
290
+ t5 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
291
+ bold: true,
292
+ color,
293
+ children: title
294
+ }, undefined, false, undefined, this);
295
+ $[5] = color;
296
+ $[6] = title;
297
+ $[7] = t5;
298
+ } else {
299
+ t5 = $[7];
300
+ }
301
+ let t6;
302
+ if ($[8] !== subtitle) {
303
+ t6 = subtitle && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
304
+ dimColor: true,
305
+ children: subtitle
306
+ }, undefined, false, undefined, this);
307
+ $[8] = subtitle;
308
+ $[9] = t6;
309
+ } else {
310
+ t6 = $[9];
311
+ }
312
+ let t7;
313
+ if ($[10] !== t5 || $[11] !== t6) {
314
+ t7 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
315
+ flexDirection: "column",
316
+ children: [
317
+ t5,
318
+ t6
319
+ ]
320
+ }, undefined, true, undefined, this);
321
+ $[10] = t5;
322
+ $[11] = t6;
323
+ $[12] = t7;
324
+ } else {
325
+ t7 = $[12];
326
+ }
327
+ let t8;
328
+ if ($[13] !== children || $[14] !== t7) {
329
+ t8 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
330
+ flexDirection: "column",
331
+ gap: 1,
332
+ children: [
333
+ t7,
334
+ children
335
+ ]
336
+ }, undefined, true, undefined, this);
337
+ $[13] = children;
338
+ $[14] = t7;
339
+ $[15] = t8;
340
+ } else {
341
+ t8 = $[15];
342
+ }
343
+ let t9;
344
+ if ($[16] !== defaultInputGuide || $[17] !== exitState || $[18] !== hideInputGuide || $[19] !== inputGuide) {
345
+ t9 = !hideInputGuide && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
346
+ marginTop: 1,
347
+ children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
348
+ dimColor: true,
349
+ italic: true,
350
+ children: inputGuide ? inputGuide(exitState) : defaultInputGuide
351
+ }, undefined, false, undefined, this)
352
+ }, undefined, false, undefined, this);
353
+ $[16] = defaultInputGuide;
354
+ $[17] = exitState;
355
+ $[18] = hideInputGuide;
356
+ $[19] = inputGuide;
357
+ $[20] = t9;
358
+ } else {
359
+ t9 = $[20];
360
+ }
361
+ let t10;
362
+ if ($[21] !== t8 || $[22] !== t9) {
363
+ t10 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(jsx_dev_runtime4.Fragment, {
364
+ children: [
365
+ t8,
366
+ t9
367
+ ]
368
+ }, undefined, true, undefined, this);
369
+ $[21] = t8;
370
+ $[22] = t9;
371
+ $[23] = t10;
372
+ } else {
373
+ t10 = $[23];
374
+ }
375
+ const content = t10;
376
+ if (hideBorder) {
377
+ return content;
378
+ }
379
+ let t11;
380
+ if ($[24] !== color || $[25] !== content) {
381
+ t11 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Pane, {
382
+ color,
383
+ children: content
384
+ }, undefined, false, undefined, this);
385
+ $[24] = color;
386
+ $[25] = content;
387
+ $[26] = t11;
388
+ } else {
389
+ t11 = $[26];
390
+ }
391
+ return t11;
392
+ }
393
+ var import_compiler_runtime4, jsx_dev_runtime4;
394
+ var init_Dialog = __esm(() => {
395
+ init_useExitOnCtrlCDWithKeybindings();
396
+ init_ink();
397
+ init_useKeybinding();
398
+ init_ConfigurableShortcutHint();
399
+ init_Byline();
400
+ init_KeyboardShortcutHint();
401
+ init_Pane();
402
+ import_compiler_runtime4 = __toESM(require_compiler_runtime(), 1);
403
+ jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
404
+ });
405
+
406
+ // src/utils/claudeInChrome/prompt.ts
407
+ function getChromeSystemPrompt() {
408
+ return BASE_CHROME_PROMPT;
409
+ }
410
+ var BASE_CHROME_PROMPT = `# Claude in Chrome browser automation
411
+
412
+ You have access to browser automation tools (mcp__claude-in-chrome__*) for interacting with web pages in Chrome. Follow these guidelines for effective browser automation.
413
+
414
+ ## GIF recording
415
+
416
+ When performing multi-step browser interactions that the user may want to review or share, use mcp__claude-in-chrome__gif_creator to record them.
417
+
418
+ You must ALWAYS:
419
+ * Capture extra frames before and after taking actions to ensure smooth playback
420
+ * Name the file meaningfully to help the user identify it later (e.g., "login_process.gif")
421
+
422
+ ## Console log debugging
423
+
424
+ You can use mcp__claude-in-chrome__read_console_messages to read console output. Console output may be verbose. If you are looking for specific log entries, use the 'pattern' parameter with a regex-compatible pattern. This filters results efficiently and avoids overwhelming output. For example, use pattern: "[MyApp]" to filter for application-specific logs rather than reading all console output.
425
+
426
+ ## Alerts and dialogs
427
+
428
+ IMPORTANT: Do not trigger JavaScript alerts, confirms, prompts, or browser modal dialogs through your actions. These browser dialogs block all further browser events and will prevent the extension from receiving any subsequent commands. Instead, when possible, use console.log for debugging and then use the mcp__claude-in-chrome__read_console_messages tool to read those log messages. If a page has dialog-triggering elements:
429
+ 1. Avoid clicking buttons or links that may trigger alerts (e.g., "Delete" buttons with confirmation dialogs)
430
+ 2. If you must interact with such elements, warn the user first that this may interrupt the session
431
+ 3. Use mcp__claude-in-chrome__javascript_tool to check for and dismiss any existing dialogs before proceeding
432
+
433
+ If you accidentally trigger a dialog and lose responsiveness, inform the user they need to manually dismiss it in the browser.
434
+
435
+ ## Avoid rabbit holes and loops
436
+
437
+ When using browser automation tools, stay focused on the specific task. If you encounter any of the following, stop and ask the user for guidance:
438
+ - Unexpected complexity or tangential browser exploration
439
+ - Browser tool calls failing or returning errors after 2-3 attempts
440
+ - No response from the browser extension
441
+ - Page elements not responding to clicks or input
442
+ - Pages not loading or timing out
443
+ - Unable to complete the browser task despite multiple approaches
444
+
445
+ Explain what you attempted, what went wrong, and ask how the user would like to proceed. Do not keep retrying the same failing browser action or explore unrelated pages without checking in first.
446
+
447
+ ## Tab context and session startup
448
+
449
+ IMPORTANT: At the start of each browser automation session, call mcp__claude-in-chrome__tabs_context_mcp first to get information about the user's current browser tabs. Use this context to understand what the user might want to work with before creating new tabs.
450
+
451
+ Never reuse tab IDs from a previous/other session. Follow these guidelines:
452
+ 1. Only reuse an existing tab if the user explicitly asks to work with it
453
+ 2. Otherwise, create a new tab with mcp__claude-in-chrome__tabs_create_mcp
454
+ 3. If a tool returns an error indicating the tab doesn't exist or is invalid, call tabs_context_mcp to get fresh tab IDs
455
+ 4. When a tab is closed by the user or a navigation error occurs, call tabs_context_mcp to see what tabs are available`, CHROME_TOOL_SEARCH_INSTRUCTIONS = `**IMPORTANT: Before using any chrome browser tools, you MUST first load them using ToolSearch.**
456
+
457
+ Chrome browser tools are MCP tools that require loading before use. Before calling any mcp__claude-in-chrome__* tool:
458
+ 1. Use ToolSearch with \`select:mcp__claude-in-chrome__<tool_name>\` to load the specific tool
459
+ 2. Then call the tool
460
+
461
+ For example, to get tab context:
462
+ 1. First: ToolSearch with query "select:mcp__claude-in-chrome__tabs_context_mcp"
463
+ 2. Then: Call mcp__claude-in-chrome__tabs_context_mcp`, CLAUDE_IN_CHROME_SKILL_HINT = `**Browser Automation**: Chrome browser tools are available via the "claude-in-chrome" skill. CRITICAL: Before using any mcp__claude-in-chrome__* tools, invoke the skill by calling the Skill tool with skill: "claude-in-chrome". The skill provides browser automation instructions and enables the tools.`;
464
+
465
+ export { useShortcutDisplay, init_useShortcutDisplay, KeyboardShortcutHint, init_KeyboardShortcutHint, ConfigurableShortcutHint, init_ConfigurableShortcutHint, Byline, init_Byline, Dialog, init_Dialog, BASE_CHROME_PROMPT, CHROME_TOOL_SEARCH_INSTRUCTIONS, getChromeSystemPrompt, CLAUDE_IN_CHROME_SKILL_HINT };
@@ -0,0 +1,235 @@
1
+ // @bun
2
+ import {
3
+ fromSso,
4
+ init_dist_es
5
+ } from "./chunk-bd95f637.js";
6
+ import"./chunk-20xqs3yk.js";
7
+ import {
8
+ require_dist_cjs as require_dist_cjs2
9
+ } from "./chunk-83kmfcjv.js";
10
+ import"./chunk-hwz6aq2m.js";
11
+ import {
12
+ require_client
13
+ } from "./chunk-kkgav8dm.js";
14
+ import"./chunk-mrrx3bmt.js";
15
+ import"./chunk-7g8156qp.js";
16
+ import {
17
+ require_dist_cjs
18
+ } from "./chunk-rb8k68m7.js";
19
+ import"./chunk-bq75gxjs.js";
20
+ import"./chunk-ev5gxscq.js";
21
+ import {
22
+ __esm,
23
+ __require,
24
+ __toESM
25
+ } from "./chunk-eta5aekm.js";
26
+ import {
27
+ __INVALID__REF__
28
+ } from "./chunk-ccyg9ap9.js";
29
+ import"./chunk-4y382mzd.js";
30
+ import"./chunk-4px25pe0.js";
31
+
32
+ // node_modules/.bun/@aws-sdk+credential-provider-sso@3.972.27/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
33
+ var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
34
+
35
+ // node_modules/.bun/@aws-sdk+credential-provider-sso@3.972.27/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
36
+ var import_client, import_property_provider, import_shared_ini_file_loader, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
37
+ let token;
38
+ const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
39
+ if (ssoSession) {
40
+ try {
41
+ const _token = await fromSso({
42
+ profile,
43
+ filepath,
44
+ configFilepath,
45
+ ignoreCache
46
+ })();
47
+ token = {
48
+ accessToken: _token.token,
49
+ expiresAt: new Date(_token.expiration).toISOString()
50
+ };
51
+ } catch (e) {
52
+ throw new import_property_provider.CredentialsProviderError(e.message, {
53
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
54
+ logger
55
+ });
56
+ }
57
+ } else {
58
+ try {
59
+ token = await import_shared_ini_file_loader.getSSOTokenFromFile(ssoStartUrl);
60
+ } catch (e) {
61
+ throw new import_property_provider.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
62
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
63
+ logger
64
+ });
65
+ }
66
+ }
67
+ if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
68
+ throw new import_property_provider.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
69
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
70
+ logger
71
+ });
72
+ }
73
+ const { accessToken } = token;
74
+ const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-a2rcafav.js");
75
+ const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
76
+ logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
77
+ region: clientConfig?.region ?? ssoRegion,
78
+ userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId
79
+ }));
80
+ let ssoResp;
81
+ try {
82
+ ssoResp = await sso.send(new GetRoleCredentialsCommand({
83
+ accountId: ssoAccountId,
84
+ roleName: ssoRoleName,
85
+ accessToken
86
+ }));
87
+ } catch (e) {
88
+ throw new import_property_provider.CredentialsProviderError(e, {
89
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
90
+ logger
91
+ });
92
+ }
93
+ const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp;
94
+ if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
95
+ throw new import_property_provider.CredentialsProviderError("SSO returns an invalid temporary credential.", {
96
+ tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
97
+ logger
98
+ });
99
+ }
100
+ const credentials = {
101
+ accessKeyId,
102
+ secretAccessKey,
103
+ sessionToken,
104
+ expiration: new Date(expiration),
105
+ ...credentialScope && { credentialScope },
106
+ ...accountId && { accountId }
107
+ };
108
+ if (ssoSession) {
109
+ import_client.setCredentialFeature(credentials, "CREDENTIALS_SSO", "s");
110
+ } else {
111
+ import_client.setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u");
112
+ }
113
+ return credentials;
114
+ };
115
+ var init_resolveSSOCredentials = __esm(() => {
116
+ init_dist_es();
117
+ import_client = __toESM(require_client(), 1);
118
+ import_property_provider = __toESM(require_dist_cjs(), 1);
119
+ import_shared_ini_file_loader = __toESM(require_dist_cjs2(), 1);
120
+ });
121
+
122
+ // node_modules/.bun/@aws-sdk+credential-provider-sso@3.972.27/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
123
+ var import_property_provider2, validateSsoProfile = (profile, logger) => {
124
+ const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
125
+ if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
126
+ throw new import_property_provider2.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
127
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });
128
+ }
129
+ return profile;
130
+ };
131
+ var init_validateSsoProfile = __esm(() => {
132
+ import_property_provider2 = __toESM(require_dist_cjs(), 1);
133
+ });
134
+
135
+ // node_modules/.bun/@aws-sdk+credential-provider-sso@3.972.27/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
136
+ var import_property_provider3, import_shared_ini_file_loader2, fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
137
+ init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
138
+ const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
139
+ const { ssoClient } = init;
140
+ const profileName = import_shared_ini_file_loader2.getProfileName({
141
+ profile: init.profile ?? callerClientConfig?.profile
142
+ });
143
+ if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
144
+ const profiles = await import_shared_ini_file_loader2.parseKnownFiles(init);
145
+ const profile = profiles[profileName];
146
+ if (!profile) {
147
+ throw new import_property_provider3.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
148
+ }
149
+ if (!isSsoProfile(profile)) {
150
+ throw new import_property_provider3.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
151
+ logger: init.logger
152
+ });
153
+ }
154
+ if (profile?.sso_session) {
155
+ const ssoSessions = await import_shared_ini_file_loader2.loadSsoSessionData(init);
156
+ const session = ssoSessions[profile.sso_session];
157
+ const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
158
+ if (ssoRegion && ssoRegion !== session.sso_region) {
159
+ throw new import_property_provider3.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
160
+ tryNextLink: false,
161
+ logger: init.logger
162
+ });
163
+ }
164
+ if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
165
+ throw new import_property_provider3.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
166
+ tryNextLink: false,
167
+ logger: init.logger
168
+ });
169
+ }
170
+ profile.sso_region = session.sso_region;
171
+ profile.sso_start_url = session.sso_start_url;
172
+ }
173
+ const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init.logger);
174
+ return resolveSSOCredentials({
175
+ ssoStartUrl: sso_start_url,
176
+ ssoSession: sso_session,
177
+ ssoAccountId: sso_account_id,
178
+ ssoRegion: sso_region,
179
+ ssoRoleName: sso_role_name,
180
+ ssoClient,
181
+ clientConfig: init.clientConfig,
182
+ parentClientConfig: init.parentClientConfig,
183
+ callerClientConfig: init.callerClientConfig,
184
+ profile: profileName,
185
+ filepath: init.filepath,
186
+ configFilepath: init.configFilepath,
187
+ ignoreCache: init.ignoreCache,
188
+ logger: init.logger
189
+ });
190
+ } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
191
+ throw new import_property_provider3.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
192
+ } else {
193
+ return resolveSSOCredentials({
194
+ ssoStartUrl,
195
+ ssoSession,
196
+ ssoAccountId,
197
+ ssoRegion,
198
+ ssoRoleName,
199
+ ssoClient,
200
+ clientConfig: init.clientConfig,
201
+ parentClientConfig: init.parentClientConfig,
202
+ callerClientConfig: init.callerClientConfig,
203
+ profile: profileName,
204
+ filepath: init.filepath,
205
+ configFilepath: init.configFilepath,
206
+ ignoreCache: init.ignoreCache,
207
+ logger: init.logger
208
+ });
209
+ }
210
+ };
211
+ var init_fromSSO = __esm(() => {
212
+ init_resolveSSOCredentials();
213
+ init_validateSsoProfile();
214
+ import_property_provider3 = __toESM(require_dist_cjs(), 1);
215
+ import_shared_ini_file_loader2 = __toESM(require_dist_cjs2(), 1);
216
+ });
217
+
218
+ // node_modules/.bun/@aws-sdk+credential-provider-sso@3.972.27/node_modules/@aws-sdk/credential-provider-sso/dist-es/types.js
219
+ var init_types = () => {};
220
+
221
+ // node_modules/.bun/@aws-sdk+credential-provider-sso@3.972.27/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js
222
+ var init_dist_es2 = __esm(() => {
223
+ init_fromSSO();
224
+ init_types();
225
+ init_validateSsoProfile();
226
+ });
227
+ init_dist_es2();
228
+
229
+ export {
230
+ validateSsoProfile,
231
+ isSsoProfile,
232
+ fromSSO
233
+ };
234
+
235
+ export { fromSSO, init_dist_es2 as init_dist_es };