@claudiolabs/claudio 0.1.13 → 0.1.15

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 (610) hide show
  1. package/dist/chunks/AgentTool-0.1.15-aene6e12.mjs +1 -0
  2. package/dist/chunks/App-0.1.15-skbrajfh.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.1.15-zkd425a9.mjs +1 -0
  4. package/dist/chunks/{AssistantSessionChooser-0.1.13-tcg2ckh4.mjs → AssistantSessionChooser-0.1.15-3wyrkte5.mjs} +1 -1
  5. package/dist/chunks/AutoModeOptInDialog-0.1.15-xemnqw1q.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.1.15-51n3nd6r.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.15-g407nd3p.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.1.15-80g71gdg.mjs +1 -0
  9. package/dist/chunks/{DiffDialog-0.1.13-3a9b1b48.mjs → DiffDialog-0.1.15-86m0j64m.mjs} +1 -1
  10. package/dist/chunks/Doctor-0.1.15-9x07ccn6.mjs +1 -0
  11. package/dist/chunks/Grove-0.1.15-jdcp80ev.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.1.15-ejm7gc8d.mjs +1 -0
  13. package/dist/chunks/{InProcessTransport-0.1.13-k5mkjvww.mjs → InProcessTransport-0.1.15-p32k8qva.mjs} +1 -1
  14. package/dist/chunks/InvalidConfigDialog-0.1.15-rctrbcsm.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.1.15-bjsk3qxm.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.1.15-6x3bjqw1.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.1.15-pqx4v1wq.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.1.15-t8sezf1q.mjs +1 -0
  19. package/dist/chunks/REPL-0.1.15-6e0xrr9y.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.1.15-fm1gvj49.mjs +1 -0
  21. package/dist/chunks/{SnapshotUpdateDialog-0.1.13-has41zv0.mjs → SnapshotUpdateDialog-0.1.15-t3evkrvq.mjs} +1 -1
  22. package/dist/chunks/TeleportProgress-0.1.15-gad6kpfq.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.1.15-00rkfxqs.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.1.15-bwv0syaw.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.1.15-0d8n5p59.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.1.15-1cemq4m9.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.1.15-srz2xcqx.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.1.15-1fp1bec5.mjs +1 -0
  29. package/dist/chunks/add-dir-0.1.15-qj517xx8.mjs +1 -0
  30. package/dist/chunks/agents-0.1.15-vkekdkan.mjs +3 -0
  31. package/dist/chunks/agents-0.1.15-x18jhwwk.mjs +111 -0
  32. package/dist/chunks/api-0.1.15-jq17qdd8.mjs +1 -0
  33. package/dist/chunks/{asciicast-0.1.13-d6ce2h4r.mjs → asciicast-0.1.15-4t4tanfk.mjs} +1 -1
  34. package/dist/chunks/assistant-0.1.15-9fhfbk14.mjs +1 -0
  35. package/dist/chunks/auth-0.1.15-ddyv63ax.mjs +1 -0
  36. package/dist/chunks/{auth-0.1.13-fwdmg15h.mjs → auth-0.1.15-x6bxj6d1.mjs} +1 -1
  37. package/dist/chunks/{autoMode-0.1.13-4xh49kt4.mjs → autoMode-0.1.15-p9r45wxy.mjs} +1 -1
  38. package/dist/chunks/backgroundHousekeeping-0.1.15-sbv1p8kj.mjs +1 -0
  39. package/dist/chunks/branch-0.1.15-cqq1x0cj.mjs +4 -0
  40. package/dist/chunks/{bridgePointer-0.1.13-s1qw0857.mjs → bridgePointer-0.1.15-p6kq1zz7.mjs} +1 -1
  41. package/dist/chunks/btw-0.1.15-q693ppfr.mjs +1 -0
  42. package/dist/chunks/{buddy-0.1.13-2wvpbqx1.mjs → buddy-0.1.15-vcca6k2p.mjs} +1 -1
  43. package/dist/chunks/cacache-0.1.15-tj6nes3h.mjs +1 -0
  44. package/dist/chunks/{cache-probe-0.1.13-ze8mf958.mjs → cache-probe-0.1.15-dfdjj53r.mjs} +1 -1
  45. package/dist/chunks/{cacheStats-0.1.13-jtrw4rdj.mjs → cacheStats-0.1.15-v9v9y02q.mjs} +1 -1
  46. package/dist/chunks/caches-0.1.15-tynjvd5a.mjs +1 -0
  47. package/dist/chunks/{claudeDesktop-0.1.13-fs8rre9b.mjs → claudeDesktop-0.1.15-rxtx8hbf.mjs} +1 -1
  48. package/dist/chunks/claudemd-0.1.15-s942v7vd.mjs +1 -0
  49. package/dist/chunks/clear-0.1.15-2tqn4fj6.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.1.15-qycj6c0p.mjs +1 -0
  51. package/dist/chunks/cli-0.1.15-0a38j3t8.mjs +2 -0
  52. package/dist/chunks/{cli-0.1.13-s9fgd2dx.mjs → cli-0.1.15-0g0abv7y.mjs} +2 -2
  53. package/dist/chunks/{cli-0.1.13-gd3nndc7.mjs → cli-0.1.15-11sdbfxy.mjs} +2 -2
  54. package/dist/chunks/cli-0.1.15-12azgmva.mjs +2 -0
  55. package/dist/chunks/cli-0.1.15-1hxkpjgs.mjs +2 -0
  56. package/dist/chunks/cli-0.1.15-1kmf57b0.mjs +2 -0
  57. package/dist/chunks/cli-0.1.15-1nkkhw5c.mjs +2 -0
  58. package/dist/chunks/{cli-0.1.13-2cdtdhek.mjs → cli-0.1.15-20tvdt2s.mjs} +2 -2
  59. package/dist/chunks/{cli-0.1.13-ks4x4cct.mjs → cli-0.1.15-216kns0c.mjs} +2 -2
  60. package/dist/chunks/cli-0.1.15-229xqnrp.mjs +2 -0
  61. package/dist/chunks/{cli-0.1.13-zgnanj3x.mjs → cli-0.1.15-23cavaaa.mjs} +2 -2
  62. package/dist/chunks/{cli-0.1.13-fh5dndvp.mjs → cli-0.1.15-26hkdean.mjs} +919 -915
  63. package/dist/chunks/{cli-0.1.13-fwd5b6q8.mjs → cli-0.1.15-2ccapgj1.mjs} +2 -2
  64. package/dist/chunks/cli-0.1.15-2h647znt.mjs +2 -0
  65. package/dist/chunks/cli-0.1.15-2te4sfkh.mjs +2 -0
  66. package/dist/chunks/{cli-0.1.13-cjmpc9q5.mjs → cli-0.1.15-2vwx57re.mjs} +2 -2
  67. package/dist/chunks/{cli-0.1.13-mkw72mxc.mjs → cli-0.1.15-30tz5ck8.mjs} +2 -2
  68. package/dist/chunks/cli-0.1.15-36pxgzf6.mjs +2 -0
  69. package/dist/chunks/cli-0.1.15-3jz926ax.mjs +2 -0
  70. package/dist/chunks/{cli-0.1.13-3pctg5zc.mjs → cli-0.1.15-3qwnw3ca.mjs} +2 -2
  71. package/dist/chunks/cli-0.1.15-3rcdvk7c.mjs +2 -0
  72. package/dist/chunks/{cli-0.1.13-30j4h365.mjs → cli-0.1.15-3z0tzzs8.mjs} +2 -2
  73. package/dist/chunks/{cli-0.1.13-dag38tkx.mjs → cli-0.1.15-4892kydg.mjs} +5 -5
  74. package/dist/chunks/{cli-0.1.13-13fh0g36.mjs → cli-0.1.15-4fc5wnse.mjs} +2 -2
  75. package/dist/chunks/{cli-0.1.13-b24n1wvw.mjs → cli-0.1.15-4hnhxg2w.mjs} +2 -2
  76. package/dist/chunks/cli-0.1.15-4hzd3m6p.mjs +2 -0
  77. package/dist/chunks/{cli-0.1.13-dak36ez8.mjs → cli-0.1.15-4y7051f2.mjs} +2 -2
  78. package/dist/chunks/{cli-0.1.13-5ydypzty.mjs → cli-0.1.15-5denzf1p.mjs} +3 -3
  79. package/dist/chunks/{cli-0.1.13-p4nz8zmd.mjs → cli-0.1.15-5g0zxgxn.mjs} +2 -2
  80. package/dist/chunks/{cli-0.1.13-3k1n20ra.mjs → cli-0.1.15-5qx5p8cd.mjs} +2 -2
  81. package/dist/chunks/cli-0.1.15-5tz7z79g.mjs +2 -0
  82. package/dist/chunks/{cli-0.1.13-m5c2efjx.mjs → cli-0.1.15-618hqv9f.mjs} +1 -1
  83. package/dist/chunks/{cli-0.1.13-hjqn3n5a.mjs → cli-0.1.15-68f0jtkh.mjs} +2 -2
  84. package/dist/chunks/{cli-0.1.13-pqk4c7m7.mjs → cli-0.1.15-69kq5chw.mjs} +2 -2
  85. package/dist/chunks/{cli-0.1.13-pw5dks39.mjs → cli-0.1.15-6mad0r56.mjs} +2 -2
  86. package/dist/chunks/{cli-0.1.13-bkg3sva7.mjs → cli-0.1.15-6nwbd09n.mjs} +2 -2
  87. package/dist/chunks/{cli-0.1.13-9043n2e8.mjs → cli-0.1.15-6r12ayea.mjs} +2 -2
  88. package/dist/chunks/{cli-0.1.13-0hyneh5t.mjs → cli-0.1.15-6r630k68.mjs} +2 -2
  89. package/dist/chunks/{cli-0.1.13-vn7ckv16.mjs → cli-0.1.15-77346q11.mjs} +2 -2
  90. package/dist/chunks/{cli-0.1.13-fdmvysv0.mjs → cli-0.1.15-7mfwj2xs.mjs} +1 -1
  91. package/dist/chunks/{cli-0.1.13-b40skdsz.mjs → cli-0.1.15-7myqm617.mjs} +2 -2
  92. package/dist/chunks/{cli-0.1.13-hgkwnhwv.mjs → cli-0.1.15-7rr53z40.mjs} +2 -2
  93. package/dist/chunks/cli-0.1.15-7ve9h395.mjs +2 -0
  94. package/dist/chunks/{cli-0.1.13-zm2zgw7m.mjs → cli-0.1.15-82r3zgmq.mjs} +2 -2
  95. package/dist/chunks/cli-0.1.15-8k69z9kk.mjs +2 -0
  96. package/dist/chunks/{cli-0.1.13-p2wyk6z7.mjs → cli-0.1.15-8sgewact.mjs} +3 -3
  97. package/dist/chunks/{cli-0.1.13-g654740k.mjs → cli-0.1.15-8v8bskr0.mjs} +2 -2
  98. package/dist/chunks/{cli-0.1.13-8sszxge2.mjs → cli-0.1.15-90ye3yqx.mjs} +2 -2
  99. package/dist/chunks/cli-0.1.15-99wmm9j7.mjs +2 -0
  100. package/dist/chunks/{cli-0.1.13-1gbn4dgj.mjs → cli-0.1.15-9m2znwvb.mjs} +2 -2
  101. package/dist/chunks/{cli-0.1.13-1g6bgaa6.mjs → cli-0.1.15-9pe3dbgs.mjs} +2 -2
  102. package/dist/chunks/cli-0.1.15-9w140hjt.mjs +2 -0
  103. package/dist/chunks/{cli-0.1.13-jeyjdb2m.mjs → cli-0.1.15-a10ekh15.mjs} +2 -2
  104. package/dist/chunks/{cli-0.1.13-ct9m5223.mjs → cli-0.1.15-a8kgfrkd.mjs} +2 -2
  105. package/dist/chunks/{cli-0.1.13-tknwgkgp.mjs → cli-0.1.15-acdm8b28.mjs} +3 -3
  106. package/dist/chunks/cli-0.1.15-ajg1d1bh.mjs +2 -0
  107. package/dist/chunks/{cli-0.1.13-0xy8k6yv.mjs → cli-0.1.15-asts8hm3.mjs} +2 -2
  108. package/dist/chunks/{cli-0.1.13-apjxy5tn.mjs → cli-0.1.15-b1t6c81s.mjs} +2 -2
  109. package/dist/chunks/cli-0.1.15-b21k5hzy.mjs +2 -0
  110. package/dist/chunks/{cli-0.1.13-x461rxn2.mjs → cli-0.1.15-b6gdqjbg.mjs} +2 -2
  111. package/dist/chunks/cli-0.1.15-b7f6hacc.mjs +2 -0
  112. package/dist/chunks/{cli-0.1.13-hyvpn2ht.mjs → cli-0.1.15-b7p48xfw.mjs} +2 -2
  113. package/dist/chunks/{cli-0.1.13-njvp7vtc.mjs → cli-0.1.15-be4mz6ka.mjs} +2 -2
  114. package/dist/chunks/cli-0.1.15-behp1dag.mjs +2 -0
  115. package/dist/chunks/{cli-0.1.13-8pw4n94k.mjs → cli-0.1.15-bfd337b0.mjs} +2 -2
  116. package/dist/chunks/{cli-0.1.13-dmgp48vg.mjs → cli-0.1.15-bpcmpy8b.mjs} +2 -2
  117. package/dist/chunks/{cli-0.1.13-8snyqhjj.mjs → cli-0.1.15-bz57rf9t.mjs} +2 -2
  118. package/dist/chunks/cli-0.1.15-cbseyggr.mjs +2 -0
  119. package/dist/chunks/{cli-0.1.13-v32xwe08.mjs → cli-0.1.15-cenwnwnx.mjs} +2 -2
  120. package/dist/chunks/{cli-0.1.13-qdtwrf9z.mjs → cli-0.1.15-cf4s92e9.mjs} +2 -2
  121. package/dist/chunks/{cli-0.1.13-s928gjab.mjs → cli-0.1.15-cqzrzsh5.mjs} +3 -3
  122. package/dist/chunks/{cli-0.1.13-v467fj8c.mjs → cli-0.1.15-cr7qy3wd.mjs} +2 -2
  123. package/dist/chunks/cli-0.1.15-cyq0gbzk.mjs +2 -0
  124. package/dist/chunks/{cli-0.1.13-yd536yw4.mjs → cli-0.1.15-d9nfa2yf.mjs} +2 -2
  125. package/dist/chunks/{cli-0.1.13-0zpmhn2j.mjs → cli-0.1.15-dcabmk2v.mjs} +2 -2
  126. package/dist/chunks/{cli-0.1.13-b3xc1r3k.mjs → cli-0.1.15-dcxa8b6s.mjs} +2 -2
  127. package/dist/chunks/{cli-0.1.13-t5w452fj.mjs → cli-0.1.15-dp2e8j4f.mjs} +2 -2
  128. package/dist/chunks/cli-0.1.15-dq954y1q.mjs +2 -0
  129. package/dist/chunks/cli-0.1.15-dqkhbs67.mjs +2 -0
  130. package/dist/chunks/{cli-0.1.13-fzb4yx18.mjs → cli-0.1.15-e2e7hn7p.mjs} +4 -4
  131. package/dist/chunks/cli-0.1.15-e494j2sj.mjs +4 -0
  132. package/dist/chunks/{cli-0.1.13-vj532g9m.mjs → cli-0.1.15-e64w5wan.mjs} +2 -2
  133. package/dist/chunks/{cli-0.1.13-6gmqjyv9.mjs → cli-0.1.15-e70ktyft.mjs} +2 -2
  134. package/dist/chunks/cli-0.1.15-em40knm7.mjs +4 -0
  135. package/dist/chunks/{cli-0.1.13-y7aqqca1.mjs → cli-0.1.15-en9ppdbd.mjs} +2 -2
  136. package/dist/chunks/{cli-0.1.13-9jajvw4r.mjs → cli-0.1.15-f838g4vw.mjs} +2 -2
  137. package/dist/chunks/{cli-0.1.13-d6tr2j76.mjs → cli-0.1.15-f8abjagh.mjs} +2 -2
  138. package/dist/chunks/cli-0.1.15-fe92jeft.mjs +2 -0
  139. package/dist/chunks/{cli-0.1.13-v6z41645.mjs → cli-0.1.15-fmnyh9j9.mjs} +2 -2
  140. package/dist/chunks/{cli-0.1.13-nsbk0w3b.mjs → cli-0.1.15-fr83vs1y.mjs} +2 -2
  141. package/dist/chunks/{cli-0.1.13-rftgy1b8.mjs → cli-0.1.15-ft6xtjsa.mjs} +2 -2
  142. package/dist/chunks/{cli-0.1.13-87xfe2f3.mjs → cli-0.1.15-g5wt8d3g.mjs} +2 -2
  143. package/dist/chunks/{cli-0.1.13-xvvtja1h.mjs → cli-0.1.15-ghvjjc4g.mjs} +2 -2
  144. package/dist/chunks/{cli-0.1.13-579v6j6d.mjs → cli-0.1.15-gkzany0s.mjs} +2 -2
  145. package/dist/chunks/{cli-0.1.13-jz57znb6.mjs → cli-0.1.15-gmdv5ny8.mjs} +2 -2
  146. package/dist/chunks/{cli-0.1.13-1pxg82cx.mjs → cli-0.1.15-gn4wnxx3.mjs} +2 -2
  147. package/dist/chunks/{cli-0.1.13-xde08pkt.mjs → cli-0.1.15-gqf82qvm.mjs} +2 -2
  148. package/dist/chunks/{cli-0.1.13-kzn9sspk.mjs → cli-0.1.15-gqp8kzp0.mjs} +2 -2
  149. package/dist/chunks/{cli-0.1.13-ctjpk124.mjs → cli-0.1.15-gtn9gx9w.mjs} +2 -2
  150. package/dist/chunks/cli-0.1.15-gwbebdj7.mjs +2 -0
  151. package/dist/chunks/{cli-0.1.13-ck28msre.mjs → cli-0.1.15-gxgy4enj.mjs} +2 -2
  152. package/dist/chunks/{cli-0.1.13-saz6qetz.mjs → cli-0.1.15-h3a2cbdb.mjs} +2 -2
  153. package/dist/chunks/{cli-0.1.13-wz7v1tqx.mjs → cli-0.1.15-h4erh2cn.mjs} +2 -2
  154. package/dist/chunks/cli-0.1.15-h7cb0pw7.mjs +2 -0
  155. package/dist/chunks/{cli-0.1.13-mahtf0ay.mjs → cli-0.1.15-htms4w3h.mjs} +2 -2
  156. package/dist/chunks/cli-0.1.15-hyydz4kc.mjs +12 -0
  157. package/dist/chunks/{cli-0.1.13-2vrh3n9y.mjs → cli-0.1.15-j5m3s9r5.mjs} +2 -2
  158. package/dist/chunks/{cli-0.1.13-s6w3ej6f.mjs → cli-0.1.15-jy7cjb23.mjs} +2 -2
  159. package/dist/chunks/{cli-0.1.13-tq3dqmem.mjs → cli-0.1.15-k0bn0cze.mjs} +2 -2
  160. package/dist/chunks/{cli-0.1.13-asrdd8dh.mjs → cli-0.1.15-knpxv22b.mjs} +2 -2
  161. package/dist/chunks/{cli-0.1.13-m61dhxfs.mjs → cli-0.1.15-ks9rz9tk.mjs} +3 -3
  162. package/dist/chunks/{cli-0.1.13-6p0jxfnp.mjs → cli-0.1.15-kw7che8m.mjs} +2 -2
  163. package/dist/chunks/cli-0.1.15-m0v1d1kt.mjs +821 -0
  164. package/dist/chunks/{cli-0.1.13-8gd1x101.mjs → cli-0.1.15-m7gtc61y.mjs} +2 -2
  165. package/dist/chunks/{cli-0.1.13-bj67mp7n.mjs → cli-0.1.15-mhbfhhf6.mjs} +1 -1
  166. package/dist/chunks/cli-0.1.15-my0y22r7.mjs +6 -0
  167. package/dist/chunks/{cli-0.1.13-nc3ce357.mjs → cli-0.1.15-n97y4hq4.mjs} +2 -2
  168. package/dist/chunks/{cli-0.1.13-d8wkcw90.mjs → cli-0.1.15-ncammv2n.mjs} +2 -2
  169. package/dist/chunks/cli-0.1.15-nejf7yqz.mjs +2 -0
  170. package/dist/chunks/{cli-0.1.13-rkaxch5j.mjs → cli-0.1.15-njg0k6ga.mjs} +2 -2
  171. package/dist/chunks/{cli-0.1.13-144gn3fd.mjs → cli-0.1.15-nk50qhet.mjs} +2 -2
  172. package/dist/chunks/{cli-0.1.13-a4xga299.mjs → cli-0.1.15-nkn6jfmb.mjs} +2 -2
  173. package/dist/chunks/cli-0.1.15-nts79xbr.mjs +2 -0
  174. package/dist/chunks/cli-0.1.15-nw94frpp.mjs +2 -0
  175. package/dist/chunks/{cli-0.1.13-2c7g6rpx.mjs → cli-0.1.15-nx5v1cvm.mjs} +2 -2
  176. package/dist/chunks/{cli-0.1.13-0gfnmq08.mjs → cli-0.1.15-p159ga3t.mjs} +2 -2
  177. package/dist/chunks/cli-0.1.15-p47rrzrn.mjs +2 -0
  178. package/dist/chunks/{cli-0.1.13-xv6wh44y.mjs → cli-0.1.15-p5ty029c.mjs} +2 -2
  179. package/dist/chunks/cli-0.1.15-pcqjreq6.mjs +2 -0
  180. package/dist/chunks/{cli-0.1.13-5061js0h.mjs → cli-0.1.15-pxf97j8y.mjs} +2 -2
  181. package/dist/chunks/{cli-0.1.13-wxdmc1dd.mjs → cli-0.1.15-pya8tbx3.mjs} +2 -2
  182. package/dist/chunks/cli-0.1.15-q021qg07.mjs +2 -0
  183. package/dist/chunks/cli-0.1.15-q35rzjnz.mjs +16 -0
  184. package/dist/chunks/{cli-0.1.13-gvz2qezh.mjs → cli-0.1.15-qhz07at6.mjs} +2 -2
  185. package/dist/chunks/cli-0.1.15-qns6xv34.mjs +134 -0
  186. package/dist/chunks/{cli-0.1.13-myd004mr.mjs → cli-0.1.15-r626437v.mjs} +2 -2
  187. package/dist/chunks/{cli-0.1.13-xkdwvsg9.mjs → cli-0.1.15-r8qzzahw.mjs} +2 -2
  188. package/dist/chunks/cli-0.1.15-r9nrfwrq.mjs +2 -0
  189. package/dist/chunks/{cli-0.1.13-fabrrwqa.mjs → cli-0.1.15-rbx47sc3.mjs} +2 -2
  190. package/dist/chunks/{cli-0.1.13-ga4mmwbc.mjs → cli-0.1.15-rq9n4js4.mjs} +2 -2
  191. package/dist/chunks/{cli-0.1.13-wwnez3j0.mjs → cli-0.1.15-rr65b3dk.mjs} +2 -2
  192. package/dist/chunks/cli-0.1.15-rs5swvy0.mjs +4 -0
  193. package/dist/chunks/{cli-0.1.13-h7a36dnk.mjs → cli-0.1.15-rv6zpjh8.mjs} +2 -2
  194. package/dist/chunks/cli-0.1.15-rvtve9kq.mjs +3 -0
  195. package/dist/chunks/cli-0.1.15-rwx8446j.mjs +2 -0
  196. package/dist/chunks/{cli-0.1.13-p625yxtg.mjs → cli-0.1.15-s7trme0x.mjs} +2 -2
  197. package/dist/chunks/{cli-0.1.13-ajsw8n7h.mjs → cli-0.1.15-sct02cw6.mjs} +2 -2
  198. package/dist/chunks/{cli-0.1.13-d85aba8r.mjs → cli-0.1.15-sd5jysf2.mjs} +2 -2
  199. package/dist/chunks/{cli-0.1.13-0p3b9j40.mjs → cli-0.1.15-sg3n1v0w.mjs} +2 -2
  200. package/dist/chunks/{cli-0.1.13-nwt2jc8b.mjs → cli-0.1.15-svhrqvzp.mjs} +2 -2
  201. package/dist/chunks/{cli-0.1.13-8ppsn0an.mjs → cli-0.1.15-tj4kzvth.mjs} +2 -2
  202. package/dist/chunks/cli-0.1.15-tn4214gj.mjs +2 -0
  203. package/dist/chunks/{cli-0.1.13-79vtnprb.mjs → cli-0.1.15-tp614m5f.mjs} +2 -2
  204. package/dist/chunks/{cli-0.1.13-j7796v8f.mjs → cli-0.1.15-twq0mjmr.mjs} +2 -2
  205. package/dist/chunks/{cli-0.1.13-84tbx1nf.mjs → cli-0.1.15-v07ep52w.mjs} +2 -2
  206. package/dist/chunks/cli-0.1.15-v8zwx5j6.mjs +3 -0
  207. package/dist/chunks/{cli-0.1.13-mezw1vk8.mjs → cli-0.1.15-vwb8h4r1.mjs} +2 -2
  208. package/dist/chunks/{cli-0.1.13-vwt4hc0t.mjs → cli-0.1.15-vzk22hwe.mjs} +2 -2
  209. package/dist/chunks/{cli-0.1.13-cyj5snev.mjs → cli-0.1.15-w8q8f37x.mjs} +2 -2
  210. package/dist/chunks/{cli-0.1.13-rjjyq9ej.mjs → cli-0.1.15-wfn10357.mjs} +2 -2
  211. package/dist/chunks/cli-0.1.15-wmwtv0tz.mjs +2 -0
  212. package/dist/chunks/cli-0.1.15-wn40n534.mjs +2 -0
  213. package/dist/chunks/{cli-0.1.13-5j5bg3t2.mjs → cli-0.1.15-x3yhaxm9.mjs} +2 -2
  214. package/dist/chunks/{cli-0.1.13-wh68ve92.mjs → cli-0.1.15-x69hfzmj.mjs} +2 -2
  215. package/dist/chunks/{cli-0.1.13-00qdyz6f.mjs → cli-0.1.15-xaw2s45s.mjs} +2 -2
  216. package/dist/chunks/{cli-0.1.13-ky4z1s1h.mjs → cli-0.1.15-xe4dq144.mjs} +2 -2
  217. package/dist/chunks/{cli-0.1.13-e58n0k16.mjs → cli-0.1.15-xery8c8c.mjs} +2 -2
  218. package/dist/chunks/cli-0.1.15-y2pbhx6p.mjs +2 -0
  219. package/dist/chunks/{cli-0.1.13-5c4fyghf.mjs → cli-0.1.15-y6fkcbes.mjs} +2 -2
  220. package/dist/chunks/cli-0.1.15-y7xkk5ds.mjs +2 -0
  221. package/dist/chunks/cli-0.1.15-yghcqf7h.mjs +2 -0
  222. package/dist/chunks/{cli-0.1.13-w8h6wdez.mjs → cli-0.1.15-yjxhk7qj.mjs} +2 -2
  223. package/dist/chunks/{cli-0.1.13-eh7dqeqt.mjs → cli-0.1.15-ywed2hpz.mjs} +2 -2
  224. package/dist/chunks/{cli-0.1.13-s90a26ca.mjs → cli-0.1.15-yxm6wwfz.mjs} +2 -2
  225. package/dist/chunks/cli-0.1.15-yym7bka2.mjs +2 -0
  226. package/dist/chunks/cli-0.1.15-z2yexprk.mjs +4 -0
  227. package/dist/chunks/{cli-0.1.13-5krmz4nd.mjs → cli-0.1.15-z35x5bfj.mjs} +2 -2
  228. package/dist/chunks/{cli-0.1.13-fz5dm31h.mjs → cli-0.1.15-zap1wk9j.mjs} +2 -2
  229. package/dist/chunks/cli-0.1.15-zf1s8y92.mjs +2 -0
  230. package/dist/chunks/cli-0.1.15-ztxn2vjm.mjs +2 -0
  231. package/dist/chunks/client-0.1.15-pbb4218v.mjs +1 -0
  232. package/dist/chunks/color-0.1.15-w9tvjt51.mjs +1 -0
  233. package/dist/chunks/compact-0.1.15-2a2eywaz.mjs +3 -0
  234. package/dist/chunks/config-0.1.15-m4gwmfb1.mjs +1 -0
  235. package/dist/chunks/config-0.1.15-r15yk3zr.mjs +1 -0
  236. package/dist/chunks/context-0.1.15-ghkedaaw.mjs +1 -0
  237. package/dist/chunks/context-noninteractive-0.1.15-wwa3qz84.mjs +1 -0
  238. package/dist/chunks/conversation-0.1.15-n1bn5vmb.mjs +1 -0
  239. package/dist/chunks/{copy-0.1.13-03jy5tfn.mjs → copy-0.1.15-53q3e2fk.mjs} +1 -1
  240. package/dist/chunks/cost-0.1.15-garxyfxy.mjs +1 -0
  241. package/dist/chunks/createSession-0.1.15-krz8fv09.mjs +1 -0
  242. package/dist/chunks/desktop-0.1.15-j0znhh3a.mjs +1 -0
  243. package/dist/chunks/detectRepository-0.1.15-f34tbbq5.mjs +1 -0
  244. package/dist/chunks/detection-0.1.15-qfkk58tf.mjs +1 -0
  245. package/dist/chunks/diff-0.1.15-gc5686z3.mjs +1 -0
  246. package/dist/chunks/doctor-0.1.15-hhtv9s33.mjs +1 -0
  247. package/dist/chunks/earlyInput-0.1.15-ftgt9y2w.mjs +1 -0
  248. package/dist/chunks/effort-0.1.15-5za6yh63.mjs +8 -0
  249. package/dist/chunks/environmentSelection-0.1.15-59904m5c.mjs +1 -0
  250. package/dist/chunks/environments-0.1.15-fn4ybjrt.mjs +1 -0
  251. package/dist/chunks/exit-0.1.15-qxj6czd5.mjs +1 -0
  252. package/dist/chunks/export-0.1.15-h5n9s624.mjs +2 -0
  253. package/dist/chunks/extra-usage-0.1.15-4a6e6rsa.mjs +1 -0
  254. package/dist/chunks/extra-usage-noninteractive-0.1.15-rgqd9ef7.mjs +1 -0
  255. package/dist/chunks/fast-0.1.15-98jhvjxk.mjs +1 -0
  256. package/dist/chunks/feedback-0.1.15-pqe68x4v.mjs +14 -0
  257. package/dist/chunks/{firstPartyEventLogger-0.1.13-6m3fvkcj.mjs → firstPartyEventLogger-0.1.15-pss0293k.mjs} +1 -1
  258. package/dist/chunks/git-0.1.15-002t17pq.mjs +1 -0
  259. package/dist/chunks/githubModelsCredentials-0.1.15-2a6dqqse.mjs +1 -0
  260. package/dist/chunks/{growthbook-0.1.13-sramqmzv.mjs → growthbook-0.1.15-m7gdvgqa.mjs} +1 -1
  261. package/dist/chunks/{heapdump-0.1.13-3n7hv372.mjs → heapdump-0.1.15-s8h9rwpe.mjs} +1 -1
  262. package/dist/chunks/help-0.1.15-y48dg88b.mjs +1 -0
  263. package/dist/chunks/{hookChains-0.1.13-te9q466p.mjs → hookChains-0.1.15-z46c2xkf.mjs} +2 -2
  264. package/dist/chunks/{hooks-0.1.13-g6kx1mk3.mjs → hooks-0.1.15-f81kq7m2.mjs} +1 -1
  265. package/dist/chunks/hooks-0.1.15-vanat6cg.mjs +1 -0
  266. package/dist/chunks/{ide-0.1.13-ke3v5mb7.mjs → ide-0.1.15-xepj09gj.mjs} +1 -1
  267. package/dist/chunks/image-processor-napi-0.1.15-5w5sybn1.mjs +1 -0
  268. package/dist/chunks/index-0.1.15-0z186jwx.mjs +1 -0
  269. package/dist/chunks/index-0.1.15-136649ke.mjs +1 -0
  270. package/dist/chunks/{index-0.1.13-psynrf7p.mjs → index-0.1.15-15ftbc8a.mjs} +2 -2
  271. package/dist/chunks/index-0.1.15-1r19582s.mjs +1 -0
  272. package/dist/chunks/{index-0.1.13-9meb2pab.mjs → index-0.1.15-3jxezstk.mjs} +1 -1
  273. package/dist/chunks/index-0.1.15-52zxtxf2.mjs +1 -0
  274. package/dist/chunks/{index-0.1.13-tvt8fxrq.mjs → index-0.1.15-628tag5v.mjs} +1 -1
  275. package/dist/chunks/{index-0.1.13-018yhz6j.mjs → index-0.1.15-77j1wp6f.mjs} +1 -1
  276. package/dist/chunks/index-0.1.15-7cp4n6z6.mjs +1 -0
  277. package/dist/chunks/{index-0.1.13-mc5ag4wj.mjs → index-0.1.15-832xm57n.mjs} +1 -1
  278. package/dist/chunks/{index-0.1.13-j9c4bjzh.mjs → index-0.1.15-abzge0fa.mjs} +1 -1
  279. package/dist/chunks/{index-0.1.13-nm8pkj0f.mjs → index-0.1.15-b9sdtjj4.mjs} +2 -2
  280. package/dist/chunks/index-0.1.15-bvr8e4dt.mjs +1 -0
  281. package/dist/chunks/{index-0.1.13-5g9shrc4.mjs → index-0.1.15-d4ea93sj.mjs} +1 -1
  282. package/dist/chunks/{index-0.1.13-c29wq5dx.mjs → index-0.1.15-f1y1067a.mjs} +1 -1
  283. package/dist/chunks/{index-0.1.13-3zjrdjrv.mjs → index-0.1.15-n2q4dkvc.mjs} +1 -1
  284. package/dist/chunks/{index-0.1.13-bc4sh2m1.mjs → index-0.1.15-nzmg6zng.mjs} +1 -1
  285. package/dist/chunks/{index-0.1.13-4cjfx282.mjs → index-0.1.15-r9ck21mp.mjs} +1 -1
  286. package/dist/chunks/index-0.1.15-rb4nqzzk.mjs +1 -0
  287. package/dist/chunks/{index-0.1.13-7c5y7cbf.mjs → index-0.1.15-tf5b20vy.mjs} +1 -1
  288. package/dist/chunks/{index-0.1.13-a06q9ad9.mjs → index-0.1.15-x8ghxne4.mjs} +1 -1
  289. package/dist/chunks/index-0.1.15-z3k5tm3n.mjs +1 -0
  290. package/dist/chunks/initReplBridge-0.1.15-g7q1qemf.mjs +1 -0
  291. package/dist/chunks/ink-0.1.15-rd56fvsx.mjs +1 -0
  292. package/dist/chunks/{insights-0.1.13-t81417ej.mjs → insights-0.1.15-2zt9898j.mjs} +1 -1
  293. package/dist/chunks/install-0.1.15-z6a6aa3t.mjs +1 -0
  294. package/dist/chunks/{install-github-app-0.1.13-yvnx16za.mjs → install-github-app-0.1.15-h746hza3.mjs} +1 -1
  295. package/dist/chunks/install-slack-app-0.1.15-2yhy3kwz.mjs +1 -0
  296. package/dist/chunks/{instrumentation-0.1.13-bvt39wrk.mjs → instrumentation-0.1.15-bwm4tb1y.mjs} +1 -1
  297. package/dist/chunks/interactiveHelpers-0.1.15-z5nx1rw2.mjs +1 -0
  298. package/dist/chunks/keybindings-0.1.15-cxmw2kd4.mjs +2 -0
  299. package/dist/chunks/knowledge-0.1.15-2bnycc4a.mjs +2 -0
  300. package/dist/chunks/loadAgentsDir-0.1.15-e4ms71xe.mjs +1 -0
  301. package/dist/chunks/loadPluginHooks-0.1.15-rcg3267j.mjs +1 -0
  302. package/dist/chunks/lsp-0.1.15-veqrp99h.mjs +1 -0
  303. package/dist/chunks/main-0.1.15-bfvfcwwj.mjs +1 -0
  304. package/dist/chunks/managedEnv-0.1.15-1mxydytg.mjs +1 -0
  305. package/dist/chunks/mcp-0.1.15-rfy9pyrt.mjs +1 -0
  306. package/dist/chunks/{mcp-0.1.13-x9twbpqk.mjs → mcp-0.1.15-tw9s435t.mjs} +3 -3
  307. package/dist/chunks/mcp-0.1.15-zc7h2fyj.mjs +4 -0
  308. package/dist/chunks/mcpServer-0.1.15-t7dsptwh.mjs +1 -0
  309. package/dist/chunks/mcpb-0.1.15-5mam984d.mjs +1 -0
  310. package/dist/chunks/memory-0.1.15-b6zkcs44.mjs +3 -0
  311. package/dist/chunks/{mobile-0.1.13-pzekbte3.mjs → mobile-0.1.15-sm8kbft4.mjs} +1 -1
  312. package/dist/chunks/model-0.1.15-843f7654.mjs +1 -0
  313. package/dist/chunks/model-0.1.15-e62wxf7h.mjs +2 -0
  314. package/dist/chunks/{oauth-0.1.13-bk91rvfd.mjs → oauth-0.1.15-gxgmqwwx.mjs} +1 -1
  315. package/dist/chunks/{openaiShim-0.1.13-c9z5r4zj.mjs → openaiShim-0.1.15-0yryhq9r.mjs} +1 -1
  316. package/dist/chunks/{output-style-0.1.13-c4ah6hc0.mjs → output-style-0.1.15-d20e4vc3.mjs} +1 -1
  317. package/dist/chunks/package-WSP46L7M-0.1.15-jsqef57n.mjs +1 -0
  318. package/dist/chunks/parser-0.1.15-wbja947p.mjs +1 -0
  319. package/dist/chunks/passes-0.1.15-726y1cyq.mjs +1 -0
  320. package/dist/chunks/permissions-0.1.15-4pqgyt4h.mjs +3 -0
  321. package/dist/chunks/plan-0.1.15-p06bpb7x.mjs +1 -0
  322. package/dist/chunks/plist-0.1.15-fseac2c0.mjs +1 -0
  323. package/dist/chunks/plugin-0.1.15-yeqq1san.mjs +29 -0
  324. package/dist/chunks/pluginStartupCheck-0.1.15-s9v7kq6q.mjs +1 -0
  325. package/dist/chunks/{plugins-0.1.13-1nvjxkbc.mjs → plugins-0.1.15-3rpwr86v.mjs} +2 -2
  326. package/dist/chunks/{print-0.1.13-g2dmfpmq.mjs → print-0.1.15-64y2p7wj.mjs} +4 -4
  327. package/dist/chunks/privacy-settings-0.1.15-rq35tcyk.mjs +1 -0
  328. package/dist/chunks/{process-0.1.13-ycxbd26n.mjs → process-0.1.15-g6km3z8k.mjs} +1 -1
  329. package/dist/chunks/processBashCommand-0.1.15-57ga0c30.mjs +1 -0
  330. package/dist/chunks/{processSlashCommand-0.1.13-16gwwvqz.mjs → processSlashCommand-0.1.15-mee2mbyy.mjs} +1 -1
  331. package/dist/chunks/prompt-0.1.15-gm20yk5m.mjs +1 -0
  332. package/dist/chunks/prompt-0.1.15-gxjy2vnc.mjs +1 -0
  333. package/dist/chunks/prompts-0.1.15-v7p366n5.mjs +1 -0
  334. package/dist/chunks/provider-0.1.15-gz0fhpp7.mjs +2 -0
  335. package/dist/chunks/providerProfiles-0.1.15-v7p3m9kf.mjs +1 -0
  336. package/dist/chunks/rate-limit-options-0.1.15-3vs25v7e.mjs +1 -0
  337. package/dist/chunks/registry-0.1.15-3h7bxrc2.mjs +1 -0
  338. package/dist/chunks/release-notes-0.1.15-1g908440.mjs +5 -0
  339. package/dist/chunks/reload-plugins-0.1.15-5r2acf43.mjs +2 -0
  340. package/dist/chunks/remote-env-0.1.15-fd5z1adp.mjs +1 -0
  341. package/dist/chunks/remoteBridgeCore-0.1.15-kbthngek.mjs +1 -0
  342. package/dist/chunks/remoteSession-0.1.15-yrg8c3z1.mjs +1 -0
  343. package/dist/chunks/rename-0.1.15-8079z5ff.mjs +1 -0
  344. package/dist/chunks/replBridgeHandle-0.1.15-cz1pf5m3.mjs +1 -0
  345. package/dist/chunks/resume-0.1.15-s4hv4t9y.mjs +2 -0
  346. package/dist/chunks/{rewind-0.1.13-zxcfrje2.mjs → rewind-0.1.15-fevxgefp.mjs} +1 -1
  347. package/dist/chunks/sandbox-adapter-0.1.15-yra7frkv.mjs +1 -0
  348. package/dist/chunks/sandbox-toggle-0.1.15-fn86ac4p.mjs +1 -0
  349. package/dist/chunks/session-0.1.15-crg226x4.mjs +2 -0
  350. package/dist/chunks/sessionFileAccessHooks-0.1.15-f3kpf3s7.mjs +1 -0
  351. package/dist/chunks/sessionStorage-0.1.15-x0gw4hbz.mjs +1 -0
  352. package/dist/chunks/setup-0.1.15-6znmc2q6.mjs +5 -0
  353. package/dist/chunks/sinks-0.1.15-npqf68gv.mjs +1 -0
  354. package/dist/chunks/skills-0.1.15-sybv0v2p.mjs +1 -0
  355. package/dist/chunks/startupProfiler-0.1.15-nwkwwtx6.mjs +1 -0
  356. package/dist/chunks/state-0.1.15-rr5k0vbf.mjs +1 -0
  357. package/dist/chunks/{stats-0.1.13-yrtt99gr.mjs → stats-0.1.15-3c4f5zp4.mjs} +1 -1
  358. package/dist/chunks/status-0.1.15-cvscafrs.mjs +1 -0
  359. package/dist/chunks/stickers-0.1.15-ee8ptkd4.mjs +1 -0
  360. package/dist/chunks/subprocessEnv-0.1.15-330g0p7g.mjs +1 -0
  361. package/dist/chunks/tasks-0.1.15-a4y42df2.mjs +1 -0
  362. package/dist/chunks/teamHelpers-0.1.15-gw6hwmyj.mjs +1 -0
  363. package/dist/chunks/teammateModeSnapshot-0.1.15-t2czx776.mjs +1 -0
  364. package/dist/chunks/teleport-0.1.15-bg434zjk.mjs +1 -0
  365. package/dist/chunks/terminalSetup-0.1.15-ged9eavp.mjs +1 -0
  366. package/dist/chunks/theme-0.1.15-zq998m8x.mjs +1 -0
  367. package/dist/chunks/thinkback-0.1.15-g09k62ck.mjs +1 -0
  368. package/dist/chunks/thinkback-play-0.1.15-mn7j6mm2.mjs +1 -0
  369. package/dist/chunks/toolPool-0.1.15-wej7eaff.mjs +1 -0
  370. package/dist/chunks/toolSearch-0.1.15-v6zmdk1y.mjs +1 -0
  371. package/dist/chunks/trustedDevice-0.1.15-t9sax8yq.mjs +1 -0
  372. package/dist/chunks/{turndown.cjs-0.1.13-2wbn8j6y.mjs → turndown.cjs-0.1.15-pmxpe7z8.mjs} +1 -1
  373. package/dist/chunks/{ultrareviewCommand-0.1.13-sj6asgpk.mjs → ultrareviewCommand-0.1.15-3gjgaeyn.mjs} +1 -1
  374. package/dist/chunks/{update-0.1.13-sx7hc0kj.mjs → update-0.1.15-jtd1h3e7.mjs} +11 -11
  375. package/dist/chunks/upgrade-0.1.15-07pcdyyq.mjs +1 -0
  376. package/dist/chunks/{upstreamproxy-0.1.13-pwxv6kww.mjs → upstreamproxy-0.1.15-wtbs40ct.mjs} +1 -1
  377. package/dist/chunks/usage-0.1.15-ayne7pw6.mjs +1 -0
  378. package/dist/chunks/util-0.1.15-vs1eanbw.mjs +1 -0
  379. package/dist/chunks/utils-0.1.15-aq7vgwy1.mjs +1 -0
  380. package/dist/chunks/vim-0.1.15-syferjfa.mjs +1 -0
  381. package/dist/chunks/watcher-0.1.15-bh7ych8a.mjs +1 -0
  382. package/dist/chunks/{wiki-0.1.13-regg8ff2.mjs → wiki-0.1.15-pp951r9h.mjs} +1 -1
  383. package/dist/chunks/worktree-0.1.15-twyfdw3p.mjs +1 -0
  384. package/dist/chunks/worktreeModeEnabled-0.1.15-afv7sbw1.mjs +1 -0
  385. package/dist/chunks/{wrapper-0.1.13-8nsef109.mjs → wrapper-0.1.15-dw3awx2b.mjs} +1 -1
  386. package/dist/claudio-vscode.vsix +0 -0
  387. package/dist/cli.mjs +5 -5
  388. package/package.json +1 -1
  389. package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +0 -1
  390. package/dist/chunks/App-0.1.13-45tpe56w.mjs +0 -1
  391. package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +0 -1
  392. package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +0 -1
  393. package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +0 -1
  394. package/dist/chunks/ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs +0 -1
  395. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +0 -1
  396. package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +0 -1
  397. package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +0 -1
  398. package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +0 -1
  399. package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +0 -1
  400. package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +0 -1
  401. package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +0 -1
  402. package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +0 -1
  403. package/dist/chunks/Onboarding-0.1.13-j8d7hwbe.mjs +0 -1
  404. package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +0 -1
  405. package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +0 -1
  406. package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +0 -1
  407. package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +0 -1
  408. package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +0 -1
  409. package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +0 -1
  410. package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +0 -9
  411. package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +0 -1
  412. package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +0 -1
  413. package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +0 -1
  414. package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +0 -1
  415. package/dist/chunks/agents-0.1.13-a0aj4df9.mjs +0 -111
  416. package/dist/chunks/agents-0.1.13-phdd6357.mjs +0 -3
  417. package/dist/chunks/api-0.1.13-vmdan95h.mjs +0 -1
  418. package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +0 -1
  419. package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +0 -1
  420. package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +0 -1
  421. package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +0 -4
  422. package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +0 -1
  423. package/dist/chunks/cacache-0.1.13-sy5bqn6j.mjs +0 -1
  424. package/dist/chunks/caches-0.1.13-0swwryxr.mjs +0 -1
  425. package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +0 -1
  426. package/dist/chunks/chromeNativeHost-0.1.13-96ex7t46.mjs +0 -2
  427. package/dist/chunks/claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs +0 -1
  428. package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +0 -1
  429. package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +0 -1
  430. package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +0 -1
  431. package/dist/chunks/cli-0.1.13-0b728dvh.mjs +0 -2
  432. package/dist/chunks/cli-0.1.13-0gyt273r.mjs +0 -2
  433. package/dist/chunks/cli-0.1.13-1hw65avy.mjs +0 -2
  434. package/dist/chunks/cli-0.1.13-1y21vq1h.mjs +0 -2
  435. package/dist/chunks/cli-0.1.13-2sx61wcx.mjs +0 -2
  436. package/dist/chunks/cli-0.1.13-3rr4fg79.mjs +0 -2
  437. package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +0 -2
  438. package/dist/chunks/cli-0.1.13-4prgqshq.mjs +0 -2
  439. package/dist/chunks/cli-0.1.13-52f40ba4.mjs +0 -2
  440. package/dist/chunks/cli-0.1.13-5b7hgn91.mjs +0 -2
  441. package/dist/chunks/cli-0.1.13-5d4ke9a2.mjs +0 -4
  442. package/dist/chunks/cli-0.1.13-5rnhv49w.mjs +0 -2
  443. package/dist/chunks/cli-0.1.13-5s4m8qj9.mjs +0 -100
  444. package/dist/chunks/cli-0.1.13-6q3wa261.mjs +0 -2
  445. package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +0 -3
  446. package/dist/chunks/cli-0.1.13-73yztj5x.mjs +0 -10
  447. package/dist/chunks/cli-0.1.13-85w0nxy9.mjs +0 -2
  448. package/dist/chunks/cli-0.1.13-91b1h8ww.mjs +0 -2
  449. package/dist/chunks/cli-0.1.13-9a1hzdsv.mjs +0 -2
  450. package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +0 -16
  451. package/dist/chunks/cli-0.1.13-c5b4ygdq.mjs +0 -2
  452. package/dist/chunks/cli-0.1.13-crcgrfse.mjs +0 -2
  453. package/dist/chunks/cli-0.1.13-d66pryf3.mjs +0 -2
  454. package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +0 -2
  455. package/dist/chunks/cli-0.1.13-f6gfa426.mjs +0 -2
  456. package/dist/chunks/cli-0.1.13-ft5k86va.mjs +0 -2
  457. package/dist/chunks/cli-0.1.13-g2v4avcv.mjs +0 -2
  458. package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +0 -2
  459. package/dist/chunks/cli-0.1.13-h3vb5402.mjs +0 -2
  460. package/dist/chunks/cli-0.1.13-hzdj03rn.mjs +0 -2
  461. package/dist/chunks/cli-0.1.13-jakv6e7b.mjs +0 -2
  462. package/dist/chunks/cli-0.1.13-m5aaczvd.mjs +0 -2
  463. package/dist/chunks/cli-0.1.13-mywk7e49.mjs +0 -134
  464. package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +0 -2
  465. package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +0 -2
  466. package/dist/chunks/cli-0.1.13-nc8ww3rn.mjs +0 -6
  467. package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +0 -2
  468. package/dist/chunks/cli-0.1.13-p84ry3q5.mjs +0 -2
  469. package/dist/chunks/cli-0.1.13-q93vqpjh.mjs +0 -833
  470. package/dist/chunks/cli-0.1.13-qxtrzerx.mjs +0 -2
  471. package/dist/chunks/cli-0.1.13-r09724ac.mjs +0 -2
  472. package/dist/chunks/cli-0.1.13-sgxk7d0h.mjs +0 -2
  473. package/dist/chunks/cli-0.1.13-sr9axhrw.mjs +0 -2
  474. package/dist/chunks/cli-0.1.13-ss1k5gqk.mjs +0 -3
  475. package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +0 -4
  476. package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +0 -2
  477. package/dist/chunks/cli-0.1.13-t34z5r3c.mjs +0 -2
  478. package/dist/chunks/cli-0.1.13-v1b9yhsy.mjs +0 -2
  479. package/dist/chunks/cli-0.1.13-v56n2wqm.mjs +0 -2
  480. package/dist/chunks/cli-0.1.13-vdz792pb.mjs +0 -2
  481. package/dist/chunks/cli-0.1.13-w08qr05m.mjs +0 -2
  482. package/dist/chunks/cli-0.1.13-wpsqhe6v.mjs +0 -4
  483. package/dist/chunks/cli-0.1.13-wr0c9hyh.mjs +0 -4
  484. package/dist/chunks/cli-0.1.13-x3zt8q8r.mjs +0 -2
  485. package/dist/chunks/cli-0.1.13-x4n4my99.mjs +0 -2
  486. package/dist/chunks/cli-0.1.13-xwkys72y.mjs +0 -12
  487. package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +0 -4
  488. package/dist/chunks/cli-0.1.13-y3e5jkh7.mjs +0 -2
  489. package/dist/chunks/cli-0.1.13-yeb03vme.mjs +0 -2
  490. package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +0 -2
  491. package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +0 -2
  492. package/dist/chunks/cli-0.1.13-z0jm6xd0.mjs +0 -2
  493. package/dist/chunks/cli-0.1.13-z387wpj9.mjs +0 -2
  494. package/dist/chunks/cli-0.1.13-zmft0mps.mjs +0 -2
  495. package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +0 -1
  496. package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +0 -1
  497. package/dist/chunks/compact-0.1.13-603r2t03.mjs +0 -3
  498. package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +0 -1
  499. package/dist/chunks/config-0.1.13-q8fcew9w.mjs +0 -1
  500. package/dist/chunks/context-0.1.13-5fz212w3.mjs +0 -1
  501. package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +0 -1
  502. package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +0 -1
  503. package/dist/chunks/cost-0.1.13-zch21h6x.mjs +0 -1
  504. package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +0 -1
  505. package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +0 -1
  506. package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +0 -1
  507. package/dist/chunks/detection-0.1.13-k001d88v.mjs +0 -1
  508. package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +0 -1
  509. package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +0 -1
  510. package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +0 -1
  511. package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +0 -8
  512. package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +0 -1
  513. package/dist/chunks/environments-0.1.13-x1xw45es.mjs +0 -1
  514. package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +0 -1
  515. package/dist/chunks/export-0.1.13-sq3jk66f.mjs +0 -2
  516. package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +0 -1
  517. package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +0 -1
  518. package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +0 -1
  519. package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +0 -14
  520. package/dist/chunks/git-0.1.13-2rp45xgd.mjs +0 -1
  521. package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +0 -1
  522. package/dist/chunks/help-0.1.13-knrgw1dq.mjs +0 -1
  523. package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +0 -1
  524. package/dist/chunks/image-processor-napi-0.1.13-h7fg935p.mjs +0 -1
  525. package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +0 -1
  526. package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +0 -1
  527. package/dist/chunks/index-0.1.13-7fm7tk25.mjs +0 -1
  528. package/dist/chunks/index-0.1.13-98j8cxkv.mjs +0 -1
  529. package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +0 -1
  530. package/dist/chunks/index-0.1.13-h4wytk4z.mjs +0 -1
  531. package/dist/chunks/index-0.1.13-m9m61529.mjs +0 -1
  532. package/dist/chunks/index-0.1.13-qjt3h799.mjs +0 -1
  533. package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +0 -1
  534. package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +0 -1
  535. package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +0 -1
  536. package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +0 -1
  537. package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +0 -1
  538. package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +0 -2
  539. package/dist/chunks/knowledge-0.1.13-9a2md3fm.mjs +0 -2
  540. package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +0 -1
  541. package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +0 -1
  542. package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +0 -1
  543. package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +0 -1
  544. package/dist/chunks/main-0.1.13-e5tbkphz.mjs +0 -1
  545. package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +0 -1
  546. package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +0 -4
  547. package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +0 -1
  548. package/dist/chunks/mcpServer-0.1.13-jf5dhyys.mjs +0 -1
  549. package/dist/chunks/mcpb-0.1.13-e55321kr.mjs +0 -1
  550. package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +0 -3
  551. package/dist/chunks/model-0.1.13-a42465ep.mjs +0 -1
  552. package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +0 -2
  553. package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +0 -1
  554. package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +0 -1
  555. package/dist/chunks/passes-0.1.13-bcbvjdzs.mjs +0 -1
  556. package/dist/chunks/permissions-0.1.13-c03934ka.mjs +0 -3
  557. package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +0 -1
  558. package/dist/chunks/plist-0.1.13-f3bfg2tf.mjs +0 -1
  559. package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +0 -29
  560. package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +0 -1
  561. package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +0 -1
  562. package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +0 -1
  563. package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +0 -1
  564. package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +0 -1
  565. package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +0 -1
  566. package/dist/chunks/provider-0.1.13-e9ayet7n.mjs +0 -2
  567. package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +0 -1
  568. package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +0 -1
  569. package/dist/chunks/registry-0.1.13-e33aasxk.mjs +0 -1
  570. package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +0 -5
  571. package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +0 -2
  572. package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +0 -1
  573. package/dist/chunks/remoteBridgeCore-0.1.13-sq5rr5x0.mjs +0 -1
  574. package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +0 -1
  575. package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +0 -1
  576. package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +0 -1
  577. package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +0 -2
  578. package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +0 -1
  579. package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +0 -1
  580. package/dist/chunks/session-0.1.13-cjn060z1.mjs +0 -2
  581. package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +0 -1
  582. package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +0 -1
  583. package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +0 -5
  584. package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +0 -1
  585. package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +0 -1
  586. package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +0 -1
  587. package/dist/chunks/state-0.1.13-cv8jd04r.mjs +0 -1
  588. package/dist/chunks/status-0.1.13-4x7h3dec.mjs +0 -1
  589. package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +0 -1
  590. package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +0 -1
  591. package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +0 -1
  592. package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +0 -1
  593. package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +0 -1
  594. package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +0 -1
  595. package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +0 -1
  596. package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +0 -1
  597. package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +0 -1
  598. package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +0 -1
  599. package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +0 -1
  600. package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +0 -1
  601. package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +0 -1
  602. package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +0 -1
  603. package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +0 -1
  604. package/dist/chunks/util-0.1.13-ef9r7w41.mjs +0 -1
  605. package/dist/chunks/utils-0.1.13-03dvz81t.mjs +0 -1
  606. package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +0 -1
  607. package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +0 -1
  608. package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +0 -1
  609. package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +0 -1
  610. /package/dist/chunks/{cli-0.1.13-gs7rcvne.mjs → cli-0.1.15-p6bypqrv.mjs} +0 -0
