@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
@@ -0,0 +1,821 @@
1
+ import{I as r,J as k0}from"./cli-0.1.15-p6bypqrv.mjs";import{L as M5}from"./cli-0.1.15-7ve9h395.mjs";import{N as J7,O as F5,P as U5}from"./cli-0.1.15-1kmf57b0.mjs";import{Aa as R5,Ba as nq,qa as $5,sa as B5,ta as V5,za as G5}from"./cli-0.1.15-cqzrzsh5.mjs";import{Ca as K5,Ia as rq}from"./cli-0.1.15-7rr53z40.mjs";import{$a as Z7}from"./cli-0.1.15-vzk22hwe.mjs";import{cb as b9}from"./cli-0.1.15-8k69z9kk.mjs";import{qb as o3,rb as yX}from"./cli-0.1.15-yghcqf7h.mjs";import{Ib as O5,Jb as tX}from"./cli-0.1.15-ghvjjc4g.mjs";import{Ec as q7,Gc as YW}from"./cli-0.1.15-wmwtv0tz.mjs";import{ad as iq,bd as n3}from"./cli-0.1.15-e494j2sj.mjs";import{Ae as s3,Fe as TX}from"./cli-0.1.15-v8zwx5j6.mjs";import{$I as v3,AI as dQ,Ap as oJ,BI as Bq,BM as Y5,Bp as f8,CG as FX,CJ as m3,Cl as fq,Cq as l2,DG as O3,Dq as p2,Du as XJ,Dz as D3,EG as UX,EJ as g3,EM as X5,Ek as O2,Eu as WJ,Ez as QX,FK as i3,Fk as wY,Fl as S2,Fr as A5,Fu as Y3,GJ as d3,GL as q5,Gj as x2,Gq as fQ,Gr as sX,Gu as X3,HI as Wq,HK as NX,Hj as DY,Hr as x5,Hu as W3,Hv as V3,IC as A3,II as Hq,Il as kY,Iq as hQ,Ir as rX,Iu as H3,Iv as K3,Jq as vQ,Ju as HJ,KC as KX,KI as x4,KJ as H6,KO as jX,Ko as V9,Kq as Xq,Kv as aY,Kz as I3,LJ as l3,Lo as EY,Lq as b5,Lv as G3,Mo as f2,Mu as zJ,Mz as GJ,Nl as CQ,Nq as zq,Nu as b0,Nz as RJ,OF as dq,OK as r3,Ok as Eq,Op as eJ,Oq as hq,PF as MX,PH as b3,PJ as p3,PK as DX,Pp as h8,Pq as a2,Pu as R0,QJ as a3,Qk as Sq,Qq as vq,Qu as m1,Qx as sY,RI as f3,Ro as SY,Rq as H1,Rr as L1,Rx as rY,So as h2,Sp as qQ,Sr as _1,TG as E3,TJ as z6,To as bY,Tp as v8,Tq as f5,Tr as t2,UG as S3,Uh as r5,Ul as A4,Uo as v2,Ur as o2,Uu as o5,Uv as iY,VG as LX,Vo as u2,Vq as i2,Vr as e2,WJ as f9,WK as G0,Wo as fY,Wr as dY,XB as WX,XK as B9,Xq as s2,YB as HX,YI as h3,Yq as r2,Yu as JW,Yy as P1,ZI as aq,Zq as uq,Zy as M3,_H as _X,_J as h5,_k as jY,_q as n2,_y as eY,aN as wX,aj as A2,az as cq,bJ as u3,bj as NY,br as $q,bz as qX,cJ as PX,ci as n5,cz as F3,dL as sq,dz as U3,ei as t5,ej as Oq,eq as FQ,ez as ZX,fj as TY,fq as UQ,fz as L3,gL as OQ,gj as BQ,gq as Yq,gv as C5,gz as _3,hi as ZW,hj as s8,hn as _q,hq as LQ,hv as nX,hz as P3,iC as zX,ij as VQ,in as Pq,iv as I5,iz as N3,jC as $X,jj as KQ,jn as Nq,jq as G4,kA as y3,kL as e3,ki as K9,kj as GQ,kn as Tq,kv as aX,kz as T3,lA as YX,lH as pq,lN as MJ,lh as y2,li as JZ,ln as V6,mh as LY,mi as j2,mj as r8,mn as K6,nN as FJ,ni as k2,nj as RQ,nn as b4,pF as C3,pL as EQ,pi as PY,pq as uY,pv as s0,pz as JX,qF as RX,qN as v7,qk as F1,qq as cY,qv as t1,qw as e5,rI as w9,rj as n8,rk as IY,rl as WQ,rt as y1,ru as J3,rv as S9,rw as QW,sB as mq,sI as n0,sh as w2,sl as d8,sp as c2,st as D5,sv as z3,tI as Vq,th as _Y,tk as C2,tl as tJ,tn as b2,tp as m2,tr as U1,tu as Q3,tv as $J,uB as XX,uI as Kq,un as OY,up as hY,uq as d2,uu as pY,uv as g1,vI as mQ,vl as b8,vp as g2,vr as gY,vv as BJ,wI as j9,wj as XZ,wl as bq,wv as $3,xE as x3,xG as lq,xI as gQ,xM as Z5,xO as W5,xj as iX,xk as yY,xp as vY,xq as mY,xv as B3,yI as Gq,yM as J5,yO as H5,ym as C9,yv as VJ,zE as GX,zI as z1,zJ as c3,zM as Q5,zO as z5,zl as E2,zm as AY}from"./cli-0.1.15-26hkdean.mjs";import{WO as R3,ZO as oY}from"./cli-0.1.15-69kq5chw.mjs";import{rP as nY,sP as tY}from"./cli-0.1.15-r9nrfwrq.mjs";import{CQ as gq,DQ as BX}from"./cli-0.1.15-y2pbhx6p.mjs";import{aR as w3,bR as j3,dR as k3,eR as VX}from"./cli-0.1.15-216kns0c.mjs";import{AR as xY,BR as CY}from"./cli-0.1.15-nx5v1cvm.mjs";import{MR as t3,NR as IX}from"./cli-0.1.15-ajg1d1bh.mjs";import{AU as k5,CU as D1,GT as D2,GU as P5,LT as FY,MT as I2,NT as UY,QS as YZ,WT as s5,ZT as qW,fV as N5}from"./cli-0.1.15-68f0jtkh.mjs";import{hV as N2,kV as T2,mV as MY}from"./cli-0.1.15-svhrqvzp.mjs";import{DV as j5,EV as N,FV as u0,GV as q0}from"./cli-0.1.15-gxgy4enj.mjs";import{VV as q3,YV as Z3,aW as lY}from"./cli-0.1.15-y6fkcbes.mjs";import{BW as KJ,CW as h7,nW as QJ,pW as b7,qW as YJ,rW as f7}from"./cli-0.1.15-m7gtc61y.mjs";import{oY as JJ,pY as S0}from"./cli-0.1.15-behp1dag.mjs";import{C1 as eQ,F0 as z2,GZ as V0,H1 as h0,HZ as a5,J1 as nQ,K0 as Aq,LZ as l0,M1 as V2,N1 as Rq,NZ as H2,O1 as K2,OZ as zY,P1 as BY,R1 as G2,S1 as VY,T2 as L2,U2 as _2,X0 as xq,Y0 as $2,Y1 as R2,Z0 as $Y,b2 as KY,e2 as M2,g0 as ZJ,i0 as S7,j3 as P2,k3 as Y6,m3 as X6,n0 as i5,o0 as eX,o1 as B2,o2 as GY,o3 as V1,p2 as F2,q2 as U2,r2 as RY,v1 as oQ,w1 as O9,w3 as Cq,y3 as Mq}from"./cli-0.1.15-q35rzjnz.mjs";import{G3 as eZ,H3 as O7,P3 as qJ,S3 as E7}from"./cli-0.1.15-5denzf1p.mjs";import{U3 as A,V3 as HY}from"./cli-0.1.15-fmnyh9j9.mjs";import{E4 as sZ,J4 as x7}from"./cli-0.1.15-dcxa8b6s.mjs";import{$4 as k8,K4 as hJ}from"./cli-0.1.15-x69hfzmj.mjs";import{$6 as s6,$_ as t0,B8 as t6,D_ as DQ,F6 as AQ,F8 as ZY,Gaa as S4,H6 as k4,H_ as T4,J5 as X0,K_ as Z2,L5 as iZ,L6 as J1,L_ as XY,M8 as o6,M_ as J2,N8 as e6,O7 as r6,O8 as JY,P7 as kq,Q$ as T1,Q6 as i6,Q7 as e4,R_ as WY,U$ as f,V_ as X1,X$ as h,X_ as a,Y$ as X2,Z$ as p5,Z_ as S,_$ as tZ,_5 as l,__ as Q2,a$ as v0,aaa as iQ,baa as sQ,c$ as Y2,caa as W2,d$ as $1,d6 as k9,f$ as l5,g7 as o1,haa as oZ,i6 as kQ,i7 as Z1,j$ as e,j6 as j4,k7 as mJ,l7 as rZ,m9 as q2,oaa as Z0,p7 as C7,q8 as N1,r_ as x9,t5 as U6,u5 as s4,v8 as qY,vaa as Uq,vba as P0,waa as Lq,x6 as w4,x9 as QY,yba as v1,z_ as YY}from"./cli-0.1.15-4892kydg.mjs";import{Sba as TQ,oca as s,qca as e1,rca as I9,sca as zQ}from"./cli-0.1.15-gmdv5ny8.mjs";import{vca as E9,wca as n4}from"./cli-0.1.15-rr65b3dk.mjs";import{hda as r9,ida as uZ}from"./cli-0.1.15-6mad0r56.mjs";import{jda as Q1,mda as nJ}from"./cli-0.1.15-dq954y1q.mjs";import{Bda as v6,Cda as g5,Ida as ZZ,uda as m5,wda as R1}from"./cli-0.1.15-wfn10357.mjs";import{Yda as YQ,gea as XQ,lea as L,mea as n6,qea as nZ}from"./cli-0.1.15-11sdbfxy.mjs";import{yea as F,zea as J0}from"./cli-0.1.15-b7f6hacc.mjs";import{Cea as P9,Eea as pZ,Sea as aZ,Uea as M1,Xea as c6,Yea as g,Zea as wq,_ea as W1,cfa as $9,efa as T0,ffa as m6,hfa as g6,ifa as y9,jfa as d6,mfa as l6,qfa as t4,sfa as JQ,ufa as a6,wfa as T,xfa as QQ,zfa as p0}from"./cli-0.1.15-nk50qhet.mjs";import{Cfa as yq,Dfa as i,Ffa as x0,Gfa as bQ,Kfa as d5,Lfa as u6,Nfa as N9}from"./cli-0.1.15-9pe3dbgs.mjs";import{Qfa as jq,Sfa as p6,Tfa as o4}from"./cli-0.1.15-tj4kzvth.mjs";import{Bha as P6,Bja as A6,Cka as S6,Dha as N6,Gia as J6,Hia as qZ,Iia as B1,Jia as T6,Kia as D6,Lia as I6,Nka as b6,Pka as f6,Sia as dZ,Uia as lZ,Uja as x6,Wja as C6,Wka as h6,_ja as O6,cia as u5,fka as c5,hka as E6,ija as a0,kja as y6,mja as w6,mla as i0,oha as eq,sha as r4,uja as j6,vha as L6,wja as k6,yha as _6,yja as Iq}from"./cli-0.1.15-12azgmva.mjs";import{Lla as gZ,Mla as A7}from"./cli-0.1.15-p5ty029c.mjs";import{$la as f0,Zla as o9,_la as o0,ama as O4,bma as E4,cma as G}from"./cli-0.1.15-mhbfhhf6.mjs";var T9=f0((c7)=>{class d1 extends Error{constructor(q,Z,J){super(J);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=Z,this.exitCode=q,this.nestedError=void 0}}class LJ extends d1{constructor(q){super(1,"commander.invalidArgument",q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}c7.CommanderError=d1;c7.InvalidArgumentError=LJ});var t9=f0((p7)=>{var{InvalidArgumentError:d7}=T9();class _J{constructor(q,Z){switch(this.description=Z||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,q[0]){case"<":this.required=!0,this._name=q.slice(1,-1);break;case"[":this.required=!1,this._name=q.slice(1,-1);break;default:this.required=!0,this._name=q;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(q,Z){if(Z===this.defaultValue||!Array.isArray(Z))return[q];return Z.concat(q)}default(q,Z){return this.defaultValue=q,this.defaultValueDescription=Z,this}argParser(q){return this.parseArg=q,this}choices(q){return this.argChoices=q.slice(),this.parseArg=(Z,J)=>{if(!this.argChoices.includes(Z))throw new d7(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(Z,J);return Z},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function l7(q){let Z=q.name()+(q.variadic===!0?"...":"");return q.required?"<"+Z+">":"["+Z+"]"}p7.Argument=_J;p7.humanReadableArgName=l7});var l1=f0((r7)=>{var{humanReadableArgName:s7}=t9();class PJ{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(q){let Z=q.commands.filter((Q)=>!Q._hidden),J=q._getHelpCommand();if(J&&!J._hidden)Z.push(J);if(this.sortSubcommands)Z.sort((Q,Y)=>{return Q.name().localeCompare(Y.name())});return Z}compareOptions(q,Z){let J=(Q)=>{return Q.short?Q.short.replace(/^-/,""):Q.long.replace(/^--/,"")};return J(q).localeCompare(J(Z))}visibleOptions(q){let Z=q.options.filter((Q)=>!Q.hidden),J=q._getHelpOption();if(J&&!J.hidden){let Q=J.short&&q._findOption(J.short),Y=J.long&&q._findOption(J.long);if(!Q&&!Y)Z.push(J);else if(J.long&&!Y)Z.push(q.createOption(J.long,J.description));else if(J.short&&!Q)Z.push(q.createOption(J.short,J.description))}if(this.sortOptions)Z.sort(this.compareOptions);return Z}visibleGlobalOptions(q){if(!this.showGlobalOptions)return[];let Z=[];for(let J=q.parent;J;J=J.parent){let Q=J.options.filter((Y)=>!Y.hidden);Z.push(...Q)}if(this.sortOptions)Z.sort(this.compareOptions);return Z}visibleArguments(q){if(q._argsDescription)q.registeredArguments.forEach((Z)=>{Z.description=Z.description||q._argsDescription[Z.name()]||""});if(q.registeredArguments.find((Z)=>Z.description))return q.registeredArguments;return[]}subcommandTerm(q){let Z=q.registeredArguments.map((J)=>s7(J)).join(" ");return q._name+(q._aliases[0]?"|"+q._aliases[0]:"")+(q.options.length?" [options]":"")+(Z?" "+Z:"")}optionTerm(q){return q.flags}argumentTerm(q){return q.name()}longestSubcommandTermLength(q,Z){return Z.visibleCommands(q).reduce((J,Q)=>{return Math.max(J,Z.subcommandTerm(Q).length)},0)}longestOptionTermLength(q,Z){return Z.visibleOptions(q).reduce((J,Q)=>{return Math.max(J,Z.optionTerm(Q).length)},0)}longestGlobalOptionTermLength(q,Z){return Z.visibleGlobalOptions(q).reduce((J,Q)=>{return Math.max(J,Z.optionTerm(Q).length)},0)}longestArgumentTermLength(q,Z){return Z.visibleArguments(q).reduce((J,Q)=>{return Math.max(J,Z.argumentTerm(Q).length)},0)}commandUsage(q){let Z=q._name;if(q._aliases[0])Z=Z+"|"+q._aliases[0];let J="";for(let Q=q.parent;Q;Q=Q.parent)J=Q.name()+" "+J;return J+Z+" "+q.usage()}commandDescription(q){return q.description()}subcommandDescription(q){return q.summary()||q.description()}optionDescription(q){let Z=[];if(q.argChoices)Z.push(`choices: ${q.argChoices.map((J)=>JSON.stringify(J)).join(", ")}`);if(q.defaultValue!==void 0){if(q.required||q.optional||q.isBoolean()&&typeof q.defaultValue==="boolean")Z.push(`default: ${q.defaultValueDescription||JSON.stringify(q.defaultValue)}`)}if(q.presetArg!==void 0&&q.optional)Z.push(`preset: ${JSON.stringify(q.presetArg)}`);if(q.envVar!==void 0)Z.push(`env: ${q.envVar}`);if(Z.length>0)return`${q.description} (${Z.join(", ")})`;return q.description}argumentDescription(q){let Z=[];if(q.argChoices)Z.push(`choices: ${q.argChoices.map((J)=>JSON.stringify(J)).join(", ")}`);if(q.defaultValue!==void 0)Z.push(`default: ${q.defaultValueDescription||JSON.stringify(q.defaultValue)}`);if(Z.length>0){let J=`(${Z.join(", ")})`;if(q.description)return`${q.description} ${J}`;return J}return q.description}formatHelp(q,Z){let J=Z.padWidth(q,Z),Q=Z.helpWidth||80,Y=2,W=2;function $(U,j){if(j){let O=`${U.padEnd(J+2)}${j}`;return Z.wrap(O,Q-2,J+2)}return U}function z(U){return U.join(`
2
+ `).replace(/^/gm," ".repeat(2))}let V=[`Usage: ${Z.commandUsage(q)}`,""],H=Z.commandDescription(q);if(H.length>0)V=V.concat([Z.wrap(H,Q,0),""]);let X=Z.visibleArguments(q).map((U)=>{return $(Z.argumentTerm(U),Z.argumentDescription(U))});if(X.length>0)V=V.concat(["Arguments:",z(X),""]);let K=Z.visibleOptions(q).map((U)=>{return $(Z.optionTerm(U),Z.optionDescription(U))});if(K.length>0)V=V.concat(["Options:",z(K),""]);if(this.showGlobalOptions){let U=Z.visibleGlobalOptions(q).map((j)=>{return $(Z.optionTerm(j),Z.optionDescription(j))});if(U.length>0)V=V.concat(["Global Options:",z(U),""])}let M=Z.visibleCommands(q).map((U)=>{return $(Z.subcommandTerm(U),Z.subcommandDescription(U))});if(M.length>0)V=V.concat(["Commands:",z(M),""]);return V.join(`
3
+ `)}padWidth(q,Z){return Math.max(Z.longestOptionTermLength(q,Z),Z.longestGlobalOptionTermLength(q,Z),Z.longestSubcommandTermLength(q,Z),Z.longestArgumentTermLength(q,Z))}wrap(q,Z,J,Q=40){let W=new RegExp(`[\\n][${" \\f\\t\\v   -    \uFEFF"}]+`);if(q.match(W))return q;let $=Z-J;if($<Q)return q;let z=q.slice(0,J),V=q.slice(J).replace(`\r
4
+ `,`
5
+ `),H=" ".repeat(J),K=`\\s${"​"}`,M=new RegExp(`
6
+ |.{1,${$-1}}([${K}]|$)|[^${K}]+?([${K}]|$)`,"g"),U=V.match(M)||[];return z+U.map((j,O)=>{if(j===`
7
+ `)return"";return(O>0?H:"")+j.trimEnd()}).join(`
8
+ `)}}r7.Help=PJ});var p1=f0((q8)=>{var{InvalidArgumentError:t7}=T9();class NJ{constructor(q,Z){this.flags=q,this.description=Z||"",this.required=q.includes("<"),this.optional=q.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(q),this.mandatory=!1;let J=e7(q);if(this.short=J.shortFlag,this.long=J.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(q,Z){return this.defaultValue=q,this.defaultValueDescription=Z,this}preset(q){return this.presetArg=q,this}conflicts(q){return this.conflictsWith=this.conflictsWith.concat(q),this}implies(q){let Z=q;if(typeof q==="string")Z={[q]:!0};return this.implied=Object.assign(this.implied||{},Z),this}env(q){return this.envVar=q,this}argParser(q){return this.parseArg=q,this}makeOptionMandatory(q=!0){return this.mandatory=!!q,this}hideHelp(q=!0){return this.hidden=!!q,this}_concatValue(q,Z){if(Z===this.defaultValue||!Array.isArray(Z))return[q];return Z.concat(q)}choices(q){return this.argChoices=q.slice(),this.parseArg=(Z,J)=>{if(!this.argChoices.includes(Z))throw new t7(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(Z,J);return Z},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return o7(this.name().replace(/^no-/,""))}is(q){return this.short===q||this.long===q}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class TJ{constructor(q){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,q.forEach((Z)=>{if(Z.negate)this.negativeOptions.set(Z.attributeName(),Z);else this.positiveOptions.set(Z.attributeName(),Z)}),this.negativeOptions.forEach((Z,J)=>{if(this.positiveOptions.has(J))this.dualOptions.add(J)})}valueFromOption(q,Z){let J=Z.attributeName();if(!this.dualOptions.has(J))return!0;let Q=this.negativeOptions.get(J).presetArg,Y=Q!==void 0?Q:!1;return Z.negate===(Y===q)}}function o7(q){return q.split("-").reduce((Z,J)=>{return Z+J[0].toUpperCase()+J.slice(1)})}function e7(q){let Z,J,Q=q.split(/[ |,]+/);if(Q.length>1&&!/^[[<]/.test(Q[1]))Z=Q.shift();if(J=Q.shift(),!Z&&/^-[^-]$/.test(J))Z=J,J=void 0;return{shortFlag:Z,longFlag:J}}q8.Option=NJ;q8.DualOptions=TJ});var DJ=f0((X8)=>{function Q8(q,Z){if(Math.abs(q.length-Z.length)>3)return Math.max(q.length,Z.length);let J=[];for(let Q=0;Q<=q.length;Q++)J[Q]=[Q];for(let Q=0;Q<=Z.length;Q++)J[0][Q]=Q;for(let Q=1;Q<=Z.length;Q++)for(let Y=1;Y<=q.length;Y++){let W=1;if(q[Y-1]===Z[Q-1])W=0;else W=1;if(J[Y][Q]=Math.min(J[Y-1][Q]+1,J[Y][Q-1]+1,J[Y-1][Q-1]+W),Y>1&&Q>1&&q[Y-1]===Z[Q-2]&&q[Y-2]===Z[Q-1])J[Y][Q]=Math.min(J[Y][Q],J[Y-2][Q-2]+1)}return J[q.length][Z.length]}function Y8(q,Z){if(!Z||Z.length===0)return"";Z=Array.from(new Set(Z));let J=q.startsWith("--");if(J)q=q.slice(2),Z=Z.map(($)=>$.slice(2));let Q=[],Y=3,W=0.4;if(Z.forEach(($)=>{if($.length<=1)return;let z=Q8(q,$),V=Math.max(q.length,$.length);if((V-z)/V>W){if(z<Y)Y=z,Q=[$];else if(z===Y)Q.push($)}}),Q.sort(($,z)=>$.localeCompare(z)),J)Q=Q.map(($)=>`--${$}`);if(Q.length>1)return`
9
+ (Did you mean one of ${Q.join(", ")}?)`;if(Q.length===1)return`
10
+ (Did you mean ${Q[0]}?)`;return""}X8.suggestSimilar=Y8});var jJ=f0((K8)=>{var H8=G("node:events").EventEmitter,a1=G("node:child_process"),A0=G("node:path"),i1=G("node:fs"),c=G("node:process"),{Argument:z8,humanReadableArgName:$8}=t9(),{CommanderError:s1}=T9(),{Help:B8}=l1(),{Option:IJ,DualOptions:V8}=p1(),{suggestSimilar:yJ}=DJ();class r1 extends H8{constructor(q){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=q||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:(Z)=>c.stdout.write(Z),writeErr:(Z)=>c.stderr.write(Z),getOutHelpWidth:()=>c.stdout.isTTY?c.stdout.columns:void 0,getErrHelpWidth:()=>c.stderr.isTTY?c.stderr.columns:void 0,outputError:(Z,J)=>J(Z)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(q){return this._outputConfiguration=q._outputConfiguration,this._helpOption=q._helpOption,this._helpCommand=q._helpCommand,this._helpConfiguration=q._helpConfiguration,this._exitCallback=q._exitCallback,this._storeOptionsAsProperties=q._storeOptionsAsProperties,this._combineFlagAndOptionalValue=q._combineFlagAndOptionalValue,this._allowExcessArguments=q._allowExcessArguments,this._enablePositionalOptions=q._enablePositionalOptions,this._showHelpAfterError=q._showHelpAfterError,this._showSuggestionAfterError=q._showSuggestionAfterError,this}_getCommandAndAncestors(){let q=[];for(let Z=this;Z;Z=Z.parent)q.push(Z);return q}command(q,Z,J){let Q=Z,Y=J;if(typeof Q==="object"&&Q!==null)Y=Q,Q=null;Y=Y||{};let[,W,$]=q.match(/([^ ]+) *(.*)/),z=this.createCommand(W);if(Q)z.description(Q),z._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=z._name;if(z._hidden=!!(Y.noHelp||Y.hidden),z._executableFile=Y.executableFile||null,$)z.arguments($);if(this._registerCommand(z),z.parent=this,z.copyInheritedSettings(this),Q)return this;return z}createCommand(q){return new r1(q)}createHelp(){return Object.assign(new B8,this.configureHelp())}configureHelp(q){if(q===void 0)return this._helpConfiguration;return this._helpConfiguration=q,this}configureOutput(q){if(q===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,q),this}showHelpAfterError(q=!0){if(typeof q!=="string")q=!!q;return this._showHelpAfterError=q,this}showSuggestionAfterError(q=!0){return this._showSuggestionAfterError=!!q,this}addCommand(q,Z){if(!q._name)throw Error(`Command passed to .addCommand() must have a name
11
+ - specify the name in Command constructor or using .name()`);if(Z=Z||{},Z.isDefault)this._defaultCommandName=q._name;if(Z.noHelp||Z.hidden)q._hidden=!0;return this._registerCommand(q),q.parent=this,q._checkForBrokenPassThrough(),this}createArgument(q,Z){return new z8(q,Z)}argument(q,Z,J,Q){let Y=this.createArgument(q,Z);if(typeof J==="function")Y.default(Q).argParser(J);else Y.default(J);return this.addArgument(Y),this}arguments(q){return q.trim().split(/ +/).forEach((Z)=>{this.argument(Z)}),this}addArgument(q){let Z=this.registeredArguments.slice(-1)[0];if(Z&&Z.variadic)throw Error(`only the last argument can be variadic '${Z.name()}'`);if(q.required&&q.defaultValue!==void 0&&q.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${q.name()}'`);return this.registeredArguments.push(q),this}helpCommand(q,Z){if(typeof q==="boolean")return this._addImplicitHelpCommand=q,this;q=q??"help [command]";let[,J,Q]=q.match(/([^ ]+) *(.*)/),Y=Z??"display help for command",W=this.createCommand(J);if(W.helpOption(!1),Q)W.arguments(Q);if(Y)W.description(Y);return this._addImplicitHelpCommand=!0,this._helpCommand=W,this}addHelpCommand(q,Z){if(typeof q!=="object")return this.helpCommand(q,Z),this;return this._addImplicitHelpCommand=!0,this._helpCommand=q,this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(q,Z){let J=["preSubcommand","preAction","postAction"];if(!J.includes(q))throw Error(`Unexpected value for event passed to hook : '${q}'.
12
+ Expecting one of '${J.join("', '")}'`);if(this._lifeCycleHooks[q])this._lifeCycleHooks[q].push(Z);else this._lifeCycleHooks[q]=[Z];return this}exitOverride(q){if(q)this._exitCallback=q;else this._exitCallback=(Z)=>{if(Z.code!=="commander.executeSubCommandAsync")throw Z};return this}_exit(q,Z,J){if(this._exitCallback)this._exitCallback(new s1(q,Z,J));c.exit(q)}action(q){let Z=(J)=>{let Q=this.registeredArguments.length,Y=J.slice(0,Q);if(this._storeOptionsAsProperties)Y[Q]=this;else Y[Q]=this.opts();return Y.push(this),q.apply(this,Y)};return this._actionHandler=Z,this}createOption(q,Z){return new IJ(q,Z)}_callParseArg(q,Z,J,Q){try{return q.parseArg(Z,J)}catch(Y){if(Y.code==="commander.invalidArgument"){let W=`${Q} ${Y.message}`;this.error(W,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(q){let Z=q.short&&this._findOption(q.short)||q.long&&this._findOption(q.long);if(Z){let J=q.long&&this._findOption(q.long)?q.long:q.short;throw Error(`Cannot add option '${q.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${J}'
13
+ - already used by option '${Z.flags}'`)}this.options.push(q)}_registerCommand(q){let Z=(Q)=>{return[Q.name()].concat(Q.aliases())},J=Z(q).find((Q)=>this._findCommand(Q));if(J){let Q=Z(this._findCommand(J)).join("|"),Y=Z(q).join("|");throw Error(`cannot add command '${Y}' as already have command '${Q}'`)}this.commands.push(q)}addOption(q){this._registerOption(q);let Z=q.name(),J=q.attributeName();if(q.negate){let Y=q.long.replace(/^--no-/,"--");if(!this._findOption(Y))this.setOptionValueWithSource(J,q.defaultValue===void 0?!0:q.defaultValue,"default")}else if(q.defaultValue!==void 0)this.setOptionValueWithSource(J,q.defaultValue,"default");let Q=(Y,W,$)=>{if(Y==null&&q.presetArg!==void 0)Y=q.presetArg;let z=this.getOptionValue(J);if(Y!==null&&q.parseArg)Y=this._callParseArg(q,Y,z,W);else if(Y!==null&&q.variadic)Y=q._concatValue(Y,z);if(Y==null)if(q.negate)Y=!1;else if(q.isBoolean()||q.optional)Y=!0;else Y="";this.setOptionValueWithSource(J,Y,$)};if(this.on("option:"+Z,(Y)=>{let W=`error: option '${q.flags}' argument '${Y}' is invalid.`;Q(Y,W,"cli")}),q.envVar)this.on("optionEnv:"+Z,(Y)=>{let W=`error: option '${q.flags}' value '${Y}' from env '${q.envVar}' is invalid.`;Q(Y,W,"env")});return this}_optionEx(q,Z,J,Q,Y){if(typeof Z==="object"&&Z instanceof IJ)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let W=this.createOption(Z,J);if(W.makeOptionMandatory(!!q.mandatory),typeof Q==="function")W.default(Y).argParser(Q);else if(Q instanceof RegExp){let $=Q;Q=(z,V)=>{let H=$.exec(z);return H?H[0]:V},W.default(Y).argParser(Q)}else W.default(Q);return this.addOption(W)}option(q,Z,J,Q){return this._optionEx({},q,Z,J,Q)}requiredOption(q,Z,J,Q){return this._optionEx({mandatory:!0},q,Z,J,Q)}combineFlagAndOptionalValue(q=!0){return this._combineFlagAndOptionalValue=!!q,this}allowUnknownOption(q=!0){return this._allowUnknownOption=!!q,this}allowExcessArguments(q=!0){return this._allowExcessArguments=!!q,this}enablePositionalOptions(q=!0){return this._enablePositionalOptions=!!q,this}passThroughOptions(q=!0){return this._passThroughOptions=!!q,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(q=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!q,this}getOptionValue(q){if(this._storeOptionsAsProperties)return this[q];return this._optionValues[q]}setOptionValue(q,Z){return this.setOptionValueWithSource(q,Z,void 0)}setOptionValueWithSource(q,Z,J){if(this._storeOptionsAsProperties)this[q]=Z;else this._optionValues[q]=Z;return this._optionValueSources[q]=J,this}getOptionValueSource(q){return this._optionValueSources[q]}getOptionValueSourceWithGlobals(q){let Z;return this._getCommandAndAncestors().forEach((J)=>{if(J.getOptionValueSource(q)!==void 0)Z=J.getOptionValueSource(q)}),Z}_prepareUserArgs(q,Z){if(q!==void 0&&!Array.isArray(q))throw Error("first parameter to parse must be array or undefined");if(Z=Z||{},q===void 0&&Z.from===void 0){if(c.versions?.electron)Z.from="electron";let Q=c.execArgv??[];if(Q.includes("-e")||Q.includes("--eval")||Q.includes("-p")||Q.includes("--print"))Z.from="eval"}if(q===void 0)q=c.argv;this.rawArgs=q.slice();let J;switch(Z.from){case void 0:case"node":this._scriptPath=q[1],J=q.slice(2);break;case"electron":if(c.defaultApp)this._scriptPath=q[1],J=q.slice(2);else J=q.slice(1);break;case"user":J=q.slice(0);break;case"eval":J=q.slice(1);break;default:throw Error(`unexpected parse option { from: '${Z.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",J}parse(q,Z){let J=this._prepareUserArgs(q,Z);return this._parseCommand([],J),this}async parseAsync(q,Z){let J=this._prepareUserArgs(q,Z);return await this._parseCommand([],J),this}_executeSubCommand(q,Z){Z=Z.slice();let J=!1,Q=[".js",".ts",".tsx",".mjs",".cjs"];function Y(H,X){let K=A0.resolve(H,X);if(i1.existsSync(K))return K;if(Q.includes(A0.extname(X)))return;let M=Q.find((U)=>i1.existsSync(`${K}${U}`));if(M)return`${K}${M}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let W=q._executableFile||`${this._name}-${q._name}`,$=this._executableDir||"";if(this._scriptPath){let H;try{H=i1.realpathSync(this._scriptPath)}catch(X){H=this._scriptPath}$=A0.resolve(A0.dirname(H),$)}if($){let H=Y($,W);if(!H&&!q._executableFile&&this._scriptPath){let X=A0.basename(this._scriptPath,A0.extname(this._scriptPath));if(X!==this._name)H=Y($,`${X}-${q._name}`)}W=H||W}J=Q.includes(A0.extname(W));let z;if(c.platform!=="win32")if(J)Z.unshift(W),Z=wJ(c.execArgv).concat(Z),z=a1.spawn(c.argv[0],Z,{stdio:"inherit"});else z=a1.spawn(W,Z,{stdio:"inherit"});else Z.unshift(W),Z=wJ(c.execArgv).concat(Z),z=a1.spawn(c.execPath,Z,{stdio:"inherit"});if(!z.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((X)=>{c.on(X,()=>{if(z.killed===!1&&z.exitCode===null)z.kill(X)})});let V=this._exitCallback;z.on("close",(H)=>{if(H=H??1,!V)c.exit(H);else V(new s1(H,"commander.executeSubCommandAsync","(close)"))}),z.on("error",(H)=>{if(H.code==="ENOENT"){let X=$?`searched for local subcommand relative to directory '${$}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",K=`'${W}' does not exist
14
+ - if '${q._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
+ - ${X}`;throw Error(K)}else if(H.code==="EACCES")throw Error(`'${W}' not executable`);if(!V)c.exit(1);else{let X=new s1(1,"commander.executeSubCommandAsync","(error)");X.nestedError=H,V(X)}}),this.runningCommand=z}_dispatchSubcommand(q,Z,J){let Q=this._findCommand(q);if(!Q)this.help({error:!0});let Y;return Y=this._chainOrCallSubCommandHook(Y,Q,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(Q._executableHandler)this._executeSubCommand(Q,Z.concat(J));else return Q._parseCommand(Z,J)}),Y}_dispatchHelpCommand(q){if(!q)this.help();let Z=this._findCommand(q);if(Z&&!Z._executableHandler)Z.help();return this._dispatchSubcommand(q,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((q,Z)=>{if(q.required&&this.args[Z]==null)this.missingArgument(q.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let q=(J,Q,Y)=>{let W=Q;if(Q!==null&&J.parseArg){let $=`error: command-argument value '${Q}' is invalid for argument '${J.name()}'.`;W=this._callParseArg(J,Q,Y,$)}return W};this._checkNumberOfArguments();let Z=[];this.registeredArguments.forEach((J,Q)=>{let Y=J.defaultValue;if(J.variadic){if(Q<this.args.length){if(Y=this.args.slice(Q),J.parseArg)Y=Y.reduce((W,$)=>{return q(J,$,W)},J.defaultValue)}else if(Y===void 0)Y=[]}else if(Q<this.args.length){if(Y=this.args[Q],J.parseArg)Y=q(J,Y,J.defaultValue)}Z[Q]=Y}),this.processedArgs=Z}_chainOrCall(q,Z){if(q&&q.then&&typeof q.then==="function")return q.then(()=>Z());return Z()}_chainOrCallHooks(q,Z){let J=q,Q=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[Z]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[Z].forEach((W)=>{Q.push({hookedCommand:Y,callback:W})})}),Z==="postAction")Q.reverse();return Q.forEach((Y)=>{J=this._chainOrCall(J,()=>{return Y.callback(Y.hookedCommand,this)})}),J}_chainOrCallSubCommandHook(q,Z,J){let Q=q;if(this._lifeCycleHooks[J]!==void 0)this._lifeCycleHooks[J].forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y(this,Z)})});return Q}_parseCommand(q,Z){let J=this.parseOptions(Z);if(this._parseOptionsEnv(),this._parseOptionsImplied(),q=q.concat(J.operands),Z=J.unknown,this.args=q.concat(Z),q&&this._findCommand(q[0]))return this._dispatchSubcommand(q[0],q.slice(1),Z);if(this._getHelpCommand()&&q[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(q[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(Z),this._dispatchSubcommand(this._defaultCommandName,q,Z);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(J.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Q=()=>{if(J.unknown.length>0)this.unknownOption(J.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){Q(),this._processArguments();let W;if(W=this._chainOrCallHooks(W,"preAction"),W=this._chainOrCall(W,()=>this._actionHandler(this.processedArgs)),this.parent)W=this._chainOrCall(W,()=>{this.parent.emit(Y,q,Z)});return W=this._chainOrCallHooks(W,"postAction"),W}if(this.parent&&this.parent.listenerCount(Y))Q(),this._processArguments(),this.parent.emit(Y,q,Z);else if(q.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",q,Z);if(this.listenerCount("command:*"))this.emit("command:*",q,Z);else if(this.commands.length)this.unknownCommand();else Q(),this._processArguments()}else if(this.commands.length)Q(),this.help({error:!0});else Q(),this._processArguments()}_findCommand(q){if(!q)return;return this.commands.find((Z)=>Z._name===q||Z._aliases.includes(q))}_findOption(q){return this.options.find((Z)=>Z.is(q))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((q)=>{q.options.forEach((Z)=>{if(Z.mandatory&&q.getOptionValue(Z.attributeName())===void 0)q.missingMandatoryOptionValue(Z)})})}_checkForConflictingLocalOptions(){let q=this.options.filter((J)=>{let Q=J.attributeName();if(this.getOptionValue(Q)===void 0)return!1;return this.getOptionValueSource(Q)!=="default"});q.filter((J)=>J.conflictsWith.length>0).forEach((J)=>{let Q=q.find((Y)=>J.conflictsWith.includes(Y.attributeName()));if(Q)this._conflictingOption(J,Q)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((q)=>{q._checkForConflictingLocalOptions()})}parseOptions(q){let Z=[],J=[],Q=Z,Y=q.slice();function W(z){return z.length>1&&z[0]==="-"}let $=null;while(Y.length){let z=Y.shift();if(z==="--"){if(Q===J)Q.push(z);Q.push(...Y);break}if($&&!W(z)){this.emit(`option:${$.name()}`,z);continue}if($=null,W(z)){let V=this._findOption(z);if(V){if(V.required){let H=Y.shift();if(H===void 0)this.optionMissingArgument(V);this.emit(`option:${V.name()}`,H)}else if(V.optional){let H=null;if(Y.length>0&&!W(Y[0]))H=Y.shift();this.emit(`option:${V.name()}`,H)}else this.emit(`option:${V.name()}`);$=V.variadic?V:null;continue}}if(z.length>2&&z[0]==="-"&&z[1]!=="-"){let V=this._findOption(`-${z[1]}`);if(V){if(V.required||V.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${V.name()}`,z.slice(2));else this.emit(`option:${V.name()}`),Y.unshift(`-${z.slice(2)}`);continue}}if(/^--[^=]+=/.test(z)){let V=z.indexOf("="),H=this._findOption(z.slice(0,V));if(H&&(H.required||H.optional)){this.emit(`option:${H.name()}`,z.slice(V+1));continue}}if(W(z))Q=J;if((this._enablePositionalOptions||this._passThroughOptions)&&Z.length===0&&J.length===0){if(this._findCommand(z)){if(Z.push(z),Y.length>0)J.push(...Y);break}else if(this._getHelpCommand()&&z===this._getHelpCommand().name()){if(Z.push(z),Y.length>0)Z.push(...Y);break}else if(this._defaultCommandName){if(J.push(z),Y.length>0)J.push(...Y);break}}if(this._passThroughOptions){if(Q.push(z),Y.length>0)Q.push(...Y);break}Q.push(z)}return{operands:Z,unknown:J}}opts(){if(this._storeOptionsAsProperties){let q={},Z=this.options.length;for(let J=0;J<Z;J++){let Q=this.options[J].attributeName();q[Q]=Q===this._versionOptionName?this._version:this[Q]}return q}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((q,Z)=>Object.assign(q,Z.opts()),{})}error(q,Z){if(this._outputConfiguration.outputError(`${q}
17
+ `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
+ `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
19
+ `),this.outputHelp({error:!0});let J=Z||{},Q=J.exitCode||1,Y=J.code||"commander.error";this._exit(Q,Y,q)}_parseOptionsEnv(){this.options.forEach((q)=>{if(q.envVar&&q.envVar in c.env){let Z=q.attributeName();if(this.getOptionValue(Z)===void 0||["default","config","env"].includes(this.getOptionValueSource(Z)))if(q.required||q.optional)this.emit(`optionEnv:${q.name()}`,c.env[q.envVar]);else this.emit(`optionEnv:${q.name()}`)}})}_parseOptionsImplied(){let q=new V8(this.options),Z=(J)=>{return this.getOptionValue(J)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(J))};this.options.filter((J)=>J.implied!==void 0&&Z(J.attributeName())&&q.valueFromOption(this.getOptionValue(J.attributeName()),J)).forEach((J)=>{Object.keys(J.implied).filter((Q)=>!Z(Q)).forEach((Q)=>{this.setOptionValueWithSource(Q,J.implied[Q],"implied")})})}missingArgument(q){let Z=`error: missing required argument '${q}'`;this.error(Z,{code:"commander.missingArgument"})}optionMissingArgument(q){let Z=`error: option '${q.flags}' argument missing`;this.error(Z,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(q){let Z=`error: required option '${q.flags}' not specified`;this.error(Z,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(q,Z){let J=(W)=>{let $=W.attributeName(),z=this.getOptionValue($),V=this.options.find((X)=>X.negate&&$===X.attributeName()),H=this.options.find((X)=>!X.negate&&$===X.attributeName());if(V&&(V.presetArg===void 0&&z===!1||V.presetArg!==void 0&&z===V.presetArg))return V;return H||W},Q=(W)=>{let $=J(W),z=$.attributeName();if(this.getOptionValueSource(z)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${Q(q)} cannot be used with ${Q(Z)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(q){if(this._allowUnknownOption)return;let Z="";if(q.startsWith("--")&&this._showSuggestionAfterError){let Q=[],Y=this;do{let W=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);Q=Q.concat(W),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);Z=yJ(q,Q)}let J=`error: unknown option '${q}'${Z}`;this.error(J,{code:"commander.unknownOption"})}_excessArguments(q){if(this._allowExcessArguments)return;let Z=this.registeredArguments.length,J=Z===1?"":"s",Y=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${Z} argument${J} but got ${q.length}.`;this.error(Y,{code:"commander.excessArguments"})}unknownCommand(){let q=this.args[0],Z="";if(this._showSuggestionAfterError){let Q=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(Q.push(Y.name()),Y.alias())Q.push(Y.alias())}),Z=yJ(q,Q)}let J=`error: unknown command '${q}'${Z}`;this.error(J,{code:"commander.unknownCommand"})}version(q,Z,J){if(q===void 0)return this._version;this._version=q,Z=Z||"-V, --version",J=J||"output the version number";let Q=this.createOption(Z,J);return this._versionOptionName=Q.attributeName(),this._registerOption(Q),this.on("option:"+Q.name(),()=>{this._outputConfiguration.writeOut(`${q}
20
+ `),this._exit(0,"commander.version",q)}),this}description(q,Z){if(q===void 0&&Z===void 0)return this._description;if(this._description=q,Z)this._argsDescription=Z;return this}summary(q){if(q===void 0)return this._summary;return this._summary=q,this}alias(q){if(q===void 0)return this._aliases[0];let Z=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)Z=this.commands[this.commands.length-1];if(q===Z._name)throw Error("Command alias can't be the same as its name");let J=this.parent?._findCommand(q);if(J){let Q=[J.name()].concat(J.aliases()).join("|");throw Error(`cannot add alias '${q}' to command '${this.name()}' as already have command '${Q}'`)}return Z._aliases.push(q),this}aliases(q){if(q===void 0)return this._aliases;return q.forEach((Z)=>this.alias(Z)),this}usage(q){if(q===void 0){if(this._usage)return this._usage;let Z=this.registeredArguments.map((J)=>{return $8(J)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?Z:[]).join(" ")}return this._usage=q,this}name(q){if(q===void 0)return this._name;return this._name=q,this}nameFromFilename(q){return this._name=A0.basename(q,A0.extname(q)),this}executableDir(q){if(q===void 0)return this._executableDir;return this._executableDir=q,this}helpInformation(q){let Z=this.createHelp();if(Z.helpWidth===void 0)Z.helpWidth=q&&q.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return Z.formatHelp(this,Z)}_getHelpContext(q){q=q||{};let Z={error:!!q.error},J;if(Z.error)J=(Q)=>this._outputConfiguration.writeErr(Q);else J=(Q)=>this._outputConfiguration.writeOut(Q);return Z.write=q.write||J,Z.command=this,Z}outputHelp(q){let Z;if(typeof q==="function")Z=q,q=void 0;let J=this._getHelpContext(q);this._getCommandAndAncestors().reverse().forEach((Y)=>Y.emit("beforeAllHelp",J)),this.emit("beforeHelp",J);let Q=this.helpInformation(J);if(Z){if(Q=Z(Q),typeof Q!=="string"&&!Buffer.isBuffer(Q))throw Error("outputHelp callback must return a string or a Buffer")}if(J.write(Q),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",J),this._getCommandAndAncestors().forEach((Y)=>Y.emit("afterAllHelp",J))}helpOption(q,Z){if(typeof q==="boolean"){if(q)this._helpOption=this._helpOption??void 0;else this._helpOption=null;return this}return q=q??"-h, --help",Z=Z??"display help for command",this._helpOption=this.createOption(q,Z),this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(q){return this._helpOption=q,this}help(q){this.outputHelp(q);let Z=c.exitCode||0;if(Z===0&&q&&typeof q!=="function"&&q.error)Z=1;this._exit(Z,"commander.help","(outputHelp)")}addHelpText(q,Z){let J=["beforeAll","before","after","afterAll"];if(!J.includes(q))throw Error(`Unexpected value for position to addHelpText.
21
+ Expecting one of '${J.join("', '")}'`);let Q=`${q}Help`;return this.on(Q,(Y)=>{let W;if(typeof Z==="function")W=Z({error:Y.error,command:Y.command});else W=Z;if(W)Y.write(`${W}
22
+ `)}),this}_outputHelpIfRequested(q){let Z=this._getHelpOption();if(Z&&q.find((Q)=>Z.is(Q)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function wJ(q){return q.map((Z)=>{if(!Z.startsWith("--inspect"))return Z;let J,Q="127.0.0.1",Y="9229",W;if((W=Z.match(/^(--inspect(-brk)?)$/))!==null)J=W[1];else if((W=Z.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(J=W[1],/^\d+$/.test(W[3]))Y=W[3];else Q=W[3];else if((W=Z.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)J=W[1],Q=W[3],Y=W[4];if(J&&Y!=="0")return`${J}=${Q}:${parseInt(Y)+1}`;return Z})}K8.Command=r1});var CJ=f0((F8)=>{var{Argument:kJ}=t9(),{Command:n1}=jJ(),{CommanderError:R8,InvalidArgumentError:AJ}=T9(),{Help:M8}=l1(),{Option:xJ}=p1();F8.program=new n1;F8.createCommand=(q)=>new n1(q);F8.createOption=(q,Z)=>new xJ(q,Z);F8.createArgument=(q,Z)=>new kJ(q,Z);F8.Command=n1;F8.Option=xJ;F8.Argument=kJ;F8.Help=M8;F8.CommanderError=R8;F8.InvalidArgumentError=AJ;F8.InvalidOptionArgumentError=AJ});var EJ=f0(($0,OJ)=>{var N0=CJ();$0=OJ.exports={};$0.program=new N0.Command;$0.Argument=N0.Argument;$0.Command=N0.Command;$0.CommanderError=N0.CommanderError;$0.Help=N0.Help;$0.InvalidArgumentError=N0.InvalidArgumentError;$0.InvalidOptionArgumentError=N0.InvalidArgumentError;$0.Option=N0.Option;$0.createCommand=(q)=>new N0.Command(q);$0.createOption=(q,Z)=>new N0.Option(q,Z);$0.createArgument=(q,Z)=>new N0.Argument(q,Z)});var G6={};O4(G6,{runClaudioStartupMigrations:()=>a4});function g4(q){return m4.filter((Z)=>q[Z])}function d4(q){let Z=q.profile;switch(Z){case"gemini":{let J=q.env.GEMINI_BASE_URL??_q,Q=q.env.GEMINI_MODEL??Pq;return{provider:"gemini",name:"Google Gemini (legacy)",baseUrl:J,model:Q,apiKey:q.env.GEMINI_API_KEY??q.env.GOOGLE_API_KEY??""}}case"mistral":return{provider:"mistral",name:"Mistral (legacy)",baseUrl:q.env.MISTRAL_BASE_URL??Nq,model:q.env.MISTRAL_MODEL??Tq,apiKey:q.env.MISTRAL_API_KEY??""};case"codex":case"openai":case"ollama":case"atomic-chat":case"nvidia-nim":case"minimax":{let J=q.env.OPENAI_BASE_URL?.trim(),Q=q.env.OPENAI_MODEL?.trim();if(!J||!Q)return null;return{provider:"openai",name:l4(Z),baseUrl:J,model:Q,apiKey:q.env.OPENAI_API_KEY??""}}default:return null}}function l4(q){switch(q){case"codex":return"Codex (legacy)";case"openai":return"OpenAI (legacy)";case"ollama":return"Ollama (legacy)";case"atomic-chat":return"Atomic Chat (legacy)";case"nvidia-nim":return"NVIDIA NIM (legacy)";case"minimax":return"MiniMax (legacy)";case"gemini":return"Google Gemini (legacy)";case"mistral":return"Mistral (legacy)"}}function p4(q){if(q.CLAUDE_CODE_USE_OPENAI){let Z=q.OPENAI_BASE_URL?.trim()??q.OPENAI_API_BASE?.trim(),J=q.OPENAI_MODEL?.trim();if(!Z||!J)return null;return{input:{provider:"openai",name:"OpenAI (env)",baseUrl:Z,model:J,apiKey:q.OPENAI_API_KEY??""}}}if(q.CLAUDE_CODE_USE_GEMINI)return{input:{provider:"gemini",name:"Google Gemini (env)",baseUrl:q.GEMINI_BASE_URL?.trim()??_q,model:q.GEMINI_MODEL?.trim()??Pq,apiKey:q.GEMINI_API_KEY??q.GOOGLE_API_KEY??""}};if(q.CLAUDE_CODE_USE_MISTRAL)return{input:{provider:"mistral",name:"Mistral (env)",baseUrl:q.MISTRAL_BASE_URL?.trim()??Nq,model:q.MISTRAL_MODEL?.trim()??Tq,apiKey:q.MISTRAL_API_KEY??""}};if(q.CLAUDE_CODE_USE_GITHUB){let Z=q.GITHUB_TOKEN?.trim()??q.GH_TOKEN?.trim()??"";return{input:{provider:"openai",name:"GitHub Copilot (legacy env)",baseUrl:f4,model:h4,apiKey:"",extras:Z?{githubToken:Z}:void 0}}}if(q.CLAUDE_CODE_USE_BEDROCK){let Z=q.AWS_REGION?.trim()??q.AWS_DEFAULT_REGION?.trim()??v4;return{input:{provider:"bedrock",name:"AWS Bedrock (legacy env)",baseUrl:`https://bedrock-runtime.${Z}.amazonaws.com`,model:Fq,extras:{awsRegion:Z}}}}if(q.CLAUDE_CODE_USE_VERTEX){let Z=q.GCLOUD_PROJECT?.trim()??q.GOOGLE_CLOUD_PROJECT?.trim()??q.ANTHROPIC_VERTEX_PROJECT_ID?.trim(),J=q.CLOUD_ML_REGION?.trim()??u4,Q={gcpRegion:J};if(Z)Q.gcpProject=Z;return{input:{provider:"vertex",name:"Google Vertex AI (legacy env)",baseUrl:`https://${J}-aiplatform.googleapis.com`,model:Fq,extras:Q}}}if(q.CLAUDE_CODE_USE_FOUNDRY)return{input:{provider:"foundry",name:"Azure AI Foundry (legacy env)",baseUrl:c4,model:Fq},warning:"Profile created from CLAUDE_CODE_USE_FOUNDRY but azureResource missing — open /provider to complete"};return null}function a4(q){let Z=q?.processEnv??process.env,J=q?.log??i4,Q={legacyProfileMigrated:!1,envsIgnored:[],notices:[]},Y=V6();if(Y){let $=d4(Y);if($&&!Uq()){if(Lq($,{makeActive:!0})){Q.legacyProfileMigrated=!0;let V="migrated legacy .claudio-profile.json to providerProfiles[]";Q.notices.push(V),J(V)}}K6()}let W=g4(Z);if(W.length>0)if(!Uq()){let z=p4(Z);if(z){let V=Lq(z.input,{makeActive:!0});if(V){Q.rescueEnvAdoptedAs=V.name;let H=`migrated env-based config to /provider as "${V.name}"`;if(Q.notices.push(H),J(H),z.warning)Q.notices.push(z.warning),J(z.warning)}}}else{Q.envsIgnored=W;let z=`ignoring ${W.join(", ")} — managed by /provider`;Q.notices.push(z),J(z)}return Q}function i4(q){process.stderr.write(`\x1B[33m${q}\x1B[0m
23
+ `)}var f4="https://models.github.ai/inference",h4="github:copilot",v4="us-east-1",u4="us-east5",Fq="claude-sonnet-4-6",c4="https://YOUR-RESOURCE-NAME.services.ai.azure.com",m4;var R6=E4(()=>{b4();S4();m4=["CLAUDE_CODE_USE_OPENAI","CLAUDE_CODE_USE_GEMINI","CLAUDE_CODE_USE_MISTRAL","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY"]});J0();m1();i0();import{appendFileSync as XW}from"fs";j2();nZ();i0();Z0();A7();i0();i0();RJ();S7();HJ();VJ();uZ();v1();l0();var vZ=!1;function cZ(){if(vZ)return;if(vZ=!0,V0()!=="firstParty")return;let q=P0()?.transport;if(q==="bedrock"||q==="vertex"||q==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDE_CODE_CLIENT_CERT||process.env.CLAUDE_CODE_CLIENT_KEY)return;let Z=P0(),J=(Z?.transport==="anthropic"?Z.baseUrl:void 0)||r9().BASE_API_URL;fetch(J,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}Z0();p0();e();function mZ(){if(process.env.NODE_EXTRA_CA_CERTS)return;let q=k7();if(q)process.env.NODE_EXTRA_CA_CERTS=q,T(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${q}`)}function k7(){try{let Z=h()?.env,Q=a("userSettings")?.env;T(`CA certs: Config fallback - globalEnv keys: ${Z?Object.keys(Z).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let Y=Q?.NODE_EXTRA_CA_CERTS||Z?.NODE_EXTRA_CA_CERTS;if(Y)T(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${Y}`);return Y}catch(q){T(`CA certs: Config fallback failed: ${q}`,{level:"error"});return}}pZ();Z0();p0();x7();iZ();b7();N9();$9();m1();O7();v7();E7();h7();f7();C7();var u1=!1,UJ=gZ(async()=>{let q=Date.now();X0("info","init_started"),L("init_function_start");try{let Z=Date.now();tZ(),X0("info","init_configs_enabled",{duration_ms:Date.now()-Z}),L("init_configs_enabled");let J=Date.now();if(JJ(),mZ(),X0("info","init_safe_env_vars_applied",{duration_ms:Date.now()-J}),L("init_safe_env_vars_applied"),zJ(),L("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-0.1.15-pss0293k.mjs"),import("./growthbook-0.1.15-m7gdvgqa.mjs")]).then(([W,$])=>{W.initialize1PEventLogging(),$.onGrowthBookRefresh(()=>{W.reinitialize1PEventLoggingIfConfigChanged()})}),L("init_after_1p_event_logging"),ZJ(),L("init_after_oauth_populate"),QJ(),L("init_after_jetbrains_detection"),sZ(),g1())$J();if(WJ())XJ();L("init_after_remote_settings_check"),oZ();let Q=Date.now();T("[init] configureGlobalMTLS starting"),eZ(),X0("info","init_mtls_configured",{duration_ms:Date.now()-Q}),T("[init] configureGlobalMTLS complete");let Y=Date.now();if(T("[init] configureGlobalAgents starting"),qJ(),X0("info","init_proxy_configured",{duration_ms:Date.now()-Y}),T("[init] configureGlobalAgents complete"),L("init_network_configured"),cZ(),i(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:W,getUpstreamProxyEnv:$}=await import("./upstreamproxy-0.1.15-wtbs40ct.mjs"),{registerUpstreamProxyEnvFn:z}=await import("./subprocessEnv-0.1.15-330g0p7g.mjs");z($),await W()}catch(W){T(`[init] upstreamproxy init failed: ${W instanceof Error?W.message:String(W)}; continuing without proxy`,{level:"warn"})}if(rZ(),P9(GJ),P9(async()=>{let{cleanupSessionTeams:W}=await import("./teamHelpers-0.1.15-gw6hwmyj.mjs");await W()}),MJ()){let W=Date.now();await FJ(),X0("info","init_scratchpad_created",{duration_ms:Date.now()-W})}X0("info","init_completed",{duration_ms:Date.now()-q}),L("init_function_end")}catch(Z){if(Z instanceof aZ){if(a0()){process.stderr.write(`Configuration error in ${Z.filePath}: ${Z.message}
24
+ `),b0(1);return}return import("./InvalidConfigDialog-0.1.15-rctrbcsm.mjs").then((J)=>J.showInvalidConfigDialog({error:Z}))}else throw Z}});function n9(){if(g1()){if(a0()&&KJ())c1().catch((q)=>{T(`[3P telemetry] Eager telemetry init failed (beta tracing): ${g(q)}`,{level:"error"})});T("[3P telemetry] Waiting for remote managed settings before telemetry init"),BJ().then(async()=>{T("[3P telemetry] Remote managed settings loaded, initializing telemetry"),S0(),await c1()}).catch((q)=>{T(`[3P telemetry] Telemetry init failed (remote settings path): ${g(q)}`,{level:"error"})})}else c1().catch((q)=>{T(`[3P telemetry] Telemetry init failed: ${g(q)}`,{level:"error"})})}async function c1(){if(u1)return;u1=!0;try{await u7()}catch(q){throw u1=!1,q}}async function u7(){let{initializeTelemetry:q}=await import("./instrumentation-0.1.15-bwm4tb1y.mjs"),Z=await q();if(Z)dZ(Z,(Q,Y)=>{let W=Z?.createCounter(Q,Y);return{add($,z={}){let H={...YJ(),...z};W?.add($,H)}}}),lZ()?.add(1)}qW();t1();nZ();XY();RY();var SJ=o9(EJ(),1),{program:qH,createCommand:ZH,createArgument:JH,createOption:QH,CommanderError:YH,InvalidArgumentError:bJ,InvalidOptionArgumentError:XH,Command:fJ,Argument:WH,Option:D,Help:HH}=SJ.default;HY();NY();s4();AY();uZ();TY();j2();import{readFileSync as tq}from"fs";GX();q0();async function D9(q,Z,J,Q){let{App:Y}=await import("./App-0.1.15-skbrajfh.mjs"),{REPL:W}=await import("./REPL-0.1.15-6e0xrr9y.mjs");await Q(q,N(Y,{...Z,children:N(W,{...J})}))}ZZ();yX();NX();VY();ZX();IX();k8();p0();$9();l0();var A8=void 0;function x8(q){try{let Z=new URL(q);return Z.search="",Z.toString().replace(/\/$/,"")}catch{return}}async function vJ(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return;if(V0()!=="firstParty")return;try{let q=await hJ.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),Z=new Set;for(let J of q.data.servers)for(let Q of J.server.remotes??[]){let Y=x8(Q.url);if(Y)Z.add(Y)}A8=Z,T(`[mcp-registry] Loaded ${Z.size} official MCP URLs`)}catch(q){T(`Failed to fetch MCP registry: ${g(q)}`,{level:"error"})}}HJ();VJ();hY();KX();dY();EY();e4();Mq();Z0();MY();jY();$Y();_X();mJ();z3();oY();_Y();y9();J0();p0();N9();mJ();import{posix as uJ,win32 as cJ}from"path";var C8=1000,e9=new Map;function O8(){let q=process.argv[1]||"",Z=process.execPath||process.argv[0]||"";if(Z1()==="windows")q=q.split(cJ.sep).join(uJ.sep),Z=Z.split(cJ.sep).join(uJ.sep);let J=[q,Z],Q=["/build-ant/","/build-external/","/build-external-native/","/build-ant-native/"];return J.some((Y)=>Q.some((W)=>Y.includes(W)))}var E8=[/MaxListenersExceededWarning.*AbortSignal/,/MaxListenersExceededWarning.*EventTarget/];function S8(q){let Z=`${q.name}: ${q.message}`;return E8.some((J)=>J.test(Z))}var q1=null;function gJ(){let q=process.listeners("warning");if(q1&&q.includes(q1))return;if(!O8())process.removeAllListeners("warning");q1=(J)=>{try{let Q=`${J.name}: ${J.message.slice(0,50)}`,Y=e9.get(Q)||0;if(e9.has(Q)||e9.size<C8)e9.set(Q,Y+1);let W=S8(J);if(F("tengu_node_warning",{is_internal:W?1:0,occurrence_count:Y+1,classname:J.name}),i(process.env.CLAUDE_DEBUG))T(`${W?"[Internal Warning]":"[Warning]"} ${J.toString()}`,{level:"warn"})}catch{}},process.on("warning",q1)}BX();PY();ZZ();J0();import{resolve as A9}from"path";i0();EQ();t1();q0();async function dJ(q,Z){let{InvalidSettingsDialog:J}=await import("./InvalidSettingsDialog-0.1.15-bjsk3qxm.mjs");return K0(q,(Q)=>N(J,{settingsErrors:Z.settingsErrors,onContinue:Q,onExit:Z.onExit}))}async function lJ(q){let{TeleportResumeWrapper:Z}=await import("./TeleportResumeWrapper-0.1.15-bwv0syaw.mjs");return K0(q,(J)=>N(Z,{onComplete:J,onCancel:()=>J(null),source:"cliArg"}))}async function pJ(q,Z){let{TeleportRepoMismatchDialog:J}=await import("./TeleportRepoMismatchDialog-0.1.15-00rkfxqs.mjs");return K0(q,(Q)=>N(J,{targetRepo:Z.targetRepo,initialPaths:Z.initialPaths,onSelectPath:Q,onCancel:()=>Q(null)}))}async function aJ(q,Z,J,Q){let[Y,{ResumeConversation:W},{App:$}]=await Promise.all([J,import("./ResumeConversation-0.1.15-fm1gvj49.mjs"),import("./App-0.1.15-skbrajfh.mjs")]);await r0(q,N($,{getFpsMetrics:Z.getFpsMetrics,stats:Z.stats,initialState:Z.initialState,children:N(s0,{children:N(W,{...Q,worktreePaths:Y})})}))}FY();function iJ(){}OY();v3();nJ();h8();f8();b8();v8();o1();B9();var sJ=5,rJ=30,u8=`After you finish implementing the change:
25
+ 1. **Simplify** — Invoke the \`${qQ}\` tool with \`skill: "simplify"\` to review and clean up your changes.
26
+ 2. **Run unit tests** — Run the project's test suite (check for package.json scripts, Makefile targets, or common commands like \`npm test\`, \`bun test\`, \`pytest\`, \`go test\`). If tests fail, fix them.
27
+ 3. **Test end-to-end** — Follow the e2e test recipe from the coordinator's prompt (below). If the recipe says to skip e2e for this unit, skip it.
28
+ 4. **Commit and push** — Commit all changes with a clear message, push the branch, and create a PR with \`gh pr create\`. Use a descriptive title. If \`gh\` is not available or the push fails, note it in your final message.
29
+ 5. **Report** — End with a single line: \`PR: <url>\` so the coordinator can track it. If no PR was created, end with \`PR: none — <reason>\`.`;function c8(q){return`# Batch: Parallel Work Orchestration
30
+
31
+ You are orchestrating a large, parallelizable change across this codebase.
32
+
33
+ ## User Instruction
34
+
35
+ ${q}
36
+
37
+ ## Phase 1: Research and Plan (Plan Mode)
38
+
39
+ Call the \`${oJ}\` tool now to enter plan mode, then:
40
+
41
+ 1. **Understand the scope.** Launch one or more subagents (in the foreground — you need their results) to deeply research what this instruction touches. Find all the files, patterns, and call sites that need to change. Understand the existing conventions so the migration is consistent.
42
+
43
+ 2. **Decompose into independent units.** Break the work into ${sJ}–${rJ} self-contained units. Each unit must:
44
+ - Be independently implementable in an isolated git worktree (no shared state with sibling units)
45
+ - Be mergeable on its own without depending on another unit's PR landing first
46
+ - Be roughly uniform in size (split large units, merge trivial ones)
47
+
48
+ Scale the count to the actual work: few files → closer to ${sJ}; hundreds of files → closer to ${rJ}. Prefer per-directory or per-module slicing over arbitrary file lists.
49
+
50
+ 3. **Determine the e2e test recipe.** Figure out how a worker can verify its change actually works end-to-end — not just that unit tests pass. Look for:
51
+ - A \`claude-in-chrome\` skill or browser-automation tool (for UI changes: click through the affected flow, screenshot the result)
52
+ - A \`tmux\` or CLI-verifier skill (for CLI changes: launch the app interactively, exercise the changed behavior)
53
+ - A dev-server + curl pattern (for API changes: start the server, hit the affected endpoints)
54
+ - An existing e2e/integration test suite the worker can run
55
+
56
+ If you cannot find a concrete e2e path, use the \`${eJ}\` tool to ask the user how to verify this change end-to-end. Offer 2–3 specific options based on what you found (e.g., "Screenshot via chrome extension", "Run \`bun run dev\` and curl the endpoint", "No e2e — unit tests are sufficient"). Do not skip this — the workers cannot ask the user themselves.
57
+
58
+ Write the recipe as a short, concrete set of steps that a worker can execute autonomously. Include any setup (start a dev server, build first) and the exact command/interaction to verify.
59
+
60
+ 4. **Write the plan.** In your plan file, include:
61
+ - A summary of what you found during research
62
+ - A numbered list of work units — for each: a short title, the list of files/directories it covers, and a one-line description of the change
63
+ - The e2e test recipe (or "skip e2e because …" if the user chose that)
64
+ - The exact worker instructions you will give each agent (the shared template)
65
+
66
+ 5. Call \`${tJ}\` to present the plan for approval.
67
+
68
+ ## Phase 2: Spawn Workers (After Plan Approval)
69
+
70
+ Once the plan is approved, spawn one background agent per work unit using the \`${Q1}\` tool. **All agents must use \`isolation: "worktree"\` and \`run_in_background: true\`.** Launch them all in a single message block so they run in parallel.
71
+
72
+ For each agent, the prompt must be fully self-contained. Include:
73
+ - The overall goal (the user's instruction)
74
+ - This unit's specific task (title, file list, change description — copied verbatim from your plan)
75
+ - Any codebase conventions you discovered that the worker needs to follow
76
+ - The e2e test recipe from your plan (or "skip e2e because …")
77
+ - The worker instructions below, copied verbatim:
78
+
79
+ \`\`\`
80
+ ${u8}
81
+ \`\`\`
82
+
83
+ Use \`subagent_type: "general-purpose"\` unless a more specific agent type fits.
84
+
85
+ ## Phase 3: Track Progress
86
+
87
+ After launching all workers, render an initial status table:
88
+
89
+ | # | Unit | Status | PR |
90
+ |---|------|--------|----|
91
+ | 1 | <title> | running | — |
92
+ | 2 | <title> | running | — |
93
+
94
+ As background-agent completion notifications arrive, parse the \`PR: <url>\` line from each agent's result and re-render the table with updated status (\`done\` / \`failed\`) and PR links. Keep a brief failure note for any agent that did not produce a PR.
95
+
96
+ When all agents have reported, render the final table and a one-line summary (e.g., "22/24 units landed as PRs").
97
+ `}var m8="This is not a git repository. The `/batch` command requires a git repo because it spawns agents in isolated git worktrees and creates PRs from each. Initialize a repo first, or run this from inside an existing one.",g8=`Provide an instruction describing the batch change you want to make.
98
+
99
+ Examples:
100
+ /batch migrate from react to vue
101
+ /batch replace all uses of lodash with native equivalents
102
+ /batch add type annotations to all untyped function parameters`;function ZQ(){G0({name:"batch",description:"Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.",whenToUse:"Use when the user wants to make a sweeping, mechanical change across many files (migrations, refactors, bulk renames) that can be decomposed into independent parallel units.",argumentHint:"<instruction>",userInvocable:!0,disableModelInvocation:!0,async getPromptForCommand(q){let Z=q.trim();if(!Z)return[{type:"text",text:g8}];if(!await J1())return[{type:"text",text:m8}];return[{type:"text",text:c8(Z)}]}})}d8();e();p0();$9();XQ();B9();import{open as l8,stat as p8}from"fs/promises";var Y1=20,a8=65536;function HQ(){G0({name:"debug",description:"Enable debug logging for this session and help diagnose issues",allowedTools:["Read","Grep","Glob"],argumentHint:"[issue description]",disableModelInvocation:!0,userInvocable:!0,async getPromptForCommand(q){let Z=JQ(),J=QQ(),Q;try{let $=await p8(J),z=Math.min($.size,a8),V=$.size-z,H=await l8(J,"r");try{let{buffer:X,bytesRead:K}=await H.read({buffer:Buffer.alloc(z),position:V}),M=X.toString("utf-8",0,K).split(`
103
+ `).slice(-Y1).join(`
104
+ `);Q=`Log size: ${YQ($.size)}
105
+
106
+ ### Last ${Y1} lines
107
+
108
+ \`\`\`
109
+ ${M}
110
+ \`\`\``}finally{await H.close()}}catch($){Q=W1($)?"No debug log exists yet — logging was just enabled.":`Failed to read last ${Y1} lines of debug log: ${g($)}`}return[{type:"text",text:`# Debug Skill
111
+
112
+ Help the user debug an issue they're encountering in this current Claude Code session.
113
+ ${Z?"":`
114
+ ## Debug Logging Just Enabled
115
+
116
+ Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.
117
+
118
+ Tell the user that debug logging is now active at \`${J}\`, ask them to reproduce the issue, then re-read the log. If they can't reproduce, they can also restart with \`claude --debug\` to capture logs from startup.
119
+ `}
120
+ ## Session Debug Log
121
+
122
+ The debug log for the current session is at: \`${J}\`
123
+
124
+ ${Q}
125
+
126
+ For additional context, grep for [ERROR] and [WARN] lines across the full file.
127
+
128
+ ## Issue Description
129
+
130
+ ${q||"The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues."}
131
+
132
+ ## Settings
133
+
134
+ Remember that settings are in:
135
+ * user - ${X1("userSettings")}
136
+ * project - ${X1("projectSettings")}
137
+ * local - ${X1("localSettings")}
138
+
139
+ ## Instructions
140
+
141
+ 1. Review the user's issue description
142
+ 2. The last ${Y1} lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
143
+ 3. Consider launching the ${WQ} subagent to understand the relevant Claude Code features
144
+ 4. Explain what you found in plain language
145
+ 5. Suggest concrete fixes or next steps
146
+ `}]}})}s8();n8();r8();e1();zQ();var qq=["Global","Chat","Autocomplete","Confirmation","Help","Transcript","HistorySearch","Task","ThemePicker","Settings","Tabs","Attachments","Footer","MessageSelector","DiffDialog","ModelPicker","Select","Plugin"],$Q={Global:"Active everywhere, regardless of focus",Chat:"When the chat input is focused",Autocomplete:"When autocomplete menu is visible",Confirmation:"When a confirmation/permission dialog is shown",Help:"When the help overlay is open",Transcript:"When viewing the transcript",HistorySearch:"When searching command history (ctrl+r)",Task:"When a task/agent is running in the foreground",ThemePicker:"When the theme picker is open",Settings:"When the settings menu is open",Tabs:"When tab navigation is active",Attachments:"When navigating image attachments in a select dialog",Footer:"When footer indicators are focused",MessageSelector:"When the message selector (rewind) is open",DiffDialog:"When the diff dialog is open",ModelPicker:"When the model picker is open",Select:"When a select/list component is focused",Plugin:"When the plugin dialog is open"},Zq=["app:interrupt","app:exit","app:toggleTodos","app:toggleTranscript","app:toggleBrief","app:toggleTeammatePreview","app:toggleTerminal","app:redraw","app:globalSearch","app:quickOpen","history:search","history:previous","history:next","chat:cancel","chat:killAgents","chat:cycleMode","chat:modelPicker","chat:fastMode","chat:thinkingToggle","chat:submit","chat:newline","chat:undo","chat:externalEditor","chat:stash","chat:imagePaste","chat:messageActions","autocomplete:accept","autocomplete:dismiss","autocomplete:previous","autocomplete:next","confirm:yes","confirm:no","confirm:previous","confirm:next","confirm:nextField","confirm:previousField","confirm:cycleMode","confirm:toggle","confirm:toggleExplanation","tabs:next","tabs:previous","transcript:toggleShowAll","transcript:exit","historySearch:next","historySearch:accept","historySearch:cancel","historySearch:execute","task:background","theme:toggleSyntaxHighlighting","help:dismiss","attachments:next","attachments:previous","attachments:remove","attachments:exit","footer:up","footer:down","footer:next","footer:previous","footer:openSelected","footer:clearSelection","footer:close","messageSelector:up","messageSelector:down","messageSelector:top","messageSelector:bottom","messageSelector:select","diff:dismiss","diff:previousSource","diff:nextSource","diff:back","diff:viewDetails","diff:previousFile","diff:nextFile","modelPicker:decreaseEffort","modelPicker:increaseEffort","select:next","select:previous","select:accept","select:cancel","plugin:toggle","plugin:install","permission:toggleDebug","settings:search","settings:retry","settings:close","voice:pushToTalk"],i8=I9(()=>s.object({context:s.enum(qq).describe("UI context where these bindings apply. Global bindings work everywhere."),bindings:s.record(s.string().describe('Keystroke pattern (e.g., "ctrl+k", "shift+tab")'),s.union([s.enum(Zq),s.string().regex(/^command:[a-zA-Z0-9:\-_]+$/).describe('Command binding (e.g., "command:help", "command:compact"). Executes the slash command as if typed.'),s.null().describe("Set to null to unbind a default shortcut")]).describe("Action to trigger, command to invoke, or null to unbind")).describe("Map of keystroke patterns to actions")}).describe("A block of keybindings for a specific context")),pH=I9(()=>s.object({$schema:s.string().optional().describe("JSON Schema URL for editor validation"),$docs:s.string().optional().describe("Documentation URL"),bindings:s.array(i8()).describe("Array of keybinding blocks by context")}).describe("Claude Code keybindings configuration. Customize keyboard shortcuts by context."));y9();B9();function t8(){return Jq(["Context","Description"],qq.map((q)=>[`\`${q}\``,$Q[q]]))}function o8(){let q={};for(let Z of BQ)for(let[J,Q]of Object.entries(Z.bindings))if(Q){if(!q[Q])q[Q]={keys:[],context:Z.context};q[Q].keys.push(J)}return Jq(["Action","Default Key(s)","Context"],Zq.map((Z)=>{let J=q[Z],Q=J?J.keys.map((W)=>`\`${W}\``).join(", "):"(none)",Y=J?J.context:e8(Z);return[`\`${Z}\``,Q,Y]}))}function e8(q){let Z=q.split(":")[0];return{app:"Global",history:"Global or Chat",chat:"Chat",autocomplete:"Autocomplete",confirm:"Confirmation",tabs:"Tabs",transcript:"Transcript",historySearch:"HistorySearch",task:"Task",theme:"ThemePicker",help:"Help",attachments:"Attachments",footer:"Footer",messageSelector:"MessageSelector",diff:"DiffDialog",modelPicker:"ModelPicker",select:"Select",permission:"Confirmation"}[Z??""]??"Unknown"}function q4(){let q=[];q.push("### Non-rebindable (errors)");for(let Z of VQ)q.push(`- \`${Z.key}\` — ${Z.reason}`);q.push(""),q.push("### Terminal reserved (errors/warnings)");for(let Z of KQ)q.push(`- \`${Z.key}\` — ${Z.reason} (${Z.severity==="error"?"will not work":"may conflict"})`);q.push(""),q.push("### macOS reserved (errors)");for(let Z of GQ)q.push(`- \`${Z.key}\` — ${Z.reason}`);return q.join(`
147
+ `)}var Z4={$schema:"https://www.schemastore.org/claude-code-keybindings.json",$docs:"https://code.claude.com/docs/en/keybindings",bindings:[{context:"Chat",bindings:{"ctrl+e":"chat:externalEditor"}}]},J4={context:"Chat",bindings:{"ctrl+s":null}},Q4={context:"Chat",bindings:{"ctrl+g":null,"ctrl+e":"chat:externalEditor"}},Y4={context:"Global",bindings:{"ctrl+k ctrl+t":"app:toggleTodos"}},X4=["# Keybindings Skill","","Create or modify `~/.claudio/keybindings.json` to customize keyboard shortcuts.","","## CRITICAL: Read Before Write","","**Always read `~/.claudio/keybindings.json` first** (it may not exist yet). Merge changes with existing bindings — never replace the entire file.","","- Use **Edit** tool for modifications to existing files","- Use **Write** tool only if the file does not exist yet"].join(`
148
+ `),W4=["## File Format","","```json",T0(Z4,null,2),"```","","Always include the `$schema` and `$docs` fields."].join(`
149
+ `),H4=["## Keystroke Syntax","","**Modifiers** (combine with `+`):","- `ctrl` (alias: `control`)","- `alt` (aliases: `opt`, `option`) — note: `alt` and `meta` are identical in terminals","- `shift`","- `meta` (aliases: `cmd`, `command`)","","**Special keys**: `escape`/`esc`, `enter`/`return`, `tab`, `space`, `backspace`, `delete`, `up`, `down`, `left`, `right`","","**Chords**: Space-separated keystrokes, e.g. `ctrl+k ctrl+s` (1-second timeout between keystrokes)","","**Examples**: `ctrl+shift+p`, `alt+enter`, `ctrl+k ctrl+n`"].join(`
150
+ `),z4=["## Unbinding Default Shortcuts","","Set a key to `null` to remove its default binding:","","```json",T0(J4,null,2),"```"].join(`
151
+ `),$4=["## How User Bindings Interact with Defaults","","- User bindings are **additive** — they are appended after the default bindings","- To **move** a binding to a different key: unbind the old key (`null`) AND add the new binding","- A context only needs to appear in the user's file if they want to change something in that context"].join(`
152
+ `),B4=["## Common Patterns","","### Rebind a key","To change the external editor shortcut from `ctrl+g` to `ctrl+e`:","```json",T0(Q4,null,2),"```","","### Add a chord binding","```json",T0(Y4,null,2),"```"].join(`
153
+ `),V4=["## Behavioral Rules","","1. Only include contexts the user wants to change (minimal overrides)","2. Validate that actions and contexts are from the known lists below","3. Warn the user proactively if they choose a key that conflicts with reserved shortcuts or common tools like tmux (`ctrl+b`) and screen (`ctrl+a`)","4. When adding a new binding for an existing action, the new binding is additive (existing default still works unless explicitly unbound)","5. To fully replace a default binding, unbind the old key AND add the new one"].join(`
154
+ `),K4=["## Validation with /doctor","",'The `/doctor` command includes a "Keybinding Configuration Issues" section that validates `~/.claudio/keybindings.json`.',"","### Common Issues and Fixes","",Jq(["Issue","Cause","Fix"],[['`keybindings.json must have a "bindings" array`',"Missing wrapper object",'Wrap bindings in `{ "bindings": [...] }`'],['`"bindings" must be an array`',"`bindings` is not an array",'Set `"bindings"` to an array: `[{ context: ..., bindings: ... }]`'],['`Unknown context "X"`',"Typo or invalid context name","Use exact context names from the Available Contexts table"],['`Duplicate key "X" in Y bindings`',"Same key defined twice in one context","Remove the duplicate; JSON uses only the last value"],['`"X" may not work: ...`',"Key conflicts with terminal/OS reserved shortcut","Choose a different key (see Reserved Shortcuts section)"],['`Could not parse keystroke "X"`',"Invalid key syntax","Check syntax: use `+` between modifiers, valid key names"],['`Invalid action for "X"`',"Action value is not a string or null",'Actions must be strings like `"app:help"` or `null` to unbind']]),"","### Example /doctor Output","","```","Keybinding Configuration Issues","Location: ~/.claudio/keybindings.json",' └ [Error] Unknown context "chat"'," → Valid contexts: Global, Chat, Autocomplete, ...",' └ [Warning] "ctrl+c" may not work: Terminal interrupt (SIGINT)',"```","","**Errors** prevent bindings from working and must be fixed. **Warnings** indicate potential conflicts but the binding may still work."].join(`
155
+ `);function MQ(){G0({name:"keybindings-help",description:'Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claudio/keybindings.json. Examples: "rebind ctrl+s", "add a chord shortcut", "change the submit key", "customize keybindings".',allowedTools:["Read"],userInvocable:!1,isEnabled:RQ,async getPromptForCommand(q){let Z=t8(),J=o8(),Q=q4(),Y=[X4,W4,H4,z4,$4,B4,V4,K4,`## Reserved Shortcuts
156
+
157
+ ${Q}`,`## Available Contexts
158
+
159
+ ${Z}`,`## Available Actions
160
+
161
+ ${J}`];if(q)Y.push(`## User Request
162
+
163
+ ${q}`);return[{type:"text",text:Y.join(`
164
+
165
+ `)}]}})}function Jq(q,Z){let J=q.map(()=>"---");return[`| ${q.join(" | ")} |`,`| ${J.join(" | ")} |`,...Z.map((Q)=>`| ${Q.join(" | ")} |`)].join(`
166
+ `)}G4();B9();var R4="1 minute",M4="1 hour",_Q=`Scheduled maintenance loop iteration.
167
+
168
+ If .claudio/loop.md exists, read it and follow it.
169
+ Otherwise, if ~/.claudio/loop.md exists, read it and follow it.
170
+ Otherwise:
171
+ - continue any unfinished work from the conversation
172
+ - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
173
+ - run cleanup passes such as bug hunts or simplification when nothing else is pending
174
+
175
+ Do not start new initiatives outside that scope.
176
+ Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`;function F4(q){let Z=q.toLowerCase();if(["s","sec","secs","second","seconds"].includes(Z))return"s";if(["m","min","mins","minute","minutes"].includes(Z))return"m";if(["h","hr","hrs","hour","hours"].includes(Z))return"h";if(["d","day","days"].includes(Z))return"d";return null}function Qq(q){let Z=q.trim().match(/^(\d+)\s*([a-zA-Z]+)$/);if(!Z)return null;let J=Number.parseInt(Z[1],10);if(!Number.isFinite(J)||J<1)return null;let Q=F4(Z[2]);if(!Q)return null;return`${J}${Q}`}function U4(q){let Z=q.match(/^(.*?)(?:\s+every\s+)(\d+)\s*([a-zA-Z]+)\s*$/i);if(!Z)return null;let J=Qq(`${Z[2]}${Z[3]}`);if(!J)return null;return{prompt:Z[1].trim(),interval:J}}function L4(q){let Z=q.trim();if(!Z)return{mode:"dynamic-maintenance"};let J=Qq(Z);if(J)return{mode:"fixed-maintenance",interval:J};let[Q,...Y]=Z.split(/\s+/),W=Qq(Q??"");if(W){let z=Y.join(" ").trim();if(!z)return{mode:"fixed-maintenance",interval:W};return{mode:"fixed-prompt",interval:W,prompt:z}}let $=U4(Z);if($){if(!$.prompt)return{mode:"fixed-maintenance",interval:$.interval};return{mode:"fixed-prompt",interval:$.interval,prompt:$.prompt}}return{mode:"dynamic-prompt",prompt:Z}}function _4(q){let Z=q.prompt?`Use this prompt verbatim for both the immediate run and the recurring scheduled task:
177
+
178
+ --- BEGIN PROMPT ---
179
+ ${q.prompt}
180
+ --- END PROMPT ---
181
+ `:`This is a maintenance loop with no explicit prompt.
182
+
183
+ For the recurring scheduled task, use this exact maintenance prompt body:
184
+
185
+ --- BEGIN MAINTENANCE PROMPT ---
186
+ ${_Q}
187
+ --- END MAINTENANCE PROMPT ---
188
+ `;return`# /loop — fixed recurring interval
189
+
190
+ The user invoked /loop with a fixed interval.
191
+
192
+ Requested interval: ${q.interval}
193
+
194
+ ${Z}
195
+ ## Instructions
196
+
197
+ 1. Convert the requested interval to a recurring cron expression.
198
+ - Supported suffixes: s, m, h, d.
199
+ - Seconds must be rounded up to the nearest minute because cron has minute granularity.
200
+ - If the requested interval does not map cleanly to cron cadence, choose the nearest clean recurring interval and tell the user what you picked.
201
+ 2. Call ${Yq} with:
202
+ - the recurring cron expression
203
+ - the effective prompt body above
204
+ - recurring: true
205
+ - durable: false
206
+ 3. Briefly confirm what was scheduled, the cron expression, the human cadence, that recurring tasks auto-expire after ${FQ} days, and that the user can cancel sooner with ${LQ} using the returned job ID.
207
+ 4. Immediately execute the effective prompt now — do not wait for the first cron fire.
208
+ - If the effective prompt starts with a slash command, invoke it via the Skill tool.
209
+ - Otherwise, act on it directly.
210
+ `}function P4(q){let Z=q.prompt?`Use this prompt verbatim as the effective prompt for this iteration:
211
+
212
+ --- BEGIN PROMPT ---
213
+ ${q.prompt}
214
+ --- END PROMPT ---
215
+ `:`This is a maintenance loop with no explicit prompt.
216
+
217
+ Determine the effective prompt in this order:
218
+ 1. If .claudio/loop.md exists, read it and use it.
219
+ 2. Otherwise, if ~/.claudio/loop.md exists, read it and use it.
220
+ 3. Otherwise, use this built-in maintenance prompt:
221
+
222
+ --- BEGIN MAINTENANCE PROMPT ---
223
+ ${_Q}
224
+ --- END MAINTENANCE PROMPT ---
225
+ `,J=q.prompt?`/loop ${q.prompt}`:"/loop";return`# /loop — dynamic rescheduling
226
+
227
+ The user invoked /loop without a fixed interval.
228
+
229
+ ${Z}
230
+ ## Instructions
231
+
232
+ 1. Execute the effective prompt now.
233
+ - If it starts with a slash command, invoke it via the Skill tool.
234
+ - Otherwise, act on it directly.
235
+ 2. After the work finishes, choose the next delay dynamically between ${R4} and ${M4}.
236
+ - Use shorter delays while active work is progressing or likely to change soon.
237
+ - Use longer delays when the situation is quiet or stable.
238
+ 3. Briefly tell the user the chosen delay and the reason.
239
+ 4. Schedule exactly one session-only follow-up run with ${Yq}.
240
+ - Use recurring: false.
241
+ - Use durable: false.
242
+ - Pin the cron expression to a specific future local-time minute that matches the chosen delay.
243
+ - Set the scheduled prompt to this exact text so the next iteration stays in dynamic mode:
244
+
245
+ --- BEGIN SCHEDULED PROMPT ---
246
+ ${J}
247
+ --- END SCHEDULED PROMPT ---
248
+
249
+ 5. Confirm the next run time and the returned job ID.
250
+ 6. Do not create a recurring cron for this mode.
251
+ `}function PQ(){G0({name:"loop",description:"Run a prompt on a fixed interval or dynamically reschedule it, including bare maintenance-mode loops.",whenToUse:"When the user wants to poll for status, babysit a workflow, run recurring maintenance, or keep re-running a prompt within the current session.",argumentHint:"[interval] [prompt]",userInvocable:!0,isEnabled:UQ,async getPromptForCommand(q){let Z=L4(q);return[{type:"text",text:Z.mode==="fixed-prompt"||Z.mode==="fixed-maintenance"?_4(Z):P4(Z)}]}})}nJ();B9();var N4=`# Simplify: Code Review and Cleanup
252
+
253
+ Review all changed files for reuse, quality, and efficiency. Fix any issues found.
254
+
255
+ ## Phase 1: Identify Changes
256
+
257
+ Run \`git diff\` (or \`git diff HEAD\` if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this conversation.
258
+
259
+ ## Phase 2: Launch Three Review Agents in Parallel
260
+
261
+ Use the ${Q1} tool to launch all three agents concurrently in a single message. Pass each agent the full diff so it has the complete context.
262
+
263
+ ### Agent 1: Code Reuse Review
264
+
265
+ For each change:
266
+
267
+ 1. **Search for existing utilities and helpers** that could replace newly written code. Look for similar patterns elsewhere in the codebase — common locations are utility directories, shared modules, and files adjacent to the changed ones.
268
+ 2. **Flag any new function that duplicates existing functionality.** Suggest the existing function to use instead.
269
+ 3. **Flag any inline logic that could use an existing utility** — hand-rolled string manipulation, manual path handling, custom environment checks, ad-hoc type guards, and similar patterns are common candidates.
270
+
271
+ ### Agent 2: Code Quality Review
272
+
273
+ Review the same changes for hacky patterns:
274
+
275
+ 1. **Redundant state**: state that duplicates existing state, cached values that could be derived, observers/effects that could be direct calls
276
+ 2. **Parameter sprawl**: adding new parameters to a function instead of generalizing or restructuring existing ones
277
+ 3. **Copy-paste with slight variation**: near-duplicate code blocks that should be unified with a shared abstraction
278
+ 4. **Leaky abstractions**: exposing internal details that should be encapsulated, or breaking existing abstraction boundaries
279
+ 5. **Stringly-typed code**: using raw strings where constants, enums (string unions), or branded types already exist in the codebase
280
+ 6. **Unnecessary JSX nesting**: wrapper Boxes/elements that add no layout value — check if inner component props (flexShrink, alignItems, etc.) already provide the needed behavior
281
+ 7. **Unnecessary comments**: comments explaining WHAT the code does (well-named identifiers already do that), narrating the change, or referencing the task/caller — delete; keep only non-obvious WHY (hidden constraints, subtle invariants, workarounds)
282
+
283
+ ### Agent 3: Efficiency Review
284
+
285
+ Review the same changes for efficiency:
286
+
287
+ 1. **Unnecessary work**: redundant computations, repeated file reads, duplicate network/API calls, N+1 patterns
288
+ 2. **Missed concurrency**: independent operations run sequentially when they could run in parallel
289
+ 3. **Hot-path bloat**: new blocking work added to startup or per-request/per-render hot paths
290
+ 4. **Recurring no-op updates**: state/store updates inside polling loops, intervals, or event handlers that fire unconditionally — add a change-detection guard so downstream consumers aren't notified when nothing changed. Also: if a wrapper function takes an updater/reducer callback, verify it honors same-reference returns (or whatever the "no change" signal is) — otherwise callers' early-return no-ops are silently defeated
291
+ 5. **Unnecessary existence checks**: pre-checking file/resource existence before operating (TOCTOU anti-pattern) — operate directly and handle the error
292
+ 6. **Memory**: unbounded data structures, missing cleanup, event listener leaks
293
+ 7. **Overly broad operations**: reading entire files when only a portion is needed, loading all items when filtering for one
294
+
295
+ ## Phase 3: Fix Issues
296
+
297
+ Wait for all three agents to complete. Aggregate their findings and fix each issue directly. If a finding is a false positive or not worth addressing, note it and move on — do not argue with the finding, just skip it.
298
+
299
+ When done, briefly summarize what was fixed (or confirm the code was already clean).
300
+ `;function NQ(){G0({name:"simplify",description:"Review changed code for reuse, quality, and efficiency, then fix any issues found.",userInvocable:!0,async getPromptForCommand(q){let Z=N4;if(q)Z+=`
301
+
302
+ ## Additional Focus
303
+
304
+ ${q}`;return[{type:"text",text:Z}]}})}e1();T4();y9();B9();function D4(){let q=TQ(DQ(),{io:"input"});return T0(q,null,2)}var I4=`## Settings File Locations
305
+
306
+ Choose the appropriate file based on scope:
307
+
308
+ | File | Scope | Git | Use For |
309
+ |------|-------|-----|---------|
310
+ | \`~/.claudio/settings.json\` | Global | N/A | Personal preferences for all projects |
311
+ | \`.claudio/settings.json\` | Project | Commit | Team-wide hooks, permissions, plugins |
312
+ | \`.claudio/settings.local.json\` | Project | Gitignore | Personal overrides for this project |
313
+
314
+ Settings load in order: user → project → local (later overrides earlier).
315
+
316
+ ## Settings Schema Reference
317
+
318
+ ### Permissions
319
+ \`\`\`json
320
+ {
321
+ "permissions": {
322
+ "allow": ["Bash(npm:*)", "Edit(.claudio)", "Read"],
323
+ "deny": ["Bash(rm -rf:*)"],
324
+ "ask": ["Write(/etc/*)"],
325
+ "defaultMode": "default" | "plan" | "acceptEdits" | "dontAsk",
326
+ "additionalDirectories": ["/extra/dir"]
327
+ }
328
+ }
329
+ \`\`\`
330
+
331
+ **Permission Rule Syntax:**
332
+ - Exact match: \`"Bash(npm run test)"\`
333
+ - Prefix wildcard: \`"Bash(git:*)"\` - matches \`git status\`, \`git commit\`, etc.
334
+ - Tool only: \`"Read"\` - allows all Read operations
335
+
336
+ ### Environment Variables
337
+ \`\`\`json
338
+ {
339
+ "env": {
340
+ "DEBUG": "true",
341
+ "MY_API_KEY": "value"
342
+ }
343
+ }
344
+ \`\`\`
345
+
346
+ ### Model & Agent
347
+ \`\`\`json
348
+ {
349
+ "model": "sonnet", // or "opus", "haiku", full model ID
350
+ "agent": "agent-name",
351
+ "alwaysThinkingEnabled": true
352
+ }
353
+ \`\`\`
354
+
355
+ ### Attribution (Commits & PRs)
356
+ \`\`\`json
357
+ {
358
+ "attribution": {
359
+ "commit": "Custom commit trailer text",
360
+ "pr": "Custom PR description text"
361
+ }
362
+ }
363
+ \`\`\`
364
+ Set \`commit\` or \`pr\` to empty string \`""\` to hide that attribution.
365
+
366
+ ### MCP Server Management
367
+ \`\`\`json
368
+ {
369
+ "enableAllProjectMcpServers": true,
370
+ "enabledMcpjsonServers": ["server1", "server2"],
371
+ "disabledMcpjsonServers": ["blocked-server"]
372
+ }
373
+ \`\`\`
374
+
375
+ ### Plugins
376
+ \`\`\`json
377
+ {
378
+ "enabledPlugins": {
379
+ "formatter@anthropic-tools": true
380
+ }
381
+ }
382
+ \`\`\`
383
+ Plugin syntax: \`plugin-name@source\` where source is \`claude-code-marketplace\`, \`claude-plugins-official\`, or \`builtin\`.
384
+
385
+ ### Other Settings
386
+ - \`language\`: Preferred response language (e.g., "japanese")
387
+ - \`cleanupPeriodDays\`: Days to keep transcripts (default: 30; 0 disables persistence entirely)
388
+ - \`respectGitignore\`: Whether to respect .gitignore (default: true)
389
+ - \`spinnerTipsEnabled\`: Show tips in spinner
390
+ - \`spinnerVerbs\`: Customize spinner verbs (\`{ "mode": "append" | "replace", "verbs": [...] }\`)
391
+ - \`spinnerTipsOverride\`: Override spinner tips (\`{ "excludeDefault": true, "tips": ["Custom tip"] }\`)
392
+ - \`syntaxHighlightingDisabled\`: Disable diff highlighting
393
+ `,IQ=`## Hooks Configuration
394
+
395
+ Hooks run commands at specific points in Claude Code's lifecycle.
396
+
397
+ ### Hook Structure
398
+ \`\`\`json
399
+ {
400
+ "hooks": {
401
+ "EVENT_NAME": [
402
+ {
403
+ "matcher": "ToolName|OtherTool",
404
+ "hooks": [
405
+ {
406
+ "type": "command",
407
+ "command": "your-command-here",
408
+ "timeout": 60,
409
+ "statusMessage": "Running..."
410
+ }
411
+ ]
412
+ }
413
+ ]
414
+ }
415
+ }
416
+ \`\`\`
417
+
418
+ ### Hook Events
419
+
420
+ | Event | Matcher | Purpose |
421
+ |-------|---------|---------|
422
+ | PermissionRequest | Tool name | Run before permission prompt |
423
+ | PreToolUse | Tool name | Run before tool, can block |
424
+ | PostToolUse | Tool name | Run after successful tool |
425
+ | PostToolUseFailure | Tool name | Run after tool fails |
426
+ | Notification | Notification type | Run on notifications |
427
+ | Stop | - | Run when Claude stops (including clear, resume, compact) |
428
+ | PreCompact | "manual"/"auto" | Before compaction |
429
+ | PostCompact | "manual"/"auto" | After compaction (receives summary) |
430
+ | UserPromptSubmit | - | When user submits |
431
+ | SessionStart | - | When session starts |
432
+
433
+ **Common tool matchers:** \`Bash\`, \`Write\`, \`Edit\`, \`Read\`, \`Glob\`, \`Grep\`
434
+
435
+ ### Hook Types
436
+
437
+ **1. Command Hook** - Runs a shell command:
438
+ \`\`\`json
439
+ { "type": "command", "command": "prettier --write $FILE", "timeout": 30 }
440
+ \`\`\`
441
+
442
+ **2. Prompt Hook** - Evaluates a condition with LLM:
443
+ \`\`\`json
444
+ { "type": "prompt", "prompt": "Is this safe? $ARGUMENTS" }
445
+ \`\`\`
446
+ Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
447
+
448
+ **3. Agent Hook** - Runs an agent with tools:
449
+ \`\`\`json
450
+ { "type": "agent", "prompt": "Verify tests pass: $ARGUMENTS" }
451
+ \`\`\`
452
+ Only available for tool events: PreToolUse, PostToolUse, PermissionRequest.
453
+
454
+ ### Hook Input (stdin JSON)
455
+ \`\`\`json
456
+ {
457
+ "session_id": "abc123",
458
+ "tool_name": "Write",
459
+ "tool_input": { "file_path": "/path/to/file.txt", "content": "..." },
460
+ "tool_response": { "success": true } // PostToolUse only
461
+ }
462
+ \`\`\`
463
+
464
+ ### Hook JSON Output
465
+
466
+ Hooks can return JSON to control behavior:
467
+
468
+ \`\`\`json
469
+ {
470
+ "systemMessage": "Warning shown to user in UI",
471
+ "continue": false,
472
+ "stopReason": "Message shown when blocking",
473
+ "suppressOutput": false,
474
+ "decision": "block",
475
+ "reason": "Explanation for decision",
476
+ "hookSpecificOutput": {
477
+ "hookEventName": "PostToolUse",
478
+ "additionalContext": "Context injected back to model"
479
+ }
480
+ }
481
+ \`\`\`
482
+
483
+ **Fields:**
484
+ - \`systemMessage\` - Display a message to the user (all hooks)
485
+ - \`continue\` - Set to \`false\` to block/stop (default: true)
486
+ - \`stopReason\` - Message shown when \`continue\` is false
487
+ - \`suppressOutput\` - Hide stdout from transcript (default: false)
488
+ - \`decision\` - "block" for PostToolUse/Stop/UserPromptSubmit hooks (deprecated for PreToolUse, use hookSpecificOutput.permissionDecision instead)
489
+ - \`reason\` - Explanation for decision
490
+ - \`hookSpecificOutput\` - Event-specific output (must include \`hookEventName\`):
491
+ - \`additionalContext\` - Text injected into model context
492
+ - \`permissionDecision\` - "allow", "deny", or "ask" (PreToolUse only)
493
+ - \`permissionDecisionReason\` - Reason for the permission decision (PreToolUse only)
494
+ - \`updatedInput\` - Modified tool input (PreToolUse only)
495
+
496
+ ### Common Patterns
497
+
498
+ **Auto-format after writes:**
499
+ \`\`\`json
500
+ {
501
+ "hooks": {
502
+ "PostToolUse": [{
503
+ "matcher": "Write|Edit",
504
+ "hooks": [{
505
+ "type": "command",
506
+ "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
507
+ }]
508
+ }]
509
+ }
510
+ }
511
+ \`\`\`
512
+
513
+ **Log all bash commands:**
514
+ \`\`\`json
515
+ {
516
+ "hooks": {
517
+ "PreToolUse": [{
518
+ "matcher": "Bash",
519
+ "hooks": [{
520
+ "type": "command",
521
+ "command": "jq -r '.tool_input.command' >> ~/.claudio/bash-log.txt"
522
+ }]
523
+ }]
524
+ }
525
+ }
526
+ \`\`\`
527
+
528
+ **Stop hook that displays message to user:**
529
+
530
+ Command must output JSON with \`systemMessage\` field:
531
+ \`\`\`bash
532
+ # Example command that outputs: {"systemMessage": "Session complete!"}
533
+ echo '{"systemMessage": "Session complete!"}'
534
+ \`\`\`
535
+
536
+ **Run tests after code changes:**
537
+ \`\`\`json
538
+ {
539
+ "hooks": {
540
+ "PostToolUse": [{
541
+ "matcher": "Write|Edit",
542
+ "hooks": [{
543
+ "type": "command",
544
+ "command": "jq -r '.tool_input.file_path // .tool_response.filePath' | grep -E '\\\\.(ts|js)$' && npm test || true"
545
+ }]
546
+ }]
547
+ }
548
+ }
549
+ \`\`\`
550
+ `,yQ=`## Constructing a Hook (with verification)
551
+
552
+ Given an event, matcher, target file, and desired behavior, follow this flow. Each step catches a different failure class — a hook that silently does nothing is worse than no hook.
553
+
554
+ 1. **Dedup check.** Read the target file. If a hook already exists on the same event+matcher, show the existing command and ask: keep it, replace it, or add alongside.
555
+
556
+ 2. **Construct the command for THIS project — don't assume.** The hook receives JSON on stdin. Build a command that:
557
+ - Extracts any needed payload safely — use \`jq -r\` into a quoted variable or \`{ read -r f; ... "$f"; }\`, NOT unquoted \`| xargs\` (splits on spaces)
558
+ - Invokes the underlying tool the way this project runs it (npx/bunx/yarn/pnpm? Makefile target? globally-installed?)
559
+ - Skips inputs the tool doesn't handle (formatters often have \`--ignore-unknown\`; if not, guard by extension)
560
+ - Stays RAW for now — no \`|| true\`, no stderr suppression. You'll wrap it after the pipe-test passes.
561
+
562
+ 3. **Pipe-test the raw command.** Synthesize the stdin payload the hook will receive and pipe it directly:
563
+ - \`Pre|PostToolUse\` on \`Write|Edit\`: \`echo '{"tool_name":"Edit","tool_input":{"file_path":"<a real file from this repo>"}}' | <cmd>\`
564
+ - \`Pre|PostToolUse\` on \`Bash\`: \`echo '{"tool_name":"Bash","tool_input":{"command":"ls"}}' | <cmd>\`
565
+ - \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\`: most commands don't read stdin, so \`echo '{}' | <cmd>\` suffices
566
+
567
+ Check exit code AND side effect (file actually formatted, test actually ran). If it fails you get a real error — fix (wrong package manager? tool not installed? jq path wrong?) and retest. Once it works, wrap with \`2>/dev/null || true\` (unless the user wants a blocking check).
568
+
569
+ 4. **Write the JSON.** Merge into the target file (schema shape in the "Hook Structure" section above). If this creates \`.claudio/settings.local.json\` for the first time, add it to .gitignore — the Write tool doesn't auto-gitignore it.
570
+
571
+ 5. **Validate syntax + schema in one shot:**
572
+
573
+ \`jq -e '.hooks.<event>[] | select(.matcher == "<matcher>") | .hooks[] | select(.type == "command") | .command' <target-file>\`
574
+
575
+ Exit 0 + prints your command = correct. Exit 4 = matcher doesn't match. Exit 5 = malformed JSON or wrong nesting. A broken settings.json silently disables ALL settings from that file — fix any pre-existing malformation too.
576
+
577
+ 6. **Prove the hook fires** — only for \`Pre|PostToolUse\` on a matcher you can trigger in-turn (\`Write|Edit\` via Edit, \`Bash\` via Bash). \`Stop\`/\`UserPromptSubmit\`/\`SessionStart\` fire outside this turn — skip to step 7.
578
+
579
+ For a **formatter** on \`PostToolUse\`/\`Write|Edit\`: introduce a detectable violation via Edit (two consecutive blank lines, bad indentation, missing semicolon — something this formatter corrects; NOT trailing whitespace, Edit strips that before writing), re-read, confirm the hook **fixed** it. For **anything else**: temporarily prefix the command in settings.json with \`echo "$(date) hook fired" >> /tmp/claude-hook-check.txt; \`, trigger the matching tool (Edit for \`Write|Edit\`, a harmless \`true\` for \`Bash\`), read the sentinel file.
580
+
581
+ **Always clean up** — revert the violation, strip the sentinel prefix — whether the proof passed or failed.
582
+
583
+ **If proof fails but pipe-test passed and \`jq -e\` passed**: the settings watcher isn't watching \`.claudio/\` — it only watches directories that had a settings file when this session started. The hook is written correctly. Tell the user to open \`/hooks\` once (reloads config) or restart — you can't do this yourself; \`/hooks\` is a user UI menu and opening it ends this turn.
584
+
585
+ 7. **Handoff.** Tell the user the hook is live (or needs \`/hooks\`/restart per the watcher caveat). Point them at \`/hooks\` to review, edit, or disable it later. The UI only shows "Ran N hooks" if a hook errors or is slow — silent success is invisible by design.
586
+ `,y4=`# Update Config Skill
587
+
588
+ Modify Claude Code configuration by updating settings.json files.
589
+
590
+ ## When Hooks Are Required (Not Memory)
591
+
592
+ If the user wants something to happen automatically in response to an EVENT, they need a **hook** configured in settings.json. Memory/preferences cannot trigger automated actions.
593
+
594
+ **These require hooks:**
595
+ - "Before compacting, ask me what to preserve" → PreCompact hook
596
+ - "After writing files, run prettier" → PostToolUse hook with Write|Edit matcher
597
+ - "When I run bash commands, log them" → PreToolUse hook with Bash matcher
598
+ - "Always run tests after code changes" → PostToolUse hook
599
+
600
+ **Hook events:** PreToolUse, PostToolUse, PreCompact, PostCompact, Stop, Notification, SessionStart
601
+
602
+ ## CRITICAL: Read Before Write
603
+
604
+ **Always read the existing settings file before making changes.** Merge new settings with existing ones - never replace the entire file.
605
+
606
+ ## CRITICAL: Use AskUserQuestion for Ambiguity
607
+
608
+ When the user's request is ambiguous, use AskUserQuestion to clarify:
609
+ - Which settings file to modify (user/project/local)
610
+ - Whether to add to existing arrays or replace them
611
+ - Specific values when multiple options exist
612
+
613
+ ## Decision: Config Tool vs Direct Edit
614
+
615
+ **Use the Config tool** for these simple settings:
616
+ - \`theme\`, \`editorMode\`, \`verbose\`, \`model\`
617
+ - \`language\`, \`alwaysThinkingEnabled\`
618
+ - \`permissions.defaultMode\`
619
+
620
+ **Edit settings.json directly** for:
621
+ - Hooks (PreToolUse, PostToolUse, etc.)
622
+ - Complex permission rules (allow/deny arrays)
623
+ - Environment variables
624
+ - MCP server configuration
625
+ - Plugin configuration
626
+
627
+ ## Workflow
628
+
629
+ 1. **Clarify intent** - Ask if the request is ambiguous
630
+ 2. **Read existing file** - Use Read tool on the target settings file
631
+ 3. **Merge carefully** - Preserve existing settings, especially arrays
632
+ 4. **Edit file** - Use Edit tool (if file doesn't exist, ask user to create it first)
633
+ 5. **Confirm** - Tell user what was changed
634
+
635
+ ## Merging Arrays (Important!)
636
+
637
+ When adding to permission arrays or hook arrays, **merge with existing**, don't replace:
638
+
639
+ **WRONG** (replaces existing permissions):
640
+ \`\`\`json
641
+ { "permissions": { "allow": ["Bash(npm:*)"] } }
642
+ \`\`\`
643
+
644
+ **RIGHT** (preserves existing + adds new):
645
+ \`\`\`json
646
+ {
647
+ "permissions": {
648
+ "allow": [
649
+ "Bash(git:*)", // existing
650
+ "Edit(.claudio)", // existing
651
+ "Bash(npm:*)" // new
652
+ ]
653
+ }
654
+ }
655
+ \`\`\`
656
+
657
+ ${I4}
658
+
659
+ ${IQ}
660
+
661
+ ${yQ}
662
+
663
+ ## Example Workflows
664
+
665
+ ### Adding a Hook
666
+
667
+ User: "Format my code after Claude writes it"
668
+
669
+ 1. **Clarify**: Which formatter? (prettier, gofmt, etc.)
670
+ 2. **Read**: \`.claudio/settings.json\` (or create if missing)
671
+ 3. **Merge**: Add to existing hooks, don't replace
672
+ 4. **Result**:
673
+ \`\`\`json
674
+ {
675
+ "hooks": {
676
+ "PostToolUse": [{
677
+ "matcher": "Write|Edit",
678
+ "hooks": [{
679
+ "type": "command",
680
+ "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \\"$f\\"; } 2>/dev/null || true"
681
+ }]
682
+ }]
683
+ }
684
+ }
685
+ \`\`\`
686
+
687
+ ### Adding Permissions
688
+
689
+ User: "Allow npm commands without prompting"
690
+
691
+ 1. **Read**: Existing permissions
692
+ 2. **Merge**: Add \`Bash(npm:*)\` to allow array
693
+ 3. **Result**: Combined with existing allows
694
+
695
+ ### Environment Variables
696
+
697
+ User: "Set DEBUG=true"
698
+
699
+ 1. **Decide**: User settings (global) or project settings?
700
+ 2. **Read**: Target file
701
+ 3. **Merge**: Add to env object
702
+ \`\`\`json
703
+ { "env": { "DEBUG": "true" } }
704
+ \`\`\`
705
+
706
+ ## Common Mistakes to Avoid
707
+
708
+ 1. **Replacing instead of merging** - Always preserve existing settings
709
+ 2. **Wrong file** - Ask user if scope is unclear
710
+ 3. **Invalid JSON** - Validate syntax after changes
711
+ 4. **Forgetting to read first** - Always read before write
712
+
713
+ ## Troubleshooting Hooks
714
+
715
+ If a hook isn't running:
716
+ 1. **Check the settings file** - Read ~/.claudio/settings.json or .claudio/settings.json
717
+ 2. **Verify JSON syntax** - Invalid JSON silently fails
718
+ 3. **Check the matcher** - Does it match the tool name? (e.g., "Bash", "Write", "Edit")
719
+ 4. **Check hook type** - Is it "command", "prompt", or "agent"?
720
+ 5. **Test the command** - Run the hook command manually to see if it works
721
+ 6. **Use --debug** - Run \`claude --debug\` to see hook execution logs
722
+ `;function wQ(){G0({name:"update-config",description:'Use this skill to configure the Claude Code harness via settings.json. Automated behaviors ("from now on when X", "each time X", "whenever X", "before/after X") require hooks configured in settings.json - the harness executes these, not Claude, so memory/preferences cannot fulfill them. Also use for: permissions ("allow X", "add permission", "move permission to"), env vars ("set X=Y"), hook troubleshooting, or any changes to settings.json/settings.local.json files. Examples: "allow npm commands", "add bq permission to global settings", "move permission to user settings", "set DEBUG=true", "when claude stops show X". For simple settings like theme/model, use Config tool.',allowedTools:["Read"],userInvocable:!0,async getPromptForCommand(q){if(q.startsWith("[hooks-only]")){let Q=q.slice(12).trim(),Y=IQ+`
723
+
724
+ `+yQ;if(Q)Y+=`
725
+
726
+ ## Task
727
+
728
+ ${Q}`;return[{type:"text",text:Y}]}let Z=D4(),J=y4;if(J+=`
729
+
730
+ ## Full Settings JSON Schema
731
+
732
+ \`\`\`json
733
+ ${Z}
734
+ \`\`\``,q)J+=`
735
+
736
+ ## User Request
737
+
738
+ ${q}`;return[{type:"text",text:J}]}})}function jQ(){wQ(),MQ(),HQ(),NQ(),ZQ(),PQ()}kY();iY();KY();qX();XQ();w4();o1();N9();v1();DX();o1();j4();k4();async function xQ(){if(!await AQ("gh"))return"not_installed";let{exitCode:Z}=await kQ("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return Z===0?"authenticated":"not_authenticated"}qY();k9();Rq();zY();QY();z6();MX();FX();UX();XX();yY();DY();eY();wX();WY();e();r4();pY();EQ();J0();A4();async function SQ(q,Z){let J=await OQ(q),Q=CQ(Z);for(let Y of J){if(Y.type!=="prompt")continue;F("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:Q,...Y.kind&&{skill_kind:Y.kind}})}}UY();gY();J0();x4();$q();zq();Bq();N9();y9();function uQ(q){q.command("add <name> <commandOrUrl> [args...]").description(`Add an MCP server to Claude Code.
739
+
740
+ Examples:
741
+ # Add HTTP server:
742
+ claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
743
+
744
+ # Add HTTP server with headers:
745
+ claude mcp add --transport http corridor https://app.corridor.dev/api/mcp --header "Authorization: Bearer ..."
746
+
747
+ # Add stdio server with environment variables:
748
+ claude mcp add -e API_KEY=xxx my-server -- npx my-mcp-server
749
+
750
+ # Add stdio server with subprocess flags:
751
+ claude mcp add my-server -- my-command --some-flag arg1`).option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").option("-t, --transport <transport>","Transport type (stdio, sse, http). Defaults to stdio if not specified.").option("-e, --env <env...>","Set environment variables (e.g. -e KEY=value)").option("-H, --header <header...>",'Set WebSocket headers (e.g. -H "X-Api-Key: abc123" -H "X-Custom: value")').option("--client-id <clientId>","OAuth client ID for HTTP/SSE servers").option("--client-secret","Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)").option("--callback-port <port>","Fixed port for OAuth callback (for servers requiring pre-registered redirect URIs)").helpOption("-h, --help","Display help for command").addOption(new D("--xaa","Enable XAA (SEP-990) for this server. Requires 'claude mcp xaa setup' first. Also requires --client-id and --client-secret (for the MCP server's AS).").hideHelp(!w9())).action(async(Z,J,Q,Y)=>{let W=J,$=Q;if(!Z)r(`Error: Server name is required.
752
+ Usage: claude mcp add <name> <command> [args...]`);else if(!W)r(`Error: Command is required when server name is provided.
753
+ Usage: claude mcp add <name> <command> [args...]`);try{let z=hQ(Y.scope),V=vQ(Y.transport);if(Y.xaa&&!w9())r("Error: --xaa requires CLAUDE_CODE_ENABLE_XAA=1 in your environment");let H=Boolean(Y.xaa);if(H){let M=[];if(!Y.clientId)M.push("--client-id");if(!Y.clientSecret)M.push("--client-secret");if(!n0())M.push("'claude mcp xaa setup' (settings.xaaIdp not configured)");if(M.length)r(`Error: --xaa requires: ${M.join(", ")}`)}let X=Y.transport!==void 0,K=W.startsWith("http://")||W.startsWith("https://")||W.startsWith("localhost")||W.endsWith("/sse")||W.endsWith("/mcp");if(F("tengu_mcp_add",{type:V,scope:z,source:"command",transport:V,transportExplicit:X,looksLikeUrl:K}),V==="sse"){if(!W)r("Error: URL is required for SSE transport.");let M=Y.header?Xq(Y.header):void 0,U=Y.callbackPort?parseInt(Y.callbackPort,10):void 0,j=Y.clientId||U||H?{...Y.clientId?{clientId:Y.clientId}:{},...U?{callbackPort:U}:{},...H?{xaa:!0}:{}}:void 0,O=Y.clientSecret&&Y.clientId?await Wq():void 0,u={type:"sse",url:W,headers:M,oauth:j};if(await H1(Z,u,z),O)Hq(Z,u,O);if(process.stdout.write(`Added SSE MCP server ${Z} with URL: ${W} to ${z} config
754
+ `),M)process.stdout.write(`Headers: ${T0(M,null,2)}
755
+ `)}else if(V==="http"){if(!W)r("Error: URL is required for HTTP transport.");let M=Y.header?Xq(Y.header):void 0,U=Y.callbackPort?parseInt(Y.callbackPort,10):void 0,j=Y.clientId||U||H?{...Y.clientId?{clientId:Y.clientId}:{},...U?{callbackPort:U}:{},...H?{xaa:!0}:{}}:void 0,O=Y.clientSecret&&Y.clientId?await Wq():void 0,u={type:"http",url:W,headers:M,oauth:j};if(await H1(Z,u,z),O)Hq(Z,u,O);if(process.stdout.write(`Added HTTP MCP server ${Z} with URL: ${W} to ${z} config
756
+ `),M)process.stdout.write(`Headers: ${T0(M,null,2)}
757
+ `)}else{if(Y.clientId||Y.clientSecret||Y.callbackPort||Y.xaa)process.stderr.write(`Warning: --client-id, --client-secret, --callback-port, and --xaa are only supported for HTTP/SSE transports and will be ignored for stdio.
758
+ `);if(!X&&K)process.stderr.write(`
759
+ Warning: The command "${W}" looks like a URL, but is being interpreted as a stdio server as --transport was not specified.
760
+ `),process.stderr.write(`If this is an HTTP server, use: claude mcp add --transport http ${Z} ${W}
761
+ `),process.stderr.write(`If this is an SSE server, use: claude mcp add --transport sse ${Z} ${W}
762
+ `);let M=bQ(Y.env);await H1(Z,{type:"stdio",command:W,args:$,env:M},z),process.stdout.write(`Added stdio MCP server ${Z} with command: ${W} ${$.join(" ")} to ${z} config
763
+ `)}k0(`File modified: ${fQ(z)}`)}catch(z){r(z.message)}})}function cQ(q){q.command("doctor [name]").description("Diagnose MCP configuration, precedence, disabled/pending state, and connection health. Note: unless --config-only is used, stdio servers may be spawned and remote servers may be contacted. Only use this command in directories you trust.").option("-s, --scope <scope>","Restrict config analysis to a specific scope (local, project, user, or enterprise)").option("--config-only","Skip live connection checks and only analyze configuration state").option("--json","Output the diagnostics report as JSON").action(async(Z,J)=>{let{mcpDoctorHandler:Q}=await import("./mcp-0.1.15-tw9s435t.mjs");await Q(Z,J)})}Bq();$9();e();function lQ(q){let Z=q.command("xaa").description("Manage the XAA (SEP-990) IdP connection");Z.command("setup").description("Configure the IdP connection (one-time setup for all XAA-enabled servers)").requiredOption("--issuer <url>","IdP issuer URL (OIDC discovery)").requiredOption("--client-id <id>","Claude Code's client_id at the IdP").option("--client-secret","Read IdP client secret from MCP_XAA_IDP_CLIENT_SECRET env var").option("--callback-port <port>","Fixed loopback callback port (only if IdP does not honor RFC 8252 port-any matching)").action((J)=>{let Q;try{Q=new URL(J.issuer)}catch{return r(`Error: --issuer must be a valid URL (got "${J.issuer}")`)}if(Q.protocol!=="https:"&&!(Q.protocol==="http:"&&(Q.hostname==="localhost"||Q.hostname==="127.0.0.1"||Q.hostname==="[::1]")))return r(`Error: --issuer must use https:// (got "${Q.protocol}//${Q.host}")`);let Y=J.callbackPort?parseInt(J.callbackPort,10):void 0;if(Y!==void 0&&(!Number.isInteger(Y)||Y<=0))return r("Error: --callback-port must be a positive integer");let W=J.clientSecret?process.env.MCP_XAA_IDP_CLIENT_SECRET:void 0;if(J.clientSecret&&!W)return r("Error: --client-secret requires MCP_XAA_IDP_CLIENT_SECRET env var");let $=n0(),z=$?.issuer,V=$?.clientId,{error:H}=S("userSettings",{xaaIdp:{issuer:J.issuer,clientId:J.clientId,callbackPort:Y}});if(H)return r(`Error writing settings: ${H.message}`);if(z){if(Vq(z)!==Vq(J.issuer))j9(z),z1(z);else if(V!==J.clientId)j9(z),z1(z)}if(W){let{success:X,warning:K}=gQ(J.issuer,W);if(!X)return r(`Error: settings written but keychain save failed${K?` — ${K}`:""}. Re-run with --client-secret once keychain is available.`)}k0(`XAA IdP connection configured for ${J.issuer}`)}),Z.command("login").description("Cache an IdP id_token so XAA-enabled MCP servers authenticate silently. Default: run the OIDC browser login. With --id-token: write a pre-obtained JWT directly (used by conformance/e2e tests where the mock IdP does not serve /authorize).").option("--force","Ignore any cached id_token and re-login (useful after IdP-side revocation)").option("--id-token <jwt>","Write this pre-obtained id_token directly to cache, skipping the OIDC browser login").action(async(J)=>{let Q=n0();if(!Q)return r("Error: no XAA IdP connection. Run 'claude mcp xaa setup' first.");if(J.idToken){let W=mQ(Q.issuer,J.idToken);return k0(`id_token cached for ${Q.issuer} (expires ${new Date(W).toISOString()})`)}if(J.force)j9(Q.issuer);if(Kq(Q.issuer)!==void 0)return k0(`Already logged in to ${Q.issuer} (cached id_token still valid). Use --force to re-login.`);process.stdout.write(`Opening browser for IdP login at ${Q.issuer}…
764
+ `);try{await dQ({idpIssuer:Q.issuer,idpClientId:Q.clientId,idpClientSecret:Gq(Q.issuer),callbackPort:Q.callbackPort,onAuthorizationUrl:(W)=>{process.stdout.write(`If the browser did not open, visit:
765
+ ${W}
766
+ `)}}),k0("Logged in. MCP servers with --xaa will now authenticate silently.")}catch(W){r(`IdP login failed: ${g(W)}`)}}),Z.command("show").description("Show the current IdP connection config").action(()=>{let J=n0();if(!J)return k0("No XAA IdP connection configured.");let Q=Gq(J.issuer)!==void 0,Y=Kq(J.issuer)!==void 0;if(process.stdout.write(`Issuer: ${J.issuer}
767
+ `),process.stdout.write(`Client ID: ${J.clientId}
768
+ `),J.callbackPort!==void 0)process.stdout.write(`Callback port: ${J.callbackPort}
769
+ `);process.stdout.write(`Client secret: ${Q?"(stored in keychain)":"(not set — PKCE-only)"}
770
+ `),process.stdout.write(`Logged in: ${Y?"yes (id_token cached)":"no — run 'claude mcp xaa login'"}
771
+ `),k0()}),Z.command("clear").description("Clear the IdP connection config and cached id_token").action(()=>{let J=n0(),{error:Q}=S("userSettings",{xaaIdp:void 0});if(Q)return r(`Error writing settings: ${Q.message}`);if(J)j9(J.issuer),z1(J.issuer);k0("XAA IdP connection cleared")})}mY();v3();$q();zq();Bq();PX();pZ();bY();VX();n4();p0();$9();t4();m1();RX();BY();o4();YX();ZY();YY();i0();J0();Z0();k9();e();function pQ(){let q=h();if(q.autoUpdates!==!1||q.autoUpdatesProtectedForNative===!0)return;try{let Z=a("userSettings")||{};S("userSettings",{...Z,env:{...Z.env,DISABLE_AUTOUPDATER:"1"}}),F("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!Z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",f((J)=>{let{autoUpdates:Q,autoUpdatesProtectedForNative:Y,...W}=J;return W})}catch(Z){l(Error(`Failed to migrate auto-updates: ${Z}`)),F("tengu_migrate_autoupdates_error",{has_error:!0})}}J0();Z0();k9();e();function aQ(){if(!h().bypassPermissionsModeAccepted)return;try{if(!$1())S("userSettings",{skipDangerousModePermissionPrompt:!0});F("tengu_migrate_bypass_permissions_accepted",{}),f((Z)=>{if(!("bypassPermissionsModeAccepted"in Z))return Z;let{bypassPermissionsModeAccepted:J,...Q}=Z;return Q})}catch(Z){l(Error(`Failed to migrate bypass permissions accepted: ${Z}`))}}J0();Z0();k9();e();function rQ(){let q=iQ(),Z=q.enableAllProjectMcpServers!==void 0,J=q.enabledMcpjsonServers&&q.enabledMcpjsonServers.length>0,Q=q.disabledMcpjsonServers&&q.disabledMcpjsonServers.length>0;if(!Z&&!J&&!Q)return;try{let Y=a("localSettings")||{},W={},$=[];if(Z&&Y.enableAllProjectMcpServers===void 0)W.enableAllProjectMcpServers=q.enableAllProjectMcpServers,$.push("enableAllProjectMcpServers");else if(Z)$.push("enableAllProjectMcpServers");if(J&&q.enabledMcpjsonServers){let z=Y.enabledMcpjsonServers||[];W.enabledMcpjsonServers=[...new Set([...z,...q.enabledMcpjsonServers])],$.push("enabledMcpjsonServers")}if(Q&&q.disabledMcpjsonServers){let z=Y.disabledMcpjsonServers||[];W.disabledMcpjsonServers=[...new Set([...z,...q.disabledMcpjsonServers])],$.push("disabledMcpjsonServers")}if(Object.keys(W).length>0)S("localSettings",W);if($.includes("enableAllProjectMcpServers")||$.includes("enabledMcpjsonServers")||$.includes("disabledMcpjsonServers"))sQ((z)=>{let{enableAllProjectMcpServers:V,enabledMcpjsonServers:H,disabledMcpjsonServers:X,...K}=z;return K});F("tengu_migrate_mcp_approval_fields_success",{migratedCount:$.length})}catch(Y){l(Y),F("tengu_migrate_mcp_approval_fields_error",{})}}J0();Z0();Rq();l0();e();function tQ(){if(V0()!=="firstParty")return;if(!nQ())return;let q=a("userSettings")?.model;if(q!=="claude-opus-4-20250514"&&q!=="claude-opus-4-1-20250805"&&q!=="claude-opus-4-0"&&q!=="claude-opus-4-1")return;S("userSettings",{model:"opus"}),f((Z)=>({...Z,legacyOpusMigrationTimestamp:Date.now()})),F("tengu_legacy_opus_migration",{from_model:q})}J0();Rq();e();function q6(){if(!eQ())return;if(a("userSettings")?.model!=="opus")return;let Z="opus[1m]",J=h0(Z)===h0(oQ())?void 0:Z;S("userSettings",{model:J}),F("tengu_opus_to_opus1m_migration",{})}Z0();function Z6(){f((q)=>{let Z=q.replBridgeEnabled;if(Z===void 0)return q;if(q.remoteControlAtStartup!==void 0)return q;let J={...q,remoteControlAtStartup:Boolean(Z)};return delete J.replBridgeEnabled,J})}i0();Z0();l0();e();function Q6(){if(V0()!=="firstParty")return;if(h().sonnet1m45MigrationComplete)return;if(a("userSettings")?.model==="sonnet[1m]")S("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(J6()==="sonnet[1m]")B1("sonnet-4-5-20250929[1m]");f((Q)=>({...Q,sonnet1m45MigrationComplete:!0}))}J0();Mq();Z0();l0();e();function W6(){if(V0()!=="firstParty")return;if(!V1()&&!Y6()&&!X6())return;let q=a("userSettings")?.model;if(q!=="claude-sonnet-4-5-20250929"&&q!=="claude-sonnet-4-5-20250929[1m]"&&q!=="sonnet-4-5-20250929"&&q!=="sonnet-4-5-20250929[1m]")return;let Z=q.endsWith("[1m]");if(S("userSettings",{model:Z?"sonnet[1m]":"sonnet"}),h().numStartups>1)f((Q)=>({...Q,sonnet45To46MigrationTimestamp:Date.now()}));F("tengu_sonnet45_to_46_migration",{from_model:q,has_1m:Z})}J0();Z0();k9();z6();e();function $6(){if(h().hasResetAutoModeOptInForDefaultOffer)return;if(H6()!=="enabled")return;try{let Z=a("userSettings");if(Z?.skipAutoPermissionPrompt&&Z?.permissions?.defaultMode!=="auto")S("userSettings",{skipAutoPermissionPrompt:void 0}),F("tengu_migrate_reset_auto_opt_in_for_default_offer",{});f((J)=>{if(J.hasResetAutoModeOptInForDefaultOffer)return J;return{...J,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(Z){l(Error(`Failed to reset auto mode opt-in: ${Z}`))}}J0();Mq();Z0();l0();e();function B6(){if(h().opusProMigrationComplete)return;if(V0()!=="firstParty"||!V1()){f((Q)=>({...Q,opusProMigrationComplete:!0})),F("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(v0()?.model===void 0){let Q=Date.now();f((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:Q})),F("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else f((Q)=>({...Q,opusProMigrationComplete:!0})),F("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}$9();y9();e1();zQ();var C4=I9(()=>s.object({session_id:s.string(),ws_url:s.string(),work_dir:s.string().optional()}));RJ();QX();SY();fY();LY();vY();GY();JY();iZ();LX();TX();IY();lY();JX();wY();aY();jX();q0();L("main_tsx_entry");Z2();F2();var M6=()=>(CY(),o0(xY)),kX=()=>(rY(),o0(sY)),AX=()=>(tY(),o0(nY)),oq=(cY(),o0(uY));var xX=($X(),o0(zX));L("main_tsx_imports_loaded");function CX(){try{let q=a("policySettings");if(q){let Z=Q2(q);F("tengu_managed_settings_loaded",{keyCount:Z.length,keys:Z.join(",")})}}catch{}}function OX(){let q=o6(),Z=process.execArgv.some((Q)=>{if(q)return/--inspect(-brk)?/.test(Q);else return/--inspect(-brk)?|--debug(-brk)?/.test(Q)}),J=process.env.NODE_OPTIONS&&/--inspect(-brk)?|--debug(-brk)?/.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Z||J}catch{return Z||J}}if(OX())process.exit(1);function F6(){let q=h0(qZ()??O9());SQ(E9(),R2(q,D6())),E3().then(({enabled:Z,errors:J})=>{let Q=O3();J3(Z,Q,C2()),Q3(J,Q)}).catch((Z)=>l(Z))}function EX(){let q={};if(process.env.NODE_EXTRA_CA_CERTS)q.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)q.has_client_cert=!0;if(yq("--use-system-ca"))q.has_use_system_ca=!0;if(yq("--use-openssl-ca"))q.has_use_openssl_ca=!0;return q}async function SX(){if(k2())return;let[q,Z,J]=await Promise.all([J1(),s6(),xQ()]);F("tengu_startup_telemetry",{is_git:q,worktree_count:Z,gh_auth_status:J,sandbox_enabled:F1.isSandboxingEnabled(),are_unsandboxed_commands_allowed:F1.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:F1.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:W2(),prefers_reduced_motion:t0().prefersReducedMotion??!1,...EX()})}var Dq=11;function bX(){if(h().migrationVersion!==Dq)pQ(),aQ(),rQ(),B6(),Q6(),tQ(),W6(),q6(),Z6(),$6(),f((q)=>q.migrationVersion===Dq?q:{...q,migrationVersion:Dq});s3().catch(()=>{})}function fX(){if(a0()){X0("info","prefetch_system_context_non_interactive"),K9();return}if(T1())X0("info","prefetch_system_context_has_trust"),K9();else X0("info","prefetch_system_context_skipped_no_trust")}function QZ(){if(i(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||x0())return;V3(),JZ(),fX(),G5();let q=P0()?.transport;if(q==="bedrock"&&!i(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))_2();if(q==="vertex"&&!i(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))L2();if(x2(E9(),AbortSignal.timeout(3000),[]),M5(),vJ(),K2(),w2.initialize(),!x0())K5.initialize()}function hX(q){try{let Z=q.trim(),J=Z.startsWith("{")&&Z.endsWith("}"),Q;if(J){if(!N1(Z))process.stderr.write(A.red(`Error: Invalid JSON provided to --settings
772
+ `)),process.exit(1);Q=I2("claude-settings",".json",{contentHash:Z}),g6(Q,Z,"utf8")}else{let{resolvedPath:Y}=d6(l6(),q);try{tq(Y,"utf8")}catch(W){if(W1(W))process.stderr.write(A.red(`Error: Settings file not found: ${Y}
773
+ `)),process.exit(1);throw W}Q=Y}A6(Q),eq()}catch(Z){if(Z instanceof Error)l(Z);process.stderr.write(A.red(`Error processing settings: ${g(Z)}
774
+ `)),process.exit(1)}}function vX(q){try{let Z=t6(q);x6(Z),eq()}catch(Z){if(Z instanceof Error)l(Z);process.stderr.write(A.red(`Error processing --setting-sources: ${g(Z)}
775
+ `)),process.exit(1)}}function uX(){L("eagerLoadSettings_start");let q=nq("--settings");if(q)hX(q);let Z=nq("--setting-sources");if(Z!==void 0)vX(Z);L("eagerLoadSettings_end")}function cX(q){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let Z=process.argv.slice(2),J=Z.indexOf("mcp");if(J!==-1&&Z[J+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(i(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=q?"sdk-cli":"cli"}async function WG(){L("main_function_start"),process.env.NoDefaultCurrentDirectoryInExePath="1",gJ(),process.on("exit",()=>{lX()}),process.on("SIGINT",()=>{if(process.argv.includes("-p")||process.argv.includes("--print"))return;process.exit(0)}),L("main_warning_handler_initialized");let q=process.argv.slice(2),Z=q.includes("-p")||q.includes("--print"),J=q.includes("--init-only"),Q=q.some((V)=>V.startsWith("--sdk-url")),Y=Z||J||Q||!process.stdout.isTTY;if(Y)N2();y6(!Y),cX(Y);let $=(()=>{if(i(process.env.GITHUB_ACTIONS))return"github-action";if(process.env.CLAUDE_CODE_ENTRYPOINT==="sdk-ts")return"sdk-typescript";if(process.env.CLAUDE_CODE_ENTRYPOINT==="sdk-py")return"sdk-python";if(process.env.CLAUDE_CODE_ENTRYPOINT==="sdk-cli")return"sdk-cli";if(process.env.CLAUDE_CODE_ENTRYPOINT==="claude-vscode")return"claude-vscode";if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return"local-agent";if(process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop")return"claude-desktop";let V=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN||process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(process.env.CLAUDE_CODE_ENTRYPOINT==="remote"||V)return"remote";return"cli"})();w6($);let z=process.env.CLAUDE_CODE_QUESTION_PREVIEW_FORMAT;if(z==="markdown"||z==="html")Iq(z);else if(!$.startsWith("sdk-")&&$!=="claude-desktop"&&$!=="local-agent"&&$!=="remote")Iq("markdown");if(process.env.CLAUDE_CODE_ENVIRONMENT_KIND==="bridge")k6("remote-control");L("main_client_type_determined"),uX(),L("main_before_run"),await gX(),L("main_after_run")}async function mX(q,Z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(Z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let J="",Q=(W)=>{J+=W};process.stdin.on("data",Q);let Y=await p6(process.stdin,3000);if(process.stdin.off("data",Q),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
776
+ `);return[q,J].filter(Boolean).join(`
777
+ `)}return q}async function gX(){L("run_function_start");function q(){let H=(X)=>X.long?.replace(/^--/,"")??X.short?.replace(/^-/,"")??"";return Object.assign({sortSubcommands:!0,sortOptions:!0},{compareOptions:(X,K)=>H(X).localeCompare(H(K))})}let Z=new fJ().configureHelp(q()).enablePositionalOptions();if(L("run_commander_initialized"),Z.hook("preAction",async(H)=>{if(await Promise.all([J2(),U2()]),await UJ(),L("preAction_after_init"),!i(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE))process.title="claudio";let{initSinks:X}=await import("./sinks-0.1.15-npqf68gv.mjs");X(),L("preAction_after_sinks");let K=H.getOptionValue("pluginDir");if(Array.isArray(K)&&K.length>0&&K.every((M)=>typeof M==="string"))C6(K),S3("preAction: --plugin-dir inline plugins");bX(),L("preAction_after_migrations");try{let{runClaudioStartupMigrations:M}=(R6(),o0(G6));M()}catch(M){T(`[startup-migrations] failed: ${M instanceof Error?M.message:String(M)}`)}L("preAction_after_claudio_migrations"),$3(),W3(),L("preAction_after_remote_settings"),L("preAction_after_settings_sync")}),Z.name("claude").description("Claude Code - starts an interactive session by default, use -p/--print for non-interactive output").argument("[prompt]","Your prompt",String).helpOption("-h, --help","Display help for command").option("-d, --debug [filter]",'Enable debug mode with optional category filtering (e.g., "api,hooks" or "!1p,!file")',(H)=>{return!0}).addOption(new D("-d2e, --debug-to-stderr","Enable debug mode (to stderr)").argParser(Boolean).hideHelp()).option("--debug-file <path>","Write debug logs to a specific file path (implicitly enables debug mode)",()=>!0).option("--verbose","Override verbose mode setting from config",()=>!0).option("-p, --print","Print response and exit (useful for pipes). Note: The workspace trust dialog is skipped when Claude is run with the -p mode. Only use this flag in directories you trust.",()=>!0).option("--bare","Minimal mode: skip hooks, LSP, plugin sync, attribution, auto-memory, background prefetches, keychain reads, and CLAUDE.md auto-discovery. Sets CLAUDE_CODE_SIMPLE=1. Anthropic auth is strictly ANTHROPIC_API_KEY or apiKeyHelper via --settings (OAuth and keychain are never read). 3P providers (Bedrock/Vertex/Foundry) use their own credentials. Skills still resolve via /skill-name. Explicitly provide context via: --system-prompt[-file], --append-system-prompt[-file], --add-dir (CLAUDE.md dirs), --mcp-config, --settings, --agents, --plugin-dir.",()=>!0).addOption(new D("--init","Run Setup hooks with init trigger, then continue").hideHelp()).addOption(new D("--init-only","Run Setup and SessionStart:startup hooks, then exit").hideHelp()).addOption(new D("--maintenance","Run Setup hooks with maintenance trigger, then continue").hideHelp()).addOption(new D("--output-format <format>",'Output format (only works with --print): "text" (default), "json" (single result), or "stream-json" (realtime streaming)').choices(["text","json","stream-json"])).addOption(new D("--json-schema <schema>",'JSON Schema for structured output validation. Example: {"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}').argParser(String)).option("--include-hook-events","Include all hook lifecycle events in the output stream (only works with --output-format=stream-json)",()=>!0).option("--include-partial-messages","Include partial message chunks as they arrive (only works with --print and --output-format=stream-json)",()=>!0).addOption(new D("--input-format <format>",'Input format (only works with --print): "text" (default), or "stream-json" (realtime streaming input)').choices(["text","stream-json"])).option("--mcp-debug","[DEPRECATED. Use --debug instead] Enable MCP debug mode (shows MCP server errors)",()=>!0).option("--dangerously-skip-permissions","Bypass all permission checks. Recommended only for sandboxes with no internet access.",()=>!0).option("--allow-dangerously-skip-permissions","Enable bypassing all permission checks as an option, without it being enabled by default. Recommended only for sandboxes with no internet access.",()=>!0).addOption(new D("--thinking <mode>","Thinking mode: enabled (equivalent to adaptive), disabled").choices(["enabled","adaptive","disabled"]).hideHelp()).addOption(new D("--max-thinking-tokens <tokens>","[DEPRECATED. Use --thinking instead for newer models] Maximum number of thinking tokens (only works with --print)").argParser(Number).hideHelp()).addOption(new D("--max-turns <turns>","Maximum number of agentic turns in non-interactive mode. This will early exit the conversation after the specified number of turns. (only works with --print)").argParser(Number).hideHelp()).addOption(new D("--max-budget-usd <amount>","Maximum dollar amount to spend on API calls (only works with --print)").argParser((H)=>{let X=Number(H);if(isNaN(X)||X<=0)throw Error("--max-budget-usd must be a positive number greater than 0");return X})).addOption(new D("--task-budget <tokens>","API-side task budget in tokens (output_config.task_budget)").argParser((H)=>{let X=Number(H);if(isNaN(X)||X<=0||!Number.isInteger(X))throw Error("--task-budget must be a positive integer");return X}).hideHelp()).option("--replay-user-messages","Re-emit user messages from stdin back on stdout for acknowledgment (only works with --input-format=stream-json and --output-format=stream-json)",()=>!0).addOption(new D("--enable-auth-status","Enable auth status messages in SDK mode").default(!1).hideHelp()).option("--allowedTools, --allowed-tools <tools...>",'Comma or space-separated list of tool names to allow (e.g. "Bash(git:*) Edit")').option("--tools <tools...>",'Specify the list of available tools from the built-in set. Use "" to disable all tools, "default" to use all tools, or specify tool names (e.g. "Bash,Edit,Read").').option("--disallowedTools, --disallowed-tools <tools...>",'Comma or space-separated list of tool names to deny (e.g. "Bash(git:*) Edit")').option("--mcp-config <configs...>","Load MCP servers from JSON files or strings (space-separated)").addOption(new D("--permission-prompt-tool <tool>","MCP tool to use for permission prompts (only works with --print)").argParser(String).hideHelp()).addOption(new D("--system-prompt <prompt>","System prompt to use for the session").argParser(String)).addOption(new D("--system-prompt-file <file>","Read system prompt from a file").argParser(String).hideHelp()).addOption(new D("--append-system-prompt <prompt>","Append a system prompt to the default system prompt").argParser(String)).addOption(new D("--append-system-prompt-file <file>","Read system prompt from a file and append to the default system prompt").argParser(String).hideHelp()).addOption(new D("--permission-mode <mode>","Permission mode to use for the session").argParser(String).choices(q2)).option("-c, --continue","Continue the most recent conversation in the current directory",()=>!0).option("-r, --resume [value]","Resume a conversation by session ID, or open interactive picker with optional search term",(H)=>H||!0).option("--fork-session","When resuming, create a new session ID instead of reusing the original (use with --resume or --continue)",()=>!0).addOption(new D("--prefill <text>","Pre-fill the prompt input with text without submitting it").hideHelp()).addOption(new D("--deep-link-origin","Signal that this session was launched from a deep link").hideHelp()).addOption(new D("--deep-link-repo <slug>","Repo slug the deep link ?repo= parameter resolved to the current cwd").hideHelp()).addOption(new D("--deep-link-last-fetch <ms>","FETCH_HEAD mtime in epoch ms, precomputed by the deep link trampoline").argParser((H)=>{let X=Number(H);return Number.isFinite(X)?X:void 0}).hideHelp()).option("--from-pr [value]","Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term",(H)=>H||!0).option("--no-session-persistence","Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print)").addOption(new D("--resume-session-at <message id>","When resuming, only messages up to and including the assistant message with <message.id> (use with --resume in print mode)").argParser(String).hideHelp()).addOption(new D("--rewind-files <user-message-id>","Restore files to state at the specified user message and exit (requires --resume)").hideHelp()).option("--model <model>","Model for the current session. Provide an alias for the latest model (e.g. 'sonnet' or 'opus') or a model's full name (e.g. 'claude-sonnet-4-6').").option("--provider <provider>","AI provider to use (anthropic, openai, gemini, github, bedrock, vertex, ollama). Reads API keys from environment variables.").addOption(new D("--effort <level>","Effort level for the current session (low, medium, high, max)").argParser((H)=>{let X=H.toLowerCase(),K=["low","medium","high","max"];if(!K.includes(X))throw new bJ(`It must be one of: ${K.join(", ")}`);return X})).option("--agent <agent>","Agent for the current session. Overrides the 'agent' setting.").option("--betas <betas...>","Beta headers to include in API requests (API key users only)").option("--fallback-model <model>","Enable automatic fallback to specified model when default model is overloaded (only works with --print)").option("--settings <file-or-json>","Path to a settings JSON file or a JSON string to load additional settings from").option("--add-dir <directories...>","Additional directories to allow tool access to").option("--ide","Automatically connect to IDE on startup if exactly one valid IDE is available",()=>!0).option("--strict-mcp-config","Only use MCP servers from --mcp-config, ignoring all other MCP configurations",()=>!0).option("--session-id <uuid>","Use a specific session ID for the conversation (must be a valid UUID)").option("-n, --name <name>","Set a display name for this session (shown in /resume and terminal title)").option("--agents <json>",`JSON object defining custom agents (e.g. '{"reviewer": {"description": "Reviews code", "prompt": "You are a code reviewer"}}')`).option("--setting-sources <sources>","Comma-separated list of setting sources to load (user, project, local).").option("--plugin-dir <path>","Load plugins from a directory for this session only (repeatable: --plugin-dir A --plugin-dir B)",(H,X)=>[...X,H],[]).option("--disable-slash-commands","Disable all skills",()=>!0).option("--file <specs...>","File resources to download at startup. Format: file_id:relative_path (e.g., --file file_abc:doc.txt file_def:img.png)").action(async(H,X)=>{if(L("action_handler_start"),X.bare)process.env.CLAUDE_CODE_SIMPLE="1";if(H==="code")F("tengu_code_prompt_ignored",{}),console.warn(A.yellow("Tip: You can launch Claude Code with just `claude`")),H=void 0;if(H&&typeof H==="string"&&!/\s/.test(H)&&H.length>0)F("tengu_single_word_prompt",{length:H.length});let K=!1,M,{debug:U=!1,debugToStderr:j=!1,dangerouslySkipPermissions:O,allowDangerouslySkipPermissions:u=!1,tools:M0=[],allowedTools:W0=[],disallowedTools:C0=[],mcpConfig:I0=[],permissionMode:F0,addDir:U0=[],fallbackModel:G9,betas:HZ=[],ide:w1=!1,sessionId:R9,includeHookEvents:zZ,includePartialMessages:$Z}=X;if(X.prefill)T2(X.prefill);let j1,BZ=X.agents,k1=X.agent,y0=X.outputFormat,L0=X.inputFormat,h9=X.verbose??h().verbose,VZ=X.print,KZ=X.init??!1,A1=X.initOnly??!1,GZ=X.maintenance??!1,x1=X.disableSlashCommands||!1,Q7=void 0,C1=gq()?X.worktree:void 0,v9=typeof C1==="string"?C1:void 0,e0=C1!==void 0,RZ;if(v9){let B=W5(v9);if(B!==null)RZ=B,v9=void 0}let MZ=gq()&&X.tmux===!0;if(MZ){if(!e0)process.stderr.write(A.red(`Error: --tmux requires --worktree
778
+ `)),process.exit(1);if(Z1()==="windows")process.stderr.write(A.red(`Error: --tmux is not supported on Windows
779
+ `)),process.exit(1);if(!await H5())process.stderr.write(A.red(`Error: tmux is not installed.
780
+ ${z5()}
781
+ `)),process.exit(1)}let _0;if(V9()){let B=pX(X);_0=B;let R=B.agentId||B.agentName||B.teamName,P=B.agentId&&B.agentName&&B.teamName;if(R&&!P)process.stderr.write(A.red(`Error: --agent-id, --agent-name, and --team-name must all be provided together
782
+ `)),process.exit(1);if(B.agentId&&B.agentName&&B.teamName)M6().setDynamicTeamContext?.({agentId:B.agentId,agentName:B.agentName,teamName:B.teamName,color:B.agentColor,planModeRequired:B.planModeRequired??!1,parentSessionId:B.parentSessionId});if(B.teammateMode)AX().setCliTeammateModeOverride?.(B.teammateMode)}let u9=X.sdkUrl??void 0,FZ=$Z||i(process.env.CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES);if(zZ||i(process.env.CLAUDE_CODE_REMOTE))C3(!0);if(u9){if(!L0)L0="stream-json";if(!y0)y0="stream-json";if(X.verbose===void 0)h9=!0;if(!X.print)VZ=!0}let H0=X.teleport??null,UZ=X.remote,q9=UZ===!0?"":UZ??null,O1=X.remoteControl??X.rc,LZ=!1,Y7=typeof O1==="string"&&O1.length>0?O1:void 0;if(R9){if((X.continue||X.resume)&&!X.forkSession)process.stderr.write(A.red(`Error: --session-id can only be used with --continue or --resume if --fork-session is also specified.
783
+ `)),process.exit(1);if(!u9){let B=U1(R9);if(!B)process.stderr.write(A.red(`Error: Invalid session ID. Must be a valid UUID.
784
+ `)),process.exit(1);if(q5(B))process.stderr.write(A.red(`Error: Session ID ${B} is already in use.
785
+ `)),process.exit(1)}}let E1=X.file;if(E1&&E1.length>0){let B=R3();if(!B)process.stderr.write(A.red(`Error: Session token required for file downloads. CLAUDE_CODE_SESSION_ACCESS_TOKEN must be set.
786
+ `)),process.exit(1);let R=process.env.CLAUDE_CODE_REMOTE_SESSION_ID||L6(),P=U3(E1);if(P.length>0){let y={baseUrl:(P0()?.transport==="anthropic"?P0()?.baseUrl:void 0)||r9().BASE_API_URL,oauthToken:B,sessionId:R};j1=F3(P,y)}}let z0=a0();if(G9&&X.model&&G9===X.model)process.stderr.write(A.red(`Error: Fallback model cannot be the same as the main model. Please specify a different model for --fallback-model.
787
+ `)),process.exit(1);let Z9=X.systemPrompt;if(X.systemPromptFile){if(X.systemPrompt)process.stderr.write(A.red(`Error: Cannot use both --system-prompt and --system-prompt-file. Please use only one.
788
+ `)),process.exit(1);try{let B=A9(X.systemPromptFile);Z9=tq(B,"utf8")}catch(B){if(wq(B)==="ENOENT")process.stderr.write(A.red(`Error: System prompt file not found: ${A9(X.systemPromptFile)}
789
+ `)),process.exit(1);process.stderr.write(A.red(`Error reading system prompt file: ${g(B)}
790
+ `)),process.exit(1)}}let w0=X.appendSystemPrompt;if(X.appendSystemPromptFile){if(X.appendSystemPrompt)process.stderr.write(A.red(`Error: Cannot use both --append-system-prompt and --append-system-prompt-file. Please use only one.
791
+ `)),process.exit(1);try{let B=A9(X.appendSystemPromptFile);w0=tq(B,"utf8")}catch(B){if(wq(B)==="ENOENT")process.stderr.write(A.red(`Error: Append system prompt file not found: ${A9(X.appendSystemPromptFile)}
792
+ `)),process.exit(1);process.stderr.write(A.red(`Error reading append system prompt file: ${g(B)}
793
+ `)),process.exit(1)}}if(V9()&&_0?.agentId&&_0?.agentName&&_0?.teamName){let B=kX().TEAMMATE_SYSTEM_PROMPT_ADDENDUM;w0=w0?`${w0}
794
+
795
+ ${B}`:B}let{mode:c0,notification:_Z}=m3({permissionModeCli:F0,dangerouslySkipPermissions:O});if(O6(c0==="bypassPermissions"),X.enableAutoMode||F0==="auto"||c0==="auto"||!F0&&a3())xX?.setAutoModeFlagCli(!0);let m0={};if(I0&&I0.length>0){let B=I0.map((w)=>w.trim()).filter((w)=>w.length>0),R={},P=[];for(let w of B){let y=null,I=[],m=N1(w);if(m){let E=s2({configObject:m,filePath:"command line",expandVars:!0,scope:"dynamic"});if(E.config)y=E.config.mcpServers;else I=E.errors}else{let E=A9(w),_=r2({filePath:E,expandVars:!0,scope:"dynamic"});if(_.config)y=_.config.mcpServers;else I=_.errors}if(I.length>0)P.push(...I);else if(y)R={...R,...y}}if(P.length>0){let w=P.map((y)=>`${y.path?y.path+": ":""}${y.message}`).join(`
796
+ `);T(`--mcp-config validation failed (${P.length} errors): ${w}`,{level:"error"}),process.stderr.write(`Error: Invalid MCP configuration:
797
+ ${w}
798
+ `),process.exit(1)}if(Object.keys(R).length>0){let w=Object.entries(R).filter(([,_])=>_.type!=="sdk").map(([_])=>_),y=null;if(y)process.stderr.write(`Error: ${y}
799
+ `),process.exit(1);let I=A2(R,(_)=>({..._,scope:"dynamic"})),{allowed:m,blocked:E}=vq(I);if(E.length>0)process.stderr.write(`Warning: MCP ${x9(E.length,"server")} blocked by enterprise policy: ${E.join(", ")}
800
+ `);m0={...m0,...m}}}let c9=X.strictMcpConfig||!1;if(uq()){if(c9)process.stderr.write(A.red("You cannot use --strict-mcp-config when an enterprise MCP config is present")),process.exit(1);if(m0&&!n2(m0))process.stderr.write(A.red("You cannot dynamically configure MCP servers when an enterprise MCP config is present")),process.exit(1)}h6(U0);let X7,PZ=await g3({allowedToolsCli:W0,disallowedToolsCli:C0,baseToolsCli:M0,permissionMode:c0,allowDangerouslySkipPermissions:u,addDirs:U0}),j0=PZ.toolPermissionContext,{warnings:W7,dangerousPermissions:H7,overlyBroadBashPermissions:S1}=PZ;if(H7.length>0)j0=c3(j0);W7.forEach((B)=>{console.error(B)}),G3();let NZ=z0&&!c9&&!uq()&&!x0()?d2().then((B)=>{let{allowed:R,blocked:P}=vq(B);if(P.length>0)process.stderr.write(`Warning: claude.ai MCP ${x9(P.length,"server")} blocked by enterprise policy: ${P.join(", ")}
801
+ `);return R}):Promise.resolve({});T("[STARTUP] Loading MCP configs...");let z7=Date.now(),$7,B7=(c9||x0()?Promise.resolve({servers:{}}):i2(m0)).then((B)=>{return $7=Date.now()-z7,B});if(L0&&L0!=="text"&&L0!=="stream-json")console.error(`Error: Invalid input format "${L0}".`),process.exit(1);if(L0==="stream-json"&&y0!=="stream-json")console.error("Error: --input-format=stream-json requires output-format=stream-json."),process.exit(1);if(u9){if(L0!=="stream-json"||y0!=="stream-json")console.error("Error: --sdk-url requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(X.replayUserMessages){if(L0!=="stream-json"||y0!=="stream-json")console.error("Error: --replay-user-messages requires both --input-format=stream-json and --output-format=stream-json."),process.exit(1)}if(FZ){if(!z0||y0!=="stream-json")jq("Error: --include-partial-messages requires --print and --output-format=stream-json."),process.exit(1)}if(X.sessionPersistence===!1&&!z0)jq("Error: --no-session-persistence can only be used with --print mode."),process.exit(1);let B0=await mX(H||"",L0??"text");L("action_after_input_prompt"),K1(X);let M9=A3(j0);if(i(process.env.CLAUDE_CODE_COORDINATOR_MODE)){let{applyCoordinatorToolFilter:B}=await import("./toolPool-0.1.15-wej7eaff.mjs");M9=B(M9)}L("action_tools_loaded");let J9;if(c2({isNonInteractiveSession:z0})&&X.jsonSchema)J9=m6(X.jsonSchema);if(J9){let B=m2(J9);if("tool"in B)M9=[...M9,B.tool],F("tengu_structured_output_enabled",{schema_property_count:Object.keys(J9.properties||{}).length,has_required_fields:Boolean(J9.required)});else F("tengu_structured_output_failure",{error:"Invalid JSON schema"})}L("action_before_setup"),T("[STARTUP] Running setup()...");let V7=Date.now(),{setup:K7}=await import("./setup-0.1.15-6znmc2q6.mjs"),G7=void 0,m9=E9();if(process.env.CLAUDE_CODE_ENTRYPOINT!=="local-agent")iJ(),jQ();let R7=K7(m9,c0,u,e0,v9,MZ,R9?U1(R9):void 0,RZ,G7),TZ=e0?null:sq(m9),DZ=e0?null:fq(m9);TZ?.catch(()=>{}),DZ?.catch(()=>{}),await R7,T(`[STARTUP] setup() completed in ${Date.now()-V7}ms`),L("action_after_setup");let M7=!!X.replayUserMessages;if(a0())S0(),K9(),JZ(),H2();let g9=X.name?.trim();if(g9)J5(g9);let F7=X.model==="default"?O9():X.model,U7=G9==="default"?O9():G9,b1=e0?E9():m9;T("[STARTUP] Loading commands and agents...");let L7=Date.now(),[d9,IZ]=await Promise.all([TZ??sq(b1),DZ??fq(b1)]);T(`[STARTUP] Commands and agents loaded in ${Date.now()-L7}ms`),L("action_commands_loaded");let f1=[];if(BZ)try{let B=N1(BZ);if(B)f1=S2(B,"flagSettings")}catch(B){l(B)}let yZ=[...IZ.allAgents,...f1],Q9={...IZ,allAgents:yZ,activeAgents:E2(yZ)},l9=k1??t0().agent,C;if(l9){if(C=Q9.activeAgents.find((B)=>B.agentType===l9),!C)T(`Warning: agent "${l9}" not found. Available agents: ${Q9.activeAgents.map((B)=>B.agentType).join(", ")}. Using default behavior.`)}if(b6(C?.agentType),C)F("tengu_agent_flag",{agentType:bq(C)?C.agentType:"custom",...k1&&{source:"cli"}});if(C?.agentType)Z5(C.agentType);if(z0&&C&&!Z9&&!bq(C)){let B=C.getSystemPrompt();if(B)Z9=B}if(C?.initialPrompt){if(typeof B0==="string")B0=B0?`${C.initialPrompt}
802
+
803
+ ${B0}`:C.initialPrompt;else if(!B0)B0=C.initialPrompt}let F9=F7;if(!F9&&C?.model&&C.model!=="inherit")F9=h0(C.model);B1(F9),T6(B2()||null);let wZ=qZ(),U9=h0(wZ??O9()),g0;if(L1()){let B=_1()?X.advisor:void 0;if(B){if(T(`[AdvisorTool] --advisor ${B}`),!t2(U9))process.stderr.write(A.red(`Error: The model "${U9}" does not support the advisor tool.
804
+ `)),process.exit(1);let R=V2(h0(B));if(!o2(R))process.stderr.write(A.red(`Error: The model "${B}" cannot be used as an advisor.
805
+ `)),process.exit(1)}if(g0=_1()?B??e2():B,g0)T(`[AdvisorTool] Advisor model: ${g0}`)}if(V9()&&_0?.agentId&&_0?.agentName&&_0?.teamName&&_0?.agentType){let B=Q9.activeAgents.find((R)=>R.agentType===_0.agentType);if(B){let R;if(B.source==="built-in")T(`[teammate] Built-in agent ${_0.agentType} - skipping custom prompt (not supported)`);else R=B.getSystemPrompt();if(B.memory)F("tengu_agent_memory_loaded",{scope:B.memory,source:"teammate"});if(R){let P=`
806
+ # Custom Agent Instructions
807
+ ${R}`;w0=w0?`${w0}
808
+
809
+ ${P}`:P}}else T(`[teammate] Custom agent ${_0.agentType} not found in available agents`)}G1(X);let v,Y9,X9;if(!z0){let B=_5(!1);Y9=B.getFpsMetrics,X9=B.stats;let{createRoot:R}=await import("./ink-0.1.15-rd56fvsx.mjs");v=await R(B.renderOptions),F("tengu_timer",{event:"startup",durationMs:Math.round(process.uptime()*1000)});let P=Date.now(),w=await L5(v,c0,u,d9,X7);if(w&&H?.trim().toLowerCase()==="/login")H="";if(w)B3(),H3(),K3(),v6(),import("./trustedDevice-0.1.15-t9sax8yq.mjs").then((I)=>{return I.clearTrustedDeviceToken(),I.enrollTrustedDevice()});try{let{getActiveProviderProfile:I,getProviderProfiles:m}=await import("./providerProfiles-0.1.15-v7p3m9kf.mjs");if(!(m().length>0||Boolean(I()))&&!w){let{showSetupDialog:_}=await import("./interactiveHelpers-0.1.15-z5nx1rw2.mjs"),{ProviderManager:k}=await import("./ProviderManager-0.1.15-t8sezf1q.mjs");await _(v,(t)=>N(k,{mode:"first-run",onDone:()=>t()}))}}catch(I){T(`[provider-wizard] auto-wizard failed: ${I instanceof Error?I.message:String(I)}`)}try{let{tryGetActiveProvider:I}=await import("./activeProvider-0.1.15-1fp1bec5.mjs");if(I()&&process.stdout.isTTY&&process.env.CLAUDIO_NO_CLEAR_ON_START!=="1"){let{clearTerminal:m}=await import("./clearTerminal-0.1.15-qycj6c0p.mjs");process.stdout.write(m)}}catch(I){T(`[startup-clear] failed: ${I instanceof Error?I.message:String(I)}`)}let y=await Cq();if(!y.valid)await D0(v,y.message)}if(process.exitCode!==void 0){T("Graceful shutdown initiated, skipping further initialization");return}if(D3())I3();if(!z0){let{errors:B}=Y2(),R=B.filter((w)=>!w.mcpErrorMetadata),P=P0()?.transport;if(R.length>0&&P!=="openai_compat"&&P!=="codex_responses"&&P!=="github_copilot")await dJ(v,{settingsErrors:R,onExit:()=>b0(1)})}let h1=R1("tengu_cicada_nap_ms",0),p9=h().startupPrefetchedAt??0,_7=x0()||h1>0&&Date.now()-p9<h1;if(i3(),G2(),!_7){let B=p9>0?` last ran ${Math.round((Date.now()-p9)/1000)}s ago`:"";if(T(`Starting background startup prefetches${B}`),b2().catch((R)=>l(R)),o3(),t3(),!R1("tengu_miraculo_the_bard",!1))$2();else xq();if(h1>0)f((R)=>({...R,startupPrefetchedAt:Date.now()}))}else T(`Skipping startup prefetches, last ran ${Math.round((Date.now()-p9)/1000)}s ago`),xq();if(!z0)$5();let{servers:P7}=await B7,jZ={...P7,...m0},kZ={},W9={};for(let[B,R]of Object.entries(jZ)){let P=R;if(P.type==="sdk")kZ[B]=P;else W9[B]=P}L("action_mcp_configs_loaded");let N7=z0?Promise.resolve({clients:[],tools:[],commands:[]}):aq(W9),T7=z0?Promise.resolve({clients:[],tools:[],commands:[]}):NZ.then((B)=>Object.keys(B).length>0?aq(B):{clients:[],tools:[],commands:[]}),D7=Promise.all([N7,T7]).then(([B,R])=>({clients:[...B.clients,...R.clients],tools:C9([...B.tools,...R.tools],"name"),commands:C9([...B.commands,...R.commands],"name")})),AZ=A1||KZ||GZ||z0||X.continue||X.resume?null:P1("startup",{agentType:C?.agentType,model:U9}),a9=[];D7.catch(()=>{});let xZ=[],CZ=[],OZ=[],H9=O2(),O0=H9!==!1?{type:"adaptive"}:{type:"disabled"};if(X.thinking==="adaptive"||X.thinking==="enabled")H9=!0,O0={type:"adaptive"};else if(X.thinking==="disabled")H9=!1,O0={type:"disabled"};else{let B=process.env.MAX_THINKING_TOKENS?parseInt(process.env.MAX_THINKING_TOKENS,10):X.maxThinkingTokens;if(B!==void 0){if(B>0)H9=!0,O0={type:"enabled",budgetTokens:B};else if(B===0)H9=!1,O0={type:"disabled"}}}if(X0("info","started",{version:"99.0.0",is_native_binary:e6()}),P9(async()=>{X0("info","exited")}),dX({hasInitialPrompt:Boolean(H),hasStdin:Boolean(B0),verbose:h9,debug:U,debugToStderr:j,print:VZ??!1,outputFormat:y0??"text",inputFormat:L0??"text",numAllowedTools:W0.length,numDisallowedTools:C0.length,mcpClientCount:Object.keys(jZ).length,worktreeEnabled:e0,skipWebFetchPreflight:t0().skipWebFetchPreflight,githubActionInputs:process.env.GITHUB_ACTION_INPUTS,dangerouslySkipPermissionsPassed:O??!1,permissionMode:c0,modeIsBypass:c0==="bypassPermissions",allowDangerouslySkipPermissionsPassed:u,systemPromptFlag:Z9?X.systemPromptFile?"file":"flag":void 0,appendSystemPromptFlag:w0?X.appendSystemPromptFile?"file":"flag":void 0,thinkingConfig:O0,assistantActivationPath:void 0}),u3(W9,j0),CX(),w3().then((B)=>{if(!B)return;if(g9)j3(g9);k3().then((R)=>{if(R>=2)F("tengu_concurrent_sessions",{num_sessions:R})})}),x0());else if(z0)await lq(),L("action_after_plugins_init"),dq().then(()=>mq());else lq().then(async()=>{L("action_after_plugins_init"),await dq(),mq()});let EZ=A1||KZ?"init":GZ?"maintenance":null;if(A1){S0(),await M3("init",{forceSyncExecution:!0}),await P1("startup",{forceSyncExecution:!0}),b0(0);return}if(z0){if(y0==="stream-json"||y0==="json")a6(!0);S0(),n9();let B=X.continue||X.resume||H0||EZ?void 0:P1("startup");B?.catch(()=>{}),L("before_validateForceLoginOrg");let R=await Cq();if(!R.valid)process.stderr.write(R.message+`
810
+ `),process.exit(1);let P=x1?[]:d9.filter((x)=>x.type==="prompt"&&!x.disableNonInteractive||x.type==="local"&&x.supportsNonInteractive),w=u2(),y={...w,mcp:{...w.mcp,clients:xZ,commands:OZ,tools:CZ},toolPermissionContext:j0,effortValue:Eq(X.effort)??Sq(),...z2()&&{fastMode:Aq(F9??null)},...L1()&&g0&&{advisorModel:g0},...{}},I=y2(y,b9);if(j0.mode==="bypassPermissions"||u)p3(j0);if(d3(j0,I.getState().fastMode).then(({updateContext:x})=>{I.setState((Q0)=>{let d=x(Q0.toolPermissionContext);if(d===Q0.toolPermissionContext)return Q0;return{...Q0,toolPermissionContext:d}})}),X.sessionPersistence===!1)E6(!0);I6(M2(HZ));let m=(x,Q0)=>{if(Object.keys(x).length===0)return Promise.resolve();return I.setState((d)=>({...d,mcp:{...d.mcp,clients:[...d.mcp.clients,...Object.entries(x).map(([Y0,n])=>({name:Y0,type:"pending",config:n}))]}})),h3(({client:d,tools:Y0,commands:n})=>{I.setState((b)=>({...b,mcp:{...b.mcp,clients:b.mcp.clients.some((o)=>o.name===d.name)?b.mcp.clients.map((o)=>o.name===d.name?d:o):[...b.mcp.clients,d],tools:C9([...b.mcp.tools,...Y0],"name"),commands:C9([...b.mcp.commands,...n],"name")}}))},x).catch((d)=>T(`[MCP] ${Q0} connect error: ${d}`))};L("before_connectMcp"),await m(W9,"regular"),L("after_connectMcp");let E=5000,_=NZ.then((x)=>{if(Object.keys(x).length>0){let Y0=new Set;for(let b of Object.values(x)){let o=hq(b);if(o)Y0.add(o)}let n=new Set;for(let[b,o]of Object.entries(W9)){if(!b.startsWith("plugin:"))continue;let E0=hq(o);if(E0&&Y0.has(E0))n.add(b)}if(n.size>0){T(`[MCP] Lazy dedup: suppressing ${n.size} plugin server(s) that duplicate claude.ai connectors: ${[...n].join(", ")}`);for(let b of I.getState().mcp.clients){if(!n.has(b.name)||b.type!=="connected")continue;b.client.onclose=void 0,f3(b.name,b.config).catch(()=>{})}I.setState((b)=>{let{clients:o,tools:E0,commands:_9,resources:z9}=b.mcp;o=o.filter((d0)=>!n.has(d0.name)),E0=E0.filter((d0)=>!d0.mcpInfo||!n.has(d0.mcpInfo.serverName));for(let d0 of n)_9=l2(_9,d0),z9=p2(z9,d0);return{...b,mcp:{...b.mcp,clients:o,tools:E0,commands:_9,resources:z9}}})}}let Q0=U6(W9,(Y0,n)=>!n.startsWith("plugin:")),{servers:d}=a2(x,Q0);return m(d,"claudeai")}),k,t=await Promise.race([_.then(()=>!1),new Promise((x)=>{k=setTimeout((Q0)=>Q0(!0),E,x)})]);if(k)clearTimeout(k);if(t)T(`[MCP] claude.ai connectors not ready after ${E}ms — proceeding; background connection continues`);if(L("after_connectMcp_claudeai"),!x0())QZ(),import("./backgroundHousekeeping-0.1.15-sbv1p8kj.mjs").then((x)=>x.startBackgroundHousekeeping());F6(),L("before_print_import");let{runHeadless:p}=await import("./print-0.1.15-64y2p7wj.mjs");L("after_print_import"),p(B0,()=>I.getState(),I.setState,P,M9,kZ,Q9.activeAgents,{continue:X.continue,resume:X.resume,verbose:h9,outputFormat:y0,jsonSchema:J9,permissionPromptToolName:X.permissionPromptTool,allowedTools:W0,thinkingConfig:O0,maxTurns:X.maxTurns,maxBudgetUsd:X.maxBudgetUsd,taskBudget:X.taskBudget?{total:X.taskBudget}:void 0,systemPrompt:Z9,appendSystemPrompt:w0,userSpecifiedModel:F9,fallbackModel:U7,teleport:H0,sdkUrl:u9,replayUserMessages:M7,includePartialMessages:FZ,forkSession:X.forkSession||!1,resumeSessionAt:X.resumeSessionAt||void 0,rewindFiles:X.rewindFiles,enableAuthStatus:X.enableAuthStatus,agent:k1,setupTrigger:EZ??void 0,sessionStartHooksPromise:B});return}F("tengu_startup_manual_model_config",{cli_flag:X.model,env_var:P0()?.model,settings_file:(t0()||{}).model,subscriptionType:P2(),agent:l9});let SZ=R5(U9),i9=[];if(_Z)i9.push({key:"permission-mode-notification",text:_Z,priority:"high"});if(SZ)i9.push({key:"model-deprecation-warning",text:SZ,color:"warning",priority:"high"});if(S1.length>0){let B=kq(S1.map((y)=>y.ruleDisplay)),R=B.join(", "),P=kq(S1.map((y)=>y.sourceDisplay)).join(", "),w=B.length;i9.push({key:"overly-broad-bash-notification",text:`${R} allow ${x9(w,"rule")} from ${P} ${x9(w,"was","were")} ignored — not available for Ants, please use auto-mode instead`,color:"warning",priority:"high"})}let I7={...j0,mode:V9()&&M6().isPlanModeRequired()?"plan":j0.mode},y7=!1,w7=LZ||X2()||K,bZ=!1,L9={settings:t0(),tasks:{},agentNameRegistry:new Map,verbose:h9??h().verbose??!1,mainLoopModel:wZ,mainLoopModelForSession:null,isBriefOnly:y7,expandedView:h().showSpinnerTree?"teammates":h().showExpandedTodos?"tasks":"none",showTeammateMessagePreview:V9()?!1:void 0,selectedIPAgentIndex:-1,coordinatorTaskIndex:-1,viewSelectionMode:"none",footerSelection:null,toolPermissionContext:I7,agent:C?.agentType,agentDefinitions:Q9,mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:0},plugins:{enabled:[],disabled:[],commands:[],errors:[],installationStatus:{marketplaces:[],plugins:[]},needsRefresh:!1},statusLineText:void 0,kairosEnabled:K,remoteSessionUrl:void 0,remoteConnectionStatus:"connecting",remoteBackgroundTaskCount:0,replBridgeEnabled:w7||bZ,replBridgeExplicit:LZ,replBridgeOutboundOnly:bZ,replBridgeConnected:!1,replBridgeSessionActive:!1,replBridgeReconnecting:!1,replBridgeConnectUrl:void 0,replBridgeSessionUrl:void 0,replBridgeEnvironmentId:void 0,replBridgeSessionId:void 0,replBridgeError:void 0,replBridgeInitialName:Y7,showRemoteCallout:!1,notifications:{current:null,queue:i9},elicitation:{queue:[]},todos:{},remoteAgentTaskSuggestions:[],fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},attribution:h2(),thinkingEnabled:H9,promptSuggestionEnabled:f2(),sessionHooks:new Map,inbox:{messages:[]},promptSuggestion:{text:null,promptId:null,shownAt:0,acceptedAt:0,generationRequestId:null},speculation:v2,speculationSessionTimeSavedMs:0,skillImprovement:{suggestion:null},workerSandboxPermissions:{queue:[],selectedIndex:0},pendingWorkerRequest:null,pendingSandboxRequest:null,authVersion:0,initialMessage:B0?{message:pq({content:String(B0)})}:null,effortValue:Eq(X.effort)??Sq(),activeOverlays:new Set,fastMode:Aq(U9),...L1()&&g0&&{advisorModel:g0},teamContext:V5?.()};if(B0)x3(String(B0));let j7=CZ;f((B)=>({...B,numStartups:(B.numStartups??0)+1})),setImmediate(()=>{SX(),F6()});let fZ=null,s9={debug:U||j,commands:[...d9,...OZ],initialTools:j7,mcpClients:xZ,autoConnectIdeFlag:w1,mainThreadAgentDefinition:C,disableSlashCommands:x1,dynamicMcpConfig:m0,strictMcpConfig:c9,systemPrompt:Z9,appendSystemPrompt:w0,taskListId:Q7,thinkingConfig:O0,...fZ&&{onTurnComplete:(B)=>{fZ.then((R)=>R?.(B))}}},hZ={modeApi:oq,mainThreadAgentDefinition:C,agentDefinitions:Q9,currentCwd:b1,cliAgents:f1,initialState:L9};if(X.continue){let B=!1;try{let R=performance.now(),{clearSessionCaches:P}=await import("./caches-0.1.15-tynjvd5a.mjs");P();let w=await cq(void 0,void 0);if(!w)return F("tengu_continue",{success:!1}),await D0(v,"No conversation found to continue");let y=await rq(w,{forkSession:!!X.forkSession,includeAttribution:!0,transcriptPath:w.fullPath},hZ);if(y.restoredAgentDef)C=y.restoredAgentDef;K1(X),G1(X),F("tengu_continue",{success:!0,resume_duration_ms:Math.round(performance.now()-R)}),B=!0,await D9(v,{getFpsMetrics:Y9,stats:X9,initialState:y.initialState},{...s9,mainThreadAgentDefinition:y.restoredAgentDef??C,initialMessages:y.messages,initialFileHistorySnapshots:y.fileHistorySnapshots,initialContentReplacements:y.contentReplacements,initialAgentName:y.agentName,initialAgentColor:y.agentColor},r0)}catch(R){if(!B)F("tengu_continue",{success:!1});return l(R),await D0(v,g(R),()=>R0(1))}}else if(X.resume||X.fromPr||H0||q9!==null){let{clearSessionCaches:B}=await import("./caches-0.1.15-tynjvd5a.mjs");B();let R=null,P=void 0,w=U1(X.resume),y=void 0,I=null,m=void 0;if(X.fromPr){if(X.fromPr===!0)m=!0;else if(typeof X.fromPr==="string")m=X.fromPr}if(X.resume&&typeof X.resume==="string"&&!w){let _=X.resume.trim();if(_){let k=await X5(_,{exact:!0});if(k.length===1)I=k[0],w=Y5(I)??null;else y=_}}if(q9!==null||H0){if(await Y3(),!X3("allow_remote_sessions"))return await D0(v,"Error: Remote sessions are disabled by your organization's policy.",()=>R0(1))}if(q9!==null){let _=q9.length>0,k=R1("tengu_remote_backend",!1);if(!k&&!_)return await D0(v,`Error: --remote requires a description.
811
+ Usage: claude --remote "your task description"`,()=>R0(1));F("tengu_remote_create_session",{has_initial_prompt:String(_)});let t=await i6(),p=await T3(v,_?q9:null,new AbortController().signal,t||void 0);if(!p)return F("tengu_remote_create_session_error",{error:"unable_to_create_session"}),await D0(v,"Error: Unable to create remote session",()=>R0(1));if(F("tengu_remote_create_session_success",{session_id:p.id}),!k)process.stdout.write(`Created remote session: ${p.title}
812
+ `),process.stdout.write(`View: ${Oq(p.id)}?m=0
813
+ `),process.stdout.write(`Resume with: claude --teleport ${p.id}
814
+ `),await R0(0),process.exit(0);f6(!0),_6(g2(p.id));let x;try{x=await q3()}catch(z9){return l(c6(z9)),await D0(v,`Error: ${g(z9)||"Failed to authenticate"}`,()=>R0(1))}let{getClaudeAIOAuthTokens:Q0}=await import("./auth-0.1.15-x6bxj6d1.mjs"),d=()=>Q0()?.accessToken??x.accessToken,Y0=B5(p.id,d,x.orgUUID,_),n=`${Oq(p.id)}?m=0`,b=b3(`/remote-control is active. Code in CLI or at ${n}`,"info"),o=_?pq({content:q9}):null,E0={...L9,remoteSessionUrl:n},_9=e3(d9);await D9(v,{getFpsMetrics:Y9,stats:X9,initialState:E0},{debug:U||j,commands:_9,initialTools:[],initialMessages:o?[b,o]:[b],mcpClients:[],autoConnectIdeFlag:w1,mainThreadAgentDefinition:C,disableSlashCommands:x1,remoteSessionConfig:Y0,thinkingConfig:O0},r0);return}else if(H0){if(H0===!0||H0===""){F("tengu_teleport_interactive_mode",{}),T("selectAndResumeTeleportTask: Starting teleport flow...");let _=await lJ(v);if(!_)await R0(0),process.exit(0);let{branchError:k}=await P3(_.branch);R=_3(_.log,k)}else if(typeof H0==="string"){F("tengu_teleport_resume_session",{mode:"direct"});try{let _=await Z3(H0),k=await N3(_);if(k.status==="mismatch"||k.status==="not_in_repo"){let x=k.sessionRepo;if(x){let Q0=F5(x),d=await U5(Q0);if(d.length>0){let Y0=await pJ(v,{targetRepo:x,initialPaths:d});if(Y0)process.chdir(Y0),y3(Y0),N6(Y0);else await R0(0)}else throw new M1(`You must run claude --teleport ${H0} from a checkout of ${x}.`,A.red(`You must run claude --teleport ${H0} from a checkout of ${A.bold(x)}.
815
+ `))}}else if(k.status==="error")throw new M1(k.errorMessage||"Failed to validate session",A.red(`Error: ${k.errorMessage||"Failed to validate session"}
816
+ `));await L3();let{teleportWithProgress:t}=await import("./TeleportProgress-0.1.15-gad6kpfq.mjs"),p=await t(v,H0);S6({sessionId:H0}),R=p.messages}catch(_){if(_ instanceof M1)process.stderr.write(_.formattedMessage+`
817
+ `);else l(_),process.stderr.write(A.red(`Error: ${g(_)}
818
+ `));await R0(1)}}}if(w){let _=w;try{let k=performance.now(),t=await cq(I??_,void 0);if(!t)return F("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),await D0(v,`No conversation found with session ID: ${_}`);let p=I?.fullPath??t.fullPath;if(P=await rq(t,{forkSession:!!X.forkSession,sessionIdOverride:_,transcriptPath:p},hZ),P.restoredAgentDef)C=P.restoredAgentDef;F("tengu_session_resumed",{entrypoint:"cli_flag",success:!0,resume_duration_ms:Math.round(performance.now()-k)})}catch(k){F("tengu_session_resumed",{entrypoint:"cli_flag",success:!1}),l(k),await D0(v,g(k))}}if(j1)try{let _=await j1,k=r6(_,(t)=>!t.success);if(k>0)process.stderr.write(A.yellow(`Warning: ${k}/${_.length} file(s) failed to download.
819
+ `))}catch(_){return await D0(v,`Error downloading files: ${g(_)}`)}let E=P??(Array.isArray(R)?{messages:R,fileHistorySnapshots:void 0,agentName:void 0,agentColor:void 0,restoredAgentDef:C,initialState:L9,contentReplacements:void 0}:void 0);if(E)K1(X),G1(X),await D9(v,{getFpsMetrics:Y9,stats:X9,initialState:E.initialState},{...s9,mainThreadAgentDefinition:E.restoredAgentDef??C,initialMessages:E.messages,initialFileHistorySnapshots:E.fileHistorySnapshots,initialContentReplacements:E.contentReplacements,initialAgentName:E.agentName,initialAgentColor:E.agentColor},r0);else await aJ(v,{getFpsMetrics:Y9,stats:X9,initialState:L9},r3(P6()),{...s9,initialSearchQuery:y,forkSession:X.forkSession,filterByPr:m})}else{let B=AZ&&a9.length===0?AZ:void 0;L("action_after_hooks"),K1(X),G1(X),Q5(oq?.isCoordinatorMode()?"coordinator":"normal");let R=null,P=R?[R,...a9]:a9.length>0?a9:void 0;await D9(v,{getFpsMetrics:Y9,stats:X9,initialState:L9},{...s9,initialMessages:P,pendingHookMessages:B},r0)}}).version("0.1.15 (Claudio)","-v, --version","Output the version number"),Z.option("-w, --worktree [name]","Create a new git worktree for this session (optionally specify a name)"),Z.option("--tmux","Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux."),_1())Z.addOption(new D("--advisor <model>","Enable the server-side advisor tool with the specified model (alias or full ID).").hideHelp());Z.addOption(new D("--enable-auto-mode","Opt in to auto mode").hideHelp()),Z.addOption(new D("--agent-id <id>","Teammate agent ID").hideHelp()),Z.addOption(new D("--agent-name <name>","Teammate display name").hideHelp()),Z.addOption(new D("--team-name <name>","Team name for swarm coordination").hideHelp()),Z.addOption(new D("--agent-color <color>","Teammate UI color").hideHelp()),Z.addOption(new D("--plan-mode-required","Require plan mode before implementation").hideHelp()),Z.addOption(new D("--parent-session-id <id>","Parent session ID for analytics correlation").hideHelp()),Z.addOption(new D("--teammate-mode <mode>",'How to spawn teammates: "tmux", "in-process", or "auto"').choices(["auto","tmux","in-process"]).hideHelp()),Z.addOption(new D("--agent-type <type>","Custom agent type for this teammate").hideHelp()),Z.addOption(new D("--sdk-url <url>","Use remote WebSocket endpoint for SDK I/O streaming (only with -p and stream-json format)").hideHelp()),Z.addOption(new D("--teleport [session]","Resume a teleport session, optionally specify session ID").hideHelp()),Z.addOption(new D("--remote [description]","Create a remote session with the given description").hideHelp()),L("run_main_options_built");let J=process.argv.includes("-p")||process.argv.includes("--print"),Q=process.argv.some((H)=>H.startsWith("cc://")||H.startsWith("cc+unix://"));if(J&&!Q)return L("run_before_parse"),await Z.parseAsync(process.argv),L("run_after_parse"),Z;let Y=Z.command("mcp").description("Configure and manage MCP servers").configureHelp(q()).enablePositionalOptions();if(Y.command("serve").description("Start the Claude Code MCP server").option("-d, --debug","Enable debug mode",()=>!0).option("--verbose","Override verbose mode setting from config",()=>!0).action(async({debug:H,verbose:X})=>{let{mcpServeHandler:K}=await import("./mcp-0.1.15-tw9s435t.mjs");await K({debug:H,verbose:X})}),uQ(Y),cQ(Y),w9())lQ(Y);Y.command("remove <name>").description("Remove an MCP server").option("-s, --scope <scope>","Configuration scope (local, user, or project) - if not specified, removes from whichever scope it exists in").action(async(H,X)=>{let{mcpRemoveHandler:K}=await import("./mcp-0.1.15-tw9s435t.mjs");await K(H,X)}),Y.command("list").description("List configured MCP servers. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async()=>{let{mcpListHandler:H}=await import("./mcp-0.1.15-tw9s435t.mjs");await H()}),Y.command("get <name>").description("Get details about an MCP server. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async(H)=>{let{mcpGetHandler:X}=await import("./mcp-0.1.15-tw9s435t.mjs");await X(H)}),Y.command("add-json <name> <json>").description("Add an MCP server (stdio or SSE) with a JSON string").option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").option("--client-secret","Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)").action(async(H,X,K)=>{let{mcpAddJsonHandler:M}=await import("./mcp-0.1.15-tw9s435t.mjs");await M(H,X,K)}),Y.command("add-from-claude-desktop").description("Import MCP servers from Claude Desktop (Mac and WSL only)").option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").action(async(H)=>{let{mcpAddFromDesktopHandler:X}=await import("./mcp-0.1.15-tw9s435t.mjs");await X(H)}),Y.command("reset-project-choices").description("Reset all approved and rejected project-scoped (.mcp.json) servers within this project").action(async()=>{let{mcpResetChoicesHandler:H}=await import("./mcp-0.1.15-tw9s435t.mjs");await H()});let W=Z.command("auth").description("Manage authentication").configureHelp(q());W.command("login").description("Sign in to your Anthropic account").option("--email <email>","Pre-populate email address on the login page").option("--sso","Force SSO login flow").option("--console","Use Anthropic Console (API usage billing) instead of Claude subscription").option("--claudeai","Use Claude subscription (default)").action(async({email:H,sso:X,console:K,claudeai:M})=>{let{authLogin:U}=await import("./auth-0.1.15-ddyv63ax.mjs");await U({email:H,sso:X,console:K,claudeai:M})}),W.command("status").description("Show authentication status").option("--json","Output as JSON (default)").option("--text","Output as human-readable text").action(async(H)=>{let{authStatus:X}=await import("./auth-0.1.15-ddyv63ax.mjs");await X(H)}),W.command("logout").description("Log out from your Anthropic account").action(async()=>{let{authLogout:H}=await import("./auth-0.1.15-ddyv63ax.mjs");await H()});let $=()=>new D("--cowork","Use cowork_plugins directory").hideHelp(),z=Z.command("plugin").alias("plugins").description("Manage Claude Code plugins").configureHelp(q());z.command("validate <path>").description("Validate a plugin or marketplace manifest").addOption($()).action(async(H,X)=>{let{pluginValidateHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),z.command("list").description("List installed plugins").option("--json","Output as JSON").option("--available","Include available plugins from marketplaces (requires --json)").addOption($()).action(async(H)=>{let{pluginListHandler:X}=await import("./plugins-0.1.15-3rpwr86v.mjs");await X(H)});let V=z.command("marketplace").description("Manage Claude Code marketplaces").configureHelp(q());if(V.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").addOption($()).option("--sparse <paths...>","Limit checkout to specific directories via git sparse-checkout (for monorepos). Example: --sparse .claude-plugin plugins").option("--scope <scope>","Where to declare the marketplace: user (default), project, or local").action(async(H,X)=>{let{marketplaceAddHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),V.command("list").description("List all configured marketplaces").option("--json","Output as JSON").addOption($()).action(async(H)=>{let{marketplaceListHandler:X}=await import("./plugins-0.1.15-3rpwr86v.mjs");await X(H)}),V.command("remove <name>").alias("rm").description("Remove a configured marketplace").addOption($()).action(async(H,X)=>{let{marketplaceRemoveHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),V.command("update [name]").description("Update marketplace(s) from their source - updates all if no name specified").addOption($()).action(async(H,X)=>{let{marketplaceUpdateHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),z.command("install <plugin>").alias("i").description("Install a plugin from available marketplaces (use plugin@marketplace for specific marketplace)").option("-s, --scope <scope>","Installation scope: user, project, or local","user").addOption($()).action(async(H,X)=>{let{pluginInstallHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),z.command("uninstall <plugin>").alias("remove").alias("rm").description("Uninstall an installed plugin").option("-s, --scope <scope>","Uninstall from scope: user, project, or local","user").option("--keep-data","Preserve the plugin's persistent data directory (~/.claudio/plugins/data/{id}/)").addOption($()).action(async(H,X)=>{let{pluginUninstallHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),z.command("enable <plugin>").description("Enable a disabled plugin").option("-s, --scope <scope>",`Installation scope: ${iq.join(", ")} (default: auto-detect)`).addOption($()).action(async(H,X)=>{let{pluginEnableHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),z.command("disable [plugin]").description("Disable an enabled plugin").option("-a, --all","Disable all enabled plugins").option("-s, --scope <scope>",`Installation scope: ${iq.join(", ")} (default: auto-detect)`).addOption($()).action(async(H,X)=>{let{pluginDisableHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),z.command("update <plugin>").description("Update a plugin to the latest version (restart required to apply)").option("-s, --scope <scope>",`Installation scope: ${n3.join(", ")} (default: user)`).addOption($()).action(async(H,X)=>{let{pluginUpdateHandler:K}=await import("./plugins-0.1.15-3rpwr86v.mjs");await K(H,X)}),Z.command("setup-token").description("Set up a long-lived authentication token (requires Claude subscription)").action(async()=>{let[{setupTokenHandler:H},{createRoot:X}]=await Promise.all([import("./util-0.1.15-vs1eanbw.mjs"),import("./ink-0.1.15-rd56fvsx.mjs")]),K=await X(S9(!1));await H(K)}),Z.command("agents").description("List configured agents").option("--setting-sources <sources>","Comma-separated list of setting sources to load (user, project, local).").action(async()=>{let{agentsHandler:H}=await import("./agents-0.1.15-vkekdkan.mjs");await H(),process.exit(0)}),l3()!=="disabled"){let H=Z.command("auto-mode").description("Inspect auto mode classifier configuration");H.command("defaults").description("Print the default auto mode environment, allow, and deny rules as JSON").action(async()=>{let{autoModeDefaultsHandler:X}=await import("./autoMode-0.1.15-p9r45wxy.mjs");X(),process.exit(0)}),H.command("config").description("Print the effective auto mode config as JSON: your settings where set, defaults otherwise").action(async()=>{let{autoModeConfigHandler:X}=await import("./autoMode-0.1.15-p9r45wxy.mjs");X(),process.exit(0)}),H.command("critique").description("Get AI feedback on your custom auto mode rules").option("--model <model>","Override which model is used").action(async(X)=>{let{autoModeCritiqueHandler:K}=await import("./autoMode-0.1.15-p9r45wxy.mjs");await K(X),process.exit()})}return Z.command("doctor").description("Check the health of your Claude Code auto-updater. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async()=>{let[{doctorHandler:H},{createRoot:X}]=await Promise.all([import("./util-0.1.15-vs1eanbw.mjs"),import("./ink-0.1.15-rd56fvsx.mjs")]),K=await X(S9(!1));await H(K)}),Z.command("update").alias("upgrade").description("Check for updates and install if available").action(async()=>{let{update:H}=await import("./update-0.1.15-jtd1h3e7.mjs");await H()}),Z.command("install [target]").description("Install Claude Code native build. Use [target] to specify version (stable, latest, or specific version)").option("--force","Force installation even if already installed").action(async(H,X)=>{let{installHandler:K}=await import("./util-0.1.15-vs1eanbw.mjs");await K(H,X)}),L("run_before_parse"),await Z.parseAsync(process.argv),L("run_after_parse"),L("main_after_run"),n6(),Z}async function dX({hasInitialPrompt:q,hasStdin:Z,verbose:J,debug:Q,debugToStderr:Y,print:W,outputFormat:$,inputFormat:z,numAllowedTools:V,numDisallowedTools:H,mcpClientCount:X,worktreeEnabled:K,skipWebFetchPreflight:M,githubActionInputs:U,dangerouslySkipPermissionsPassed:j,permissionMode:O,modeIsBypass:u,allowDangerouslySkipPermissionsPassed:M0,systemPromptFlag:W0,appendSystemPromptFlag:C0,thinkingConfig:I0,assistantActivationPath:F0}){try{F("tengu_init",{entrypoint:"claude",hasInitialPrompt:q,hasStdin:Z,verbose:J,debug:Q,debugToStderr:Y,print:W,outputFormat:$,inputFormat:z,numAllowedTools:V,numDisallowedTools:H,mcpClientCount:X,worktree:K,skipWebFetchPreflight:M,...U&&{githubActionInputs:U},dangerouslySkipPermissionsPassed:j,permissionMode:O,modeIsBypass:u,inProtectedNamespace:u6(),allowDangerouslySkipPermissionsPassed:M0,thinkingType:I0.type,...W0&&{systemPromptFlag:W0},...C0&&{appendSystemPromptFlag:C0},is_simple:x0()||void 0,is_coordinator:oq?.isCoordinatorMode()?!0:void 0,...F0&&{assistantActivationPath:F0},autoUpdatesChannel:t0().autoUpdatesChannel??"latest"})}catch(U0){l(U0)}}function K1(q){}function G1(q){return}function lX(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(D2)}function pX(q){if(typeof q!=="object"||q===null)return{};let Z=q,J=Z.teammateMode;return{agentId:typeof Z.agentId==="string"?Z.agentId:void 0,agentName:typeof Z.agentName==="string"?Z.agentName:void 0,teamName:typeof Z.teamName==="string"?Z.teamName:void 0,agentColor:typeof Z.agentColor==="string"?Z.agentColor:void 0,planModeRequired:typeof Z.planModeRequired==="boolean"?Z.planModeRequired:void 0,parentSessionId:typeof Z.parentSessionId==="string"?Z.parentSessionId:void 0,teammateMode:J==="auto"||J==="tmux"||J==="in-process"?J:void 0,agentType:typeof Z.agentType==="string"?Z.agentType:void 0}}ZZ();v1();JW();J0();e();aX();D5();var y5=o9(YZ(),1);N5();q0();var T5=o9(YZ(),1);function I1(){let q=T5.c(1),Z;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Z=u0(D1,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",N(P5,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),q[0]=Z;else Z=q[0];return Z}q0();function w5(q){let Z=y5.c(13),{serverName:J,onDone:Q}=q,Y;if(Z[0]!==Q||Z[1]!==J)Y=function(U){F("tengu_mcp_dialog_choice",{choice:U});q:switch(U){case"yes":case"yes_all":{let O=(v0()||{}).enabledMcpjsonServers||[];if(!O.includes(J))S("localSettings",{enabledMcpjsonServers:[...O,J]});if(U==="yes_all")S("localSettings",{enableAllProjectMcpServers:!0});Q();break q}case"no":{let O=(v0()||{}).disabledMcpjsonServers||[];if(!O.includes(J))S("localSettings",{disabledMcpjsonServers:[...O,J]});Q()}}},Z[0]=Q,Z[1]=J,Z[2]=Y;else Y=Z[2];let W=Y,$=`New MCP server found in .mcp.json: ${J}`,z;if(Z[3]!==W)z=()=>W("no"),Z[3]=W,Z[4]=z;else z=Z[4];let V;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))V=N(I1,{}),Z[5]=V;else V=Z[5];let H;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))H=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],Z[6]=H;else H=Z[6];let X;if(Z[7]!==W)X=N(I5,{options:H,onChange:(M)=>W(M),onCancel:()=>W("no")}),Z[7]=W,Z[8]=X;else X=Z[8];let K;if(Z[9]!==$||Z[10]!==z||Z[11]!==X)K=u0(y1,{title:$,color:"warning",onCancel:z,children:[V,X]}),Z[9]=$,Z[10]=z,Z[11]=X,Z[12]=K;else K=Z[12];return K}tX();J0();N5();e();sX();nX();rX();D5();iX();var E5=o9(YZ(),1);q0();function S5(q){let Z=E5.c(21),{serverNames:J,onDone:Q}=q,Y;if(Z[0]!==Q||Z[1]!==J)Y=function(u){let M0=v0()||{},W0=M0.enabledMcpjsonServers||[],C0=M0.disabledMcpjsonServers||[],[I0,F0]=O5(J,(U0)=>u.includes(U0));if(F("tengu_mcp_multidialog_choice",{approved:I0.length,rejected:F0.length}),I0.length>0){let U0=[...new Set([...W0,...I0])];S("localSettings",{enabledMcpjsonServers:U0})}if(F0.length>0){let U0=[...new Set([...C0,...F0])];S("localSettings",{disabledMcpjsonServers:U0})}Q()},Z[0]=Q,Z[1]=J,Z[2]=Y;else Y=Z[2];let W=Y,$;if(Z[3]!==Q||Z[4]!==J)$=()=>{let u=(v0()||{}).disabledMcpjsonServers||[],M0=[...new Set([...u,...J])];S("localSettings",{disabledMcpjsonServers:M0}),Q()},Z[3]=Q,Z[4]=J,Z[5]=$;else $=Z[5];let z=$,V=`${J.length} new MCP servers found in .mcp.json`,H;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))H=N(I1,{}),Z[6]=H;else H=Z[6];let X;if(Z[7]!==J)X=J.map(oX),Z[7]=J,Z[8]=X;else X=Z[8];let K;if(Z[9]!==z||Z[10]!==W||Z[11]!==J||Z[12]!==X)K=N(C5,{options:X,defaultValue:J,onSubmit:W,onCancel:z,hideIndexes:!0}),Z[9]=z,Z[10]=W,Z[11]=J,Z[12]=X,Z[13]=K;else K=Z[13];let M;if(Z[14]!==z||Z[15]!==V||Z[16]!==K)M=u0(y1,{title:V,subtitle:"Select any you wish to enable.",color:"warning",onCancel:z,hideInputGuide:!0,children:[H,K]}),Z[14]=z,Z[15]=V,Z[16]=K,Z[17]=M;else M=Z[17];let U;if(Z[18]===Symbol.for("react.memo_cache_sentinel"))U=N(k5,{paddingX:1,children:N(D1,{dimColor:!0,italic:!0,children:u0(x5,{children:[N(XZ,{shortcut:"Space",action:"select"}),N(XZ,{shortcut:"Enter",action:"confirm"}),N(A5,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),Z[18]=U;else U=Z[18];let j;if(Z[19]!==M)j=u0(j5,{children:[M,U]}),Z[19]=M,Z[20]=j;else j=Z[20];return j}function oX(q){return{label:q,value:q}}t1();h5();$q();zq();q0();async function v5(q){let{servers:Z}=f5("project"),J=Object.keys(Z).filter((Q)=>b5(Q)==="pending");if(J.length===0)return;await new Promise((Q)=>{let Y=()=>void Q();if(J.length===1&&J[0]!==void 0){let W=J[0];q.render(N(f9,{children:N(s0,{children:N(w5,{serverName:W,onDone:Y})})}))}else q.render(N(f9,{children:N(s0,{children:N(S5,{serverNames:J,onDone:Y})})}))})}h5();eX();ZW();Z0();YW();Z0();p0();N9();class WZ{frameDurations=[];firstRenderTime;lastRenderTime;record(q){let Z=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=Z;this.lastRenderTime=Z,this.frameDurations.push(q)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let q=this.lastRenderTime-this.firstRenderTime;if(q<=0)return;let J=this.frameDurations.length/(q/1000),Q=this.frameDurations.slice().sort((z,V)=>V-z),Y=Math.max(0,Math.ceil(Q.length*0.01)-1),W=Q[Y],$=W>0?1000/W:0;return{averageFps:Math.round(J*100)/100,low1PctFps:Math.round($*100)/100}}}l0();z3();QW();e();q0();function WW(){f((q)=>({...q,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function HW(q,Z){return new Promise((J)=>{let Q=(Y)=>void J(Y);q.render(Z(Q))})}async function D0(q,Z,J){return zW(q,Z,{color:"error",beforeExit:J})}async function zW(q,Z,J){let{Text:Q}=await import("./ink-0.1.15-rd56fvsx.mjs"),Y=J?.color,W=J?.exitCode??1;q.render(Y?N(Q,{color:Y,children:Z}):N(Q,{children:Z})),q.unmount(),await J?.beforeExit?.(),process.exit(W)}function K0(q,Z,J){return HW(q,(Q)=>N(f9,{onChangeAppState:J?.onChangeAppState,children:N(s0,{children:Z(Q)})}))}async function r0(q,Z){q.render(Z),QZ(),await q.waitUntilExit(),await R0(0)}async function L5(q,Z,J,Q,Y){if(i(!1)||process.env.IS_DEMO)return!1;let W=a5(),$=!1;if(q7()){let{MigrationDialog:V}=await import("./MigrationDialog-0.1.15-6x3bjqw1.mjs");await K0(q,(H)=>N(V,{onDone:()=>void H()}))}let z=h();if(W&&(!z.theme||!z.hasCompletedOnboarding)){$=!0;let{Onboarding:V}=await import("./Onboarding-0.1.15-pqx4v1wq.mjs");await K0(q,(H)=>N(V,{onDone:()=>{WW(),H()}}),{onChangeAppState:b9})}if(!i(process.env.CLAUBBIT)){if(W&&!T1()){let{TrustDialog:V}=await import("./TrustDialog-0.1.15-srz2xcqx.mjs");await K0(q,(H)=>N(V,{commands:Q,onDone:H}))}if(c5(!0),g5(),m5(),K9(),W){let{errors:V}=e5();if(V.length===0)await v5(q);if(await t5()){let H=n5(await r5(!0)),{ClaudeMdExternalIncludesDialog:X}=await import("./ClaudeMdExternalIncludesDialog-0.1.15-g407nd3p.mjs");await K0(q,(K)=>N(X,{onDone:K,isStandaloneDialog:!0,externalIncludes:H}))}}}if(J7(),S0(),setImmediate(()=>n9()),await o5()){let{GroveDialog:V}=await import("./Grove-0.1.15-jdcp80ev.mjs");if(await K0(q,(X)=>N(V,{showIfAlreadyViewed:!1,location:$?"onboarding":"policy_update_modal",onDone:X}))==="escape")return F("tengu_grove_policy_exited",{}),b0(0),!1}{let V=P0(),H=V?.transport==="anthropic"?V.apiKey?.trim():void 0;if(H&&!d5()){let X=i5(H);if(p5(X)==="new"){let{ApproveApiKey:M}=await import("./ApproveApiKey-0.1.15-zkd425a9.mjs");await K0(q,(U)=>N(M,{customApiKeyTruncated:X,onDone:U}),{onChangeAppState:b9})}}}if((Z==="bypassPermissions"||J)&&!$1()){let{BypassPermissionsModeDialog:V}=await import("./BypassPermissionsModeDialog-0.1.15-51n3nd6r.mjs");await K0(q,(H)=>N(V,{onAccept:H}))}if(Z==="auto"&&!l5()){let{AutoModeOptInDialog:V}=await import("./AutoModeOptInDialog-0.1.15-xemnqw1q.mjs");await K0(q,(H)=>N(V,{onAccept:H,onDecline:()=>b0(1),declineExits:!0}))}return $}function _5(q){let Z=0,J=S9(q);if(J.stdin)F("tengu_stdin_interactive",{});let Q=new WZ,Y=Z7();u5(Y);let W=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>Q.getMetrics(),stats:Y,renderOptions:{...J,onFrame:($)=>{if(Q.record($.durationMs),Y.observe("frame_duration_ms",$.durationMs),W&&$.phases){let z=JSON.stringify({total:$.durationMs,...$.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
820
+ `;XW(W,z)}if(s5())return;for(let z of $.flickers){if(z.reason==="resize")continue;let V=Date.now();if(V-Z<1000)F("tengu_flicker",{desiredHeight:z.desiredHeight,actualHeight:z.availableHeight,reason:z.reason});Z=V}}}}}
821
+ export{WW as a,HW as b,D0 as c,zW as d,K0 as e,r0 as f,L5 as g,_5 as h,QZ as i,WG as j};