claude-code-best 2.6.13 → 2.7.1

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 (898) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-C7od6sFQ.js +1 -0
  2. package/dist/chunks/App-EfHjElWP.js +1 -0
  3. package/dist/chunks/ApproveApiKey-CSz0291w.js +1 -0
  4. package/dist/chunks/ApproveApiKey-Cc5SaLqs.js +1 -0
  5. package/dist/chunks/AssistantSessionChooser-mLIhDlxW.js +1 -0
  6. package/dist/chunks/BackgroundTasksDialog-OkUSMj0I.js +2 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-BCdft-m_.js +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-BPlrCIo-.js +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-BbPaorIs.js +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-D8fk-Ib5.js +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-Dyv4mI_o.js +1 -0
  12. package/dist/chunks/DesktopHandoff-BQwx7qWA.js +1 -0
  13. package/dist/chunks/DevChannelsDialog-CujM8Ivu.js +1 -0
  14. package/dist/chunks/DiffDialog-Byv1UJvS.js +3 -0
  15. package/dist/chunks/Doctor-CRrE5Sf4.js +1 -0
  16. package/dist/chunks/Doctor-Cv7wbi6C.js +3 -0
  17. package/dist/chunks/ExitFlow-DKusdm_v.js +2 -0
  18. package/dist/chunks/Feedback-Diw8XUr-.js +2 -0
  19. package/dist/chunks/Grove-CAi037VV.js +11 -0
  20. package/dist/chunks/Grove-CgX5Fdeh.js +1 -0
  21. package/dist/chunks/HybridTransport-CP0RopXu.js +4 -0
  22. package/dist/chunks/ITermBackend-RvD4VX7c.js +1 -0
  23. package/dist/chunks/InvalidConfigDialog-Bhlgysxl.js +1 -0
  24. package/dist/chunks/InvalidSettingsDialog-dGStgJZN.js +1 -0
  25. package/dist/chunks/MCPConnectionManager-D5a9ysw2.js +1 -0
  26. package/dist/chunks/McpParsingWarnings-B_z9pZ_8.js +1 -0
  27. package/dist/chunks/MessageSelector-CEvbAZGv.js +3 -0
  28. package/dist/chunks/Messages-DTmFVhRG.js +11 -0
  29. package/dist/chunks/Onboarding-BoAtphYb.js +1 -0
  30. package/dist/chunks/OverageCreditUpsell-DA7Ne7Mj.js +1 -0
  31. package/dist/chunks/PluginSettings-D3bQRsge.js +17 -0
  32. package/dist/chunks/PromptInputFooterSuggestions-DhIQ0Nge.js +1 -0
  33. package/dist/chunks/PromptInputHelpMenu-B__j9zE6.js +1 -0
  34. package/dist/chunks/QueryEngine-CMcQGyql.js +1 -0
  35. package/dist/chunks/REPL-B1BS9jwx.js +147 -0
  36. package/dist/chunks/REPL-C9f3ToGu.js +1 -0
  37. package/dist/chunks/RemoteCallout-Bwe1ESr9.js +1 -0
  38. package/dist/chunks/RemoteSessionManager-BKD4YmzY.js +2 -0
  39. package/dist/chunks/ResumeConversation-DxqbAKA4.js +1 -0
  40. package/dist/chunks/SSETransport-D3e5KNL3.js +4 -0
  41. package/dist/chunks/SearchExtraToolsTool-BVAhywUI.js +1 -0
  42. package/dist/chunks/SentryErrorBoundary-D-YZTGQG.js +2 -0
  43. package/dist/chunks/SentryErrorBoundary-M1ipwe1n.js +1 -0
  44. package/dist/chunks/Settings-D5EWYL40.js +2 -0
  45. package/dist/chunks/TeleportProgress-C3Ubx1Se.js +1 -0
  46. package/dist/chunks/TeleportRepoMismatchDialog-D_ax3xQy.js +1 -0
  47. package/dist/chunks/TeleportResumeWrapper-DeVKIXQp.js +1 -0
  48. package/dist/chunks/ThemePicker-DKmIL5Ku.js +1 -0
  49. package/dist/chunks/TmuxBackend-Bm_cRJ2x.js +9 -0
  50. package/dist/chunks/TrustDialog-ClXFMKj6.js +1 -0
  51. package/dist/chunks/TungstenTool-B40YHYXC.js +1 -0
  52. package/dist/chunks/ValidationErrorsList-SdQADfvA.js +2 -0
  53. package/dist/chunks/WelcomeV2-BijS6i2Z.js +1 -0
  54. package/dist/chunks/WindowsTerminalBackend-CGEQ5ClB.js +2 -0
  55. package/dist/chunks/add-dir-B7kleB6k.js +1 -0
  56. package/dist/chunks/agentDisplay-Dr1XbOAu.js +1 -0
  57. package/dist/chunks/agents-CpLvvWpO.js +103 -0
  58. package/dist/chunks/agents-Dy5YOJC9.js +2 -0
  59. package/dist/chunks/ant-gwf-4eGN.js +1 -0
  60. package/dist/chunks/api-BdbBnz5c.js +1 -0
  61. package/dist/chunks/api-CDmgYrwN.js +1 -0
  62. package/dist/chunks/asciicast-C_1Pi99k.js +4 -0
  63. package/dist/chunks/asciicast-DA6TudSH.js +1 -0
  64. package/dist/chunks/assistant-1usDIXtk.js +1 -0
  65. package/dist/chunks/assistant-BMviqf0l.js +1 -0
  66. package/dist/chunks/assistant-BULedprW.js +1 -0
  67. package/dist/chunks/auth-CvHVr2A5.js +1 -0
  68. package/dist/chunks/auth-ORBmEqnH.js +1 -0
  69. package/dist/chunks/autoMode-DSMM2seL.js +45 -0
  70. package/dist/chunks/autonomy-Dj6Nzxus.js +19 -0
  71. package/dist/chunks/autonomy-TtBO2TAe.js +1 -0
  72. package/dist/chunks/autonomyPanel-CbmU7lPg.js +1 -0
  73. package/dist/chunks/backgroundHousekeeping-BAvSPaZ5.js +1 -0
  74. package/dist/chunks/backgroundHousekeeping-Cp2RvmEN.js +17 -0
  75. package/dist/chunks/banner-D9Cq292T.js +2 -0
  76. package/dist/chunks/bg-CngkAkgc.js +1 -0
  77. package/dist/chunks/bg-DgpgS_VU.js +9 -0
  78. package/dist/chunks/branch-Cj5TGroO.js +3 -0
  79. package/dist/chunks/break-cache-DrIa8RdW.js +8 -0
  80. package/dist/chunks/bridge-CsqJAoEg.js +2 -0
  81. package/dist/chunks/bridgeConfig-B49H_B9L.js +1 -0
  82. package/dist/chunks/bridgeConfig-pjDV5Z2l.js +1 -0
  83. package/dist/chunks/bridgeEnabled-D9jI6X-w.js +1 -0
  84. package/dist/chunks/bridgeEnabled-DsG2JvIr.js +1 -0
  85. package/dist/chunks/bridgeMain-CNmR9iDD.js +68 -0
  86. package/dist/chunks/bridgeMain-DYCShrcV.js +1 -0
  87. package/dist/chunks/bridgeMessaging-DN0X35NX.js +1 -0
  88. package/dist/chunks/bridgePointer-Clcvh52n.js +1 -0
  89. package/dist/chunks/browser-Bt-ckCaU.js +1 -0
  90. package/dist/chunks/btw-BOg0RTKl.js +1 -0
  91. package/dist/chunks/buddy-BFuPeIxM.js +3 -0
  92. package/dist/chunks/bypassPermissionsKillswitch-kxVnIVRs.js +1 -0
  93. package/dist/chunks/caches-BsYvQnWV.js +1 -0
  94. package/dist/chunks/caches-BumkMuGA.js +3 -0
  95. package/dist/chunks/ccrClient-BI1QPLmN.js +1 -0
  96. package/dist/chunks/changeDetector-By54zja0.js +1 -0
  97. package/dist/chunks/channelNotification-CoZSFUlb.js +1 -0
  98. package/dist/chunks/channelNotification-Cx82K1CD.js +1 -0
  99. package/dist/chunks/chrome-C_5EZcdc.js +1 -0
  100. package/dist/chunks/chromeNativeHost-BldB1Zzi.js +1 -0
  101. package/dist/chunks/claudeDesktop-BqTW_pbB.js +1 -0
  102. package/dist/chunks/cleanup-rCLlo4w8.js +1 -0
  103. package/dist/chunks/clear-BQr2zTyP.js +1 -0
  104. package/dist/chunks/cliLaunch-Citfs01Q.js +1 -0
  105. package/dist/chunks/client-BbavFXJZ.js +1 -0
  106. package/dist/chunks/color-DOsgZO2n.js +1 -0
  107. package/dist/chunks/commands-CfwfGt3T.js +1 -0
  108. package/dist/chunks/commitAttribution-CH9C_hoL.js +1 -0
  109. package/dist/chunks/commitAttribution-iKd8bTOI.js +2 -0
  110. package/dist/chunks/common-Bi4yZBkh.js +1 -0
  111. package/dist/chunks/common-Da57Qwms.js +1 -0
  112. package/dist/chunks/common-NEOWMwtB.js +1 -0
  113. package/dist/chunks/compact-B6Muofhz.js +3 -0
  114. package/dist/chunks/companion-B_LrjSk5.js +1 -0
  115. package/dist/chunks/completionCache-BQgiR45Q.js +1 -0
  116. package/dist/chunks/completionCache-C7hDqIDL.js +4 -0
  117. package/dist/chunks/computerUseLock-Diig5B8p.js +1 -0
  118. package/dist/chunks/config-CJd9kJ57.js +1 -0
  119. package/dist/chunks/config-CQd4IkXo.js +1 -0
  120. package/dist/chunks/context-noninteractive-DCYvLxWx.js +1 -0
  121. package/dist/chunks/context-noninteractive-DZsSp-ES.js +54 -0
  122. package/dist/chunks/context-qAHTuazZ.js +1 -0
  123. package/dist/chunks/conversation-DYUVAAQt.js +1 -0
  124. package/dist/chunks/conversation-NrAy2em3.js +1 -0
  125. package/dist/chunks/copy-B2jhZndZ.js +7 -0
  126. package/dist/chunks/createSSHSession-CKdoEmAg.js +6 -0
  127. package/dist/chunks/createSession-Czx7_nf6.js +1 -0
  128. package/dist/chunks/createSession-WkBw7wdn.js +1 -0
  129. package/dist/chunks/cronJitterConfig-2u6WAlti.js +6 -0
  130. package/dist/chunks/crossProjectResume-CjJISRBQ.js +40 -0
  131. package/dist/chunks/daemon-BRKR4D1D.js +2 -0
  132. package/dist/chunks/datadog-QSR9B7CZ.js +1 -0
  133. package/dist/chunks/datadog-YsyhnDmr.js +1 -0
  134. package/dist/chunks/debug-DIYxb3SF.js +1 -0
  135. package/dist/chunks/debug-otxXY3j-.js +5 -0
  136. package/dist/chunks/debugUtils-l8nsUZ6R.js +1 -0
  137. package/dist/chunks/desktop-BN9pHpK_.js +1 -0
  138. package/dist/chunks/detached-C_2ZXr7X.js +5 -0
  139. package/dist/chunks/detectRepository-2ICvGD0U.js +1 -0
  140. package/dist/chunks/detectRepository-BLwSmun2.js +1 -0
  141. package/dist/chunks/detection-0mMj--Bt.js +1 -0
  142. package/dist/chunks/detection-95TCHkW8.js +1 -0
  143. package/dist/chunks/diff-BTtUFuf-.js +1 -0
  144. package/dist/chunks/directoryCompletion-DqtWZsoW.js +1 -0
  145. package/dist/chunks/doctor-BKBb426q.js +1 -0
  146. package/dist/chunks/earlyInput-CFYRGxau.js +2 -0
  147. package/dist/chunks/earlyInput-D3OhUZ4G.js +1 -0
  148. package/dist/chunks/effort-ClhxMqY6.js +9 -0
  149. package/dist/chunks/entry-CJlJ47nP.js +14 -0
  150. package/dist/chunks/env-C2A9gV_G.js +1 -0
  151. package/dist/chunks/envLessBridgeConfig-C9UUbQCo.js +1 -0
  152. package/dist/chunks/envLessBridgeConfig-DSJqg3Ox.js +1 -0
  153. package/dist/chunks/escHotkey-D8WgbSyj.js +259 -0
  154. package/dist/chunks/execFileNoThrow-azCkYhmF.js +1 -0
  155. package/dist/chunks/execSyncWrapper-Bn7EJqtD.js +1 -0
  156. package/dist/chunks/executor-BVh1PTF-.js +1561 -0
  157. package/dist/chunks/executor-CvTuHx-k.js +1 -0
  158. package/dist/chunks/exit-DxY3yJrp.js +1 -0
  159. package/dist/chunks/export-DS2esu8D.js +2 -0
  160. package/dist/chunks/exportRenderer-DX2L5fQ7.js +1 -0
  161. package/dist/chunks/extra-usage-DaxUQk9I.js +1 -0
  162. package/dist/chunks/extra-usage-XJxfHsbe.js +1 -0
  163. package/dist/chunks/extra-usage-core-D84ifgBo.js +1 -0
  164. package/dist/chunks/extra-usage-noninteractive-fxqxHnIt.js +1 -0
  165. package/dist/chunks/extraUsage-P_NGI1-I.js +1 -0
  166. package/dist/chunks/extractMemories-B3cTWsph.js +1 -0
  167. package/dist/chunks/fast-CHiQGMBE.js +1 -0
  168. package/dist/chunks/fast-CpN8lLnE.js +1 -0
  169. package/dist/chunks/featureCheck-CUJ2rPM6.js +1 -0
  170. package/dist/chunks/feedback-CqRsOG3c.js +1 -0
  171. package/dist/chunks/fileStateCache-BhVfo23e.js +1 -0
  172. package/dist/chunks/files-Bdr_PQyV.js +2 -0
  173. package/dist/chunks/findExecutable-BHQl4NaS.js +1 -0
  174. package/dist/chunks/firstPartyEventLogger-CM0V7Uev.js +1 -0
  175. package/dist/chunks/flushGate-DNutWuOE.js +1 -0
  176. package/dist/chunks/gates-C4JvRq4i.js +1 -0
  177. package/dist/chunks/gates-DvjyKZVA.js +1 -0
  178. package/dist/chunks/gemini-B0M6SQSG.js +1 -0
  179. package/dist/chunks/generateRecap-DhDOgXn3.js +1 -0
  180. package/dist/chunks/generateSessionName-CoFR2wgK.js +1 -0
  181. package/dist/chunks/genericProcessUtils-tJxf3yqB.js +23 -0
  182. package/dist/chunks/git-C0IuvuIy.js +6 -0
  183. package/dist/chunks/git-hSvFiuiG.js +1 -0
  184. package/dist/chunks/githubRepoPathMapping-DGiSNykv.js +1 -0
  185. package/dist/chunks/goal-DRb6pPAp.js +3 -0
  186. package/dist/chunks/grok-emDua_hT.js +1 -0
  187. package/dist/chunks/growthbook-COAneL48.js +1 -0
  188. package/dist/chunks/heapdump-CA6DHA8G.js +5 -0
  189. package/dist/chunks/help-XXY7deZm.js +1 -0
  190. package/dist/chunks/hooks-C6zZYnDi.js +79 -0
  191. package/dist/chunks/hooks-DOej0jqp.js +1 -0
  192. package/dist/chunks/hostAdapter-DZbdeXCV.js +1 -0
  193. package/dist/chunks/hostGuard-DSOEyH-P.js +1 -0
  194. package/dist/chunks/ide-BLRNkzVx.js +2 -0
  195. package/dist/chunks/inboundAttachments-60kD5Qt_.js +1 -0
  196. package/dist/chunks/inboundAttachments-BBYxcnvj.js +1 -0
  197. package/dist/chunks/initReplBridge-Dt2aQBia.js +1 -0
  198. package/dist/chunks/insights-BBugI3tW.js +822 -0
  199. package/dist/chunks/install-CuVHbwyW.js +1 -0
  200. package/dist/chunks/install-github-app-ByyzrlM9.js +147 -0
  201. package/dist/chunks/install-slack-app-CJGtmacz.js +1 -0
  202. package/dist/chunks/instrumentation-C8zvzMg1.js +12 -0
  203. package/dist/chunks/job-DBf6aPQX.js +2 -0
  204. package/dist/chunks/jwtUtils-BQXXBwqW.js +1 -0
  205. package/dist/chunks/keybindings-Bi7SMp5-.js +2 -0
  206. package/dist/chunks/lang-CVDkUhjk.js +1 -0
  207. package/dist/chunks/language-BYeqMX74.js +1 -0
  208. package/dist/chunks/language-BoKr5ylY.js +1 -0
  209. package/dist/chunks/launchAgentsPlatform-BKqxMFFn.js +1 -0
  210. package/dist/chunks/launchAutofixPr-CauX6gOB.js +18 -0
  211. package/dist/chunks/launchLocalMemory-Brrd_BJC.js +3 -0
  212. package/dist/chunks/launchLocalVault-DtAn656A.js +3 -0
  213. package/dist/chunks/launchMemoryStores-x7_Id7Yr.js +1 -0
  214. package/dist/chunks/launchOnboarding-DkamFByn.js +8 -0
  215. package/dist/chunks/launchSchedule-DjNQNxW4.js +1 -0
  216. package/dist/chunks/launchSkillStore-D2GUGhDD.js +1 -0
  217. package/dist/chunks/launchTeleport-DTfhiZkf.js +3 -0
  218. package/dist/chunks/launchVault-BZ2Po4r8.js +1 -0
  219. package/dist/chunks/loadAgentsDir-C_wFhytF.js +4697 -0
  220. package/dist/chunks/loadAgentsDir-whRB0phu.js +1 -0
  221. package/dist/chunks/loadPluginHooks-CYZjzxyO.js +1 -0
  222. package/dist/chunks/localSearch-B0p0_bjP.js +1 -0
  223. package/dist/chunks/localSearch-DAwFmV2Y.js +1 -0
  224. package/dist/chunks/log-DSV4Ht5l.js +1 -0
  225. package/dist/chunks/login-C1uE6Pg9.js +1 -0
  226. package/dist/chunks/login-DOyB64Rv.js +1 -0
  227. package/dist/chunks/logoV2Utils-BJHvwGup.js +1 -0
  228. package/dist/chunks/logout-DTPo3Myl.js +1 -0
  229. package/dist/chunks/magicDocs-DPZzG7Z2.js +57 -0
  230. package/dist/chunks/main-CNwSLti2.js +1312 -0
  231. package/dist/chunks/main-CfkIGrBF.js +31 -0
  232. package/dist/chunks/mappers-Dxs_kNJH.js +1 -0
  233. package/dist/chunks/mcp-CVnFM6nR.js +6 -0
  234. package/dist/chunks/mcp-CbDDqdzF.js +2 -0
  235. package/dist/chunks/mcp-CzfQB8BT.js +1 -0
  236. package/dist/chunks/mcpServer-BJNjQXsU.js +1 -0
  237. package/dist/chunks/mcpServer-Py4Iz9Hx.js +1 -0
  238. package/dist/chunks/memoize-DJ1XCN-z.js +1 -0
  239. package/dist/chunks/memory-BdUqEKio.js +1 -0
  240. package/dist/chunks/mobile-BMglW1NB.js +2 -0
  241. package/dist/chunks/mode-CqGusjoT.js +2 -0
  242. package/dist/chunks/model-BBULcn7y.js +1 -0
  243. package/dist/chunks/model-BOc_-7m0.js +1 -0
  244. package/dist/chunks/onChangeAppState-BkRihYau.js +1 -0
  245. package/dist/chunks/openai-yNI_zoao.js +10 -0
  246. package/dist/chunks/overageCreditGrant-Cbh0_fbM.js +1 -0
  247. package/dist/chunks/panel-BYfvo_mR.js +1 -0
  248. package/dist/chunks/panel-D3wvAEFE.js +1 -0
  249. package/dist/chunks/panelCall-t10Sud9A.js +1 -0
  250. package/dist/chunks/parser-DGXE1uWd.js +1 -0
  251. package/dist/chunks/parser-aIWfAYnt.js +1 -0
  252. package/dist/chunks/passes-D_iS6DaC.js +1 -0
  253. package/dist/chunks/path-BE28AJwZ.js +1 -0
  254. package/dist/chunks/paths-Ci1iwL5Y.js +36 -0
  255. package/dist/chunks/permissions-BE-1pIly.js +1 -0
  256. package/dist/chunks/permissions-CHvu4-yX.js +3 -0
  257. package/dist/chunks/pipeTransport-EAYXsubu.js +1 -0
  258. package/dist/chunks/plan-CP5nq_EB.js +1 -0
  259. package/dist/chunks/platform-mh9ypxS8.js +2 -0
  260. package/dist/chunks/plugin-8apy_RBT.js +1 -0
  261. package/dist/chunks/pluginAutoupdate-ClrgF5b3.js +1 -0
  262. package/dist/chunks/pluginBlocklist-B1LVo0j_.js +1 -0
  263. package/dist/chunks/pluginCliCommands-eqyMBWcP.js +1 -0
  264. package/dist/chunks/pluginFlagging-BiTDVP10.js +1 -0
  265. package/dist/chunks/pluginOperations-gZ-iCmhu.js +2 -0
  266. package/dist/chunks/pluginStartupCheck-DCDWHam6.js +1 -0
  267. package/dist/chunks/pluginStartupCheck-EjLvCXru.js +1 -0
  268. package/dist/chunks/plugins-BAIVqfi8.js +4 -0
  269. package/dist/chunks/policyLimits-Cdp3QwZ1.js +1 -0
  270. package/dist/chunks/pollConfig-_2W7bHoW.js +1 -0
  271. package/dist/chunks/poller-BA1jhG3F.js +1 -0
  272. package/dist/chunks/poor-Dii0mpOW.js +1 -0
  273. package/dist/chunks/poorMode-DzEL0cu0.js +1 -0
  274. package/dist/chunks/poorMode-aDmmvJ_e.js +1 -0
  275. package/dist/chunks/print-BwSmcUQu.js +39 -0
  276. package/dist/chunks/privacy-settings-DaAgSLKw.js +1 -0
  277. package/dist/chunks/processBashCommand-BZ1_JKu4.js +1 -0
  278. package/dist/chunks/processSlashCommand-v1Rvzxwn.js +6 -0
  279. package/dist/chunks/projectContext-Cd7V9pES.js +1 -0
  280. package/dist/chunks/prompt-6ZKyqv6z.js +227 -0
  281. package/dist/chunks/prompt-DPqKtC0b.js +1 -0
  282. package/dist/chunks/prompt-WjMHPk90.js +1 -0
  283. package/dist/chunks/promptEditor-Dz41P-3I.js +4 -0
  284. package/dist/chunks/protocolHandler-CHGHjfdf.js +13 -0
  285. package/dist/chunks/proxy-CF7ZDxaW.js +99 -0
  286. package/dist/chunks/rate-limit-options-BlU9av7g.js +1 -0
  287. package/dist/chunks/rcDebugLog-C42A0pX1.js +11 -0
  288. package/dist/chunks/referral-IIcY3jkp.js +1 -0
  289. package/dist/chunks/refresh-DTGEx7X_.js +1 -0
  290. package/dist/chunks/registerProtocol-BkNncGMI.js +36 -0
  291. package/dist/chunks/registry-CBqb7wbi.js +1 -0
  292. package/dist/chunks/release-notes-BxzOD-zP.js +4 -0
  293. package/dist/chunks/releaseNotes-C8KQGZHq.js +2 -0
  294. package/dist/chunks/reload-plugins-gYyC6_g8.js +1 -0
  295. package/dist/chunks/remote-env-CEJH5aJh.js +1 -0
  296. package/dist/chunks/remoteBridgeCore-Dte7ZUAN.js +1 -0
  297. package/dist/chunks/remoteControlServer-GN-eDbEz.js +3 -0
  298. package/dist/chunks/rename-BEU6BNRp.js +1 -0
  299. package/dist/chunks/renderOptions-Caca3bCd.js +1 -0
  300. package/dist/chunks/resume-D36S2rXg.js +2 -0
  301. package/dist/chunks/ripgrep-Bzwdi5-K.js +5 -0
  302. package/dist/chunks/ripgrep-DEa1djpJ.js +1 -0
  303. package/dist/chunks/runtimeObserver-CDMCeww2.js +1 -0
  304. package/dist/chunks/runtimeObserver-DaKaKNVW.js +10 -0
  305. package/dist/chunks/sandbox-adapter-DqTuhgud.js +1 -0
  306. package/dist/chunks/sandbox-toggle-BPO26t48.js +1 -0
  307. package/dist/chunks/searchExtraTools-Brae4wmG.js +1 -0
  308. package/dist/chunks/sentry-9EbPa1Xu.js +13 -0
  309. package/dist/chunks/session-D18B22u4.js +2 -0
  310. package/dist/chunks/sessionDiscovery-B-OTvXJf.js +1 -0
  311. package/dist/chunks/sessionFileAccessHooks-BXsK8Dwf.js +1 -0
  312. package/dist/chunks/sessionMemory-Bv-AYifm.js +1 -0
  313. package/dist/chunks/sessionMemory-Ctauybzs.js +1 -0
  314. package/dist/chunks/sessionMemoryUtils-D-bzdsAT.js +1 -0
  315. package/dist/chunks/sessionObserver-ardnTJ37.js +20 -0
  316. package/dist/chunks/sessionObserver-j8D9hidw.js +1 -0
  317. package/dist/chunks/sessionStorage-Cw5ibYWA.js +1 -0
  318. package/dist/chunks/sessionStoragePortable-CJUZrbIq.js +3 -0
  319. package/dist/chunks/sessionTitle-DEKvIVCK.js +14 -0
  320. package/dist/chunks/sessionTracing-CJUUEWZ4.js +11 -0
  321. package/dist/chunks/settingsSync-BWt3oUR7.js +1 -0
  322. package/dist/chunks/setup-BECFDOT9.js +9 -0
  323. package/dist/chunks/setup-CDxkPTCq.js +2 -0
  324. package/dist/chunks/setup-CmCTB2T_.js +1 -0
  325. package/dist/chunks/shadowedRuleDetection-BbALfdxE.js +1 -0
  326. package/dist/chunks/shellQuote-CBjhlaFO.js +1 -0
  327. package/dist/chunks/sideQuestion-BHK6dd1q.js +20 -0
  328. package/dist/chunks/sink-DFWgcGHX.js +1 -0
  329. package/dist/chunks/sink-Do5fWbUC.js +1 -0
  330. package/dist/chunks/sinks-BnkxTOU9.js +1 -0
  331. package/dist/chunks/sinks-Dc9V7k6a.js +2 -0
  332. package/dist/chunks/skill-learning-BHW9G3Dn.js +5 -0
  333. package/dist/chunks/skillChangeDetector-DwAvG835.js +1 -0
  334. package/dist/chunks/skillGapStore-DVMbI2yy.js +1 -0
  335. package/dist/chunks/skillGapStore-Wa7s6orv.js +5 -0
  336. package/dist/chunks/skillGenerator-CBuoIFsH.js +8 -0
  337. package/dist/chunks/skillLearning-BI2YDG3K.js +1 -0
  338. package/dist/chunks/skillLearning-BZMJRJPp.js +1 -0
  339. package/dist/chunks/skillPanel-2w82nkOl.js +28 -0
  340. package/dist/chunks/skillSearchPanel-7BhCBkdh.js +21 -0
  341. package/dist/chunks/skills-D5rMEo2w.js +1 -0
  342. package/dist/chunks/sprites-uNWgVZT6.js +1 -0
  343. package/dist/chunks/src-BGzuPZ5q.js +26 -0
  344. package/dist/chunks/src-kgpr3s-l.js +1 -0
  345. package/dist/chunks/startupProfiler-CAntGAbs.js +3 -0
  346. package/dist/chunks/startupProfiler-WtUzkMKV.js +1 -0
  347. package/dist/chunks/stats-D0CJB2HV.js +1 -0
  348. package/dist/chunks/status-nte1Arzy.js +1 -0
  349. package/dist/chunks/statusNoticeHelpers-Lqf99003.js +1 -0
  350. package/dist/chunks/stdio-Cg20AQ5W.js +1 -0
  351. package/dist/chunks/stickers-DDAm--86.js +1 -0
  352. package/dist/chunks/stringUtils-KZoO4GUd.js +4 -0
  353. package/dist/chunks/subprocessEnv-D4Cbyl2J.js +1 -0
  354. package/dist/chunks/systemPromptSections-CVpefuSD.js +1 -0
  355. package/dist/chunks/tag-BnvWS9HE.js +11 -0
  356. package/dist/chunks/tasks-CEs-pxkC.js +1 -0
  357. package/dist/chunks/teamHelpers-D4vCj2hP.js +1 -0
  358. package/dist/chunks/teamHelpers-D8R_gGLb.js +1 -0
  359. package/dist/chunks/teammateModeSnapshot-BDJ1JTcl.js +1 -0
  360. package/dist/chunks/teammateModeSnapshot-Bdra3VIJ.js +1 -0
  361. package/dist/chunks/teleport-RxTr4aCi.js +1 -0
  362. package/dist/chunks/templateJobs-BDKGtmr3.js +12 -0
  363. package/dist/chunks/terminalSetup-Bbvq-9Xl.js +1 -0
  364. package/dist/chunks/terminalSetup-C1X-sXwp.js +33 -0
  365. package/dist/chunks/theme-DXv6bV7f.js +1 -0
  366. package/dist/chunks/thinkback-CMsW7mvG.js +1 -0
  367. package/dist/chunks/thinkback-DRJBz3Is.js +1 -0
  368. package/dist/chunks/thinkback-play-CFdkpzlj.js +1 -0
  369. package/dist/chunks/tmux-DelKEjda.js +1 -0
  370. package/dist/chunks/toolEventObserver-CF7T7FBH.js +1 -0
  371. package/dist/chunks/toolEventObserver-DDJV8cvW.js +1 -0
  372. package/dist/chunks/toolPool-0zCdXfEu.js +1 -0
  373. package/dist/chunks/toolPool-BJv0sBnR.js +1 -0
  374. package/dist/chunks/trustedDevice-C5s2au0k.js +1 -0
  375. package/dist/chunks/trustedDevice-C9nJhhyZ.js +1 -0
  376. package/dist/chunks/tui-DoOiz2RW.js +6 -0
  377. package/dist/chunks/types-BCy5hsQR.js +1 -0
  378. package/dist/chunks/types-KeqFPzY5.js +17 -0
  379. package/dist/chunks/udsClient-CBF_cZFW.js +1 -0
  380. package/dist/chunks/ultrareviewCommand-BEv1_AS1.js +3 -0
  381. package/dist/chunks/undercover-DPVt2WN7.js +31 -0
  382. package/dist/chunks/undercover-DYa00dVv.js +1 -0
  383. package/dist/chunks/up-DaiW-V1N.js +12 -0
  384. package/dist/chunks/updateCCB-D-4naIUu.js +11 -0
  385. package/dist/chunks/upgrade-BHj8ALep.js +1 -0
  386. package/dist/chunks/upgrade-CSld83v7.js +1 -0
  387. package/dist/chunks/upload-DVlE8SRp.js +1 -0
  388. package/dist/chunks/upstreamproxy-CLf1UaJv.js +11 -0
  389. package/dist/chunks/usage-B_bY46ep.js +1 -0
  390. package/dist/chunks/usage-D4Ubnttz.js +1 -0
  391. package/dist/chunks/useExitOnCtrlCDWithKeybindings-BHi41Ku_.js +1 -0
  392. package/dist/chunks/useMainLoopModel-D3tJJC3y.js +1 -0
  393. package/dist/chunks/useManagePlugins-B4kcqcyY.js +1 -0
  394. package/dist/chunks/useMergedTools-CTQl4cdV.js +1 -0
  395. package/dist/chunks/useSearchInput-JPayBRPC.js +1 -0
  396. package/dist/chunks/useSettingsErrors-YTgPxnRZ.js +1 -0
  397. package/dist/chunks/useTerminalSize-Du-EamDN.js +1 -0
  398. package/dist/chunks/useVoice-CaBv3G13.js +1 -0
  399. package/dist/chunks/util-Q70qdjeS.js +1 -0
  400. package/dist/chunks/utils-Cr-x1Oyd.js +1 -0
  401. package/dist/chunks/validatePlugin-6lg9B564.js +1 -0
  402. package/dist/chunks/vim-zOsQBIp4.js +1 -0
  403. package/dist/chunks/voice-DBQevAhk.js +2 -0
  404. package/dist/chunks/voice-YtzCcIoM.js +8 -0
  405. package/dist/chunks/voiceModeEnabled-CjBjjeNR.js +1 -0
  406. package/dist/chunks/voiceModeEnabled-DK6u8Aaj.js +1 -0
  407. package/dist/chunks/voiceStreamSTT-B8CTbb_6.js +1 -0
  408. package/dist/chunks/voiceStreamSTT-CCkOfmdI.js +1 -0
  409. package/dist/chunks/web-tools-CGqBqo07.js +1 -0
  410. package/dist/chunks/which-BnEnzWhs.js +1 -0
  411. package/dist/chunks/windowsPaths-BeDSnJ23.js +2 -0
  412. package/dist/chunks/windowsPaths-ttHiMKpR.js +1 -0
  413. package/dist/chunks/workSecret-DJu7k30X.js +1 -0
  414. package/dist/chunks/workerRegistry-Bx6FvTZF.js +1 -0
  415. package/dist/chunks/worktree-DPpgPLLG.js +1 -0
  416. package/dist/chunks/worktreeModeEnabled-RtizNgNg.js +1 -0
  417. package/dist/chunks/xml-CVF7dWfi.js +1 -0
  418. package/dist/cli.js +1 -1
  419. package/package.json +1 -1
  420. package/dist/chunks/AddWorkspaceDirectory-BKIYdg96.js +0 -1
  421. package/dist/chunks/App-BAwWP3iN.js +0 -1
  422. package/dist/chunks/ApproveApiKey-CJFvgVKS.js +0 -1
  423. package/dist/chunks/ApproveApiKey-da08NX2f.js +0 -1
  424. package/dist/chunks/AssistantSessionChooser-DQMKGO_q.js +0 -1
  425. package/dist/chunks/BackgroundTasksDialog-Jtiqm4k2.js +0 -2
  426. package/dist/chunks/BypassPermissionsModeDialog-D7TJ4Qn1.js +0 -1
  427. package/dist/chunks/ClaudeInChromeOnboarding-CuPz5Xfi.js +0 -1
  428. package/dist/chunks/ClaudeMdExternalIncludesDialog-CRC6kEV1.js +0 -1
  429. package/dist/chunks/ClaudeMdExternalIncludesDialog-J0uv5XzG.js +0 -1
  430. package/dist/chunks/ConsoleOAuthFlow-CE4OlAHo.js +0 -1
  431. package/dist/chunks/DesktopHandoff-B_vNnZS5.js +0 -1
  432. package/dist/chunks/DevChannelsDialog-kjRnWtNf.js +0 -1
  433. package/dist/chunks/DiffDialog-CSBWOnXJ.js +0 -3
  434. package/dist/chunks/Doctor-DhK599q8.js +0 -1
  435. package/dist/chunks/Doctor-VJ5ZGb8g.js +0 -3
  436. package/dist/chunks/ExitFlow-M5XPGBHL.js +0 -2
  437. package/dist/chunks/Feedback-FHvqI2bu.js +0 -2
  438. package/dist/chunks/Grove-68muTpx6.js +0 -1
  439. package/dist/chunks/Grove-BC2IZIhN.js +0 -11
  440. package/dist/chunks/HybridTransport-Df_FceV2.js +0 -4
  441. package/dist/chunks/ITermBackend-DkpK9X1H.js +0 -1
  442. package/dist/chunks/InvalidConfigDialog-Cm6Yvt00.js +0 -1
  443. package/dist/chunks/InvalidSettingsDialog-Ai3D8AL1.js +0 -1
  444. package/dist/chunks/MCPConnectionManager-BqNXYQEr.js +0 -1
  445. package/dist/chunks/McpParsingWarnings-BZcVbGhE.js +0 -1
  446. package/dist/chunks/MessageSelector-BXOoEogr.js +0 -3
  447. package/dist/chunks/Messages-F6OIAv8C.js +0 -11
  448. package/dist/chunks/Onboarding-n1aA7tmN.js +0 -1
  449. package/dist/chunks/OverageCreditUpsell-Bt23I92r.js +0 -1
  450. package/dist/chunks/PluginSettings-Dgu23nzv.js +0 -17
  451. package/dist/chunks/PromptInputFooterSuggestions-uiV23aG4.js +0 -1
  452. package/dist/chunks/PromptInputHelpMenu-D84vnNKM.js +0 -1
  453. package/dist/chunks/QueryEngine-CEodAvI2.js +0 -1
  454. package/dist/chunks/REPL-CTTa9BK0.js +0 -97
  455. package/dist/chunks/REPL-IO7wsKaQ.js +0 -1
  456. package/dist/chunks/RemoteCallout-BYKqws96.js +0 -1
  457. package/dist/chunks/RemoteSessionManager-Dq0W_fcj.js +0 -2
  458. package/dist/chunks/ResumeConversation-CxzeCdL8.js +0 -1
  459. package/dist/chunks/SSETransport-CJrrD1ln.js +0 -4
  460. package/dist/chunks/SearchExtraToolsTool-DI-36R5p.js +0 -1
  461. package/dist/chunks/SentryErrorBoundary-BKPxEWOf.js +0 -1
  462. package/dist/chunks/SentryErrorBoundary-CcI0kkLW.js +0 -2
  463. package/dist/chunks/Settings-CGcBR9CD.js +0 -2
  464. package/dist/chunks/TeleportProgress-C7muqjDw.js +0 -1
  465. package/dist/chunks/TeleportRepoMismatchDialog-B3pUiRc2.js +0 -1
  466. package/dist/chunks/TeleportResumeWrapper-ClyBQR3K.js +0 -1
  467. package/dist/chunks/ThemePicker-CGIB6YiW.js +0 -1
  468. package/dist/chunks/TmuxBackend-m2ldrneQ.js +0 -9
  469. package/dist/chunks/TrustDialog-o5kqmn6m.js +0 -1
  470. package/dist/chunks/TungstenTool-C5IqKVr0.js +0 -1
  471. package/dist/chunks/ValidationErrorsList-D7bXMb0U.js +0 -2
  472. package/dist/chunks/WelcomeV2-Ckp3JPnA.js +0 -1
  473. package/dist/chunks/WindowsTerminalBackend-DsDqNWSP.js +0 -2
  474. package/dist/chunks/add-dir-DTP3NrLy.js +0 -1
  475. package/dist/chunks/agentDisplay-BEn43jMP.js +0 -1
  476. package/dist/chunks/agents-3ii2LyeQ.js +0 -2
  477. package/dist/chunks/agents-g0PDZl_l.js +0 -103
  478. package/dist/chunks/ant-PZvt_t1G.js +0 -1
  479. package/dist/chunks/api-BRckHGQ5.js +0 -1
  480. package/dist/chunks/api-DBvyymX6.js +0 -1
  481. package/dist/chunks/asciicast-C3nf97NR.js +0 -1
  482. package/dist/chunks/asciicast-DIsaWcsJ.js +0 -4
  483. package/dist/chunks/assistant-BBmaU8-A.js +0 -1
  484. package/dist/chunks/assistant-CMaN0QzY.js +0 -1
  485. package/dist/chunks/assistant-CVhvOfqJ.js +0 -1
  486. package/dist/chunks/auth-BXzbkJcE.js +0 -1
  487. package/dist/chunks/auth-Cud9tPJB.js +0 -1
  488. package/dist/chunks/autoMode-BREcJLYf.js +0 -45
  489. package/dist/chunks/autonomy-CuQizTZi.js +0 -1
  490. package/dist/chunks/autonomy-h9vver1r.js +0 -19
  491. package/dist/chunks/autonomyPanel-DVyrTxfP.js +0 -1
  492. package/dist/chunks/backgroundHousekeeping-DwA5WO9N.js +0 -1
  493. package/dist/chunks/backgroundHousekeeping-Ij_q7KN8.js +0 -17
  494. package/dist/chunks/banner-32EBTKI7.js +0 -2
  495. package/dist/chunks/bg-DK0E4ZtW.js +0 -9
  496. package/dist/chunks/bg-Dbh5z3Y8.js +0 -1
  497. package/dist/chunks/branch-B9AQFFTX.js +0 -3
  498. package/dist/chunks/break-cache-ByJ7U2Ts.js +0 -8
  499. package/dist/chunks/bridge-BkL7g0ua.js +0 -2
  500. package/dist/chunks/bridgeConfig-BPP3lJRh.js +0 -1
  501. package/dist/chunks/bridgeConfig-BZQBBfap.js +0 -1
  502. package/dist/chunks/bridgeEnabled-Bkmqv-2V.js +0 -1
  503. package/dist/chunks/bridgeEnabled-BwBjPmEE.js +0 -1
  504. package/dist/chunks/bridgeMain-CbGj0plH.js +0 -68
  505. package/dist/chunks/bridgeMain-DpQRGiMo.js +0 -1
  506. package/dist/chunks/bridgeMessaging-C-ZFPTiZ.js +0 -1
  507. package/dist/chunks/bridgePointer-B2FPGDWR.js +0 -1
  508. package/dist/chunks/browser-fLRXxIsQ.js +0 -1
  509. package/dist/chunks/btw-BSme4Kzi.js +0 -1
  510. package/dist/chunks/buddy-DX94yYTy.js +0 -3
  511. package/dist/chunks/bypassPermissionsKillswitch-Crl2aipx.js +0 -1
  512. package/dist/chunks/caches-DeXmHls9.js +0 -3
  513. package/dist/chunks/caches-U1iFQIc7.js +0 -1
  514. package/dist/chunks/ccrClient-BYD1ONzC.js +0 -1
  515. package/dist/chunks/changeDetector-PaQPe1HQ.js +0 -1
  516. package/dist/chunks/channelNotification-Aq0p9f-W.js +0 -1
  517. package/dist/chunks/channelNotification-B0QskFjB.js +0 -1
  518. package/dist/chunks/chrome-B8ByN3u6.js +0 -1
  519. package/dist/chunks/chromeNativeHost-DX8f9Y2L.js +0 -1
  520. package/dist/chunks/claudeDesktop-C1qQs6os.js +0 -1
  521. package/dist/chunks/cleanup-Pv6U3HiI.js +0 -1
  522. package/dist/chunks/clear-CeJ5tgg8.js +0 -1
  523. package/dist/chunks/cliLaunch-BQa48gsr.js +0 -1
  524. package/dist/chunks/client-B7AdqRap.js +0 -1
  525. package/dist/chunks/color-OlMWmMnJ.js +0 -1
  526. package/dist/chunks/commands-BwfOl3fk.js +0 -1
  527. package/dist/chunks/commitAttribution-C479aqmn.js +0 -2
  528. package/dist/chunks/commitAttribution-CZ1OOh8F.js +0 -1
  529. package/dist/chunks/common-B379wT22.js +0 -1
  530. package/dist/chunks/common-B_BC3eMY.js +0 -1
  531. package/dist/chunks/common-CMCv4N_v.js +0 -1
  532. package/dist/chunks/compact-Dq-J7j1C.js +0 -3
  533. package/dist/chunks/companion-CtJjyD3N.js +0 -1
  534. package/dist/chunks/completionCache-DHfUBBMH.js +0 -1
  535. package/dist/chunks/completionCache-DORrtxkS.js +0 -4
  536. package/dist/chunks/computerUseLock-BjoDJH2h.js +0 -1
  537. package/dist/chunks/config-DcnYYwCy.js +0 -1
  538. package/dist/chunks/config-_KcvL7RX.js +0 -1
  539. package/dist/chunks/context-CShSBp-i.js +0 -1
  540. package/dist/chunks/context-noninteractive-BApFNncX.js +0 -54
  541. package/dist/chunks/context-noninteractive-uMvPKhng.js +0 -1
  542. package/dist/chunks/conversation-BlUHkj1_.js +0 -1
  543. package/dist/chunks/conversation-CCzL-eYb.js +0 -1
  544. package/dist/chunks/copy-DIMR3Q3S.js +0 -7
  545. package/dist/chunks/createSSHSession-DvSnUdsD.js +0 -6
  546. package/dist/chunks/createSession-D8tcktmP.js +0 -1
  547. package/dist/chunks/createSession-DaT4x1E6.js +0 -1
  548. package/dist/chunks/cronJitterConfig-C2a-Ybqm.js +0 -6
  549. package/dist/chunks/crossProjectResume-B3Chhiwf.js +0 -40
  550. package/dist/chunks/daemon-CCtZ9wY3.js +0 -2
  551. package/dist/chunks/datadog-BYNSi8R3.js +0 -1
  552. package/dist/chunks/datadog-DCukMGn4.js +0 -1
  553. package/dist/chunks/debug-DM5ezCBS.js +0 -1
  554. package/dist/chunks/debug-UI3T040K.js +0 -5
  555. package/dist/chunks/debugUtils-BBMFODKH.js +0 -1
  556. package/dist/chunks/desktop-BXj3JEMV.js +0 -1
  557. package/dist/chunks/detached-D300jlhj.js +0 -5
  558. package/dist/chunks/detectRepository-CBk3S2zv.js +0 -1
  559. package/dist/chunks/detectRepository-DCTvg4p0.js +0 -1
  560. package/dist/chunks/detection-CQsNad64.js +0 -1
  561. package/dist/chunks/detection-DJ-vTbBf.js +0 -1
  562. package/dist/chunks/diff-D3Xuv_4J.js +0 -1
  563. package/dist/chunks/directoryCompletion-D7EGwonO.js +0 -1
  564. package/dist/chunks/doctor-B5-jh6lS.js +0 -1
  565. package/dist/chunks/earlyInput-RoVleNEN.js +0 -1
  566. package/dist/chunks/earlyInput-feVuZGzR.js +0 -2
  567. package/dist/chunks/effort-CpHnXRxJ.js +0 -9
  568. package/dist/chunks/entry-YXnIL7B7.js +0 -14
  569. package/dist/chunks/env-chR0gV31.js +0 -1
  570. package/dist/chunks/envLessBridgeConfig-CcgSiwvA.js +0 -1
  571. package/dist/chunks/envLessBridgeConfig-MaElAFPV.js +0 -1
  572. package/dist/chunks/escHotkey-Cyz0yyh1.js +0 -259
  573. package/dist/chunks/execFileNoThrow-CuQN1sz8.js +0 -1
  574. package/dist/chunks/execSyncWrapper-C2XQnFVo.js +0 -1
  575. package/dist/chunks/executor-4EeD8GNm.js +0 -1561
  576. package/dist/chunks/executor-BHEuNh5F.js +0 -1
  577. package/dist/chunks/exit-DKG0r57m.js +0 -1
  578. package/dist/chunks/export-BNbcpW3p.js +0 -2
  579. package/dist/chunks/exportRenderer-pYMIcnO4.js +0 -1
  580. package/dist/chunks/extra-usage-DTXphHAD.js +0 -1
  581. package/dist/chunks/extra-usage-H-U38bGx.js +0 -1
  582. package/dist/chunks/extra-usage-core-N4VLj0ye.js +0 -1
  583. package/dist/chunks/extra-usage-noninteractive-BGUiGr3a.js +0 -1
  584. package/dist/chunks/extraUsage-X6CmSsdg.js +0 -1
  585. package/dist/chunks/extractMemories-C8R4DJVc.js +0 -1
  586. package/dist/chunks/fast-BJwQnvAP.js +0 -1
  587. package/dist/chunks/fast-DMkPYQmQ.js +0 -1
  588. package/dist/chunks/featureCheck-p7OeCYzj.js +0 -1
  589. package/dist/chunks/feedback-DLcYu4id.js +0 -1
  590. package/dist/chunks/fileStateCache-C7-TxF8G.js +0 -1
  591. package/dist/chunks/files-DYvAZGxp.js +0 -2
  592. package/dist/chunks/firstPartyEventLogger-C00GfHTl.js +0 -1
  593. package/dist/chunks/flushGate-0DZFLUEb.js +0 -1
  594. package/dist/chunks/gates-DP4JyL5e.js +0 -1
  595. package/dist/chunks/gates-DeLWne9R.js +0 -1
  596. package/dist/chunks/gemini-CnKaXUJJ.js +0 -1
  597. package/dist/chunks/generateRecap-BUS2DEdj.js +0 -1
  598. package/dist/chunks/generateSessionName-CnPPgvyy.js +0 -1
  599. package/dist/chunks/genericProcessUtils-BGvcwuPt.js +0 -23
  600. package/dist/chunks/git-CN3qtTb_.js +0 -6
  601. package/dist/chunks/git-D23Mzu_K.js +0 -1
  602. package/dist/chunks/githubRepoPathMapping-CnXpQRPY.js +0 -1
  603. package/dist/chunks/grok-C2BUbWJR.js +0 -1
  604. package/dist/chunks/growthbook-CPTqwUyC.js +0 -1
  605. package/dist/chunks/heapdump-pamjtM2a.js +0 -5
  606. package/dist/chunks/help-z7XnNKDT.js +0 -1
  607. package/dist/chunks/hooks-BEAaBqmd.js +0 -1
  608. package/dist/chunks/hooks-iTfSDH96.js +0 -79
  609. package/dist/chunks/hostAdapter-DWD430of.js +0 -1
  610. package/dist/chunks/hostGuard-zim_4F9V.js +0 -1
  611. package/dist/chunks/ide-BK8Td_CD.js +0 -2
  612. package/dist/chunks/inboundAttachments-DQ4Czsr5.js +0 -1
  613. package/dist/chunks/inboundAttachments-Dq3IYudc.js +0 -1
  614. package/dist/chunks/initReplBridge-BeGirV3Q.js +0 -1
  615. package/dist/chunks/insights-DfD6PMkd.js +0 -822
  616. package/dist/chunks/install-CNq--Fit.js +0 -1
  617. package/dist/chunks/install-github-app-Dhq_T_EJ.js +0 -147
  618. package/dist/chunks/install-slack-app-mz5O3xo_.js +0 -1
  619. package/dist/chunks/instrumentation-CM0poWjx.js +0 -12
  620. package/dist/chunks/job-CKI1I_Va.js +0 -2
  621. package/dist/chunks/jwtUtils-CpXwh_du.js +0 -1
  622. package/dist/chunks/keybindings-5qahtcNc.js +0 -2
  623. package/dist/chunks/lang-BMNwfSRv.js +0 -1
  624. package/dist/chunks/language-DXpi4083.js +0 -1
  625. package/dist/chunks/language-GlWQb4l9.js +0 -1
  626. package/dist/chunks/launchAgentsPlatform-BU4bAPan.js +0 -1
  627. package/dist/chunks/launchAutofixPr-B80p6iq-.js +0 -18
  628. package/dist/chunks/launchLocalMemory-CDAa9B30.js +0 -3
  629. package/dist/chunks/launchLocalVault-B19lF8tP.js +0 -3
  630. package/dist/chunks/launchMemoryStores-C6wJI-8V.js +0 -1
  631. package/dist/chunks/launchOnboarding-BIlwEdkk.js +0 -8
  632. package/dist/chunks/launchSchedule-DjMh3--x.js +0 -1
  633. package/dist/chunks/launchSkillStore-Bs5thijU.js +0 -1
  634. package/dist/chunks/launchTeleport-CDlWx4xC.js +0 -3
  635. package/dist/chunks/launchVault-C40NAyOp.js +0 -1
  636. package/dist/chunks/loadAgentsDir-BYqiLHDS.js +0 -1
  637. package/dist/chunks/loadAgentsDir-C9Ee_fs1.js +0 -4672
  638. package/dist/chunks/loadPluginHooks-DaETszNq.js +0 -1
  639. package/dist/chunks/localSearch-B3zijtEM.js +0 -1
  640. package/dist/chunks/localSearch-BTGnGPVi.js +0 -1
  641. package/dist/chunks/log-CzsijfHZ.js +0 -1
  642. package/dist/chunks/login-B3IQj5YQ.js +0 -1
  643. package/dist/chunks/login-CUM0odSh.js +0 -1
  644. package/dist/chunks/logoV2Utils-CW73xjcW.js +0 -1
  645. package/dist/chunks/logout-B3hPrJSX.js +0 -1
  646. package/dist/chunks/magicDocs-BysWdjbO.js +0 -57
  647. package/dist/chunks/main-CnAyCMYQ.js +0 -1108
  648. package/dist/chunks/main-D9fUXJiD.js +0 -31
  649. package/dist/chunks/mappers-D1SAyuKF.js +0 -1
  650. package/dist/chunks/mcp-BIiXcANN.js +0 -1
  651. package/dist/chunks/mcp-BLcZi9zs.js +0 -2
  652. package/dist/chunks/mcp-nOKz2_By.js +0 -6
  653. package/dist/chunks/mcpServer-CJOTyq3O.js +0 -1
  654. package/dist/chunks/mcpServer-DaiouIKs.js +0 -1
  655. package/dist/chunks/memoize-DxwLawI2.js +0 -1
  656. package/dist/chunks/memory-DtFuXZHl.js +0 -1
  657. package/dist/chunks/mobile-umu5P0cM.js +0 -2
  658. package/dist/chunks/mode-BPNUYCpk.js +0 -2
  659. package/dist/chunks/model-Cky6xlFt.js +0 -1
  660. package/dist/chunks/model-DC5bOhtE.js +0 -1
  661. package/dist/chunks/onChangeAppState-pafR88Yw.js +0 -1
  662. package/dist/chunks/openai-BOxlfR-k.js +0 -10
  663. package/dist/chunks/overageCreditGrant-BmmOYjTh.js +0 -1
  664. package/dist/chunks/panel-ByW1omJn.js +0 -1
  665. package/dist/chunks/panel-s9fbCKfl.js +0 -1
  666. package/dist/chunks/parser-CmngCwjB.js +0 -1
  667. package/dist/chunks/parser-SWIZo39J.js +0 -1
  668. package/dist/chunks/passes-CqiFdifM.js +0 -1
  669. package/dist/chunks/path-B3lx7yHn.js +0 -1
  670. package/dist/chunks/paths-C2JRlUsH.js +0 -39
  671. package/dist/chunks/permissions-BHJUxNga.js +0 -3
  672. package/dist/chunks/permissions-Ps_D01ZB.js +0 -1
  673. package/dist/chunks/pipeTransport-BTYiqf9e.js +0 -1
  674. package/dist/chunks/plan-CF_ClJlj.js +0 -1
  675. package/dist/chunks/platform-CuyedWpe.js +0 -2
  676. package/dist/chunks/plugin-Bz3RKbru.js +0 -1
  677. package/dist/chunks/pluginAutoupdate-Ck0wWoNE.js +0 -1
  678. package/dist/chunks/pluginBlocklist-7dlesHcW.js +0 -1
  679. package/dist/chunks/pluginCliCommands-D502zE25.js +0 -1
  680. package/dist/chunks/pluginFlagging-DfHARfd-.js +0 -1
  681. package/dist/chunks/pluginOperations-BBRf8tuH.js +0 -2
  682. package/dist/chunks/pluginStartupCheck-BKEhWQR2.js +0 -1
  683. package/dist/chunks/pluginStartupCheck-ZcaocOSL.js +0 -1
  684. package/dist/chunks/plugins-JnZ3lNqG.js +0 -4
  685. package/dist/chunks/policyLimits-CtOjYdHx.js +0 -1
  686. package/dist/chunks/pollConfig-Duecunu0.js +0 -1
  687. package/dist/chunks/poller-Dbo07OEA.js +0 -1
  688. package/dist/chunks/poor-CUwZAV9z.js +0 -1
  689. package/dist/chunks/poorMode-DOoZ0U-8.js +0 -1
  690. package/dist/chunks/poorMode-DRcH1fuh.js +0 -1
  691. package/dist/chunks/print-D9IhN66j.js +0 -39
  692. package/dist/chunks/privacy-settings-DmbuvR-R.js +0 -1
  693. package/dist/chunks/processBashCommand-Cg8we9vS.js +0 -1
  694. package/dist/chunks/processSlashCommand-BBQQEGZd.js +0 -6
  695. package/dist/chunks/projectContext-D5FgyE-d.js +0 -1
  696. package/dist/chunks/prompt-7Vt8FUX_.js +0 -1
  697. package/dist/chunks/prompt-Cj0hg3CU.js +0 -1
  698. package/dist/chunks/prompt-thBQB2X5.js +0 -222
  699. package/dist/chunks/promptEditor-C8B2TEXp.js +0 -4
  700. package/dist/chunks/protocolHandler-BUKWgksO.js +0 -13
  701. package/dist/chunks/proxy-CfZp-wce.js +0 -99
  702. package/dist/chunks/rate-limit-options-PruvKAQt.js +0 -1
  703. package/dist/chunks/rcDebugLog-CIS3PU-H.js +0 -11
  704. package/dist/chunks/referral-CXmDvb7V.js +0 -1
  705. package/dist/chunks/refresh-C_FDHRT7.js +0 -1
  706. package/dist/chunks/registerProtocol-WxQUBybC.js +0 -36
  707. package/dist/chunks/registry-CeBTik9J.js +0 -1
  708. package/dist/chunks/release-notes-aZ6QUVnT.js +0 -4
  709. package/dist/chunks/releaseNotes-2GPd_O_r.js +0 -2
  710. package/dist/chunks/reload-plugins-BDh4ZhHi.js +0 -1
  711. package/dist/chunks/remote-env-BIOFHNQC.js +0 -1
  712. package/dist/chunks/remoteBridgeCore-DyA_2GrL.js +0 -1
  713. package/dist/chunks/remoteControlServer-BjW9GsPd.js +0 -3
  714. package/dist/chunks/rename-CKlAeppY.js +0 -1
  715. package/dist/chunks/renderOptions-rmj4Mkls.js +0 -1
  716. package/dist/chunks/resume-Dm71Aeni.js +0 -2
  717. package/dist/chunks/runtimeObserver-BYOo5dT0.js +0 -1
  718. package/dist/chunks/runtimeObserver-CA7pdBvT.js +0 -10
  719. package/dist/chunks/sandbox-adapter-C7TBAehE.js +0 -1
  720. package/dist/chunks/sandbox-toggle-fHc9E9xW.js +0 -1
  721. package/dist/chunks/searchExtraTools-CpFsg_tS.js +0 -1
  722. package/dist/chunks/sentry-B1g5Tgp2.js +0 -13
  723. package/dist/chunks/session-C46oy7nX.js +0 -2
  724. package/dist/chunks/sessionDiscovery-CtrJ2Bfr.js +0 -1
  725. package/dist/chunks/sessionFileAccessHooks-dwF5SFoS.js +0 -1
  726. package/dist/chunks/sessionMemory-BqCsLnFl.js +0 -1
  727. package/dist/chunks/sessionMemory-D4-Ymn0Q.js +0 -1
  728. package/dist/chunks/sessionMemoryUtils-BKdYMir6.js +0 -1
  729. package/dist/chunks/sessionObserver-Bfu8q0_K.js +0 -1
  730. package/dist/chunks/sessionObserver-DoBuLaCJ.js +0 -20
  731. package/dist/chunks/sessionStorage-CUUU_J4D.js +0 -1
  732. package/dist/chunks/sessionStoragePortable-DJZ_6cL8.js +0 -3
  733. package/dist/chunks/sessionTitle-BOM0LQlq.js +0 -14
  734. package/dist/chunks/sessionTracing-BEKULg2L.js +0 -11
  735. package/dist/chunks/settingsSync-BIsGiZhM.js +0 -1
  736. package/dist/chunks/setup-C3FOTg1s.js +0 -1
  737. package/dist/chunks/setup-ChF37I92.js +0 -9
  738. package/dist/chunks/setup-DvFPFV-3.js +0 -2
  739. package/dist/chunks/shadowedRuleDetection-spwhhTXF.js +0 -1
  740. package/dist/chunks/shellQuote-DgjT8KBA.js +0 -1
  741. package/dist/chunks/sideQuestion-iy7kJEkr.js +0 -20
  742. package/dist/chunks/sink-D6dxOYIw.js +0 -1
  743. package/dist/chunks/sink-FeQonv8-.js +0 -1
  744. package/dist/chunks/sinks-DKMqKJ66.js +0 -1
  745. package/dist/chunks/sinks-zNh_PVeS.js +0 -2
  746. package/dist/chunks/skill-learning-ChAFwJf0.js +0 -5
  747. package/dist/chunks/skillChangeDetector-8LVraP0Y.js +0 -1
  748. package/dist/chunks/skillGapStore-CUws9CQ6.js +0 -5
  749. package/dist/chunks/skillGapStore-CdPgIARS.js +0 -1
  750. package/dist/chunks/skillGenerator-CLtTRIjy.js +0 -8
  751. package/dist/chunks/skillLearning-CBosoKl-.js +0 -1
  752. package/dist/chunks/skillLearning-f7-aknmS.js +0 -1
  753. package/dist/chunks/skillPanel-Cd0AFEZf.js +0 -28
  754. package/dist/chunks/skillSearchPanel-VWiAbmdr.js +0 -21
  755. package/dist/chunks/skills-oQtI4eDn.js +0 -1
  756. package/dist/chunks/sprites-Cp4_DJUI.js +0 -1
  757. package/dist/chunks/src-BIPP3_mo.js +0 -26
  758. package/dist/chunks/src-DJXKJavk.js +0 -1
  759. package/dist/chunks/startupProfiler-DnXZaX4A.js +0 -3
  760. package/dist/chunks/startupProfiler-SOE--nM9.js +0 -1
  761. package/dist/chunks/stats-B1X-nxO8.js +0 -1
  762. package/dist/chunks/status-BtCnWZEv.js +0 -1
  763. package/dist/chunks/statusNoticeHelpers-B6GW2gMe.js +0 -1
  764. package/dist/chunks/stdio-BEEzuxaZ.js +0 -1
  765. package/dist/chunks/stickers-BMh2qjgF.js +0 -1
  766. package/dist/chunks/subprocessEnv-CggQWZCx.js +0 -1
  767. package/dist/chunks/systemPromptSections-DB93ZNWP.js +0 -1
  768. package/dist/chunks/tag-B6WpuUE_.js +0 -11
  769. package/dist/chunks/tasks-DIOPZDoF.js +0 -1
  770. package/dist/chunks/teamHelpers-9p7wPcXj.js +0 -1
  771. package/dist/chunks/teamHelpers-PLGwYL4x.js +0 -1
  772. package/dist/chunks/teammateModeSnapshot-DO-3AkNP.js +0 -1
  773. package/dist/chunks/teammateModeSnapshot-DU8JCRRs.js +0 -1
  774. package/dist/chunks/teleport-DPUoWpD4.js +0 -1
  775. package/dist/chunks/templateJobs-DOSQvjx0.js +0 -12
  776. package/dist/chunks/terminalSetup-DdHkyElj.js +0 -33
  777. package/dist/chunks/terminalSetup-tSFJeCVl.js +0 -1
  778. package/dist/chunks/theme-Hf1fhR3q.js +0 -1
  779. package/dist/chunks/thinkback-5QYAbr0P.js +0 -1
  780. package/dist/chunks/thinkback-B5IraP81.js +0 -1
  781. package/dist/chunks/thinkback-play-Bqv85sjY.js +0 -1
  782. package/dist/chunks/tmux-CvbhsfwG.js +0 -1
  783. package/dist/chunks/toolEventObserver-B-mqmRv0.js +0 -1
  784. package/dist/chunks/toolEventObserver-_Fk1dSYg.js +0 -1
  785. package/dist/chunks/toolPool-C2KLBvek.js +0 -1
  786. package/dist/chunks/toolPool-CiEaFfxq.js +0 -1
  787. package/dist/chunks/trustedDevice-BowIKqqC.js +0 -1
  788. package/dist/chunks/trustedDevice-f8HslQu2.js +0 -1
  789. package/dist/chunks/tui-geoc3zxu.js +0 -6
  790. package/dist/chunks/types-CQ1wrnQ0.js +0 -1
  791. package/dist/chunks/types-Csi32ZXh.js +0 -17
  792. package/dist/chunks/udsClient-BdPOrL1H.js +0 -1
  793. package/dist/chunks/ultrareviewCommand-DbmRN6Lg.js +0 -3
  794. package/dist/chunks/undercover-Ch9wnIbk.js +0 -31
  795. package/dist/chunks/undercover-X6-EJ_7K.js +0 -1
  796. package/dist/chunks/up-D-U4wUCe.js +0 -12
  797. package/dist/chunks/updateCCB-DFHrOTEX.js +0 -11
  798. package/dist/chunks/upgrade-B6Ih-Ubj.js +0 -1
  799. package/dist/chunks/upgrade-CC4cnsnt.js +0 -1
  800. package/dist/chunks/upload-DSTB33ZR.js +0 -1
  801. package/dist/chunks/upstreamproxy-Ci5T_JCo.js +0 -11
  802. package/dist/chunks/usage-CNqpSfd2.js +0 -1
  803. package/dist/chunks/usage-DiZsjcMM.js +0 -1
  804. package/dist/chunks/useMainLoopModel-Bo6iEtB3.js +0 -1
  805. package/dist/chunks/useManagePlugins-Cvj0XfLp.js +0 -1
  806. package/dist/chunks/useMergedTools-BEpwy0Ec.js +0 -1
  807. package/dist/chunks/useSearchInput-YiO4crrI.js +0 -1
  808. package/dist/chunks/useSettingsErrors-BE-PITl4.js +0 -1
  809. package/dist/chunks/useVoice-D1sKPiqb.js +0 -1
  810. package/dist/chunks/util-C8_5375U.js +0 -1
  811. package/dist/chunks/utils-Dmh9vBcg.js +0 -1
  812. package/dist/chunks/validatePlugin-BQA60S_J.js +0 -1
  813. package/dist/chunks/vim-oNiLgw0C.js +0 -1
  814. package/dist/chunks/voice-BcA5h8ya.js +0 -8
  815. package/dist/chunks/voice-CGsMzVaA.js +0 -2
  816. package/dist/chunks/voiceModeEnabled-DprM_JSH.js +0 -1
  817. package/dist/chunks/voiceModeEnabled-Dpx-sP8V.js +0 -1
  818. package/dist/chunks/voiceStreamSTT-CASv4SGl.js +0 -1
  819. package/dist/chunks/voiceStreamSTT-CaI5Uz-7.js +0 -1
  820. package/dist/chunks/which-DqSAIvp2.js +0 -1
  821. package/dist/chunks/windowsPaths-C9CigqoF.js +0 -1
  822. package/dist/chunks/windowsPaths-swxCp7bX.js +0 -2
  823. package/dist/chunks/workSecret-mS2OrpxF.js +0 -1
  824. package/dist/chunks/workerRegistry-CCYrYthd.js +0 -1
  825. package/dist/chunks/worktree-C9WNXNFR.js +0 -1
  826. package/dist/chunks/worktreeModeEnabled-THQb19xR.js +0 -1
  827. package/dist/chunks/xml-BW5T-oW-.js +0 -1
  828. /package/dist/chunks/{Dialog-DYFGqyDs.js → Dialog-91X6ZGg9.js} +0 -0
  829. /package/dist/chunks/{InProcessTransport-gJLr5CIx.js → InProcessTransport-B9II3BiO.js} +0 -0
  830. /package/dist/chunks/{ListItem-OFARanN7.js → ListItem-DCQhApdJ.js} +0 -0
  831. /package/dist/chunks/{PermissionDialog-5MlJf7ew.js → PermissionDialog-_WQPRYHQ.js} +0 -0
  832. /package/dist/chunks/{PressEnterToContinue-BdA9zDGs.js → PressEnterToContinue-BJ58eCFC.js} +0 -0
  833. /package/dist/chunks/{SearchBox-DfOmUoaI.js → SearchBox-CkO4rQ-9.js} +0 -0
  834. /package/dist/chunks/{TungstenTool-V-Bwqlx3.js → TungstenTool-CnAF4y0E.js} +0 -0
  835. /package/dist/chunks/{attributionHooks-Br5LZ6bk.js → attributionHooks-VGSpz4mk.js} +0 -0
  836. /package/dist/chunks/{attributionTrailer-BMTuK4Ax.js → attributionTrailer-C8uqiLIb.js} +0 -0
  837. /package/dist/chunks/{autoModeDenials-D8eQ1CoM.js → autoModeDenials-DlO5g6E9.js} +0 -0
  838. /package/dist/chunks/{bedrockClient-Ci523Btx.js → bedrockClient-BUmO2U-X.js} +0 -0
  839. /package/dist/chunks/{capacityWake-BXlUpptF.js → capacityWake-DtmDHwEt.js} +0 -0
  840. /package/dist/chunks/{ccshareResume-CqNm2k-J.js → ccshareResume-DKwcd0Vc.js} +0 -0
  841. /package/dist/chunks/{connectHeadless-DFCrE6O4.js → connectHeadless-ByewVfOb.js} +0 -0
  842. /package/dist/chunks/{constants-41VpZw2G.js → constants-BljlAJOX.js} +0 -0
  843. /package/dist/chunks/{controlMessageCompat-BJhFiS7u.js → controlMessageCompat-Ds-CF-sM.js} +0 -0
  844. /package/dist/chunks/{cron-DiW7eIPP.js → cron-g_P3I5uT.js} +0 -0
  845. /package/dist/chunks/{dangerousBackend-Du0K4q5Z.js → dangerousBackend-Dkjtndh1.js} +0 -0
  846. /package/dist/chunks/{distRoot-CcxmnzqQ.js → distRoot-BNg_iO5-.js} +0 -0
  847. /package/dist/chunks/{esm-C-1qL9Mn.js → esm-vlR7mK5b.js} +0 -0
  848. /package/dist/chunks/{eventLoopStallDetector-XfubcyMN.js → eventLoopStallDetector-bYy0fesH.js} +0 -0
  849. /package/dist/chunks/{exit-_obETqBv.js → exit-DOBLl8jN.js} +0 -0
  850. /package/dist/chunks/{featureCheck-Cm0YNDXO.js → featureCheck-j7P30mry.js} +0 -0
  851. /package/dist/chunks/{fpsMetrics-CEQt6Tk1.js → fpsMetrics-DKWp7vng.js} +0 -0
  852. /package/dist/chunks/{fuse-TM-TeOo_.js → fuse-D3B-UE5Y.js} +0 -0
  853. /package/dist/chunks/{hash-BRmOQc3c.js → hash-CaUkS-30.js} +0 -0
  854. /package/dist/chunks/{index.min-BJnb9GQI.js → index.min-BNgJ2wVD.js} +0 -0
  855. /package/dist/chunks/{instinctParser-CJPM8VjX.js → instinctParser-DOtj1Kni.js} +0 -0
  856. /package/dist/chunks/{intl-Pse97ORk.js → intl-CLeE9DsD.js} +0 -0
  857. /package/dist/chunks/{launchCommand-Du91jxMC.js → launchCommand-9eYsPG7W.js} +0 -0
  858. /package/dist/chunks/{lazySchema-2sOku3cX.js → lazySchema-B0QShMaQ.js} +0 -0
  859. /package/dist/chunks/{lib-B4Q0Nrpb.js → lib-Cf16LgKj.js} +0 -0
  860. /package/dist/chunks/{lockfile-Y1hwdHrQ.js → lockfile-C3JsqLpb.js} +0 -0
  861. /package/dist/chunks/{modalContext-CmSKRyea.js → modalContext-c5Yqx_CQ.js} +0 -0
  862. /package/dist/chunks/{normalization-Cox8C0dP.js → normalization-BLfP0Kqt.js} +0 -0
  863. /package/dist/chunks/{observationStore-gFvWXJmc.js → observationStore-rLlDwRtG.js} +0 -0
  864. /package/dist/chunks/{openaiShared-Dy78YERG.js → openaiShared-C-AuktRP.js} +0 -0
  865. /package/dist/chunks/{output-style-BmEQscMd.js → output-style-B64-Zum6.js} +0 -0
  866. /package/dist/chunks/{parseConnectUrl-C6cvMkkH.js → parseConnectUrl-DL390ePs.js} +0 -0
  867. /package/dist/chunks/{permissions-DXLfdE7b.js → permissions-BsVJvaEe.js} +0 -0
  868. /package/dist/chunks/{postCommitAttribution-DhFkZMxJ.js → postCommitAttribution-D8MoHFoz.js} +0 -0
  869. /package/dist/chunks/{projectContext-iWPqcl0Z.js → projectContext-Dn7umMp6.js} +0 -0
  870. /package/dist/chunks/{prompt-4tea6NJQ.js → prompt-IqfIbvg9.js} +0 -0
  871. /package/dist/chunks/{rewind-DAn-nNs-.js → rewind-Djt1zU_3.js} +0 -0
  872. /package/dist/chunks/{rollback-DbSpxmJE.js → rollback-CtS4yEQx.js} +0 -0
  873. /package/dist/chunks/{sanitization-JYRkZFrK.js → sanitization-Ds6zRQyx.js} +0 -0
  874. /package/dist/chunks/{sdkHeapDumpMonitor-DKtfJW5o.js → sdkHeapDumpMonitor-DLMMNeqo.js} +0 -0
  875. /package/dist/chunks/{semver-Tw0AFar5.js → semver-Di5OaTd5.js} +0 -0
  876. /package/dist/chunks/{server-CswFAYwN.js → server-DONKdvGc.js} +0 -0
  877. /package/dist/chunks/{serverBanner-CImTYGhY.js → serverBanner-DIyjgIM-.js} +0 -0
  878. /package/dist/chunks/{serverLog-Bwt7XEmk.js → serverLog-D1N5yx8A.js} +0 -0
  879. /package/dist/chunks/{sessionDataUploader-CKRXCBxI.js → sessionDataUploader-CsNePsOb.js} +0 -0
  880. /package/dist/chunks/{sessionManager-Ca2O821f.js → sessionManager-BOmgJd1l.js} +0 -0
  881. /package/dist/chunks/{slashCommandParsing-Cari0pNg.js → slashCommandParsing-BfanVchF.js} +0 -0
  882. /package/dist/chunks/{sleep-8Eb9j_Ly.js → sleep-C6koP5Ka.js} +0 -0
  883. /package/dist/chunks/{src-x7u_sB6m.js → src-BWpNn6Yz.js} +0 -0
  884. /package/dist/chunks/{src-BRAdBA8A.js → src-C-Ho8kYe.js} +0 -0
  885. /package/dist/chunks/{src-BlLavFUS.js → src-Cu58IYYb.js} +0 -0
  886. /package/dist/chunks/{src-CI_jaaBj.js → src-d2UJ68oX.js} +0 -0
  887. /package/dist/chunks/{state-Ce1HlR-H.js → state-BiRT9RAF.js} +0 -0
  888. /package/dist/chunks/{staticRender-Br64h1E1.js → staticRender-C5v46np_.js} +0 -0
  889. /package/dist/chunks/{stdio-D4cT86R0.js → stdio-Oy68T2eE.js} +0 -0
  890. /package/dist/chunks/{store-DhI7Lcan.js → store-DYC8zeL1.js} +0 -0
  891. /package/dist/chunks/{subprocessEnv-DV6q6o6w.js → subprocessEnv-DIeTJ-xE.js} +0 -0
  892. /package/dist/chunks/{systemPromptSections-BcN_XBTx.js → systemPromptSections-DY7epA2Y.js} +0 -0
  893. /package/dist/chunks/{systemTheme-dDbitcxB.js → systemTheme-eRWGHYSL.js} +0 -0
  894. /package/dist/chunks/{teammate-DMYOtLTK.js → teammate-CbskW5G9.js} +0 -0
  895. /package/dist/chunks/{types-RJTEOuIt.js → types-C0nqJFkV.js} +0 -0
  896. /package/dist/chunks/{useKeybinding-FsOnjW6T.js → useKeybinding-DPOUuymz.js} +0 -0
  897. /package/dist/chunks/{worktreeModeEnabled-Db6b_Iy_.js → worktreeModeEnabled-KtHEqeFA.js} +0 -0
  898. /package/dist/chunks/{xdg-CBxMmQux.js → xdg-BFD9ydDV.js} +0 -0
