claude-code-best 2.7.0 → 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 (886) 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/config-CJd9kJ57.js +1 -0
  118. package/dist/chunks/config-CQd4IkXo.js +1 -0
  119. package/dist/chunks/context-noninteractive-DCYvLxWx.js +1 -0
  120. package/dist/chunks/context-noninteractive-DZsSp-ES.js +54 -0
  121. package/dist/chunks/context-qAHTuazZ.js +1 -0
  122. package/dist/chunks/conversation-DYUVAAQt.js +1 -0
  123. package/dist/chunks/conversation-NrAy2em3.js +1 -0
  124. package/dist/chunks/copy-B2jhZndZ.js +7 -0
  125. package/dist/chunks/createSSHSession-CKdoEmAg.js +6 -0
  126. package/dist/chunks/createSession-Czx7_nf6.js +1 -0
  127. package/dist/chunks/createSession-WkBw7wdn.js +1 -0
  128. package/dist/chunks/cronJitterConfig-2u6WAlti.js +6 -0
  129. package/dist/chunks/crossProjectResume-CjJISRBQ.js +40 -0
  130. package/dist/chunks/daemon-BRKR4D1D.js +2 -0
  131. package/dist/chunks/datadog-QSR9B7CZ.js +1 -0
  132. package/dist/chunks/datadog-YsyhnDmr.js +1 -0
  133. package/dist/chunks/desktop-BN9pHpK_.js +1 -0
  134. package/dist/chunks/detached-C_2ZXr7X.js +5 -0
  135. package/dist/chunks/detectRepository-2ICvGD0U.js +1 -0
  136. package/dist/chunks/detectRepository-BLwSmun2.js +1 -0
  137. package/dist/chunks/detection-0mMj--Bt.js +1 -0
  138. package/dist/chunks/detection-95TCHkW8.js +1 -0
  139. package/dist/chunks/diff-BTtUFuf-.js +1 -0
  140. package/dist/chunks/directoryCompletion-DqtWZsoW.js +1 -0
  141. package/dist/chunks/doctor-BKBb426q.js +1 -0
  142. package/dist/chunks/earlyInput-CFYRGxau.js +2 -0
  143. package/dist/chunks/earlyInput-D3OhUZ4G.js +1 -0
  144. package/dist/chunks/effort-ClhxMqY6.js +9 -0
  145. package/dist/chunks/entry-CJlJ47nP.js +14 -0
  146. package/dist/chunks/env-C2A9gV_G.js +1 -0
  147. package/dist/chunks/envLessBridgeConfig-C9UUbQCo.js +1 -0
  148. package/dist/chunks/envLessBridgeConfig-DSJqg3Ox.js +1 -0
  149. package/dist/chunks/execFileNoThrow-azCkYhmF.js +1 -0
  150. package/dist/chunks/executor-BVh1PTF-.js +1561 -0
  151. package/dist/chunks/executor-CvTuHx-k.js +1 -0
  152. package/dist/chunks/exit-DxY3yJrp.js +1 -0
  153. package/dist/chunks/export-DS2esu8D.js +2 -0
  154. package/dist/chunks/exportRenderer-DX2L5fQ7.js +1 -0
  155. package/dist/chunks/extra-usage-DaxUQk9I.js +1 -0
  156. package/dist/chunks/extra-usage-XJxfHsbe.js +1 -0
  157. package/dist/chunks/extra-usage-core-D84ifgBo.js +1 -0
  158. package/dist/chunks/extra-usage-noninteractive-fxqxHnIt.js +1 -0
  159. package/dist/chunks/extraUsage-P_NGI1-I.js +1 -0
  160. package/dist/chunks/extractMemories-B3cTWsph.js +1 -0
  161. package/dist/chunks/fast-CHiQGMBE.js +1 -0
  162. package/dist/chunks/fast-CpN8lLnE.js +1 -0
  163. package/dist/chunks/featureCheck-CUJ2rPM6.js +1 -0
  164. package/dist/chunks/feedback-CqRsOG3c.js +1 -0
  165. package/dist/chunks/fileStateCache-BhVfo23e.js +1 -0
  166. package/dist/chunks/files-Bdr_PQyV.js +2 -0
  167. package/dist/chunks/findExecutable-BHQl4NaS.js +1 -0
  168. package/dist/chunks/firstPartyEventLogger-CM0V7Uev.js +1 -0
  169. package/dist/chunks/flushGate-DNutWuOE.js +1 -0
  170. package/dist/chunks/gates-C4JvRq4i.js +1 -0
  171. package/dist/chunks/gates-DvjyKZVA.js +1 -0
  172. package/dist/chunks/gemini-B0M6SQSG.js +1 -0
  173. package/dist/chunks/generateRecap-DhDOgXn3.js +1 -0
  174. package/dist/chunks/generateSessionName-CoFR2wgK.js +1 -0
  175. package/dist/chunks/genericProcessUtils-tJxf3yqB.js +23 -0
  176. package/dist/chunks/git-C0IuvuIy.js +6 -0
  177. package/dist/chunks/git-hSvFiuiG.js +1 -0
  178. package/dist/chunks/githubRepoPathMapping-DGiSNykv.js +1 -0
  179. package/dist/chunks/goal-DRb6pPAp.js +3 -0
  180. package/dist/chunks/grok-emDua_hT.js +1 -0
  181. package/dist/chunks/growthbook-COAneL48.js +1 -0
  182. package/dist/chunks/heapdump-CA6DHA8G.js +5 -0
  183. package/dist/chunks/help-XXY7deZm.js +1 -0
  184. package/dist/chunks/hooks-C6zZYnDi.js +79 -0
  185. package/dist/chunks/hooks-DOej0jqp.js +1 -0
  186. package/dist/chunks/hostAdapter-DZbdeXCV.js +1 -0
  187. package/dist/chunks/hostGuard-DSOEyH-P.js +1 -0
  188. package/dist/chunks/ide-BLRNkzVx.js +2 -0
  189. package/dist/chunks/inboundAttachments-60kD5Qt_.js +1 -0
  190. package/dist/chunks/inboundAttachments-BBYxcnvj.js +1 -0
  191. package/dist/chunks/initReplBridge-Dt2aQBia.js +1 -0
  192. package/dist/chunks/insights-BBugI3tW.js +822 -0
  193. package/dist/chunks/install-CuVHbwyW.js +1 -0
  194. package/dist/chunks/install-github-app-ByyzrlM9.js +147 -0
  195. package/dist/chunks/install-slack-app-CJGtmacz.js +1 -0
  196. package/dist/chunks/instrumentation-C8zvzMg1.js +12 -0
  197. package/dist/chunks/job-DBf6aPQX.js +2 -0
  198. package/dist/chunks/jwtUtils-BQXXBwqW.js +1 -0
  199. package/dist/chunks/keybindings-Bi7SMp5-.js +2 -0
  200. package/dist/chunks/lang-CVDkUhjk.js +1 -0
  201. package/dist/chunks/language-BYeqMX74.js +1 -0
  202. package/dist/chunks/language-BoKr5ylY.js +1 -0
  203. package/dist/chunks/launchAgentsPlatform-BKqxMFFn.js +1 -0
  204. package/dist/chunks/launchAutofixPr-CauX6gOB.js +18 -0
  205. package/dist/chunks/launchLocalMemory-Brrd_BJC.js +3 -0
  206. package/dist/chunks/launchLocalVault-DtAn656A.js +3 -0
  207. package/dist/chunks/launchMemoryStores-x7_Id7Yr.js +1 -0
  208. package/dist/chunks/launchOnboarding-DkamFByn.js +8 -0
  209. package/dist/chunks/launchSchedule-DjNQNxW4.js +1 -0
  210. package/dist/chunks/launchSkillStore-D2GUGhDD.js +1 -0
  211. package/dist/chunks/launchTeleport-DTfhiZkf.js +3 -0
  212. package/dist/chunks/launchVault-BZ2Po4r8.js +1 -0
  213. package/dist/chunks/loadAgentsDir-C_wFhytF.js +4697 -0
  214. package/dist/chunks/loadAgentsDir-whRB0phu.js +1 -0
  215. package/dist/chunks/loadPluginHooks-CYZjzxyO.js +1 -0
  216. package/dist/chunks/localSearch-B0p0_bjP.js +1 -0
  217. package/dist/chunks/localSearch-DAwFmV2Y.js +1 -0
  218. package/dist/chunks/log-DSV4Ht5l.js +1 -0
  219. package/dist/chunks/login-C1uE6Pg9.js +1 -0
  220. package/dist/chunks/login-DOyB64Rv.js +1 -0
  221. package/dist/chunks/logoV2Utils-BJHvwGup.js +1 -0
  222. package/dist/chunks/logout-DTPo3Myl.js +1 -0
  223. package/dist/chunks/magicDocs-DPZzG7Z2.js +57 -0
  224. package/dist/chunks/main-CNwSLti2.js +1312 -0
  225. package/dist/chunks/main-CfkIGrBF.js +31 -0
  226. package/dist/chunks/mappers-Dxs_kNJH.js +1 -0
  227. package/dist/chunks/mcp-CVnFM6nR.js +6 -0
  228. package/dist/chunks/mcp-CbDDqdzF.js +2 -0
  229. package/dist/chunks/mcp-CzfQB8BT.js +1 -0
  230. package/dist/chunks/mcpServer-BJNjQXsU.js +1 -0
  231. package/dist/chunks/mcpServer-Py4Iz9Hx.js +1 -0
  232. package/dist/chunks/memoize-DJ1XCN-z.js +1 -0
  233. package/dist/chunks/memory-BdUqEKio.js +1 -0
  234. package/dist/chunks/mobile-BMglW1NB.js +2 -0
  235. package/dist/chunks/mode-CqGusjoT.js +2 -0
  236. package/dist/chunks/model-BBULcn7y.js +1 -0
  237. package/dist/chunks/model-BOc_-7m0.js +1 -0
  238. package/dist/chunks/onChangeAppState-BkRihYau.js +1 -0
  239. package/dist/chunks/openai-yNI_zoao.js +10 -0
  240. package/dist/chunks/overageCreditGrant-Cbh0_fbM.js +1 -0
  241. package/dist/chunks/panel-BYfvo_mR.js +1 -0
  242. package/dist/chunks/panel-D3wvAEFE.js +1 -0
  243. package/dist/chunks/panelCall-t10Sud9A.js +1 -0
  244. package/dist/chunks/parser-DGXE1uWd.js +1 -0
  245. package/dist/chunks/passes-D_iS6DaC.js +1 -0
  246. package/dist/chunks/path-BE28AJwZ.js +1 -0
  247. package/dist/chunks/paths-Ci1iwL5Y.js +36 -0
  248. package/dist/chunks/permissions-BE-1pIly.js +1 -0
  249. package/dist/chunks/permissions-CHvu4-yX.js +3 -0
  250. package/dist/chunks/pipeTransport-EAYXsubu.js +1 -0
  251. package/dist/chunks/plan-CP5nq_EB.js +1 -0
  252. package/dist/chunks/platform-mh9ypxS8.js +2 -0
  253. package/dist/chunks/plugin-8apy_RBT.js +1 -0
  254. package/dist/chunks/pluginAutoupdate-ClrgF5b3.js +1 -0
  255. package/dist/chunks/pluginBlocklist-B1LVo0j_.js +1 -0
  256. package/dist/chunks/pluginCliCommands-eqyMBWcP.js +1 -0
  257. package/dist/chunks/pluginFlagging-BiTDVP10.js +1 -0
  258. package/dist/chunks/pluginOperations-gZ-iCmhu.js +2 -0
  259. package/dist/chunks/pluginStartupCheck-DCDWHam6.js +1 -0
  260. package/dist/chunks/pluginStartupCheck-EjLvCXru.js +1 -0
  261. package/dist/chunks/plugins-BAIVqfi8.js +4 -0
  262. package/dist/chunks/policyLimits-Cdp3QwZ1.js +1 -0
  263. package/dist/chunks/pollConfig-_2W7bHoW.js +1 -0
  264. package/dist/chunks/poller-BA1jhG3F.js +1 -0
  265. package/dist/chunks/poor-Dii0mpOW.js +1 -0
  266. package/dist/chunks/poorMode-DzEL0cu0.js +1 -0
  267. package/dist/chunks/poorMode-aDmmvJ_e.js +1 -0
  268. package/dist/chunks/print-BwSmcUQu.js +39 -0
  269. package/dist/chunks/privacy-settings-DaAgSLKw.js +1 -0
  270. package/dist/chunks/processBashCommand-BZ1_JKu4.js +1 -0
  271. package/dist/chunks/processSlashCommand-v1Rvzxwn.js +6 -0
  272. package/dist/chunks/projectContext-Cd7V9pES.js +1 -0
  273. package/dist/chunks/prompt-6ZKyqv6z.js +227 -0
  274. package/dist/chunks/prompt-DPqKtC0b.js +1 -0
  275. package/dist/chunks/prompt-WjMHPk90.js +1 -0
  276. package/dist/chunks/promptEditor-Dz41P-3I.js +4 -0
  277. package/dist/chunks/protocolHandler-CHGHjfdf.js +13 -0
  278. package/dist/chunks/rate-limit-options-BlU9av7g.js +1 -0
  279. package/dist/chunks/rcDebugLog-C42A0pX1.js +11 -0
  280. package/dist/chunks/referral-IIcY3jkp.js +1 -0
  281. package/dist/chunks/refresh-DTGEx7X_.js +1 -0
  282. package/dist/chunks/registerProtocol-BkNncGMI.js +36 -0
  283. package/dist/chunks/registry-CBqb7wbi.js +1 -0
  284. package/dist/chunks/release-notes-BxzOD-zP.js +4 -0
  285. package/dist/chunks/releaseNotes-C8KQGZHq.js +2 -0
  286. package/dist/chunks/reload-plugins-gYyC6_g8.js +1 -0
  287. package/dist/chunks/remote-env-CEJH5aJh.js +1 -0
  288. package/dist/chunks/remoteBridgeCore-Dte7ZUAN.js +1 -0
  289. package/dist/chunks/remoteControlServer-GN-eDbEz.js +3 -0
  290. package/dist/chunks/rename-BEU6BNRp.js +1 -0
  291. package/dist/chunks/renderOptions-Caca3bCd.js +1 -0
  292. package/dist/chunks/resume-D36S2rXg.js +2 -0
  293. package/dist/chunks/ripgrep-Bzwdi5-K.js +5 -0
  294. package/dist/chunks/ripgrep-DEa1djpJ.js +1 -0
  295. package/dist/chunks/runtimeObserver-CDMCeww2.js +1 -0
  296. package/dist/chunks/runtimeObserver-DaKaKNVW.js +10 -0
  297. package/dist/chunks/sandbox-adapter-DqTuhgud.js +1 -0
  298. package/dist/chunks/sandbox-toggle-BPO26t48.js +1 -0
  299. package/dist/chunks/searchExtraTools-Brae4wmG.js +1 -0
  300. package/dist/chunks/sentry-9EbPa1Xu.js +13 -0
  301. package/dist/chunks/session-D18B22u4.js +2 -0
  302. package/dist/chunks/sessionDiscovery-B-OTvXJf.js +1 -0
  303. package/dist/chunks/sessionFileAccessHooks-BXsK8Dwf.js +1 -0
  304. package/dist/chunks/sessionMemory-Bv-AYifm.js +1 -0
  305. package/dist/chunks/sessionMemory-Ctauybzs.js +1 -0
  306. package/dist/chunks/sessionMemoryUtils-D-bzdsAT.js +1 -0
  307. package/dist/chunks/sessionObserver-ardnTJ37.js +20 -0
  308. package/dist/chunks/sessionObserver-j8D9hidw.js +1 -0
  309. package/dist/chunks/sessionStorage-Cw5ibYWA.js +1 -0
  310. package/dist/chunks/sessionStoragePortable-CJUZrbIq.js +3 -0
  311. package/dist/chunks/sessionTitle-DEKvIVCK.js +14 -0
  312. package/dist/chunks/sessionTracing-CJUUEWZ4.js +11 -0
  313. package/dist/chunks/settingsSync-BWt3oUR7.js +1 -0
  314. package/dist/chunks/setup-BECFDOT9.js +9 -0
  315. package/dist/chunks/setup-CDxkPTCq.js +2 -0
  316. package/dist/chunks/setup-CmCTB2T_.js +1 -0
  317. package/dist/chunks/shadowedRuleDetection-BbALfdxE.js +1 -0
  318. package/dist/chunks/shellQuote-CBjhlaFO.js +1 -0
  319. package/dist/chunks/sideQuestion-BHK6dd1q.js +20 -0
  320. package/dist/chunks/sink-DFWgcGHX.js +1 -0
  321. package/dist/chunks/sink-Do5fWbUC.js +1 -0
  322. package/dist/chunks/sinks-BnkxTOU9.js +1 -0
  323. package/dist/chunks/sinks-Dc9V7k6a.js +2 -0
  324. package/dist/chunks/skill-learning-BHW9G3Dn.js +5 -0
  325. package/dist/chunks/skillChangeDetector-DwAvG835.js +1 -0
  326. package/dist/chunks/skillGapStore-DVMbI2yy.js +1 -0
  327. package/dist/chunks/skillGapStore-Wa7s6orv.js +5 -0
  328. package/dist/chunks/skillGenerator-CBuoIFsH.js +8 -0
  329. package/dist/chunks/skillLearning-BI2YDG3K.js +1 -0
  330. package/dist/chunks/skillLearning-BZMJRJPp.js +1 -0
  331. package/dist/chunks/skillPanel-2w82nkOl.js +28 -0
  332. package/dist/chunks/skillSearchPanel-7BhCBkdh.js +21 -0
  333. package/dist/chunks/skills-D5rMEo2w.js +1 -0
  334. package/dist/chunks/sprites-uNWgVZT6.js +1 -0
  335. package/dist/chunks/src-BGzuPZ5q.js +26 -0
  336. package/dist/chunks/src-kgpr3s-l.js +1 -0
  337. package/dist/chunks/startupProfiler-CAntGAbs.js +3 -0
  338. package/dist/chunks/startupProfiler-WtUzkMKV.js +1 -0
  339. package/dist/chunks/stats-D0CJB2HV.js +1 -0
  340. package/dist/chunks/status-nte1Arzy.js +1 -0
  341. package/dist/chunks/statusNoticeHelpers-Lqf99003.js +1 -0
  342. package/dist/chunks/stdio-Cg20AQ5W.js +1 -0
  343. package/dist/chunks/stickers-DDAm--86.js +1 -0
  344. package/dist/chunks/stringUtils-KZoO4GUd.js +4 -0
  345. package/dist/chunks/subprocessEnv-D4Cbyl2J.js +1 -0
  346. package/dist/chunks/systemPromptSections-CVpefuSD.js +1 -0
  347. package/dist/chunks/tag-BnvWS9HE.js +11 -0
  348. package/dist/chunks/tasks-CEs-pxkC.js +1 -0
  349. package/dist/chunks/teamHelpers-D4vCj2hP.js +1 -0
  350. package/dist/chunks/teamHelpers-D8R_gGLb.js +1 -0
  351. package/dist/chunks/teammateModeSnapshot-BDJ1JTcl.js +1 -0
  352. package/dist/chunks/teammateModeSnapshot-Bdra3VIJ.js +1 -0
  353. package/dist/chunks/teleport-RxTr4aCi.js +1 -0
  354. package/dist/chunks/templateJobs-BDKGtmr3.js +12 -0
  355. package/dist/chunks/terminalSetup-Bbvq-9Xl.js +1 -0
  356. package/dist/chunks/terminalSetup-C1X-sXwp.js +33 -0
  357. package/dist/chunks/theme-DXv6bV7f.js +1 -0
  358. package/dist/chunks/thinkback-CMsW7mvG.js +1 -0
  359. package/dist/chunks/thinkback-DRJBz3Is.js +1 -0
  360. package/dist/chunks/thinkback-play-CFdkpzlj.js +1 -0
  361. package/dist/chunks/tmux-DelKEjda.js +1 -0
  362. package/dist/chunks/toolEventObserver-CF7T7FBH.js +1 -0
  363. package/dist/chunks/toolEventObserver-DDJV8cvW.js +1 -0
  364. package/dist/chunks/toolPool-0zCdXfEu.js +1 -0
  365. package/dist/chunks/toolPool-BJv0sBnR.js +1 -0
  366. package/dist/chunks/trustedDevice-C5s2au0k.js +1 -0
  367. package/dist/chunks/trustedDevice-C9nJhhyZ.js +1 -0
  368. package/dist/chunks/tui-DoOiz2RW.js +6 -0
  369. package/dist/chunks/types-BCy5hsQR.js +1 -0
  370. package/dist/chunks/types-KeqFPzY5.js +17 -0
  371. package/dist/chunks/udsClient-CBF_cZFW.js +1 -0
  372. package/dist/chunks/ultrareviewCommand-BEv1_AS1.js +3 -0
  373. package/dist/chunks/undercover-DPVt2WN7.js +31 -0
  374. package/dist/chunks/undercover-DYa00dVv.js +1 -0
  375. package/dist/chunks/up-DaiW-V1N.js +12 -0
  376. package/dist/chunks/updateCCB-D-4naIUu.js +11 -0
  377. package/dist/chunks/upgrade-BHj8ALep.js +1 -0
  378. package/dist/chunks/upgrade-CSld83v7.js +1 -0
  379. package/dist/chunks/upload-DVlE8SRp.js +1 -0
  380. package/dist/chunks/upstreamproxy-CLf1UaJv.js +11 -0
  381. package/dist/chunks/usage-B_bY46ep.js +1 -0
  382. package/dist/chunks/usage-D4Ubnttz.js +1 -0
  383. package/dist/chunks/useExitOnCtrlCDWithKeybindings-BHi41Ku_.js +1 -0
  384. package/dist/chunks/useMainLoopModel-D3tJJC3y.js +1 -0
  385. package/dist/chunks/useManagePlugins-B4kcqcyY.js +1 -0
  386. package/dist/chunks/useMergedTools-CTQl4cdV.js +1 -0
  387. package/dist/chunks/useSearchInput-JPayBRPC.js +1 -0
  388. package/dist/chunks/useSettingsErrors-YTgPxnRZ.js +1 -0
  389. package/dist/chunks/useTerminalSize-Du-EamDN.js +1 -0
  390. package/dist/chunks/useVoice-CaBv3G13.js +1 -0
  391. package/dist/chunks/util-Q70qdjeS.js +1 -0
  392. package/dist/chunks/utils-Cr-x1Oyd.js +1 -0
  393. package/dist/chunks/validatePlugin-6lg9B564.js +1 -0
  394. package/dist/chunks/vim-zOsQBIp4.js +1 -0
  395. package/dist/chunks/voice-DBQevAhk.js +2 -0
  396. package/dist/chunks/voice-YtzCcIoM.js +8 -0
  397. package/dist/chunks/voiceModeEnabled-CjBjjeNR.js +1 -0
  398. package/dist/chunks/voiceModeEnabled-DK6u8Aaj.js +1 -0
  399. package/dist/chunks/voiceStreamSTT-B8CTbb_6.js +1 -0
  400. package/dist/chunks/voiceStreamSTT-CCkOfmdI.js +1 -0
  401. package/dist/chunks/web-tools-CGqBqo07.js +1 -0
  402. package/dist/chunks/windowsPaths-BeDSnJ23.js +2 -0
  403. package/dist/chunks/windowsPaths-ttHiMKpR.js +1 -0
  404. package/dist/chunks/workerRegistry-Bx6FvTZF.js +1 -0
  405. package/dist/chunks/worktree-DPpgPLLG.js +1 -0
  406. package/dist/chunks/worktreeModeEnabled-RtizNgNg.js +1 -0
  407. package/dist/chunks/xml-CVF7dWfi.js +1 -0
  408. package/dist/cli.js +1 -1
  409. package/package.json +1 -1
  410. package/dist/chunks/AddWorkspaceDirectory-BqR8LhJq.js +0 -1
  411. package/dist/chunks/App-DkBMWXkK.js +0 -1
  412. package/dist/chunks/ApproveApiKey-5xd0lUV7.js +0 -1
  413. package/dist/chunks/ApproveApiKey-Dmr2VaVA.js +0 -1
  414. package/dist/chunks/AssistantSessionChooser-C7rigDkQ.js +0 -1
  415. package/dist/chunks/BackgroundTasksDialog-RtEwbumC.js +0 -2
  416. package/dist/chunks/BypassPermissionsModeDialog-7s3ULbNF.js +0 -1
  417. package/dist/chunks/ClaudeInChromeOnboarding-Bjv-sERa.js +0 -1
  418. package/dist/chunks/ClaudeMdExternalIncludesDialog-BTysDIlI.js +0 -1
  419. package/dist/chunks/ClaudeMdExternalIncludesDialog-DosNL91g.js +0 -1
  420. package/dist/chunks/ConsoleOAuthFlow-Cc1yaM-M.js +0 -1
  421. package/dist/chunks/DesktopHandoff-Cy89ZB_9.js +0 -1
  422. package/dist/chunks/DevChannelsDialog-ws8prcNK.js +0 -1
  423. package/dist/chunks/DiffDialog-BhqgxA7o.js +0 -3
  424. package/dist/chunks/Doctor-BWouB_9X.js +0 -1
  425. package/dist/chunks/Doctor-Ts5k8hn1.js +0 -3
  426. package/dist/chunks/ExitFlow-BBoImtT_.js +0 -2
  427. package/dist/chunks/Feedback-BVbSMBwY.js +0 -2
  428. package/dist/chunks/Grove-CTQrX7WO.js +0 -1
  429. package/dist/chunks/Grove-ZMHK4CBZ.js +0 -11
  430. package/dist/chunks/HybridTransport-B9g074Y1.js +0 -4
  431. package/dist/chunks/ITermBackend-DaFK8DOH.js +0 -1
  432. package/dist/chunks/InvalidConfigDialog-BkZkVKB4.js +0 -1
  433. package/dist/chunks/InvalidSettingsDialog-Lr60eQWj.js +0 -1
  434. package/dist/chunks/MCPConnectionManager-DmJ6dLOp.js +0 -1
  435. package/dist/chunks/McpParsingWarnings-CE2pQPXV.js +0 -1
  436. package/dist/chunks/MessageSelector-BT1FDbwv.js +0 -3
  437. package/dist/chunks/Messages-DT2gDtrJ.js +0 -11
  438. package/dist/chunks/Onboarding-DsqnXQel.js +0 -1
  439. package/dist/chunks/OverageCreditUpsell-UWtCrOmN.js +0 -1
  440. package/dist/chunks/PluginSettings-OJQz3d5V.js +0 -17
  441. package/dist/chunks/PromptInputFooterSuggestions-BImBB6Yk.js +0 -1
  442. package/dist/chunks/PromptInputHelpMenu-CblAb9vk.js +0 -1
  443. package/dist/chunks/QueryEngine-_re1pGHr.js +0 -1
  444. package/dist/chunks/REPL-eBTeslsR.js +0 -147
  445. package/dist/chunks/REPL-wIg0cBqS.js +0 -1
  446. package/dist/chunks/RemoteCallout-DMQai8_P.js +0 -1
  447. package/dist/chunks/RemoteSessionManager-DQmsHvj_.js +0 -2
  448. package/dist/chunks/ResumeConversation-D81hDeTl.js +0 -1
  449. package/dist/chunks/SSETransport-BbeM6bi9.js +0 -4
  450. package/dist/chunks/SearchExtraToolsTool-QbJQCWXd.js +0 -1
  451. package/dist/chunks/SentryErrorBoundary-BQJXHbWh.js +0 -2
  452. package/dist/chunks/SentryErrorBoundary-Cnw74oVG.js +0 -1
  453. package/dist/chunks/Settings-DiXc-_IG.js +0 -2
  454. package/dist/chunks/TeleportProgress-B3oRJlWH.js +0 -1
  455. package/dist/chunks/TeleportRepoMismatchDialog-GPuEipFy.js +0 -1
  456. package/dist/chunks/TeleportResumeWrapper-CcDuR6o9.js +0 -1
  457. package/dist/chunks/ThemePicker-BjSRjA_L.js +0 -1
  458. package/dist/chunks/TmuxBackend-BE3zsPKE.js +0 -9
  459. package/dist/chunks/TrustDialog-B6Qg0xUr.js +0 -1
  460. package/dist/chunks/TungstenTool-C5IqKVr0.js +0 -1
  461. package/dist/chunks/ValidationErrorsList-C5BoLiye.js +0 -2
  462. package/dist/chunks/WelcomeV2-BJAKZYz1.js +0 -1
  463. package/dist/chunks/WindowsTerminalBackend-BcwpxU2Q.js +0 -2
  464. package/dist/chunks/add-dir-OR7-VVcq.js +0 -1
  465. package/dist/chunks/agentDisplay-CMqTUh0A.js +0 -1
  466. package/dist/chunks/agents-DRtgUZ6t.js +0 -103
  467. package/dist/chunks/agents-EolUGDZB.js +0 -2
  468. package/dist/chunks/ant-Bgl31h7a.js +0 -1
  469. package/dist/chunks/api-BpQPVgif.js +0 -1
  470. package/dist/chunks/api-xFvB7WoB.js +0 -1
  471. package/dist/chunks/asciicast-CJObpRg9.js +0 -1
  472. package/dist/chunks/asciicast-Dr_Div_R.js +0 -4
  473. package/dist/chunks/assistant-CENsWvTb.js +0 -1
  474. package/dist/chunks/assistant-CHawoD04.js +0 -1
  475. package/dist/chunks/assistant-s7XNIA76.js +0 -1
  476. package/dist/chunks/auth-DX12yVM8.js +0 -1
  477. package/dist/chunks/auth-h6VL9BbC.js +0 -1
  478. package/dist/chunks/autoMode-BDzVqEPm.js +0 -45
  479. package/dist/chunks/autonomy-CeqOXzJl.js +0 -19
  480. package/dist/chunks/autonomy-D2YudQnH.js +0 -1
  481. package/dist/chunks/autonomyPanel-B0OQV4lv.js +0 -1
  482. package/dist/chunks/backgroundHousekeeping-CvHD981l.js +0 -17
  483. package/dist/chunks/backgroundHousekeeping-DMkk-QoZ.js +0 -1
  484. package/dist/chunks/banner-DNLUJFS_.js +0 -2
  485. package/dist/chunks/bg-D_H-uZDS.js +0 -9
  486. package/dist/chunks/bg-FtpmvQuT.js +0 -1
  487. package/dist/chunks/branch-D44HjlJp.js +0 -3
  488. package/dist/chunks/break-cache-ByJ7U2Ts.js +0 -8
  489. package/dist/chunks/bridge-4sldfa8u.js +0 -2
  490. package/dist/chunks/bridgeConfig-BM7iHryd.js +0 -1
  491. package/dist/chunks/bridgeConfig-CcCNsSBX.js +0 -1
  492. package/dist/chunks/bridgeEnabled-CYddgTU1.js +0 -1
  493. package/dist/chunks/bridgeEnabled-DoT2l1Oj.js +0 -1
  494. package/dist/chunks/bridgeMain-DaO51duk.js +0 -68
  495. package/dist/chunks/bridgeMain-Dc4-ZK69.js +0 -1
  496. package/dist/chunks/bridgeMessaging-IlSWKGmC.js +0 -1
  497. package/dist/chunks/bridgePointer-fFD_tbSk.js +0 -1
  498. package/dist/chunks/browser-DwnUS505.js +0 -1
  499. package/dist/chunks/btw-CrdUyRUP.js +0 -1
  500. package/dist/chunks/buddy-Ci0hdCf9.js +0 -3
  501. package/dist/chunks/bypassPermissionsKillswitch-BWOlc_sK.js +0 -1
  502. package/dist/chunks/caches-BHRJHGlc.js +0 -1
  503. package/dist/chunks/caches-CitduRKp.js +0 -3
  504. package/dist/chunks/ccrClient-yNKhQYnf.js +0 -1
  505. package/dist/chunks/changeDetector-B1tCH9Pa.js +0 -1
  506. package/dist/chunks/channelNotification-D8NPg8I8.js +0 -1
  507. package/dist/chunks/channelNotification-oE3eipDZ.js +0 -1
  508. package/dist/chunks/chrome-CwAwCY0V.js +0 -1
  509. package/dist/chunks/chromeNativeHost-63xqELw-.js +0 -1
  510. package/dist/chunks/claudeDesktop-CX1AsJie.js +0 -1
  511. package/dist/chunks/cleanup-C0gyKaOb.js +0 -1
  512. package/dist/chunks/clear-B5D08sZ0.js +0 -1
  513. package/dist/chunks/cliLaunch-8aeIk2ts.js +0 -1
  514. package/dist/chunks/client-un1k_6md.js +0 -1
  515. package/dist/chunks/color-BtVvrSvq.js +0 -1
  516. package/dist/chunks/commands--qEK1j9j.js +0 -1
  517. package/dist/chunks/commitAttribution-AEb-sE-t.js +0 -1
  518. package/dist/chunks/commitAttribution-HP_CWP0X.js +0 -2
  519. package/dist/chunks/common-BBRP_KzA.js +0 -1
  520. package/dist/chunks/common-BD4Q7osK.js +0 -1
  521. package/dist/chunks/common-C56I-_O3.js +0 -1
  522. package/dist/chunks/compact-BNhxD2UA.js +0 -3
  523. package/dist/chunks/companion-BlhNrZiL.js +0 -1
  524. package/dist/chunks/completionCache-BHSsdkBs.js +0 -1
  525. package/dist/chunks/completionCache-Daqaxlf3.js +0 -4
  526. package/dist/chunks/config-9z8716kz.js +0 -1
  527. package/dist/chunks/config-f8Cx16Z6.js +0 -1
  528. package/dist/chunks/context-BdOjhAmM.js +0 -1
  529. package/dist/chunks/context-noninteractive-CnaDbgvf.js +0 -54
  530. package/dist/chunks/context-noninteractive-DRM7gbFk.js +0 -1
  531. package/dist/chunks/conversation-B9pq-m4L.js +0 -1
  532. package/dist/chunks/conversation-DUxXVrGj.js +0 -1
  533. package/dist/chunks/copy-Cjl0-hg1.js +0 -7
  534. package/dist/chunks/createSSHSession-CYaHalxc.js +0 -6
  535. package/dist/chunks/createSession-DoR2K7ay.js +0 -1
  536. package/dist/chunks/createSession-VlSLvi7J.js +0 -1
  537. package/dist/chunks/cronJitterConfig-DjSd7nvj.js +0 -6
  538. package/dist/chunks/crossProjectResume-CDWr5DFl.js +0 -40
  539. package/dist/chunks/daemon-FAp0WyY6.js +0 -2
  540. package/dist/chunks/datadog-CahWdK03.js +0 -1
  541. package/dist/chunks/datadog-DPkKCR8M.js +0 -1
  542. package/dist/chunks/desktop-y3mzgaWo.js +0 -1
  543. package/dist/chunks/detached-Brq3-vHi.js +0 -5
  544. package/dist/chunks/detectRepository-CSN3yxkq.js +0 -1
  545. package/dist/chunks/detectRepository-CbR0WgtE.js +0 -1
  546. package/dist/chunks/detection-BPPZCanO.js +0 -1
  547. package/dist/chunks/detection-DrdKrqbQ.js +0 -1
  548. package/dist/chunks/diff-hpp0dp6U.js +0 -1
  549. package/dist/chunks/directoryCompletion-DAc3u1K2.js +0 -1
  550. package/dist/chunks/doctor-B230p0R_.js +0 -1
  551. package/dist/chunks/earlyInput-BFcdUMaX.js +0 -2
  552. package/dist/chunks/earlyInput-vv9abU2L.js +0 -1
  553. package/dist/chunks/effort-D7i2v6vd.js +0 -9
  554. package/dist/chunks/entry-Du3gtq9o.js +0 -14
  555. package/dist/chunks/env-BH-OBzcA.js +0 -1
  556. package/dist/chunks/envLessBridgeConfig-CKD4eOEe.js +0 -1
  557. package/dist/chunks/envLessBridgeConfig-DI0ouryy.js +0 -1
  558. package/dist/chunks/execFileNoThrow-B_aZH_GP.js +0 -1
  559. package/dist/chunks/executor-BJb5d6mo.js +0 -1
  560. package/dist/chunks/executor-Dmn3RTuI.js +0 -1561
  561. package/dist/chunks/exit-fntBGxEC.js +0 -1
  562. package/dist/chunks/export-Dy9M7FnZ.js +0 -2
  563. package/dist/chunks/exportRenderer-Ckv4v0ye.js +0 -1
  564. package/dist/chunks/extra-usage-DLEvlKzs.js +0 -1
  565. package/dist/chunks/extra-usage-core-3KkeQSve.js +0 -1
  566. package/dist/chunks/extra-usage-noninteractive-DUezD54f.js +0 -1
  567. package/dist/chunks/extra-usage-pU11YXHS.js +0 -1
  568. package/dist/chunks/extraUsage-B-l-oe-7.js +0 -1
  569. package/dist/chunks/extractMemories-CXarlmZp.js +0 -1
  570. package/dist/chunks/fast-BzfzSH7K.js +0 -1
  571. package/dist/chunks/fast-CbLu_WYL.js +0 -1
  572. package/dist/chunks/featureCheck-p7OeCYzj.js +0 -1
  573. package/dist/chunks/feedback-DiyZIbov.js +0 -1
  574. package/dist/chunks/fileStateCache-C7-TxF8G.js +0 -1
  575. package/dist/chunks/files-DYvAZGxp.js +0 -2
  576. package/dist/chunks/firstPartyEventLogger-Dig8Mv7_.js +0 -1
  577. package/dist/chunks/flushGate-Ci3NHOV4.js +0 -1
  578. package/dist/chunks/gates-CtkQH6jy.js +0 -1
  579. package/dist/chunks/gates-xscCu8-N.js +0 -1
  580. package/dist/chunks/gemini-BCuY2aYj.js +0 -1
  581. package/dist/chunks/generateRecap-DA0SNyFR.js +0 -1
  582. package/dist/chunks/generateSessionName-BtQ4NGXP.js +0 -1
  583. package/dist/chunks/genericProcessUtils-D-78JZxz.js +0 -23
  584. package/dist/chunks/git-BZEgupMC.js +0 -1
  585. package/dist/chunks/git-DayFjsvj.js +0 -6
  586. package/dist/chunks/githubRepoPathMapping-C5RkiJWj.js +0 -1
  587. package/dist/chunks/goal-B6GHfd9J.js +0 -3
  588. package/dist/chunks/grok-DDM6xYuy.js +0 -1
  589. package/dist/chunks/growthbook-D-Po5Uxl.js +0 -1
  590. package/dist/chunks/heapdump-DHlUfpVV.js +0 -5
  591. package/dist/chunks/help-BulgC9m7.js +0 -1
  592. package/dist/chunks/hooks-D5AcFnD1.js +0 -1
  593. package/dist/chunks/hooks-jxIrev-X.js +0 -79
  594. package/dist/chunks/hostAdapter-BvraKy0o.js +0 -1
  595. package/dist/chunks/hostGuard-CWijeIyE.js +0 -1
  596. package/dist/chunks/ide-tx4qMFln.js +0 -2
  597. package/dist/chunks/inboundAttachments-C93Q7Dvt.js +0 -1
  598. package/dist/chunks/inboundAttachments-DxcFiX4f.js +0 -1
  599. package/dist/chunks/initReplBridge-BEldrf6f.js +0 -1
  600. package/dist/chunks/insights-HEsEDeCQ.js +0 -822
  601. package/dist/chunks/install-DRsM0bJO.js +0 -1
  602. package/dist/chunks/install-github-app-BVK5Z95c.js +0 -147
  603. package/dist/chunks/install-slack-app-DCw3O2J_.js +0 -1
  604. package/dist/chunks/instrumentation-DJ-R1s8C.js +0 -12
  605. package/dist/chunks/job-CUz_OGIq.js +0 -2
  606. package/dist/chunks/jwtUtils-DVyv2jab.js +0 -1
  607. package/dist/chunks/keybindings-Chr5nGBu.js +0 -2
  608. package/dist/chunks/lang-C7kJlPIh.js +0 -1
  609. package/dist/chunks/language-CQXwoDkI.js +0 -1
  610. package/dist/chunks/language-Lx3WlBN6.js +0 -1
  611. package/dist/chunks/launchAgentsPlatform-Fsslu42L.js +0 -1
  612. package/dist/chunks/launchAutofixPr-Cww8uS_5.js +0 -18
  613. package/dist/chunks/launchLocalMemory-BywmyvSJ.js +0 -3
  614. package/dist/chunks/launchLocalVault-BU3a5NV7.js +0 -3
  615. package/dist/chunks/launchMemoryStores-QUCODCJS.js +0 -1
  616. package/dist/chunks/launchOnboarding-BriZ0oIA.js +0 -8
  617. package/dist/chunks/launchSchedule-uLm7zt_B.js +0 -1
  618. package/dist/chunks/launchSkillStore-DMo2bV8X.js +0 -1
  619. package/dist/chunks/launchTeleport-DgQWSfXM.js +0 -3
  620. package/dist/chunks/launchVault-DfnBBFne.js +0 -1
  621. package/dist/chunks/loadAgentsDir-Br5fGLLI.js +0 -4697
  622. package/dist/chunks/loadAgentsDir-DDYPdQKP.js +0 -1
  623. package/dist/chunks/loadPluginHooks-C4soqr6g.js +0 -1
  624. package/dist/chunks/localSearch-CELyiWF6.js +0 -1
  625. package/dist/chunks/localSearch-DhZMcy5t.js +0 -1
  626. package/dist/chunks/log-DS97_rIr.js +0 -1
  627. package/dist/chunks/login-CvvIpkpq.js +0 -1
  628. package/dist/chunks/login-DjgITOAw.js +0 -1
  629. package/dist/chunks/logoV2Utils-BN_HrHSc.js +0 -1
  630. package/dist/chunks/logout-DOFJpZEJ.js +0 -1
  631. package/dist/chunks/magicDocs-2Zr7bYY_.js +0 -57
  632. package/dist/chunks/main-BafHJuKH.js +0 -31
  633. package/dist/chunks/main-D61CvHRy.js +0 -1312
  634. package/dist/chunks/mappers-BCiceNt3.js +0 -1
  635. package/dist/chunks/mcp-BV4m1Gbl.js +0 -2
  636. package/dist/chunks/mcp-CrAgAK9u.js +0 -1
  637. package/dist/chunks/mcp-DK4m73gO.js +0 -6
  638. package/dist/chunks/mcpServer-7zyXl9Wg.js +0 -1
  639. package/dist/chunks/mcpServer-sa9Z183j.js +0 -1
  640. package/dist/chunks/memoize-CPexXTP7.js +0 -1
  641. package/dist/chunks/memory-BrJPVgxn.js +0 -1
  642. package/dist/chunks/mobile-Cydobb55.js +0 -2
  643. package/dist/chunks/mode-Cr-NTlRa.js +0 -2
  644. package/dist/chunks/model-CCjuMV6k.js +0 -1
  645. package/dist/chunks/model-aJS_plgM.js +0 -1
  646. package/dist/chunks/onChangeAppState-C9EvI3EH.js +0 -1
  647. package/dist/chunks/openai-Cvb_-1A-.js +0 -10
  648. package/dist/chunks/overageCreditGrant-cGQilawd.js +0 -1
  649. package/dist/chunks/panel-ByW1omJn.js +0 -1
  650. package/dist/chunks/panel-DO_faHV-.js +0 -1
  651. package/dist/chunks/panelCall-DqZuxAf0.js +0 -1
  652. package/dist/chunks/parser-DbKSpFRq.js +0 -1
  653. package/dist/chunks/passes-DsrceO14.js +0 -1
  654. package/dist/chunks/path-nCzt96pE.js +0 -1
  655. package/dist/chunks/paths-DfGsIjPm.js +0 -39
  656. package/dist/chunks/permissions-CjPIu4IE.js +0 -3
  657. package/dist/chunks/permissions-Ps_D01ZB.js +0 -1
  658. package/dist/chunks/pipeTransport-C5u1K0wu.js +0 -1
  659. package/dist/chunks/plan-YjMAcn6g.js +0 -1
  660. package/dist/chunks/platform-DYZVoA9J.js +0 -2
  661. package/dist/chunks/plugin-Oux5bBQj.js +0 -1
  662. package/dist/chunks/pluginAutoupdate-Dl9U-fbk.js +0 -1
  663. package/dist/chunks/pluginBlocklist-BzI5DNeN.js +0 -1
  664. package/dist/chunks/pluginCliCommands-CExAcsaR.js +0 -1
  665. package/dist/chunks/pluginFlagging-BeqrbhgG.js +0 -1
  666. package/dist/chunks/pluginOperations-s0FQGOBm.js +0 -2
  667. package/dist/chunks/pluginStartupCheck-BVag9B-T.js +0 -1
  668. package/dist/chunks/pluginStartupCheck-BuorUEEf.js +0 -1
  669. package/dist/chunks/plugins-DTQHVJtY.js +0 -4
  670. package/dist/chunks/policyLimits-zoyF_6O4.js +0 -1
  671. package/dist/chunks/pollConfig-C19GiX7i.js +0 -1
  672. package/dist/chunks/poller-DADqVTWi.js +0 -1
  673. package/dist/chunks/poor-Bx5vvamq.js +0 -1
  674. package/dist/chunks/poorMode-BCoeB5zB.js +0 -1
  675. package/dist/chunks/poorMode-CTd_csCl.js +0 -1
  676. package/dist/chunks/print-UXl3rG8y.js +0 -39
  677. package/dist/chunks/privacy-settings-e43D9a4o.js +0 -1
  678. package/dist/chunks/processBashCommand-CvR9-gf8.js +0 -1
  679. package/dist/chunks/processSlashCommand-CB3wyAX7.js +0 -6
  680. package/dist/chunks/projectContext-D3_u80TY.js +0 -1
  681. package/dist/chunks/prompt-53lRY98R.js +0 -1
  682. package/dist/chunks/prompt-B8M-HLIS.js +0 -227
  683. package/dist/chunks/prompt-CooZNM1u.js +0 -1
  684. package/dist/chunks/promptEditor-CHiopfD7.js +0 -4
  685. package/dist/chunks/protocolHandler-DjivYn8H.js +0 -13
  686. package/dist/chunks/rate-limit-options-B-vndk5W.js +0 -1
  687. package/dist/chunks/rcDebugLog-BoroyfjB.js +0 -11
  688. package/dist/chunks/referral-DOqhciQu.js +0 -1
  689. package/dist/chunks/refresh-C8uLznwm.js +0 -1
  690. package/dist/chunks/registerProtocol-4lQ7O4Cc.js +0 -36
  691. package/dist/chunks/registry-q6v98JYd.js +0 -1
  692. package/dist/chunks/release-notes-C7JHshX3.js +0 -4
  693. package/dist/chunks/releaseNotes-CXY-xAja.js +0 -2
  694. package/dist/chunks/reload-plugins-DLS5lQcc.js +0 -1
  695. package/dist/chunks/remote-env-DhHea8yK.js +0 -1
  696. package/dist/chunks/remoteBridgeCore-BhOLhQIA.js +0 -1
  697. package/dist/chunks/remoteControlServer-CI0F83pg.js +0 -3
  698. package/dist/chunks/rename-DiKWWCzB.js +0 -1
  699. package/dist/chunks/renderOptions-DKe32LfM.js +0 -1
  700. package/dist/chunks/resume-DA4ToJFW.js +0 -2
  701. package/dist/chunks/runtimeObserver-BfVC8KK9.js +0 -1
  702. package/dist/chunks/runtimeObserver-DetZ5Tek.js +0 -10
  703. package/dist/chunks/sandbox-adapter-wh4cKN45.js +0 -1
  704. package/dist/chunks/sandbox-toggle-D8MgV0DT.js +0 -1
  705. package/dist/chunks/searchExtraTools-DbPpcAPw.js +0 -1
  706. package/dist/chunks/sentry-C3sL9nhF.js +0 -13
  707. package/dist/chunks/session-Bd-4QCqc.js +0 -2
  708. package/dist/chunks/sessionDiscovery-D_KPF86E.js +0 -1
  709. package/dist/chunks/sessionFileAccessHooks-COne5L2E.js +0 -1
  710. package/dist/chunks/sessionMemory-0Jqo1_MV.js +0 -1
  711. package/dist/chunks/sessionMemory-BDt_8bNB.js +0 -1
  712. package/dist/chunks/sessionMemoryUtils-BFIJ1nqF.js +0 -1
  713. package/dist/chunks/sessionObserver-CEky1SLb.js +0 -1
  714. package/dist/chunks/sessionObserver-CQxIKV8D.js +0 -20
  715. package/dist/chunks/sessionStorage-D1XhqZyW.js +0 -1
  716. package/dist/chunks/sessionStoragePortable-DJZ_6cL8.js +0 -3
  717. package/dist/chunks/sessionTitle-CB0ZEkS_.js +0 -14
  718. package/dist/chunks/sessionTracing-BIKXLTJZ.js +0 -11
  719. package/dist/chunks/settingsSync-pI3L3CeR.js +0 -1
  720. package/dist/chunks/setup-BSi50fkU.js +0 -1
  721. package/dist/chunks/setup-DjsmjRKQ.js +0 -2
  722. package/dist/chunks/setup-Dq0_SRA1.js +0 -9
  723. package/dist/chunks/shadowedRuleDetection-DvAjOOPL.js +0 -1
  724. package/dist/chunks/shellQuote-D8XPeqkc.js +0 -1
  725. package/dist/chunks/sideQuestion-BrTA8ooG.js +0 -20
  726. package/dist/chunks/sink-CqWxcRl9.js +0 -1
  727. package/dist/chunks/sink-Dkat5kH9.js +0 -1
  728. package/dist/chunks/sinks--frMI4-5.js +0 -2
  729. package/dist/chunks/sinks-CvPAVcMY.js +0 -1
  730. package/dist/chunks/skill-learning-2LV0yuwF.js +0 -5
  731. package/dist/chunks/skillChangeDetector-B5CGPl7e.js +0 -1
  732. package/dist/chunks/skillGapStore-Dc29T-OG.js +0 -1
  733. package/dist/chunks/skillGapStore-KzRf6Ezr.js +0 -5
  734. package/dist/chunks/skillGenerator-BdOHsgc4.js +0 -8
  735. package/dist/chunks/skillLearning-CdcVIG14.js +0 -1
  736. package/dist/chunks/skillLearning-DXWMxSA2.js +0 -1
  737. package/dist/chunks/skillPanel-zMY8o-86.js +0 -28
  738. package/dist/chunks/skillSearchPanel-l8aolUP8.js +0 -21
  739. package/dist/chunks/skills-BeMWJPup.js +0 -1
  740. package/dist/chunks/sprites-qel_EgTP.js +0 -1
  741. package/dist/chunks/src-BIPP3_mo.js +0 -26
  742. package/dist/chunks/src-DJXKJavk.js +0 -1
  743. package/dist/chunks/startupProfiler-CnDpob1v.js +0 -3
  744. package/dist/chunks/startupProfiler-TrMfE6Q4.js +0 -1
  745. package/dist/chunks/stats-CEBfahqM.js +0 -1
  746. package/dist/chunks/status-C9KXyfDk.js +0 -1
  747. package/dist/chunks/statusNoticeHelpers-CxoN9oDh.js +0 -1
  748. package/dist/chunks/stdio-BEEzuxaZ.js +0 -1
  749. package/dist/chunks/stickers-eHrGA1W5.js +0 -1
  750. package/dist/chunks/subprocessEnv-CggQWZCx.js +0 -1
  751. package/dist/chunks/systemPromptSections-DB93ZNWP.js +0 -1
  752. package/dist/chunks/tag-Dvl7Us9y.js +0 -11
  753. package/dist/chunks/tasks-BhiwUF0n.js +0 -1
  754. package/dist/chunks/teamHelpers-COQazluD.js +0 -1
  755. package/dist/chunks/teamHelpers-Mgfrv-Jf.js +0 -1
  756. package/dist/chunks/teammateModeSnapshot-8EWjlA-s.js +0 -1
  757. package/dist/chunks/teammateModeSnapshot-BV-P8s5r.js +0 -1
  758. package/dist/chunks/teleport-U5Zgqw3H.js +0 -1
  759. package/dist/chunks/templateJobs-C3idypN_.js +0 -12
  760. package/dist/chunks/terminalSetup-CmAEgt-5.js +0 -33
  761. package/dist/chunks/terminalSetup-mvAN4no7.js +0 -1
  762. package/dist/chunks/theme-BD2H4vJi.js +0 -1
  763. package/dist/chunks/thinkback-BOByXYp2.js +0 -1
  764. package/dist/chunks/thinkback-Dzu2mnNF.js +0 -1
  765. package/dist/chunks/thinkback-play-BX1K2UMY.js +0 -1
  766. package/dist/chunks/tmux-DruHFjDy.js +0 -1
  767. package/dist/chunks/toolEventObserver-B6cLV_dK.js +0 -1
  768. package/dist/chunks/toolEventObserver-i6it3p2_.js +0 -1
  769. package/dist/chunks/toolPool--2gNFbrz.js +0 -1
  770. package/dist/chunks/toolPool-dNV2JxUI.js +0 -1
  771. package/dist/chunks/trustedDevice-DY8OosTr.js +0 -1
  772. package/dist/chunks/trustedDevice-zya_Ml1N.js +0 -1
  773. package/dist/chunks/tui-KoYD82tT.js +0 -6
  774. package/dist/chunks/types-CQ1wrnQ0.js +0 -1
  775. package/dist/chunks/types-D5R26wwH.js +0 -17
  776. package/dist/chunks/udsClient-RkYuzeZC.js +0 -1
  777. package/dist/chunks/ultrareviewCommand-CCkKby4J.js +0 -3
  778. package/dist/chunks/undercover-CIutVLEO.js +0 -1
  779. package/dist/chunks/undercover-D9O2McNG.js +0 -31
  780. package/dist/chunks/up-BPM85EYl.js +0 -12
  781. package/dist/chunks/updateCCB-Bmn3Y63Y.js +0 -11
  782. package/dist/chunks/upgrade-D3rVOeHO.js +0 -1
  783. package/dist/chunks/upgrade-Dq3l14ZY.js +0 -1
  784. package/dist/chunks/upload-1PmElPfW.js +0 -1
  785. package/dist/chunks/upstreamproxy-BBTSJnad.js +0 -11
  786. package/dist/chunks/usage-B5G8FOZ3.js +0 -1
  787. package/dist/chunks/usage-VtTu7beE.js +0 -1
  788. package/dist/chunks/useMainLoopModel-CaQLIr1V.js +0 -1
  789. package/dist/chunks/useManagePlugins-BvoeOnqq.js +0 -1
  790. package/dist/chunks/useMergedTools-C133BfRp.js +0 -1
  791. package/dist/chunks/useSearchInput-CROB7AbC.js +0 -1
  792. package/dist/chunks/useSettingsErrors-DRxtFXoe.js +0 -1
  793. package/dist/chunks/useVoice-BQ9aSFJe.js +0 -1
  794. package/dist/chunks/util-BZnJgF79.js +0 -1
  795. package/dist/chunks/utils-4gsxQpga.js +0 -1
  796. package/dist/chunks/validatePlugin-DlrnBhPA.js +0 -1
  797. package/dist/chunks/vim-BXQCLoFJ.js +0 -1
  798. package/dist/chunks/voice-CeRmLRHT.js +0 -2
  799. package/dist/chunks/voice-QHyDff3f.js +0 -8
  800. package/dist/chunks/voiceModeEnabled-Bq_rttkL.js +0 -1
  801. package/dist/chunks/voiceModeEnabled-CLAVCVLW.js +0 -1
  802. package/dist/chunks/voiceStreamSTT-BDKenO5F.js +0 -1
  803. package/dist/chunks/voiceStreamSTT-CL52x8wZ.js +0 -1
  804. package/dist/chunks/windowsPaths-43st5EQF.js +0 -1
  805. package/dist/chunks/windowsPaths-DerzGPcz.js +0 -2
  806. package/dist/chunks/workerRegistry-BUD3lBk_.js +0 -1
  807. package/dist/chunks/worktree-C0f9Ke-R.js +0 -1
  808. package/dist/chunks/worktreeModeEnabled-THQb19xR.js +0 -1
  809. package/dist/chunks/xml-DvVQHZ1N.js +0 -1
  810. /package/dist/chunks/{Dialog-DYFGqyDs.js → Dialog-91X6ZGg9.js} +0 -0
  811. /package/dist/chunks/{InProcessTransport-B0mmAoxw.js → InProcessTransport-B9II3BiO.js} +0 -0
  812. /package/dist/chunks/{ListItem-OFARanN7.js → ListItem-DCQhApdJ.js} +0 -0
  813. /package/dist/chunks/{PermissionDialog-5MlJf7ew.js → PermissionDialog-_WQPRYHQ.js} +0 -0
  814. /package/dist/chunks/{PressEnterToContinue-BdA9zDGs.js → PressEnterToContinue-BJ58eCFC.js} +0 -0
  815. /package/dist/chunks/{SearchBox-DfOmUoaI.js → SearchBox-CkO4rQ-9.js} +0 -0
  816. /package/dist/chunks/{TungstenTool-V-Bwqlx3.js → TungstenTool-CnAF4y0E.js} +0 -0
  817. /package/dist/chunks/{attributionHooks-DZJjA8p9.js → attributionHooks-VGSpz4mk.js} +0 -0
  818. /package/dist/chunks/{attributionTrailer-CZY9XTcr.js → attributionTrailer-C8uqiLIb.js} +0 -0
  819. /package/dist/chunks/{autoModeDenials-CGAtAGGf.js → autoModeDenials-DlO5g6E9.js} +0 -0
  820. /package/dist/chunks/{bedrockClient-DZgaJTHp.js → bedrockClient-BUmO2U-X.js} +0 -0
  821. /package/dist/chunks/{capacityWake-BXlUpptF.js → capacityWake-DtmDHwEt.js} +0 -0
  822. /package/dist/chunks/{ccshareResume-CZggHNOf.js → ccshareResume-DKwcd0Vc.js} +0 -0
  823. /package/dist/chunks/{computerUseLock-BoEK9xYv.js → computerUseLock-Diig5B8p.js} +0 -0
  824. /package/dist/chunks/{connectHeadless-KNT0Sg7Z.js → connectHeadless-ByewVfOb.js} +0 -0
  825. /package/dist/chunks/{constants-41VpZw2G.js → constants-BljlAJOX.js} +0 -0
  826. /package/dist/chunks/{controlMessageCompat-BJhFiS7u.js → controlMessageCompat-Ds-CF-sM.js} +0 -0
  827. /package/dist/chunks/{cron-DiW7eIPP.js → cron-g_P3I5uT.js} +0 -0
  828. /package/dist/chunks/{dangerousBackend-ByOAEFld.js → dangerousBackend-Dkjtndh1.js} +0 -0
  829. /package/dist/chunks/{debugUtils-CiEnbhiz.js → debugUtils-l8nsUZ6R.js} +0 -0
  830. /package/dist/chunks/{distRoot-CcxmnzqQ.js → distRoot-BNg_iO5-.js} +0 -0
  831. /package/dist/chunks/{escHotkey-DfdC44i7.js → escHotkey-D8WgbSyj.js} +0 -0
  832. /package/dist/chunks/{esm-C-1qL9Mn.js → esm-vlR7mK5b.js} +0 -0
  833. /package/dist/chunks/{eventLoopStallDetector-l83_98VR.js → eventLoopStallDetector-bYy0fesH.js} +0 -0
  834. /package/dist/chunks/{exit-_obETqBv.js → exit-DOBLl8jN.js} +0 -0
  835. /package/dist/chunks/{featureCheck-Cm0YNDXO.js → featureCheck-j7P30mry.js} +0 -0
  836. /package/dist/chunks/{fpsMetrics-DOI_SIeY.js → fpsMetrics-DKWp7vng.js} +0 -0
  837. /package/dist/chunks/{fuse-Bp7rmZ5x.js → fuse-D3B-UE5Y.js} +0 -0
  838. /package/dist/chunks/{hash-BRmOQc3c.js → hash-CaUkS-30.js} +0 -0
  839. /package/dist/chunks/{index.min-BJnb9GQI.js → index.min-BNgJ2wVD.js} +0 -0
  840. /package/dist/chunks/{instinctParser-Bxhe2LOF.js → instinctParser-DOtj1Kni.js} +0 -0
  841. /package/dist/chunks/{intl-Pse97ORk.js → intl-CLeE9DsD.js} +0 -0
  842. /package/dist/chunks/{launchCommand-Du91jxMC.js → launchCommand-9eYsPG7W.js} +0 -0
  843. /package/dist/chunks/{lazySchema-2sOku3cX.js → lazySchema-B0QShMaQ.js} +0 -0
  844. /package/dist/chunks/{lib-B4Q0Nrpb.js → lib-Cf16LgKj.js} +0 -0
  845. /package/dist/chunks/{lockfile-CeCEBLtN.js → lockfile-C3JsqLpb.js} +0 -0
  846. /package/dist/chunks/{modalContext-CmSKRyea.js → modalContext-c5Yqx_CQ.js} +0 -0
  847. /package/dist/chunks/{normalization-Cox8C0dP.js → normalization-BLfP0Kqt.js} +0 -0
  848. /package/dist/chunks/{observationStore-BaPq7CKI.js → observationStore-rLlDwRtG.js} +0 -0
  849. /package/dist/chunks/{openaiShared-Crt0cZLO.js → openaiShared-C-AuktRP.js} +0 -0
  850. /package/dist/chunks/{output-style-BkOnFmfe.js → output-style-B64-Zum6.js} +0 -0
  851. /package/dist/chunks/{parseConnectUrl-BFNiff4c.js → parseConnectUrl-DL390ePs.js} +0 -0
  852. /package/dist/chunks/{parser-BXWr_mLL.js → parser-aIWfAYnt.js} +0 -0
  853. /package/dist/chunks/{permissions-DXLfdE7b.js → permissions-BsVJvaEe.js} +0 -0
  854. /package/dist/chunks/{postCommitAttribution-CA9Z2sqn.js → postCommitAttribution-D8MoHFoz.js} +0 -0
  855. /package/dist/chunks/{projectContext-CwJlxP2Y.js → projectContext-Dn7umMp6.js} +0 -0
  856. /package/dist/chunks/{prompt-4tea6NJQ.js → prompt-IqfIbvg9.js} +0 -0
  857. /package/dist/chunks/{proxy-nPT6a6QY.js → proxy-CF7ZDxaW.js} +0 -0
  858. /package/dist/chunks/{rewind-DTk4TFYB.js → rewind-Djt1zU_3.js} +0 -0
  859. /package/dist/chunks/{rollback-DbSpxmJE.js → rollback-CtS4yEQx.js} +0 -0
  860. /package/dist/chunks/{sanitization-DD414_3t.js → sanitization-Ds6zRQyx.js} +0 -0
  861. /package/dist/chunks/{sdkHeapDumpMonitor-fNRF2fbK.js → sdkHeapDumpMonitor-DLMMNeqo.js} +0 -0
  862. /package/dist/chunks/{semver-Tw0AFar5.js → semver-Di5OaTd5.js} +0 -0
  863. /package/dist/chunks/{server-DTd90dmm.js → server-DONKdvGc.js} +0 -0
  864. /package/dist/chunks/{serverBanner-B7UaaCCl.js → serverBanner-DIyjgIM-.js} +0 -0
  865. /package/dist/chunks/{serverLog-DRvGpDtt.js → serverLog-D1N5yx8A.js} +0 -0
  866. /package/dist/chunks/{sessionDataUploader-BDsz_1Uy.js → sessionDataUploader-CsNePsOb.js} +0 -0
  867. /package/dist/chunks/{sessionManager-Bh-Z-YXy.js → sessionManager-BOmgJd1l.js} +0 -0
  868. /package/dist/chunks/{slashCommandParsing-Cari0pNg.js → slashCommandParsing-BfanVchF.js} +0 -0
  869. /package/dist/chunks/{sleep-8Eb9j_Ly.js → sleep-C6koP5Ka.js} +0 -0
  870. /package/dist/chunks/{src-x7u_sB6m.js → src-BWpNn6Yz.js} +0 -0
  871. /package/dist/chunks/{src-BRAdBA8A.js → src-C-Ho8kYe.js} +0 -0
  872. /package/dist/chunks/{src-BlLavFUS.js → src-Cu58IYYb.js} +0 -0
  873. /package/dist/chunks/{src-CI_jaaBj.js → src-d2UJ68oX.js} +0 -0
  874. /package/dist/chunks/{state-Ce1HlR-H.js → state-BiRT9RAF.js} +0 -0
  875. /package/dist/chunks/{staticRender-Br64h1E1.js → staticRender-C5v46np_.js} +0 -0
  876. /package/dist/chunks/{stdio-D4cT86R0.js → stdio-Oy68T2eE.js} +0 -0
  877. /package/dist/chunks/{store-DhI7Lcan.js → store-DYC8zeL1.js} +0 -0
  878. /package/dist/chunks/{subprocessEnv-DV6q6o6w.js → subprocessEnv-DIeTJ-xE.js} +0 -0
  879. /package/dist/chunks/{systemPromptSections-BcN_XBTx.js → systemPromptSections-DY7epA2Y.js} +0 -0
  880. /package/dist/chunks/{systemTheme-dDbitcxB.js → systemTheme-eRWGHYSL.js} +0 -0
  881. /package/dist/chunks/{teammate-DMYOtLTK.js → teammate-CbskW5G9.js} +0 -0
  882. /package/dist/chunks/{types-RJTEOuIt.js → types-C0nqJFkV.js} +0 -0
  883. /package/dist/chunks/{useKeybinding-FsOnjW6T.js → useKeybinding-DPOUuymz.js} +0 -0
  884. /package/dist/chunks/{workSecret-qRMNrQy2.js → workSecret-DJu7k30X.js} +0 -0
  885. /package/dist/chunks/{worktreeModeEnabled-Db6b_Iy_.js → worktreeModeEnabled-KtHEqeFA.js} +0 -0
  886. /package/dist/chunks/{xdg-CBxMmQux.js → xdg-BFD9ydDV.js} +0 -0
