claude-code-zanii 2.8.4

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 (669) hide show
  1. package/README.md +146 -0
  2. package/dist/chunks/AddWorkspaceDirectory-y_rd6sRl.js +1 -0
  3. package/dist/chunks/App-DgWSavG1.js +1 -0
  4. package/dist/chunks/ApproveApiKey-CJKWha-a.js +1 -0
  5. package/dist/chunks/ApproveApiKey-DTs2ExZH.js +1 -0
  6. package/dist/chunks/AssistantSessionChooser-BAhVk4id.js +1 -0
  7. package/dist/chunks/BackgroundTasksDialog-XU_JPh7R.js +2 -0
  8. package/dist/chunks/BypassPermissionsModeDialog-DV0Pi7ys.js +1 -0
  9. package/dist/chunks/ClaudeInChromeOnboarding-6erm_8Fn.js +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-CjBvzB5s.js +1 -0
  11. package/dist/chunks/ClaudeMdExternalIncludesDialog-ts0XnWwl.js +1 -0
  12. package/dist/chunks/ConsoleOAuthFlow-DySPdSqQ.js +1 -0
  13. package/dist/chunks/CustomSelect-DqZxzBZP.js +1 -0
  14. package/dist/chunks/DesktopHandoff-5c90JK88.js +1 -0
  15. package/dist/chunks/DevChannelsDialog-DCMderzu.js +1 -0
  16. package/dist/chunks/Dialog-Dgg8bqcG.js +1 -0
  17. package/dist/chunks/DiffDialog-BU765aqh.js +6 -0
  18. package/dist/chunks/Doctor-B73iDB-d.js +3 -0
  19. package/dist/chunks/Doctor-CLZDdNRo.js +1 -0
  20. package/dist/chunks/ExitFlow-DBqn2mUf.js +2 -0
  21. package/dist/chunks/Feedback-D-JHabwi.js +2 -0
  22. package/dist/chunks/Grove-D-uQNMMo.js +11 -0
  23. package/dist/chunks/HybridTransport-B-G4QJcy.js +4 -0
  24. package/dist/chunks/ITermBackend-KP1vKsRN.js +1 -0
  25. package/dist/chunks/InProcessTransport-ByBEKxrQ.js +1 -0
  26. package/dist/chunks/InvalidConfigDialog-CMqiZ5nG.js +1 -0
  27. package/dist/chunks/InvalidSettingsDialog-CjPCKzVZ.js +1 -0
  28. package/dist/chunks/ListItem-B6MyhHvM.js +1 -0
  29. package/dist/chunks/MCPConnectionManager-BJ8PcYPe.js +1 -0
  30. package/dist/chunks/Message-DNxJ_tMS.js +1 -0
  31. package/dist/chunks/MessageSelector-D79Ug71B.js +3 -0
  32. package/dist/chunks/Messages-CtIbkB2M.js +11 -0
  33. package/dist/chunks/Onboarding-DVrgKrI9.js +1 -0
  34. package/dist/chunks/OverageCreditUpsell-D_td1ss4.js +1 -0
  35. package/dist/chunks/PermissionDialog-BCS22yEO.js +1 -0
  36. package/dist/chunks/PermissionDialog-C5O1fL53.js +1 -0
  37. package/dist/chunks/PermissionRequestTitle-CtlbBU9t.js +1 -0
  38. package/dist/chunks/PluginSettings-OPrg-_3N.js +17 -0
  39. package/dist/chunks/PressEnterToContinue-DmzxIgbZ.js +1 -0
  40. package/dist/chunks/PromptInputFooterSuggestions-CcsKj5DK.js +1 -0
  41. package/dist/chunks/PromptInputHelpMenu-JedFdsxU.js +1 -0
  42. package/dist/chunks/REPL-ByhyIRnf.js +1 -0
  43. package/dist/chunks/REPL-Clve-8zC.js +157 -0
  44. package/dist/chunks/RemoteCallout-BZcabEKb.js +1 -0
  45. package/dist/chunks/RemoteSessionManager-C2PIFDHt.js +1 -0
  46. package/dist/chunks/ResumeConversation-D3ZRTFcF.js +1 -0
  47. package/dist/chunks/SSETransport-DmZWnH0k.js +4 -0
  48. package/dist/chunks/SearchBox-DQg2Ph0V.js +1 -0
  49. package/dist/chunks/SearchExtraToolsTool-CLO4nt6N.js +1 -0
  50. package/dist/chunks/SentryErrorBoundary-BVfBaOOU.js +2 -0
  51. package/dist/chunks/SentryErrorBoundary-DIaVFad-.js +1 -0
  52. package/dist/chunks/Settings-rOCxQdS8.js +2 -0
  53. package/dist/chunks/TeleportProgress-CP8IY6bz.js +1 -0
  54. package/dist/chunks/TeleportRepoMismatchDialog-DMmHgBqo.js +1 -0
  55. package/dist/chunks/TeleportResumeWrapper-D5wEAW1-.js +1 -0
  56. package/dist/chunks/ThemePicker-Bgr7yOQB.js +1 -0
  57. package/dist/chunks/TmuxBackend-BzbtUtP1.js +9 -0
  58. package/dist/chunks/TrustDialog-BI5U3BQ0.js +1 -0
  59. package/dist/chunks/TungstenTool-CiQclNwj.js +1 -0
  60. package/dist/chunks/TungstenTool-kMqy-ifa.js +1 -0
  61. package/dist/chunks/ValidationErrorsList-DprGtB2w.js +2 -0
  62. package/dist/chunks/WelcomeV2-C4vfBnIy.js +1 -0
  63. package/dist/chunks/WindowsTerminalBackend-BSoezOCE.js +2 -0
  64. package/dist/chunks/add-dir-DpOmv6kv.js +1 -0
  65. package/dist/chunks/agentDisplay-DuYEwOwO.js +1 -0
  66. package/dist/chunks/agents-BlurXZrF.js +2 -0
  67. package/dist/chunks/agents-DhZf7ftU.js +103 -0
  68. package/dist/chunks/ajv-CDrSAj3O.js +8 -0
  69. package/dist/chunks/analytics-i6X1et4O.js +1 -0
  70. package/dist/chunks/ant-D9hd_iYy.js +1 -0
  71. package/dist/chunks/api-CoaOHwDQ.js +4 -0
  72. package/dist/chunks/api-DvyGR-L7.js +1 -0
  73. package/dist/chunks/api-YHYC4Zdk.js +1 -0
  74. package/dist/chunks/artifacts-BMAYdaqh.js +1 -0
  75. package/dist/chunks/asciicast-DpHRoebc.js +1 -0
  76. package/dist/chunks/asciicast-HG1EoAQe.js +4 -0
  77. package/dist/chunks/assistant-D4-qcNT1.js +1 -0
  78. package/dist/chunks/assistant-DO2ZmZn1.js +1 -0
  79. package/dist/chunks/assistant-Dd86NmJM.js +1 -0
  80. package/dist/chunks/attributionHooks-BUmHrLhB.js +1 -0
  81. package/dist/chunks/attributionTrailer-r2Pbpu2N.js +1 -0
  82. package/dist/chunks/auth-CF3BGNYT.js +1 -0
  83. package/dist/chunks/auth-DwWwG43F.js +1 -0
  84. package/dist/chunks/auth-V_Xk2iea.js +1 -0
  85. package/dist/chunks/autoMode-DUksX5_i.js +45 -0
  86. package/dist/chunks/autoModeDenials-0CPO-Jbu.js +1 -0
  87. package/dist/chunks/autonomy-C5mNhAdz.js +21 -0
  88. package/dist/chunks/autonomy-CLt1dWaC.js +1 -0
  89. package/dist/chunks/autonomyPanel-rioFnrQO.js +1 -0
  90. package/dist/chunks/axios-DPuSPBlH.js +1 -0
  91. package/dist/chunks/axios-Zh7qGPze.js +12 -0
  92. package/dist/chunks/backgroundHousekeeping-BGtfqu-J.js +1 -0
  93. package/dist/chunks/backgroundHousekeeping-BqKZEvy0.js +17 -0
  94. package/dist/chunks/banner-BGLr3KYQ.js +2 -0
  95. package/dist/chunks/base64-js-B1tFNiG0.js +1 -0
  96. package/dist/chunks/bedrockClient-BFzWuhQK.js +15 -0
  97. package/dist/chunks/bg-B-YgGwLj.js +9 -0
  98. package/dist/chunks/bg-IU4gG3jc.js +1 -0
  99. package/dist/chunks/branch-BWY5W7hf.js +3 -0
  100. package/dist/chunks/break-cache-CY-O23fJ.js +8 -0
  101. package/dist/chunks/bridge-CqWd70vK.js +2 -0
  102. package/dist/chunks/bridgeConfig-CWO8AmCY.js +1 -0
  103. package/dist/chunks/bridgeConfig-D38y9eXn.js +1 -0
  104. package/dist/chunks/bridgeConfig-EwUq__ct.js +1 -0
  105. package/dist/chunks/bridgeConfig-GYR-LUiu.js +1 -0
  106. package/dist/chunks/bridgeEnabled-DKqmLnKO.js +1 -0
  107. package/dist/chunks/bridgeEnabled-DZIGDtfY.js +1 -0
  108. package/dist/chunks/bridgeMain-CXVks2ND.js +1 -0
  109. package/dist/chunks/bridgeMain-D4nsECwJ.js +68 -0
  110. package/dist/chunks/bridgeMessaging-BUOZU_ba.js +1 -0
  111. package/dist/chunks/bridgePointer-BpzIEsD_.js +1 -0
  112. package/dist/chunks/browser-D1vC3BNd.js +1 -0
  113. package/dist/chunks/btw-CVXJwoXo.js +1 -0
  114. package/dist/chunks/buddy-BLcvL8lP.js +3 -0
  115. package/dist/chunks/bundledMode-DQNSSQbt.js +1 -0
  116. package/dist/chunks/caches-BrfvzKn5.js +1 -0
  117. package/dist/chunks/caches-CkSv3MfC.js +3 -0
  118. package/dist/chunks/capacityWake-BWCSatN6.js +1 -0
  119. package/dist/chunks/changeDetector-DEZU6tum.js +1 -0
  120. package/dist/chunks/changeDetector-Df7c6U3d.js +1 -0
  121. package/dist/chunks/channelAllowlist-BApjAS0V.js +1 -0
  122. package/dist/chunks/channelNotification-BjWwF85R.js +1 -0
  123. package/dist/chunks/channelNotification-D01YVwNj.js +1 -0
  124. package/dist/chunks/chokidar-DPwMBcWI.js +1 -0
  125. package/dist/chunks/chokidar-DkDXNCTz.js +1 -0
  126. package/dist/chunks/chrome-D7coxEOI.js +1 -0
  127. package/dist/chunks/chromeNativeHost-CPj9M_4-.js +1 -0
  128. package/dist/chunks/chunk-DR8-3Aex.js +1 -0
  129. package/dist/chunks/classPrivateFieldSet2-DZkxcFPS.js +1 -0
  130. package/dist/chunks/claudeAiLimitsHook-ATshVrOH.js +1 -0
  131. package/dist/chunks/claudeDesktop-PVa9tWsM.js +1 -0
  132. package/dist/chunks/cleanup-C-PGmKpV.js +1 -0
  133. package/dist/chunks/clear-CxGE9Ntr.js +1 -0
  134. package/dist/chunks/cliLaunch-CMXoY_LO.js +1 -0
  135. package/dist/chunks/client-BWED8Tbu.js +35 -0
  136. package/dist/chunks/client-CinDjeSq.js +7 -0
  137. package/dist/chunks/client-CpXGg9e0.js +1 -0
  138. package/dist/chunks/color-B3w_VQTn.js +1 -0
  139. package/dist/chunks/color-convert-BQZnVz_5.js +1 -0
  140. package/dist/chunks/commands-DFp48zwy.js +1 -0
  141. package/dist/chunks/commitAttribution-B0cXmbvv.js +2 -0
  142. package/dist/chunks/commitAttribution-DRSKRoH6.js +1 -0
  143. package/dist/chunks/common-BX7bn3hg.js +1 -0
  144. package/dist/chunks/common-Ce3LanTX.js +1 -0
  145. package/dist/chunks/common-DdLQuE2_.js +1 -0
  146. package/dist/chunks/common-HfKcqOYK.js +1 -0
  147. package/dist/chunks/compact-C8ljGMdo.js +3 -0
  148. package/dist/chunks/companion-mD1jw6xX.js +1 -0
  149. package/dist/chunks/completionCache-BqQXVTa9.js +1 -0
  150. package/dist/chunks/completionCache-BtP4vfAi.js +4 -0
  151. package/dist/chunks/computerUseLock-ADE_PhIK.js +1 -0
  152. package/dist/chunks/config-CmyaIIOY.js +1 -0
  153. package/dist/chunks/config-Rl1Y_Dtq.js +1 -0
  154. package/dist/chunks/connectHeadless-MFABhXpz.js +1 -0
  155. package/dist/chunks/constants-BM62Vf_X.js +1 -0
  156. package/dist/chunks/constants-BfXy-5cI.js +1 -0
  157. package/dist/chunks/context-BeiZkUNq.js +1 -0
  158. package/dist/chunks/context-noninteractive-CRdF3iv8.js +54 -0
  159. package/dist/chunks/controlMessageCompat-591iGHUK.js +1 -0
  160. package/dist/chunks/conversation-BoguXZEI.js +1 -0
  161. package/dist/chunks/conversation-yhs7tT-g.js +1 -0
  162. package/dist/chunks/copy-BpeUcqku.js +7 -0
  163. package/dist/chunks/createSSHSession-B3JOB4TE.js +6 -0
  164. package/dist/chunks/createSession-BJSnFBGt.js +1 -0
  165. package/dist/chunks/createSession-CnRHI3RU.js +1 -0
  166. package/dist/chunks/cron-iqTFGIos.js +1 -0
  167. package/dist/chunks/cronScheduler-zRXhgEEU.js +6 -0
  168. package/dist/chunks/cronTasks-CMJldfoP.js +2 -0
  169. package/dist/chunks/crossProjectResume-DxO6TX30.js +40 -0
  170. package/dist/chunks/cwd-B2guYBbl.js +1 -0
  171. package/dist/chunks/cwd-B5bbyUwz.js +1 -0
  172. package/dist/chunks/cwd-BXiaJzLh.js +1 -0
  173. package/dist/chunks/daemon-B3v4OoOu.js +2 -0
  174. package/dist/chunks/dangerousBackend-OmCzoW35.js +1 -0
  175. package/dist/chunks/datadog-3-Vvz0yz.js +1 -0
  176. package/dist/chunks/datadog-BQlp3bTs.js +1 -0
  177. package/dist/chunks/debug-BDBIipC1.js +2 -0
  178. package/dist/chunks/debug-C7tW7DFW.js +1 -0
  179. package/dist/chunks/debug-CjIaNjpK.js +5 -0
  180. package/dist/chunks/debugUtils-Dsg-UHeg.js +1 -0
  181. package/dist/chunks/defineProperty-CaCI0a5T.js +1 -0
  182. package/dist/chunks/desktop-C_SS0068.js +1 -0
  183. package/dist/chunks/detached-B7RNZeyl.js +5 -0
  184. package/dist/chunks/detect-libc-DFFGDzPC.js +1 -0
  185. package/dist/chunks/detectRepository-BnTCJAXR.js +1 -0
  186. package/dist/chunks/detectRepository-Gobn9eFt.js +1 -0
  187. package/dist/chunks/detection-CN_uLGU2.js +1 -0
  188. package/dist/chunks/detection-DW6grIlc.js +1 -0
  189. package/dist/chunks/diff-B8YmRG5T.js +1 -0
  190. package/dist/chunks/directoryCompletion-J560aATd.js +1 -0
  191. package/dist/chunks/dist-B1wOprSs.js +29 -0
  192. package/dist/chunks/dist-DZQOarNX.js +5 -0
  193. package/dist/chunks/dist-HZfkKiUF.js +20 -0
  194. package/dist/chunks/dist-es-4xyrZoNc2.js +1 -0
  195. package/dist/chunks/dist-es-6kjvVbJd.js +1 -0
  196. package/dist/chunks/dist-es-BJldFHbt.js +3 -0
  197. package/dist/chunks/dist-es-BM013UFT.js +1 -0
  198. package/dist/chunks/dist-es-BPPewn1A.js +1 -0
  199. package/dist/chunks/dist-es-BZGG3Hnm.js +1 -0
  200. package/dist/chunks/dist-es-BZjJL64k2.js +1 -0
  201. package/dist/chunks/dist-es-BctcPxLN.js +1 -0
  202. package/dist/chunks/dist-es-Bf2jR30y.js +1 -0
  203. package/dist/chunks/dist-es-BgLoR-hQ.js +1 -0
  204. package/dist/chunks/dist-es-BismPcTW.js +1 -0
  205. package/dist/chunks/dist-es-BrPzXmSP.js +1 -0
  206. package/dist/chunks/dist-es-Bu21Wvhs.js +1 -0
  207. package/dist/chunks/dist-es-BuWNNAXW.js +1 -0
  208. package/dist/chunks/dist-es-Bz11sFiK2.js +1 -0
  209. package/dist/chunks/dist-es-C5VplyPL2.js +5 -0
  210. package/dist/chunks/dist-es-C66BuLgn.js +1 -0
  211. package/dist/chunks/dist-es-CCIzgNln2.js +1 -0
  212. package/dist/chunks/dist-es-CLyx7Kge2.js +1 -0
  213. package/dist/chunks/dist-es-CUbatGdn.js +1 -0
  214. package/dist/chunks/dist-es-CYe_-TbD.js +1 -0
  215. package/dist/chunks/dist-es-C_IHUdzL.js +1 -0
  216. package/dist/chunks/dist-es-Ci_rKlMr.js +1 -0
  217. package/dist/chunks/dist-es-ClDZBAj7.js +1 -0
  218. package/dist/chunks/dist-es-Cp--qjOi.js +1 -0
  219. package/dist/chunks/dist-es-CzE4kW1L.js +9 -0
  220. package/dist/chunks/dist-es-DUg5w7-v.js +1 -0
  221. package/dist/chunks/dist-es-Dl0ZRczY.js +1 -0
  222. package/dist/chunks/dist-es-Do_155z5.js +1 -0
  223. package/dist/chunks/dist-es-DxIM0jd82.js +1 -0
  224. package/dist/chunks/dist-es-Fav2oBDs.js +1 -0
  225. package/dist/chunks/dist-es-TZjwPaGn.js +1 -0
  226. package/dist/chunks/dist-es-W22ud2el2.js +1 -0
  227. package/dist/chunks/dist-es-aU8-02YH.js +1 -0
  228. package/dist/chunks/dist-es-b3yZSGx82.js +1 -0
  229. package/dist/chunks/dist-es-dIP5JtXz.js +5 -0
  230. package/dist/chunks/dist-es-mQ4HvnYs2.js +1 -0
  231. package/dist/chunks/distRoot-CJaacAHy.js +1 -0
  232. package/dist/chunks/doctor-DLZPF4iY.js +1 -0
  233. package/dist/chunks/earlyInput-BTI1CSNt.js +2 -0
  234. package/dist/chunks/earlyInput-BwGtzhhP.js +1 -0
  235. package/dist/chunks/effort-BaHvpBWr.js +9 -0
  236. package/dist/chunks/entry-_e-lyRwv.js +14 -0
  237. package/dist/chunks/env-CesrOJJq.js +1 -0
  238. package/dist/chunks/envLessBridgeConfig-4oys0_9A.js +1 -0
  239. package/dist/chunks/envLessBridgeConfig-DJ1Sts3F.js +1 -0
  240. package/dist/chunks/envUtils-CFG7IQID.js +1 -0
  241. package/dist/chunks/errorLogSink-Ti4Suoz6.js +2 -0
  242. package/dist/chunks/escHotkey-CVn_80xM.js +259 -0
  243. package/dist/chunks/esm-BFnjHW38.js +1 -0
  244. package/dist/chunks/esm-BQg_LX3V.js +1 -0
  245. package/dist/chunks/esm-BtC6CMmM.js +1 -0
  246. package/dist/chunks/esm-BwzC0MQp.js +1 -0
  247. package/dist/chunks/esm-CFybeQ_Q.js +1 -0
  248. package/dist/chunks/esm-CK-5CT5X.js +1 -0
  249. package/dist/chunks/esm-CL1OwlZB.js +1 -0
  250. package/dist/chunks/esm-CMzgSTAl.js +1 -0
  251. package/dist/chunks/esm-CPE_H2Lx.js +1 -0
  252. package/dist/chunks/esm-CcWquv5a.js +10 -0
  253. package/dist/chunks/esm-CeNEpRZt.js +1 -0
  254. package/dist/chunks/esm-D7hykoRB.js +1 -0
  255. package/dist/chunks/esm-DUtcefEV.js +1 -0
  256. package/dist/chunks/esm-DhrUwJBp.js +1 -0
  257. package/dist/chunks/esm-Duu1fRQ8.js +1 -0
  258. package/dist/chunks/esm-Ght2BaU2.js +1 -0
  259. package/dist/chunks/esm-Q6Yz2GMx.js +56 -0
  260. package/dist/chunks/esm-WONEiurY.js +13 -0
  261. package/dist/chunks/event-streams-BumpU1aB.js +1 -0
  262. package/dist/chunks/eventLoopStallDetector-DxyFdg1h.js +1 -0
  263. package/dist/chunks/execAsync-ChKxDZ8C.js +1 -0
  264. package/dist/chunks/execFileNoThrow-DdmR1mBS.js +1 -0
  265. package/dist/chunks/execSyncWrapper-Ch4TNj8u.js +1 -0
  266. package/dist/chunks/execa-BMaINL7N.js +34 -0
  267. package/dist/chunks/executor-C7INr19-.js +1 -0
  268. package/dist/chunks/executor-Dnf3YYma.js +1604 -0
  269. package/dist/chunks/exit-BakzsOD0.js +1 -0
  270. package/dist/chunks/exit-CiDn2tN9.js +2 -0
  271. package/dist/chunks/export-b-6pqMqz.js +2 -0
  272. package/dist/chunks/exportRenderer-RxtEIyTm.js +1 -0
  273. package/dist/chunks/extra-usage-7EPJNjNW.js +1 -0
  274. package/dist/chunks/extra-usage-ChvuewCq.js +1 -0
  275. package/dist/chunks/extra-usage-core-BVhLtoDF.js +1 -0
  276. package/dist/chunks/extra-usage-noninteractive-_Njh6q-q.js +1 -0
  277. package/dist/chunks/extraUsage-qOBMQB6g.js +1 -0
  278. package/dist/chunks/extractMemories-CRBVNiG1.js +1 -0
  279. package/dist/chunks/fast-C4uw_g7o.js +1 -0
  280. package/dist/chunks/fast-CEaIzaPl.js +1 -0
  281. package/dist/chunks/featureCheck-B1GSTyhh.js +1 -0
  282. package/dist/chunks/featureCheck-DKigAPal.js +1 -0
  283. package/dist/chunks/feedback-Bf3TjjuD.js +1 -0
  284. package/dist/chunks/figures-fES5sASd.js +1 -0
  285. package/dist/chunks/fileStateCache-DAsLEZau.js +1 -0
  286. package/dist/chunks/files-B-m_4X8b.js +2 -0
  287. package/dist/chunks/findExecutable-D8vJrFnO.js +1 -0
  288. package/dist/chunks/firstPartyEventLogger-BtrGagNa.js +1 -0
  289. package/dist/chunks/flushGate-2zqab-Pp.js +1 -0
  290. package/dist/chunks/foundry-sdk-CtX8C0x3.js +1 -0
  291. package/dist/chunks/fpsMetrics-ts_jaF3g.js +1 -0
  292. package/dist/chunks/fuse-ivQ_eRwF.js +1 -0
  293. package/dist/chunks/gates-CmKoQ0O-.js +1 -0
  294. package/dist/chunks/gates-_wbPDQ3M.js +1 -0
  295. package/dist/chunks/gemini-DRx495gn.js +3 -0
  296. package/dist/chunks/generateRecap-Cv8gd_QF.js +1 -0
  297. package/dist/chunks/generateSessionName-Dpjg-u_x.js +1 -0
  298. package/dist/chunks/genericProcessUtils-BFJMxLqn.js +23 -0
  299. package/dist/chunks/getMachineId-bsd-C9pL9Ajr.js +1 -0
  300. package/dist/chunks/getMachineId-darwin-Ma4F9rJg.js +2 -0
  301. package/dist/chunks/getMachineId-linux-C0lXMqsj.js +1 -0
  302. package/dist/chunks/getMachineId-unsupported-ByHQTXat.js +1 -0
  303. package/dist/chunks/getMachineId-win-DZsXZmTz.js +1 -0
  304. package/dist/chunks/git-Bj8Ow4pJ.js +6 -0
  305. package/dist/chunks/git-Q_b4oZ17.js +1 -0
  306. package/dist/chunks/githubRepoPathMapping-DGivBX9h.js +1 -0
  307. package/dist/chunks/goal-BrHEJv8o.js +3 -0
  308. package/dist/chunks/goalStorage-CsuPOQbk.js +1 -0
  309. package/dist/chunks/graceful-fs-BuPWC-vB.js +2 -0
  310. package/dist/chunks/grok-CDkDDaY_.js +1 -0
  311. package/dist/chunks/growthbook-D3_Cr9n-.js +1 -0
  312. package/dist/chunks/growthbook-p4aJ_UMv.js +32 -0
  313. package/dist/chunks/hash-KW-tVnPp.js +1 -0
  314. package/dist/chunks/heapdump-CloylIZ9.js +5 -0
  315. package/dist/chunks/help-DpSJlHIc.js +1 -0
  316. package/dist/chunks/hooks-2pogt8nv.js +79 -0
  317. package/dist/chunks/hooks-BBODdwnE.js +1 -0
  318. package/dist/chunks/hostAdapter-B5KTUqhv.js +1 -0
  319. package/dist/chunks/hostGuard-DyWr2TwE.js +1 -0
  320. package/dist/chunks/httpAuthSchemes-CgPbtGos.js +13 -0
  321. package/dist/chunks/ide-CJEcfBZq.js +2 -0
  322. package/dist/chunks/inboundAttachments-RNpYpRTO.js +1 -0
  323. package/dist/chunks/index.min-DCDiLq-j.js +1 -0
  324. package/dist/chunks/initReplBridge-D2E6IM2B.js +1 -0
  325. package/dist/chunks/initReplBridge-p2uwDBPx.js +1 -0
  326. package/dist/chunks/insights-DnpZScKs.js +822 -0
  327. package/dist/chunks/install-D_vTxUlG.js +1 -0
  328. package/dist/chunks/install-github-app-BK8A7g3i.js +147 -0
  329. package/dist/chunks/install-slack-app-C47R9VoI.js +1 -0
  330. package/dist/chunks/instinctParser-DxKdI3JC.js +1 -0
  331. package/dist/chunks/instrumentation-DkdAJFrZ.js +12 -0
  332. package/dist/chunks/intl-Pse97ORk.js +1 -0
  333. package/dist/chunks/isObject-DaxDnPKm.js +1 -0
  334. package/dist/chunks/isSymbol-D7QeUnS5.js +1 -0
  335. package/dist/chunks/job-opl00C4l.js +2 -0
  336. package/dist/chunks/json-bigint-BRRVs1dv.js +8 -0
  337. package/dist/chunks/jsx-runtime-BTgGEFjL.js +1 -0
  338. package/dist/chunks/jws-B_ieuaZg.js +3 -0
  339. package/dist/chunks/jwtUtils-D-tJzoJY.js +1 -0
  340. package/dist/chunks/keybindings-mRf9VSe8.js +2 -0
  341. package/dist/chunks/lang-eH4EJErj.js +1 -0
  342. package/dist/chunks/language-DD9ar6RA.js +1 -0
  343. package/dist/chunks/language-EZLNdETg.js +1 -0
  344. package/dist/chunks/launchAgentsPlatform-Cq0_7-IM.js +1 -0
  345. package/dist/chunks/launchAutofixPr-Bw7aUHUs.js +18 -0
  346. package/dist/chunks/launchCommand-Bk1Fn-qZ.js +1 -0
  347. package/dist/chunks/launchLocalMemory-CLBCUgwd.js +3 -0
  348. package/dist/chunks/launchLocalVault-BfWJWrBg.js +3 -0
  349. package/dist/chunks/launchMemoryStores-DdnSVSDZ.js +1 -0
  350. package/dist/chunks/launchOnboarding-ziCEX3GI.js +8 -0
  351. package/dist/chunks/launchSchedule-G_c7sgmy.js +1 -0
  352. package/dist/chunks/launchSkillStore-Z1Kd7nCg.js +1 -0
  353. package/dist/chunks/launchTeleport-Dp9AFbPx.js +3 -0
  354. package/dist/chunks/launchVault-hwK-Ljek.js +1 -0
  355. package/dist/chunks/lazySchema-2sOku3cX.js +1 -0
  356. package/dist/chunks/lib-BHRYgENJ.js +8 -0
  357. package/dist/chunks/lib-DRyNc7xD.js +2 -0
  358. package/dist/chunks/lib-Ddq71jM5.js +14 -0
  359. package/dist/chunks/loadAgentsDir-Bz0FfcVt.js +5620 -0
  360. package/dist/chunks/loadAgentsDir-CLM0ws7u.js +1 -0
  361. package/dist/chunks/loadPluginHooks-B5SIS2uo.js +1 -0
  362. package/dist/chunks/loadSso-RY87rrJO.js +1 -0
  363. package/dist/chunks/localSearch-BLF6PSv2.js +1 -0
  364. package/dist/chunks/localSearch-CTycGe3E.js +1 -0
  365. package/dist/chunks/localSearch-inDahM8I.js +1 -0
  366. package/dist/chunks/lockfile--gk1HDM6.js +1 -0
  367. package/dist/chunks/log-B-Nj3Yed.js +1 -0
  368. package/dist/chunks/log-DVv8YiNo.js +1 -0
  369. package/dist/chunks/login-BeLvLowc.js +1 -0
  370. package/dist/chunks/login-DUUOeNoz.js +1 -0
  371. package/dist/chunks/logoV2Utils-D5SpeZ3C.js +1 -0
  372. package/dist/chunks/logout-C2QuTBdS.js +1 -0
  373. package/dist/chunks/magicDocs-CUXKi-Wv.js +57 -0
  374. package/dist/chunks/main-CFhpWtpC.js +1420 -0
  375. package/dist/chunks/main-sboa5RKc.js +31 -0
  376. package/dist/chunks/mappers-DLkk0PZz.js +1 -0
  377. package/dist/chunks/mcp-C2f6IgAp.js +2 -0
  378. package/dist/chunks/mcp-Djui9m3_.js +6 -0
  379. package/dist/chunks/mcp-DvTSxrJ4.js +1 -0
  380. package/dist/chunks/mcpServer-DMA0bdFC.js +1 -0
  381. package/dist/chunks/mcpServer-DxEHfW2v.js +1 -0
  382. package/dist/chunks/memoize-Bg2dXTzV.js +1 -0
  383. package/dist/chunks/memoize-DNnuA2aU.js +1 -0
  384. package/dist/chunks/memory-B9io9Zcv.js +1 -0
  385. package/dist/chunks/mobile-CPnnvkQV.js +2 -0
  386. package/dist/chunks/modalContext-B1b0Gsro.js +1 -0
  387. package/dist/chunks/mode-BDgwh_Xb.js +2 -0
  388. package/dist/chunks/model-B6cpEh-s.js +1 -0
  389. package/dist/chunks/model-BcunOCC9.js +1 -0
  390. package/dist/chunks/modelOptions-CHUHQ9WG.js +1 -0
  391. package/dist/chunks/normalization-cjPqid31.js +1 -0
  392. package/dist/chunks/oauth-CnBLewrU.js +1 -0
  393. package/dist/chunks/oauth-DMPGYAoZ.js +1 -0
  394. package/dist/chunks/observationStore-DVBxrSdI.js +4 -0
  395. package/dist/chunks/onChangeAppState-M61XDN6V.js +1 -0
  396. package/dist/chunks/open-CsUNPSNx.js +1 -0
  397. package/dist/chunks/openai-BHvlYW3m.js +2 -0
  398. package/dist/chunks/output-style-BtKuBrs4.js +1 -0
  399. package/dist/chunks/outputStyles-hHuIBkRB.js +84 -0
  400. package/dist/chunks/overageCreditGrant-BLFT-rF3.js +1 -0
  401. package/dist/chunks/p-map-C-WNcN6g.js +1 -0
  402. package/dist/chunks/p-map-CQ2NythB.js +1 -0
  403. package/dist/chunks/package-9IAs5Qf0.js +1 -0
  404. package/dist/chunks/panel-27xLZI7c.js +1 -0
  405. package/dist/chunks/panel-NoDfShEZ.js +1 -0
  406. package/dist/chunks/panelCall-CEOWVNCM.js +1 -0
  407. package/dist/chunks/parseConnectUrl-CxU4IX9o.js +1 -0
  408. package/dist/chunks/parser-DGlAnaNj.js +1 -0
  409. package/dist/chunks/parser-DGoLe2RS.js +1 -0
  410. package/dist/chunks/passes-CExcqu66.js +1 -0
  411. package/dist/chunks/path-uaxlnhva.js +1 -0
  412. package/dist/chunks/permissions-B3PceQul.js +1 -0
  413. package/dist/chunks/permissions-DezIL2xF.js +3 -0
  414. package/dist/chunks/permissions-DnpI8Whh.js +1 -0
  415. package/dist/chunks/pipeTransport-CB_Wq_Kx.js +1 -0
  416. package/dist/chunks/plan-cfZBclh9.js +1 -0
  417. package/dist/chunks/platform-BXz_rgpy.js +2 -0
  418. package/dist/chunks/plist-DLGDWBD6.js +6 -0
  419. package/dist/chunks/plugin-CuhENLRs.js +1 -0
  420. package/dist/chunks/pluginAutoupdate-wTeOXfQe.js +1 -0
  421. package/dist/chunks/pluginBlocklist-D6pkKfXr.js +1 -0
  422. package/dist/chunks/pluginCliCommands-DqxdCwsq.js +1 -0
  423. package/dist/chunks/pluginFlagging-CjH48f-K.js +1 -0
  424. package/dist/chunks/pluginOperations-DMFYB3pK.js +2 -0
  425. package/dist/chunks/pluginStartupCheck-BW3_KfZz.js +1 -0
  426. package/dist/chunks/pluginStartupCheck-Cj2BMjVw.js +1 -0
  427. package/dist/chunks/plugins-CarsG2v8.js +4 -0
  428. package/dist/chunks/policyLimits-DFn1vHkN.js +1 -0
  429. package/dist/chunks/pollConfig-C8nODJY1.js +1 -0
  430. package/dist/chunks/poller-DXZJ-dUP.js +1 -0
  431. package/dist/chunks/poor-C7GQ4a5X.js +1 -0
  432. package/dist/chunks/poorMode-CBe0rfxB.js +1 -0
  433. package/dist/chunks/poorMode-CbZTudtw.js +1 -0
  434. package/dist/chunks/postCommitAttribution--vvAWIqD.js +1 -0
  435. package/dist/chunks/print-CwwtGSbK.js +114 -0
  436. package/dist/chunks/privacy-settings-Bz8cAVp5.js +11 -0
  437. package/dist/chunks/privacyLevel-CRCHhztk.js +1 -0
  438. package/dist/chunks/process-CnhUplBr.js +1 -0
  439. package/dist/chunks/process-X4vCP9x0.js +1 -0
  440. package/dist/chunks/processBashCommand-NL0YEUqW.js +3 -0
  441. package/dist/chunks/processSlashCommand-FPMWElsI.js +6 -0
  442. package/dist/chunks/processSlashCommand-_oJs6_w8.js +6 -0
  443. package/dist/chunks/processUserInput-QAJK0XSn.js +1 -0
  444. package/dist/chunks/projectContext-B21hXj9q.js +1 -0
  445. package/dist/chunks/projectContext-DbTQHQS3.js +1 -0
  446. package/dist/chunks/prompt-C6eleu4x.js +1 -0
  447. package/dist/chunks/prompt-CUdoQXyN.js +1 -0
  448. package/dist/chunks/prompt-CsBCtw4l.js +228 -0
  449. package/dist/chunks/prompt-hnIDYhP4.js +54 -0
  450. package/dist/chunks/promptEditor-CrlVcc17.js +4 -0
  451. package/dist/chunks/protectedNamespace-Cn4901XG.js +1 -0
  452. package/dist/chunks/protocolHandler-DM_w7sJ5.js +13 -0
  453. package/dist/chunks/protocols-CpoQzjyI.js +7 -0
  454. package/dist/chunks/proxy-9WvtUy8E.js +99 -0
  455. package/dist/chunks/rate-limit-options-BehQ3MoX.js +1 -0
  456. package/dist/chunks/rcDebugLog-BbHlIxCm.js +11 -0
  457. package/dist/chunks/referral-BfAZEIZL.js +1 -0
  458. package/dist/chunks/refresh-Bl3Miver.js +1 -0
  459. package/dist/chunks/registerProtocol-BHZ3vZED.js +36 -0
  460. package/dist/chunks/registerSkillHooks-BR7v5qDA.js +1 -0
  461. package/dist/chunks/registry-C2igpRd-.js +1 -0
  462. package/dist/chunks/release-notes-C_Cou6ye.js +4 -0
  463. package/dist/chunks/releaseNotes-DveQShyB.js +2 -0
  464. package/dist/chunks/reload-plugins-D-pAUoB5.js +1 -0
  465. package/dist/chunks/remote-env-C_dBgbgo.js +1 -0
  466. package/dist/chunks/remoteBridgeCore-BxWhTy1u.js +1 -0
  467. package/dist/chunks/remoteControlServer-D3OjUlB-.js +3 -0
  468. package/dist/chunks/rename-f3m0ETSt.js +1 -0
  469. package/dist/chunks/renderOptions-QZLxGnh_.js +1 -0
  470. package/dist/chunks/replBridge-qeVmCJOb.js +1 -0
  471. package/dist/chunks/resume-CM_8p9Iu.js +2 -0
  472. package/dist/chunks/rewind-0cB7o6fx.js +1 -0
  473. package/dist/chunks/ripgrep-BEWqxrpl.js +5 -0
  474. package/dist/chunks/ripgrep-G82m12Ng.js +1 -0
  475. package/dist/chunks/rollback-CVo2gqgR.js +11 -0
  476. package/dist/chunks/runtimeObserver-1EdvvoYw.js +1 -0
  477. package/dist/chunks/runtimeObserver-CX6vepq9.js +10 -0
  478. package/dist/chunks/sandbox-adapter-DzHfW2tH.js +1 -0
  479. package/dist/chunks/sandbox-toggle-N6KgmH2T.js +1 -0
  480. package/dist/chunks/sanitization-CIBpY9KT.js +1 -0
  481. package/dist/chunks/satisfies-B7ZvBUQP.js +1 -0
  482. package/dist/chunks/schemas-Bwt-7U5W.js +40 -0
  483. package/dist/chunks/sdk-Drp69kIx.js +1 -0
  484. package/dist/chunks/sdkHeapDumpMonitor-B9GVkISU.js +1 -0
  485. package/dist/chunks/searchExtraTools-BphNJsl8.js +1 -0
  486. package/dist/chunks/semver-BsItM2Z4.js +1 -0
  487. package/dist/chunks/semver-D3lOjiBN.js +1 -0
  488. package/dist/chunks/sentry-ySzRCXGd.js +1 -0
  489. package/dist/chunks/server-C8nMDji6.js +1 -0
  490. package/dist/chunks/server-XZG51Slr.js +1 -0
  491. package/dist/chunks/serverBanner-D68EBGzH.js +1 -0
  492. package/dist/chunks/serverLog-hv2hc5US.js +1 -0
  493. package/dist/chunks/session-CVoGFb8a.js +2 -0
  494. package/dist/chunks/sessionDataUploader-BaD1Q7v3.js +1 -0
  495. package/dist/chunks/sessionDiscovery-D7g66TX6.js +1 -0
  496. package/dist/chunks/sessionFileAccessHooks-9lPjspRX.js +1 -0
  497. package/dist/chunks/sessionManager-BhOjMNAP.js +1 -0
  498. package/dist/chunks/sessionMemory-BA6cdxqP.js +1 -0
  499. package/dist/chunks/sessionMemory-CtEhIRGF.js +1 -0
  500. package/dist/chunks/sessionMemoryUtils-D_B92ypa.js +1 -0
  501. package/dist/chunks/sessionObserver-CESI-uVZ.js +1 -0
  502. package/dist/chunks/sessionObserver-SpE_eglb.js +20 -0
  503. package/dist/chunks/sessionRestore-DqsqYK4K.js +1 -0
  504. package/dist/chunks/sessionState-Dgky34M4.js +1 -0
  505. package/dist/chunks/sessionStorage-DJb5HKhQ.js +1 -0
  506. package/dist/chunks/sessionStorage-DSMfHTcg.js +1 -0
  507. package/dist/chunks/sessionStoragePortable-DyM_hZnp.js +3 -0
  508. package/dist/chunks/sessionTitle-Bzxk_EW9.js +14 -0
  509. package/dist/chunks/sessionTracing-DR8O0686.js +12 -0
  510. package/dist/chunks/setup-BHNS9sBS.js +9 -0
  511. package/dist/chunks/setup-BafJxZ0F.js +4 -0
  512. package/dist/chunks/setup-MLNNYLi6.js +1 -0
  513. package/dist/chunks/shadowedRuleDetection-Ch9gTxfD.js +1 -0
  514. package/dist/chunks/shellQuote-3s6tV-hK.js +1 -0
  515. package/dist/chunks/sideQuestion-BBn6XIOD.js +20 -0
  516. package/dist/chunks/signal-BTxmab6r.js +1 -0
  517. package/dist/chunks/signin-ChbUAEGq.js +1 -0
  518. package/dist/chunks/sink-B1qICbRh.js +1 -0
  519. package/dist/chunks/sink-yBIcxQf1.js +1 -0
  520. package/dist/chunks/sinks-C7weduDR.js +1 -0
  521. package/dist/chunks/skill-learning-08nEdOJ2.js +5 -0
  522. package/dist/chunks/skillGapStore-CuvWGqFb.js +5 -0
  523. package/dist/chunks/skillGapStore-DmMuDXKO.js +1 -0
  524. package/dist/chunks/skillGenerator-mEMjcmmm.js +8 -0
  525. package/dist/chunks/skillLearning-B3a-8Ys3.js +1 -0
  526. package/dist/chunks/skillLearning-q5T6o0mH.js +1 -0
  527. package/dist/chunks/skillPanel-BuUMhONI.js +28 -0
  528. package/dist/chunks/skillSearchPanel-BUEv7Sm9.js +21 -0
  529. package/dist/chunks/skillUsageTracking-BBTiWOKB.js +1 -0
  530. package/dist/chunks/skills-DvQuQfDW.js +1 -0
  531. package/dist/chunks/slashCommandParsing-BkTC3GRb.js +1 -0
  532. package/dist/chunks/sleep-CC8jykQd.js +1 -0
  533. package/dist/chunks/slowOperations-niPqC54V.js +1 -0
  534. package/dist/chunks/sprites-C5X62Vyh.js +1 -0
  535. package/dist/chunks/src-58uAJYF_.js +6 -0
  536. package/dist/chunks/src-7Y8fx6gl.js +2 -0
  537. package/dist/chunks/src-BuserDTl.js +1 -0
  538. package/dist/chunks/src-CMY4XoRy.js +1 -0
  539. package/dist/chunks/src-CfeAM1FB.js +1 -0
  540. package/dist/chunks/src-CxT2FDXy.js +1 -0
  541. package/dist/chunks/src-CyQf7rVu.js +26 -0
  542. package/dist/chunks/src-DJLbU8sT.js +1 -0
  543. package/dist/chunks/src-DJQlyVK6.js +5 -0
  544. package/dist/chunks/src-DNHWYkls.js +53 -0
  545. package/dist/chunks/src-DU_g0n_Q.js +1 -0
  546. package/dist/chunks/src-DhqzQjMg.js +19 -0
  547. package/dist/chunks/src-Duzv1Znh.js +1 -0
  548. package/dist/chunks/src-OBx6GAig.js +1 -0
  549. package/dist/chunks/src-WjnK2Dbo.js +1 -0
  550. package/dist/chunks/src-hjAMxWFj.js +7 -0
  551. package/dist/chunks/src-lLwoqdC0.js +9 -0
  552. package/dist/chunks/src-yRsWbJp_.js +2 -0
  553. package/dist/chunks/sso-oidc-yfC-A2A2.js +1 -0
  554. package/dist/chunks/startupProfiler-4P7GdVw6.js +3 -0
  555. package/dist/chunks/startupProfiler-CipS0otN.js +1 -0
  556. package/dist/chunks/state-9wSimHaL.js +1 -0
  557. package/dist/chunks/state-BQkyHx88.js +1 -0
  558. package/dist/chunks/state-CEAUTY3A.js +1 -0
  559. package/dist/chunks/state-CUZTq6r0.js +1 -0
  560. package/dist/chunks/state-U0HNbTx8.js +1 -0
  561. package/dist/chunks/staticRender-BB3CisKd.js +1 -0
  562. package/dist/chunks/stats-Dyi2U_mq.js +1 -0
  563. package/dist/chunks/status-CSL-GMou.js +1 -0
  564. package/dist/chunks/statusNoticeHelpers-BaXE951d.js +1 -0
  565. package/dist/chunks/stdio-BuUJYJFs.js +3 -0
  566. package/dist/chunks/stdio-iX0TTmbp.js +1 -0
  567. package/dist/chunks/stickers-2CRSckfH.js +1 -0
  568. package/dist/chunks/store-DdfsZvtr.js +1 -0
  569. package/dist/chunks/stringUtils-U7kMYMJq.js +4 -0
  570. package/dist/chunks/sts-CJmdeT7s.js +1 -0
  571. package/dist/chunks/subprocessEnv-DKTILev5.js +1 -0
  572. package/dist/chunks/subprocessEnv-WjRguKWf.js +1 -0
  573. package/dist/chunks/supports-color-DaytqqjM.js +1 -0
  574. package/dist/chunks/systemPromptSections-BnrxBWdc.js +1 -0
  575. package/dist/chunks/systemPromptSections-Dk6azdAb.js +1 -0
  576. package/dist/chunks/systemTheme-C1GNqIfy.js +1 -0
  577. package/dist/chunks/tag-C4cH016L.js +11 -0
  578. package/dist/chunks/tasks-CEdUW3RQ.js +1 -0
  579. package/dist/chunks/teamHelpers-CTA_CtTT.js +1 -0
  580. package/dist/chunks/teamHelpers-D65qZInv.js +1 -0
  581. package/dist/chunks/teammate-C-FiRloZ.js +1 -0
  582. package/dist/chunks/teammateModeSnapshot-DWRG5-Us.js +1 -0
  583. package/dist/chunks/teammateModeSnapshot-DtgsNj1G.js +1 -0
  584. package/dist/chunks/teleport-C_UgMy0V.js +1 -0
  585. package/dist/chunks/templateJobs-CMbS0tuk.js +12 -0
  586. package/dist/chunks/terminalSetup--jwGVap8.js +33 -0
  587. package/dist/chunks/terminalSetup-zID-wokH.js +1 -0
  588. package/dist/chunks/theme-C6XwTpVy.js +1 -0
  589. package/dist/chunks/thinkback-CVLnmLAT.js +1 -0
  590. package/dist/chunks/thinkback-MeOOO7gf.js +1 -0
  591. package/dist/chunks/thinkback-play-D7G260F4.js +1 -0
  592. package/dist/chunks/tmux-DtYJuTWh.js +1 -0
  593. package/dist/chunks/toolEventObserver-BtC9xDYY.js +1 -0
  594. package/dist/chunks/toolEventObserver-MfsHAt8h.js +1 -0
  595. package/dist/chunks/toolPool-CEi_2xIH.js +1 -0
  596. package/dist/chunks/toolPool-CdYJcCnc.js +1 -0
  597. package/dist/chunks/trustedDevice-CjQTGAa4.js +1 -0
  598. package/dist/chunks/trustedDevice-DADcxAAs.js +1 -0
  599. package/dist/chunks/tui-B8Ijq4Pk.js +6 -0
  600. package/dist/chunks/turndown.es-T-Xe93nc.js +69 -0
  601. package/dist/chunks/types-BVelRhgb.js +17 -0
  602. package/dist/chunks/types-Bqp3meR4.js +1 -0
  603. package/dist/chunks/types-CNmINIu3.js +1 -0
  604. package/dist/chunks/types-DgzOOCDl.js +3 -0
  605. package/dist/chunks/udsClient-ClY_0CKr.js +1 -0
  606. package/dist/chunks/ultrareviewCommand-CqvHj9Io.js +3 -0
  607. package/dist/chunks/undercover-CVCVOSrs.js +1 -0
  608. package/dist/chunks/undercover-CbxiJO2b.js +31 -0
  609. package/dist/chunks/up-CBJhVVbd.js +12 -0
  610. package/dist/chunks/updateCCB-DPPpquAw.js +11 -0
  611. package/dist/chunks/upgrade-DaaHOvft.js +1 -0
  612. package/dist/chunks/upgrade-k7ZvAWZ0.js +1 -0
  613. package/dist/chunks/upload-CEDxwMa1.js +1 -0
  614. package/dist/chunks/upstreamproxy-BtGJ2LRi.js +11 -0
  615. package/dist/chunks/usage-CsUSu4fb.js +1 -0
  616. package/dist/chunks/usage-oABvixCs.js +1 -0
  617. package/dist/chunks/useExitOnCtrlCDWithKeybindings-CBce_-hb.js +1 -0
  618. package/dist/chunks/useExitOnCtrlCDWithKeybindings-CLYjTZXb.js +1 -0
  619. package/dist/chunks/useKeybinding-DAQL_dB_.js +1 -0
  620. package/dist/chunks/useMainLoopModel-QC_H3esG.js +1 -0
  621. package/dist/chunks/useManageMCPConnections-bf-VfJGD.js +1 -0
  622. package/dist/chunks/useManagePlugins-CXdYUpit.js +1 -0
  623. package/dist/chunks/useMergedTools-DERzhQOJ.js +1 -0
  624. package/dist/chunks/useSearchInput-nqhdILI2.js +1 -0
  625. package/dist/chunks/useTerminalSize-DzV4aaTi.js +1 -0
  626. package/dist/chunks/useVoice-CO69xtWC.js +1 -0
  627. package/dist/chunks/util-C8wqPqv0.js +1 -0
  628. package/dist/chunks/utils-CDFsSXHr.js +1 -0
  629. package/dist/chunks/utils-ZO5TryVH.js +1 -0
  630. package/dist/chunks/v4-DLhvDPkt.js +1 -0
  631. package/dist/chunks/validatePlugin-C4cd71Yz.js +1 -0
  632. package/dist/chunks/vertex-sdk-CC3U26o7.js +9 -0
  633. package/dist/chunks/vim-BNiQx5Vf.js +1 -0
  634. package/dist/chunks/voice-BCbnJzYL.js +8 -0
  635. package/dist/chunks/voice-BJyz9KZO.js +8 -0
  636. package/dist/chunks/voice-CP2ULpju.js +2 -0
  637. package/dist/chunks/voiceModeEnabled-C-pa8B3Q.js +1 -0
  638. package/dist/chunks/voiceModeEnabled-CMtRN2pa.js +1 -0
  639. package/dist/chunks/voiceStreamSTT-31b2u0rj.js +1 -0
  640. package/dist/chunks/voiceStreamSTT-Fkhm6Ftg.js +1 -0
  641. package/dist/chunks/voiceStreamSTT-sI-hg-aP.js +1 -0
  642. package/dist/chunks/web-tools-CLmlPgLk.js +1 -0
  643. package/dist/chunks/which-C0ex-06E.js +1 -0
  644. package/dist/chunks/windowsPaths-C5TNvKYu.js +1 -0
  645. package/dist/chunks/windowsPaths-Kue_7s52.js +1 -0
  646. package/dist/chunks/workSecret-Dh5Ayceu.js +1 -0
  647. package/dist/chunks/workerRegistry-B5iWYqpK.js +1 -0
  648. package/dist/chunks/worktree-BypJA0GB.js +1 -0
  649. package/dist/chunks/worktreeModeEnabled-DPTdK3JV.js +1 -0
  650. package/dist/chunks/worktreeModeEnabled-Dtrcn7eD.js +1 -0
  651. package/dist/chunks/wrapper-BDPb4PTV.js +6 -0
  652. package/dist/chunks/wrapper-DRTs77RK.js +1 -0
  653. package/dist/chunks/xdg-BaVL-FHd.js +1 -0
  654. package/dist/chunks/xml-E8VMPwdJ.js +1 -0
  655. package/dist/chunks/zod-B_P2Eo_D.js +1 -0
  656. package/dist/cli-bun.js +2 -0
  657. package/dist/cli-node.js +2 -0
  658. package/dist/cli.js +2 -0
  659. package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
  660. package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
  661. package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
  662. package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
  663. package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
  664. package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
  665. package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
  666. package/package.json +233 -0
  667. package/scripts/postinstall.cjs +389 -0
  668. package/scripts/run-parallel.mjs +10 -0
  669. package/scripts/setup-chrome-mcp.mjs +70 -0