@@ -1,31 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{i as t,o as n,t as r}from"./cliLaunch-BQa48gsr.js";import{a as i,i as a,n as o,r as s,t as c}from"./state-Ce1HlR-H.js";import{resolve as l}from"path";async function u(e){let t=e[0]||`status`;switch(t){case`start`:await h(e.slice(1));break;case`stop`:await p();break;case`status`:case`ps`:await f();break;case`bg`:await(await import(`./bg-Dbh5z3Y8.js`)).handleBgStart(e.slice(1));break;case`attach`:await(await import(`./bg-Dbh5z3Y8.js`)).attachHandler(e[1]);break;case`logs`:await(await import(`./bg-Dbh5z3Y8.js`)).logsHandler(e[1]);break;case`kill`:await(await import(`./bg-Dbh5z3Y8.js`)).killHandler(e[1]);break;case`--help`:case`-h`:case`help`:d();break;default:console.error(`Unknown daemon subcommand: ${t}`),d(),process.exitCode=1}}function d(){console.log(`
2
- Claude Code Daemon — background process management
3
-
4
- USAGE
5
- claude daemon [subcommand]
6
-
7
- SUBCOMMANDS
8
- status Show daemon and session status (default)
9
- start Start the daemon supervisor
10
- stop Stop the daemon
11
- bg Start a background session
12
- attach Attach to a background session
13
- logs Show session logs
14
- kill Kill a session
15
- help Show this help
16
-
17
- REPL
18
- /daemon [subcommand] Same commands available in interactive mode
19
-
20
- OPTIONS (for start)
21
- --dir <path> Working directory (default: current)
22
- --spawn-mode <mode> Worker spawn mode: same-dir | worktree (default: same-dir)
23
- --capacity <N> Max concurrent sessions per worker (default: 4)
24
- --permission-mode <mode> Permission mode for spawned sessions
25
- --sandbox Enable sandbox mode
26
- --name <name> Session name
27
- -h, --help Show this help
28
- `)}async function f(){let e=o();switch(console.log(`=== Daemon Supervisor ===`),e.status){case`running`:{let t=e.state;console.log(` Status: running`),console.log(` PID: ${t.pid}`),console.log(` CWD: ${t.cwd}`),console.log(` Started: ${t.startedAt}`),console.log(` Workers: ${t.workerKinds.join(`, `)}`);break}case`stopped`:console.log(` Status: stopped`);break;case`stale`:console.log(` Status: stale (cleaned up)`);break}console.log(`
29
- === Background Sessions ===`),await(await import(`./bg-Dbh5z3Y8.js`)).psHandler([])}async function p(){let e=o();if(e.status===`stopped`){console.log(`daemon is not running`);return}if(e.status===`stale`){console.log(`daemon was stale (cleaned up)`);return}console.log(`stopping daemon (PID: ${e.state.pid})...`),await a()?console.log(`daemon stopped`):console.log(`daemon could not be stopped (may have already exited)`)}function m(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];r===`--dir`&&n+1<e.length?t.dir=l(e[++n]):r.startsWith(`--dir=`)?t.dir=l(r.slice(6)):r===`--spawn-mode`&&n+1<e.length?t.spawnMode=e[++n]:r.startsWith(`--spawn-mode=`)?t.spawnMode=r.slice(13):r===`--capacity`&&n+1<e.length?t.capacity=e[++n]:r.startsWith(`--capacity=`)?t.capacity=r.slice(11):r===`--permission-mode`&&n+1<e.length?t.permissionMode=e[++n]:r.startsWith(`--permission-mode=`)?t.permissionMode=r.slice(18):r===`--sandbox`?t.sandbox=`1`:r===`--name`&&n+1<e.length?t.name=e[++n]:r.startsWith(`--name=`)&&(t.name=r.slice(7))}return t}async function h(e){let t=m(e),n=t.dir||l(`.`);console.log(`[daemon] supervisor starting in ${n}`);let r=[{kind:`remoteControl`,process:null,backoffMs:v,failureCount:0,parked:!1,lastStartTime:0,restartTimer:null}];i({pid:process.pid,cwd:n,startedAt:new Date().toISOString(),workerKinds:r.map(e=>e.kind),lastStatus:`running`});let a=new AbortController,o=()=>{console.log(`[daemon] supervisor shutting down...`),a.abort(),s();for(let e of r)e.restartTimer&&(clearTimeout(e.restartTimer),e.restartTimer=null),e.process&&!e.process.killed&&e.process.kill(`SIGTERM`)};process.on(`SIGTERM`,o),process.on(`SIGINT`,o);for(let e of r)a.signal.aborted||g(e,n,t,a.signal);await new Promise(e=>{if(a.signal.aborted){e();return}a.signal.addEventListener(`abort`,()=>e(),{once:!0})}),await Promise.all(r.filter(e=>e.process&&e.process.exitCode===null).map(e=>new Promise(t=>{if(!e.process||e.process.exitCode!==null){t();return}let n=null;e.process.on(`exit`,()=>{n&&(clearTimeout(n),n=null),t()}),n=setTimeout(()=>{e.process&&e.process.exitCode===null&&e.process.kill(`SIGKILL`),t()},3e4),n.unref?.()}))),console.log(`[daemon] supervisor stopped`)}function g(e,t,i,a){if(a.aborted||e.parked)return;e.lastStartTime=Date.now();let o={...process.env,DAEMON_WORKER_DIR:t,DAEMON_WORKER_NAME:i.name,DAEMON_WORKER_SPAWN_MODE:i.spawnMode||`same-dir`,DAEMON_WORKER_CAPACITY:i.capacity||`4`,DAEMON_WORKER_PERMISSION:i.permissionMode,DAEMON_WORKER_SANDBOX:i.sandbox||`0`,DAEMON_WORKER_CREATE_SESSION:`1`,CLAUDE_CODE_SESSION_KIND:`daemon-worker`};console.log(`[daemon] spawning worker '${e.kind}'`);let s=n(r([`--daemon-worker=${e.kind}`],{env:o}),{cwd:t,stdio:[`ignore`,`pipe`,`pipe`]});e.process=s,s.stdout?.on(`data`,e=>{let t=e.toString().trimEnd().split(`
30
- `);for(let e of t)console.log(` ${e}`)}),s.stderr?.on(`data`,e=>{let t=e.toString().trimEnd().split(`
31
- `);for(let e of t)console.error(` ${e}`)}),s.on(`exit`,(n,r)=>{if(e.process=null,!a.aborted){if(n===_){console.error(`[daemon] worker '${e.kind}' exited with permanent error — parking`),e.parked=!0;return}if(Date.now()-e.lastStartTime<1e4){if(e.failureCount++,e.failureCount>=x){console.error(`[daemon] worker '${e.kind}' failed ${e.failureCount} times rapidly — parking`),e.parked=!0;return}}else e.failureCount=0,e.backoffMs=v;console.log(`[daemon] worker '${e.kind}' exited (code=${n}, signal=${r}), restarting in ${e.backoffMs}ms`),e.restartTimer=setTimeout(()=>{e.restartTimer=null,!a.aborted&&!e.parked&&g(e,t,i,a)},e.backoffMs),e.restartTimer.unref?.(),e.backoffMs=Math.min(e.backoffMs*b,y)}})}var _,v,y,b,x;e((()=>{t(),c(),_=78,v=2e3,y=12e4,b=2,x=5}))();export{u as daemonMain};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{Tn as t,wn as n}from"./src-Di342QoJ.js";import{Ct as r,cn as i}from"./state-sIHsFpDu.js";import{et as a}from"./log-CzsijfHZ.js";import{Jv as o,Qv as s,Vo as c,po as l}from"./loadAgentsDir-C9Ee_fs1.js";import{tn as u}from"./prompt-thBQB2X5.js";import{randomUUID as d}from"crypto";function f(e){return e.flatMap(e=>{switch(e.type){case`assistant`:return[{type:`assistant`,message:e.message,uuid:e.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case`user`:return[{type:`user`,message:e.message,uuid:e.uuid??d(),timestamp:e.timestamp??new Date().toISOString(),isMeta:e.isSynthetic}];default:return[]}})}function p(e){let t=e.preservedSegment;return{trigger:e.trigger,pre_tokens:e.preTokens,...t&&{preserved_segment:{head_uuid:t.headUuid,anchor_uuid:t.anchorUuid,tail_uuid:t.tailUuid}}}}function m(e){let t=e,n=t.preserved_segment;return{trigger:t.trigger,preTokens:t.pre_tokens,...n&&{preservedSegment:{headUuid:n.head_uuid,anchorUuid:n.anchor_uuid,tailUuid:n.tail_uuid}}}}function h(e){return e.flatMap(e=>{switch(e.type){case`assistant`:return[{type:`assistant`,message:v(e),session_id:r(),parent_tool_use_id:null,uuid:e.uuid,error:e.error}];case`user`:return[{type:`user`,message:e.message,session_id:r(),parent_tool_use_id:null,uuid:e.uuid,timestamp:e.timestamp,isSynthetic:e.isMeta||e.isVisibleInTranscriptOnly,...e.toolUseResult===void 0?{}:{tool_use_result:e.toolUseResult}}];case`system`:return e.subtype===`compact_boundary`&&e.compactMetadata?[{type:`system`,subtype:`compact_boundary`,session_id:r(),uuid:e.uuid,compact_metadata:p(e.compactMetadata)}]:e.subtype===`local_command`&&(e.content.includes(`<local-command-stdout>`)||e.content.includes(`<local-command-stderr>`))?[g(e.content,e.uuid)]:[];default:return[]}})}function g(e,n){let i=l({content:t(e).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,`$1`).replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,`$1`).trim()});return{type:`assistant`,content:i.message?.content,message:i.message,parent_tool_use_id:null,session_id:r(),uuid:n}}function _(e){if(e)return{type:`rate_limit`,status:e.status,...e.resetsAt!==void 0&&{resetsAt:e.resetsAt},...e.rateLimitType!==void 0&&{rateLimitType:e.rateLimitType},...e.utilization!==void 0&&{utilization:e.utilization},...e.overageStatus!==void 0&&{overageStatus:e.overageStatus},...e.overageResetsAt!==void 0&&{overageResetsAt:e.overageResetsAt},...e.overageDisabledReason!==void 0&&{overageDisabledReason:e.overageDisabledReason},...e.isUsingOverage!==void 0&&{isUsingOverage:e.isUsingOverage},...e.surpassedThreshold!==void 0&&{surpassedThreshold:e.surpassedThreshold}}}function v(e){let t=e.message.content;if(!Array.isArray(t))return e.message;let n=t.map(e=>{if(e.type!==`tool_use`)return e;if(e.name===`ExitPlanMode`){let t=o();if(t)return{...e,input:{...e.input,plan:t}}}return e});return{...e.message,content:n}}var y=e((()=>{i(),a(),u(),n(),c(),s()}));export{p as a,f as i,y as n,h as o,g as r,_ as s,m as t};
@@ -1 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./figures-gfT9mM8P.js";import{Q as i,Rn as a,T as o,b as s,f as c,g as l,h as u,nt as d,t as f,tt as p,v as m,x as h}from"./src-Di342QoJ.js";import{t as g}from"./jsx-runtime-D-D469L8.js";import{Do as _,Po as v,jo as y}from"./paths-C2JRlUsH.js";import{c as b,s as x}from"./debug-UI3T040K.js";import{DC as S,EC as C,Ey as w,HS as T,JC as E,Lx as ee,MC as D,US as te,VS as O,aC as k,iC as A,jC as j,ow as ne,rw as M,tw as re,vy as ie,wy as N}from"./loadAgentsDir-C9Ee_fs1.js";import{D as ae,O as oe}from"./rcDebugLog-CIS3PU-H.js";import{t as P}from"./useKeybinding-FsOnjW6T.js";import{i as se,n as F,r as ce}from"./MCPConnectionManager-BqNXYQEr.js";import{n as le,t as ue}from"./McpParsingWarnings-BZcVbGhE.js";import{a as de,c as I,i as L,l as fe,n as pe,o as R,r as me,s as he,t as ge,u as _e}from"./PluginSettings-Dgu23nzv.js";function ve({agentServer:e,onCancel:t,onComplete:n}){let[a]=o(),[d,f]=(0,z.useState)(!1),[g,v]=(0,z.useState)(null),[y,b]=(0,z.useState)(null),x=(0,z.useRef)(null);(0,z.useEffect)(()=>()=>x.current?.abort(),[]),p(`confirm:no`,(0,z.useCallback)(()=>{d&&(x.current?.abort(),x.current=null,f(!1),b(null))},[d]),{context:`Confirmation`,isActive:d});let S=(0,z.useCallback)(async()=>{if(!e.needsAuth||!e.url)return;f(!0),v(null);let t=new AbortController;x.current=t;try{let r={type:e.transport,url:e.url};await D(e.name,r,b,t.signal),n?.(`Authentication successful for ${e.name}. The server will connect when the agent runs.`)}catch(e){e instanceof Error&&!(e instanceof C)&&v(e.message)}finally{f(!1),x.current=null}},[e,n]),w=_(String(e.name));if(d)return(0,B.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,B.jsxs)(s,{color:`claude`,children:[`Authenticating with `,e.name,`…`]}),(0,B.jsxs)(h,{children:[(0,B.jsx)(N,{}),(0,B.jsx)(s,{children:` A browser window will open for authentication`})]}),y&&(0,B.jsxs)(h,{flexDirection:`column`,children:[(0,B.jsx)(s,{dimColor:!0,children:`If your browser doesn't open automatically, copy this URL manually:`}),(0,B.jsx)(i,{url:y})]}),(0,B.jsx)(h,{marginLeft:3,children:(0,B.jsxs)(s,{dimColor:!0,children:[`Return here after authenticating in your browser.`,` `,(0,B.jsx)(A,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]})})]});let T=[];return e.needsAuth&&T.push({label:e.isAuthenticated?`Re-authenticate`:`Authenticate`,value:`auth`}),T.push({label:`Back`,value:`back`}),(0,B.jsxs)(c,{title:`${w} MCP Server`,subtitle:`agent-only`,onCancel:t,inputGuide:e=>e.pending?(0,B.jsxs)(s,{children:[`Press `,e.keyName,` again to exit`]}):(0,B.jsxs)(u,{children:[(0,B.jsx)(l,{shortcut:`↑↓`,action:`navigate`}),(0,B.jsx)(l,{shortcut:`Enter`,action:`confirm`}),(0,B.jsx)(A,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]}),children:[(0,B.jsxs)(h,{flexDirection:`column`,gap:0,children:[(0,B.jsxs)(h,{children:[(0,B.jsx)(s,{bold:!0,children:`Type: `}),(0,B.jsx)(s,{dimColor:!0,children:e.transport})]}),e.url&&(0,B.jsxs)(h,{children:[(0,B.jsx)(s,{bold:!0,children:`URL: `}),(0,B.jsx)(s,{dimColor:!0,children:e.url})]}),e.command&&(0,B.jsxs)(h,{children:[(0,B.jsx)(s,{bold:!0,children:`Command: `}),(0,B.jsx)(s,{dimColor:!0,children:e.command})]}),(0,B.jsxs)(h,{children:[(0,B.jsx)(s,{bold:!0,children:`Used by: `}),(0,B.jsx)(s,{dimColor:!0,children:e.sourceAgents.join(`, `)})]}),(0,B.jsxs)(h,{marginTop:1,children:[(0,B.jsx)(s,{bold:!0,children:`Status: `}),(0,B.jsxs)(s,{children:[m(`inactive`,a)(r.radioOff),` not connected (agent-only)`]})]}),e.needsAuth&&(0,B.jsxs)(h,{children:[(0,B.jsx)(s,{bold:!0,children:`Auth: `}),e.isAuthenticated?(0,B.jsxs)(s,{children:[m(`success`,a)(r.tick),` authenticated`]}):(0,B.jsxs)(s,{children:[m(`warning`,a)(r.triangleUpOutline),` may need authentication`]})]})]}),(0,B.jsx)(h,{children:(0,B.jsx)(s,{dimColor:!0,children:`This server connects only when running the agent.`})}),g&&(0,B.jsx)(h,{children:(0,B.jsxs)(s,{color:`error`,children:[`Error: `,g]})}),(0,B.jsx)(h,{children:(0,B.jsx)(ee,{options:T,onChange:async e=>{switch(e){case`auth`:await S();break;case`back`:t();break}},onCancel:t})})]})}var z,B,ye=e((()=>{n(),z=t(a(),1),f(),P(),j(),y(),k(),ie(),w(),B=g()}));function V(e){switch(e){case`project`:return{label:`Project MCPs`,path:E(e)};case`user`:return{label:`User MCPs`,path:E(e)};case`local`:return{label:`Local MCPs`,path:E(e)};case`enterprise`:return{label:`Enterprise MCPs`};case`dynamic`:return{label:`Built-in MCPs`,path:`always available`};default:return{label:e}}}function be(e){let t=new Map;for(let n of e){let e=n.scope;t.has(e)||t.set(e,[]),t.get(e).push(n)}for(let[,e]of t)e.sort((e,t)=>e.name.localeCompare(t.name));return t}function xe({servers:e,agentServers:t=[],onSelectServer:n,onSelectAgentServer:a,onComplete:f}){let[p]=o(),[g,_]=(0,H.useState)(0),y=H.useMemo(()=>be(e.filter(e=>e.client.config.type!==`claudeai-proxy`)),[e]),x=H.useMemo(()=>e.filter(e=>e.client.config.type===`claudeai-proxy`).sort((e,t)=>e.name.localeCompare(t.name)),[e]),S=H.useMemo(()=>(y.get(`dynamic`)??[]).sort((e,t)=>e.name.localeCompare(t.name)),[y]),C=V(`dynamic`),w=H.useMemo(()=>{let e=[];for(let t of W){let n=y.get(t)??[];for(let t of n)e.push({type:`server`,server:t})}for(let t of x)e.push({type:`server`,server:t});for(let n of t)e.push({type:`agent-server`,agentServer:n});for(let t of S)e.push({type:`server`,server:t});return e},[y,x,t,S]),T=(0,H.useCallback)(()=>{f(`MCP dialog dismissed`,{display:`system`})},[f]);d({"confirm:previous":()=>_(e=>e===0?w.length-1:e-1),"confirm:next":()=>_(e=>e===w.length-1?0:e+1),"confirm:yes":(0,H.useCallback)(()=>{let e=w[g];e&&(e.type===`server`?n(e.server):e.type===`agent-server`&&a&&a(e.agentServer))},[w,g,n,a]),"confirm:no":T},{context:`Confirmation`});let E=e=>w.findIndex(t=>t.type===`server`&&t.server===e),ee=e=>w.findIndex(t=>t.type===`agent-server`&&t.agentServer===e),D=b(),te=e.some(e=>e.client.type===`failed`);if(e.length===0&&t.length===0)return null;let O=e=>{let t=E(e),n=g===t,i=``,a=``;if(e.client.type===`disabled`)i=m(`inactive`,p)(r.radioOff),a=`disabled`;else if(e.client.type===`connected`)i=m(`success`,p)(r.tick),a=`connected`;else if(e.client.type===`pending`){i=m(`inactive`,p)(r.radioOff);let{reconnectAttempt:t,maxReconnectAttempts:n}=e.client;a=t&&n?`reconnecting (${t}/${n})…`:`connecting…`}else e.client.type===`needs-auth`?(i=m(`warning`,p)(r.triangleUpOutline),a=`needs authentication`):(i=m(`error`,p)(r.cross),a=`failed`);return(0,U.jsxs)(h,{children:[(0,U.jsx)(s,{color:n?`suggestion`:void 0,children:n?`${r.pointer} `:` `}),(0,U.jsx)(s,{color:n?`suggestion`:void 0,children:e.name}),(0,U.jsxs)(s,{dimColor:!n,children:[` · `,i,` `]}),(0,U.jsx)(s,{dimColor:!n,children:a})]},`${e.name}-${t}`)},k=e=>{let t=ee(e),n=g===t,i=e.needsAuth?m(`warning`,p)(r.triangleUpOutline):m(`inactive`,p)(r.radioOff),a=e.needsAuth?`may need auth`:`agent-only`;return(0,U.jsxs)(h,{children:[(0,U.jsx)(s,{color:n?`suggestion`:void 0,children:n?`${r.pointer} `:` `}),(0,U.jsx)(s,{color:n?`suggestion`:void 0,children:e.name}),(0,U.jsxs)(s,{dimColor:!n,children:[` · `,i,` `]}),(0,U.jsx)(s,{dimColor:!n,children:a})]},`agent-${e.name}-${t}`)},j=e.length+t.length;return(0,U.jsxs)(h,{flexDirection:`column`,children:[(0,U.jsx)(ue,{}),(0,U.jsx)(c,{title:`Manage MCP servers`,subtitle:`${j} ${v(j,`server`)}`,onCancel:T,hideInputGuide:!0,children:(0,U.jsxs)(h,{flexDirection:`column`,children:[W.map(e=>{let t=y.get(e);if(!t||t.length===0)return null;let n=V(e);return(0,U.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,U.jsxs)(h,{paddingLeft:2,children:[(0,U.jsx)(s,{bold:!0,children:n.label}),n.path&&(0,U.jsxs)(s,{dimColor:!0,children:[` (`,n.path,`)`]})]}),t.map(e=>O(e))]},e)}),x.length>0&&(0,U.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,U.jsx)(h,{paddingLeft:2,children:(0,U.jsx)(s,{bold:!0,children:`claude.ai`})}),x.map(e=>O(e))]}),t.length>0&&(0,U.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,U.jsx)(h,{paddingLeft:2,children:(0,U.jsx)(s,{bold:!0,children:`Agent MCPs`})}),[...new Set(t.flatMap(e=>e.sourceAgents))].map(e=>(0,U.jsxs)(h,{flexDirection:`column`,marginTop:1,children:[(0,U.jsx)(h,{paddingLeft:2,children:(0,U.jsxs)(s,{dimColor:!0,children:[`@`,e]})}),t.filter(t=>t.sourceAgents.includes(e)).map(e=>k(e))]},e))]}),S.length>0&&(0,U.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,U.jsxs)(h,{paddingLeft:2,children:[(0,U.jsx)(s,{bold:!0,children:C.label}),C.path&&(0,U.jsxs)(s,{dimColor:!0,children:[` (`,C.path,`)`]})]}),S.map(e=>O(e))]}),(0,U.jsxs)(h,{flexDirection:`column`,children:[te&&(0,U.jsx)(s,{dimColor:!0,children:D?`※ Error logs shown inline with --debug`:`※ Run claude --debug to see error logs`}),(0,U.jsxs)(s,{dimColor:!0,children:[(0,U.jsx)(i,{url:`https://code.claude.com/docs/en/mcp`,children:`https://code.claude.com/docs/en/mcp`}),` for help`]})]})]})}),(0,U.jsx)(h,{paddingX:1,children:(0,U.jsx)(s,{dimColor:!0,italic:!0,children:(0,U.jsxs)(u,{children:[(0,U.jsx)(l,{shortcut:`↑↓`,action:`navigate`}),(0,U.jsx)(l,{shortcut:`Enter`,action:`confirm`}),(0,U.jsx)(A,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})})]})}var H,U,W,G=e((()=>{n(),H=t(a(),1),f(),P(),ne(),x(),y(),k(),le(),U=g(),W=[`project`,`local`,`user`,`enterprise`]}));function Se({serverName:e,onComplete:t}){let[n]=o(),i=te(),a=ce(),[c,l]=(0,K.useState)(!0),[u,d]=(0,K.useState)(null);return(0,K.useEffect)(()=>{async function n(){try{if(!i.getState().mcp.clients.find(t=>t.name===e)){d(`MCP server "${e}" not found`),l(!1),t(`MCP server "${e}" not found`);return}switch((await a(e)).client.type){case`connected`:l(!1),t(`Successfully reconnected to ${e}`);break;case`needs-auth`:d(`${e} requires authentication`),l(!1),t(`${e} requires authentication. Use /mcp to authenticate.`);break;case`pending`:case`failed`:case`disabled`:d(`Failed to reconnect to ${e}`),l(!1),t(`Failed to reconnect to ${e}`);break}}catch(e){let n=e instanceof Error?e.message:String(e);d(n),l(!1),t(`Error: ${n}`)}}n()},[e,a,i,t]),c?(0,q.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,q.jsxs)(s,{color:`text`,children:[`Reconnecting to `,(0,q.jsx)(s,{bold:!0,children:e})]}),(0,q.jsxs)(h,{children:[(0,q.jsx)(N,{}),(0,q.jsx)(s,{children:` Establishing connection to MCP server`})]})]}):u?(0,q.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,q.jsxs)(h,{children:[(0,q.jsxs)(s,{children:[m(`error`,n)(r.cross),` `]}),(0,q.jsxs)(s,{color:`error`,children:[`Failed to reconnect to `,e]})]}),(0,q.jsxs)(s,{dimColor:!0,children:[`Error: `,u]})]}):null}var K,q,J=e((()=>{n(),K=t(a(),1),f(),F(),O(),w(),q=g()}));function Y({onComplete:e}){let t=T(e=>e.mcp),n=T(e=>e.agentDefinitions),r=t.clients,[i,a]=X.useState({type:`list`}),[o,s]=X.useState([]),c=(0,X.useMemo)(()=>re(n.allAgents),[n.allAgents]),l=X.useMemo(()=>r.filter(e=>e.name!==`ide`).sort((e,t)=>e.name.localeCompare(t.name)),[r]);switch(X.useEffect(()=>{let e=!1;async function n(){let n=await Promise.all(l.map(async e=>{let n=e.config.scope,r=e.config.type===`sse`,i=e.config.type===`http`,a=e.config.type===`claudeai-proxy`,o;if(r||i){let n=await new S(e.name,e.config).tokens(),r=ae()!==null&&e.type===`connected`,i=e.type===`connected`&&M(t.tools,e.name).length>0;o=!!n||r||i}let s={name:e.name,client:e,scope:n};return a?{...s,transport:`claudeai-proxy`,isAuthenticated:!1,config:e.config}:r?{...s,transport:`sse`,isAuthenticated:o,config:e.config}:i?{...s,transport:`http`,isAuthenticated:o,config:e.config}:{...s,transport:`stdio`,config:e.config}}));e||s(n)}return n(),()=>{e=!0}},[l,t.tools]),(0,X.useEffect)(()=>{o.length===0&&l.length>0||o.length===0&&c.length===0&&e("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.")},[o.length,l.length,c.length,e]),i.type){case`list`:return(0,Z.jsx)(xe,{servers:o,agentServers:c,onSelectServer:e=>a({type:`server-menu`,server:e}),onSelectAgentServer:e=>a({type:`agent-server-menu`,agentServer:e}),onComplete:e,defaultTab:i.defaultTab});case`server-menu`:{let n=M(t.tools,i.server.name),r=i.server.transport===`claudeai-proxy`?`claude.ai`:`Claude Code`;return i.server.transport===`stdio`?(0,Z.jsx)(he,{server:i.server,serverToolsCount:n.length,onViewTools:()=>a({type:`server-tools`,server:i.server}),onCancel:()=>a({type:`list`,defaultTab:r}),onComplete:e}):(0,Z.jsx)(fe,{server:i.server,serverToolsCount:n.length,onViewTools:()=>a({type:`server-tools`,server:i.server}),onCancel:()=>a({type:`list`,defaultTab:r}),onComplete:e})}case`server-tools`:return(0,Z.jsx)(me,{server:i.server,onSelectTool:(e,t)=>a({type:`server-tool-detail`,server:i.server,toolIndex:t}),onBack:()=>a({type:`server-menu`,server:i.server})});case`server-tool-detail`:{let e=M(t.tools,i.server.name)[i.toolIndex];return e?(0,Z.jsx)(de,{tool:e,server:i.server,onBack:()=>a({type:`server-tools`,server:i.server})}):(a({type:`server-tools`,server:i.server}),null)}case`agent-server-menu`:return(0,Z.jsx)(ve,{agentServer:i.agentServer,onCancel:()=>a({type:`list`,defaultTab:`Agents`}),onComplete:e})}}var X,Z,Ce=e((()=>{X=t(a(),1),j(),ne(),O(),oe(),ye(),G(),_e(),I(),R(),L(),Z=g()})),we=e((()=>{ye(),G(),J(),_e(),Ce(),I(),R(),L()}));function Te({action:e,target:t,onComplete:n}){let r=T(e=>e.mcp.clients),i=se(),a=(0,Q.useRef)(!1);return(0,Q.useEffect)(()=>{if(a.current)return;a.current=!0;let o=e===`enable`,s=r.filter(e=>e.name!==`ide`),c=t===`all`?s.filter(e=>o?e.type===`disabled`:e.type!==`disabled`):s.filter(e=>e.name===t);if(c.length===0){n(t===`all`?`All MCP servers are already ${o?`enabled`:`disabled`}`:`MCP server "${t}" not found`);return}for(let e of c)i(e.name);n(t===`all`?`${o?`Enabled`:`Disabled`} ${c.length} MCP server(s)`:`MCP server "${t}" ${o?`enabled`:`disabled`}`)},[e,t,r,i,n]),null}async function Ee(e,t,n){if(n){let t=n.trim().split(/\s+/);if(t[0]===`no-redirect`)return(0,$.jsx)(Y,{onComplete:e});if(t[0]===`reconnect`&&t[1])return(0,$.jsx)(Se,{serverName:t.slice(1).join(` `),onComplete:e});if(t[0]===`enable`||t[0]===`disable`)return(0,$.jsx)(Te,{action:t[0],target:t.length>1?t.slice(1).join(` `):`all`,onComplete:e})}return process.env.USER_TYPE===`ant`?(0,$.jsx)(ge,{onComplete:e,args:`manage`,showMcpRedirectMessage:!0}):(0,$.jsx)(Y,{onComplete:e})}var Q,$;e((()=>{Q=t(a(),1),we(),J(),F(),O(),pe(),$=g()}))();export{Ee as call};
@@ -1,2 +0,0 @@
1
- import{B as e,M as t,d as n,n as r,t as i}from"./server-DzOdtq8A.js";import{Dr as a,Pr as o}from"./paths-C2JRlUsH.js";import{E as s,w as c}from"./debug-UI3T040K.js";import{o as l,s as u}from"./log-CzsijfHZ.js";import{$E as d,G as f,Gm as p,K as m,Km as h,La as g,MD as _,ND as v,QE as y,Ra as b,Vo as x,Xu as S,Zu as C,al as w,du as T,ol as E,po as D,uu as O}from"./loadAgentsDir-C9Ee_fs1.js";import{Bn as k,Vn as A,zn as j}from"./prompt-thBQB2X5.js";import{a as M,o as N}from"./fileStateCache-C7-TxF8G.js";import{n as P,t as F}from"./stdio-BEEzuxaZ.js";r(),P(),e(),d(),g(),A(),C(),v(),N(),l(),x(),o(),m(),p(),c(),T(),w();var I=[b];async function L(e,r,o){let c=M(100);h(e);let l=new i({name:`claude/tengu`,version:`2.6.13`},{capabilities:{tools:{}}});l.setRequestHandler(t,async()=>{let e=k(),t=S(e);return{tools:await Promise.all(t.map(async n=>{let r;if(n.outputSchema){let e=E(n.outputSchema);typeof e==`object`&&e&&`type`in e&&e.type===`object`&&(r=e)}return{...n,description:await n.prompt({getToolPermissionContext:async()=>e,tools:t,agents:[]}),inputSchema:E(n.inputSchema),outputSchema:r}}))}}),l.setRequestHandler(n,async({params:{name:e,arguments:t}})=>{let n=S(k()),i=j(n,e);if(!i)throw Error(`Tool ${e} not found`);let l={abortController:_(),options:{commands:I,tools:n,mainLoopModel:a(),thinkingConfig:{type:`disabled`},mcpClients:[],mcpResources:{},isNonInteractiveSession:!0,debug:r,verbose:o,agentDefinitions:{activeAgents:[],allAgents:[]}},getAppState:()=>y(),setAppState:()=>{},messages:[],readFileState:c,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:()=>{},updateAttributionState:()=>{}};try{if(!i.isEnabled())throw Error(`Tool ${e} is not enabled`);let n=await i.validateInput?.(t??{},l);if(n&&!n.result)throw Error(`Tool ${e} input is invalid: ${`message`in n?n.message:String(n)}`);let r=await i.call(t??{},l,f,D({content:[]}));return{content:[{type:`text`,text:typeof r==`string`?r:s(r.data)}]}}catch(e){return u(e),{isError:!0,content:[{type:`text`,text:(e instanceof Error?O(e):[String(e)]).filter(Boolean).join(`
2
- `).trim()||`Error`}]}}});async function d(){let e=new F;await l.connect(e)}return await d()}export{L as startMCPServer};
@@ -1,6 +0,0 @@
1
- import{o as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./p-map-D7WEmnBE.js";import{Mt as r,Rn as i,T as a,b as o,f as s,g as c,h as l,t as u,v as ee,x as te}from"./src-Di342QoJ.js";import{t as d}from"./jsx-runtime-D-D469L8.js";import{Ac as f,Nc as p,Po as m,Sc as h,bc as g,jo as ne}from"./paths-C2JRlUsH.js";import{V as re,W as ie}from"./debug-UI3T040K.js";import{n as _,r as v}from"./analytics-DqMQntaB.js";import{n as y,o as ae}from"./process-DMKLUQIO.js";import{i as b,o as x}from"./platform-CuyedWpe.js";import{s as S,u as C}from"./types-Csi32ZXh.js";import{AC as w,BS as T,Cw as E,Dx as oe,FC as se,JC as D,NC as O,Nx as k,OC as A,VS as j,YC as M,_w as N,aC as P,aw as F,by as I,gw as L,hy as R,iC as z,jC as B,jx as V,kC as H,lw as U,mw as W,my as G,ow as ce,rE as K,tE as q,yw as J,yy as le}from"./loadAgentsDir-C9Ee_fs1.js";import{n as Y,t as X}from"./exit-_obETqBv.js";import{stat as ue}from"fs/promises";import{cwd as de}from"process";n();var Z=e(i(),1);K(),y(),u(),J(),ne(),P(),I();var Q=d();function fe({servers:e,scope:t,onDone:n}){let r=Object.keys(e),[i,u]=(0,Z.useState)({});(0,Z.useEffect)(()=>{W().then(({servers:e})=>u(e))},[]);let d=r.filter(e=>i[e]!==void 0);async function f(n){let r=0;for(let a of n){let n=e[a];if(n){let e=a;if(i[e]!==void 0){let t=1;for(;i[`${a}_${t}`]!==void 0;)t++;e=`${a}_${t}`}await U(e,n,t),r++}}h(r)}let[p]=a(),h=(0,Z.useCallback)(e=>{ae(e>0?`\n${ee(`success`,p)(`Successfully imported ${e} MCP ${m(e,`server`)} to ${t} config.`)}\n`:`
2
- No servers were imported.`),n(),q()},[p,t,n]),g=(0,Z.useCallback)(()=>{h(0)},[h]);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(s,{title:`Import MCP Servers from Claude Desktop`,subtitle:`Found ${r.length} MCP ${m(r.length,`server`)} in Claude Desktop.`,color:`success`,onCancel:g,hideInputGuide:!0,children:[d.length>0&&(0,Q.jsx)(o,{color:`warning`,children:`Note: Some servers already exist with the same name. If selected, they will be imported with a numbered suffix.`}),(0,Q.jsx)(o,{children:`Please select the servers you want to import:`}),(0,Q.jsx)(le,{options:r.map(e=>({label:`${e}${d.includes(e)?` (already exists)`:``}`,value:e})),defaultValue:r.filter(e=>!d.includes(e)),onSubmit:f,onCancel:g,hideIndexes:!0})]}),(0,Q.jsx)(te,{paddingX:1,children:(0,Q.jsx)(o,{dimColor:!0,italic:!0,children:(0,Q.jsxs)(l,{children:[(0,Q.jsx)(c,{shortcut:`Space`,action:`select`}),(0,Q.jsx)(c,{shortcut:`Enter`,action:`confirm`}),(0,Q.jsx)(z,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})})]})}u(),R(),_(),B(),k(),J(),ce(),j(),f(),re(),K(),S(),x();async function $(e,t){try{let n=await oe(e,t);return n.type===`connected`?`✓ Connected`:n.type===`needs-auth`?`! Needs authentication`:`✗ Failed to connect`}catch{return`✗ Connection error`}}async function pe({debug:e,verbose:t}){let n=de();v(`tengu_mcp_start`,{});try{await ue(n)}catch(e){throw ie(e)&&X(`Error: Directory ${n} does not exist`),e}try{let{setup:r}=await import(`./setup-DvFPFV-3.js`);await r(n,`default`,!1,!1,void 0,!1);let{startMCPServer:i}=await import(`./mcp-BLcZi9zs.js`);await i(n,e??!1,t??!1)}catch(e){X(`Error: Failed to start MCP server: ${e}`)}}async function me(e,t){let n=L(e),r=()=>{n&&(n.type===`sse`||n.type===`http`)&&(H(e,n),A(e,n))};try{if(t.scope){let n=M(t.scope);v(`tengu_mcp_delete`,{name:e,scope:n}),await E(e,n),r(),process.stdout.write(`Removed MCP server ${e} from ${n} config\n`),Y(`File modified: ${D(n)}`)}let n=g(),i=h(),{servers:a}=N(`project`),o=!!a[e],s=[];if(n.mcpServers?.[e]&&s.push(`local`),o&&s.push(`project`),i.mcpServers?.[e]&&s.push(`user`),s.length===0)X(`No MCP server found with name: "${e}"`);else if(s.length===1){let t=s[0];v(`tengu_mcp_delete`,{name:e,scope:t}),await E(e,t),r(),process.stdout.write(`Removed MCP server "${e}" from ${t} config\n`),Y(`File modified: ${D(t)}`)}else process.stderr.write(`MCP server "${e}" exists in multiple scopes:\n`),s.forEach(e=>{process.stderr.write(` - ${F(e)} (${D(e)})\n`)}),process.stderr.write(`
3
- To remove from a specific scope, use:
4
- `),s.forEach(t=>{process.stderr.write(` claude mcp remove "${e}" -s ${t}\n`)}),X()}catch(e){X(e.message)}}async function he(){v(`tengu_mcp_list`,{});let{servers:e}=await W();if(Object.keys(e).length===0)console.log("No MCP servers configured. Use `claude mcp add` to add a server.");else{console.log(`Checking MCP server health...
5
- `);let n=await t(Object.entries(e),async([e,t])=>({name:e,server:t,status:await $(e,t)}),{concurrency:V()});for(let{name:e,server:t,status:r}of n)if(t.type===`sse`)console.log(`${e}: ${t.url} (SSE) - ${r}`);else if(t.type===`http`)console.log(`${e}: ${t.url} (HTTP) - ${r}`);else if(t.type===`claudeai-proxy`)console.log(`${e}: ${t.url} - ${r}`);else if(!t.type||t.type===`stdio`){let n=t,i=Array.isArray(n.args)?n.args:[];console.log(`${e}: ${n.command} ${i.join(` `)} - ${r}`)}}await q(0)}async function ge(e){v(`tengu_mcp_get`,{name:e});let t=L(e);t||X(`No MCP server found with name: ${e}`),console.log(`${e}:`),console.log(` Scope: ${F(t.scope)}`);let n=await $(e,t);if(console.log(` Status: ${n}`),t.type===`sse`){if(console.log(` Type: sse`),console.log(` URL: ${t.url}`),t.headers){console.log(` Headers:`);for(let[e,n]of Object.entries(t.headers))console.log(` ${e}: ${n}`)}if(t.oauth?.clientId||t.oauth?.callbackPort){let n=[];t.oauth.clientId&&(n.push(`client_id configured`),w(e,t)?.clientSecret&&n.push(`client_secret configured`)),t.oauth.callbackPort&&n.push(`callback_port ${t.oauth.callbackPort}`),console.log(` OAuth: ${n.join(`, `)}`)}}else if(t.type===`http`){if(console.log(` Type: http`),console.log(` URL: ${t.url}`),t.headers){console.log(` Headers:`);for(let[e,n]of Object.entries(t.headers))console.log(` ${e}: ${n}`)}if(t.oauth?.clientId||t.oauth?.callbackPort){let n=[];t.oauth.clientId&&(n.push(`client_id configured`),w(e,t)?.clientSecret&&n.push(`client_secret configured`)),t.oauth.callbackPort&&n.push(`callback_port ${t.oauth.callbackPort}`),console.log(` OAuth: ${n.join(`, `)}`)}}else if(t.type===`stdio`){console.log(` Type: stdio`),console.log(` Command: ${t.command}`);let e=Array.isArray(t.args)?t.args:[];if(console.log(` Args: ${e.join(` `)}`),t.env){console.log(` Environment:`);for(let[e,n]of Object.entries(t.env))console.log(` ${e}=${n}`)}}console.log(`\nTo remove this server, run: claude mcp remove "${e}" -s ${t.scope}`),await q(0)}async function _e(e,t,n){try{let r=M(n.scope),i=C(t),a=n.clientSecret&&i&&typeof i==`object`&&`type`in i&&(i.type===`sse`||i.type===`http`)&&`url`in i&&typeof i.url==`string`&&`oauth`in i&&i.oauth&&typeof i.oauth==`object`&&`clientId`in i.oauth?await O():void 0;await U(e,i,r);let o=i&&typeof i==`object`&&`type`in i?String(i.type||`stdio`):`stdio`;a&&i&&typeof i==`object`&&`type`in i&&(i.type===`sse`||i.type===`http`)&&`url`in i&&typeof i.url==`string`&&se(e,{type:i.type,url:i.url},a),v(`tengu_mcp_add`,{scope:r,source:`json`,type:o}),Y(`Added ${o} MCP server ${e} to ${r} config`)}catch(e){X(e.message)}}async function ve(e){try{let t=M(e.scope);v(`tengu_mcp_add`,{scope:t,platform:b(),source:`desktop`});let{readClaudeDesktopMcpServers:n}=await import(`./claudeDesktop-C1qQs6os.js`),i=await n();Object.keys(i).length===0&&Y(`No MCP servers found in Claude Desktop configuration or configuration file does not exist.`);let{unmount:a}=await r((0,Q.jsx)(T,{children:(0,Q.jsx)(G,{children:(0,Q.jsx)(fe,{servers:i,scope:t,onDone:()=>{a()}})})}),{exitOnCtrlC:!0})}catch(e){X(e.message)}}async function ye(){v(`tengu_mcp_reset_mcpjson_choices`,{}),p(e=>({...e,enabledMcpjsonServers:[],disabledMcpjsonServers:[],enableAllProjectMcpServers:!1})),Y(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
6
- You will be prompted for approval next time you start Claude Code.`)}export{ve as mcpAddFromDesktopHandler,_e as mcpAddJsonHandler,ge as mcpGetHandler,he as mcpListHandler,me as mcpRemoveHandler,ye as mcpResetChoicesHandler,pe as mcpServeHandler};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{s as t,u as n}from"./envUtils-BWeoiL4Y.js";import{r,t as i}from"./src-BJz1KAd_.js";import{Ac as a,Jt as o,M as s,Pc as c,S as l,Sc as u,_ as d,_c as f,on as p,z as m}from"./paths-C2JRlUsH.js";import{d as h,s as g}from"./debug-UI3T040K.js";import{n as _,r as v}from"./analytics-DqMQntaB.js";import{__ as y,g_ as b}from"./loadAgentsDir-C9Ee_fs1.js";import{r as x,t as S}from"./datadog-DCukMGn4.js";import{c as C,i as w,o as T}from"./common-CMCv4N_v.js";import{n as E,t as D}from"./stdio-BEEzuxaZ.js";import{r as O,t as k}from"./sink-D6dxOYIw.js";import{format as A}from"util";function j(e){return z.some(t=>t===e)}function M(){if(process.env.USER_TYPE===`ant`||d(`tengu_copper_bridge`,!1))return n(process.env.USE_LOCAL_OAUTH)||n(process.env.LOCAL_BRIDGE)?`ws://localhost:8765`:n(process.env.USE_STAGING_OAUTH)?`wss://bridge-staging.claudeusercontent.com`:`wss://bridge.claudeusercontent.com`}function N(){return n(process.env.USE_LOCAL_OAUTH)||n(process.env.LOCAL_BRIDGE)}function P(e){let t=new B,n=M();t.info(`Bridge URL: ${n??`none (using native socket)`}`);let r=e?.CLAUDE_CHROME_PERMISSION_MODE??process.env.CLAUDE_CHROME_PERMISSION_MODE,i;return r&&(j(r)?i=r:t.warn(`Invalid CLAUDE_CHROME_PERMISSION_MODE "${r}". Valid values: ${z.join(`, `)}`)),{serverName:`Claude in Chrome`,logger:t,socketPath:T(),getSocketPaths:w,clientTypeId:`claude-code`,onAuthenticationError:()=>{t.warn(`Authentication error occurred. Please ensure you are logged into the Claude browser extension with the same claude.ai account as Claude Code.`)},onToolCallDisconnected:()=>`Browser extension is not connected. Please ensure the Claude browser extension is installed and running (${I}), and that you are logged into claude.ai with the same account as Claude Code. If this is your first time connecting to Chrome, you may need to restart Chrome for the installation to take effect. If you continue to experience issues, please report a bug: ${L}`,onExtensionPaired:(e,n)=>{c(t=>t.chromeExtension?.pairedDeviceId===e&&t.chromeExtension?.pairedDeviceName===n?t:{...t,chromeExtension:{pairedDeviceId:e,pairedDeviceName:n}}),t.info(`Paired with "${n}" (${e.slice(0,8)})`)},getPersistedDeviceId:()=>u().chromeExtension?.pairedDeviceId,...n&&{bridgeConfig:{url:n,getUserId:async()=>u().oauthAccount?.accountUuid,getOAuthToken:async()=>o()?.accessToken??``,...N()&&{devUserId:`dev_user_local`}}},...i&&{initialPermissionMode:i},...process.env.USER_TYPE===`ant`&&{callAnthropicMessages:async e=>{let t=await y({model:e.model,system:e.system,messages:e.messages,max_tokens:e.max_tokens,stop_sequences:e.stop_sequences,signal:e.signal,skipSystemPromptPrefix:!0,tools:[],querySource:`chrome_mcp`}),n=[];for(let e of t.content)e.type===`text`&&n.push({type:`text`,text:e.text});return{content:n,stop_reason:t.stop_reason,usage:{input_tokens:t.usage.input_tokens,output_tokens:t.usage.output_tokens}}}},trackEvent:(e,t)=>{let n={};if(t)for(let[e,r]of Object.entries(t)){let t=e===`status`?`bridge_status`:e;(typeof r==`boolean`||typeof r==`number`||typeof r==`string`&&R.has(t))&&(n[t]=r)}v(e,n)}}}async function F(){f(),O();let e=r(P()),t=new D,n=!1,i=async()=>{n||(n=!0,await m(),await x(),process.exit(0))};process.stdin.on(`end`,()=>void i()),process.stdin.on(`error`,()=>void i()),h(`[Claude in Chrome] Starting MCP server`),await e.connect(t),h(`[Claude in Chrome] MCP server started`)}var I,L,R,z,B;e((()=>{i(),k(),E(),S(),s(),l(),_(),p(),a(),g(),t(),b(),C(),I=`https://claude.ai/chrome`,L=`https://github.com/anthropics/claude-code/issues/new?labels=bug,claude-in-chrome`,R=new Set([`bridge_status`,`error_type`,`tool_name`]),z=[`ask`,`skip_all_permission_checks`,`follow_a_plan`],B=class{silly(e,t){h(A(e,t??``),{level:`debug`})}debug(e,t){h(A(e,t??``),{level:`debug`})}info(e,t){h(A(e,t??``),{level:`info`})}warn(e,t){h(A(e,t??``),{level:`warn`})}error(e,t){h(A(e,t??``),{level:`error`})}}}))();export{P as createChromeContext,F as runClaudeInChromeMcpServer};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{B as t,M as n}from"./server-DzOdtq8A.js";import{Ac as r,M as i,_c as a,z as o}from"./paths-C2JRlUsH.js";import{d as s,s as c}from"./debug-UI3T040K.js";import{r as l,t as u}from"./datadog-DCukMGn4.js";import{i as d,r as f,t as p}from"./src-BlLavFUS.js";import{i as m,t as h}from"./gates-DP4JyL5e.js";import{n as g,t as _}from"./hostAdapter-DWD430of.js";import{n as v,t as y}from"./stdio-BEEzuxaZ.js";import{r as b,t as x}from"./sink-D6dxOYIw.js";import{homedir as S}from"os";function C(e,t){if(k.some(t=>e.startsWith(t)))return!0;if(t){let n=t.endsWith(`/`)?`${t}Applications/`:`${t}/Applications/`;if(e.startsWith(n))return!0}return!1}function w(e){return A.some(t=>t.test(e))}function T(e,t){let n=new Set;return e.map(e=>e.trim()).filter(e=>!e||e.length>N||t&&!M.test(e)||n.has(e)?!1:(n.add(e),!0)).sort((e,t)=>e.localeCompare(t))}function E(e){let t=T(e,!0);return t.length<=P?t:[...t.slice(0,P),`… and ${t.length-P} more`]}function D(e){return T(e,!1)}function O(e,t){let{alwaysKept:n,rest:r}=e.reduce((e,n)=>(j.has(n.bundleId)?e.alwaysKept.push(n.displayName):C(n.path,t)&&!w(n.displayName)&&e.rest.push(n.displayName),e),{alwaysKept:[],rest:[]}),i=D(n),a=new Set(i);return[...i,...E(r).filter(e=>!a.has(e))]}var k,A,j,M,N,P,F=e((()=>{k=[`/Applications/`,`/System/Applications/`],A=[/Helper(?:$|\s\()/,/Agent(?:$|\s\()/,/Service(?:$|\s\()/,/Uninstaller(?:$|\s\()/,/Updater(?:$|\s\()/,/^\./],j=new Set(`com.apple.Safari,com.google.Chrome,com.microsoft.edgemac,org.mozilla.firefox,company.thebrowser.Browser,com.tinyspeck.slackmacgap,us.zoom.xos,com.microsoft.teams2,com.microsoft.teams,com.apple.MobileSMS,com.apple.mail,com.microsoft.Word,com.microsoft.Excel,com.microsoft.Powerpoint,com.microsoft.Outlook,com.apple.iWork.Pages,com.apple.iWork.Numbers,com.apple.iWork.Keynote,com.google.GoogleDocs,notion.id,com.apple.Notes,md.obsidian,com.linear,com.figma.Desktop,com.microsoft.VSCode,com.apple.Terminal,com.googlecode.iterm2,com.github.GitHubDesktop,com.apple.finder,com.apple.iCal,com.apple.systempreferences`.split(`,`)),M=/^[\p{L}\p{M}\p{N}_ .&'()+-]+$/u,N=40,P=50}));async function I(){let e=_().executor.listInstalledApps(),t,n=new Promise(e=>{t=setTimeout(e,z,void 0)}),r=await Promise.race([e,n]).catch(()=>void 0).finally(()=>clearTimeout(t));if(!r){e.catch(()=>{}),s(`[Computer Use MCP] app enumeration exceeded ${z}ms or failed; tool description omits list`);return}return O(r,S())}async function L(){let e=_(),t=h(),r=f(e,t),i=await I(),a=d(e.executor.capabilities,t,i);return r.setRequestHandler(n,async()=>e.isDisabled()?{tools:[]}:{tools:a}),r}async function R(){a(),b();let e=await L(),t=new y,n=!1,r=async()=>{n||(n=!0,await Promise.all([o(),l()]),process.exit(0))};process.stdin.on(`end`,()=>void r()),process.stdin.on(`error`,()=>void r()),s(`[Computer Use MCP] Starting MCP server`),await e.connect(t),s(`[Computer Use MCP] MCP server started`)}var z;e((()=>{p(),x(),v(),t(),u(),i(),r(),c(),F(),m(),g(),z=1e3}))();export{L as createComputerUseMcpServerForCli,R as runComputerUseMcpServer};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{E as t,w as n}from"./debug-UI3T040K.js";import{o as r,s as i}from"./log-CzsijfHZ.js";import{n as a,t as o}from"./index.min-BJnb9GQI.js";function s(e,n=300*1e3){let r=new Map,a=new Map,o=async(...o)=>{let s=t(o),c=r.get(s),l=Date.now();if(!c){let t=a.get(s);if(t)return t;let n=e(...o);a.set(s,n);try{let e=await n;return a.get(s)===n&&r.set(s,{value:e,timestamp:l,refreshing:!1}),e}finally{a.get(s)===n&&a.delete(s)}}if(c&&l-c.timestamp>n&&!c.refreshing){c.refreshing=!0;let t=c;return e(...o).then(e=>{r.get(s)===t&&r.set(s,{value:e,timestamp:Date.now(),refreshing:!1})}).catch(e=>{i(e),r.get(s)===t&&r.delete(s)}),c.value}return r.get(s).value};return o.cache={clear:()=>{r.clear(),a.clear()}},o}function c(e,t,n=100){let r=new o({max:n}),i=(...n)=>{let i=t(...n),a=r.get(i);if(a!==void 0)return a;let o=e(...n);return r.set(i,o),o};return i.cache={clear:()=>r.clear(),size:()=>r.size,delete:e=>r.delete(e),get:e=>r.peek(e),has:e=>r.has(e)},i}var l=e((()=>{a(),r(),n()}));export{c as n,s as r,l as t};
@@ -1 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{In as i,Ln as a,Q as o,Rn as s,b as c,d as l,f as u,t as d,tt as f,x as p}from"./src-Di342QoJ.js";import{t as m}from"./jsx-runtime-D-D469L8.js";import{cn as h,ot as g}from"./state-sIHsFpDu.js";import{Zc as ee,a as _,el as v,lo as y,n as te,oo as b,s as x}from"./paths-C2JRlUsH.js";import{R as S,V as C}from"./debug-UI3T040K.js";import{n as w,r as T}from"./analytics-DqMQntaB.js";import{n as E,t as D}from"./cwd--iizewsn.js";import{r as O,v as k}from"./git-CN3qtTb_.js";import{o as A,s as j}from"./log-CzsijfHZ.js";import{g as ne,x as M}from"./startupProfiler-DnXZaX4A.js";import{Ek as N,HS as P,Jn as F,Kn as re,Lx as ie,VS as I,au as ae,iu as L,jk as R,kk as z,mp as oe,pp as se,vy as ce}from"./loadAgentsDir-C9Ee_fs1.js";import{r as le,t as B}from"./browser-fLRXxIsQ.js";import{t as V}from"./useKeybinding-FsOnjW6T.js";import{l as H,u as U}from"./referral-CXmDvb7V.js";import{r as W,t as ue}from"./promptEditor-C8B2TEXp.js";import{homedir as de}from"os";import{join as G,relative as fe}from"path";import{mkdir as K,writeFile as pe}from"fs/promises";function me(e){return O(e)!==null}var he=e((()=>{k()}));function ge({onSelect:e,onCancel:t}){let r=(0,q.use)(z()),a=G(n(),`CLAUDE.md`),o=G(g(),`CLAUDE.md`),s=r.some(e=>e.path===a),u=r.some(e=>e.path===o),d=[...r.filter(e=>e.type!==`AutoMem`&&e.type!==`TeamMem`).map(e=>({...e,exists:!0})),...s?[]:[{path:a,type:`User`,content:``,exists:!1}],...u?[]:[{path:o,type:`Project`,content:``,exists:!1}]],m=new Map,h=d.map(e=>{let t=ee(e.path),n=e.exists?``:` (new)`,r=e.parent?(m.get(e.parent)??0)+1:0;m.set(e.path,r);let i=r>0?` `.repeat(r-1):``,s;s=e.type===`User`&&!e.isNested&&e.path===a?`User memory`:e.type===`Project`&&!e.isNested&&e.path===o?`Project memory`:r>0?`${i}L ${t}${n}`:`${t}`;let c,l=me(g());return c=e.type===`User`&&!e.isNested?`Saved in ~/.claude/CLAUDE.md`:e.type===`Project`&&!e.isNested&&e.path===o?`${l?`Checked in at`:`Saved in`} ./CLAUDE.md`:e.parent?`@-imported`:e.isNested?`dynamically loaded`:``,{label:s,value:e.path,description:c}}),_=[],v=P(e=>e.agentDefinitions);if(x()){_.push({label:`Open auto-memory folder`,value:`${X}${te()}`,description:``});for(let e of v.activeAgents)if(e.memory){let t=re(e.agentType,e.memory);_.push({label:`Open ${i.bold(e.agentType)} agent memory`,value:`${X}${t}`,description:`${e.memory} scope`})}}h.push(..._);let b=Y&&h.some(e=>e.value===Y)?Y:h[0]?.value||``,[S,C]=(0,q.useState)(x),[w,E]=(0,q.useState)(ae),[D]=(0,q.useState)(x),O=P(e=>Object.values(e.tasks).some(e=>e.type===`dream`&&e.status===`running`)),[k,A]=(0,q.useState)(null);(0,q.useEffect)(()=>{D&&oe().then(A)},[D,O]);let j=O?`running`:k===null?``:k===0?`never`:`last ran ${ne(new Date(k))}`,[M,N]=(0,q.useState)(null),F=M!==null,I=+!!D;function L(){let e=!S;y(`userSettings`,{autoMemoryEnabled:e}),C(e),T(`tengu_auto_memory_toggled`,{enabled:e})}function R(){let e=!w;y(`userSettings`,{autoDreamEnabled:e}),E(e),T(`tengu_auto_dream_toggled`,{enabled:e})}return U(),f(`confirm:no`,t,{context:`Confirmation`}),f(`confirm:yes`,()=>{M===0?L():M===1&&R()},{context:`Confirmation`,isActive:F}),f(`select:next`,()=>{N(e=>e!==null&&e<I?e+1:null)},{context:`Select`,isActive:F}),f(`select:previous`,()=>{N(e=>e!==null&&e>0?e-1:e)},{context:`Select`,isActive:F}),(0,J.jsxs)(p,{flexDirection:`column`,width:`100%`,children:[(0,J.jsxs)(p,{flexDirection:`column`,marginBottom:1,children:[(0,J.jsx)(l,{isFocused:M===0,children:(0,J.jsxs)(c,{children:[`Auto-memory: `,S?`on`:`off`]})}),D&&(0,J.jsx)(l,{isFocused:M===1,styled:!1,children:(0,J.jsxs)(c,{color:M===1?`suggestion`:void 0,children:[`Auto-dream: `,w?`on`:`off`,j&&(0,J.jsxs)(c,{dimColor:!0,children:[` · `,j]}),!O&&w&&(0,J.jsx)(c,{dimColor:!0,children:` · /dream to run`})]})})]}),(0,J.jsx)(ie,{defaultFocusValue:b,options:h,isDisabled:F,onChange:t=>{if(t.startsWith(X)){let e=t.slice(15);K(e,{recursive:!0}).catch(()=>{}).then(()=>le(e));return}Y=t,e(t)},onCancel:t,onUpFromFirstItem:()=>N(I)})]})}var q,J,Y,X,_e=e((()=>{a(),s(),q=t(s(),1),h(),H(),d(),V(),_(),w(),L(),se(),I(),F(),B(),R(),r(),v(),M(),he(),b(),ce(),J=m(),X=`__open_folder__`}));function ve(e){let t=de(),n=D(),r=e.startsWith(t)?`~`+e.slice(t.length):null,i=e.startsWith(n)?`./`+fe(n,e):null;return r&&i?r.length<=i.length?r:i:r||i||e}var ye=e((()=>{s(),d(),E(),m()}));function be({onDone:e}){let t=async t=>{try{t.includes(n())&&await K(n(),{recursive:!0});try{await pe(t,``,{encoding:`utf8`,flag:`wx`})}catch(e){if(S(e)!==`EEXIST`)throw e}await ue(t);let r=`default`,i=``;process.env.VISUAL?(r=`$VISUAL`,i=process.env.VISUAL):process.env.EDITOR&&(r=`$EDITOR`,i=process.env.EDITOR);let a=r===`default`?``:`Using ${r}="${i}".`,o=a?`> ${a} To change editor, set $EDITOR or $VISUAL environment variable.`:`> To use a different editor, set the $EDITOR or $VISUAL environment variable.`;e(`Opened memory file at ${ve(t)}\n\n${o}`,{display:`system`})}catch(t){j(t),e(`Error opening memory file: ${t}`)}},r=()=>{e(`Cancelled memory editing`,{display:`system`})};return(0,Q.jsx)(u,{title:`Memory`,onCancel:r,color:`remember`,children:(0,Q.jsxs)(p,{flexDirection:`column`,children:[(0,Q.jsx)(Z.Suspense,{fallback:null,children:(0,Q.jsx)(ge,{onSelect:t,onCancel:r})}),(0,Q.jsx)(p,{marginTop:1,children:(0,Q.jsxs)(c,{dimColor:!0,children:[`Learn more: `,(0,Q.jsx)(o,{url:`https://code.claude.com/docs/en/memory`})]})})]})})}var Z,Q,$;e((()=>{Z=t(s(),1),d(),_e(),ye(),R(),r(),C(),A(),W(),Q=m(),$=async e=>(N(),await z(),(0,Q.jsx)(be,{onDone:e}))}))();export{$ as call};
@@ -1,2 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,p as i,t as a,tt as o,x as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{t as l}from"./useKeybinding-FsOnjW6T.js";import{t as u}from"./lib-B4Q0Nrpb.js";function d({onDone:e}){let[t,n]=(0,m.useState)(`ios`),[a,c]=(0,m.useState)({ios:``,android:``}),{url:l}=g[t],u=a[t];(0,m.useEffect)(()=>{async function e(){let[e,t]=await Promise.all([(0,p.toString)(g.ios.url,{type:`utf8`,errorCorrectionLevel:`L`}),(0,p.toString)(g.android.url,{type:`utf8`,errorCorrectionLevel:`L`})]);c({ios:e,android:t})}e().catch(()=>{})},[]),o(`confirm:no`,(0,m.useCallback)(()=>{e()},[e]),{context:`Confirmation`});function d(t){if(t.key===`q`||t.ctrl&&t.key===`c`){t.preventDefault(),e();return}(t.key===`tab`||t.key===`left`||t.key===`right`)&&(t.preventDefault(),n(e=>e===`ios`?`android`:`ios`))}let f=u.split(`
2
- `).filter(e=>e.length>0);return(0,h.jsx)(i,{children:(0,h.jsxs)(s,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:d,children:[(0,h.jsx)(r,{children:` `}),(0,h.jsx)(r,{children:` `}),f.map((e,t)=>(0,h.jsx)(r,{children:e},t)),(0,h.jsx)(r,{children:` `}),(0,h.jsx)(r,{children:` `}),(0,h.jsxs)(s,{flexDirection:`row`,gap:2,children:[(0,h.jsxs)(r,{children:[(0,h.jsx)(r,{bold:t===`ios`,underline:t===`ios`,children:`iOS`}),(0,h.jsx)(r,{dimColor:!0,children:` / `}),(0,h.jsx)(r,{bold:t===`android`,underline:t===`android`,children:`Android`})]}),(0,h.jsx)(r,{dimColor:!0,children:`(tab to switch, esc to close)`})]}),(0,h.jsx)(r,{dimColor:!0,children:l})]})})}async function f(e){return(0,h.jsx)(d,{onDone:e})}var p,m,h,g;e((()=>{p=u(),n(),m=t(n(),1),a(),l(),h=c(),g={ios:{url:`https://apps.apple.com/app/claude-by-anthropic/id6473753684`},android:{url:`https://play.google.com/store/apps/details?id=com.anthropic.claude`}}}))();export{f as call};
@@ -1,2 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,t as i,x as a}from"./src-Di342QoJ.js";import{t as o}from"./jsx-runtime-D-D469L8.js";import{Lx as s,Rx as c,gt as l,ht as u,mt as d,pt as f}from"./loadAgentsDir-C9Ee_fs1.js";function p({onDone:e}){let t=u(),n=f(),i=(0,m.useMemo)(()=>t.map(e=>({label:(0,h.jsxs)(r,{children:[e.icon,` `,e.name,` `,(0,h.jsxs)(r,{dimColor:!0,children:[`(`,e.slug,`) — `,e.description]})]}),value:e.slug})),[t]);function o(n){l(n);let r=t.find(e=>e.slug===n);e(`${r?.icon} Mode switched to: ${r?.name} (${r?.slug}) — ${r?.description}`,{display:`system`})}function c(){e(`Mode selection cancelled.`,{display:`system`})}return(0,h.jsxs)(a,{flexDirection:`column`,children:[(0,h.jsxs)(a,{marginBottom:1,flexDirection:`column`,children:[(0,h.jsx)(r,{color:`remember`,bold:!0,children:`Select mode`}),(0,h.jsx)(r,{dimColor:!0,children:`Arrow keys to navigate, Enter to select, Esc to cancel.`})]}),(0,h.jsx)(s,{defaultValue:n,options:i,onChange:o,onCancel:c,visibleOptionCount:t.length})]})}var m,h,g;e((()=>{m=t(n(),1),i(),c(),d(),h=o(),g=async(e,t,n)=>{let r=n?.trim().toLowerCase();if(r){let t=u(),n=t.find(e=>e.slug===r);if(!n){e(`Unknown mode: "${r}"\n\nAvailable modes:\n${t.map(e=>`${e.icon} ${e.slug} — ${e.description}`).join(`
2
- `)}`,{display:`system`});return}l(r),e(`${n.icon} Mode switched to: ${n.name} (${n.slug}) — ${n.description}`,{display:`system`});return}return(0,h.jsx)(p,{onDone:e})}}))();export{g as call};
@@ -1 +0,0 @@
1
- import{Dr as e,Pr as t}from"./paths-C2JRlUsH.js";t();export{e as getMainLoopModel};
@@ -1 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{In as n,Ln as r,Rn as i}from"./src-Di342QoJ.js";import{t as a}from"./jsx-runtime-D-D469L8.js";import{$r as o,Lr as s,Pr as c,Qr as l,Si as u,Vr as d,Xr as f,Zr as p,ui as m,vi as h,wr as g,xi as _,yi as v}from"./paths-C2JRlUsH.js";import{n as y,r as b}from"./analytics-DqMQntaB.js";import{A as x,et as S,j as C}from"./log-CzsijfHZ.js";import{Af as w,HS as T,Qg as E,VS as D,WS as O,Xg as k,Zg as A,jf as j}from"./loadAgentsDir-C9Ee_fs1.js";import{i as M,n as N,r as P,t as F}from"./extraUsage-X6CmSsdg.js";function I({onDone:e}){let t=T(e=>e.mainLoopModel),r=T(e=>e.mainLoopModelForSession),i=T(e=>e.fastMode),a=O();function o(){b(`tengu_model_command_menu`,{action:`cancel`});let r=H(t);e(`Kept model as ${n.bold(r)}`,{display:`system`})}function c(r,o){b(`tengu_model_command_menu`,{action:r,from_model:t,to_model:r}),a(e=>({...e,mainLoopModel:r,mainLoopModelForSession:null}));let c=`Set model to ${n.bold(H(r))}`;o!==void 0&&(c+=` with ${n.bold(o)} effort`);let l;_()&&(m(),!u(r)&&i?(a(e=>({...e,fastMode:!1})),l=!1):u(r)&&v()&&i&&(c+=` · Fast mode ON`,l=!0)),N(r,l===!0,s())&&(c+=` · Billed as extra usage`),l===!1&&(c+=` · Fast mode OFF`),e(c)}return(0,W.jsx)(P,{initial:t,sessionModel:r,onSelect:c,onCancel:o,isStandaloneCommand:!0,showFastModeNotice:_()&&i&&u(t)&&v()})}function L({args:e,onDone:t}){let r=T(e=>e.fastMode),i=O(),a=e===`default`?null:e;return U.useEffect(()=>{async function e(){if(a&&!p(a)){t(`Model '${a}' is not available. Your organization restricts model selection.`,{display:`system`});return}if(a&&z(a)){t(`Opus 4.7 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m`,{display:`system`});return}if(a&&B(a)){t(`Sonnet 4.6 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m`,{display:`system`});return}if(!a){o(null);return}if(R(a)){o(a);return}try{let{valid:e,error:n}=await j(a);e?o(a):t(n||`Model '${a}' not found`,{display:`system`})}catch(e){t(`Failed to validate model: ${e.message}`,{display:`system`})}}function o(e){i(t=>({...t,mainLoopModel:e,mainLoopModelForSession:null}));let a=`Set model to ${n.bold(H(e))}`,o;_()&&(m(),!u(e)&&r?(i(e=>({...e,fastMode:!1})),o=!1):u(e)&&r&&(a+=` · Fast mode ON`,o=!0)),N(e,o===!0,s())&&(a+=` · Billed as extra usage`),o===!1&&(a+=` · Fast mode OFF`),t(a)}e()},[a,t,i]),null}function R(e){return l.includes(e.toLowerCase().trim())}function z(e){let t=e.toLowerCase();return!k()&&!s()&&t.includes(`opus`)&&t.includes(`[1m]`)}function B(e){let t=e.toLowerCase();return!A()&&(t.includes(`sonnet[1m]`)||t.includes(`sonnet-4-6[1m]`))}function V({onDone:e}){let t=T(e=>e.mainLoopModel),r=T(e=>e.mainLoopModelForSession),i=T(e=>e.effortValue),a=H(t),o=i===void 0?``:` (effort: ${i})`;return e(r?`Current model: ${n.bold(H(r))} (session override from plan mode)\nBase model: ${a}${o}`:`Current model: ${a}${o}`),null}function H(e){let t=d(e??g());return e===null?`${t} (default)`:t}var U,W,G;e((()=>{r(),U=t(i(),1),M(),S(),y(),D(),F(),h(),o(),E(),c(),f(),w(),W=a(),G=async(e,t,n)=>{if(n=n?.trim()||``,C.includes(n))return b(`tengu_model_command_inline_help`,{args:n}),(0,W.jsx)(V,{onDone:e});if(x.includes(n)){e(`Run /model to open the model selection menu, or /model [modelName] to set the model.`,{display:`system`});return}return n?(b(`tengu_model_command_inline`,{args:n}),(0,W.jsx)(L,{args:n,onDone:e})):(0,W.jsx)(I,{onDone:e})}}))();export{G as call};
@@ -1 +0,0 @@
1
- import{cn as e,tr as t}from"./state-sIHsFpDu.js";import{Ac as n,Is as r,It as i,Lt as a,Ns as o,Pc as s,Rt as c,Sc as l,Vs as u,on as d}from"./paths-C2JRlUsH.js";import{K as f,V as p}from"./debug-UI3T040K.js";import{o as m,s as h}from"./log-CzsijfHZ.js";import{Ca as g,xa as _}from"./loadAgentsDir-C9Ee_fs1.js";import{d as v,m as y,p as b}from"./rcDebugLog-CIS3PU-H.js";e(),d(),n(),p(),m(),g(),o(),v();function x(e){return t=>({...t,...typeof e.permission_mode==`string`?{toolPermissionContext:{...t.toolPermissionContext,mode:r(e.permission_mode)}}:{},...typeof e.is_ultraplan_mode==`boolean`?{isUltraplanMode:e.is_ultraplan_mode}:{}})}function S({newState:e,oldState:n}){let r=n.toolPermissionContext.mode,o=e.toolPermissionContext.mode;if(r!==o){let t=u(r),i=u(o);t!==i&&y({permission_mode:i,is_ultraplan_mode:i===`plan`&&e.isUltraplanMode&&!n.isUltraplanMode?!0:null}),b(o)}if(e.mainLoopModel!==n.mainLoopModel&&t(e.mainLoopModel),e.expandedView!==n.expandedView){let t=e.expandedView===`tasks`,n=e.expandedView===`teammates`;(l().showExpandedTodos!==t||l().showSpinnerTree!==n)&&s(e=>({...e,showExpandedTodos:t,showSpinnerTree:n}))}if(e.verbose!==n.verbose&&l().verbose!==e.verbose){let t=e.verbose;s(e=>({...e,verbose:t}))}if(process.env.USER_TYPE===`ant`&&e.tungstenPanelVisible!==n.tungstenPanelVisible&&e.tungstenPanelVisible!==void 0&&l().tungstenPanelVisible!==e.tungstenPanelVisible){let t=e.tungstenPanelVisible;s(e=>({...e,tungstenPanelVisible:t}))}if(e.settings!==n.settings)try{i(),a(),c(),e.settings.env!==n.settings.env&&_()}catch(e){h(f(e))}}export{S as n,x as t};
@@ -1,10 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{l as t,s as n,u as r}from"./envUtils-BWeoiL4Y.js";import{ai as i,ci as a,cr as o,dr as s}from"./paths-C2JRlUsH.js";import{d as c,s as l}from"./debug-UI3T040K.js";import{$c as u,BT as ee,C_ as d,Jo as f,RT as p,S_ as m,T_ as h,UE as g,Vo as _,WE as v,Xo as te,b_ as ne,bm as y,el as b,fo as x,gm as S,st as C,tl as w,ut as T,w_ as E,wo as D,x_ as O,zT as k}from"./loadAgentsDir-C9Ee_fs1.js";import{Bn as A,Hn as j,Vn as M,i as N,r as P,t as F}from"./prompt-thBQB2X5.js";import{F as I,I as L,L as R,P as z,R as B,Y as V}from"./rcDebugLog-CIS3PU-H.js";import{n as H,t as U}from"./openaiShared-Dy78YERG.js";import{randomUUID as W}from"crypto";function G(e){return typeof e==`string`?e:Array.isArray(e)?e.map(e=>{if(!e||typeof e!=`object`)return``;let t=e;return typeof t.text==`string`?t.text:``}).filter(Boolean).join(`
2
- `):``}function re(e){if(typeof e==`string`)return e;if(!Array.isArray(e))return G(e);let t=[];for(let n of e){if(!n||typeof n!=`object`)continue;let e=n;if(e.type===`text`&&typeof e.text==`string`)t.push({type:`input_text`,text:e.text});else if(e.type===`image_url`){let n=e.image_url;typeof n?.url==`string`&&t.push({type:`input_image`,image_url:n.url})}}return t.length>0?t:G(e)}function K(e){let t=[],n=[];for(let r of e){if(!r||typeof r!=`object`)continue;let e=r,i=e.role;if(i===`system`||i===`developer`){let t=G(e.content);t&&n.push(t);continue}if(i===`tool`){let n=e.tool_call_id;typeof n==`string`&&t.push({type:`function_call_output`,call_id:n,output:G(e.content)});continue}if(i===`assistant`){let n=G(e.content);n&&t.push({role:`assistant`,content:n});let r=e.tool_calls;if(Array.isArray(r))for(let e of r){if(!e||typeof e!=`object`)continue;let n=e,r=n.function,i=typeof n.id==`string`?n.id:void 0,a=typeof r?.name==`string`?r.name:void 0;!i||!a||t.push({type:`function_call`,call_id:i,name:a,arguments:typeof r?.arguments==`string`?r.arguments:`{}`})}continue}i===`user`&&t.push({role:`user`,content:re(e.content)})}return{input:t,instructions:n.length>0?n.join(`
3
-
4
- `):void 0}}function q(e){let t=[];for(let n of e){if(!n||typeof n!=`object`)continue;let e=n.function,r=typeof e?.name==`string`?e.name:void 0;r&&t.push({type:`function`,name:r,description:typeof e?.description==`string`?e.description:``,parameters:e?.parameters&&typeof e.parameters==`object`?e.parameters:{type:`object`,properties:{}},strict:!1})}return t}function J(e){if(e===`required`)return`required`;if(e===`auto`)return`auto`;if(!e||typeof e!=`object`)return e;let t=e,n=t.function;return t.type===`function`&&typeof n?.name==`string`?{type:`function`,name:n.name}:e}function Y(e){let{input:t,instructions:n}=K(e.messages),r=q(e.tools);return{model:e.model,stream:!0,store:!1,input:t,...n?{instructions:n}:{},...r.length>0?{tools:r}:{},...e.toolChoice?{tool_choice:J(e.toolChoice)}:{},...e.reasoningEffort?{reasoning:{effort:e.reasoningEffort}}:{},parallel_tool_calls:!0}}async function*X(e){if(!e.body)throw Error(`ChatGPT response did not include a body`);let t=e.body.getReader(),n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;r+=n.decode(i,{stream:!0});let a=r.indexOf(`
5
-
6
- `);for(;a>=0;){let e=r.slice(0,a);r=r.slice(a+2);let t=e.split(/\r?\n/).filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(`
7
- `);if(t&&t!==`[DONE]`){let e=JSON.parse(t);e&&typeof e==`object`&&(yield e)}a=r.indexOf(`
8
-
9
- `)}}}function ie(e){let t=e?.usage,n=t?.input_tokens_details;return{input_tokens:typeof t?.input_tokens==`number`?t.input_tokens:0,output_tokens:typeof t?.output_tokens==`number`?t.output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:typeof n?.cached_tokens==`number`?n.cached_tokens:0}}function ae(e){return e?.status===`incomplete`?`max_tokens`:`end_turn`}async function*oe(e,t){let n=`msg_${W().replace(/-/g,``).slice(0,24)}`,r=new Map,i=!1,a=-1,o=!1,s=!1,c=async function*(){i||(i=!0,yield{type:`message_start`,message:{id:n,type:`message`,role:`assistant`,content:[],model:t,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}})};for await(let t of e){for await(let e of c())yield e;let e=t.type;if(e===`response.output_text.delta`){o||(s&&(yield{type:`content_block_stop`,index:a},s=!1),a++,o=!0,yield{type:`content_block_start`,index:a,content_block:{type:`text`,text:``}}),yield{type:`content_block_delta`,index:a,delta:{type:`text_delta`,text:String(t.delta??``)}};continue}if(e===`response.reasoning_text.delta`){s||(o&&(yield{type:`content_block_stop`,index:a},o=!1),a++,s=!0,yield{type:`content_block_start`,index:a,content_block:{type:`thinking`,thinking:``,signature:``}}),yield{type:`content_block_delta`,index:a,delta:{type:`thinking_delta`,thinking:String(t.delta??``)}};continue}if(e===`response.output_item.added`){let e=t.item,n=typeof t.output_index==`number`?t.output_index:-1;if(e?.type===`function_call`&&n>=0){o&&(yield{type:`content_block_stop`,index:a},o=!1),s&&(yield{type:`content_block_stop`,index:a},s=!1),a++;let t=String(e.call_id??e.id??`call_${n}`),i=String(e.name??``);r.set(n,{contentIndex:a,open:!0,name:i,id:t}),yield{type:`content_block_start`,index:a,content_block:{type:`tool_use`,id:t,name:i,input:{}}}}continue}if(e===`response.function_call_arguments.delta`){let e=typeof t.output_index==`number`?t.output_index:-1,n=r.get(e);n&&(yield{type:`content_block_delta`,index:n.contentIndex,delta:{type:`input_json_delta`,partial_json:String(t.delta??``)}});continue}if(e===`response.output_item.done`){let e=typeof t.output_index==`number`?t.output_index:-1,n=r.get(e);n?.open&&(yield{type:`content_block_stop`,index:n.contentIndex},n.open=!1);continue}if(e===`response.error`){let e=t.error;throw Error(String(e?.message??`ChatGPT Responses API error`))}if(e===`response.failed`){let e=t.response?.error;throw Error(String(e?.message??`ChatGPT Responses API failed`))}if(e===`response.completed`||e===`response.incomplete`){o&&(yield{type:`content_block_stop`,index:a},o=!1),s&&(yield{type:`content_block_stop`,index:a},s=!1);let e=t.response;yield{type:`message_delta`,delta:{stop_reason:ae(e),stop_sequence:null},usage:ie(e)},yield{type:`message_stop`}}}}async function se(e){let t=await p(),n=e.fetchOverride??globalThis.fetch,r={Authorization:`Bearer ${t.accessToken}`,"Content-Type":`application/json`,Accept:`text/event-stream`,"OpenAI-Beta":`responses=experimental`,Origin:`https://chatgpt.com`,Referer:`https://chatgpt.com/`,originator:`claude-code-best`};t.accountId&&(r[`ChatGPT-Account-Id`]=t.accountId);let i=await n(`https://chatgpt.com/backend-api/codex/responses`,{method:`POST`,headers:r,body:JSON.stringify(e.request),signal:e.signal});if(!i.ok){let e=await i.text().catch(()=>``);throw Error(`ChatGPT Responses API request failed (${i.status})${e?`: ${e.slice(0,500)}`:``}`)}return X(i)}var ce=e((()=>{k()}));function Z(e){if(t(process.env.OPENAI_ENABLE_THINKING))return!1;if(r(process.env.OPENAI_ENABLE_THINKING))return!0;let n=e.toLowerCase();return n.includes(`deepseek`)||n.includes(`mimo`)}function le(e,t){return t??(process.env.OPENAI_MAX_TOKENS&&parseInt(process.env.OPENAI_MAX_TOKENS,10)||void 0)??(process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS&&parseInt(process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS,10)||void 0)??e}function ue(e){let{model:t,messages:n,tools:r,toolChoice:i,enableThinking:a,maxTokens:o,temperatureOverride:s}=e;return{model:t,messages:n,max_tokens:o,...r.length>0&&{tools:r,...i&&{tool_choice:i}},stream:!0,stream_options:{include_usage:!0},...a&&{thinking:{type:`enabled`},enable_thinking:!0,chat_template_kwargs:{thinking:!0,enable_thinking:!0}},...!a&&s!==void 0&&{temperature:s}}}var de=e((()=>{n()}));function Q(e){if(e===`low`)return`low`;if(e===`medium`)return`medium`;if(e===`high`)return`high`;if(e===`xhigh`||e===`max`)return`xhigh`;if(typeof e==`number`)return`high`}function fe(e){let t=process.env.CLAUDE_CODE_EFFORT_LEVEL?.toLowerCase();if(!(t===`auto`||t===`unset`))return Q(t)??Q(e)??`medium`}function pe(e,t,n,r){if(!r||b())return e;let i=t.filter(e=>n.has(e.name)).map(F).sort().join(`
10
- `);return i?[D({content:`<available-deferred-tools>\n${i}\n</available-deferred-tools>`,isMeta:!0}),...e]:e}function me(e){return e.type===`assistant`||e.type===`user`}function $(e){let{partialMessage:t,contentBlocks:n,tools:r,agentId:i,usage:a,stopReason:o,maxTokens:s}=e,c=[],l=Object.keys(n).sort((e,t)=>Number(e)-Number(t)).map(e=>n[Number(e)]).filter(Boolean);return l.length>0&&t&&c.push({message:{...t,content:f(l,r,i),usage:a,stop_reason:o,stop_sequence:null},requestId:void 0,type:`assistant`,uuid:W(),timestamp:new Date().toISOString()}),o===`max_tokens`&&c.push(x({content:`Output truncated: response exceeded the ${s} token limit. Set OPENAI_MAX_TOKENS or CLAUDE_CODE_MAX_OUTPUT_TOKENS to override.`,apiError:`max_output_tokens`,error:`max_output_tokens`})),c}async function*he(e,t,n,r,a){try{let s=V(a.model),l=te(e,n),u=await w(a.model,n,a.getToolPermissionContext||(async()=>A()),a.agents||[],a.querySource),f=new Set;if(u)for(let e of n)N(e)&&f.add(e.name);let p=n;u&&f.size>0&&(p=n.filter(e=>!!(!f.has(e.name)||j(e,`SearchExtraTools`))));let h=await Promise.all(p.map(e=>T(e,{getToolPermissionContext:a.getToolPermissionContext,tools:n,agents:a.agents,allowedAgentTypes:a.allowedAgentTypes,model:a.model,deferLoading:u&&f.has(e.name)}))),g=h.filter(e=>{let t=e;return t.type!==`advisor_20260301`&&t.type!==`computer_20250124`}),_=Z(s),y=B(pe(l.filter(me),n,f,u),t,{enableThinking:_}),b=R(g),x=L(a.toolChoice),C=fe(a.effortValue);if(u){let e=p.filter(e=>f.has(e.name)).length;c(`[OpenAI] Tool search enabled: ${e}/${f.size} deferred tools included, total tools=${b.length}`)}else c(`[OpenAI] Tool search disabled, total tools=${b.length}`);let{upperLimit:D}=o(s),O=le(D,a.maxOutputTokensOverride);c(`[OpenAI] Calling model=${s}, messages=${y.length}, tools=${b.length}, thinking=${_}`);let k=ee()?oe(await se({request:Y({model:s,messages:y,tools:b,toolChoice:x,reasoningEffort:C}),signal:r,fetchOverride:a.fetchOverride}),s):I(await ne({maxRetries:0,fetchOverride:a.fetchOverride,source:a.querySource}).chat.completions.create(ue({model:s,messages:y,tools:b,toolChoice:x,enableThinking:_,maxTokens:O,temperatureOverride:a.temperatureOverride}),{signal:r}),s),M={},P=[],F=null,z=null,U={input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0},W=0,G=Date.now();for await(let e of k){switch(e.type){case`message_start`:F=e.message,W=Date.now()-G,e.message.usage&&(U={...U,...e.message.usage});break;case`content_block_start`:{let t=e.index,n=e.content_block;n.type===`tool_use`?M[t]={...n,input:``}:n.type===`text`?M[t]={...n,text:``}:n.type===`thinking`?M[t]={...n,thinking:``,signature:``}:M[t]={...n};break}case`content_block_delta`:{let t=e.index,n=e.delta,r=M[t];if(!r)break;n.type===`text_delta`?r.text=(r.text||``)+n.text:n.type===`input_json_delta`?r.input=(r.input||``)+n.partial_json:n.type===`thinking_delta`?r.thinking=(r.thinking||``)+n.thinking:n.type===`signature_delta`&&(r.signature=n.signature);break}case`content_block_stop`:break;case`message_delta`:{let t=e.usage;t&&(U=H(U,t)),e.delta.stop_reason!=null&&(z=e.delta.stop_reason);break}case`message_stop`:if(F){for(let e of $({partialMessage:F,contentBlocks:M,tools:n,agentId:a.agentId,usage:U,stopReason:z,maxTokens:O}))e.type===`assistant`&&P.push(e),yield e;F=null}U.input_tokens+U.output_tokens>0&&S(i(s,U),U,a.model);break}yield{type:`stream_event`,event:e,...e.type===`message_start`?{ttftMs:W}:void 0}}if(v(a.langfuseTrace??null,{model:s,provider:`openai`,input:m(y),output:d(P),usage:{input_tokens:U.input_tokens,output_tokens:U.output_tokens,cache_creation_input_tokens:U.cache_creation_input_tokens,cache_read_input_tokens:U.cache_read_input_tokens},startTime:new Date(G),endTime:new Date,completionStartTime:W>0?new Date(G+W):void 0,tools:E(h),..._&&{thinking:{type:`enabled`}}}),F)for(let e of $({partialMessage:F,contentBlocks:M,tools:n,agentId:a.agentId,usage:U,stopReason:z,maxTokens:O}))yield e}catch(e){let t=e instanceof Error?e.message:String(e);c(`[OpenAI] Error: ${t}`,{level:`error`}),yield x({content:`API Error: ${t}`,apiError:`api_error`,error:e instanceof Error?e:Error(String(e))})}}e((()=>{O(),U(),z(),k(),ce(),_(),C(),M(),l(),y(),a(),de(),g(),h(),s(),u(),P()}))();export{he as queryModelOpenAI};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./axios-DhfaybwJ.js";import{Ac as r,Pc as i,Sc as a,Zt as o,on as s}from"./paths-C2JRlUsH.js";import{l as c,u as l}from"./oauth-CdZEzMww.js";import{d as u,f as d,o as f,s as p}from"./log-CzsijfHZ.js";import{a as m,l as h,o as g}from"./api-BRckHGQ5.js";async function _(){try{let{accessToken:e,orgUUID:n}=await h(),r=`${c().BASE_API_URL}/api/oauth/organizations/${n}/overage_credit_grant`;return(await t.get(r,{headers:m(e)})).data}catch(e){return p(e),null}}function v(){let e=o()?.organizationUuid;if(!e)return null;let t=a().overageCreditGrantCache?.[e];return!t||Date.now()-t.timestamp>S?null:t.info}function y(){let e=o()?.organizationUuid;if(!e)return;let t=a().overageCreditGrantCache;!t||!(e in t)||i(t=>{let n={...t.overageCreditGrantCache};return delete n[e],{...t,overageCreditGrantCache:n}})}async function b(){if(d())return;let e=o()?.organizationUuid;if(!e)return;let t=await _();t&&i(n=>{let r=n.overageCreditGrantCache?.[e],i=r?.info,a=i&&i.available===t.available&&i.eligible===t.eligible&&i.granted===t.granted&&i.amount_minor_units===t.amount_minor_units&&i.currency===t.currency;if(a&&r&&Date.now()-r.timestamp<=S)return n;let o={info:a?i:t,timestamp:Date.now()};return{...n,overageCreditGrantCache:{...n.overageCreditGrantCache,[e]:o}}})}function x(e){if(e.amount_minor_units==null||!e.currency)return null;if(e.currency.toUpperCase()===`USD`){let t=e.amount_minor_units/100;return Number.isInteger(t)?`$${t}`:`$${t.toFixed(2)}`}return null}var S,C=e((()=>{n(),l(),s(),r(),f(),u(),g(),S=3600*1e3}));export{b as a,y as i,v as n,C as r,x as t};
@@ -1 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,f as i,t as a,x as o,xt as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{o as l,r as u}from"./break-cache-ByJ7U2Ts.js";async function d(e,t){let n=await u(e);n.type===`text`&&t(n.value,{display:`system`})}function f({onDone:e}){let[t,n]=(0,m.useState)(0),a=(0,m.useMemo)(()=>[{label:`Status`,description:`Show pending marker, always mode, and break count`,run:()=>void d(`status`,e)},{label:`Once`,description:`Break prompt cache on the next API call only`,run:()=>void d(`once`,e)},{label:`Always`,description:`Break prompt cache on every API call`,run:()=>void d(`always`,e)},{label:`Off`,description:`Disable always mode and clear pending once marker`,run:()=>void d(`off`,e)},{label:`Clear Once`,description:`Cancel the pending one-time cache break`,run:()=>void d(`--clear`,e)}],[e]),c=()=>{let e=a[t];e&&e.run()};return s((e,t)=>{if(t.upArrow){n(e=>Math.max(0,e-1));return}if(t.downArrow){n(e=>Math.min(a.length-1,e+1));return}t.return&&c()}),(0,h.jsx)(i,{title:`Break Cache`,subtitle:`${a.length} actions`,onCancel:()=>e(`Break-cache panel dismissed`,{display:`system`}),color:`background`,hideInputGuide:!0,children:(0,h.jsxs)(o,{flexDirection:`column`,children:[a.map((e,n)=>(0,h.jsxs)(o,{flexDirection:`row`,children:[(0,h.jsx)(r,{children:`${n===t?`›`:` `} ${e.label}`.padEnd(g)}),(0,h.jsx)(r,{dimColor:!0,children:e.description})]},e.label)),(0,h.jsx)(o,{marginTop:1,children:(0,h.jsx)(r,{dimColor:!0,children:`↑/↓ select · Enter run · Esc close`})})]})})}async function p(e,t,n){let r=n?.trim()??``;return r?(await d(r,e),null):(0,h.jsx)(f,{onDone:e})}var m,h,g;e((()=>{m=t(n(),1),a(),l(),h=c(),g=28}))();export{p as call};
@@ -1 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,f as i,t as a,x as o,xt as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{n as l,t as u}from"./tui-geoc3zxu.js";async function d(e,t){let n=await u(e);n.type===`text`&&t(n.value,{display:`system`})}function f({onDone:e}){let[t,n]=(0,m.useState)(0),a=(0,m.useMemo)(()=>[{label:`Status`,description:`Show marker and environment override state`,run:()=>void d(`status`,e)},{label:`Toggle`,description:`Flip persisted TUI mode for the next session`,run:()=>void d(`toggle`,e)},{label:`On`,description:`Enable flicker-free alternate-screen mode`,run:()=>void d(`on`,e)},{label:`Off`,description:`Disable flicker-free alternate-screen mode`,run:()=>void d(`off`,e)}],[e]),c=()=>{let e=a[t];e&&e.run()};return s((e,t)=>{if(t.upArrow){n(e=>Math.max(0,e-1));return}if(t.downArrow){n(e=>Math.min(a.length-1,e+1));return}t.return&&c()}),(0,h.jsx)(i,{title:`TUI Mode`,subtitle:`${a.length} actions`,onCancel:()=>e(`TUI mode panel dismissed`,{display:`system`}),color:`background`,hideInputGuide:!0,children:(0,h.jsxs)(o,{flexDirection:`column`,children:[a.map((e,n)=>(0,h.jsxs)(o,{flexDirection:`row`,children:[(0,h.jsx)(r,{children:`${n===t?`›`:` `} ${e.label}`.padEnd(g)}),(0,h.jsx)(r,{dimColor:!0,children:e.description})]},e.label)),(0,h.jsx)(o,{marginTop:1,children:(0,h.jsx)(r,{dimColor:!0,children:`↑/↓ select · Enter run · Esc close`})})]})})}async function p(e,t,n){let r=n?.trim()??``;return r?(await d(r,e),null):(0,h.jsx)(f,{onDone:e})}var m,h,g;e((()=>{m=t(n(),1),a(),l(),h=c(),g=24}))();export{p as call};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{s as t}from"./debug-UI3T040K.js";var n,r=e((()=>{Promise.resolve(),n=new Set([`if`,`then`,`elif`,`else`,`fi`,`while`,`until`,`for`,`in`,`do`,`done`,`case`,`esac`,`function`,`select`])}));async function i(e){return!e||e.length,null}async function a(e){return!e||e.length,null}function o(e){if(e.type===`declaration_command`){let t=e.children[0];return t&&c.has(t.text)?[t.text]:[]}let t=[],n=!1;for(let r of e.children)if(r.type!==`variable_assignment`){if(r.type===`command_name`||!n&&r.type===`word`){n=!0,t.push(r.text);continue}if(l.has(r.type))t.push(s(r.text));else if(u.has(r.type))break}return t}function s(e){return e.length>=2&&(e[0]===`"`&&e.at(-1)===`"`||e[0]===`'`&&e.at(-1)===`'`)?e.slice(1,-1):e}var c,l,u,d,f=e((()=>{t(),r(),c=new Set([`export`,`declare`,`typeset`,`readonly`,`local`,`unset`,`unsetenv`]),l=new Set([`word`,`string`,`raw_string`,`number`]),u=new Set([`command_substitution`,`process_substitution`]),d=Symbol(`parse-aborted`)}));export{a,i,o as n,n as o,f as r,r as s,d as t};
@@ -1 +0,0 @@
1
- import{i as e,r as t}from"./parser-CmngCwjB.js";t();export{e as parseCommand};
@@ -1 +0,0 @@
1
- import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Q as n,Rn as r,b as i,p as a,t as o,tn as s,tt as c,x as l,xt as u}from"./src-Di342QoJ.js";import{t as d}from"./jsx-runtime-D-D469L8.js";import{Ac as f,Gs as p,Pc as m,Sc as h}from"./paths-C2JRlUsH.js";import{n as g,r as _}from"./analytics-DqMQntaB.js";import{o as v,s as y}from"./log-CzsijfHZ.js";import{b,x}from"./teammate-DMYOtLTK.js";import{t as S}from"./useKeybinding-FsOnjW6T.js";import{i as C,l as w,n as T,o as E,r as D,s as O,u as k}from"./referral-CXmDvb7V.js";function A({onDone:e}){let[t,r]=(0,j.useState)(!0),[o,d]=(0,j.useState)([]),[f,p]=(0,j.useState)(!1),[m,h]=(0,j.useState)(null),[g,v]=(0,j.useState)(void 0),x=k(()=>e(`Guest passes dialog dismissed`,{display:`system`}));if(c(`confirm:no`,(0,j.useCallback)(()=>{e(`Guest passes dialog dismissed`,{display:`system`})},[e]),{context:`Confirmation`}),u((t,n)=>{n.return&&m&&s(m).then(t=>{t&&process.stdout.write(t),_(`tengu_guest_passes_link_copied`,{}),e(`Referral link copied to clipboard!`)})}),(0,j.useEffect)(()=>{async function e(){try{let e=await C();if(!e||!e.eligible){p(!1),r(!1);return}p(!0),e.referral_code_details?.referral_link&&h(e.referral_code_details.referral_link),v(e.referrer_reward);let t=e.referral_code_details?.campaign??`claude_code_guest_pass`,n;try{n=await T(t)}catch(e){y(e),p(!1),r(!1);return}let i=n.redemptions||[],a=n.limit||3,o=[];for(let e=0;e<a;e++){let t=i[e];o.push({passNumber:e+1,isAvailable:!t})}d(o),r(!1)}catch(e){y(e),p(!1),r(!1)}}e()},[]),t)return(0,M.jsx)(a,{children:(0,M.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,M.jsx)(i,{dimColor:!0,children:`Loading guest pass information…`}),(0,M.jsx)(i,{dimColor:!0,italic:!0,children:x.pending?(0,M.jsxs)(M.Fragment,{children:[`Press `,x.keyName,` again to exit`]}):(0,M.jsx)(M.Fragment,{children:`Esc to cancel`})})]})});if(!f)return(0,M.jsx)(a,{children:(0,M.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,M.jsx)(i,{children:`Guest passes are not currently available.`}),(0,M.jsx)(i,{dimColor:!0,italic:!0,children:x.pending?(0,M.jsxs)(M.Fragment,{children:[`Press `,x.keyName,` again to exit`]}):(0,M.jsx)(M.Fragment,{children:`Esc to cancel`})})]})});let S=b(o,e=>e.isAvailable),w=[...o].sort((e,t)=>t.isAvailable-+e.isAvailable),E=e=>e.isAvailable?(0,M.jsxs)(l,{flexDirection:`column`,marginRight:1,children:[(0,M.jsx)(i,{children:`┌──────────┐`}),(0,M.jsxs)(i,{children:[` ) CC `,(0,M.jsx)(i,{color:`claude`,children:`✻`}),` ┊ ( `]}),(0,M.jsx)(i,{children:`└──────────┘`})]},e.passNumber):(0,M.jsxs)(l,{flexDirection:`column`,marginRight:1,children:[(0,M.jsx)(i,{dimColor:!0,children:`┌─────────╱`}),(0,M.jsx)(i,{dimColor:!0,children:` ) CC ✻ ┊╱`}),(0,M.jsx)(i,{dimColor:!0,children:`└───────╱`})]},e.passNumber);return(0,M.jsx)(a,{children:(0,M.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,M.jsxs)(i,{color:`permission`,children:[`Guest passes · `,S,` left`]}),(0,M.jsx)(l,{flexDirection:`row`,marginLeft:2,children:w.slice(0,3).map(e=>E(e))}),m&&(0,M.jsx)(l,{marginLeft:2,children:(0,M.jsx)(i,{children:m})}),(0,M.jsx)(l,{flexDirection:`column`,marginLeft:2,children:(0,M.jsxs)(i,{dimColor:!0,children:[g?`Share a free week of Claude Code with friends. If they love it and subscribe, you'll get ${D(g)} of extra usage to keep building. `:`Share a free week of Claude Code with friends. `,(0,M.jsx)(n,{url:g?`https://support.claude.com/en/articles/13456702-claude-code-guest-passes`:`https://support.claude.com/en/articles/12875061-claude-code-guest-passes`,children:`Terms apply.`})]})}),(0,M.jsx)(l,{children:(0,M.jsx)(i,{dimColor:!0,italic:!0,children:x.pending?(0,M.jsxs)(M.Fragment,{children:[`Press `,x.keyName,` again to exit`]}):(0,M.jsx)(M.Fragment,{children:`Enter to copy link · Esc to cancel`})})})]})})}var j,M,N=e((()=>{r(),j=t(r(),1),p(),w(),o(),S(),g(),O(),x(),v(),M=d()}));async function P(e){let t=!h().hasVisitedPasses;if(t){let e=E();m(t=>({...t,hasVisitedPasses:!0,passesLastSeenRemaining:e??t.passesLastSeenRemaining}))}return _(`tengu_guest_passes_visited`,{is_first_visit:t}),(0,F.jsx)(A,{onDone:e})}var F;e((()=>{r(),N(),g(),O(),f(),F=d()}))();export{P as call};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{h as t,p as n}from"./debug-UI3T040K.js";import{n as r,t as i}from"./cwd--iizewsn.js";import{i as a,o}from"./platform-CuyedWpe.js";import{n as s,r as c}from"./windowsPaths-swxCp7bX.js";import{l}from"./sessionStoragePortable-DJZ_6cL8.js";import{homedir as u}from"os";import{dirname as d,isAbsolute as f,join as p,normalize as m,posix as h,relative as g,resolve as _}from"path";function v(e,t){let r=t??i()??n().cwd();if(typeof e!=`string`)throw TypeError(`Path must be a string, received ${typeof e}`);if(typeof r!=`string`)throw TypeError(`Base directory must be a string, received ${typeof r}`);if(e.includes(`\0`)||r.includes(`\0`))throw Error(`Path contains null bytes`);let o=e=>e.includes(`/`)&&!e.includes(`\\`)&&!/^[A-Za-z]:/.test(e),s=e.trim();if(!s)return a()===`windows`&&o(r)?h.normalize(r).normalize(`NFC`):m(r).normalize(`NFC`);if(s===`~`)return u().normalize(`NFC`);if(s.startsWith(`~/`))return p(u(),s.slice(2)).normalize(`NFC`);let l=s;if(a()===`windows`&&s.match(/^\/[a-z]\//i))try{l=c(s)}catch{l=s}return f(l)?a()===`windows`&&o(l)?h.normalize(l).normalize(`NFC`):m(l).normalize(`NFC`):a()===`windows`&&o(r)&&!/^[A-Za-z]:/.test(l)&&!l.startsWith(`\\\\`)?h.resolve(r,l).normalize(`NFC`):_(r,l).normalize(`NFC`)}function y(e){let t=g(i(),e);return t.startsWith(`..`)?e:t}function b(e){let t=v(e);if(t.startsWith(`\\\\`)||t.startsWith(`//`))return d(t);try{if(n().statSync(t).isDirectory())return t}catch{}return d(t)}function x(e){return/(?:^|[\\/])\.\.(?:[\\/]|$)/.test(e)}function S(e){return m(e).replace(/\\/g,`/`)}var C=e((()=>{r(),t(),o(),s(),l()}));export{S as a,C as i,v as n,y as o,b as r,x as t};