@@ -1,2 +1,2 @@
1
- import{BU as v,CU as Z,DU as D,RT as T,ST as X,TT as I,VT as Y,WT as p}from"./cli-0.1.13-hjqn3n5a.mjs";import{wX as P,yX as V}from"./cli-0.1.13-ck28msre.mjs";import{zX as H}from"./cli-0.1.13-79vtnprb.mjs";import{gna as F,tka as W}from"./cli-0.1.13-52f40ba4.mjs";import{Tna as A,Xna as C}from"./cli-0.1.13-bj67mp7n.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
- export{u as cg,M as dg};
1
+ import{AT as Y,BT as p,gU as v,hU as Z,iU as D,wT as T,xT as X,yT as I}from"./cli-0.1.15-68f0jtkh.mjs";import{EV as P,GV as V}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as H}from"./cli-0.1.15-tp614m5f.mjs";import{Bia as W,mla as F}from"./cli-0.1.15-12azgmva.mjs";import{Zla as A,bma as C}from"./cli-0.1.15-mhbfhhf6.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
+ export{u as wg,M as xg};
@@ -1,2 +1,2 @@
1
- import{Xna as H}from"./cli-0.1.13-bj67mp7n.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
- export{F as jga,K as kga,M as lga,N as mga,O as nga,P as oga,J as pga};
1
+ import{bma as H}from"./cli-0.1.15-mhbfhhf6.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
+ export{F as rea,K as sea,M as tea,N as uea,O as vea,P as wea,J as xea};
@@ -1,2 +1,2 @@
1
- import{FJ as O,GJ as P,HJ as Q,IJ as U,LJ as X,Qh as M,Rh as W}from"./cli-0.1.13-fh5dndvp.mjs";import{Xna as V}from"./cli-0.1.13-bj67mp7n.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
- export{F as Re,$ as Se};
1
+ import{Vg as M,Wg as W,sJ as O,tJ as P,uJ as Q,vJ as U,yJ as X}from"./cli-0.1.15-26hkdean.mjs";import{bma as V}from"./cli-0.1.15-mhbfhhf6.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
+ export{F as Oe,$ as Pe};
@@ -1,2 +1,2 @@
1
- import{Yb as K,Zb as Y}from"./cli-0.1.13-xvvtja1h.mjs";import{Dq as H,Eq as U,Iq as V,Jq as W,Rm as G,Sm as B,Yq as J,er as X}from"./cli-0.1.13-fh5dndvp.mjs";import{Una as q,Xna as v}from"./cli-0.1.13-bj67mp7n.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>H.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(G([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();B();U();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(W(),q(V))});
2
- export{P as Ub,C as Vb,A as Wb,D as Xb};
1
+ import{Ib as K,Jb as Y}from"./cli-0.1.15-ghvjjc4g.mjs";import{Fq as J,Nq as X,kq as H,lq as U,pq as V,qq as W,ym as G,zm as B}from"./cli-0.1.15-26hkdean.mjs";import{_la as q,bma as v}from"./cli-0.1.15-mhbfhhf6.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>H.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(G([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();B();U();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(W(),q(V))});
2
+ export{P as Eb,C as Fb,A as Gb,D as Hb};
@@ -0,0 +1,2 @@
1
+ import{LV as K,NV as Z}from"./cli-0.1.15-f8abjagh.mjs";import{OV as J,QV as Y}from"./cli-0.1.15-asts8hm3.mjs";import{_2 as D,d0 as B,d3 as F,e3 as G,i0 as W,y3 as X}from"./cli-0.1.15-q35rzjnz.mjs";import{$4 as V,K4 as z}from"./cli-0.1.15-x69hfzmj.mjs";import{hda as y,ida as Q}from"./cli-0.1.15-6mad0r56.mjs";import{bma as N}from"./cli-0.1.15-mhbfhhf6.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
+ export{P as Lg,_ as Mg};
@@ -1,2 +1,2 @@
1
- import{Xna as l}from"./cli-0.1.13-bj67mp7n.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
- export{u as vX,E as wX,a as xX,c as yX};
1
+ import{bma as l}from"./cli-0.1.15-mhbfhhf6.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as DV,E as EV,a as FV,c as GV};
@@ -1,2 +1,2 @@
1
- import{rga as Y}from"./cli-0.1.13-45hjhcbc.mjs";import{rha as V}from"./cli-0.1.13-144gn3fd.mjs";import{Xna as X}from"./cli-0.1.13-bj67mp7n.mjs";var _,O;var F=X(()=>{_=Promise.resolve(),O=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});async function D(){}async function C(z){if(!z||z.length>G)return null;return null}async function u(z){if(!z||z.length>G)return null;return null}function b(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&U.has(J.text)?[J.text]:[]}let Z=[],$=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!$&&J.type==="word"){$=!0,Z.push(J.text);continue}if(q.has(J.type))Z.push(H(J.text));else if(Q.has(J.type))break}return Z}function H(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var G=1e4,U,q,Q,y;var M=X(()=>{Y();V();F();U=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),q=new Set(["word","string","raw_string","number"]),Q=new Set(["command_substitution","process_substitution"]);y=Symbol("parse-aborted")});
2
- export{O as _Z,F as $Z,D as a0,C as b0,y as c0,u as d0,b as e0,M as f0};
1
+ import{zea as Y}from"./cli-0.1.15-b7f6hacc.mjs";import{zfa as V}from"./cli-0.1.15-nk50qhet.mjs";import{bma as X}from"./cli-0.1.15-mhbfhhf6.mjs";var _,O;var F=X(()=>{_=Promise.resolve(),O=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});async function D(){}async function C(z){if(!z||z.length>G)return null;return null}async function u(z){if(!z||z.length>G)return null;return null}function b(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&U.has(J.text)?[J.text]:[]}let Z=[],$=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!$&&J.type==="word"){$=!0,Z.push(J.text);continue}if(q.has(J.type))Z.push(H(J.text));else if(Q.has(J.type))break}return Z}function H(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var G=1e4,U,q,Q,y;var M=X(()=>{Y();V();F();U=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),q=new Set(["word","string","raw_string","number"]),Q=new Set(["command_substitution","process_substitution"]);y=Symbol("parse-aborted")});
2
+ export{O as gY,F as hY,D as iY,C as jY,y as kY,u as lY,b as mY,M as nY};
@@ -1,2 +1,2 @@
1
- import{Xna as F}from"./cli-0.1.13-bj67mp7n.mjs";function V(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function A(q,z){let B=q;for(let J of z){if(B==null||typeof B!=="object")return;B=B[J]}return B}function L(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let K=q.toLowerCase();return K.includes("localhost")||K.includes("127.0.0.1")||K.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let J=B.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);if(J){let K=Number(J[1]),Q=Number(J[2]);if(K===10)return!0;if(K===172&&Q>=16&&Q<=31)return!0;if(K===192&&Q===168)return!0;if(K===127)return!0;if(K===169&&Q===254)return!0;if(K===100&&Q>=64&&Q<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||/^fc[0-9a-f]{0,2}:/.test(B)||/^fd[0-9a-f]{0,2}:/.test(B))return!0;return!1}function O(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(L(B))return"self-hosted";let J=B.toLowerCase();if(J.includes(":11434"))return"ollama";if(J.includes("moonshot")||J.includes("kimi"))return"kimi";if(J.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function f(q){if(!q||typeof q!=="object")return 0;let z=q,B=V(z.cache_read_input_tokens);if(B>0)return B;let J=V(A(q,["input_tokens_details","cached_tokens"]))||V(A(q,["prompt_tokens_details","cached_tokens"]));if(J>0)return J;let K=V(z.cached_tokens);if(K>0)return K;let Q=V(z.prompt_cache_hit_tokens);if(Q>0)return Q;let W=V(z.cached_content_token_count);if(W>0)return W;return 0}function Y(q){let z=f(q),B=q??{},J=V(B.input_tokens)||V(B.prompt_tokens),K=J>=z?J-z:J,Q=V(B.output_tokens)||V(B.completion_tokens);return{input_tokens:K,output_tokens:Q,cache_creation_input_tokens:0,cache_read_input_tokens:z}}function k(q,z){if(!q||typeof q!=="object")return $;let B=q,J=V(B.cache_read_input_tokens),K=V(B.cache_creation_input_tokens),Q=V(B.input_tokens);if(z==="copilot"||z==="ollama")return $;if(z==="self-hosted"&&J===0&&K===0)return $;let W=J+K+Q;return{read:J,created:K,total:W,hitRate:W>0?Math.min(1,J/W):null,supported:!0}}function _(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${j(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${j(q.read)}`,`created=${j(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function j(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(/\.0$/,"")}k`;return`${(q/1e6).toFixed(1).replace(/\.0$/,"")}m`}function X(q,z){if(!q.supported&&!z.supported)return $;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,J=q.created+z.created,K=q.total+z.total;return{read:B,created:J,total:K,hitRate:K>0?B/K:null,supported:!0}}var $;var H=F(()=>{$={read:0,created:0,total:0,hitRate:null,supported:!1}});function D(q){return{currentTurn:Z,session:Z,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function S(q,z){G.currentTurn=X(G.currentTurn,q),G.session=X(G.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(G.history[G.historyWriteIdx]=B,G.historyWriteIdx=(G.historyWriteIdx+1)%G.historyMax,G.historySize<G.historyMax)G.historySize++}function M(){G.currentTurn=Z}function E(){G.currentTurn=Z,G.session=Z,G.history=Array(G.historyMax),G.historyWriteIdx=0,G.historySize=0}function w(){return G.currentTurn}function P(){return G.session}function T(){if(G.historySize<G.historyMax)return G.history.slice(0,G.historySize);let q=G.history.slice(G.historyWriteIdx),z=G.history.slice(0,G.historyWriteIdx);return q.concat(z)}var y=500,Z,G;var x=F(()=>{H();Z={read:0,created:0,total:0,hitRate:null,supported:!1};G=D(y)});
2
- export{O as yS,Y as zS,k as AS,_ as BS,I as CS,H as DS,S as ES,M as FS,E as GS,w as HS,P as IS,T as JS,x as KS};
1
+ import{bma as F}from"./cli-0.1.15-mhbfhhf6.mjs";function V(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function A(q,z){let B=q;for(let J of z){if(B==null||typeof B!=="object")return;B=B[J]}return B}function L(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let K=q.toLowerCase();return K.includes("localhost")||K.includes("127.0.0.1")||K.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let J=B.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);if(J){let K=Number(J[1]),Q=Number(J[2]);if(K===10)return!0;if(K===172&&Q>=16&&Q<=31)return!0;if(K===192&&Q===168)return!0;if(K===127)return!0;if(K===169&&Q===254)return!0;if(K===100&&Q>=64&&Q<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||/^fc[0-9a-f]{0,2}:/.test(B)||/^fd[0-9a-f]{0,2}:/.test(B))return!0;return!1}function O(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(L(B))return"self-hosted";let J=B.toLowerCase();if(J.includes(":11434"))return"ollama";if(J.includes("moonshot")||J.includes("kimi"))return"kimi";if(J.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function f(q){if(!q||typeof q!=="object")return 0;let z=q,B=V(z.cache_read_input_tokens);if(B>0)return B;let J=V(A(q,["input_tokens_details","cached_tokens"]))||V(A(q,["prompt_tokens_details","cached_tokens"]));if(J>0)return J;let K=V(z.cached_tokens);if(K>0)return K;let Q=V(z.prompt_cache_hit_tokens);if(Q>0)return Q;let W=V(z.cached_content_token_count);if(W>0)return W;return 0}function Y(q){let z=f(q),B=q??{},J=V(B.input_tokens)||V(B.prompt_tokens),K=J>=z?J-z:J,Q=V(B.output_tokens)||V(B.completion_tokens);return{input_tokens:K,output_tokens:Q,cache_creation_input_tokens:0,cache_read_input_tokens:z}}function k(q,z){if(!q||typeof q!=="object")return $;let B=q,J=V(B.cache_read_input_tokens),K=V(B.cache_creation_input_tokens),Q=V(B.input_tokens);if(z==="copilot"||z==="ollama")return $;if(z==="self-hosted"&&J===0&&K===0)return $;let W=J+K+Q;return{read:J,created:K,total:W,hitRate:W>0?Math.min(1,J/W):null,supported:!0}}function _(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${j(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${j(q.read)}`,`created=${j(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function j(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(/\.0$/,"")}k`;return`${(q/1e6).toFixed(1).replace(/\.0$/,"")}m`}function X(q,z){if(!q.supported&&!z.supported)return $;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,J=q.created+z.created,K=q.total+z.total;return{read:B,created:J,total:K,hitRate:K>0?B/K:null,supported:!0}}var $;var H=F(()=>{$={read:0,created:0,total:0,hitRate:null,supported:!1}});function D(q){return{currentTurn:Z,session:Z,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function S(q,z){G.currentTurn=X(G.currentTurn,q),G.session=X(G.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(G.history[G.historyWriteIdx]=B,G.historyWriteIdx=(G.historyWriteIdx+1)%G.historyMax,G.historySize<G.historyMax)G.historySize++}function M(){G.currentTurn=Z}function E(){G.currentTurn=Z,G.session=Z,G.history=Array(G.historyMax),G.historyWriteIdx=0,G.historySize=0}function w(){return G.currentTurn}function P(){return G.session}function T(){if(G.historySize<G.historyMax)return G.history.slice(0,G.historySize);let q=G.history.slice(G.historyWriteIdx),z=G.history.slice(0,G.historyWriteIdx);return q.concat(z)}var y=500,Z,G;var x=F(()=>{H();Z={read:0,created:0,total:0,hitRate:null,supported:!1};G=D(y)});
2
+ export{O as dS,Y as eS,k as fS,_ as gS,I as hS,H as iS,S as jS,M as kS,E as lS,w as mS,P as nS,T as oS,x as pS};
@@ -0,0 +1,2 @@
1
+ import{XJ as C,_J as X}from"./cli-0.1.15-26hkdean.mjs";import{HV as W}from"./cli-0.1.15-tp614m5f.mjs";import{H1 as J,N1 as V,v1 as I}from"./cli-0.1.15-q35rzjnz.mjs";import{Ida as T,nda as H}from"./cli-0.1.15-wfn10357.mjs";import{Zla as P,bma as Q}from"./cli-0.1.15-mhbfhhf6.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
+ export{v as Kb,Y as Lb};
@@ -1,4 +1,4 @@
1
- import{Ei as U,Gi as h,Iu as k,Ju as I,Uh as $,Xh as m,lI as u,wH as F,xF as A,yF as p,yH as L}from"./cli-0.1.13-fh5dndvp.mjs";import{m1 as O,n1 as f}from"./cli-0.1.13-bzgpcgdt.mjs";import{Uga as b,Wga as T,eha as S,iha as E}from"./cli-0.1.13-144gn3fd.mjs";import{Lha as C,yha as y}from"./cli-0.1.13-1g6bgaa6.mjs";import{Xna as N}from"./cli-0.1.13-bj67mp7n.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
1
+ import{Jh as U,Lh as h,Zg as $,_H as u,ah as m,jH as F,kF as A,lF as p,lH as L,xu as k,yu as I}from"./cli-0.1.15-26hkdean.mjs";import{uZ as O,vZ as f}from"./cli-0.1.15-q35rzjnz.mjs";import{afa as b,cfa as T,mfa as S,qfa as E}from"./cli-0.1.15-nk50qhet.mjs";import{Afa as y,Nfa as C}from"./cli-0.1.15-9pe3dbgs.mjs";import{bma as N}from"./cli-0.1.15-mhbfhhf6.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
2
 
3
3
  Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
4
 
@@ -55,4 +55,4 @@ The document author has provided specific instructions for how this file should
55
55
  "${J}"
56
56
 
57
57
  These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function l(w){let z=w.match(r);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(d);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function i(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function s(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=l(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:i(),promptMessages:[L({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var r,d,G,Yw;var a=N(()=>{I();m();p();T();h();u();f();j();r=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,d=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(F(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await s(K,w)})});
58
- export{Xw as pg,Zw as qg,a as rg};
58
+ export{Xw as hg,Zw as ig,a as jg};
@@ -0,0 +1,12 @@
1
+ import{Hr as r,Ir as Xq,Ru as x,Su as s,Tu as C,Vu as n,Wu as $,Yu as Zq,iv as o,kv as Mq,rt as d,st as Yq,wj as E,xj as Uq}from"./cli-0.1.15-26hkdean.mjs";import{AU as N,CU as U,GU as V,QS as Jq,WU as a,fV as Qq}from"./cli-0.1.15-68f0jtkh.mjs";import{DV as u,EV as J,FV as X,GV as g}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as zq}from"./cli-0.1.15-tp614m5f.mjs";import{yea as w,zea as qq}from"./cli-0.1.15-b7f6hacc.mjs";import{Zla as i,bma as t}from"./cli-0.1.15-mhbfhhf6.mjs";function Fq(){let z=f.c(9),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=X(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",J(U,{bold:!0,children:"October 8, 2025"}),". You can accept the updated terms today."]}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y,Z;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=J(U,{children:"· "}),Z=J(U,{bold:!0,children:"You can help improve Claude "}),z[2]=Y,z[3]=Z;else Y=z[2],Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(N,{paddingLeft:1,children:X(U,{children:[Y,Z,X(U,{children:["— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",J(V,{url:"https://claude.ai/settings/data-privacy-controls"}),")."]})]})}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=X(N,{flexDirection:"column",children:[F,W,J(N,{paddingLeft:1,children:X(U,{children:[J(U,{children:"· "}),J(U,{bold:!0,children:"Updates to data retention "}),J(U,{children:"— To help us improve our AI models and safety protections, we're extending data retention to 5 years."})]})})]}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[6]=Q;else Q=z[6];let H;if(z[7]===Symbol.for("react.memo_cache_sentinel"))H=J(V,{url:"https://anthropic.com/legal/terms"}),z[7]=H;else H=z[7];let O;if(z[8]===Symbol.for("react.memo_cache_sentinel"))O=X(u,{children:[q,P,X(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",H,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[8]=O;else O=z[8];return O}function Nq(){let z=f.c(7),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=J(U,{children:"We've updated our Consumer Terms and Privacy Policy."}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Help improve Claude"}),J(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"}),J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),z[2]=Y;else Y=z[2];let Z;if(z[3]===Symbol.for("react.memo_cache_sentinel"))Z=X(N,{flexDirection:"column",gap:1,children:[F,Y,X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"How this affects data retention"}),J(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."})]})]}),z[3]=Z;else Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=J(V,{url:"https://anthropic.com/legal/terms"}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=X(u,{children:[q,Z,X(U,{children:["Learn more (",W,") or read the updated Consumer Terms (",P,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[6]=Q;else Q=z[6];return Q}function kq(z){let q=f.c(34),{showIfAlreadyViewed:F,location:Y,onDone:Z}=z,[W,P]=_.useState(null),[Q,H]=_.useState(null),O,R;if(q[0]!==Y||q[1]!==Z||q[2]!==F)O=()=>{(async function(){let[e,c]=await Promise.all([x(),n()]),j=c.success?c.data:null;H(j);let l=$(e,c,F);if(P(l),!l){Z("skip_rendering");return}s(),w("tengu_grove_policy_viewed",{location:Y,dismissable:j?.notice_is_grace_period})})()},R=[F,Y,Z],q[0]=Y,q[1]=Z,q[2]=F,q[3]=O,q[4]=R;else O=q[3],R=q[4];if(_.useEffect(O,R),W===null)return null;if(!W)return null;let K;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Z)K=async function(v){q:switch(v){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Z(v)},q[5]=Q?.notice_is_grace_period,q[6]=Z,q[7]=K;else K=q[7];let A=K,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms · Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms · Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms · Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let I=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==A)G=function(){if(Q?.notice_is_grace_period){A("defer");return}A("escape")},q[10]=Q?.notice_is_grace_period,q[11]=A,q[12]=G;else G=q[12];let M=G,k;if(q[13]!==Q?.notice_is_grace_period)k=J(N,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?J(Fq,{}):J(Nq,{})}),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let D;if(q[15]===Symbol.for("react.memo_cache_sentinel"))D=J(N,{flexShrink:0,children:J(U,{color:"professionalBlue",children:Wq})}),q[15]=D;else D=q[15];let B;if(q[16]!==k)B=X(N,{flexDirection:"row",children:[k,D]}),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Please select how you'd like to continue"}),J(U,{children:"Your choice takes effect immediately upon confirmation."})]}),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==I||q[22]!==b)m=[...I,...b],q[21]=I,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==A)p=(h)=>A(h),q[24]=A,q[25]=p;else p=q[25];let y;if(q[26]!==M||q[27]!==m||q[28]!==p)y=X(N,{flexDirection:"column",gap:1,children:[T,J(o,{options:m,onChange:p,onCancel:M})]}),q[26]=M,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==M||q[31]!==y||q[32]!==B)S=X(d,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:M,inputGuide:Oq,children:[B,y]}),q[30]=M,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Oq(z){return z.pending?X(U,{children:["Press ",z.keyName," again to exit"]}):X(r,{children:[J(E,{shortcut:"Enter",action:"confirm"}),J(E,{shortcut:"Esc",action:"cancel"})]})}function _q(z){let q=f.c(17),{settings:F,domainExcluded:Y,onDone:Z}=z,[W,P]=_.useState(F.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];_.default.useEffect(Pq,Q);let H;if(q[1]!==Y||q[2]!==W)H=async(M,k)=>{if(!Y&&(k.tab||k.return||M===" ")){let D=!W;P(D),await C(D)}},q[1]=Y,q[2]=W,q[3]=H;else H=q[3];a(H);let O;if(q[4]===Symbol.for("react.memo_cache_sentinel"))O=J(U,{color:"error",children:"false"}),q[4]=O;else O=q[4];let R=O;if(Y){let M;if(q[5]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"error",children:"false (for emails with your domain)"}),q[5]=M;else M=q[5];R=M}else if(W){let M;if(q[6]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"success",children:"true"}),q[6]=M;else M=q[6];R=M}let K;if(q[7]!==Y)K=(M)=>M.pending?X(U,{children:["Press ",M.keyName," again to exit"]}):Y?J(E,{shortcut:"Esc",action:"cancel"}):X(r,{children:[J(E,{shortcut:"Enter/Tab/Space",action:"toggle"}),J(E,{shortcut:"Esc",action:"cancel"})]}),q[7]=Y,q[8]=K;else K=q[8];let A;if(q[9]===Symbol.for("react.memo_cache_sentinel"))A=X(U,{children:["Review and manage your privacy settings at"," ",J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),q[9]=A;else A=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=J(N,{width:44,children:J(U,{bold:!0,children:"Help improve Claude"})}),q[10]=L;else L=q[10];let I;if(q[11]!==R)I=X(N,{children:[L,J(N,{children:R})]}),q[11]=R,q[12]=I;else I=q[12];let G;if(q[13]!==Z||q[14]!==K||q[15]!==I)G=X(d,{title:"Data Privacy",color:"professionalBlue",onCancel:Z,inputGuide:K,children:[A,I]}),q[13]=Z,q[14]=K,q[15]=I,q[16]=G;else G=q[16];return G}function Pq(){w("tengu_grove_privacy_settings_viewed",{})}var f,_,Wq=` _____________
2
+ | \\ \\
3
+ | NEW TERMS \\__\\
4
+ | |
5
+ | ---------- |
6
+ | ---------- |
7
+ | ---------- |
8
+ | ---------- |
9
+ | ---------- |
10
+ | |
11
+ |______________|`;var Aq=t(()=>{qq();Qq();Zq();Mq();Xq();Yq();Uq();g();f=i(Jq(),1),_=i(zq(),1)});
12
+ export{kq as rc,_q as sc,Aq as tc};
@@ -1,2 +1,2 @@
1
- import{d8 as z,f8 as G}from"./cli-0.1.13-dag38tkx.mjs";import{Xna as D}from"./cli-0.1.13-bj67mp7n.mjs";function H(k){let g;try{g=new URL(k)}catch(A){throw Error(`Invalid URL format: ${k}`)}if(g.protocol!=="http:"&&g.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${g.protocol}`)}async function K(k){try{let g=process.platform;if(g==="win32"){let{code:C}=await z("explorer",[k]);return C===0}let A=g==="darwin"?"open":"xdg-open",{code:B}=await z(A,[k]);return B===0}catch(g){return!1}}async function L(k){try{H(k);let g=process.env.BROWSER,A=process.platform;if(A==="win32"){if(g){let{code:C}=await z(g,[`"${k}"`]);return C===0}let{code:B}=await z("rundll32",["url,OpenURL",k],{});return B===0}else{let B=g||(A==="darwin"?"open":"xdg-open"),{code:C}=await z(B,[k]);return C===0}}catch(g){return!1}}var I=D(()=>{G()});
2
- export{K as VX,L as WX,I as XX};
1
+ import{l6 as z,n6 as G}from"./cli-0.1.15-4892kydg.mjs";import{bma as D}from"./cli-0.1.15-mhbfhhf6.mjs";function H(k){let g;try{g=new URL(k)}catch(A){throw Error(`Invalid URL format: ${k}`)}if(g.protocol!=="http:"&&g.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${g.protocol}`)}async function K(k){try{let g=process.platform;if(g==="win32"){let{code:C}=await z("explorer",[k]);return C===0}let A=g==="darwin"?"open":"xdg-open",{code:B}=await z(A,[k]);return B===0}catch(g){return!1}}async function L(k){try{H(k);let g=process.env.BROWSER,A=process.platform;if(A==="win32"){if(g){let{code:C}=await z(g,[`"${k}"`]);return C===0}let{code:B}=await z("rundll32",["url,OpenURL",k],{});return B===0}else{let B=g||(A==="darwin"?"open":"xdg-open"),{code:C}=await z(B,[k]);return C===0}}catch(g){return!1}}var I=D(()=>{G()});
2
+ export{K as bW,L as cW,I as dW};
@@ -1,3 +1,3 @@
1
- import{AV as o,TU as j,UU as s,VU as F,XU as V,jT as t,sT as p}from"./cli-0.1.13-hjqn3n5a.mjs";import{wX as w,xX as g,yX as y}from"./cli-0.1.13-ck28msre.mjs";import{Y7 as $,Z7 as a,d7 as _,e7 as n}from"./cli-0.1.13-dag38tkx.mjs";import{Tna as i,Xna as v}from"./cli-0.1.13-bj67mp7n.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
1
+ import{AU as F,CU as V,QS as t,ZS as p,fV as o,yU as j,zU as s}from"./cli-0.1.15-68f0jtkh.mjs";import{EV as w,FV as g,GV as y}from"./cli-0.1.15-gxgy4enj.mjs";import{e6 as $,f6 as a,l5 as _,m5 as n}from"./cli-0.1.15-4892kydg.mjs";import{Zla as i,bma as v}from"./cli-0.1.15-mhbfhhf6.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
2
  `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
- export{Hq as Le,Mq as Me};
3
+ export{Hq as Ie,Mq as Je};
@@ -1,2 +1,2 @@
1
- import{Hi as l,Ii as Rq,Ji as i,Ki as Aq,Lk as S,Qk as Zq,uk as E,vk as m,wk as Xq}from"./cli-0.1.13-fh5dndvp.mjs";import{C6 as p,T6 as Qq}from"./cli-0.1.13-wh68ve92.mjs";import{E$ as u,G$ as g,J$ as h,K$ as n,P$ as vq,S7 as D,X7 as qq}from"./cli-0.1.13-dag38tkx.mjs";import{gea as d,iea as Uq}from"./cli-0.1.13-jz57znb6.mjs";import{Qga as W,Rga as O,Sga as C,Wga as _,Yga as P,Zga as v,aha as f,eha as M,iha as y,oha as V,rha as e}from"./cli-0.1.13-144gn3fd.mjs";import{Xna as N}from"./cli-0.1.13-bj67mp7n.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{Qq();e();_();y();qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
2
- export{Fq as ac,r as bc,nq as cc,lq as dc,Oq as ec,QQ as fc,XQ as gc,Dq as hc};
1
+ import{Mh as l,Nh as Rq,Oh as i,Ph as Aq,bk as E,ck as m,dk as Xq,sk as S,xk as Zq}from"./cli-0.1.15-26hkdean.mjs";import{$4 as Qq,K4 as p}from"./cli-0.1.15-x69hfzmj.mjs";import{M9 as u,O9 as g,R9 as h,S9 as n,X9 as vq,_5 as D,d6 as qq}from"./cli-0.1.15-4892kydg.mjs";import{oca as d,qca as Uq}from"./cli-0.1.15-gmdv5ny8.mjs";import{Yea as W,Zea as O,_ea as C,cfa as _,efa as P,ffa as v,ifa as f,mfa as M,qfa as y,wfa as V,zfa as e}from"./cli-0.1.15-nk50qhet.mjs";import{bma as N}from"./cli-0.1.15-mhbfhhf6.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{Qq();e();_();y();qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
2
+ export{Fq as Mb,r as Nb,nq as Ob,lq as Pb,Oq as Qb,QQ as Rb,XQ as Sb,Dq as Tb};
@@ -1,2 +1,2 @@
1
- import{Lk as Z,Qk as G}from"./cli-0.1.13-fh5dndvp.mjs";import{S7 as X,X7 as R}from"./cli-0.1.13-dag38tkx.mjs";import{Yga as v,Zga as B,aha as A,eha as C,iha as M,oha as U,rha as O}from"./cli-0.1.13-144gn3fd.mjs";import{Xna as b}from"./cli-0.1.13-bj67mp7n.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
- export{o as mc,c as nc,p as oc,d as pc,g as qc,w as rc};
1
+ import{sk as Z,xk as G}from"./cli-0.1.15-26hkdean.mjs";import{_5 as X,d6 as R}from"./cli-0.1.15-4892kydg.mjs";import{efa as v,ffa as B,ifa as A,mfa as C,qfa as M,wfa as U,zfa as O}from"./cli-0.1.15-nk50qhet.mjs";import{bma as b}from"./cli-0.1.15-mhbfhhf6.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
+ export{o as Ub,c as Vb,p as Wb,d as Xb,g as Yb,w as Zb};
@@ -1,5 +1,5 @@
1
- import{o as f}from"./cli-0.1.13-vn7ckv16.mjs";import{nA as F,oA as i}from"./cli-0.1.13-fh5dndvp.mjs";import{hP as T,kP as e,lP as k,mP as z,rP as d}from"./cli-0.1.13-pqk4c7m7.mjs";import{E5 as y,F5 as U,K5 as c,w5 as W,z5 as m}from"./cli-0.1.13-5ydypzty.mjs";import{C6 as S,T6 as s}from"./cli-0.1.13-wh68ve92.mjs";import{B7 as Z,D7 as R}from"./cli-0.1.13-dag38tkx.mjs";import{gea as V,iea as I,jea as N,kea as v}from"./cli-0.1.13-jz57znb6.mjs";import{Afa as b,pfa as E}from"./cli-0.1.13-rjjyq9ej.mjs";import{qga as q,rga as p}from"./cli-0.1.13-45hjhcbc.mjs";import{Yga as O,aha as w,oha as Y,rha as _}from"./cli-0.1.13-144gn3fd.mjs";import{Bha as H,Lha as h}from"./cli-0.1.13-1g6bgaa6.mjs";import{Yna as u}from"./cli-0.1.13-bj67mp7n.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();p();i();_();R();h();m();c();d();w();var g=`{"type":"keep_alive"}
2
- `,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new F(t)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:U(this.url.href),tls:W()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.1.13-8nsef109.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)q("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)q("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&a.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>A)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)q("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=O($)+`
1
+ import{E as f}from"./cli-0.1.15-77346q11.mjs";import{aA as F,bA as i}from"./cli-0.1.15-26hkdean.mjs";import{$O as z,WO as T,ZO as e,_O as k,eP as d}from"./cli-0.1.15-69kq5chw.mjs";import{E3 as W,H3 as m,M3 as y,N3 as U,S3 as c}from"./cli-0.1.15-5denzf1p.mjs";import{$4 as s,K4 as S}from"./cli-0.1.15-x69hfzmj.mjs";import{J5 as Z,L5 as R}from"./cli-0.1.15-4892kydg.mjs";import{oca as V,qca as I,rca as N,sca as v}from"./cli-0.1.15-gmdv5ny8.mjs";import{Ida as b,xda as E}from"./cli-0.1.15-wfn10357.mjs";import{yea as q,zea as p}from"./cli-0.1.15-b7f6hacc.mjs";import{efa as O,ifa as w,wfa as Y,zfa as _}from"./cli-0.1.15-nk50qhet.mjs";import{Dfa as H,Nfa as h}from"./cli-0.1.15-9pe3dbgs.mjs";import{cma as u}from"./cli-0.1.15-mhbfhhf6.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();p();i();_();R();h();m();c();d();w();var g=`{"type":"keep_alive"}
2
+ `,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new F(t)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:U(this.url.href),tls:W()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.1.15-dw3awx2b.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)q("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)q("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&a.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>A)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)q("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=O($)+`
3
3
  `;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
4
4
  `;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>A){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},r)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),H(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(g),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},o)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var JJ=100,KJ=15000,QJ=3000;class XJ extends L{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:B}=$??{};this.postUrl=YJ(J),this.uploader=new f({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(M,P)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:M,failures:P}),B?.(M,P)},send:(M)=>this.postOnce(M)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),JJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,QJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=T();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await S.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:KJ})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function YJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
5
- export{j,BJ as k,L as l,XJ as m};
5
+ export{j as q,BJ as r,L as s,XJ as t};
@@ -1,2 +1,2 @@
1
- import{Jna as p,Kna as a}from"./cli-0.1.13-0hyneh5t.mjs";import{Vna as i}from"./cli-0.1.13-bj67mp7n.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
- export{u as P5};
1
+ import{Pla as p,Qla as a}from"./cli-0.1.15-6r630k68.mjs";import{$la as i}from"./cli-0.1.15-mhbfhhf6.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
+ export{u as X3};