package/package.json ADDED
@@ -0,0 +1,233 @@
1
+ {
2
+ "name": "claude-code-zanii",
3
+ "version": "2.8.4",
4
+ "description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
5
+ "type": "module",
6
+ "author": "claude-code-best <claude-code-best@proton.me>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/claude-code-best/claude-code.git"
10
+ },
11
+ "homepage": "https://github.com/claude-code-best/claude-code#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/claude-code-best/claude-code/issues"
14
+ },
15
+ "keywords": [
16
+ "claude",
17
+ "anthropic",
18
+ "cli",
19
+ "ai",
20
+ "coding-assistant",
21
+ "terminal",
22
+ "repl"
23
+ ],
24
+ "engines": {
25
+ "bun": ">=1.3.0"
26
+ },
27
+ "bin": {
28
+ "ccz": "dist/cli-node.js",
29
+ "ccz-bun": "dist/cli-bun.js"
30
+ },
31
+ "workspaces": [
32
+ "packages/*",
33
+ "packages/@ant/*",
34
+ "packages/@anthropic-ai/*"
35
+ ],
36
+ "files": [
37
+ "dist",
38
+ "scripts/postinstall.cjs",
39
+ "scripts/run-parallel.mjs",
40
+ "scripts/setup-chrome-mcp.mjs"
41
+ ],
42
+ "scripts": {
43
+ "build": "bun run build.ts",
44
+ "build:vite": "vite build && bun run scripts/post-build.ts",
45
+ "build:vite:only": "vite build",
46
+ "build:bun": "bun run build.ts",
47
+ "dev": "bun run scripts/dev.ts",
48
+ "dev:inspect": "bun run scripts/dev-debug.ts",
49
+ "prepublishOnly": "bun run build:vite",
50
+ "lint": "biome lint .",
51
+ "lint:fix": "biome lint --fix .",
52
+ "format": "biome format --write .",
53
+ "check": "biome check .",
54
+ "check:fix": "biome check --fix .",
55
+ "prepare": "husky",
56
+ "test": "bun test",
57
+ "test:production": "bun run scripts/production-test.ts",
58
+ "test:production:offline": "bun run scripts/production-test.ts --offline",
59
+ "test:production:verbose": "bun run scripts/production-test.ts --verbose",
60
+ "test:production:bun": "bun run scripts/production-test.ts --bun",
61
+ "check:bundle": "bun run scripts/check-bundle-integrity.ts",
62
+ "check:unused": "knip-bun",
63
+ "health": "bun run scripts/health-check.ts",
64
+ "postinstall": "node scripts/run-parallel.mjs scripts/postinstall.cjs scripts/setup-chrome-mcp.mjs",
65
+ "docs:dev": "npx mintlify dev",
66
+ "typecheck": "tsc --noEmit",
67
+ "precheck": "bun run typecheck && bun run check:fix && bun test",
68
+ "rcs": "bun run scripts/rcs.ts"
69
+ },
70
+ "dependencies": {
71
+ "@agentclientprotocol/sdk": "^0.19.0",
72
+ "@claude-code-best/mcp-chrome-bridge": "^3.0.1",
73
+ "@zanii/sdk": "^0.4.0",
74
+ "highlight.js": "^11.11.1",
75
+ "ws": "^8.20.0"
76
+ },
77
+ "devDependencies": {
78
+ "@alcalzone/ansi-tokenize": "^0.3.0",
79
+ "@ant/claude-for-chrome-mcp": "workspace:*",
80
+ "@ant/computer-use-input": "workspace:*",
81
+ "@ant/computer-use-mcp": "workspace:*",
82
+ "@ant/computer-use-swift": "workspace:*",
83
+ "@ant/model-provider": "workspace:*",
84
+ "@anthropic-ai/bedrock-sdk": "^0.29.0",
85
+ "@anthropic-ai/claude-agent-sdk": "^0.2.114",
86
+ "@anthropic-ai/foundry-sdk": "^0.2.3",
87
+ "@anthropic-ai/mcpb": "^2.1.2",
88
+ "@anthropic-ai/sandbox-runtime": "^0.0.44",
89
+ "@anthropic-ai/sdk": "^0.81.0",
90
+ "@anthropic-ai/vertex-sdk": "^0.16.0",
91
+ "@anthropic/ink": "workspace:*",
92
+ "@aws-sdk/client-bedrock": "^3.1037.0",
93
+ "@aws-sdk/client-bedrock-runtime": "^3.1037.0",
94
+ "@aws-sdk/client-sts": "^3.1037.0",
95
+ "@aws-sdk/credential-provider-node": "^3.972.36",
96
+ "@aws-sdk/credential-providers": "^3.1037.0",
97
+ "@azure/identity": "^4.13.1",
98
+ "@biomejs/biome": "^2.4.12",
99
+ "@claude-code-best/agent-tools": "workspace:*",
100
+ "@claude-code-best/builtin-tools": "workspace:*",
101
+ "@claude-code-best/mcp-client": "workspace:*",
102
+ "@claude-code-best/weixin": "workspace:*",
103
+ "@commander-js/extra-typings": "^14.0.0",
104
+ "@growthbook/growthbook": "^1.6.5",
105
+ "@langfuse/otel": "^5.1.0",
106
+ "@langfuse/tracing": "^5.1.0",
107
+ "@modelcontextprotocol/sdk": "^1.29.0",
108
+ "@opentelemetry/api": "^1.9.1",
109
+ "@opentelemetry/api-logs": "^0.215.0",
110
+ "@opentelemetry/core": "^2.7.0",
111
+ "@opentelemetry/exporter-logs-otlp-grpc": "^0.215.0",
112
+ "@opentelemetry/exporter-logs-otlp-http": "^0.215.0",
113
+ "@opentelemetry/exporter-logs-otlp-proto": "^0.215.0",
114
+ "@opentelemetry/exporter-metrics-otlp-grpc": "^0.215.0",
115
+ "@opentelemetry/exporter-metrics-otlp-http": "^0.215.0",
116
+ "@opentelemetry/exporter-metrics-otlp-proto": "^0.215.0",
117
+ "@opentelemetry/exporter-prometheus": "^0.215.0",
118
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.215.0",
119
+ "@opentelemetry/exporter-trace-otlp-http": "^0.215.0",
120
+ "@opentelemetry/exporter-trace-otlp-proto": "^0.215.0",
121
+ "@opentelemetry/resources": "^2.7.0",
122
+ "@opentelemetry/sdk-logs": "^0.215.0",
123
+ "@opentelemetry/sdk-metrics": "^2.7.0",
124
+ "@opentelemetry/sdk-trace-base": "^2.7.0",
125
+ "@opentelemetry/semantic-conventions": "^1.40.0",
126
+ "@sentry/node": "^10.49.0",
127
+ "@smithy/core": "^3.23.15",
128
+ "@smithy/node-http-handler": "^4.5.3",
129
+ "@types/bun": "^1.3.12",
130
+ "@types/cacache": "^20.0.1",
131
+ "@types/he": "^1.2.3",
132
+ "@types/lodash-es": "^4.17.12",
133
+ "@types/node": "^25.6.0",
134
+ "@types/picomatch": "^4.0.3",
135
+ "@types/plist": "^3.0.5",
136
+ "@types/proper-lockfile": "^4.1.4",
137
+ "@types/qrcode": "^1.5.6",
138
+ "@types/react": "^19.2.14",
139
+ "@types/react-reconciler": "^0.33.0",
140
+ "@types/semver": "^7.7.1",
141
+ "@types/sharp": "^0.32.0",
142
+ "@types/shell-quote": "^1.7.5",
143
+ "@types/stack-utils": "^2.0.3",
144
+ "@types/turndown": "^5.0.6",
145
+ "@types/ws": "^8.18.1",
146
+ "ajv": "^8.18.0",
147
+ "asciichart": "^1.5.25",
148
+ "audio-capture-napi": "workspace:*",
149
+ "auto-bind": "^5.0.1",
150
+ "axios": "^1.15.2",
151
+ "bidi-js": "^1.0.3",
152
+ "cacache": "^20.0.4",
153
+ "chalk": "^5.6.2",
154
+ "chokidar": "^5.0.0",
155
+ "cli-boxes": "^4.0.1",
156
+ "cli-highlight": "^2.1.11",
157
+ "code-excerpt": "^4.0.0",
158
+ "color-diff-napi": "workspace:*",
159
+ "diff": "^8.0.4",
160
+ "emoji-regex": "^10.6.0",
161
+ "env-paths": "^4.0.0",
162
+ "execa": "^9.6.1",
163
+ "fflate": "^0.8.2",
164
+ "figures": "^6.1.0",
165
+ "fuse.js": "^7.3.0",
166
+ "get-east-asian-width": "^1.5.0",
167
+ "google-auth-library": "^10.6.2",
168
+ "he": "^1.2.0",
169
+ "https-proxy-agent": "^8.0.0",
170
+ "husky": "^9.1.7",
171
+ "ignore": "^7.0.5",
172
+ "image-processor-napi": "workspace:*",
173
+ "indent-string": "^5.0.0",
174
+ "jsonc-parser": "^3.3.1",
175
+ "knip": "^6.4.1",
176
+ "lint-staged": "^16.4.0",
177
+ "lodash-es": "^4.18.1",
178
+ "lru-cache": "^11.3.5",
179
+ "marked": "^17.0.6",
180
+ "modifiers-napi": "workspace:*",
181
+ "openai": "^6.34.0",
182
+ "p-map": "^7.0.4",
183
+ "picomatch": "^4.0.4",
184
+ "plist": "^3.1.0",
185
+ "proper-lockfile": "^4.1.2",
186
+ "qrcode": "^1.5.4",
187
+ "react": "^19.2.5",
188
+ "react-compiler-runtime": "^1.0.0",
189
+ "react-reconciler": "^0.33.0",
190
+ "rollup": "^4.60.2",
191
+ "semver": "^7.7.4",
192
+ "sharp": "^0.34.5",
193
+ "shell-quote": "^1.8.3",
194
+ "signal-exit": "^4.1.0",
195
+ "stack-utils": "^2.0.6",
196
+ "strip-ansi": "^7.2.0",
197
+ "supports-hyperlinks": "^4.4.0",
198
+ "tree-kill": "^1.2.2",
199
+ "turndown": "^7.2.4",
200
+ "type-fest": "^5.6.0",
201
+ "typescript": "^6.0.3",
202
+ "undici": "^7.25.0",
203
+ "url-handler-napi": "workspace:*",
204
+ "usehooks-ts": "^3.1.1",
205
+ "vite": "^8.0.8",
206
+ "vscode-jsonrpc": "^8.2.1",
207
+ "vscode-languageserver-protocol": "^3.17.5",
208
+ "vscode-languageserver-types": "^3.17.5",
209
+ "wrap-ansi": "^10.0.0",
210
+ "xss": "^1.0.15",
211
+ "yaml": "^2.8.3",
212
+ "zod": "^4.3.6"
213
+ },
214
+ "optionalDependencies": {
215
+ "doubaoime-asr": "^0.1.0"
216
+ },
217
+ "overrides": {
218
+ "@inquirer/prompts": "8.4.2",
219
+ "@xmldom/xmldom": "0.8.13",
220
+ "follow-redirects": "1.16.0",
221
+ "hono": "4.12.15",
222
+ "postcss": "8.5.10",
223
+ "uuid": "14.0.0"
224
+ },
225
+ "lint-staged": {
226
+ "*.{ts,tsx,js,mjs,jsx}": [
227
+ "biome check --fix --no-errors-on-unmatched"
228
+ ],
229
+ "*.{json,jsonc}": [
230
+ "biome format --write --no-errors-on-unmatched"
231
+ ]
232
+ }
233
+ }
@@ -0,0 +1,389 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Postinstall script — runs automatically after `bun install` or `npm install`.
4
+ *
5
+ * Downloads ripgrep binary (idempotent, skips if exists).
6
+ * Works in dev mode (src/ exists), published mode (dist/ exists), with bun or node.
7
+ *
8
+ * Usage:
9
+ * node scripts/postinstall.js
10
+ * node scripts/postinstall.js --force
11
+ * bun run scripts/postinstall.js
12
+ */
13
+
14
+ const {
15
+ existsSync,
16
+ mkdirSync,
17
+ readFileSync,
18
+ renameSync,
19
+ rmSync,
20
+ statSync,
21
+ writeFileSync,
22
+ chmodSync,
23
+ } = require('fs')
24
+ const { spawnSync } = require('child_process')
25
+ const { setDefaultResultOrder } = require('node:dns')
26
+ const path = require('path')
27
+ const os = require('os')
28
+
29
+ // Prefer IPv4 first — Bun on Windows sometimes fails GitHub over broken IPv6 paths.
30
+ try {
31
+ setDefaultResultOrder('ipv4first')
32
+ } catch {
33
+ /* ignore */
34
+ }
35
+
36
+ // --- Config ---
37
+
38
+ const RG_VERSION = '15.0.1'
39
+ const DEFAULT_RELEASE_BASE = `https://github.com/microsoft/ripgrep-prebuilt/releases/download/v${RG_VERSION}`
40
+ const MIRROR_RELEASE_BASE = `https://ghproxy.net/https://github.com/microsoft/ripgrep-prebuilt/releases/download/v${RG_VERSION}`
41
+ const RELEASE_BASE = (
42
+ process.env.RIPGREP_DOWNLOAD_BASE ?? DEFAULT_RELEASE_BASE
43
+ ).replace(/\/$/, '')
44
+
45
+ const scriptDir = path.dirname(__filename)
46
+ const projectRoot = path.resolve(scriptDir, '..')
47
+
48
+ // --- Platform mapping ---
49
+
50
+ function getPlatformMapping() {
51
+ const arch = process.arch
52
+ const platform = process.platform
53
+
54
+ if (platform === 'darwin') {
55
+ if (arch === 'arm64')
56
+ return { target: 'aarch64-apple-darwin', ext: 'tar.gz' }
57
+ if (arch === 'x64') return { target: 'x86_64-apple-darwin', ext: 'tar.gz' }
58
+ throw new Error(`Unsupported macOS arch: ${arch}`)
59
+ }
60
+
61
+ if (platform === 'win32') {
62
+ if (arch === 'x64') return { target: 'x86_64-pc-windows-msvc', ext: 'zip' }
63
+ if (arch === 'arm64')
64
+ return { target: 'aarch64-pc-windows-msvc', ext: 'zip' }
65
+ throw new Error(`Unsupported Windows arch: ${arch}`)
66
+ }
67
+
68
+ if (platform === 'linux') {
69
+ const isMusl = detectMusl()
70
+ if (arch === 'x64') {
71
+ return { target: 'x86_64-unknown-linux-musl', ext: 'tar.gz' }
72
+ }
73
+ if (arch === 'arm64') {
74
+ return isMusl
75
+ ? { target: 'aarch64-unknown-linux-musl', ext: 'tar.gz' }
76
+ : { target: 'aarch64-unknown-linux-gnu', ext: 'tar.gz' }
77
+ }
78
+ throw new Error(`Unsupported Linux arch: ${arch}`)
79
+ }
80
+
81
+ throw new Error(`Unsupported platform: ${platform}`)
82
+ }
83
+
84
+ function detectMusl() {
85
+ const muslArch = process.arch === 'x64' ? 'x86_64' : 'aarch64'
86
+ try {
87
+ statSync(`/lib/libc.musl-${muslArch}.so.1`)
88
+ return true
89
+ } catch {
90
+ return false
91
+ }
92
+ }
93
+
94
+ // --- Paths ---
95
+
96
+ function getVendorDir() {
97
+ if (existsSync(path.join(projectRoot, 'src'))) {
98
+ return path.resolve(projectRoot, 'src', 'utils', 'vendor', 'ripgrep')
99
+ }
100
+ return path.resolve(projectRoot, 'dist', 'vendor', 'ripgrep')
101
+ }
102
+
103
+ function getBinaryPath() {
104
+ const dir = getVendorDir()
105
+ const subdir = `${process.arch}-${process.platform}`
106
+ const binary = process.platform === 'win32' ? 'rg.exe' : 'rg'
107
+ return path.resolve(dir, subdir, binary)
108
+ }
109
+
110
+ // --- Download helpers ---
111
+
112
+ function proxyEnvSet() {
113
+ const v = s => (s ?? '').trim()
114
+ return !!(
115
+ v(process.env.HTTPS_PROXY) ||
116
+ v(process.env.HTTP_PROXY) ||
117
+ v(process.env.ALL_PROXY) ||
118
+ v(process.env.https_proxy) ||
119
+ v(process.env.http_proxy)
120
+ )
121
+ }
122
+
123
+ function tryPowerShellDownload(url, dest) {
124
+ const u = url.replace(/'/g, "''")
125
+ const d = dest.replace(/'/g, "''")
126
+ const cmd = `Invoke-WebRequest -Uri '${u}' -OutFile '${d}' -UseBasicParsing`
127
+ const result = spawnSync(
128
+ 'powershell.exe',
129
+ [
130
+ '-NoProfile',
131
+ '-NonInteractive',
132
+ '-ExecutionPolicy',
133
+ 'Bypass',
134
+ '-Command',
135
+ cmd,
136
+ ],
137
+ { stdio: 'pipe', windowsHide: true },
138
+ )
139
+ return result.status === 0 && existsSync(dest) && statSync(dest).size > 0
140
+ }
141
+
142
+ function tryCurlDownload(url, dest) {
143
+ const curl = process.platform === 'win32' ? 'curl.exe' : 'curl'
144
+ const result = spawnSync(curl, ['-fsSL', '-L', '--fail', '-o', dest, url], {
145
+ stdio: 'pipe',
146
+ windowsHide: true,
147
+ })
148
+ return result.status === 0 && existsSync(dest) && statSync(dest).size > 0
149
+ }
150
+
151
+ async function fetchRelease(url) {
152
+ if (proxyEnvSet()) {
153
+ // Dynamic require so it works in node without bundling issues
154
+ const undici = require('undici')
155
+ return await undici.fetch(url, {
156
+ redirect: 'follow',
157
+ dispatcher: new undici.EnvHttpProxyAgent(),
158
+ })
159
+ }
160
+ // Node 18+ has global fetch, Bun has it too
161
+ return await fetch(url, { redirect: 'follow' })
162
+ }
163
+
164
+ async function downloadUrlToBuffer(url) {
165
+ const response = await fetchRelease(url)
166
+ if (!response.ok) {
167
+ throw new Error(
168
+ `Download failed: ${response.status} ${response.statusText}`,
169
+ )
170
+ }
171
+ return Buffer.from(await response.arrayBuffer())
172
+ }
173
+
174
+ async function downloadUrlToBufferWithFallback(url) {
175
+ let firstError
176
+ try {
177
+ return await downloadUrlToBuffer(url)
178
+ } catch (e) {
179
+ firstError = e
180
+ }
181
+
182
+ const tmpRoot = path.join(
183
+ os.tmpdir(),
184
+ `ripgrep-dl-${process.pid}-${Date.now()}`,
185
+ )
186
+ const tmpFile = path.join(tmpRoot, 'archive')
187
+ mkdirSync(tmpRoot, { recursive: true })
188
+ try {
189
+ if (process.platform === 'win32' && tryPowerShellDownload(url, tmpFile)) {
190
+ return readFileSync(tmpFile)
191
+ }
192
+ if (tryCurlDownload(url, tmpFile)) {
193
+ return readFileSync(tmpFile)
194
+ }
195
+ } finally {
196
+ rmSync(tmpRoot, { recursive: true, force: true })
197
+ }
198
+
199
+ throw firstError
200
+ }
201
+
202
+ // --- Extract ---
203
+
204
+ function findZipEntryKey(files, want) {
205
+ return Object.keys(files).find(k => {
206
+ const norm = k.replace(/\\/g, '/')
207
+ return norm === want || norm.endsWith(`/${want}`)
208
+ })
209
+ }
210
+
211
+ async function extractZip(buffer, binaryPath, extractedBinary) {
212
+ const binaryDir = path.dirname(binaryPath)
213
+ // Try fflate first (bundled dep)
214
+ let fflateError
215
+ try {
216
+ const { unzipSync } = require('fflate')
217
+ const unzipped = unzipSync(new Uint8Array(buffer))
218
+ const key = findZipEntryKey(unzipped, extractedBinary)
219
+ if (!key) {
220
+ throw new Error(`Binary ${extractedBinary} not found in zip`)
221
+ }
222
+ writeFileSync(binaryPath, Buffer.from(unzipped[key]))
223
+ return
224
+ } catch (e) {
225
+ fflateError = e
226
+ }
227
+
228
+ // Fallback: PowerShell Expand-Archive or unzip CLI
229
+ const tmpDir = path.join(binaryDir, '.tmp-download')
230
+ rmSync(tmpDir, { recursive: true, force: true })
231
+ mkdirSync(tmpDir, { recursive: true })
232
+ try {
233
+ const assetName = `archive.zip`
234
+ const archivePath = path.join(tmpDir, assetName)
235
+ writeFileSync(archivePath, buffer)
236
+
237
+ let extracted = false
238
+ if (process.platform === 'win32') {
239
+ const psCmd = `Expand-Archive -Path '${archivePath.replace(/'/g, "''")}' -DestinationPath '${tmpDir.replace(/'/g, "''")}' -Force`
240
+ const psResult = spawnSync(
241
+ 'powershell.exe',
242
+ [
243
+ '-NoProfile',
244
+ '-NonInteractive',
245
+ '-ExecutionPolicy',
246
+ 'Bypass',
247
+ '-Command',
248
+ psCmd,
249
+ ],
250
+ { stdio: 'pipe', windowsHide: true },
251
+ )
252
+ if (psResult.status === 0) {
253
+ extracted = true
254
+ }
255
+ }
256
+
257
+ if (!extracted) {
258
+ const result = spawnSync('unzip', ['-o', archivePath, '-d', tmpDir], {
259
+ stdio: 'pipe',
260
+ })
261
+ if (result.status !== 0) {
262
+ const unzipErr = result.stderr?.toString().trim() || 'command not found'
263
+ const fflateMsg =
264
+ fflateError instanceof Error
265
+ ? fflateError.message
266
+ : String(fflateError)
267
+ throw new Error(
268
+ `zip extraction failed (fflate: ${fflateMsg}; unzip: ${unzipErr})`,
269
+ )
270
+ }
271
+ }
272
+
273
+ const srcBinary = path.join(tmpDir, extractedBinary)
274
+ if (!existsSync(srcBinary)) {
275
+ throw new Error(`Binary not found at expected path: ${srcBinary}`)
276
+ }
277
+ renameSync(srcBinary, binaryPath)
278
+ } finally {
279
+ rmSync(tmpDir, { recursive: true, force: true })
280
+ }
281
+ }
282
+
283
+ async function extractTarGz(buffer, binaryPath, extractedBinary, assetName) {
284
+ const binaryDir = path.dirname(binaryPath)
285
+ const tmpDir = path.join(binaryDir, '.tmp-download')
286
+ rmSync(tmpDir, { recursive: true, force: true })
287
+ mkdirSync(tmpDir, { recursive: true })
288
+ try {
289
+ const archivePath = path.join(tmpDir, assetName)
290
+ writeFileSync(archivePath, buffer)
291
+ const result = spawnSync('tar', ['xzf', archivePath, '-C', tmpDir], {
292
+ stdio: 'pipe',
293
+ })
294
+ if (result.status !== 0) {
295
+ throw new Error(`tar extract failed: ${result.stderr?.toString()}`)
296
+ }
297
+ const srcBinary = path.join(tmpDir, extractedBinary)
298
+ if (!existsSync(srcBinary)) {
299
+ throw new Error(`Binary not found at expected path: ${srcBinary}`)
300
+ }
301
+ renameSync(srcBinary, binaryPath)
302
+ } finally {
303
+ rmSync(tmpDir, { recursive: true, force: true })
304
+ }
305
+ }
306
+
307
+ // --- Main ---
308
+
309
+ async function downloadAndExtract() {
310
+ const { target, ext } = getPlatformMapping()
311
+ const assetName = `ripgrep-v${RG_VERSION}-${target}.${ext}`
312
+
313
+ const binaryPath = getBinaryPath()
314
+ const binaryDir = path.dirname(binaryPath)
315
+
316
+ const force = process.argv.includes('--force')
317
+ if (!force && existsSync(binaryPath)) {
318
+ const stat = statSync(binaryPath)
319
+ if (stat.size > 0) {
320
+ console.log(`[ripgrep] Binary already exists at ${binaryPath}, skipping.`)
321
+ return
322
+ }
323
+ }
324
+
325
+ console.log(`[ripgrep] Downloading v${RG_VERSION} for ${target}...`)
326
+
327
+ const extractedBinary = process.platform === 'win32' ? 'rg.exe' : 'rg'
328
+
329
+ const mirrors = [RELEASE_BASE]
330
+ if (RELEASE_BASE === DEFAULT_RELEASE_BASE.replace(/\/$/, '')) {
331
+ mirrors.push(MIRROR_RELEASE_BASE.replace(/\/$/, ''))
332
+ }
333
+
334
+ let buffer
335
+ let lastError
336
+ for (const base of mirrors) {
337
+ const url = `${base}/${assetName}`
338
+ try {
339
+ console.log(`[ripgrep] Trying ${url}`)
340
+ buffer = await downloadUrlToBufferWithFallback(url)
341
+ break
342
+ } catch (e) {
343
+ console.warn(
344
+ `[ripgrep] Download from ${base} failed: ${e instanceof Error ? e.message : e}`,
345
+ )
346
+ lastError = e
347
+ }
348
+ }
349
+ if (!buffer) {
350
+ throw lastError
351
+ }
352
+
353
+ try {
354
+ console.log(`[ripgrep] Downloaded ${Math.round(buffer.length / 1024)} KB`)
355
+
356
+ mkdirSync(binaryDir, { recursive: true })
357
+
358
+ if (ext === 'tar.gz') {
359
+ await extractTarGz(buffer, binaryPath, extractedBinary, assetName)
360
+ } else {
361
+ await extractZip(buffer, binaryPath, extractedBinary)
362
+ }
363
+
364
+ if (process.platform !== 'win32') {
365
+ chmodSync(binaryPath, 0o755)
366
+ }
367
+
368
+ console.log(`[ripgrep] Installed to ${binaryPath}`)
369
+ } catch (e) {
370
+ const msg = e instanceof Error ? e.message : String(e)
371
+ const hint =
372
+ 'Check network or set HTTPS_PROXY. If GitHub is blocked, set RIPGREP_DOWNLOAD_BASE to a mirror (see script header).'
373
+ throw new Error(`${msg} ${hint}`)
374
+ }
375
+ }
376
+
377
+ async function main() {
378
+ await downloadAndExtract()
379
+ }
380
+
381
+ main().catch(error => {
382
+ const msg = error instanceof Error ? error.message : String(error)
383
+ console.error(`[postinstall] ripgrep download failed (non-fatal): ${msg}`)
384
+ console.error(
385
+ `[postinstall] You can install ripgrep manually: https://github.com/BurntSushi/ripgrep#installation`,
386
+ )
387
+ // Never exit with error code — postinstall must not break install
388
+ process.exit(0)
389
+ })
@@ -0,0 +1,10 @@
1
+ import { spawn } from 'node:child_process'
2
+
3
+ const scripts = process.argv.slice(2)
4
+ if (scripts.length === 0) {
5
+ process.exit(0)
6
+ }
7
+
8
+ for (const script of scripts) {
9
+ spawn(process.execPath, [script], { stdio: 'inherit', shell: false })
10
+ }
@@ -0,0 +1,70 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Unified Chrome MCP setup script.
5
+ *
6
+ * Usage:
7
+ * node scripts/setup-chrome-mcp.mjs # Run full setup (fix-permissions → register → doctor)
8
+ * node scripts/setup-chrome-mcp.mjs doctor # Run a single sub-command
9
+ */
10
+
11
+ import { execFileSync } from 'node:child_process'
12
+ import { mkdirSync } from 'node:fs'
13
+ import { createRequire } from 'node:module'
14
+ import { homedir } from 'node:os'
15
+ import { join } from 'node:path'
16
+
17
+ if (process.env.CLAUDE_CODE_SKIP_CHROME_MCP_SETUP === '1') {
18
+ process.exit(0)
19
+ }
20
+
21
+ const require = createRequire(import.meta.url)
22
+ const cliPath = require.resolve(
23
+ '@claude-code-best/mcp-chrome-bridge/dist/cli.js',
24
+ )
25
+
26
+ const userArgs = process.argv.slice(2)
27
+
28
+ function getChromeMcpLogDir() {
29
+ const home = homedir()
30
+ if (process.platform === 'darwin') {
31
+ return join(home, 'Library', 'Logs', 'mcp-chrome-bridge')
32
+ }
33
+ if (process.platform === 'win32') {
34
+ return join(
35
+ process.env.LOCALAPPDATA || join(home, 'AppData', 'Local'),
36
+ 'mcp-chrome-bridge',
37
+ 'logs',
38
+ )
39
+ }
40
+ return join(
41
+ process.env.XDG_STATE_HOME || join(home, '.local', 'state'),
42
+ 'mcp-chrome-bridge',
43
+ 'logs',
44
+ )
45
+ }
46
+
47
+ if (userArgs.length > 0) {
48
+ // Forward single sub-command
49
+ execFileSync('node', [cliPath, ...userArgs], { stdio: 'inherit' })
50
+ } else {
51
+ // Full setup sequence
52
+ const steps = [
53
+ ['fix-permissions'],
54
+ ['register', '--browser', 'chrome'],
55
+ ['doctor'],
56
+ ]
57
+
58
+ mkdirSync(getChromeMcpLogDir(), { recursive: true })
59
+
60
+ for (let i = 0; i < steps.length; i++) {
61
+ const args = steps[i]
62
+ const isLast = i === steps.length - 1
63
+ if (isLast) console.log(`\n[${i + 1}/${steps.length}] ${args.join(' ')}`)
64
+ execFileSync('node', [cliPath, ...args], {
65
+ stdio: isLast ? 'inherit' : 'pipe',
66
+ })
67
+ }
68
+
69
+ console.log('\nChrome MCP setup complete!')
70
+ }