@@ -1,4 +0,0 @@
1
- import{s as e,u as t}from"./envUtils-BWeoiL4Y.js";import{n,t as r}from"./defineProperty-80gRi2ZW.js";import{n as i,t as a}from"./axios-DhfaybwJ.js";import{E as o,O as s,l as c,p as l}from"./debug-otxXY3j-.js";import{n as u,r as d}from"./analytics-DqMQntaB.js";import{F as f,P as p}from"./git-DayFjsvj.js";import{c as m,g as h,h as g,l as _,u as v}from"./proxy-nPT6a6QY.js";import{Ch as y,Sh as b}from"./loadAgentsDir-Br5fGLLI.js";import{D as x,O as S,a as C,l as w,n as T,r as E,t as D}from"./rcDebugLog-BoroyfjB.js";import{r as O}from"./ccrClient-yNKhQYnf.js";a(),S(),u(),y(),c(),D(),p(),e(),h(),v(),E(),o(),n();var k=`{"type":"keep_alive"}
2
- `,A=1e3,j=1e3,M=3e4,N=6e5,P=1e4,F=12e4,I=M*2,L=new Set([1002,4001,4003]),R=class{constructor(e,t={},n,i,a){r(this,`ws`,null),r(this,`lastSentId`,null),r(this,`url`,void 0),r(this,`state`,`idle`),r(this,`onData`,void 0),r(this,`onCloseCallback`,void 0),r(this,`onConnectCallback`,void 0),r(this,`headers`,void 0),r(this,`sessionId`,void 0),r(this,`autoReconnect`,void 0),r(this,`isBridge`,void 0),r(this,`reconnectAttempts`,0),r(this,`reconnectStartTime`,null),r(this,`reconnectTimer`,null),r(this,`lastReconnectAttemptTime`,null),r(this,`lastActivityTime`,0),r(this,`pingInterval`,null),r(this,`pongReceived`,!0),r(this,`keepAliveInterval`,null),r(this,`messageBuffer`,void 0),r(this,`isBunWs`,!1),r(this,`connectStartTime`,0),r(this,`refreshHeaders`,void 0),r(this,`onBunOpen`,()=>{this.handleOpenEvent(),this.lastSentId&&this.replayBufferedMessages(``)}),r(this,`onBunMessage`,e=>{let t=typeof e.data==`string`?e.data:String(e.data);this.lastActivityTime=Date.now(),f(`info`,`cli_websocket_message_received`,{length:t.length}),this.onData&&this.onData(t)}),r(this,`onBunError`,()=>{l(`WebSocketTransport: Error`,{level:`error`}),f(`error`,`cli_websocket_connect_error`)}),r(this,`onBunClose`,e=>{let t=e.code===1e3||e.code===1001;l(`WebSocketTransport: Closed: ${e.code}`,t?void 0:{level:`error`}),f(`error`,`cli_websocket_connect_closed`),this.handleConnectionError(e.code)}),r(this,`onNodeOpen`,()=>{let e=this.ws;if(this.handleOpenEvent(),!e)return;let t=e.upgradeReq;if(t?.headers?.[`x-last-request-id`]){let e=t.headers[`x-last-request-id`];this.replayBufferedMessages(e)}}),r(this,`onNodeMessage`,e=>{let t=e.toString();this.lastActivityTime=Date.now(),f(`info`,`cli_websocket_message_received`,{length:t.length}),this.onData&&this.onData(t)}),r(this,`onNodeError`,e=>{l(`WebSocketTransport: Error: ${e.message}`,{level:`error`}),f(`error`,`cli_websocket_connect_error`)}),r(this,`onNodeClose`,(e,t)=>{let n=e===1e3||e===1001;l(`WebSocketTransport: Closed: ${e}`,n?void 0:{level:`error`}),f(`error`,`cli_websocket_connect_closed`),this.handleConnectionError(e)}),r(this,`onPong`,()=>{this.pongReceived=!0}),this.url=e,this.headers=t,this.sessionId=n,this.refreshHeaders=i,this.autoReconnect=a?.autoReconnect??!0,this.isBridge=a?.isBridge??!1,this.messageBuffer=new b(A)}async connect(){if(this.state!==`idle`&&this.state!==`reconnecting`){l(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:`error`}),f(`error`,`cli_websocket_connect_failed`);return}this.state=`reconnecting`,this.connectStartTime=Date.now(),l(`WebSocketTransport: Opening ${this.url.href}`),f(`info`,`cli_websocket_connect_opening`);let e={...this.headers};if(this.lastSentId&&(e[`X-Last-Request-Id`]=this.lastSentId,l(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`)),typeof Bun<`u`){let t=new globalThis.WebSocket(this.url.href,{headers:e,proxy:_(this.url.href),tls:g()||void 0});this.ws=t,this.isBunWs=!0,t.addEventListener(`open`,this.onBunOpen),t.addEventListener(`message`,this.onBunMessage),t.addEventListener(`error`,this.onBunError),t.addEventListener(`close`,this.onBunClose),t.addEventListener(`pong`,this.onPong)}else{let{default:t}=await import(`./wrapper-BSK0MCQH.js`),n=new t(this.url.href,{headers:e,agent:m(this.url.href),...g()});this.ws=n,this.isBunWs=!1,n.on(`open`,this.onNodeOpen),n.on(`message`,this.onNodeMessage),n.on(`error`,this.onNodeError),n.on(`close`,this.onNodeClose),n.on(`pong`,this.onPong)}}handleOpenEvent(){let e=Date.now()-this.connectStartTime;l(`WebSocketTransport: Connected`),f(`info`,`cli_websocket_connect_connected`,{duration_ms:e}),this.isBridge&&this.reconnectStartTime!==null&&d(`tengu_ws_transport_reconnected`,{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime}),this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state=`connected`,this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),C(()=>{this.write({type:`keep_alive`})})}sendLine(e){if(!this.ws||this.state!==`connected`)return l(`WebSocketTransport: Not connected`),f(`info`,`cli_websocket_send_not_connected`),!1;try{return this.ws.send(e),this.lastActivityTime=Date.now(),!0}catch(e){return l(`WebSocketTransport: Failed to send: ${e}`,{level:`error`}),f(`error`,`cli_websocket_send_error`),this.handleConnectionError(),!1}}removeWsListeners(e){if(this.isBunWs){let t=e;t.removeEventListener(`open`,this.onBunOpen),t.removeEventListener(`message`,this.onBunMessage),t.removeEventListener(`error`,this.onBunError),t.removeEventListener(`close`,this.onBunClose),t.removeEventListener(`pong`,this.onPong)}else{let t=e;t.off(`open`,this.onNodeOpen),t.off(`message`,this.onNodeMessage),t.off(`error`,this.onNodeError),t.off(`close`,this.onNodeClose),t.off(`pong`,this.onPong)}}doDisconnect(){this.stopPingInterval(),this.stopKeepaliveInterval(),w(),this.ws&&(this.removeWsListeners(this.ws),this.ws.close(),this.ws=null)}handleConnectionError(e){if(T(`WS handleConnectionError: code=${e} state=${this.state} url=${this.url.href.replace(/token=[^&]+/,`token=***`)} msSinceLastActivity=${this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1} reconnectAttempts=${this.reconnectAttempts}`),l(`WebSocketTransport: Disconnected from ${this.url.href}`+(e==null?``:` (code ${e})`)),f(`info`,`cli_websocket_disconnected`),this.isBridge&&d(`tengu_ws_transport_closed`,{closeCode:e,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state===`connected`,reconnectAttempts:this.reconnectAttempts}),this.doDisconnect(),this.state===`closing`||this.state===`closed`)return;let t=!1;if(e===4003&&this.refreshHeaders){let e=this.refreshHeaders();e.Authorization!==this.headers.Authorization&&(Object.assign(this.headers,e),t=!0,l(`WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect`),f(`info`,`cli_websocket_4003_token_refreshed`))}if(e!=null&&L.has(e)&&!t){l(`WebSocketTransport: Permanent close code ${e}, not reconnecting`,{level:`error`}),f(`error`,`cli_websocket_permanent_close`,{closeCode:e}),this.state=`closed`,this.onCloseCallback?.(e);return}if(!this.autoReconnect){this.state=`closed`,this.onCloseCallback?.(e);return}let n=Date.now();this.reconnectStartTime||(this.reconnectStartTime=n),this.lastReconnectAttemptTime!==null&&n-this.lastReconnectAttemptTime>I&&(l(`WebSocketTransport: Detected system sleep (${Math.round((n-this.lastReconnectAttemptTime)/1e3)}s gap), resetting reconnection budget`),f(`info`,`cli_websocket_sleep_detected`,{gapMs:n-this.lastReconnectAttemptTime}),this.reconnectStartTime=n,this.reconnectAttempts=0),this.lastReconnectAttemptTime=n;let r=n-this.reconnectStartTime;if(r<N){if(this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),!t&&this.refreshHeaders){let e=this.refreshHeaders();Object.assign(this.headers,e),l(`WebSocketTransport: Refreshed headers for reconnect`)}this.state=`reconnecting`,this.reconnectAttempts++;let e=Math.min(j*2**(this.reconnectAttempts-1),M),n=Math.max(0,e+e*.25*(2*Math.random()-1));l(`WebSocketTransport: Reconnecting in ${Math.round(n)}ms (attempt ${this.reconnectAttempts}, ${Math.round(r/1e3)}s elapsed)`),f(`error`,`cli_websocket_reconnect_attempt`,{reconnectAttempts:this.reconnectAttempts}),this.isBridge&&d(`tengu_ws_transport_reconnecting`,{attempt:this.reconnectAttempts,elapsedMs:r,delayMs:Math.round(n)}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},n)}else l(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(r/1e3)}s for ${this.url.href}`,{level:`error`}),f(`error`,`cli_websocket_reconnect_exhausted`,{reconnectAttempts:this.reconnectAttempts,elapsedMs:r}),this.state=`closed`,this.onCloseCallback&&this.onCloseCallback(e)}close(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopPingInterval(),this.stopKeepaliveInterval(),w(),this.state=`closing`,this.doDisconnect()}replayBufferedMessages(e){let t=this.messageBuffer.toArray();if(t.length===0)return;let n=0;if(e){let r=t.findIndex(t=>`uuid`in t&&t.uuid===e);if(r>=0){n=r+1;let e=t.slice(n);this.messageBuffer.clear(),this.messageBuffer.addAll(e),e.length===0&&(this.lastSentId=null),l(`WebSocketTransport: Evicted ${n} confirmed messages, ${e.length} remaining`),f(`info`,`cli_websocket_evicted_confirmed_messages`,{evicted:n,remaining:e.length})}}let r=t.slice(n);if(r.length===0){l(`WebSocketTransport: No new messages to replay`),f(`info`,`cli_websocket_no_messages_to_replay`);return}l(`WebSocketTransport: Replaying ${r.length} buffered messages`),f(`info`,`cli_websocket_messages_to_replay`,{count:r.length});for(let e of r){let t=s(e)+`
3
- `;if(!this.sendLine(t)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state===`connected`}isClosedStatus(){return this.state===`closed`}setOnData(e){this.onData=e}setOnConnect(e){this.onConnectCallback=e}setOnClose(e){this.onCloseCallback=e}getStateLabel(){return this.state}async write(e){`uuid`in e&&typeof e.uuid==`string`&&(this.messageBuffer.add(e),this.lastSentId=e.uuid);let t=s(e)+`
4
- `;if(this.state!==`connected`)return;let n=this.sessionId?` session=${this.sessionId}`:``,r=this.getControlMessageDetailLabel(e);l(`WebSocketTransport: Sending message type=${e.type}${n}${r}`),this.sendLine(t)}getControlMessageDetailLabel(e){if(e.type===`control_request`){let{request_id:t,request:n}=e,r=n.subtype===`can_use_tool`?n.tool_name:``;return` subtype=${n.subtype} request_id=${t}${r?` tool=${r}`:``}`}if(e.type===`control_response`){let{subtype:t,request_id:n}=e.response;return` subtype=${t} request_id=${n}`}return``}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let e=Date.now();this.pingInterval=setInterval(()=>{if(this.state===`connected`&&this.ws){let t=Date.now(),n=t-e;if(e=t,n>I){l(`WebSocketTransport: ${Math.round(n/1e3)}s tick gap detected — process was suspended, forcing reconnect`),f(`info`,`cli_websocket_sleep_detected_on_ping`,{gapMs:n}),this.handleConnectionError();return}if(!this.pongReceived){l(`WebSocketTransport: No pong received, connection appears dead`,{level:`error`}),f(`error`,`cli_websocket_pong_timeout`),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(e){l(`WebSocketTransport: Ping failed: ${e}`,{level:`error`}),f(`error`,`cli_websocket_ping_failed`)}}},P)}stopPingInterval(){this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=null)}startKeepaliveInterval(){this.stopKeepaliveInterval(),!t(process.env.CLAUDE_CODE_REMOTE)&&(this.keepAliveInterval=setInterval(()=>{if(this.state===`connected`&&this.ws)try{this.ws.send(k),this.lastActivityTime=Date.now(),l(`WebSocketTransport: Sent periodic keep_alive data frame`)}catch(e){l(`WebSocketTransport: Periodic keep_alive failed: ${e}`,{level:`error`}),f(`error`,`cli_websocket_keepalive_failed`)}},F))}stopKeepaliveInterval(){this.keepAliveInterval&&(clearInterval(this.keepAliveInterval),this.keepAliveInterval=null)}};c(),D(),p(),n();var z=100,B=15e3,V=3e3,H=class extends R{constructor(e,t={},n,i,a){super(e,t,n,i,a),r(this,`postUrl`,void 0),r(this,`uploader`,void 0),r(this,`streamEventBuffer`,[]),r(this,`streamEventTimer`,null);let{maxConsecutiveFailures:o,onBatchDropped:s}=a??{};this.postUrl=U(e),this.uploader=new O({maxBatchSize:500,maxQueueSize:1e4,baseDelayMs:500,maxDelayMs:8e3,jitterMs:1e3,maxConsecutiveFailures:o,onBatchDropped:(e,t)=>{f(`error`,`cli_hybrid_batch_dropped_max_failures`,{batchSize:e,failures:t}),s?.(e,t)},send:e=>this.postOnce(e)}),l(`HybridTransport: POST URL = ${this.postUrl}`),f(`info`,`cli_hybrid_transport_initialized`)}async write(e){if(e.type===`stream_event`){this.streamEventBuffer.push(e),this.streamEventTimer||(this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),z));return}return await this.uploader.enqueue([...this.takeStreamEvents(),e]),this.uploader.flush()}async writeBatch(e){return await this.uploader.enqueue([...this.takeStreamEvents(),...e]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){this.streamEventTimer&&(clearTimeout(this.streamEventTimer),this.streamEventTimer=null);let e=this.streamEventBuffer;return this.streamEventBuffer=[],e}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){this.streamEventTimer&&(clearTimeout(this.streamEventTimer),this.streamEventTimer=null),this.streamEventBuffer=[];let e=this.uploader,t;Promise.race([e.flush(),new Promise(e=>{t=setTimeout(e,V)})]).finally(()=>{clearTimeout(t),e.close()}),super.close()}async postOnce(e){let t=x();if(!t){l(`HybridTransport: No session token available for POST`),f(`warn`,`cli_hybrid_post_no_token`);return}let n={Authorization:`Bearer ${t}`,"Content-Type":`application/json`},r;try{r=await i.post(this.postUrl,{events:e},{headers:n,validateStatus:()=>!0,timeout:B})}catch(e){throw l(`HybridTransport: POST error: ${e.message}`),f(`warn`,`cli_hybrid_post_network_error`),e}if(r.status>=200&&r.status<300){l(`HybridTransport: POST success count=${e.length}`);return}if(r.status>=400&&r.status<500&&r.status!==429){T(`Hybrid POST ${r.status}: url=${this.postUrl.replace(/token=[^&]+/,`token=***`)} events=${e.length} body=${JSON.stringify(r.data).slice(0,200)}`),l(`HybridTransport: POST returned ${r.status} (permanent), dropping`),f(`warn`,`cli_hybrid_post_client_error`,{status:r.status});return}throw l(`HybridTransport: POST returned ${r.status} (retryable)`),f(`warn`,`cli_hybrid_post_retryable_error`,{status:r.status}),Error(`POST failed with ${r.status}`)}};function U(e){let t=e.protocol===`wss:`?`https:`:`http:`,n=e.pathname;return n=n.replace(`/ws/`,`/session/`),n.endsWith(`/events`)||(n=n.endsWith(`/`)?n+`events`:n+`/events`),`${t}//${e.host}${n}${e.search}`}export{R as n,H as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";import{l as r,p as i}from"./debug-otxXY3j-.js";import{r as a,t as o}from"./execFileNoThrow-B_aZH_GP.js";import{Fd as s,Rd as c}from"./loadAgentsDir-Br5fGLLI.js";import{c as l,i as u,r as d}from"./detection-BPPZCanO.js";function f(){let e,t=new Promise(t=>{e=t}),n=v;return v=t,n.then(()=>e)}function p(e){return o(`it2`,e)}function m(e){let t=e.match(/Created new pane:\s*(.+)/);return t&&t[1]?t[1].trim():``}function h(){let e=process.env.ITERM_SESSION_ID;if(!e)return null;let t=e.indexOf(`:`);return t===-1?null:e.slice(t+1)}var g,_,v,y;e((()=>{r(),a(),d(),s(),t(),g=[],_=!1,v=Promise.resolve(),y=class{constructor(){n(this,`type`,`iterm2`),n(this,`displayName`,`iTerm2`),n(this,`supportsHideShow`,!1)}async isAvailable(){let e=u();if(i(`[ITermBackend] isAvailable check: inITerm2=${e}`),!e)return i(`[ITermBackend] isAvailable: false (not in iTerm2)`),!1;let t=await l();return i(`[ITermBackend] isAvailable: ${t} (it2 CLI ${t?`found`:`not found`})`),t}async isRunningInside(){let e=u();return i(`[ITermBackend] isRunningInside: ${e}`),e}async createTeammatePaneInSwarmView(e,t){i(`[ITermBackend] createTeammatePaneInSwarmView called for ${e} with color ${t}`);let n=await f();try{for(;;){let t=!_;i(`[ITermBackend] Creating pane: isFirstTeammate=${t}, existingPanes=${g.length}`);let n,r;if(t){let e=h();e?(n=[`session`,`split`,`-v`,`-s`,e],i(`[ITermBackend] First split from leader session: ${e}`)):(n=[`session`,`split`,`-v`],i(`[ITermBackend] First split from active session (no leader ID)`))}else r=g[g.length-1],r?(n=[`session`,`split`,`-s`,r],i(`[ITermBackend] Subsequent split from teammate session: ${r}`)):(n=[`session`,`split`],i(`[ITermBackend] Subsequent split from active session (no teammate ID)`));let a=await p(n);if(a.code!==0){if(r){let e=await p([`session`,`list`]);if(e.code===0&&!e.stdout.includes(r)){i(`[ITermBackend] Split failed targeting dead session ${r}, pruning and retrying: ${a.stderr}`);let e=g.indexOf(r);e!==-1&&g.splice(e,1),g.length===0&&(_=!1);continue}}throw Error(`Failed to create iTerm2 split pane: ${a.stderr}`)}t&&(_=!0);let o=m(a.stdout);if(!o)throw Error(`Failed to parse session ID from split output: ${a.stdout}`);return i(`[ITermBackend] Created teammate pane for ${e}: ${o}`),g.push(o),{paneId:o,isFirstTeammate:t}}}finally{n()}}async sendCommandToPane(e,t,n){let r=await p(e?[`session`,`run`,`-s`,e,t]:[`session`,`run`,t]);if(r.code!==0)throw Error(`Failed to send command to iTerm2 pane ${e}: ${r.stderr}`)}async setPaneBorderColor(e,t,n){}async setPaneTitle(e,t,n,r){}async enablePaneBorderStatus(e,t){}async rebalancePanes(e,t){i(`[ITermBackend] Pane rebalancing not implemented for iTerm2`)}async killPane(e,t){let n=await p([`session`,`close`,`-f`,`-s`,e]),r=g.indexOf(e);return r!==-1&&g.splice(r,1),g.length===0&&(_=!1),n.code===0}async hidePane(e,t){return i(`[ITermBackend] hidePane not supported in iTerm2`),!1}async showPane(e,t,n){return i(`[ITermBackend] showPane not supported in iTerm2`),!1}},c(y)}))();export{};
@@ -1 +0,0 @@
1
- import"./chunk-DR8-3Aex.js";import{Mt as e,Rn as t,b as n,f as r,t as i,x as a}from"./src-Di342QoJ.js";import{t as o}from"./jsx-runtime-D-D469L8.js";import{A as s,E as c,O as l}from"./debug-otxXY3j-.js";import{By as u,Iy as d,Ly as f,aS as p,cC as m,lC as h}from"./loadAgentsDir-Br5fGLLI.js";import{t as g}from"./renderOptions-DKe32LfM.js";t(),i(),f(),h(),c(),u();var _=o();function v({filePath:e,errorDescription:t,onExit:i,onReset:o}){return(0,_.jsxs)(r,{title:`Configuration Error`,color:`error`,onCancel:i,children:[(0,_.jsxs)(a,{flexDirection:`column`,gap:1,children:[(0,_.jsxs)(n,{children:[`The configuration file at `,(0,_.jsx)(n,{bold:!0,children:e}),` contains invalid JSON.`]}),(0,_.jsx)(n,{children:t})]}),(0,_.jsxs)(a,{flexDirection:`column`,children:[(0,_.jsx)(n,{bold:!0,children:`Choose an option:`}),(0,_.jsx)(p,{options:[{label:`Exit and fix manually`,value:`exit`},{label:`Reset with default configuration`,value:`reset`}],onChange:e=>{e===`exit`?i():o()},onCancel:i})]})]})}var y=`dark`;async function b({error:t}){let n={...g(!1),theme:y};await new Promise(async r=>{let{unmount:i}=await e((0,_.jsx)(m,{children:(0,_.jsx)(d,{children:(0,_.jsx)(v,{filePath:t.filePath,errorDescription:t.message,onExit:()=>{i(),r(),process.exit(1)},onReset:()=>{s(t.filePath,l(t.defaultConfig,null,2),{flush:!1,encoding:`utf8`}),i(),r(),process.exit(0)}})})}),n)})}export{b as showInvalidConfigDialog};
@@ -1 +0,0 @@
1
- import"./chunk-DR8-3Aex.js";import{Rn as e,b as t,f as n,t as r}from"./src-Di342QoJ.js";import{t as i}from"./jsx-runtime-D-D469L8.js";import{By as a,aS as o}from"./loadAgentsDir-Br5fGLLI.js";import{n as s,t as c}from"./ValidationErrorsList-C5BoLiye.js";e(),r(),a(),s();var l=i();function u({settingsErrors:e,onContinue:r,onExit:i}){function a(e){e===`exit`?i():r()}return(0,l.jsxs)(n,{title:`Settings Error`,onCancel:i,color:`warning`,children:[(0,l.jsx)(c,{errors:e}),(0,l.jsx)(t,{dimColor:!0,children:`Files with errors are skipped entirely, not just the invalid settings.`}),(0,l.jsx)(o,{options:[{label:`Exit and fix manually`,value:`exit`},{label:`Continue without these settings`,value:`continue`}],onChange:a})]})}export{u as InvalidSettingsDialog};
@@ -1 +0,0 @@
1
- import{a as e,n as t,o as n}from"./chunk-DR8-3Aex.js";import{B as r,F as i,L as a,z as o}from"./server-DzOdtq8A.js";import{Rn as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{Ct as l,cn as u,y as d}from"./state-sIHsFpDu.js";import{El as f,Ml as ee,S as p,Tl as m,_ as h,jl as g,ls as _,ss as te}from"./paths-DfGsIjPm.js";import{E as v,O as y,U as b,l as x,p as ne,z as S}from"./debug-otxXY3j-.js";import{n as re,r as C}from"./analytics-DqMQntaB.js";import{c as w,l as T,o as ie}from"./log-DS97_rIr.js";import{BO as ae,Fw as oe,Hw as E,IC as se,Jw as ce,Jx as D,Kw as O,LC as le,Lw as k,Nw as ue,Ow as de,Pw as fe,Qx as A,Vw as pe,Xw as me,Xx as j,Zx as M,dC as he,eS as N,fC as ge,hw as _e,lC as P,oC as F,qO as I,qw as ve,rS as L,sC as ye,tS as be,uC as R,xw as xe}from"./loadAgentsDir-Br5fGLLI.js";import{o as Se,s as Ce}from"./localSearch-CELyiWF6.js";import{c as we,i as Te,l as Ee,o as De,r as Oe,s as ke,t as z}from"./channelNotification-D8NPg8I8.js";import{basename as Ae}from"path";function je(){return h(`tengu_harbor_permissions`,!0)}function B(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);t>>>=0;let n=``;for(let e=0;e<5;e++)n+=V[t%25],t=Math.floor(t/25);return n}function Me(e){let t=B(e);for(let n=0;n<10;n++){if(!H.some(e=>t.includes(e)))return t;t=B(`${e}:${n}`)}return t}function Ne(e){try{let t=y(e);return t.length>200?t.slice(0,200)+`…`:t}catch{return`(unserializable)`}}function Pe(e,t){return e.filter(e=>e.type===`connected`&&t(e.name)&&!!e.capabilities?.experimental?.[`claude/channel`]&&!!e.capabilities?.experimental?.[`claude/channel/permission`])}function Fe(){let e=new Map;return{onResponse(t,n){let r=t.toLowerCase();return e.set(r,n),()=>{e.delete(r)}},resolve(t,n,r){let i=t.toLowerCase(),a=e.get(i);return a?(e.delete(i),a({behavior:n,fromServer:r}),!0):!1}}}var V,H,U=t((()=>{v(),p(),V=`abcdefghijkmnopqrstuvwxyz`,H=[`fuck`,`shit`,`cunt`,`cock`,`dick`,`twat`,`piss`,`crap`,`bitch`,`whore`,`ass`,`tit`,`cum`,`fag`,`dyke`,`nig`,`kike`,`rape`,`nazi`,`damn`,`poo`,`pee`,`wank`,`anus`]}));function W(e){let t=`plugin`in e?e.plugin:`no-plugin`;return`${e.type}:${e.source}:${t}`}function G(e,t){t.length!==0&&e(e=>{let n=new Set(e.plugins.errors.map(e=>W(e))),r=t.filter(e=>!n.has(W(e)));return r.length===0?e:{...e,plugins:{...e.plugins,errors:[...e.plugins.errors,...r]}}})}function Ie(e,t=!1){let n=he(),r=R(e=>e.authVersion),s=R(e=>e.mcp.pluginReconnectKey),c=ge(),u=(0,K.useRef)(new Map),p=(0,K.useRef)(new Set),m=(0,K.useRef)(null);m.current===null&&(m.current=Fe()),(0,K.useEffect)(()=>{{let e=m.current;return!e||!je()?void 0:(c(t=>t.channelPermissionCallbacks===e?t:{...t,channelPermissionCallbacks:e}),()=>{c(e=>e.channelPermissionCallbacks===void 0?e:{...e,channelPermissionCallbacks:void 0})})}},[c]);let{addNotification:h}=ye(),g=(0,K.useRef)([]),_=(0,K.useRef)(null),v=(0,K.useCallback)(()=>{_.current=null;let e=g.current;e.length!==0&&(g.current=[],c(t=>{let n=t.mcp;for(let t of e){let{tools:e,commands:r,resources:i,...a}=t,o=a.type===`disabled`||a.type===`failed`?e??[]:e,s=a.type===`disabled`||a.type===`failed`?r??[]:r,c=a.type===`disabled`||a.type===`failed`?i??[]:i,l=te(a.name),u=n.clients.findIndex(e=>e.name===a.name)===-1?[...n.clients,a]:n.clients.map(e=>e.name===a.name?a:e),d=o===void 0?n.tools:[...f(n.tools,e=>e.name?.startsWith(l)),...o],p=s===void 0?n.commands:[...f(n.commands,e=>_e(e,a.name)),...s],m=c===void 0?n.resources:{...n.resources,...c.length>0?{[a.name]:c}:ee(n.resources,a.name)};n={...n,clients:u,tools:d,commands:p,resources:m}}return{...t,mcp:n}}))},[c]),y=(0,K.useCallback)(e=>{g.current.push(e),_.current===null&&(_.current=setTimeout(v,16))},[v]),b=(0,K.useCallback)(({client:e,tools:t,commands:n,resources:r})=>{switch(y({...e,tools:t,commands:n,resources:r}),e.type){case`connected`:{le(e.client,e.name,c),e.client.onclose=()=>{let t=e.config.type??`stdio`;if(D(e.name,e.config).catch(()=>{ne(`Failed to invalidate the server cache: ${e.name}`)}),E(e.name)){w(e.name,`Server is disabled, skipping automatic reconnection`);return}if(t!==`stdio`&&t!==`sdk`){let n=Le(t);w(e.name,`${n} transport closed/disconnected, attempting automatic reconnection`);let r=u.current.get(e.name);r&&(clearTimeout(r),u.current.delete(e.name)),(async()=>{for(let t=1;t<=J;t++){if(E(e.name)){w(e.name,`Server disabled during reconnection, stopping retry`),u.current.delete(e.name);return}y({...e,type:`pending`,reconnectAttempt:t,maxReconnectAttempts:J});let r=Date.now();try{let i=await L(e.name,e.config),a=Date.now()-r;if(i.client.type===`connected`){w(e.name,`${n} reconnection successful after ${a}ms (attempt ${t})`),u.current.delete(e.name),b(i);return}if(w(e.name,`${n} reconnection attempt ${t} completed with status: ${i.client.type}`),t===J){w(e.name,`Max reconnection attempts (${J}) reached, giving up`),u.current.delete(e.name),b(i);return}}catch(i){let a=Date.now()-r;if(T(e.name,`${n} reconnection attempt ${t} failed after ${a}ms: ${i}`),t===J){w(e.name,`Max reconnection attempts (${J}) reached, giving up`),u.current.delete(e.name),y({...e,type:`failed`});return}}let i=Math.min(Y*2**(t-1),X);w(e.name,`Scheduling reconnection attempt ${t+1} in ${i}ms`),await new Promise(t=>{let n=setTimeout(t,i);u.current.set(e.name,n)})}})()}else y({...e,type:`failed`})};let t=ke(e.name,e.capabilities,e.config.pluginSource),n=De(e.name,d()),r=n?.kind===`plugin`?`${n.name}@${n.marketplace}`:void 0;switch((t.action===`register`||t.kind!==`capability`)&&C(`tengu_mcp_channel_gate`,{registered:t.action===`register`,skip_kind:t.action===`skip`?t.kind:void 0,entry_kind:n?.kind,is_dev:n?.dev??!1,plugin:r}),t.action){case`register`:w(e.name,`Channel notifications registered`),e.client.setNotificationHandler(Oe(),async t=>{let{content:i,meta:a}=t.params;w(e.name,`notifications/claude/channel: ${i.slice(0,80)}`),C(`tengu_mcp_channel_message`,{content_length:i.length,meta_key_count:Object.keys(a??{}).length,entry_kind:n?.kind,is_dev:n?.dev??!1,plugin:r}),ae({mode:`prompt`,value:Ee(e.name,i,a),priority:`next`,isMeta:!0,origin:{kind:`channel`,server:e.name},skipSlashCommands:!0})}),e.capabilities?.experimental?.[`claude/channel/permission`]&&e.client.setNotificationHandler(Te(),async t=>{let{request_id:n,behavior:r}=t.params,i=m.current?.resolve(n,r,e.name)??!1;w(e.name,`notifications/claude/channel/permission: ${n} → ${r} (${i?`matched pending`:`no pending entry — stale or unknown ID`})`)});break;case`skip`:if(e.client.removeNotificationHandler(`notifications/claude/channel`),e.client.removeNotificationHandler(z),w(e.name,`Channel notifications skipped: ${t.reason}`),t.kind!==`capability`&&t.kind!==`session`&&!p.current.has(t.kind)&&(t.kind===`marketplace`||t.kind===`allowlist`||n!==void 0)){p.current.add(t.kind);let e=t.kind===`disabled`?`Channels are not currently available`:t.kind===`auth`?`Channels require claude.ai authentication · run /login`:t.kind===`policy`?`Channels are not enabled for your org · have an administrator set channelsEnabled: true in managed settings`:t.reason;h({key:`channels-blocked-${t.kind}`,priority:`high`,text:e,color:`warning`,timeoutMs:12e3})}break}e.capabilities?.tools?.listChanged&&e.client.setNotificationHandler(o,async()=>{w(e.name,`Received tools/list_changed notification, refreshing tools`);try{let t=A.cache.get(e.name);A.cache.delete(e.name);let n=await A(e),r=n.length;t?t.then(e=>{C(`tengu_mcp_list_changed`,{type:`tools`,previousCount:e.length,newCount:r})},()=>{C(`tengu_mcp_list_changed`,{type:`tools`,newCount:r})}):C(`tengu_mcp_list_changed`,{type:`tools`,newCount:r}),y({...e,tools:n})}catch(t){T(e.name,`Failed to refresh tools after list_changed notification: ${S(t)}`)}}),e.capabilities?.prompts?.listChanged&&e.client.setNotificationHandler(i,async()=>{w(e.name,`Received prompts/list_changed notification, refreshing prompts`),C(`tengu_mcp_list_changed`,{type:`prompts`});try{j.cache.delete(e.name);let[t,n]=await Promise.all([j(e),Promise.resolve([])]);y({...e,commands:[...t,...n]}),q?.()}catch(t){T(e.name,`Failed to refresh prompts after list_changed notification: ${S(t)}`)}}),e.capabilities?.resources?.listChanged&&e.client.setNotificationHandler(a,async()=>{w(e.name,`Received resources/list_changed notification, refreshing resources`),C(`tengu_mcp_list_changed`,{type:`resources`});try{M.cache.delete(e.name);{let t=await M(e);y({...e,resources:t})}}catch(t){T(e.name,`Failed to refresh resources after list_changed notification: ${S(t)}`)}});break}case`needs-auth`:case`failed`:case`pending`:case`disabled`:break}},[y]),x=l();return(0,K.useEffect)(()=>{async function n(){let{servers:n,errors:r}=t?{servers:{},errors:[]}:await k(e),i={...n,...e};G(c,r),c(e=>{let{stale:t,...n}=xe(e.mcp,i);for(let e of t){let t=u.current.get(e.name);t&&(clearTimeout(t),u.current.delete(e.name)),e.type===`connected`&&(e.client.onclose=void 0,D(e.name,e.config).catch(()=>{}))}let r=new Set(n.clients.map(e=>e.name)),a=Object.entries(i).filter(([e])=>!r.has(e)).map(([e,t])=>({name:e,type:E(e)?`disabled`:`pending`,config:t}));return a.length===0&&t.length===0?e:{...e,mcp:{...e.mcp,...n,clients:[...n.clients,...a]}}})}n().catch(e=>{T(`useManageMCPConnections`,`Failed to initialize servers as pending: ${S(e)}`)})},[t,e,c,x,s]),(0,K.useEffect)(()=>{let n=!1;async function r(){let r;t||fe()?r=Promise.resolve({}):(ve(),r=ce());let{servers:i,errors:a}=t?{servers:{},errors:[]}:await k(e,r);if(n)return;G(c,a);let o={...i,...e};N(b,Object.fromEntries(Object.entries(o).filter(([e])=>!E(e)))).catch(e=>{T(`useManageMcpConnections`,`Failed to get MCP resources: ${S(e)}`)});let s={};if(!t){if(s=oe(await r).allowed,n)return;if(Object.keys(s).length>0){let{servers:e}=ue(s,o);s=e}Object.keys(s).length>0&&(c(e=>{let t=new Set(e.mcp.clients.map(e=>e.name)),n=Object.entries(s).filter(([e])=>!t.has(e)).map(([e,t])=>({name:e,type:E(e)?`disabled`:`pending`,config:t}));return n.length===0?e:{...e,mcp:{...e.mcp,clients:[...e.mcp.clients,...n]}}}),N(b,Object.fromEntries(Object.entries(s).filter(([e])=>!E(e)))).catch(e=>{T(`useManageMcpConnections`,`Failed to get claude.ai MCP resources: ${S(e)}`)}))}let l={...o,...s},u={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0},d=[];for(let[e,t]of Object.entries(l))t.scope===`enterprise`?u.enterprise++:t.scope===`user`?u.global++:t.scope===`project`?u.project++:t.scope===`local`?u.user++:t.scope===`dynamic`?u.plugin++:t.scope===`claudeai`&&u.claudeai++,process.env.USER_TYPE===`ant`&&!E(e)&&(t.type===void 0||t.type===`stdio`)&&`command`in t&&d.push(Ae(t.command));C(`tengu_mcp_servers`,{...u,...process.env.USER_TYPE===`ant`&&d.length>0?{stdio_commands:d.sort().join(`,`)}:{}})}return r(),()=>{n=!0}},[t,e,b,c,r,x,s]),(0,K.useEffect)(()=>{let e=u.current;return()=>{for(let t of e.values())clearTimeout(t);e.clear(),_.current!==null&&(clearTimeout(_.current),_.current=null,v())}},[v]),{reconnectMcpServer:(0,K.useCallback)(async e=>{let t=n.getState().mcp.clients.find(t=>t.name===e);if(!t)throw Error(`MCP server ${e} not found`);let r=u.current.get(e);r&&(clearTimeout(r),u.current.delete(e));let i=await L(e,t.config);return b(i),i},[n,b]),toggleMcpServer:(0,K.useCallback)(async e=>{let t=n.getState().mcp.clients.find(t=>t.name===e);if(!t)throw Error(`MCP server ${e} not found`);if(t.type!==`disabled`){let n=u.current.get(e);n&&(clearTimeout(n),u.current.delete(e)),O(e,!1),t.type===`connected`&&await D(e,t.config),y({name:e,type:`disabled`,config:t.config})}else O(e,!0),y({name:e,type:`pending`,config:t.config}),b(await L(e,t.config))},[n,y,b])}}function Le(e){switch(e){case`http`:return`HTTP`;case`ws`:case`ws-ide`:return`WebSocket`;default:return`SSE`}}var K,q,J,Y,X,Re=t((()=>{K=n(s(),1),u(),be(),r(),g(),m(),re(),pe(),x(),F(),P(),b(),ie(),I(),we(),U(),me(),se(),_(),de(),q=(Se(),e(Ce)).clearSkillIndexCache,J=5,Y=1e3,X=3e4}));function ze(){let e=(0,Z.useContext)($);if(!e)throw Error(`useMcpReconnect must be used within MCPConnectionManager`);return e.reconnectMcpServer}function Be(){let e=(0,Z.useContext)($);if(!e)throw Error(`useMcpToggleEnabled must be used within MCPConnectionManager`);return e.toggleMcpServer}function Ve({children:e,dynamicMcpConfig:t,isStrictMcpConfig:n}){let{reconnectMcpServer:r,toggleMcpServer:i}=Ie(t,n),a=(0,Z.useMemo)(()=>({reconnectMcpServer:r,toggleMcpServer:i}),[r,i]);return(0,Q.jsx)($.Provider,{value:a,children:e})}var Z,Q,$,He=t((()=>{Z=n(s(),1),Re(),Q=c(),$=(0,Z.createContext)(null)}));export{Pe as a,Ne as c,Be as i,He as n,U as o,ze as r,Me as s,Ve as t};
@@ -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,t as a,x as o}from"./src-Di342QoJ.js";import{t as s}from"./jsx-runtime-D-D469L8.js";import{Dw as c,Ow as l,Vw as u,gw as d,zw as f}from"./loadAgentsDir-Br5fGLLI.js";function p({scope:e,parsingErrors:t,warnings:n}){let r=t.length>0,a=n.length>0;return!r&&!a?null:(0,_.jsxs)(o,{flexDirection:`column`,marginTop:1,children:[(0,_.jsxs)(o,{children:[(r||a)&&(0,_.jsxs)(i,{color:r?`error`:`warning`,children:[`[`,r?`Failed to parse`:`Contains warnings`,`] `]}),(0,_.jsx)(i,{children:c(e)})]}),(0,_.jsxs)(o,{children:[(0,_.jsx)(i,{dimColor:!0,children:`Location: `}),(0,_.jsx)(i,{dimColor:!0,children:d(e)})]}),(0,_.jsxs)(o,{marginLeft:1,flexDirection:`column`,children:[t.map((e,t)=>{let n=e.mcpErrorMetadata?.serverName;return(0,_.jsx)(o,{children:(0,_.jsxs)(i,{children:[(0,_.jsx)(i,{dimColor:!0,children:`└ `}),(0,_.jsx)(i,{color:`error`,children:`[Error]`}),(0,_.jsxs)(i,{dimColor:!0,children:[` `,n&&`[${n}] `,e.path&&e.path!==``?`${e.path}: `:``,e.message]})]})},`error-${t}`)}),n.map((e,t)=>{let n=e.mcpErrorMetadata?.serverName;return(0,_.jsx)(o,{children:(0,_.jsxs)(i,{children:[(0,_.jsx)(i,{dimColor:!0,children:`└ `}),(0,_.jsx)(i,{color:`warning`,children:`[Warning]`}),(0,_.jsxs)(i,{dimColor:!0,children:[` `,n&&`[${n}] `,e.path&&e.path!==``?`${e.path}: `:``,e.message]})]})},`warning-${t}`)})]})]})}function m(){let e=(0,g.useMemo)(()=>[{scope:`user`,config:f(`user`)},{scope:`project`,config:f(`project`)},{scope:`local`,config:f(`local`)},{scope:`enterprise`,config:f(`enterprise`)}],[]),t=e.some(({config:e})=>h(e.errors,`fatal`).length>0),r=e.some(({config:e})=>h(e.errors,`warning`).length>0);return!t&&!r?null:(0,_.jsxs)(o,{flexDirection:`column`,marginTop:1,marginBottom:1,children:[(0,_.jsx)(i,{bold:!0,children:`MCP Config Diagnostics`}),(0,_.jsx)(o,{marginTop:1,children:(0,_.jsxs)(i,{dimColor:!0,children:[`For help configuring MCP servers, see:`,` `,(0,_.jsx)(n,{url:`https://code.claude.com/docs/en/mcp`,children:`https://code.claude.com/docs/en/mcp`})]})}),e.map(({scope:e,config:t})=>(0,_.jsx)(p,{scope:e,parsingErrors:h(t.errors,`fatal`),warnings:h(t.errors,`warning`)},e))]})}function h(e,t){return e.filter(e=>e.mcpErrorMetadata?.severity===t)}var g,_,v=e((()=>{g=t(r()),u(),l(),a(),_=s()}));export{v as n,m as t};
@@ -1,3 +0,0 @@
1
- import{n as e,o as t,r as n}from"./chunk-DR8-3Aex.js";import{n as r,t as i}from"./figures-gfT9mM8P.js";import{F as a,Rn as o,b as s,m as c,nt as l,t as u,tt as d,x as f}from"./src-Di342QoJ.js";import{t as p}from"./jsx-runtime-D-D469L8.js";import{Ct as m,cn as h,mr as g,vt as _}from"./state-sIHsFpDu.js";import{Ht as v,es as y,no as b,on as x,oo as S,pi as C,rs as w,vi as T}from"./paths-DfGsIjPm.js";import{n as E,r as D}from"./analytics-DqMQntaB.js";import{n as O,t as k}from"./cwd--iizewsn.js";import{O as A,et as j,h as ee,m as te,o as ne,s as M}from"./log-DS97_rIr.js";import{b as N,x as re}from"./teammate-DMYOtLTK.js";import{C as ie,g as ae,x as P}from"./startupProfiler-CnDpob1v.js";import{Cn as oe,Co as F,Dy as se,Eo as I,Ey as ce,Fc as le,Gc as L,Go as ue,Jy as de,Ky as fe,Mc as pe,Mo as me,NC as he,Nc as ge,Ny as R,Oo as z,Oy as _e,Uo as B,Wc as ve,Yi as ye,Yo as be,_D as xe,aS as Se,cu as Ce,fk as we,fs as Te,hT as Ee,ha as De,jC as Oe,lC as ke,ln as Ae,na as je,oS as Me,pk as Ne,qi as Pe,qo as Fe,uC as Ie,uk as V,uu as H,vD as Le,vo as Re,yn as ze}from"./loadAgentsDir-Br5fGLLI.js";import{E as Be,T as Ve,c as He,d as Ue,w as We}from"./sessionTracing-BIKXLTJZ.js";import{t as Ge}from"./useKeybinding-FsOnjW6T.js";import{l as Ke,u as qe}from"./referral-DOqhciQu.js";import{n as Je,t as Ye}from"./slashCommandParsing-Cari0pNg.js";import*as U from"path";import{randomUUID as W}from"crypto";o();var G=p();r(),u(),h(),E(),O(),j(),te(),ne(),re(),P(),w(),S(),x(),we(),We(),xe(),Oe(),He(),Ce(),ve(),le(),Te(),B(),je(),oe(),Ye();var Xe={"`":"`",'"':`"`,"<":`>`,"{":`}`,"[":`]`,"(":`)`,"'":`'`};function Ze(e,t){if(!new RegExp(t,`i`).test(e)||e.startsWith(`/`))return[];let n=[],r=null,i=0,a=e=>!!e&&/[\p{L}\p{N}_]/u.test(e);for(let t=0;t<e.length;t++){let o=e[t];if(r){if(r===`[`&&o===`[`){i=t;continue}if(o!==Xe[r]||r===`'`&&a(e[t+1]))continue;n.push({start:i,end:t+1}),r=null}else (o===`<`&&t+1<e.length&&/[a-zA-Z/]/.test(e[t+1])||o===`'`&&!a(e[t-1])||o!==`<`&&o!==`'`&&o in Xe)&&(r=o,i=t)}let o=[],s=RegExp(`\\b${t}\\b`,`gi`),c=e.matchAll(s);for(let t of c){if(t.index===void 0)continue;let r=t.index,i=r+t[0].length;if(n.some(e=>r>=e.start&&r<e.end))continue;let s=e[r-1],c=e[i];s===`/`||s===`\\`||s===`-`||c===`/`||c===`\\`||c===`-`||c===`?`||c===`.`&&a(e[i+1])||o.push({word:t[0],start:r,end:i})}return o}function K(e){return Ze(e,`ultraplan`)}function Qe(e){return Ze(e,`ultrareview`)}function $e(e){return K(e).length>0}function et(e){let[t]=K(e);if(!t)return e;let n=e.slice(0,t.start),r=e.slice(t.end);return(n+r).trim()?n+t.word.slice(5)+r:``}function tt(e){let t=e.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(t)}function nt(e){let t=e.toLowerCase().trim();return t===`continue`?!0:/\b(keep going|go on)\b/.test(t)}function rt(e,t,n,r,i,a,o){let s=W();g(s);let c=typeof e==`string`?e:e.find(e=>e.type===`text`)?.text||``;Ue(c);let l=typeof e==`string`?e:e.findLast(e=>e.type===`text`)?.text||``;return l&&Ve(`user_prompt`,{prompt_length:String(l.length),prompt:Be(l),"prompt.id":s}),D(`tengu_input_prompt`,{is_negative:tt(c),is_keep_going:nt(c)}),t.length>0?{messages:[I({content:[...typeof e==`string`?e.trim()?[{type:`text`,text:e}]:[]:e,...t],uuid:i,imagePasteIds:n.length>0?n:void 0,permissionMode:a,isMeta:o||void 0}),...r],shouldQuery:!0}:{messages:[I({content:e,uuid:i,permissionMode:a,isMeta:o||void 0}),...r],shouldQuery:!0}}E(),B();async function it({input:e,preExpansionInput:t,mode:n,setToolJSX:r,context:i,pastedContents:a,ideSelection:o,messages:s,setUserInputOnProcessing:c,uuid:l,isAlreadyProcessing:u,querySource:d,canUseTool:f,skipSlashCommands:p,bridgeOrigin:m,isMeta:h,skipAttachments:g,autonomy:_}){let v=typeof e==`string`?e:null,y=v?.startsWith(`/`)&&!p;n===`prompt`&&v!==null&&!h&&!y&&c?.(v),H(`query_process_user_input_base_start`);let b=i.getAppState(),x=await ot(e,n,r,i,a,o,s,l,u,d,f,b.toolPermissionContext.mode,p,m,h,g,t,_);if(H(`query_process_user_input_base_end`),!x.shouldQuery)return x;H(`query_hooks_start`);let S=me(e)||``;for await(let t of Ae(S,b.toolPermissionContext.mode,i,i.requestPrompt))if(t.message?.type!==`progress`){if(t.blockingError)return{messages:[F(`${ze(t.blockingError)}\n\nOriginal prompt: ${e}`,`warning`)],shouldQuery:!1,allowedTools:x.allowedTools};if(t.preventContinuation){let e=t.stopReason?`Operation stopped by hook: ${t.stopReason}`:`Operation stopped by hook`;return x.messages.push(I({content:e})),x.shouldQuery=!1,x}if(t.additionalContexts&&t.additionalContexts.length>0&&x.messages.push(pe({type:`hook_additional_context`,content:t.additionalContexts.map(at),hookName:`UserPromptSubmit`,toolUseID:`hook-${W()}`,hookEvent:`UserPromptSubmit`})),t.message)switch(t.message.attachment.type){case`hook_success`:if(!t.message.attachment.content)break;x.messages.push({...t.message,attachment:{...t.message.attachment,content:at(t.message.attachment.content)}});break;default:x.messages.push(t.message);break}}return H(`query_hooks_end`),x}var q=1e4;function at(e){return e.length>q?`${e.substring(0,q)}… [output truncated - exceeded ${q} characters]`:e}async function ot(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=null,y=[],b=[],x=e;if(typeof e==`string`)v=e;else if(e.length>0){H(`query_image_processing_start`);let t=[];for(let n of e)if(n.type===`image`){let e=await Ne(n);if(e.dimensions){let t=V(e.dimensions);t&&b.push(t)}t.push(e.block)}else t.push(n);x=t,H(`query_image_processing_end`);let n=t[t.length-1];n?.type===`text`?(v=n.text,y=t.slice(0,-1)):y=t}if(v===null&&t!==`prompt`)throw Error(`Mode: ${t} requires a string input.`);let S=i?Object.values(i).filter(L):[],C=S.map(e=>e.id),w=i?await he(i):new Map;H(`query_pasted_image_processing_start`);let T=await Promise.all(S.map(async e=>{let t={type:`image`,source:{type:`base64`,media_type:e.mediaType||`image/png`,data:e.content}};return D(`tengu_pasted_image_resize_attempt`,{original_size_bytes:e.content.length}),{resized:await Ne(t),originalDimensions:e.dimensions,sourcePath:e.sourcePath??w.get(e.id)}})),E=[];for(let{resized:e,originalDimensions:t,sourcePath:n}of T){if(e.dimensions){let t=V(e.dimensions,n);t&&b.push(t)}else if(t){let e=V(t,n);e&&b.push(e)}else n&&b.push(`[Image source: ${n}]`);E.push(e.block)}H(`query_pasted_image_processing_end`);let O=f;if(p&&v!==null&&v.startsWith(`/`)){let e=Je(v),t=e?Pe(e.commandName,r.options.commands):void 0;if(t){let n=ye(t,e?.args??``);if(n.ok)O=!1;else{let e=n.reason??`/${De(t)} isn't available over Remote Control.`;return{messages:[I({content:v,uuid:s}),Re(`<local-command-stdout>${e}</local-command-stdout>`)],shouldQuery:!1,resultText:e}}}}if(t===`prompt`&&!r.options.isNonInteractiveSession&&v!==null&&!O&&!v.startsWith(`/`)&&!r.getAppState().ultraplanSessionUrl&&!r.getAppState().ultraplanLaunching&&$e(g??v)){D(`tengu_ultraplan_keyword`,{});let e=et(v).trim(),{processSlashCommand:t}=await import(`./processSlashCommand-CB3wyAX7.js`);return J(await t(`/ultraplan ${e}`,y,E,[],r,n,s,c,u,_),b)}let k=!h&&v!==null&&(t!==`prompt`||O||!v.startsWith(`/`));H(`query_attachment_loading_start`);let A=k?await Le(ge(v,r,a??null,[],o,l)):[];if(H(`query_attachment_loading_end`),v!==null&&t===`bash`){let{processBashCommand:e}=await import(`./processBashCommand-CvR9-gf8.js`);return J(await e(v,y,A,r,n),b)}if(v!==null&&!O&&v.startsWith(`/`)){let{processSlashCommand:e}=await import(`./processSlashCommand-CB3wyAX7.js`);return J(await e(v,y,E,A,r,n,s,c,u,_),b)}if(v!==null&&t===`prompt`){let e=v.trim(),t=A.find(e=>e.attachment.type===`agent_mention`);if(t){let n=`@agent-${t.attachment.agentType}`,r=e===n;D(`tengu_subagent_at_mention`,{is_subagent_only:r,is_prefix:e.startsWith(n)&&!r})}}return J(rt(x,E,C,A,s,d,m),b)}function J(e,t){return t.length>0&&e.messages.push(I({content:t.map(e=>({type:`text`,text:e})),isMeta:!0})),e}h(),T();function st(e){return e===`Agent`?y:e}function ct(e){let t=b()?.outputStyle??`default`,n={type:`system`,subtype:`init`,cwd:k(),session_id:m(),tools:e.tools.map(e=>st(e.name)),mcp_servers:e.mcpClients.map(e=>({name:e.name,status:e.type})),model:e.model,permissionMode:e.permissionMode,slash_commands:e.commands.filter(e=>e.userInvocable!==!1).map(e=>e.name),apiKeySource:v().source,betas:_(),claude_code_version:`2.7.0`,output_style:t,agents:e.agents.map(e=>e.agentType),skills:e.skills.filter(e=>e.userInvocable!==!1).map(e=>e.name),plugins:e.plugins.map(e=>({name:e.name,path:e.path,source:e.source})),uuid:W()};return n.fast_mode_state=C(e.model,e.fastMode),n}var lt=n({MessageSelector:()=>dt,messagesAfterAreOnlySynthetic:()=>Z,selectableUserMessagesFilter:()=>X});function ut(e){return e.type===`text`}function Y(e){return e===`summarize`||e===`summarize_up_to`}function dt({messages:e,onPreRestore:t,onRestoreMessage:n,onRestoreCode:r,onSummarize:a,onClose:o,preselectedMessage:u}){let p=Ie(e=>e.fileHistory),[m,h]=(0,Q.useState)(void 0),g=se(),_=(0,Q.useMemo)(W,[]),v=(0,Q.useMemo)(()=>[...e.filter(X),{...I({content:``}),uuid:_}],[e,_]),[y,b]=(0,Q.useState)(v.length-1),x=Math.max(0,Math.min(y-Math.floor($/2),v.length-$)),S=v.length>1,[C,w]=(0,Q.useState)(u),[T,E]=(0,Q.useState)(void 0);(0,Q.useEffect)(()=>{if(!u||!g)return;let e=!1;return _e(p,u.uuid).then(t=>{e||E(t)}),()=>{e=!0}},[u,g,p]);let[O,k]=(0,Q.useState)(!1),[A,j]=(0,Q.useState)(null),[ee,te]=(0,Q.useState)(`both`),[ne,N]=(0,Q.useState)(``),[re,ie]=(0,Q.useState)(``);function P(e){let t=e?[{value:`both`,label:`Restore code and conversation`},{value:`conversation`,label:`Restore conversation`},{value:`code`,label:`Restore code`}]:[{value:`conversation`,label:`Restore conversation`}],n={type:`input`,placeholder:`add context (optional)`,initialValue:``,allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:`: `};return t.push({value:`summarize`,label:`Summarize from here`,...n,onChange:N}),process.env.USER_TYPE===`ant`&&t.push({value:`summarize_up_to`,label:`Summarize up to here`,...n,onChange:ie}),t.push({value:`nevermind`,label:`Never mind`}),t}(0,Q.useEffect)(()=>{D(`tengu_message_selector_opened`,{})},[]);async function oe(e){t(),k(!0);try{await n(e),k(!1),o()}catch(e){M(e),k(!1),h(`Failed to restore the conversation:\n${e}`)}}async function F(t){let n=e.indexOf(t);if(D(`tengu_message_selector_selected`,{index_from_end:e.length-1-n,message_type:t.type,is_current_prompt:!1}),!e.includes(t)){o();return}if(!g){await oe(t);return}let r=await _e(p,t.uuid);w(t),E(r)}async function le(e){if(D(`tengu_message_selector_restore_option_selected`,{option:e}),!C){h(`Message not found.`);return}if(e===`nevermind`){u?o():w(void 0);return}if(Y(e)){t(),k(!0),j(e),h(void 0);try{let t=e===`summarize_up_to`?`up_to`:`from`;await a(C,(t===`up_to`?re:ne).trim()||void 0,t),k(!1),j(null),w(void 0),o()}catch(e){M(e),k(!1),j(null),w(void 0),h(`Failed to summarize:\n${e}`)}return}t(),k(!0),h(void 0);let i=null,s=null;if(e===`code`||e===`both`)try{await r(C)}catch(e){i=e,M(i)}if(e===`conversation`||e===`both`)try{await n(C)}catch(e){s=e,M(s)}k(!1),w(void 0),s&&i?h(`Failed to restore the conversation and code:\n${s}\n${i}`):s?h(`Failed to restore the conversation:\n${s}`):i?h(`Failed to restore the code:\n${i}`):o()}let L=qe(),ue=(0,Q.useCallback)(()=>{if(C&&!u){w(void 0);return}D(`tengu_message_selector_cancelled`,{}),o()},[o,C,u]),de=(0,Q.useCallback)(()=>b(e=>Math.max(0,e-1)),[]),pe=(0,Q.useCallback)(()=>b(e=>Math.min(v.length-1,e+1)),[v.length]),me=(0,Q.useCallback)(()=>b(0),[]),he=(0,Q.useCallback)(()=>b(v.length-1),[v.length]),ge=(0,Q.useCallback)(()=>{let e=v[y];e&&F(e)},[v,y,F]);d(`confirm:no`,ue,{context:`Confirmation`,isActive:!C}),l({"messageSelector:up":de,"messageSelector:down":pe,"messageSelector:top":me,"messageSelector:bottom":he,"messageSelector:select":ge},{context:`MessageSelector`,isActive:!O&&!m&&!C&&S});let[R,z]=(0,Q.useState)({});(0,Q.useEffect)(()=>{async function t(){g&&Promise.all(v.map(async(t,n)=>{if(t.uuid!==_){let r=ce(p,t.uuid),i=v.at(n+1),a=r?_t(e,t.uuid,i?.uuid===_?void 0:i?.uuid):void 0;z(a===void 0?e=>({...e,[n]:void 0}):e=>({...e,[n]:a}))}}))}t()},[v,e,_,p,g]);let B=g&&T?.filesChanged&&T.filesChanged.length>0,ve=!m&&!C&&!u&&S;return(0,G.jsxs)(f,{flexDirection:`column`,width:`100%`,children:[(0,G.jsx)(c,{color:`suggestion`}),(0,G.jsxs)(f,{flexDirection:`column`,marginX:1,gap:1,children:[(0,G.jsx)(s,{bold:!0,color:`suggestion`,children:`Rewind`}),m&&(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)(s,{color:`error`,children:[`Error: `,m]})}),!S&&(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(s,{children:`Nothing to rewind to yet.`})}),!m&&C&&S&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(s,{children:[`Confirm you want to restore `,!T&&`the conversation `,`to the point before you sent this message:`]}),(0,G.jsxs)(f,{flexDirection:`column`,paddingLeft:1,borderStyle:`single`,borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[(0,G.jsx)(gt,{userMessage:C,color:`text`,isCurrent:!1}),(0,G.jsxs)(s,{dimColor:!0,children:[`(`,ae(new Date(C.timestamp)),`)`]})]}),(0,G.jsx)(pt,{selectedRestoreOption:ee,canRestoreCode:!!B,diffStatsForRestore:T}),O&&Y(A)?(0,G.jsxs)(f,{flexDirection:`row`,gap:1,children:[(0,G.jsx)(fe,{}),(0,G.jsx)(s,{children:`Summarizing…`})]}):(0,G.jsx)(Se,{isDisabled:O,options:P(!!B),defaultFocusValue:B?`both`:`conversation`,onFocus:e=>te(e),onChange:e=>le(e),onCancel:()=>u?o():w(void 0)}),B&&(0,G.jsx)(f,{marginBottom:1,children:(0,G.jsxs)(s,{dimColor:!0,children:[i.warning,` Rewinding does not affect files edited manually or via bash.`]})})]}),ve&&(0,G.jsxs)(G.Fragment,{children:[g?(0,G.jsx)(s,{children:`Restore the code and/or conversation to the point before…`}):(0,G.jsx)(s,{children:`Restore and fork the conversation to the point before…`}),(0,G.jsx)(f,{width:`100%`,flexDirection:`column`,children:v.slice(x,x+$).map((e,t)=>{let n=x+t,r=n===y,a=e.uuid===_,o=n in R,c=R[n],l=c?.filesChanged&&c.filesChanged.length;return(0,G.jsxs)(f,{height:g?3:2,overflow:`hidden`,width:`100%`,flexDirection:`row`,children:[(0,G.jsx)(f,{width:2,minWidth:2,children:r?(0,G.jsxs)(s,{color:`permission`,bold:!0,children:[i.pointer,` `]}):(0,G.jsx)(s,{children:` `})}),(0,G.jsxs)(f,{flexDirection:`column`,children:[(0,G.jsx)(f,{flexShrink:1,height:1,overflow:`hidden`,children:(0,G.jsx)(gt,{userMessage:e,color:r?`suggestion`:void 0,isCurrent:a,paddingRight:10})}),g&&o&&(0,G.jsx)(f,{height:1,flexDirection:`row`,children:c?(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(s,{dimColor:!r,color:`inactive`,children:l?(0,G.jsxs)(G.Fragment,{children:[l===1&&c.filesChanged[0]?`${U.basename(c.filesChanged[0])} `:`${l} files changed `,(0,G.jsx)(ht,{diffStats:c})]}):(0,G.jsx)(G.Fragment,{children:`No code changes`})})}):(0,G.jsxs)(s,{dimColor:!0,color:`warning`,children:[i.warning,` No code restore`]})})]})]},e.uuid)})})]}),!C&&(0,G.jsx)(s,{dimColor:!0,italic:!0,children:L.pending?(0,G.jsxs)(G.Fragment,{children:[`Press `,L.keyName,` again to exit`]}):(0,G.jsxs)(G.Fragment,{children:[!m&&S&&`Enter to continue · `,`Esc to exit`]})})]})]})}function ft(e){switch(e){case`summarize`:return`Messages after this point will be summarized.`;case`summarize_up_to`:return`Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.`;case`both`:case`conversation`:return`The conversation will be forked.`;case`code`:case`nevermind`:return`The conversation will be unchanged.`}}function pt({selectedRestoreOption:e,canRestoreCode:t,diffStatsForRestore:n}){let r=t&&(e===`both`||e===`code`);return(0,G.jsxs)(f,{flexDirection:`column`,children:[(0,G.jsx)(s,{dimColor:!0,children:ft(e)}),!Y(e)&&(r?(0,G.jsx)(mt,{diffStatsForRestore:n}):(0,G.jsx)(s,{dimColor:!0,children:`The code will be unchanged.`}))]})}function mt({diffStatsForRestore:e}){if(e===void 0)return;if(!e.filesChanged||!e.filesChanged[0])return(0,G.jsx)(s,{dimColor:!0,children:`The code has not changed (nothing will be restored).`});let t=e.filesChanged.length,n=``;return n=t===1?U.basename(e.filesChanged[0]||``):t===2?`${U.basename(e.filesChanged[0]||``)} and ${U.basename(e.filesChanged[1]||``)}`:`${U.basename(e.filesChanged[0]||``)} and ${e.filesChanged.length-1} other files`,(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)(s,{dimColor:!0,children:[`The code will be restored `,(0,G.jsx)(ht,{diffStats:e}),` in `,n,`.`]})})}function ht({diffStats:e}){if(!(!e||!e.filesChanged))return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(s,{color:`diffAddedWord`,children:[`+`,e.insertions,` `]}),(0,G.jsxs)(s,{color:`diffRemovedWord`,children:[`-`,e.deletions]})]})}function gt({userMessage:e,color:t,dimColor:n,isCurrent:r,paddingRight:i}){let{columns:o}=a();if(r)return(0,G.jsx)(f,{width:`100%`,children:(0,G.jsx)(s,{italic:!0,color:t,dimColor:n,children:`(current)`})});let c=e.message.content,l=typeof c==`string`?null:c[c.length-1],u=ee(typeof c==`string`?c.trim():l&&ut(l)?l.text.trim():`(no prompt)`);if(ue(u))return(0,G.jsx)(f,{flexDirection:`row`,width:`100%`,children:(0,G.jsx)(s,{italic:!0,color:t,dimColor:n,children:`((empty message))`})});if(u.includes(`<bash-input>`)){let e=z(u,`bash-input`);if(e)return(0,G.jsxs)(f,{flexDirection:`row`,width:`100%`,children:[(0,G.jsx)(s,{color:`bashBorder`,children:`!`}),(0,G.jsxs)(s,{color:t,dimColor:n,children:[` `,e]})]})}if(u.includes(`<command-message>`)){let e=z(u,A),r=z(u,`command-args`),i=z(u,`skill-format`)===`true`;if(e)return i?(0,G.jsx)(f,{flexDirection:`row`,width:`100%`,children:(0,G.jsxs)(s,{color:t,dimColor:n,children:[`Skill(`,e,`)`]})}):(0,G.jsx)(f,{flexDirection:`row`,width:`100%`,children:(0,G.jsxs)(s,{color:t,dimColor:n,children:[`/`,e,` `,r]})})}return(0,G.jsx)(f,{flexDirection:`row`,width:`100%`,children:(0,G.jsx)(s,{color:t,dimColor:n,children:i?ie(u,o-i,!0):u.slice(0,500).split(`
2
- `).slice(0,4).join(`
3
- `)})})}function _t(e,t,n){let r=e.findIndex(e=>e.uuid===t);if(r===-1)return;let i=n?e.findIndex(e=>e.uuid===n):e.length;i===-1&&(i=e.length);let a=[],o=0,s=0;for(let t=r+1;t<i;t++){let n=e[t];if(!n||!be(n))continue;let r=n.toolUseResult;if(!(!r||!r.filePath||!r.structuredPatch)){a.includes(r.filePath)||a.push(r.filePath);try{if(`type`in r&&r.type===`create`)o+=r.content.split(/\r?\n/).length;else for(let e of r.structuredPatch){let t=N(e.lines,e=>e.startsWith(`+`)),n=N(e.lines,e=>e.startsWith(`-`));o+=t,s+=n}}catch{}}}return{filesChanged:a,insertions:o,deletions:s}}function X(e){if(e.type!==`user`||Array.isArray(e.message.content)&&e.message.content[0]?.type===`tool_result`||Fe(e)||e.isMeta||e.isCompactSummary||e.isVisibleInTranscriptOnly)return!1;let t=e.message.content,n=typeof t==`string`?null:t[t.length-1],r=typeof t==`string`?t.trim():n&&ut(n)?n.text.trim():``;return!(r.indexOf(`<local-command-stdout>`)!==-1||r.indexOf(`<local-command-stderr>`)!==-1||r.indexOf(`<bash-stdout>`)!==-1||r.indexOf(`<bash-stderr>`)!==-1||r.indexOf(`<task-notification>`)!==-1||r.indexOf(`<tick>`)!==-1||r.indexOf(`<teammate-message`)!==-1)}function Z(e,t){for(let n=t+1;n<e.length;n++){let t=e[n];if(t&&!Fe(t)&&!be(t)&&t.type!==`progress`&&t.type!==`system`&&t.type!==`attachment`&&!(t.type===`user`&&t.isMeta)){if(t.type===`assistant`){let e=t.message.content;if(Array.isArray(e)&&e.some(e=>e.type===`text`&&e.text.trim()||e.type===`tool_use`))return!1;continue}if(t.type===`user`)return!1}}return!0}var Q,$,vt=e((()=>{Q=t(o()),E(),ke(),R(),Ke(),Ge(),B(),Me(),de(),Ee(),$=7}));export{X as a,it as c,Z as i,K as l,lt as n,ct as o,vt as r,st as s,dt as t,Qe as u};
@@ -1,11 +0,0 @@
1
- import{a as e,n as t,o as n,r}from"./chunk-DR8-3Aex.js";import{s as i,u as a}from"./envUtils-BWeoiL4Y.js";import{n as o,t as s}from"./figures-gfT9mM8P.js";import{B as c,Cn as l,F as u,Ft as d,In as f,Ln as p,Lt as m,Rn as h,W as g,b as _,m as v,t as y,v as b,x,y as S}from"./src-Di342QoJ.js";import{t as C}from"./jsx-runtime-D-D469L8.js";import{L as w,W as ee,cn as T,y as E}from"./state-sIHsFpDu.js";import{Ac as D,Gs as O,Gt as te,Hs as ne,Ht as k,Ka as re,Ko as ie,Lr as A,Pc as j,Po as M,Pr as N,S as ae,Sc as P,Ur as oe,Zc as F,dn as I,el as se,g as L,jo as ce,on as le,oo as ue,qo as de,qt as fe}from"./paths-DfGsIjPm.js";import{d as pe,l as R,o as me,p as z,u as he}from"./debug-otxXY3j-.js";import{n as ge,r as B}from"./analytics-DqMQntaB.js";import{n as _e,t as ve}from"./cwd--iizewsn.js";import{a as ye,n as be}from"./env-BH-OBzcA.js";import{H as V,V as xe,W as Se,et as Ce}from"./log-DS97_rIr.js";import{C as we,g as Te,m as Ee,n as De,r as Oe,t as ke,x as Ae}from"./startupProfiler-CnDpob1v.js";import{n as je,t as Me}from"./sleep-8Eb9j_Ly.js";import{$h as Ne,$k as Pe,$v as Fe,Ax as Ie,Bu as Le,CS as Re,CT as ze,C_ as Be,Do as Ve,ET as He,Fo as Ue,Gx as We,Ho as Ge,Hu as Ke,IA as qe,Io as Je,Ko as Ye,Lo as Xe,Ms as Ze,NA as Qe,OT as $e,Oo as et,Ox as tt,Po as nt,Px as rt,Qh as it,Qv as at,Ro as ot,Rs as st,Ru as ct,ST as lt,TS as ut,TT as dt,Tj as ft,Uo as pt,Uu as mt,Vu as ht,Vw as gt,Wx as _t,Xk as vt,Zk as yt,Zo as bt,a_ as xt,as as St,bT as Ct,eg as wt,es as Tt,f_ as Et,gS as Dt,hT as Ot,ho as kt,iO as At,kT as jt,kj as Mt,ku as Nt,lC as Pt,lo as Ft,mS as It,ng as Lt,no as Rt,o_ as zt,pS as Bt,p_ as Vt,qk as Ht,rO as Ut,ro as Wt,tg as Gt,to as Kt,ts as qt,uC as Jt,uo as Yt,wT as Xt,w_ as Zt,wb as Qt,zu as $t,zw as en,zx as tn}from"./loadAgentsDir-Br5fGLLI.js";import{Qn as nn,Xn as rn}from"./prompt-B8M-HLIS.js";import{f as an,p as on}from"./xml-DvVQHZ1N.js";import{C as sn,y as cn}from"./rcDebugLog-BoroyfjB.js";import{n as ln,r as un,t as dn}from"./browser-DwnUS505.js";import{d as fn,f as pn,h as mn,p as hn}from"./terminalSetup-CmAEgt-5.js";import{a as gn,o as _n,r as vn,s as yn,t as bn}from"./referral-DOqhciQu.js";import{n as xn,t as Sn}from"./SentryErrorBoundary-BQJXHbWh.js";import{a as Cn,n as wn}from"./voiceModeEnabled-Bq_rttkL.js";import{c as Tn,r as En}from"./releaseNotes-CXY-xAja.js";import{a as Dn,c as On,d as kn,i as An,l as jn,n as Mn,o as Nn,r as Pn,t as Fn,u as In}from"./logoV2Utils-BN_HrHSc.js";import{n as Ln,t as Rn}from"./systemTheme-dDbitcxB.js";import{n as zn,r as Bn}from"./PromptInputFooterSuggestions-BImBB6Yk.js";import{n as Vn,t as Hn}from"./useMainLoopModel-CaQLIr1V.js";import{n as Un,t as Wn}from"./modalContext-CmSKRyea.js";import{i as Gn,n as Kn,r as qn,s as Jn,t as Yn}from"./OverageCreditUpsell-UWtCrOmN.js";import{n as Xn,r as Zn,t as Qn}from"./statusNoticeHelpers-CxoN9oDh.js";import{homedir as $n}from"os";import{relative as er}from"path";import{fileURLToPath as tr}from"url";function nr(e,t){for(let n of e)if(!t.has(n))return!1;return!0}var rr=t((()=>{}));function ir(e){if(e.type!==`user`)return!1;let t=Array.isArray(e.message.content)?e.message.content[0]:void 0;return!t||typeof t==`string`||t?.type!==`text`||!t.text.includes(`<task-notification`)||et(t.text,`status`)!==`completed`?!1:et(t.text,`summary`)?.startsWith(`Background command `)??!1}function ar(e,t){if(!ut()||t)return e;let n=[],r=0;for(;r<e.length;){let t=e[r];if(ir(t)){let i=0;for(;r<e.length&&ir(e[r]);)i++,r++;i===1?n.push(t):n.push({...t,message:{role:`user`,content:[{type:`text`,text:`<${Se}><${xe}>completed</${xe}><${V}>${i} background commands completed</${V}></${Se}>`}]}})}else n.push(t),r++}return n}var or=t((()=>{Ce(),Nt(),Re(),pt()}));function sr(e){return e.type===`system`&&e.subtype===`stop_hook_summary`&&e.hookLabel!==void 0}function cr(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(sr(r)){let i=r.hookLabel,a=[];for(;n<e.length;){let t=e[n];if(!sr(t)||t.hookLabel!==i)break;a.push(t),n++}a.length===1?t.push(r):t.push({...r,hookCount:a.reduce((e,t)=>e+t.hookCount,0),hookInfos:a.flatMap(e=>e.hookInfos),hookErrors:a.flatMap(e=>e.hookErrors),preventedContinuation:a.some(e=>e.preventedContinuation),hasOutput:a.some(e=>e.hasOutput),totalDurationMs:Math.max(...a.map(e=>e.totalDurationMs??0))})}else t.push(r),n++}return t}var lr=t((()=>{}));function ur(e){return e.type===`attachment`&&e.attachment.type===`task_status`&&e.attachment.taskType===`in_process_teammate`&&e.attachment.status===`completed`}function dr(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(ur(r)){let i=0;for(;n<e.length&&ur(e[n]);)i++,n++;i===1?t.push(r):t.push({type:`attachment`,uuid:r.uuid,timestamp:r.timestamp,attachment:{type:`teammate_shutdown_batch`,count:i}})}else t.push(r),n++}return t}var fr=t((()=>{}));function pr(e){let t=gr.get(e);return t||(t=new Set(e.filter(e=>e.renderGroupedToolUse).map(e=>e.name)),gr.set(e,t)),t}function mr(e){if(e.type===`assistant`&&e.message?.content&&Array.isArray(e.message.content)&&e.message.content[0]?.type===`tool_use`){let t=e.message.content[0];return{messageId:e.message.id,toolUseId:t.id,toolName:t.name}}return null}function hr(e,t,n=!1){if(n)return{messages:e};let r=pr(t),i=new Map;for(let t of e){let e=mr(t);if(e&&r.has(e.toolName)){let n=`${e.messageId}:${e.toolName}`,r=i.get(n)??[];r.push(t),i.set(n,r)}}let a=new Map,o=new Set;for(let[e,t]of i)if(t.length>=2){a.set(e,t);for(let e of t){let t=mr(e);t&&o.add(t.toolUseId)}}let s=new Map;for(let t of e)if(t.type===`user`&&t.message?.content&&Array.isArray(t.message.content))for(let e of t.message.content)e.type===`tool_result`&&o.has(e.tool_use_id)&&s.set(e.tool_use_id,t);let c=[],l=new Set;for(let t of e){let e=mr(t);if(e){let t=`${e.messageId}:${e.toolName}`,n=a.get(t);if(n){if(!l.has(t)){l.add(t);let r=n[0],i=[];for(let e of n){let t=e.message.content[0].id,n=s.get(t);n&&i.push(n)}let a={type:`grouped_tool_use`,toolName:e.toolName,messages:n,results:i,displayMessage:r,uuid:`grouped-${r.uuid}`,timestamp:r.timestamp,messageId:e.messageId};c.push(a)}continue}}if(t.type===`user`&&t.message?.content&&Array.isArray(t.message.content)){let e=t.message.content.filter(e=>e.type===`tool_result`);if(e.length>0&&e.every(e=>o.has(e.tool_use_id)))continue}c.push(t)}return{messages:c}}var gr,_r=t((()=>{gr=new WeakMap}));function vr(e){let t=wr.get(e);if(t!==void 0)return t;let n=yr(e).toLowerCase();return wr.set(e,n),n}function yr(e){let t=``;switch(e.type){case`user`:{let n=e.message.content;if(typeof n==`string`)t=Cr.has(n)?``:n;else{let r=[];for(let t of n??[])t.type===`text`?Cr.has(t.text)||r.push(t.text):t.type===`tool_result`&&r.push(xr(e.toolUseResult));t=r.join(`
2
- `)}break}case`assistant`:{let n=e.message.content;Array.isArray(n)&&(t=n.flatMap(e=>e.type===`text`?[e.text]:e.type===`tool_use`?[br(e.input)]:[]).join(`
3
- `));break}case`attachment`:if(e.attachment.type===`relevant_memories`)t=(e.attachment.memories??[]).map(e=>e.content).join(`
4
- `);else if(e.attachment.type===`queued_command`&&e.attachment.commandMode!==`task-notification`&&!e.attachment.isMeta){let n=e.attachment.prompt;t=typeof n==`string`?n:n.flatMap(e=>e.type===`text`?[e.text]:[]).join(`
5
- `)}break;case`collapsed_read_search`:e.relevantMemories&&(t=e.relevantMemories.map(e=>e.content).join(`
6
- `));break;default:break}let n=t,r=n.indexOf(`<system-reminder>`);for(;r>=0;){let e=n.indexOf(Sr,r);if(e<0)break;n=n.slice(0,r)+n.slice(e+18),r=n.indexOf(`<system-reminder>`)}return n}function br(e){if(!e||typeof e!=`object`)return``;let t=e,n=[];for(let e of[`command`,`pattern`,`file_path`,`path`,`prompt`,`description`,`query`,`url`,`skill`]){let r=t[e];typeof r==`string`&&n.push(r)}for(let e of[`args`,`files`]){let r=t[e];Array.isArray(r)&&r.every(e=>typeof e==`string`)&&n.push(r.join(` `))}return n.join(`
7
- `)}function xr(e){if(!e||typeof e!=`object`)return typeof e==`string`?e:``;let t=e;if(typeof t.stdout==`string`){let e=typeof t.stderr==`string`?t.stderr:``;return t.stdout+(e?`
8
- `+e:``)}if(t.file&&typeof t.file==`object`&&typeof t.file.content==`string`)return t.file.content;let n=[];for(let e of[`content`,`output`,`result`,`text`,`message`]){let r=t[e];typeof r==`string`&&n.push(r)}for(let e of[`filenames`,`lines`,`results`]){let r=t[e];Array.isArray(r)&&r.every(e=>typeof e==`string`)&&n.push(r.join(`
9
- `))}return n.join(`
10
- `)}var Sr,Cr,wr,Tr=t((()=>{pt(),Sr=`</system-reminder>`,Cr=new Set([Rt,Wt]),wr=new WeakMap}));function Er({pose:e=`default`}={}){if(be.terminal===`Apple_Terminal`)return(0,H.jsx)(Dr,{pose:e});let t=Or[e];return(0,H.jsxs)(x,{flexDirection:`column`,children:[(0,H.jsxs)(_,{children:[(0,H.jsx)(_,{color:`clawd_body`,children:t.r1L}),(0,H.jsx)(_,{color:`clawd_body`,backgroundColor:`clawd_background`,children:t.r1E}),(0,H.jsx)(_,{color:`clawd_body`,children:t.r1R})]}),(0,H.jsxs)(_,{children:[(0,H.jsx)(_,{color:`clawd_body`,children:t.r2L}),(0,H.jsx)(_,{color:`clawd_body`,backgroundColor:`clawd_background`,children:`█████`}),(0,H.jsx)(_,{color:`clawd_body`,children:t.r2R})]}),(0,H.jsxs)(_,{color:`clawd_body`,children:[` `,`▘▘ ▝▝`,` `]})]})}function Dr({pose:e}){return(0,H.jsxs)(x,{flexDirection:`column`,alignItems:`center`,children:[(0,H.jsxs)(_,{children:[(0,H.jsx)(_,{color:`clawd_body`,children:`▗`}),(0,H.jsx)(_,{color:`clawd_background`,backgroundColor:`clawd_body`,children:kr[e]}),(0,H.jsx)(_,{color:`clawd_body`,children:`▖`})]}),(0,H.jsx)(_,{backgroundColor:`clawd_body`,children:` `.repeat(7)}),(0,H.jsx)(_,{color:`clawd_body`,children:`▘▘ ▝▝`})]})}var H,Or,kr,Ar=t((()=>{h(),y(),ye(),H=C(),Or={default:{r1L:` ▐`,r1E:`▛███▜`,r1R:`▌`,r2L:`▝▜`,r2R:`▛▘`},"look-left":{r1L:` ▐`,r1E:`▟███▟`,r1R:`▌`,r2L:`▝▜`,r2R:`▛▘`},"look-right":{r1L:` ▐`,r1E:`▙███▙`,r1R:`▌`,r2L:`▝▜`,r2R:`▛▘`},"arms-up":{r1L:`▗▟`,r1E:`▛███▜`,r1R:`▙▖`,r2L:` ▜`,r2R:`▛ `}},kr={default:` ▗ ▖ `,"look-left":` ▘ ▘ `,"look-right":` ▝ ▝ `,"arms-up":` ▗ ▖ `}}));function jr(e){let{title:t,lines:n,footer:r,emptyMessage:i,customContent:a}=e,o=l(t);if(a!==void 0)o=Math.max(o,a.width);else if(n.length===0&&i)o=Math.max(o,l(i));else{let e=Math.max(0,...n.map(e=>e.timestamp?l(e.timestamp):0));for(let t of n){let n=e>0?e:0,r=l(t.text)+(n>0?n+2:0);o=Math.max(o,r)}}return r&&(o=Math.max(o,l(r))),o}function Mr({config:e,actualWidth:t}){let{title:n,lines:r,footer:i,emptyMessage:a,customContent:o}=e,s=Math.max(0,...r.map(e=>e.timestamp?l(e.timestamp):0));return(0,U.jsxs)(x,{flexDirection:`column`,width:t,children:[(0,U.jsx)(_,{bold:!0,color:`claude`,children:n}),o?(0,U.jsxs)(U.Fragment,{children:[o.content,i&&(0,U.jsx)(_,{dimColor:!0,italic:!0,children:we(i,t)})]}):r.length===0&&a?(0,U.jsx)(_,{dimColor:!0,children:we(a,t)}):(0,U.jsxs)(U.Fragment,{children:[r.map((e,n)=>{let r=Math.max(10,t-(s>0?s+2:0));return(0,U.jsxs)(_,{children:[s>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(_,{dimColor:!0,children:(e.timestamp||``).padEnd(s)}),` `]}),(0,U.jsx)(_,{children:we(e.text,r)})]},n)}),i&&(0,U.jsx)(_,{dimColor:!0,italic:!0,children:we(i,t)})]})]})}var U,Nr=t((()=>{h(),y(),Ae(),U=C()}));function Pr({feeds:e,maxWidth:t}){let n=e.map(e=>jr(e)),r=Math.max(...n),i=Math.min(r,t);return(0,Ir.jsx)(x,{flexDirection:`column`,children:e.map((t,n)=>(0,Ir.jsxs)(Fr.Fragment,{children:[(0,Ir.jsx)(Mr,{config:t,actualWidth:i}),n<e.length-1&&(0,Ir.jsx)(v,{color:`claude`,width:i})]},n))})}var Fr,Ir,Lr=t((()=>{Fr=n(h(),1),y(),Nr(),Ir=C()}));function Rr(e){let t=e.map(e=>{let t=Te(e.modified);return{text:(e.summary&&e.summary!==`No prompt`?e.summary:e.firstPrompt)||``,timestamp:t}});return{title:`Recent activity`,lines:t,footer:t.length>0?`/resume for more`:void 0,emptyMessage:`No recent activity`}}function zr(e){let t=e.map(e=>{if(process.env.USER_TYPE===`ant`){let t=e.match(/^(\d+\s+\w+\s+ago)\s+(.+)$/);if(t)return{timestamp:t[1],text:t[2]||``}}return{text:e}}),n=process.env.USER_TYPE===`ant`?`Unable to fetch latest claude-cli-internal commits`:`Check the Claude Code changelog for updates`;return{title:process.env.USER_TYPE===`ant`?`What's new [ANT-ONLY: Latest CC commits]`:`What's new`,lines:t,footer:t.length>0?`/release-notes for more`:void 0,emptyMessage:n}}function Br(e){let t=e.filter(({isEnabled:e})=>e).sort((e,t)=>Number(e.isComplete)-Number(t.isComplete)).map(({text:e,isComplete:t})=>({text:`${t?`${s.tick} `:``}${e}`})),n=ve()===$n()?`Note: You have launched claude in your home directory. For the best experience, launch it in a project directory instead.`:void 0;return n&&t.push({text:n}),{title:`Tips for getting started`,lines:t}}function Vr(){let e=gn(),t=e?`Share Claude Code and earn ${vn(e)} of extra usage`:`Share Claude Code with friends`;return{title:`3 guest passes`,lines:[],customContent:{content:(0,Hr.jsxs)(Hr.Fragment,{children:[(0,Hr.jsx)(x,{marginY:1,children:(0,Hr.jsx)(_,{color:`claude`,children:`[✻] [✻] [✻]`})}),(0,Hr.jsx)(_,{dimColor:!0,children:t})]}),width:48},footer:`/passes`}}var Hr,Ur=t((()=>{o(),y(),yn(),_e(),Ae(),Hr=C()}));function Wr(e,t,n){return Array.from({length:n},()=>({pose:e,offset:t}))}function Gr(){let{pose:e,bounceOffset:t,onClick:n}=Kr();return(0,Jr.jsx)(x,{height:ei,flexDirection:`column`,onClick:n,children:(0,Jr.jsx)(x,{marginTop:t,flexShrink:0,children:(0,Jr.jsx)(Er,{pose:e})})})}function Kr(){let[e]=(0,qr.useState)(()=>re().prefersReducedMotion??!1),[t,n]=(0,qr.useState)(-1),r=(0,qr.useRef)(Yr),i=()=>{e||t!==-1||(r.current=Xr[Math.floor(Math.random()*Xr.length)],n(0))};(0,qr.useEffect)(()=>{if(t===-1)return;if(t>=r.current.length){n(-1);return}let e=setTimeout(n,Qr,$r);return()=>clearTimeout(e)},[t]);let a=r.current,o=t>=0&&t<a.length?a[t]:Zr;return{pose:o.pose,bounceOffset:o.offset,onClick:i}}var qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti=t((()=>{h(),qr=n(h(),1),y(),ue(),Ar(),Jr=C(),Yr=[...Wr(`default`,1,2),...Wr(`arms-up`,0,3),...Wr(`default`,0,1),...Wr(`default`,1,2),...Wr(`arms-up`,0,3),...Wr(`default`,0,1)],Xr=[Yr,[...Wr(`look-right`,0,5),...Wr(`look-left`,0,5),...Wr(`default`,0,1)]],Zr={pose:`default`,offset:0},Qr=60,$r=e=>e+1,ei=3}));function ni(){let e=_n();e==null||e<=0||e>(P().passesLastSeenRemaining??0)&&j(t=>({...t,passesUpsellSeenCount:0,hasVisitedPasses:!1,passesLastSeenRemaining:e}))}function ri(){let{eligible:e,hasCache:t}=bn();if(!e||!t)return!1;ni();let n=P();return!((n.passesUpsellSeenCount??0)>=3||n.hasVisitedPasses)}function ii(){let[e]=(0,si.useState)(()=>ri());return e}function ai(){let e=0;j(t=>(e=(t.passesUpsellSeenCount??0)+1,{...t,passesUpsellSeenCount:e})),B(`tengu_guest_passes_upsell_shown`,{seen_count:e})}function oi(){let e=gn();return(0,ci.jsxs)(_,{dimColor:!0,children:[(0,ci.jsx)(_,{color:`claude`,children:`[✻]`}),` `,(0,ci.jsx)(_,{color:`claude`,children:`[✻]`}),` `,(0,ci.jsx)(_,{color:`claude`,children:`[✻]`}),` ·`,` `,e?`Share Claude Code and earn ${vn(e)} of extra usage · /passes`:`3 guest passes at /passes`]})}var si,ci,li=t((()=>{h(),si=n(h(),1),y(),ge(),yn(),D(),ci=C()}));function ui(){let{columns:e}=u(),t=Jt(e=>e.agent),n=Jt(e=>e.effortValue),r=Vn(),i=oe(r),{version:a,cwd:o,billingType:s,agentName:c}=Nn(),d=t??c,f=ii(),p=Jn();(0,di.useEffect)(()=>{f&&ai()},[f]),(0,di.useEffect)(()=>{p&&!f&&qn()},[p,f]);let m=Math.max(e-15,20),h=we(a,Math.max(m-13,6)),{shouldSplit:g,truncatedModel:v,truncatedBilling:y}=Pn(i+ft(r,n),s,m),b=d?m-1-l(d)-3:m,S=kn(o,Math.max(b,10));return(0,W.jsx)(Gt,{children:(0,W.jsxs)(x,{flexDirection:`row`,gap:2,alignItems:`center`,children:[ut()?(0,W.jsx)(Gr,{}):(0,W.jsx)(Er,{}),(0,W.jsxs)(x,{flexDirection:`column`,children:[(0,W.jsxs)(_,{children:[(0,W.jsx)(_,{bold:!0,children:`Claude Code`}),` `,(0,W.jsxs)(_,{dimColor:!0,children:[`v`,h]})]}),g?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(_,{dimColor:!0,children:v}),(0,W.jsx)(_,{dimColor:!0,children:y})]}):(0,W.jsxs)(_,{dimColor:!0,children:[v,` · `,y]}),(0,W.jsx)(_,{dimColor:!0,children:d?`@${d} · ${S}`:S}),f&&(0,W.jsx)(oi,{}),!f&&p&&(0,W.jsx)(Yn,{maxWidth:m,twoLine:!0})]})]})})}var di,W,fi=t((()=>{di=n(h(),1),Hn(),Ot(),y(),Pt(),Mt(),Ae(),Re(),In(),N(),Lt(),ti(),Ar(),li(),Gn(),W=C()}));function pi(){let e=(0,hi.useMemo)(mi,[]),t=(0,hi.useMemo)(()=>P().lastShownEmergencyTip,[]),n=e.tip&&e.tip!==t;return(0,hi.useEffect)(()=>{n&&j(t=>t.lastShownEmergencyTip===e.tip?t:{...t,lastShownEmergencyTip:e.tip})},[n,e.tip]),n?(0,gi.jsx)(x,{paddingLeft:2,flexDirection:`column`,children:(0,gi.jsx)(_,{...e.color===`warning`?{color:`warning`}:e.color===`error`?{color:`error`}:{dimColor:!0},children:e.tip})}):null}function mi(){return L(_i,vi)}var hi,gi,_i,vi,yi=t((()=>{h(),hi=n(h(),1),y(),ae(),D(),gi=C(),_i=`tengu-top-of-feed-tip`,vi={tip:``,color:`dim`}}));function bi({char:e=`✻`}){let[t]=(0,xi.useState)(()=>re().prefersReducedMotion??!1),[n,r]=(0,xi.useState)(t),i=(0,xi.useRef)(null),[a,o]=c(n?null:50);return(0,xi.useEffect)(()=>{if(n)return;let e=setTimeout(r,wi,!0);return()=>clearTimeout(e)},[n]),n?(0,Si.jsx)(x,{ref:a,children:(0,Si.jsx)(_,{color:Ti,children:e})}):(i.current===null&&(i.current=o),(0,Si.jsx)(x,{ref:a,children:(0,Si.jsx)(_,{color:Dt(Bt((o-i.current)/Ci*360%360)),children:e})}))}var xi,Si,Ci,wi,Ti,Ei=t((()=>{h(),xi=n(h(),1),O(),y(),ue(),It(),Si=C(),Ci=1500,wi=Ci*2,Ti=Dt({r:153,g:153,b:153})}));function Di(){return A()&&(P().opus1mMergeNoticeSeenCount??0)<ji}function Oi(){let[e]=(0,ki.useState)(Di);return(0,ki.useEffect)(()=>{if(!e)return;let t=(P().opus1mMergeNoticeSeenCount??0)+1;j(e=>(e.opus1mMergeNoticeSeenCount??0)>=t?e:{...e,opus1mMergeNoticeSeenCount:t})},[e]),e?(0,Ai.jsxs)(x,{paddingLeft:2,children:[(0,Ai.jsx)(bi,{char:`↑`}),(0,Ai.jsx)(_,{dimColor:!0,children:` Opus now defaults to 1M context · 5x more room, same pricing`})]}):null}var ki,Ai,ji,Mi=t((()=>{h(),ki=n(h(),1),O(),y(),D(),N(),Ei(),Ai=C(),ji=6}));function Ni(){return(0,Ii.jsx)(Pi,{})}function Pi(){let[e]=(0,Fi.useState)(()=>Cn()&&re().voiceEnabled!==!0&&(P().voiceNoticeSeenCount??0)<Li&&!Di());return(0,Fi.useEffect)(()=>{if(!e)return;let t=(P().voiceNoticeSeenCount??0)+1;j(e=>(e.voiceNoticeSeenCount??0)>=t?e:{...e,voiceNoticeSeenCount:t})},[e]),e?(0,Ii.jsxs)(x,{paddingLeft:2,children:[(0,Ii.jsx)(bi,{}),(0,Ii.jsx)(_,{dimColor:!0,children:` Voice mode is now available · /voice to enable`})]}):null}var Fi,Ii,Li,Ri=t((()=>{h(),Fi=n(h(),1),y(),D(),ue(),wn(),Ei(),Mi(),Ii=C(),Li=3}));function zi(){return null}var Bi=t((()=>{}));function Vi(){return null}var Hi=t((()=>{})),Ui=r({ChannelsNotice:()=>Wi,findUnmatched:()=>Ki});function Wi(){let[{channels:e,list:t,unmatched:n}]=(0,qi.useState)(()=>{let e=E();return e.length===0?{channels:e,list:``,unmatched:[]}:{channels:e,list:e.map(Gi).join(`, `),unmatched:Ki(e)}});if(e.length===0)return null;let r=e.some(e=>!e.dev),i=w()&&r?`Channels`:w()?`--dangerously-load-development-channels`:`--channels`;return(0,Ji.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[(0,Ji.jsxs)(_,{color:`error`,children:[`Listening for channel messages from: `,t]}),(0,Ji.jsxs)(_,{dimColor:!0,children:[`Experimental · inbound messages will be pushed into this session, this carries prompt injection risks. Restart Claude Code without `,i,` to disable.`]}),n.map(e=>(0,Ji.jsxs)(_,{color:`warning`,children:[Gi(e.entry),` · `,e.why]},`${Gi(e.entry)}:${e.why}`))]})}function Gi(e){return e.kind===`plugin`?`plugin:${e.name}@${e.marketplace}`:`server:${e.name}`}function Ki(e,t){let n=t?.configuredServerNames??(()=>{let e=[`enterprise`,`user`,`project`,`local`],t=new Set;for(let n of e)for(let e of Object.keys(en(n).servers))t.add(e);return t})(),r=t?.installedPluginIds??(()=>{let e=new Set(Object.keys(st().plugins)),t=an();for(let n of[...t.enabled,...t.disabled])e.add(n.source);return e})(),i=[];for(let t of e){if(t.kind===`server`){n.has(t.name)||i.push({entry:t,why:`no MCP server configured with that name`});continue}r.has(`${t.name}@${t.marketplace}`)||i.push({entry:t,why:`plugin not installed`})}return i}var qi,Ji,Yi=t((()=>{h(),qi=n(h(),1),T(),on(),y(),gt(),Ze(),Ji=C()}));function Xi(){let e=On(),t=P().oauthAccount?.displayName??``,{columns:n}=u(),r=mn(),i=Qe.isSandboxingEnabled(),o=ii(),s=Jn(),c=Jt(e=>e.agent),d=Jt(e=>e.effortValue),f=P(),p;try{p=jn(3)}catch{p=[]}let[m]=(0,Zi.useState)(()=>{let e=re().companyAnnouncements;if(!(!e||e.length===0))return f.numStartups===1?e[0]:e[Math.floor(Math.random()*e.length)]}),{hasReleaseNotes:h}=En(f.lastReleaseNotesSeen);(0,Zi.useEffect)(()=>{P().lastReleaseNotesSeen!==`2.7.0`&&(j(e=>e.lastReleaseNotesSeen===`2.7.0`?e:{...e,lastReleaseNotesSeen:`2.7.0`}),r&&pn())},[f,r]);let g=!h&&!r&&!a(process.env.CLAUDE_CODE_FORCE_FULL_LOGO);(0,Zi.useEffect)(()=>{o&&!r&&!g&&ai()},[o,r,g]),(0,Zi.useEffect)(()=>{s&&!r&&!o&&!g&&qn()},[s,r,o,g]);let v=Vn(),y=oe(v),{version:S,cwd:C,billingType:w,agentName:ee}=Nn(),T=c??ee,E=we(y+ft(v,d),$i-20);if(!h&&!r&&!a(process.env.CLAUDE_CODE_FORCE_FULL_LOGO))return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ui,{}),(0,G.jsx)(Ni,{}),(0,G.jsx)(Oi,{}),Qi&&(0,G.jsx)(Qi.ChannelsNotice,{}),he()&&(0,G.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(_,{color:`warning`,children:`Debug mode enabled`}),(0,G.jsxs)(_,{dimColor:!0,children:[`Logging to: `,pe()?`stderr`:me()]})]}),(0,G.jsx)(pi,{}),process.env.CLAUDE_CODE_TMUX_SESSION&&(0,G.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsxs)(_,{dimColor:!0,children:[`tmux session: `,process.env.CLAUDE_CODE_TMUX_SESSION]}),(0,G.jsx)(_,{dimColor:!0,children:process.env.CLAUDE_CODE_TMUX_PREFIX_CONFLICTS?`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} ${process.env.CLAUDE_CODE_TMUX_PREFIX} d (press prefix twice - Claude uses ${process.env.CLAUDE_CODE_TMUX_PREFIX})`:`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} d`})]}),m&&(0,G.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[!process.env.IS_DEMO&&f.oauthAccount?.organizationName&&(0,G.jsxs)(_,{dimColor:!0,children:[`Message from `,f.oauthAccount.organizationName,`:`]}),(0,G.jsx)(_,{children:m})]}),process.env.USER_TYPE===`ant`&&!process.env.DEMO_VERSION&&(0,G.jsx)(x,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(_,{dimColor:!0,children:`Use /issue to report model behavior issues`})}),process.env.USER_TYPE===`ant`&&!process.env.DEMO_VERSION&&(0,G.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(_,{color:`warning`,children:`[ANT-ONLY] Logs:`}),(0,G.jsxs)(_,{dimColor:!0,children:[`API calls: `,F(Ut())]}),(0,G.jsxs)(_,{dimColor:!0,children:[`Debug logs: `,F(me())]}),Oe()&&(0,G.jsxs)(_,{dimColor:!0,children:[`Startup Perf: `,F(ke())]})]}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(zi,{}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Vi,{})]});let D=Dn(n),O=Ln(P().theme),te=` ${b(`claude`,O)(`Claude Code`)} ${b(`inactive`,O)(`v${S}`)} `,ne=b(`claude`,O)(` Claude Code `);if(D===`compact`){let e=An(t);l(e)>n-4&&(e=An(null));let r=T?n-4-1-l(T)-3:n-4,a=kn(C,Math.max(r,10));return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Gt,{children:(0,G.jsxs)(x,{flexDirection:`column`,borderStyle:`round`,borderColor:`claude`,borderText:{content:ne,position:`top`,align:`start`,offset:1},paddingX:1,paddingY:1,alignItems:`center`,width:n,children:[(0,G.jsx)(_,{bold:!0,children:e}),(0,G.jsx)(x,{marginY:1,children:(0,G.jsx)(Er,{})}),(0,G.jsx)(_,{dimColor:!0,children:E}),(0,G.jsx)(_,{dimColor:!0,children:w}),(0,G.jsx)(_,{dimColor:!0,children:T?`@${T} · ${a}`:a})]})}),(0,G.jsx)(Ni,{}),(0,G.jsx)(Oi,{}),Qi&&(0,G.jsx)(Qi.ChannelsNotice,{}),i&&(0,G.jsx)(x,{marginTop:1,flexDirection:`column`,children:(0,G.jsx)(_,{color:`warning`,children:`Your bash commands will be sandboxed. Disable with /sandbox.`})}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(zi,{}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Vi,{})]})}let k=An(t),ie=!process.env.IS_DEMO&&f.oauthAccount?.organizationName?`${E} · ${w} · ${f.oauthAccount.organizationName}`:`${E} · ${w}`,A=T?$i-1-l(T)-3:$i,M=kn(C,Math.max(A,10)),N=T?`@${T} · ${M}`:M,{leftWidth:ae,rightWidth:I}=Fn(n,D,Mn(k,N,ie));return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Gt,{children:(0,G.jsx)(x,{flexDirection:`column`,borderStyle:`round`,borderColor:`claude`,borderText:{content:te,position:`top`,align:`start`,offset:3},children:(0,G.jsxs)(x,{flexDirection:D===`horizontal`?`row`:`column`,paddingX:1,gap:1,children:[(0,G.jsxs)(x,{flexDirection:`column`,width:ae,justifyContent:`space-between`,alignItems:`center`,minHeight:9,children:[(0,G.jsx)(x,{marginTop:1,children:(0,G.jsx)(_,{bold:!0,children:k})}),(0,G.jsx)(Er,{}),(0,G.jsxs)(x,{flexDirection:`column`,alignItems:`center`,children:[(0,G.jsx)(_,{dimColor:!0,children:ie}),(0,G.jsx)(_,{dimColor:!0,children:N})]})]}),D===`horizontal`&&(0,G.jsx)(x,{height:`100%`,borderStyle:`single`,borderColor:`claude`,borderDimColor:!0,borderTop:!1,borderBottom:!1,borderLeft:!1}),D===`horizontal`&&(0,G.jsx)(Pr,{feeds:r?[Br(fn()),Rr(e)]:o?[Rr(e),Vr()]:s?[Rr(e),Kn()]:[Rr(e),zr(p)],maxWidth:I})]})})}),(0,G.jsx)(Ni,{}),(0,G.jsx)(Oi,{}),Qi&&(0,G.jsx)(Qi.ChannelsNotice,{}),he()&&(0,G.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(_,{color:`warning`,children:`Debug mode enabled`}),(0,G.jsxs)(_,{dimColor:!0,children:[`Logging to: `,pe()?`stderr`:me()]})]}),(0,G.jsx)(pi,{}),process.env.CLAUDE_CODE_TMUX_SESSION&&(0,G.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsxs)(_,{dimColor:!0,children:[`tmux session: `,process.env.CLAUDE_CODE_TMUX_SESSION]}),(0,G.jsx)(_,{dimColor:!0,children:process.env.CLAUDE_CODE_TMUX_PREFIX_CONFLICTS?`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} ${process.env.CLAUDE_CODE_TMUX_PREFIX} d (press prefix twice - Claude uses ${process.env.CLAUDE_CODE_TMUX_PREFIX})`:`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} d`})]}),m&&(0,G.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[!process.env.IS_DEMO&&f.oauthAccount?.organizationName&&(0,G.jsxs)(_,{dimColor:!0,children:[`Message from `,f.oauthAccount.organizationName,`:`]}),(0,G.jsx)(_,{children:m})]}),i&&(0,G.jsx)(x,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(_,{color:`warning`,children:`Your bash commands will be sandboxed. Disable with /sandbox.`})}),process.env.USER_TYPE===`ant`&&!process.env.DEMO_VERSION&&(0,G.jsx)(x,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(_,{dimColor:!0,children:`Use /issue to report model behavior issues`})}),process.env.USER_TYPE===`ant`&&!process.env.DEMO_VERSION&&(0,G.jsxs)(x,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(_,{color:`warning`,children:`[ANT-ONLY] Logs:`}),(0,G.jsxs)(_,{dimColor:!0,children:[`API calls: `,F(Ut())]}),(0,G.jsxs)(_,{dimColor:!0,children:[`Debug logs: `,F(me())]}),Oe()&&(0,G.jsxs)(_,{dimColor:!0,children:[`Startup Perf: `,F(ke())]})]}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(zi,{}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Vi,{})]})}var Zi,G,Qi,$i,ea=t((()=>{h(),y(),Ot(),In(),Ae(),se(),Ar(),Lr(),Ur(),D(),Rn(),ue(),R(),Zi=n(h(),1),hn(),fi(),Lt(),Tn(),At(),i(),De(),yi(),Ri(),Mi(),Bi(),Hi(),G=C(),qe(),li(),Gn(),Pt(),Mt(),Hn(),N(),Qi=(Yi(),e(Ui)),$i=50}));function ta({message:e,isTranscriptMode:t}){let n=e.message?.content,r=Array.isArray(n)?n:[];if(!(t&&e.type===`assistant`&&e.message?.model&&r.some(e=>e?.type===`text`)))return null;let i=e.message.model;return(0,na.jsx)(x,{minWidth:l(i)+8,children:(0,na.jsx)(_,{dimColor:!0,children:i})})}var na,ra=t((()=>{h(),y(),na=C()}));function ia({message:e,isTranscriptMode:t}){if(!(t&&e.timestamp&&e.type===`assistant`&&Array.isArray(e.message.content)&&e.message.content.some(e=>e.type===`text`)))return null;let n=new Date(e.timestamp).toLocaleTimeString(`en-US`,{hour:`2-digit`,minute:`2-digit`,hour12:!0});return(0,aa.jsx)(x,{minWidth:l(n),children:(0,aa.jsx)(_,{dimColor:!0,children:n})})}var aa,oa=t((()=>{h(),y(),aa=C()}));function sa(e,t,n,r){for(let i=t+1;i<e.length;i++){let t=e[i];if(t?.type===`assistant`){let e=ma(t.message.content);if(e?.type===`thinking`||e?.type===`redacted_thinking`||e?.type===`tool_use`&&(Le(e.name,e.input,n).isCollapsible||r.has(e.id)))continue;return!0}if(!(t?.type===`system`||t?.type===`attachment`)&&!(t?.type===`user`&&ma(t.message.content)?.type===`tool_result`)){if(t?.type===`grouped_tool_use`){let e=ma(t.messages[0]?.message.content)?.input;if(Le(t.toolName,e,n).isCollapsible)continue}return!0}}return!1}function ca({message:e,isUserContinuation:t,hasContentAfter:n,tools:r,commands:i,verbose:a,inProgressToolUseIDs:o,streamingToolUseIDs:s,screen:c,canAnimate:l,onOpenRateLimitOptions:u,lastThinkingBlockId:d,latestBashOutputUUID:f,columns:p,isLoading:m,lookups:h,shouldCollapseDiffs:g}){let _=c===`transcript`,v=e.type===`grouped_tool_use`,y=e.type===`collapsed_read_search`,b=y&&(Ke(e,o)||m&&!n),S=v?e.displayMessage:y?$t(e):e,C=v||y?[]:Ue(e,h),w=Mo(e,s,o,v||y?Kt:Je(e,h),c,h),ee=!1;if(l)if(v)ee=e.messages.some(e=>{let t=ma(e.message.content);return t?.type===`tool_use`&&o.has(t.id)});else if(y)ee=Ke(e,o);else{let t=Xe(e);ee=!t||o.has(t)}let T=_&&S.type===`assistant`&&Array.isArray(S.message.content)&&S.message.content.some(e=>e.type===`text`)&&(S.timestamp||S.message.model),E=(0,pa.jsx)(it,{message:e,lookups:h,addMargin:!T,containerWidth:T?void 0:p,tools:r,commands:i,verbose:a,inProgressToolUseIDs:o,progressMessagesForMessage:C,shouldAnimate:ee,shouldShowDot:!0,isTranscriptMode:_,isStatic:w,onOpenRateLimitOptions:u,isActiveCollapsedGroup:b,isUserContinuation:t,lastThinkingBlockId:d,latestBashOutputUUID:f,shouldCollapseDiffs:g});return T?(0,pa.jsx)(Gt,{children:(0,pa.jsxs)(x,{width:p,flexDirection:`column`,children:[(0,pa.jsxs)(x,{flexDirection:`row`,justifyContent:`flex-end`,gap:1,marginTop:1,children:[(0,pa.jsx)(ia,{message:S,isTranscriptMode:_}),(0,pa.jsx)(ta,{message:S,isTranscriptMode:_})]}),E]})}):(0,pa.jsx)(Gt,{children:E})}function la(e,t){if(e.type===`grouped_tool_use`)return e.messages.some(e=>{let n=ma(e.message.content);return n?.type===`tool_use`&&t.has(n.id)});if(e.type===`collapsed_read_search`)return ht(e).some(e=>t.has(e));let n=Xe(e);return!!n&&t.has(n)}function ua(e,t){if(e.type===`grouped_tool_use`)return e.messages.every(e=>{let n=ma(e.message.content);return n?.type===`tool_use`&&t.has(n.id)});if(e.type===`collapsed_read_search`)return ht(e).every(e=>t.has(e));if(e.type===`assistant`){let n=ma(e.message.content);if(n?.type===`server_tool_use`)return t.has(n.id)}let n=Xe(e);return!n||t.has(n)}function da(e,t){if(e.message!==t.message||e.screen!==t.screen||e.verbose!==t.verbose||e.message.type===`collapsed_read_search`&&t.screen!==`transcript`||e.columns!==t.columns||e.latestBashOutputUUID===e.message.uuid!=(t.latestBashOutputUUID===t.message.uuid)||e.lastThinkingBlockId!==t.lastThinkingBlockId&&Ne(t.message))return!1;let n=la(e.message,e.streamingToolUseIDs),r=ua(e.message,e.lookups.resolvedToolUseIDs);return!(n||!r)}var fa,pa,ma,ha,ga=t((()=>{fa=n(h(),1),y(),mt(),pt(),wt(),pa=C(),ra(),Uo(),oa(),Lt(),ma=e=>{if(!Array.isArray(e))return;let t=e[0];if(!(t==null||typeof t==`string`))return t},ha=fa.memo(ca,da)}));function _a(e){return e.type===`attachment`&&va.has(e.attachment.type)}var va,ya=t((()=>{va=new Set(`hook_success.hook_additional_context.hook_cancelled.command_permissions.agent_mention.budget_usd.critical_system_reminder.edited_image_file.edited_text_file.opened_file_in_ide.output_style.plan_mode.plan_mode_exit.plan_mode_reentry.structured_output.team_context.todo_reminder.context_efficiency.deferred_tools_delta.mcp_instructions_delta.companion_intro.token_usage.ultrathink_effort.max_turns_reached.task_reminder.auto_mode.auto_mode_exit.output_token_usage.verify_plan_reminder.current_session_memory.compaction_reminder.date_change`.split(`.`))}));function ba(e){return Da.filter(t=>t.isActive(e))}var K,xa,Sa,Ca,wa,Ta,Ea,Da,Oa=t((()=>{y(),h(),Pe(),o(),_e(),Ae(),le(),Zn(),Ie(),_t(),K=C(),xa={id:`large-memory-files`,type:`warning`,isActive:e=>vt(e.memoryFiles).length>0,render:e=>(0,K.jsx)(K.Fragment,{children:vt(e.memoryFiles).map(e=>{let t=e.path.startsWith(ve())?er(ve(),e.path):e.path;return(0,K.jsxs)(x,{flexDirection:`row`,children:[(0,K.jsx)(_,{color:`warning`,children:s.warning}),(0,K.jsxs)(_,{color:`warning`,children:[`Large `,(0,K.jsx)(_,{bold:!0,children:t}),` will impact performance (`,Ee(e.content.length),` chars > `,Ee(Ht),`)`,(0,K.jsx)(_,{dimColor:!0,children:` · /memory to edit`})]})]},e.path)})})},Sa={id:`claude-ai-external-token`,type:`warning`,isActive:()=>{let e=fe();return I()&&(e.source===`ANTHROPIC_AUTH_TOKEN`||e.source===`apiKeyHelper`)},render:()=>{let e=fe();return(0,K.jsxs)(x,{flexDirection:`row`,marginTop:1,children:[(0,K.jsx)(_,{color:`warning`,children:s.warning}),(0,K.jsxs)(_,{color:`warning`,children:[`Auth conflict: Using `,e.source,` instead of Claude account subscription token. Either unset`,` `,e.source,", or run `claude /logout`."]})]})}},Ca={id:`api-key-conflict`,type:`warning`,isActive:()=>{let{source:e}=k({skipRetrievingKeyFromApiKeyHelper:!0});return!!te()&&(e===`ANTHROPIC_API_KEY`||e===`apiKeyHelper`)},render:()=>{let{source:e}=k({skipRetrievingKeyFromApiKeyHelper:!0});return(0,K.jsxs)(x,{flexDirection:`row`,marginTop:1,children:[(0,K.jsx)(_,{color:`warning`,children:s.warning}),(0,K.jsxs)(_,{color:`warning`,children:[`Auth conflict: Using `,e,` instead of Anthropic Console key. Either unset `,e,", or run `claude /logout`."]})]})}},wa={id:`both-auth-methods`,type:`warning`,isActive:()=>{let{source:e}=k({skipRetrievingKeyFromApiKeyHelper:!0}),t=fe();return e!==`none`&&t.source!==`none`&&!(e===`apiKeyHelper`&&t.source===`apiKeyHelper`)},render:()=>{let{source:e}=k({skipRetrievingKeyFromApiKeyHelper:!0}),t=fe();return(0,K.jsxs)(x,{flexDirection:`column`,marginTop:1,children:[(0,K.jsxs)(x,{flexDirection:`row`,children:[(0,K.jsx)(_,{color:`warning`,children:s.warning}),(0,K.jsxs)(_,{color:`warning`,children:[`Auth conflict: Both a token (`,t.source,`) and an API key (`,e,`) are set. This may lead to unexpected behavior.`]})]}),(0,K.jsxs)(x,{flexDirection:`column`,marginLeft:3,children:[(0,K.jsxs)(_,{color:`warning`,children:[`· Trying to use `,t.source===`claude.ai`?`claude.ai`:t.source,`?`,` `,e===`ANTHROPIC_API_KEY`?`Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.`:e===`apiKeyHelper`?`Unset the apiKeyHelper setting.`:`claude /logout`]}),(0,K.jsxs)(_,{color:`warning`,children:[`· Trying to use `,e,`?`,` `,t.source===`claude.ai`?`claude /logout to sign out of claude.ai.`:`Unset the ${t.source} environment variable.`]})]})]})}},Ta={id:`large-agent-descriptions`,type:`warning`,isActive:e=>Xn(e.agentDefinitions)>Qn,render:e=>{let t=Xn(e.agentDefinitions);return(0,K.jsxs)(x,{flexDirection:`row`,children:[(0,K.jsx)(_,{color:`warning`,children:s.warning}),(0,K.jsxs)(_,{color:`warning`,children:[`Large cumulative agent descriptions will impact performance (~`,Ee(t),` tokens > `,Ee(Qn),`)`,(0,K.jsx)(_,{dimColor:!0,children:` · /agents to manage`})]})]})}},Ea={id:`jetbrains-plugin-install`,type:`info`,isActive:e=>{if(!rt()||!(e.config.autoInstallIdeExtension??!0))return!1;let t=tt();return t!==null&&!We(t)},render:()=>{let e=tn(tt());return(0,K.jsxs)(x,{flexDirection:`row`,gap:1,marginLeft:1,children:[(0,K.jsx)(_,{color:`ide`,children:s.arrowUp}),(0,K.jsxs)(_,{children:[`Install the `,(0,K.jsx)(_,{color:`ide`,children:e}),` plugin from the JetBrains Marketplace:`,` `,(0,K.jsx)(_,{bold:!0,children:`https://docs.claude.com/s/claude-code-jetbrains`})]})]})}},Da=[xa,Ta,Sa,Ca,wa,Ea]}));function ka({agentDefinitions:e}={}){let t={config:P(),agentDefinitions:e,memoryFiles:(0,ja.use)(yt())},n=ba(t);return n.length===0?null:(0,Ma.jsx)(x,{flexDirection:`column`,paddingLeft:1,children:n.map(e=>(0,Ma.jsx)(Aa.Fragment,{children:e.render(t)},e.id))})}var Aa,ja,Ma,Na=t((()=>{Aa=n(h(),1),ja=n(h(),1),y(),Pe(),D(),Oa(),Ma=C()}));function Pa(e,t,n){let r=(0,q.useRef)(new Map),i=(0,q.useRef)(0),a=(0,q.useRef)(0),o=(0,q.useRef)({arr:new Float64Array,version:-1,n:-1}),s=(0,q.useRef)(new Map),c=(0,q.useRef)(new Map),l=(0,q.useRef)(n),u=(0,q.useRef)(!1),d=(0,q.useRef)(null),f=(0,q.useRef)(0);if(l.current!==n){let e=l.current/n;l.current=n;for(let[t,n]of r.current)r.current.set(t,Math.max(1,Math.round(n*e)));i.current++,u.current=!0,f.current=2}let p=f.current>0?d.current:null,m=(0,q.useRef)(0),h=(0,q.useRef)(null);(0,q.useSyncExternalStore)((0,q.useCallback)(t=>e.current?.subscribe(t)??Ha,[e]),()=>{let t=e.current;if(!t)return NaN;let n=t.getScrollTop()+t.getPendingDelta(),r=Math.floor(n/Ra);return t.isSticky()?~r:r});let g=e.current?.getScrollTop()??-1,_=e.current?.getPendingDelta()??0,v=e.current?.getViewportHeight()??0,y=e.current?.isSticky()??!0;(0,q.useMemo)(()=>{let e=new Set(t),n=!1;for(let t of r.current.keys())e.has(t)||(r.current.delete(t),n=!0);for(let t of c.current.keys())e.has(t)||c.current.delete(t);n&&i.current++},[t]);let b=t.length;if(o.current.version!==i.current||o.current.n!==b){let e=o.current.arr.length>=b+1?o.current.arr:new Float64Array(b+1);e[0]=0;for(let n=0;n<b;n++)e[n+1]=e[n]+(r.current.get(t[n])??Fa);o.current={arr:e,version:i.current,n:b}}let x=o.current.arr,S=x[b],C,w;if(p)[C,w]=p,C=Math.min(C,b),w=Math.min(w,b);else if(v===0||g<0)C=Math.max(0,b-La),w=b;else{if(y){let e=v+Ia;for(C=b;C>0&&S-x[C-1]<e;)C--;w=b}else{let e=m.current,n=v*3,i=Math.min(g,g+_),a=Math.max(g,g+_),o=a-i,c=o>n&&_<0?a-n:i,l=c+Math.min(o,n),u=Math.max(0,c-e),f=l-e,p=u-Ia;{let e=0,t=b;for(;e<t;){let n=e+t>>1;x[n+1]<=p?e=n+1:t=n}C=e}{let e=d.current;if(e&&e[0]<C)for(let n=e[0];n<Math.min(C,e[1]);n++){let e=t[n];if(s.current.has(e)&&!r.current.has(e)){C=n;break}}}let h=v+2*Ia,y=Math.min(b,C+Ba),S=0;for(w=C;w<y&&(S<h||x[w]<f+v+Ia);)S+=r.current.get(t[w])??za,w++}let e=v+2*Ia,n=Math.max(0,w-Ba),i=0;for(let e=C;e<w;e++)i+=r.current.get(t[e])??za;for(;C>n&&i<e;)C--,i+=r.current.get(t[C])??za;let o=d.current,c=Math.abs(g-a.current)+Math.abs(_);if(o&&c>v*2){let[e,t]=o;C<e-Va&&(C=e-Va),w>t+Va&&(w=t+Va),C>w&&(w=Math.min(C+Va,b))}a.current=g}f.current>0?f.current--:d.current=[C,w];let ee=(0,q.useDeferredValue)(C),T=(0,q.useDeferredValue)(w),E=C<ee?ee:C,D=w>T?T:w;if((E>D||y)&&(E=C,D=w),_>0&&(D=w),D-E>Ba){let e=(x[E]+x[D])/2;g-m.current<e?D=E+Ba:E=D-Ba}let O=m.current,te=x[E],ne=E===0?0:te+O,k=D===b?1/0:Math.max(te,x[D]-v)+O;(0,q.useLayoutEffect)(()=>{y?e.current?.setClampBounds(void 0,void 0):e.current?.setClampBounds(ne,k)}),(0,q.useLayoutEffect)(()=>{let e=h.current?.yogaNode;if(e&&e.getComputedWidth()>0&&(m.current=e.getComputedTop()),u.current){u.current=!1;return}let t=!1;for(let[e,n]of s.current){let i=n.yogaNode;if(!i)continue;let a=i.getComputedHeight(),o=r.current.get(e);a>0?o!==a&&(r.current.set(e,a),t=!0):i.getComputedWidth()>0&&o!==0&&(r.current.set(e,0),t=!0)}t&&i.current++});let re=(0,q.useCallback)(e=>{let t=c.current.get(e);return t||(t=t=>{if(t)s.current.set(e,t);else{let t=s.current.get(e)?.yogaNode;if(t&&!u.current){let n=t.getComputedHeight();(n>0||t.getComputedWidth()>0)&&r.current.get(e)!==n&&(r.current.set(e,n),i.current++)}s.current.delete(e)}},c.current.set(e,t)),t},[]),ie=(0,q.useCallback)(e=>{let n=s.current.get(t[e])?.yogaNode;return!n||n.getComputedWidth()===0?-1:n.getComputedTop()},[t]),A=(0,q.useCallback)(e=>s.current.get(t[e])??null,[t]),j=(0,q.useCallback)(e=>r.current.get(t[e]),[t]),M=(0,q.useCallback)(t=>{let n=o.current;t<0||t>=n.n||e.current?.scrollTo(n.arr[t]+m.current)},[e]),N=S-x[D];return{range:[E,D],topSpacer:te,bottomSpacer:N,measureRef:re,spacerRef:h,offsets:x,getItemTop:ie,getItemElement:A,getItemHeight:j,scrollToIndex:M}}var q,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua=t((()=>{q=n(h(),1),Fa=3,Ia=40,La=30,Ra=Ia>>1,za=1,Ba=200,Va=25,Ha=()=>{}}));function Wa({children:e}){let[t,n]=(0,J.useState)(null),[r,i]=(0,J.useState)(null);return(0,Ya.jsx)(Za.Provider,{value:n,children:(0,Ya.jsx)($a.Provider,{value:i,children:(0,Ya.jsx)(Xa.Provider,{value:t,children:(0,Ya.jsx)(Qa.Provider,{value:r,children:e})})})})}function Ga(){return(0,J.useContext)(Xa)}function Ka(){return(0,J.useContext)(Qa)}function qa(e){let t=(0,J.useContext)(Za);(0,J.useEffect)(()=>{if(t)return t(e),()=>t(null)},[t,e])}function Ja(e){let t=(0,J.useContext)($a);(0,J.useEffect)(()=>{if(t)return t(e),()=>t(null)},[t,e])}var J,Ya,Xa,Za,Qa,$a,eo=t((()=>{J=n(h(),1),Ya=C(),Xa=(0,J.createContext)(null),Za=(0,J.createContext)(null),Qa=(0,J.createContext)(null),$a=(0,J.createContext)(null)}));function to(e){let[t,n]=(0,Y.useState)(null),r=(0,Y.useRef)(e);r.current=e;let i=(0,Y.useRef)(null),a=(0,Y.useCallback)(()=>{n(null)},[]),o=(0,Y.useCallback)(e=>{let t=Math.max(0,e.getScrollHeight()-e.getViewportHeight());e.getScrollTop()+e.getPendingDelta()>=t||i.current===null&&(i.current=e.getScrollHeight(),n(r.current))},[]),s=(0,Y.useCallback)(e=>{e&&e.scrollToBottom()},[]);return(0,Y.useEffect)(()=>{t===null?i.current=null:e<t&&(i.current=null,n(null))},[e,t]),{dividerIndex:t,dividerYRef:i,onScrollAway:o,onRepin:a,jumpToNew:s,shiftDivider:(0,Y.useCallback)((e,t)=>{n(t=>t===null?null:t+e),i.current!==null&&(i.current+=t)},[])}}function no(e,t){let n=0,r=!1;for(let i=t;i<e.length;i++){let t=e[i];if(t.type===`progress`||t.type===`assistant`&&!ro(t))continue;let a=t.type===`assistant`;a&&!r&&n++,r=a}return n}function ro(e){if(e.type!==`assistant`||!Array.isArray(e.message.content))return!1;for(let t of e.message.content)if(typeof t!=`string`&&t.type===`text`&&t.text.trim()!==``)return!0;return!1}function io(e,t){if(t===null)return;let n=t;for(;n<e.length&&(e[n]?.type===`progress`||_a(e[n]));)n++;let r=e[n]?.uuid;if(!r)return;let i=no(e,t);return{firstUnseenUuid:r,count:Math.max(1,i)}}function ao({scrollable:e,bottom:t,overlay:n,bottomFloat:r,modal:i,modalScrollRef:a,scrollRef:o,dividerYRef:s,hidePill:c=!1,hideSticky:l=!1,newMessageCount:d=0,onPillClick:f}){let{rows:p,columns:h}=u(),[v,y]=(0,Y.useState)(null),b=(0,Y.useMemo)(()=>({setStickyPrompt:y}),[]),S=(0,Y.useSyncExternalStore)((0,Y.useCallback)(e=>o?.current?.subscribe(e)??(()=>{}),[o]),()=>{let e=o?.current,t=s?.current;return!e||t==null?!1:e.getScrollTop()+e.getPendingDelta()+e.getViewportHeight()<t});if((0,Y.useLayoutEffect)(()=>{if(!ut())return;let e=m.get(process.stdout);if(e)return e.onHyperlinkClick=e=>{if(e.startsWith(`file:`))try{un(tr(e))}catch{}else ln(e)},()=>{e.onHyperlinkClick=void 0}},[]),ut()){let s=l?null:v,u=s!=null&&s!==`clicked`&&n==null?s:null,m=s!=null&&n==null;return(0,X.jsxs)(Wa,{children:[(0,X.jsx)(x,{flexDirection:`row`,flexGrow:1,overflow:`hidden`,width:`100%`,children:(0,X.jsxs)(x,{flexDirection:`column`,flexGrow:1,width:h,overflow:`hidden`,children:[(0,X.jsxs)(x,{flexGrow:1,flexDirection:`column`,overflow:`hidden`,children:[u&&(0,X.jsx)(so,{text:u.text,onClick:u.scrollTo}),(0,X.jsxs)(g,{ref:o,flexGrow:1,flexDirection:`column`,paddingTop:+!m,stickyScroll:!0,children:[(0,X.jsx)(fo,{value:b,children:e}),n]}),!c&&S&&n==null&&(0,X.jsx)(oo,{count:d,onClick:f}),r!=null&&(0,X.jsx)(x,{position:`absolute`,bottom:0,right:0,opaque:!0,children:r})]}),(0,X.jsxs)(x,{flexDirection:`column`,flexShrink:0,width:`100%`,maxHeight:`50%`,children:[(0,X.jsx)(co,{}),(0,X.jsx)(lo,{}),(0,X.jsx)(x,{flexDirection:`column`,width:`100%`,flexGrow:1,overflowY:`hidden`,children:t})]})]})}),i!=null&&(0,X.jsx)(Wn,{value:{rows:p-uo-1,columns:h-4,scrollRef:a??null},children:(0,X.jsxs)(x,{position:`absolute`,bottom:0,left:0,right:0,maxHeight:p-uo,flexDirection:`column`,overflow:`hidden`,opaque:!0,children:[(0,X.jsx)(x,{flexShrink:0,children:(0,X.jsx)(_,{color:`permission`,children:`▔`.repeat(h)})}),(0,X.jsx)(x,{flexDirection:`column`,paddingX:2,flexShrink:0,overflow:`hidden`,children:i})]})})]})}return(0,X.jsxs)(X.Fragment,{children:[e,t,n,i]})}function oo({count:e,onClick:t}){let[n,r]=(0,Y.useState)(!1);return(0,X.jsx)(x,{position:`absolute`,bottom:0,left:0,right:0,justifyContent:`center`,children:(0,X.jsx)(x,{onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:(0,X.jsxs)(_,{backgroundColor:n?`userMessageBackgroundHover`:`userMessageBackground`,dimColor:!0,children:[` `,e>0?`${e} new ${M(e,`message`)}`:`Jump to bottom`,` `,s.arrowDown,` `]})})})}function so({text:e,onClick:t}){let[n,r]=(0,Y.useState)(!1);return(0,X.jsx)(x,{flexShrink:0,width:`100%`,height:1,paddingRight:1,backgroundColor:n?`userMessageBackgroundHover`:`userMessageBackground`,onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:(0,X.jsxs)(_,{color:`subtle`,wrap:`truncate-end`,children:[s.pointer,` `,e]})})}function co(){let e=Ga();return!e||e.suggestions.length===0?null:(0,X.jsx)(x,{position:`absolute`,bottom:`100%`,left:0,right:0,paddingX:2,paddingTop:1,flexDirection:`column`,opaque:!0,children:(0,X.jsx)(zn,{suggestions:e.suggestions,selectedSuggestion:e.selectedSuggestion,maxColumnWidth:e.maxColumnWidth,overlay:!0})})}function lo(){let e=Ka();return e?(0,X.jsx)(x,{position:`absolute`,bottom:`100%`,left:0,right:0,opaque:!0,children:e}):null}var Y,X,uo,fo,po=t((()=>{o(),Y=n(h(),1),Un(),eo(),Ot(),y(),dn(),Re(),ce(),ya(),Bn(),X=C(),uo=2,fo=(0,Y.createContext)({setStickyPrompt:()=>{}})}));function mo(e){let t=So.get(e);if(t!==void 0)return t;let n=vr(e);return So.set(e,n),n}function ho(e){let t=wo.get(e);if(t!==void 0)return t;let n=go(e);return wo.set(e,n),n}function go(e){let t=null;if(e.type===`user`){if(e.isMeta||e.isVisibleInTranscriptOnly)return null;let n=e.message.content[0];if(n?.type!==`text`)return null;t=n.text??null}else if(e.type===`attachment`&&e.attachment.type===`queued_command`&&e.attachment.commandMode!==`task-notification`&&!e.attachment.isMeta){let n=e.attachment.prompt;t=typeof n==`string`?n:n.flatMap(e=>e.type===`text`?[e.text??``]:[]).join(`
11
- `)}if(t===null)return null;let n=dt(t);return n.startsWith(`<`)||n===``?null:n}function _o({itemKey:e,msg:t,idx:n,measureRef:r,expanded:i,hovered:a,clickable:o,onClickK:s,onEnterK:c,onLeaveK:l,renderItem:u}){return(0,bo.jsx)(x,{ref:r(e),flexDirection:`column`,backgroundColor:i?`userMessageBackgroundHover`:void 0,paddingBottom:i?1:void 0,onClick:o?e=>s(t,e.cellIsBlank):void 0,onMouseEnter:o?()=>c(e):void 0,onMouseLeave:o?()=>l(e):void 0,children:(0,bo.jsx)(S.Provider,{value:a&&!i?`text`:void 0,children:u(t,n)})})}function vo({messages:e,scrollRef:t,columns:n,itemKey:r,renderItem:i,onItemClick:a,isItemClickable:o,isItemExpanded:s,extractSearchText:c=mo,trackStickyPrompt:l,selectedIndex:u,cursorNavRef:d,setCursor:f,jumpRef:p,onSearchMatchesChange:m,scanElement:h,setPositions:g}){let _=(0,Z.useRef)([]),v=(0,Z.useRef)(e),y=(0,Z.useRef)(r);if(y.current!==r||e.length<_.current.length||e[0]!==v.current[0])_.current=e.map(e=>r(e));else for(let t=_.current.length;t<e.length;t++)_.current.push(r(e[t]));v.current=e,y.current=r;let b=_.current,{range:S,topSpacer:C,bottomSpacer:w,measureRef:ee,spacerRef:T,offsets:E,getItemTop:D,getItemElement:O,getItemHeight:te,scrollToIndex:ne}=Pa(t,b,n),[k,re]=S,ie=(0,Z.useCallback)(t=>te(t)===0?!1:Xt(e[t]),[te,e]);(0,Z.useImperativeHandle)(d,()=>{let n=e=>f?.({uuid:e.uuid,msgType:e.type,expanded:!1,toolName:He(e)?.name}),r=u??-1,i=(t,r,i=ie)=>{for(let a=t;a>=0&&a<e.length;a+=r)if(i(a))return n(e[a]),!0;return!1},a=t=>ie(t)&&e[t].type===`user`;return{enterCursor:()=>i(e.length-1,-1,a),navigatePrev:()=>i(r-1,-1),navigateNext:()=>{i(r+1,1)||(t.current?.scrollToBottom(),f?.(null))},navigatePrevUser:()=>i(r-1,-1,a),navigateNextUser:()=>i(r+1,1,a),navigateTop:()=>i(0,1),navigateBottom:()=>i(e.length-1,-1),getSelected:()=>r>=0?e[r]??null:null}},[e,u,f,ie]);let A=(0,Z.useRef)({offsets:E,start:k,getItemElement:O,getItemTop:D,messages:e,scrollToIndex:ne});A.current={offsets:E,start:k,getItemElement:O,getItemTop:D,messages:e,scrollToIndex:ne},(0,Z.useEffect)(()=>{if(u===void 0)return;let e=A.current,n=e.getItemElement(u);n?t.current?.scrollToElement(n,1):e.scrollToIndex(u)},[u,t]);let j=(0,Z.useRef)(null),M=(0,Z.useRef)({msgIdx:-1,positions:[]}),N=(0,Z.useRef)(-1),ae=(0,Z.useRef)(0),P=(0,Z.useRef)(0),oe=(0,Z.useRef)(()=>{}),F=(0,Z.useRef)(()=>{}),I=(0,Z.useRef)({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),se=(0,Z.useRef)(-1),L=(0,Z.useRef)(!1);function ce(e){let t=A.current.getItemTop(e);return Math.max(0,t-xo)}function le(e){let n=t.current,{msgIdx:r,positions:i}=M.current;if(!n||i.length===0||r<0){g?.(null);return}let a=Math.max(0,Math.min(e,i.length-1)),o=i[a],s=A.current.getItemTop(r),c=n.getViewportTop(),l=s-n.getScrollTop(),u=n.getViewportHeight(),d=c+l+o.row;(d<c||d>=c+u)&&(n.scrollTo(Math.max(0,s+o.row-xo)),l=s-n.getScrollTop(),d=c+l+o.row),g?.({positions:i,rowOffset:c+l,currentIdx:a});let f=I.current,p=f.prefixSum.at(-1)??0,h=(f.prefixSum[f.ptr]??0)+a+1;m?.(p,h),z(`highlight(i=${r}, ord=${a}/${i.length}): pos={row:${o.row},col:${o.col}} lo=${l} screenRow=${d} badge=${h}/${p}`)}F.current=le;let[ue,de]=(0,Z.useState)(0),fe=(0,Z.useCallback)(()=>de(e=>e+1),[]);(0,Z.useEffect)(()=>{let e=j.current;if(!e)return;let{idx:n,wantLast:r,tries:i}=e,a=t.current;if(!a)return;let{getItemElement:o,getItemTop:s,scrollToIndex:c}=A.current,l=o(n),u=l?.yogaNode?.getComputedHeight()??0;if(!l||u===0){if(i>1){j.current=null,z(`seek(i=${n}): no mount after scrollToIndex, skip`),oe.current(r?-1:1);return}j.current={idx:n,wantLast:r,tries:i+1},c(n),fe();return}j.current=null,a.scrollTo(Math.max(0,s(n)-xo));let d=h?.(l)??[];if(M.current={msgIdx:n,positions:d},z(`seek(i=${n} t=${i}): ${d.length} positions`),d.length===0){if(++ae.current>20){ae.current=0;return}oe.current(r?-1:1);return}ae.current=0;let f=r?d.length-1:0;I.current.screenOrd=f,N.current=-1,F.current(f);let p=P.current;p&&(P.current=0,oe.current(p))},[ue]);function pe(e,n){let r=t.current;if(!r)return;let i=A.current,{getItemElement:a,scrollToIndex:o}=i;if(e<0||e>=i.messages.length)return;g?.(null),M.current={msgIdx:-1,positions:[]},j.current={idx:e,wantLast:n,tries:0};let s=a(e),c=s?.yogaNode?.getComputedHeight()??0;s&&c>0?r.scrollTo(ce(e)):o(e),fe()}function R(e){let t=I.current,{matches:n,prefixSum:r}=t,i=r.at(-1)??0;if(n.length===0)return;if(j.current){P.current=e;return}N.current<0&&(N.current=t.ptr);let{positions:a}=M.current,o=t.screenOrd+e;if(o>=0&&o<a.length){t.screenOrd=o,le(o),N.current=-1;return}let s=(t.ptr+e+n.length)%n.length;if(s===N.current){g?.(null),N.current=-1,z(`step: wraparound at ptr=${s}, all ${n.length} msgs phantoms`);return}t.ptr=s,t.screenOrd=0,pe(n[s],e<0);let c=e<0?r[s+1]??i:r[s]+1;m?.(i,c)}oe.current=R,(0,Z.useImperativeHandle)(p,()=>({jumpToIndex:e=>{let n=t.current;n&&n.scrollTo(ce(e))},setSearchQuery:e=>{j.current=null,M.current={msgIdx:-1,positions:[]},N.current=-1,g?.(null);let n=e.toLowerCase(),r=[],i=[0];if(n){let e=A.current.messages;for(let t=0;t<e.length;t++){let a=c(e[t]),o=a.indexOf(n),s=0;for(;o>=0;)s++,o=a.indexOf(n,o+n.length);s>0&&(r.push(t),i.push(i.at(-1)+s))}}let a=i.at(-1),o=0,s=t.current,{offsets:l,start:u,getItemTop:d}=A.current,f=d(u),p=f>=0?f-l[u]:0;if(r.length>0&&s){let t=se.current>=0?se.current:s.getScrollTop(),n=1/0;for(let e=0;e<r.length;e++){let i=Math.abs(p+l[r[e]]-t);i<=n&&(n=i,o=e)}z(`setSearchQuery('${e}'): ${r.length} msgs · ptr=${o} msgIdx=${r[o]} curTop=${t} origin=${p}`)}I.current={matches:r,ptr:o,screenOrd:0,prefixSum:i},r.length>0?pe(r[o],!0):se.current>=0&&s&&s.scrollTo(se.current),m?.(a,r.length>0?i[o+1]??a:0)},nextMatch:()=>R(1),prevMatch:()=>R(-1),setAnchor:()=>{let e=t.current;e&&(se.current=e.getScrollTop())},disarmSearch:()=>{g?.(null),j.current=null,M.current={msgIdx:-1,positions:[]},N.current=-1},warmSearchIndex:async()=>{if(L.current)return 0;let e=A.current.messages,t=0,n=performance.now();for(let n=0;n<e.length;n+=500){await je(0);let r=performance.now(),i=Math.min(n+500,e.length);for(let t=n;t<i;t++)c(e[t]);t+=performance.now()-r}let r=Math.round(performance.now()-n);return z(`warmSearchIndex: ${e.length} msgs · work=${Math.round(t)}ms wall=${r}ms chunks=${Math.ceil(e.length/500)}`),L.current=!0,Math.round(t)}}),[t]);let[me,he]=(0,Z.useState)(null),ge=(0,Z.useRef)({onItemClick:a,setHoveredKey:he});ge.current={onItemClick:a,setHoveredKey:he};let B=(0,Z.useCallback)((e,t)=>{let n=ge.current;!t&&n.onItemClick&&n.onItemClick(e)},[]),_e=(0,Z.useCallback)(e=>{ge.current.setHoveredKey(e)},[]),ve=(0,Z.useCallback)(e=>{ge.current.setHoveredKey(t=>t===e?null:t)},[]);return(0,bo.jsxs)(bo.Fragment,{children:[(0,bo.jsx)(x,{ref:T,height:C,flexShrink:0}),e.slice(k,re).map((e,t)=>{let n=k+t,r=b[n],c=!!a&&(o?.(e)??!0),l=c&&me===r,u=s?.(e);return(0,bo.jsx)(_o,{itemKey:r,msg:e,idx:n,measureRef:ee,expanded:u,hovered:l,clickable:c,onClickK:B,onEnterK:_e,onLeaveK:ve,renderItem:i},r)}),w>0&&(0,bo.jsx)(x,{height:w,flexShrink:0}),l&&(0,bo.jsx)(yo,{messages:e,start:k,end:re,offsets:E,getItemTop:D,getItemElement:O,scrollRef:t})]})}function yo({messages:e,start:t,end:n,offsets:r,getItemTop:i,getItemElement:a,scrollRef:o}){let{setStickyPrompt:s}=(0,Z.useContext)(fo);(0,Z.useSyncExternalStore)((0,Z.useCallback)(e=>o.current?.subscribe(e)??To,[o]),()=>{let e=o.current;if(!e)return NaN;let t=e.getScrollTop()+e.getPendingDelta();return e.isSticky()?-1-t:t});let c=o.current?.isSticky()??!0,l=Math.max(0,(o.current?.getScrollTop()??0)+(o.current?.getPendingDelta()??0)),u=t,d=-1;for(let e=n-1;e>=t;e--){let t=i(e);if(t>=0){if(t<l)break;d=t}u=e}let f=-1,p=null;if(u>0&&!c)for(let t=u-1;t>=0;t--){let n=ho(e[t]);if(n===null)continue;let r=i(t);if(!(r>=0&&r+1>=l)){f=t,p=n;break}}let m=d>=0?d-r[u]:0,h=f>=0?Math.max(0,m+r[f]):-1,g=(0,Z.useRef)({idx:-1,tries:0}),_=(0,Z.useRef)(`none`),v=(0,Z.useRef)(-1);return(0,Z.useEffect)(()=>{if(g.current.idx>=0)return;if(_.current===`armed`){_.current=`force`;return}let e=_.current===`force`;if(_.current=`none`,!e&&v.current===f)return;if(v.current=f,p===null){s(null);return}let t=p.trimStart(),n=t.search(/\n\s*\n/),r=(n>=0?t.slice(0,n):t).slice(0,Co).replace(/\s+/g,` `).trim();if(r===``){s(null);return}let i=f,c=h;s({text:r,scrollTo:()=>{s(`clicked`),_.current=`armed`;let e=a(i);e?o.current?.scrollToElement(e,1):(o.current?.scrollTo(c),g.current={idx:i,tries:0})}})}),(0,Z.useEffect)(()=>{if(g.current.idx<0)return;let e=a(g.current.idx);e?(o.current?.scrollToElement(e,1),g.current={idx:-1,tries:0}):++g.current.tries>5&&(g.current={idx:-1,tries:0})}),null}var Z,bo,xo,So,Co,wo,To,Eo=t((()=>{h(),Z=n(h(),1),Ua(),y(),Qt(),po(),bo=C(),R(),Me(),Tr(),ze(),xo=3,So=new WeakMap,Co=500,wo=new WeakMap,To=()=>{}}));function Do(e,t){let n=new Set(t),r=new Set;return e.filter(e=>{if(e.type===`system`)return e.subtype!==`api_metrics`;let t=e.message?.content[0];if(e.type===`assistant`)return e.isApiErrorMessage?!0:t?.type===`tool_use`&&t.name&&n.has(t.name)?(`id`in t&&r.add(t.id),!0):!1;if(e.type===`user`)return t?.type===`tool_result`?t.tool_use_id!==void 0&&r.has(t.tool_use_id):!e.isMeta;if(e.type===`attachment`){let t=e.attachment;return t?.type===`queued_command`&&t.commandMode===`prompt`&&!t.isMeta&&t.origin===void 0}return!1})}function Oo(e,t){let n=new Set(t),r=new Set,i=[],a=0;for(let t=0;t<e.length;t++){let o=e[t],s=o.message?.content[0];if(o.type===`user`&&s?.type!==`tool_result`&&!o.isMeta){a++;continue}o.type===`assistant`&&(s?.type===`text`?i[t]=a:s?.type===`tool_use`&&s.name&&n.has(s.name)&&r.add(a))}return r.size===0?e:e.filter((e,t)=>{let n=i[t];return n===void 0||!r.has(n)})}function ko(e,t,n=zo,r=Bo){let i=t.current,a=i?e.findIndex(e=>e.uuid===i.uuid):-1,o=a>=0?a:i?Math.min(i.idx,Math.max(0,e.length-n)):0;e.length-o>n+r&&(o=e.length-n);let s=e[o];return s&&(i?.uuid!==s.uuid||i.idx!==o)?t.current={uuid:s.uuid,idx:o}:!s&&i&&(t.current=null),o}function Ao(e){return(e.type===`assistant`||e.type===`user`?Xe(e):null)??e.uuid}function jo(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Mo(e,t,n,r,i,a){if(i===`transcript`)return!0;switch(e.type){case`attachment`:case`user`:case`assistant`:{if(e.type===`assistant`){let t=e.message.content[0];if(t?.type===`server_tool_use`)return a.resolvedToolUseIDs.has(t.id)}let i=Xe(e);return i?t.has(i)||n.has(i)||Ge(i,`PostToolUse`,a)?!1:nr(r,a.resolvedToolUseIDs):!0}case`system`:return e.subtype!==`api_error`;case`grouped_tool_use`:return e.messages.every(e=>{let t=e.message.content[0];return t?.type===`tool_use`&&a.resolvedToolUseIDs.has(t.id)});case`collapsed_read_search`:return!1;default:return!0}}var No,Q,$,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo=t((()=>{p(),xn(),No=n(h(),1),Q=n(h(),1),rr(),T(),O(),Ot(),y(),$e(),nn(),Be(),or(),lr(),mt(),fr(),D(),i(),Re(),_r(),pt(),ce(),Tr(),ea(),Vt(),ga(),ze(),zt(),ya(),Lt(),Na(),$=C(),Eo(),Po=No.memo(function({agentDefinitions:e}){return(0,$.jsx)(Gt,{children:(0,$.jsxs)(x,{flexDirection:`column`,gap:1,children:[(0,$.jsx)(Xi,{}),(0,$.jsx)(No.Suspense,{fallback:null,children:(0,$.jsx)(ka,{agentDefinitions:e})})]})})}),Fo=(cn(),e(sn)),Io=(ie(),e(de)).BRIEF_TOOL_NAME,Lo=(at(),e(Fe)).SEND_USER_FILE_TOOL_NAME,Ro=30,zo=200,Bo=50,Vo=({messages:e,tools:t,commands:n,verbose:r,toolJSX:i,toolUseConfirmQueue:o,inProgressToolUseIDs:s,isMessageSelectorVisible:c,conversationId:l,screen:p,streamingToolUses:m,showAllInTranscript:h=!1,agentDefinitions:g,onOpenRateLimitOptions:y,hideLogo:b=!1,isLoading:S,hidePastThinking:C=!1,streamingThinking:w,streamingText:T,isBriefOnly:E=!1,unseenDivider:D,scrollRef:O,trackStickyPrompt:te,jumpRef:k,onSearchMatchesChange:re,scanElement:ie,setPositions:A,disableRenderCap:j=!1,cursor:N=null,setCursor:ae,cursorNavRef:oe,renderRange:F})=>{let{columns:I}=u(),se=jt(`transcript:toggleShowAll`,`Transcript`,`Ctrl+E`),L=(0,Q.useMemo)(()=>bt(e).filter(Ye),[e]),ce=(0,Q.useMemo)(()=>w?w.isStreaming?!0:w.streamingEndedAt?Date.now()-w.streamingEndedAt<3e4:!1:!1,[w]),{lastThinkingBlockId:le,latestBashOutputUUID:ue}=(0,Q.useMemo)(()=>{let e=null,t=null,n=C&&!ce;C&&ce&&(e=`streaming`);for(let r=L.length-1;r>=0;r--){let i=L[r];if(i?.type===`user`){let r=i.message.content;if(!t){for(let e of r)if(e.type===`text`){let n=e.text??``;if(n.startsWith(`<bash-stdout`)||n.startsWith(`<bash-stderr`)){t=i.uuid;break}}}n&&!e&&(r.some(e=>e.type===`tool_result`)||(e=`no-thinking`))}else if(i?.type===`assistant`&&n&&!e){let t=i.message.content;for(let n=t.length-1;n>=0;n--)if(t[n]?.type===`thinking`){e=`${i.uuid}:${n}`;break}}if(e!==null&&t)break}return C||(e=null),{lastThinkingBlockId:e,latestBashOutputUUID:t}},[L,C,ce]),de=(0,Q.useMemo)(()=>ot(L),[L]),fe=(0,Q.useMemo)(()=>m.filter(e=>!s.has(e.contentBlock.id)&&!de.has(e.contentBlock.id)),[m,s,de]),pe=(0,Q.useMemo)(()=>fe.flatMap(e=>{let t=kt({content:[e.contentBlock]});return t.uuid=Ve(e.contentBlock.id,0),bt([t])}),[fe]),R=p===`transcript`,me=(0,Q.useMemo)(()=>a(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),z=O!=null&&!me,he=R&&!h&&!z,ge=(0,Q.useRef)(null),B=(0,Q.useRef)(null),{collapsed:_e,lookups:ve,hasTruncatedMessages:ye,hiddenMessageCount:be}=(0,Q.useMemo)(()=>{let e=Tt((r||ut()?L:nt(L,{includeSnipped:!0})).filter(e=>e.type!==`progress`&&!_a(e)&&qt(e,R)),pe),n=[Io,Lo].filter(e=>e!==null),i=[Io].filter(e=>e!==null),a=n.length>0&&!R?E?Do(e,n):i.length>0?Oo(e,i):e:e,o=he?a.slice(-Ro):a,s=he&&a.length>Ro,{messages:c}=hr(o,t,r),l=ar(cr(dr(ct(c,t))),r),u=Yt(L,o),d=(()=>{let e=o.at(-1);return e?.type===`assistant`?e.message?.id:void 0})(),f;if(B.current&&B.current.key===u)f=B.current.lookups;else if(B.current&&L.length>=B.current.normalizedCount&&o.length>=B.current.messageCount&&B.current.lastAssistantMsgId===d){let e=St(B.current.lookups,B.current.normalizedCount,B.current.messageCount,L,o);e?(f=e,B.current={key:u,lookups:f,normalizedCount:L.length,messageCount:o.length,lastAssistantMsgId:d}):(f=Ft(L,o),B.current={key:u,lookups:f,normalizedCount:L.length,messageCount:o.length,lastAssistantMsgId:d})}else f=Ft(L,o),B.current={key:u,lookups:f,normalizedCount:L.length,messageCount:o.length,lastAssistantMsgId:d};let p=e.length-Ro;return{collapsed:l,lookups:f,hasTruncatedMessages:s,hiddenMessageCount:p}},[r,L,R,pe,he,t,E]),V=(0,Q.useMemo)(()=>{let e=!z&&!j?ko(_e,ge):0;return F?_e.slice(F[0],F[1]):e>0?_e.slice(e):_e},[_e,F,z,j]),xe=(0,Q.useMemo)(()=>new Set(m.map(e=>e.contentBlock.id)),[m]),{dividerBeforeIndex:Se,selectedIdx:Ce}=(0,Q.useMemo)(()=>{if(!D&&!N)return{dividerBeforeIndex:-1,selectedIdx:-1};let e=-1,t=-1,n=D?.firstUnseenUuid.slice(0,24);for(let r=0;r<V.length;r++){let i=V[r];if(e===-1&&n&&i.uuid.slice(0,24)===n&&(e=r),t===-1&&N&&i.uuid===N.uuid&&(t=r),e!==-1&&t!==-1)break}return{dividerBeforeIndex:e,selectedIdx:t}},[D,N,V]),[we,Te]=(0,Q.useState)(()=>new Set),Ee=(0,Q.useCallback)(e=>{let t=Ao(e);Te(e=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n})},[]),De=(0,Q.useCallback)(e=>we.size>0&&we.has(Ao(e)),[we]),Oe=(0,Q.useRef)(ve);Oe.current=ve;let ke=(0,Q.useCallback)(e=>{if(e.type===`collapsed_read_search`)return!0;if(e.type===`assistant`){let t=e.message.content,n=Array.isArray(t)?t[0]:void 0;return n!=null&&Zt(n)&&n.type===`advisor_tool_result`&&n.content.type===`advisor_result`}if(e.type!==`user`)return!1;let n=e.message.content[0];if(n?.type!==`tool_result`||n.is_error||!e.toolUseResult)return!1;let r=Oe.current.toolUseByToolUseID.get(n.tool_use_id??``)?.name;return(r?rn(t,r):void 0)?.isResultTruncated?.(e.toolUseResult)??!1},[t]),Ae=(!i||!!i.shouldContinueAnimation)&&!o.length&&!c,je=s.size>0,{progress:Me}=d(),Ne=(0,Q.useRef)(null),Pe=P().terminalProgressBarEnabled&&!ee()&&!(Fo?.isProactiveActive()??!1);(0,Q.useEffect)(()=>{let e=Pe?je?`indeterminate`:`completed`:null;Ne.current!==e&&(Ne.current=e,Me(e))},[Me,Pe,je]),(0,Q.useEffect)(()=>()=>Me(null),[Me]);let Fe=(0,Q.useCallback)(e=>`${e.uuid}-${l}`,[l]),Ie=(e,i)=>{let a=i>0?V[i-1]?.type:void 0,o=e.type===`user`&&a===`user`,c=e.type===`collapsed_read_search`&&(!!T||sa(V,i,t,xe)),l=V.length-1-i>0,u=Fe(e),d=(0,$.jsx)(ha,{message:e,isUserContinuation:o,hasContentAfter:c,tools:t,commands:n,verbose:r||De(e)||N?.expanded===!0&&i===Ce,inProgressToolUseIDs:s,streamingToolUseIDs:xe,screen:p,canAnimate:Ae,onOpenRateLimitOptions:y,lastThinkingBlockId:le,latestBashOutputUUID:ue,columns:I,isLoading:S,lookups:ve,shouldCollapseDiffs:l},u),f=(0,$.jsx)(lt.Provider,{value:i===Ce,children:d},u);return D&&i===Se?[(0,$.jsx)(x,{marginTop:1,children:(0,$.jsx)(v,{title:`${D.count} new ${M(D.count,`message`)}`,width:I,color:`inactive`})},`unseen-divider`),f]:f},Le=(0,Q.useRef)(new WeakMap),Re=(0,Q.useCallback)(e=>{let n=Le.current.get(e);if(n!==void 0)return n;let r=vr(e);if(e.type===`user`&&e.toolUseResult&&Array.isArray(e.message.content)){let n=e.message.content.find(e=>e.type===`tool_result`);if(n&&`tool_use_id`in n){let i=ve.toolUseByToolUseID.get(n.tool_use_id),a=(i&&rn(t,i.name))?.extractSearchText?.(e.toolUseResult);a!==void 0&&(r=a)}}let i=r.toLowerCase();return Le.current.set(e,i),i},[t,ve]);return(0,$.jsxs)(Sn,{name:`MessagesBoundary`,children:[!b&&!(F&&F[0]>0)&&(0,$.jsx)(Po,{agentDefinitions:g}),ye&&(0,$.jsx)(v,{title:`${se} to show ${f.bold(be)} previous messages`,width:I}),R&&h&&be>0&&!j&&(0,$.jsx)(v,{title:`${se} to hide ${f.bold(be)} previous messages`,width:I}),z?(0,$.jsx)(Ct.Provider,{value:!0,children:(0,$.jsx)(vo,{messages:V,scrollRef:O,columns:I,itemKey:Fe,renderItem:Ie,onItemClick:Ee,isItemClickable:ke,isItemExpanded:De,trackStickyPrompt:te,selectedIndex:Ce>=0?Ce:void 0,cursorNavRef:oe,setCursor:ae,jumpRef:k,onSearchMatchesChange:re,scanElement:ie,setPositions:A,extractSearchText:Re})}):V.flatMap(Ie),T&&!E&&(0,$.jsx)(x,{alignItems:`flex-start`,flexDirection:`row`,marginTop:1,width:`100%`,children:(0,$.jsxs)(x,{flexDirection:`row`,children:[(0,$.jsx)(x,{minWidth:2,children:(0,$.jsx)(_,{color:`text`,children:ne})}),(0,$.jsx)(x,{flexDirection:`column`,children:(0,$.jsx)(Et,{children:T})})]})}),ce&&w&&!E&&(0,$.jsx)(x,{marginTop:1,children:(0,$.jsx)(xt,{param:{type:`thinking`,thinking:w.thinking},addMargin:!1,isTranscriptMode:!0,verbose:r,hideInTranscript:!1})})]})},Ho=No.memo(Vo,(e,t)=>{let n=Object.keys(e);for(let r of n)if(!(r===`onOpenRateLimitOptions`||r===`scrollRef`||r===`trackStickyPrompt`||r===`setCursor`||r===`cursorNavRef`||r===`jumpRef`||r===`onSearchMatchesChange`||r===`scanElement`||r===`setPositions`)&&e[r]!==t[r]){if(r===`streamingToolUses`){let n=e.streamingToolUses,r=t.streamingToolUses;if(n.length===r.length&&n.every((e,t)=>e.contentBlock===r[t]?.contentBlock))continue}if(r===`inProgressToolUseIDs`&&jo(e.inProgressToolUseIDs,t.inProgressToolUseIDs))continue;if(r===`unseenDivider`){let n=e.unseenDivider,r=t.unseenDivider;if(n?.firstUnseenUuid===r?.firstUnseenUuid&&n?.count===r?.count)continue}if(r===`tools`){let n=e.tools,r=t.tools;if(n.length===r.length&&n.every((e,t)=>e.name===r[t]?.name))continue}return!1}return!0})}));export{po as a,qa as c,io as i,Ja as l,Uo as n,to as o,ao as r,eo as s,Ho as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-DR8-3Aex.js";import{f as t,s as n}from"./envUtils-BWeoiL4Y.js";import{J as r,Q as i,Rn as a,T as o,b as s,nt as c,t as l,x as u}from"./src-Di342QoJ.js";import{t as d}from"./jsx-runtime-D-D469L8.js";import{Ac as f,Xi as p,Zi as m,cn as h,on as g,xc as _}from"./paths-DfGsIjPm.js";import{n as v,r as y}from"./analytics-DqMQntaB.js";import{a as b,n as x}from"./env-BH-OBzcA.js";import{Jy as S,Uy as C,Wy as w,aS as T,oS as E}from"./loadAgentsDir-Br5fGLLI.js";import{t as D}from"./useKeybinding-FsOnjW6T.js";import{c as O,i as k,s as A}from"./terminalSetup-CmAEgt-5.js";import{l as j,u as M}from"./referral-DOqhciQu.js";import{t as N}from"./WelcomeV2-BJAKZYz1.js";import{n as P,t as F}from"./ThemePicker-BjSRjA_L.js";import{n as I,t as L}from"./PressEnterToContinue-BdA9zDGs.js";import{t as R}from"./ApproveApiKey-5xd0lUV7.js";n();var z=e(a(),1),B=d();v(),b(),f(),p(),g(),D(),k(),j(),l(),l(),S(),E(),w(),P(),I(),l();var V=(0,z.createContext)({marker:``});function H({children:e}){let{marker:t}=(0,z.useContext)(V);return(0,B.jsxs)(u,{gap:1,children:[(0,B.jsx)(s,{dimColor:!0,children:t}),(0,B.jsx)(u,{flexDirection:`column`,children:e})]})}l();var U=(0,z.createContext)({marker:``});function W({children:e}){let{marker:t}=(0,z.useContext)(U),n=0;for(let t of z.Children.toArray(e))!(0,z.isValidElement)(t)||t.type!==H||n++;let r=String(n).length;return(0,B.jsx)(u,{flexDirection:`column`,children:z.Children.map(e,(e,n)=>{if(!(0,z.isValidElement)(e)||e.type!==H)return e;let i=`${t}${`${String(n+1).padStart(r)}.`}`;return(0,B.jsx)(U.Provider,{value:{marker:i},children:(0,B.jsx)(V.Provider,{value:{marker:i},children:e})})})})}W.Item=H;var G=W;l();function K({onDone:e}){let[n,a]=(0,z.useState)(0),[l,d]=(0,z.useState)(!1),[f]=(0,z.useState)(()=>h()),[p,g]=o();(0,z.useEffect)(()=>{y(`tengu_began_setup`,{oauthEnabled:f})},[f]);function v(){if(n<j.length-1){let e=n+1;a(e),y(`tengu_onboarding_step`,{oauthEnabled:f,stepId:j[e]?.id})}else e()}function b(e){g(e),v()}let S=M(),w=(0,B.jsx)(u,{marginX:1,children:(0,B.jsx)(F,{onThemeSelect:b,showIntroText:!0,helpText:`To change this later, run /theme`,hideEscToCancel:!0,skipExitHandling:!0})}),E=(0,B.jsxs)(u,{flexDirection:`column`,gap:1,paddingLeft:1,children:[(0,B.jsx)(s,{bold:!0,children:`Before you start, keep in mind:`}),(0,B.jsx)(u,{flexDirection:`column`,width:70,children:(0,B.jsxs)(G,{children:[(0,B.jsxs)(G.Item,{children:[(0,B.jsx)(s,{children:`Always review changes before accepting`}),(0,B.jsxs)(s,{dimColor:!0,wrap:`wrap`,children:[`Claude can make mistakes — especially when running commands`,(0,B.jsx)(r,{}),`or editing files. You stay in control of every action.`,(0,B.jsx)(r,{})]})]}),(0,B.jsxs)(G.Item,{children:[(0,B.jsx)(s,{children:`Only use Claude Code on projects you trust`}),(0,B.jsxs)(s,{dimColor:!0,wrap:`wrap`,children:[`Untrusted code could contain prompt injection attacks.`,(0,B.jsx)(r,{}),(0,B.jsx)(i,{url:`https://code.claude.com/docs/en/security`})]})]})]})}),(0,B.jsx)(L,{})]}),D=(0,z.useMemo)(()=>{if(!process.env.ANTHROPIC_API_KEY||t())return``;let e=m(process.env.ANTHROPIC_API_KEY);if(_(e)===`new`)return e},[]);function k(e){e&&d(!0),v()}let j=[];j.push({id:`theme`,component:w}),D&&j.push({id:`api-key`,component:(0,B.jsx)(R,{customApiKeyTruncated:D,onDone:k})}),f&&j.push({id:`oauth`,component:(0,B.jsx)(q,{skip:l,onSkip:v,children:(0,B.jsx)(C,{onDone:v})})}),j.push({id:`security`,component:E}),O()&&j.push({id:`terminal-setup`,component:(0,B.jsxs)(u,{flexDirection:`column`,gap:1,paddingLeft:1,children:[(0,B.jsx)(s,{bold:!0,children:`Use Claude Code's terminal setup?`}),(0,B.jsxs)(u,{flexDirection:`column`,width:70,gap:1,children:[(0,B.jsxs)(s,{children:[`For the optimal coding experience, enable the recommended settings`,(0,B.jsx)(r,{}),`for your terminal:`,` `,x.terminal===`Apple_Terminal`?`Option+Enter for newlines and visual bell`:`Shift+Enter for newlines`]}),(0,B.jsx)(T,{options:[{label:`Yes, use recommended settings`,value:`install`},{label:`No, maybe later with /terminal-setup`,value:`no`}],onChange:e=>{e===`install`?A(p).catch(()=>{}).finally(v):v()},onCancel:()=>v()}),(0,B.jsx)(s,{dimColor:!0,children:S.pending?(0,B.jsxs)(B.Fragment,{children:[`Press `,S.keyName,` again to exit`]}):(0,B.jsx)(B.Fragment,{children:`Enter to confirm · Esc to skip`})})]})]})});let P=j[n],I=(0,z.useCallback)(()=>{n===j.length-1?e():v()},[n,j.length,f,e]),V=(0,z.useCallback)(()=>{v()},[n,j.length,f,e]);return c({"confirm:yes":I},{context:`Confirmation`,isActive:P?.id===`security`}),c({"confirm:no":V},{context:`Confirmation`,isActive:P?.id===`terminal-setup`}),(0,B.jsxs)(u,{flexDirection:`column`,children:[(0,B.jsx)(N,{}),(0,B.jsxs)(u,{flexDirection:`column`,marginTop:1,children:[P?.component,S.pending&&(0,B.jsx)(u,{padding:1,children:(0,B.jsxs)(s,{dimColor:!0,children:[`Press `,S.keyName,` again to exit`]})})]})]})}function q({skip:e,onSkip:t,children:n}){return(0,z.useEffect)(()=>{e&&t()},[e,t]),e?null:n}export{K as Onboarding};
@@ -1 +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}from"./src-Di342QoJ.js";import{t as a}from"./jsx-runtime-D-D469L8.js";import{Ac as o,Pc as s,Sc as c}from"./paths-DfGsIjPm.js";import{n as l,r as u}from"./analytics-DqMQntaB.js";import{C as d,x as f}from"./startupProfiler-CnDpob1v.js";import{a as p,n as m,r as h,t as g}from"./overageCreditGrant-cGQilawd.js";function _(){let e=m();return!e||!e.available||e.granted?!1:g(e)!==null}function v(){if(!_())return!1;let e=c();return!(e.hasVisitedExtraUsage||(e.overageCreditUpsellSeenCount??0)>=O)}function y(){m()===null&&p()}function b(){let[e]=(0,E.useState)(()=>(y(),v()));return e}function x(){let e=0;s(t=>(e=(t.overageCreditUpsellSeenCount??0)+1,{...t,overageCreditUpsellSeenCount:e})),u(`tengu_overage_credit_upsell_shown`,{seen_count:e})}function S(e){return`${e} in extra usage for third-party apps · /extra-usage`}function C(e){return`${e} in extra usage`}function w({maxWidth:e,twoLine:t}){let n=m();if(!n)return null;let i=g(n);if(!i)return null;if(t){let t=C(i);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(r,{color:`claude`,children:e?d(t,e):t}),(0,D.jsx)(r,{dimColor:!0,children:e?d(k,e):k})]})}let a=S(i),o=e?d(a,e):a,s=Math.min(C(i).length,o.length);return(0,D.jsxs)(r,{dimColor:!0,children:[(0,D.jsx)(r,{color:`claude`,children:o.slice(0,s)}),o.slice(s)]})}function T(){let e=m(),t=e?g(e):null,n=t?C(t):`extra usage credit`;return{title:n,lines:[],customContent:{content:(0,D.jsx)(r,{dimColor:!0,children:k}),width:Math.max(n.length,47)}}}var E,D,O,k,A=e((()=>{n(),E=t(n(),1),i(),l(),h(),o(),f(),D=a(),O=3,k=`On us. Works on third-party apps · /extra-usage`}));export{_ as a,A as i,T as n,v as o,x as r,b as s,w as t};