claude-code-best 2.6.10 → 2.6.11

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 (391) hide show
  1. package/dist/chunks/{AddWorkspaceDirectory-DYIf4o0g.js → AddWorkspaceDirectory-CGKtPsTK.js} +1 -1
  2. package/dist/chunks/{App-Bw4stCcv.js → App-DF28Bpg9.js} +1 -1
  3. package/dist/chunks/ApproveApiKey-BtiWOryM.js +1 -0
  4. package/dist/chunks/{ApproveApiKey-CNBKF9de.js → ApproveApiKey-D21kbmQj.js} +1 -1
  5. package/dist/chunks/{AssistantSessionChooser-DU5OOPwq.js → AssistantSessionChooser-CDfwNVi5.js} +1 -1
  6. package/dist/chunks/{BackgroundTasksDialog-ChDZ6M4c.js → BackgroundTasksDialog-5RpkAbJz.js} +1 -1
  7. package/dist/chunks/{BypassPermissionsModeDialog-UOkwRr3W.js → BypassPermissionsModeDialog-BDWFw61G.js} +1 -1
  8. package/dist/chunks/{ClaudeInChromeOnboarding-6UL2_PCg.js → ClaudeInChromeOnboarding-CpN0yIU_.js} +1 -1
  9. package/dist/chunks/{ClaudeMdExternalIncludesDialog-DBfmH_dG.js → ClaudeMdExternalIncludesDialog-CWRHpy22.js} +1 -1
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-Dje7A0F2.js +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-DQf3dmj6.js +1 -0
  12. package/dist/chunks/{DesktopHandoff-B-ySC5nP.js → DesktopHandoff-CKHLXiwc.js} +1 -1
  13. package/dist/chunks/{DevChannelsDialog-DZMsKuak.js → DevChannelsDialog-BwMFW7Wt.js} +1 -1
  14. package/dist/chunks/{DiffDialog-CeYcqIIw.js → DiffDialog-oA1v0BMo.js} +1 -1
  15. package/dist/chunks/Doctor-ButdpAkf.js +1 -0
  16. package/dist/chunks/{Doctor-ByQrTdef.js → Doctor-QVMo0fIh.js} +1 -1
  17. package/dist/chunks/{ExitFlow-gMv13EpM.js → ExitFlow-DJLYN-Bd.js} +1 -1
  18. package/dist/chunks/{Feedback-CGRlFB5g.js → Feedback-CpfhqIEv.js} +1 -1
  19. package/dist/chunks/{Grove-CnHyPepC.js → Grove-BugC6ssx.js} +1 -1
  20. package/dist/chunks/Grove-CmdRVv9F.js +1 -0
  21. package/dist/chunks/{HybridTransport-CiY6jyhx.js → HybridTransport-PeXWuYfl.js} +1 -1
  22. package/dist/chunks/{ITermBackend-CG-a4QYW.js → ITermBackend-dcs68DGS.js} +1 -1
  23. package/dist/chunks/{InvalidConfigDialog-umJZVrz-.js → InvalidConfigDialog-DdB9_Ve0.js} +1 -1
  24. package/dist/chunks/{InvalidSettingsDialog-C62kuhHc.js → InvalidSettingsDialog-BL8nxwWQ.js} +1 -1
  25. package/dist/chunks/{MCPConnectionManager-BbGFGZTr.js → MCPConnectionManager-D2eAGUME.js} +1 -1
  26. package/dist/chunks/{McpParsingWarnings-DW0d9Lsb.js → McpParsingWarnings-BYPXpmte.js} +1 -1
  27. package/dist/chunks/{MessageSelector-A-814zUi.js → MessageSelector-Bzq8CYAH.js} +1 -1
  28. package/dist/chunks/{Messages-C4nIAGDL.js → Messages-uRxxAMW-.js} +2 -2
  29. package/dist/chunks/{Onboarding-BRePz3fJ.js → Onboarding-ByLnHSnW.js} +1 -1
  30. package/dist/chunks/{OverageCreditUpsell-DEZsyI6y.js → OverageCreditUpsell-CVNfTSKG.js} +1 -1
  31. package/dist/chunks/{PluginSettings-CuZtXDaS.js → PluginSettings-h9Lj0vW6.js} +1 -1
  32. package/dist/chunks/{PromptInputFooterSuggestions-BrpVQJVn.js → PromptInputFooterSuggestions-CYWSLCgA.js} +1 -1
  33. package/dist/chunks/{PromptInputHelpMenu-BlGRpX1Q.js → PromptInputHelpMenu-BsYNhZCw.js} +1 -1
  34. package/dist/chunks/{QueryEngine-CK9YRTZo.js → QueryEngine-CxP2S3qi.js} +1 -1
  35. package/dist/chunks/{REPL-D-t0XQx2.js → REPL-CV12-ns7.js} +6 -6
  36. package/dist/chunks/REPL-h1bwm8ee.js +1 -0
  37. package/dist/chunks/{RemoteCallout-DvOZQWoG.js → RemoteCallout-WWO84za-.js} +1 -1
  38. package/dist/chunks/{RemoteSessionManager-BlIA65dM.js → RemoteSessionManager-Dx2skKnM.js} +1 -1
  39. package/dist/chunks/{ResumeConversation-BTccgPK8.js → ResumeConversation-CagiCg7-.js} +1 -1
  40. package/dist/chunks/{SSETransport-CIvM80QS.js → SSETransport-BHdzk1HO.js} +1 -1
  41. package/dist/chunks/SearchExtraToolsTool-BJ2d8mtx.js +1 -0
  42. package/dist/chunks/SentryErrorBoundary-CYiFofRZ.js +1 -0
  43. package/dist/chunks/{SentryErrorBoundary-BK2HjzVw.js → SentryErrorBoundary-CmewX8Dv.js} +1 -1
  44. package/dist/chunks/{Settings-D3Kpcb7q.js → Settings-BcgtW60l.js} +2 -2
  45. package/dist/chunks/{TeleportProgress-BFlMrsa_.js → TeleportProgress-BmbhZlOg.js} +1 -1
  46. package/dist/chunks/{TeleportRepoMismatchDialog-BUeyIQCH.js → TeleportRepoMismatchDialog-BAwtgUhR.js} +1 -1
  47. package/dist/chunks/{TeleportResumeWrapper-CHfeyo9J.js → TeleportResumeWrapper-BlkvOdYn.js} +1 -1
  48. package/dist/chunks/{ThemePicker-a5n2EKgk.js → ThemePicker-v_3lh136.js} +1 -1
  49. package/dist/chunks/{TmuxBackend-Ct9v-J78.js → TmuxBackend-B7Nabc5t.js} +1 -1
  50. package/dist/chunks/{TrustDialog-e1nyM-Fp.js → TrustDialog-CHu5eoeR.js} +1 -1
  51. package/dist/chunks/{ValidationErrorsList-BHCepjdO.js → ValidationErrorsList-BSMetgqr.js} +1 -1
  52. package/dist/chunks/{WelcomeV2-BnyziLbm.js → WelcomeV2-DZfBSTu5.js} +1 -1
  53. package/dist/chunks/{WindowsTerminalBackend-Dw6qjsBu.js → WindowsTerminalBackend-CeSoQ_Nk.js} +1 -1
  54. package/dist/chunks/{add-dir-CjnY5yfR.js → add-dir-7UeFZkdv.js} +1 -1
  55. package/dist/chunks/{agentDisplay-Dfx-axK9.js → agentDisplay-DJgsfIlm.js} +1 -1
  56. package/dist/chunks/{agents-lM-cxA8_.js → agents-DD7gQVZD.js} +1 -1
  57. package/dist/chunks/{agents-CICHEOOq.js → agents-DK0y9jId.js} +1 -1
  58. package/dist/chunks/{ant-JgExUpwJ.js → ant-PhgMZT08.js} +1 -1
  59. package/dist/chunks/api-D4aCzJS-.js +1 -0
  60. package/dist/chunks/{api-CClu711S.js → api-nHsRf03G.js} +1 -1
  61. package/dist/chunks/{assistant-Bih7t52W.js → assistant-BJbeizyH.js} +1 -1
  62. package/dist/chunks/{assistant-D1XefK1z.js → assistant-DO7RAhd3.js} +1 -1
  63. package/dist/chunks/assistant-Dvx-UrTi.js +1 -0
  64. package/dist/chunks/auth-Cp7Nt0ik.js +1 -0
  65. package/dist/chunks/{auth-CU6ArDos.js → auth-DxRiJwZ-.js} +1 -1
  66. package/dist/chunks/{autoMode-DM9eDMmT.js → autoMode-BswSpjo5.js} +1 -1
  67. package/dist/chunks/{autonomy-CZCZ9wlx.js → autonomy-CNJQwoAQ.js} +1 -1
  68. package/dist/chunks/{autonomy-DUfXLZfq.js → autonomy-Lc78acHX.js} +1 -1
  69. package/dist/chunks/{autonomyPanel-kUZwcjfu.js → autonomyPanel-DxcumRp-.js} +1 -1
  70. package/dist/chunks/{backgroundHousekeeping-KGRk7QeA.js → backgroundHousekeeping-BkfWgzIP.js} +2 -2
  71. package/dist/chunks/backgroundHousekeeping-BxBI2KkX.js +1 -0
  72. package/dist/chunks/{branch-Ac3HXXs2.js → branch-BPsUW1dk.js} +1 -1
  73. package/dist/chunks/{bridge-Drt-UmFp.js → bridge-DcOGvDbb.js} +2 -2
  74. package/dist/chunks/{bridgeConfig-GQzZVhuF.js → bridgeConfig-CvKdNJOg.js} +1 -1
  75. package/dist/chunks/bridgeConfig-Dkn5GGec.js +1 -0
  76. package/dist/chunks/bridgeEnabled-CjaYKTo5.js +1 -0
  77. package/dist/chunks/{bridgeEnabled-CDoXbe3S.js → bridgeEnabled-D01faWms.js} +1 -1
  78. package/dist/chunks/{bridgeMain-B0fLyOLC.js → bridgeMain-Bu2oOX31.js} +6 -6
  79. package/dist/chunks/bridgeMain-CEpOBx8Z.js +1 -0
  80. package/dist/chunks/{bridgeMessaging-gRm2WcIE.js → bridgeMessaging-BZMDSZAN.js} +1 -1
  81. package/dist/chunks/{btw-B2Tq2ewP.js → btw-B8s-X_cm.js} +1 -1
  82. package/dist/chunks/{buddy-v00QHFZ6.js → buddy-DkB1xU1o.js} +1 -1
  83. package/dist/chunks/{bypassPermissionsKillswitch-DAr5U3Ep.js → bypassPermissionsKillswitch-B9Qz9zKO.js} +1 -1
  84. package/dist/chunks/{caches-DHUk9KMo.js → caches-BuSzLvN9.js} +2 -2
  85. package/dist/chunks/caches-Bvl2jdxF.js +1 -0
  86. package/dist/chunks/{ccrClient-1Q3C_3_r.js → ccrClient-CMZXfu9P.js} +1 -1
  87. package/dist/chunks/changeDetector-DTXMv7gH.js +1 -0
  88. package/dist/chunks/channelNotification-B7s1OoRK.js +1 -0
  89. package/dist/chunks/{channelNotification-d08DSK9u.js → channelNotification-t6Kgu-vX.js} +1 -1
  90. package/dist/chunks/{chrome-CKo0_n71.js → chrome-Cvkozg2F.js} +1 -1
  91. package/dist/chunks/clear-C9pufI6F.js +1 -0
  92. package/dist/chunks/client-CqJ5gRGj.js +1 -0
  93. package/dist/chunks/{color-DqtpdhFx.js → color-AYeAYKyq.js} +1 -1
  94. package/dist/chunks/commands-LcLR5Vgx.js +1 -0
  95. package/dist/chunks/commitAttribution-BZupnGMc.js +1 -0
  96. package/dist/chunks/{commitAttribution-BJvmLsVe.js → commitAttribution-CUqUEjsh.js} +1 -1
  97. package/dist/chunks/{compact-DLYic2Oa.js → compact-BF0-0_qh.js} +1 -1
  98. package/dist/chunks/{companion-C2CBSYiF.js → companion-Cf_kYtOD.js} +1 -1
  99. package/dist/chunks/{config-Cht2x9n9.js → config-45GLd-lt.js} +1 -1
  100. package/dist/chunks/{config-DnWYFpDc.js → config-JGm0O-ZQ.js} +1 -1
  101. package/dist/chunks/{context-CDz9HqRT.js → context-Bl5VUX5M.js} +1 -1
  102. package/dist/chunks/context-noninteractive-BtzPsJ8k.js +1 -0
  103. package/dist/chunks/{context-noninteractive-BUIf4IMX.js → context-noninteractive-DdPFYYO9.js} +1 -1
  104. package/dist/chunks/{conversation-CLRfdC_V.js → conversation-C3NWyOB3.js} +1 -1
  105. package/dist/chunks/conversation-oX932vBQ.js +1 -0
  106. package/dist/chunks/{copy-BgHTb1Z0.js → copy-CbhxPqw4.js} +1 -1
  107. package/dist/chunks/{createSSHSession-C_mpeqPy.js → createSSHSession-Dq2nMChz.js} +1 -1
  108. package/dist/chunks/createSession-1ewHG3eq.js +1 -0
  109. package/dist/chunks/{createSession-kVJBXQlZ.js → createSession-DTHPUie-.js} +1 -1
  110. package/dist/chunks/{cronJitterConfig-SI7bYvJj.js → cronJitterConfig-IGWCRDrv.js} +1 -1
  111. package/dist/chunks/{crossProjectResume-BMWSw62A.js → crossProjectResume-WmabPBTO.js} +1 -1
  112. package/dist/chunks/datadog-Da7KYZNF.js +1 -0
  113. package/dist/chunks/{datadog-Bd9AgZT-.js → datadog-FKvRNyFi.js} +1 -1
  114. package/dist/chunks/{desktop-BeUj2fqu.js → desktop-ZASE3YWy.js} +1 -1
  115. package/dist/chunks/{diff-BzgXDp1o.js → diff-QP-TbxuD.js} +1 -1
  116. package/dist/chunks/{doctor-HCOexiL5.js → doctor-DVkgmkRb.js} +1 -1
  117. package/dist/chunks/{effort-BaJU_k2K.js → effort-DbryQCua.js} +1 -1
  118. package/dist/chunks/{entry-BoXZIfxW.js → entry-D8y42iuM.js} +5 -5
  119. package/dist/chunks/envLessBridgeConfig-CpW0G4Eh.js +1 -0
  120. package/dist/chunks/{envLessBridgeConfig-CnR1E53G.js → envLessBridgeConfig-D4bSwf7w.js} +1 -1
  121. package/dist/chunks/{exit-B-9k0zjK.js → exit-BsNW67F9.js} +1 -1
  122. package/dist/chunks/{export-p85q3g8t.js → export-C9A9nOA1.js} +1 -1
  123. package/dist/chunks/{exportRenderer-CUqd8PZM.js → exportRenderer-CyTuZFFF.js} +1 -1
  124. package/dist/chunks/{extra-usage-pPprHqwq.js → extra-usage-C6s5mXW0.js} +1 -1
  125. package/dist/chunks/extra-usage-DL2C0_BM.js +1 -0
  126. package/dist/chunks/{extra-usage-core-B9Fy8_RP.js → extra-usage-core-BFCwz3XM.js} +1 -1
  127. package/dist/chunks/{extra-usage-noninteractive-B4vaWh0y.js → extra-usage-noninteractive-IHq7s6wm.js} +1 -1
  128. package/dist/chunks/{extraUsage-CEHCMe7l.js → extraUsage-CIrG_Lbw.js} +1 -1
  129. package/dist/chunks/extractMemories-CA2eJwHy.js +1 -0
  130. package/dist/chunks/fast-B01NO2uA.js +1 -0
  131. package/dist/chunks/{fast-CiSIZ5FI.js → fast-NEKXVZqQ.js} +1 -1
  132. package/dist/chunks/{feedback-C2QLdCfW.js → feedback-D5iWO16P.js} +1 -1
  133. package/dist/chunks/{firstPartyEventLogger-CozFbFD9.js → firstPartyEventLogger-Dr3TK3IU.js} +1 -1
  134. package/dist/chunks/{flushGate-LXr8ynSz.js → flushGate-DygHyqmB.js} +1 -1
  135. package/dist/chunks/gates-BSpXbh9s.js +1 -0
  136. package/dist/chunks/{gates-BGfvIJXl.js → gates-Dyz_t5zJ.js} +1 -1
  137. package/dist/chunks/{gemini-BFBrPtVM.js → gemini-BEmbnRQR.js} +1 -1
  138. package/dist/chunks/{generateRecap-CLla3Ymz.js → generateRecap-DZiXeYWn.js} +1 -1
  139. package/dist/chunks/{generateSessionName-DF4I7gr2.js → generateSessionName-EbB2vl9t.js} +1 -1
  140. package/dist/chunks/{githubRepoPathMapping-C_5RCW_Z.js → githubRepoPathMapping-dky2fPeU.js} +1 -1
  141. package/dist/chunks/{grok-Dih61WOo.js → grok-BM6ZJ4w2.js} +1 -1
  142. package/dist/chunks/{growthbook-C39e6Byf.js → growthbook-JD-WW3yV.js} +1 -1
  143. package/dist/chunks/{heapdump-BRj4tC1y.js → heapdump-8vyFTWly.js} +1 -1
  144. package/dist/chunks/{help-fH9LNwox.js → help-C2DM0p8U.js} +1 -1
  145. package/dist/chunks/{hooks-D22Uu3Vs.js → hooks-CMh0a2pT.js} +1 -1
  146. package/dist/chunks/hooks-QXGwOfWj.js +1 -0
  147. package/dist/chunks/{hostAdapter-CbXytx4y.js → hostAdapter-CmbGfgNV.js} +1 -1
  148. package/dist/chunks/{ide-DM5Tw70v.js → ide-Bn8R7397.js} +1 -1
  149. package/dist/chunks/{inboundAttachments-2QIORKsd.js → inboundAttachments-BweY9sYo.js} +1 -1
  150. package/dist/chunks/inboundAttachments-N5DKbZSl.js +1 -0
  151. package/dist/chunks/{initReplBridge-D8sWx97P.js → initReplBridge-3CfmzjJL.js} +1 -1
  152. package/dist/chunks/{insights-B6ogyLuv.js → insights-NOl_PxhN.js} +1 -1
  153. package/dist/chunks/{install-DimDiHha.js → install-BoT2GIcz.js} +1 -1
  154. package/dist/chunks/{install-github-app-CQ7vkhIX.js → install-github-app-SD4PvrTR.js} +1 -1
  155. package/dist/chunks/{install-slack-app-By9_5YS7.js → install-slack-app-DLQXpOCt.js} +1 -1
  156. package/dist/chunks/{instrumentation-DbKu2GCL.js → instrumentation-BXJk0mxI.js} +3 -3
  157. package/dist/chunks/{job-D_DoFtev.js → job-CnlMlm3t.js} +1 -1
  158. package/dist/chunks/{keybindings-DYRBv1bg.js → keybindings-BjaRqcbD.js} +1 -1
  159. package/dist/chunks/{lang-CAMxxG9F.js → lang-BI8CzjL6.js} +1 -1
  160. package/dist/chunks/{language-CoHgN7rh.js → language-CRIdgj2F.js} +1 -1
  161. package/dist/chunks/language-DmbRGIs8.js +1 -0
  162. package/dist/chunks/{launchAgentsPlatform-9P8K66ku.js → launchAgentsPlatform-Bg9guiqy.js} +1 -1
  163. package/dist/chunks/{launchAutofixPr-BbsqqUMA.js → launchAutofixPr-BMfXGXwN.js} +1 -1
  164. package/dist/chunks/{launchLocalMemory-K55Yo6JM.js → launchLocalMemory-lgnXOi6U.js} +1 -1
  165. package/dist/chunks/{launchLocalVault-rrd1Q7jP.js → launchLocalVault-C0Oz-lto.js} +1 -1
  166. package/dist/chunks/{launchMemoryStores-DMZ8GNQj.js → launchMemoryStores-Bw11ruRi.js} +1 -1
  167. package/dist/chunks/{launchOnboarding-Duz_huXl.js → launchOnboarding-WEW34cnl.js} +1 -1
  168. package/dist/chunks/{launchSchedule-7VlG_3M6.js → launchSchedule-X0rcM_kM.js} +1 -1
  169. package/dist/chunks/{launchSkillStore-CcJL8RT0.js → launchSkillStore-DpxSlMCU.js} +1 -1
  170. package/dist/chunks/{launchTeleport-C8h_4F_L.js → launchTeleport-uOtMsYcI.js} +1 -1
  171. package/dist/chunks/{launchVault-Bm1EeT2x.js → launchVault-CJyJaPqH.js} +1 -1
  172. package/dist/chunks/{loadAgentsDir-HZ19tmOZ.js → loadAgentsDir-D-xcJ22-.js} +45 -45
  173. package/dist/chunks/loadAgentsDir-ILQxk_4G.js +1 -0
  174. package/dist/chunks/{loadPluginHooks-DoFtrBWf.js → loadPluginHooks-BC1Ea7_D.js} +1 -1
  175. package/dist/chunks/{localSearch-4cz5ia5a.js → localSearch-B6Ho7Vfj.js} +1 -1
  176. package/dist/chunks/localSearch-COyJeP9E.js +1 -0
  177. package/dist/chunks/login-Cf89biEK.js +1 -0
  178. package/dist/chunks/{login-D6ywctRr.js → login-uOvq1xN_.js} +1 -1
  179. package/dist/chunks/{logoV2Utils-jaFn88oE.js → logoV2Utils-C2cdcgtp.js} +1 -1
  180. package/dist/chunks/logout-CEXwTlEX.js +1 -0
  181. package/dist/chunks/{magicDocs-DHGtJq0K.js → magicDocs-BBjAhGN1.js} +1 -1
  182. package/dist/chunks/{main-Bv4AvaJk.js → main-DGsAUuG_.js} +15 -15
  183. package/dist/chunks/{mappers-qcXgNBi5.js → mappers-CO6koWDa.js} +1 -1
  184. package/dist/chunks/{mcp-iCbCqg7w.js → mcp-BrN_Tbq5.js} +2 -2
  185. package/dist/chunks/{mcp-BXPg0RPm.js → mcp-CZltNml5.js} +1 -1
  186. package/dist/chunks/{mcp-yDWIJznG.js → mcp-D6JOqdT8.js} +1 -1
  187. package/dist/chunks/{mcpServer-Do9XTs2J.js → mcpServer-C-0K3Azg.js} +1 -1
  188. package/dist/chunks/{mcpServer-DcSto-Od.js → mcpServer-C_aDoLMg.js} +1 -1
  189. package/dist/chunks/{memory-B0YG4r65.js → memory-BYYOgo4e.js} +1 -1
  190. package/dist/chunks/model-CHgqwg6N.js +1 -0
  191. package/dist/chunks/{model-DwVGG0mc.js → model-CrAPXYZA.js} +1 -1
  192. package/dist/chunks/{onChangeAppState-CHYSALjM.js → onChangeAppState-C6ZIU1SD.js} +1 -1
  193. package/dist/chunks/{openai-Brj68CWD.js → openai-Cm4gozk8.js} +1 -1
  194. package/dist/chunks/{overageCreditGrant-D5X6-TcP.js → overageCreditGrant-Pe7C_4Qi.js} +1 -1
  195. package/dist/chunks/{passes-B1f6NHWA.js → passes-BpI6azLG.js} +1 -1
  196. package/dist/chunks/{paths-D8Fx3kUi.js → paths-D9CVAtXU.js} +2 -2
  197. package/dist/chunks/{permissions-CYrv_WVH.js → permissions-C7wcAYOc.js} +1 -1
  198. package/dist/chunks/{pipeTransport-DAYnzvGK.js → pipeTransport-wjeyTgon.js} +1 -1
  199. package/dist/chunks/{plan-B7EPetF0.js → plan-DA8IRpHQ.js} +1 -1
  200. package/dist/chunks/{plugin-BRWx-_ZS.js → plugin-N2pTkzOz.js} +1 -1
  201. package/dist/chunks/{pluginAutoupdate-BwxAsU2F.js → pluginAutoupdate-DCc5qDvo.js} +1 -1
  202. package/dist/chunks/{pluginBlocklist-BiRgxFei.js → pluginBlocklist-C_Veew3p.js} +1 -1
  203. package/dist/chunks/{pluginCliCommands-CXANH43C.js → pluginCliCommands-BN7loc5T.js} +1 -1
  204. package/dist/chunks/{pluginFlagging-CBbUoCJ9.js → pluginFlagging-Dpu1cvMo.js} +1 -1
  205. package/dist/chunks/{pluginOperations-B3gcFjVq.js → pluginOperations-CP6NFNog.js} +1 -1
  206. package/dist/chunks/pluginStartupCheck-BF0xUEJG.js +1 -0
  207. package/dist/chunks/{pluginStartupCheck-BNfv-Pf4.js → pluginStartupCheck-DvWHwNnD.js} +1 -1
  208. package/dist/chunks/{plugins-zHTS03v8.js → plugins-BHoniP5f.js} +1 -1
  209. package/dist/chunks/policyLimits-sh7ywop0.js +1 -0
  210. package/dist/chunks/{pollConfig-BWY_xmk6.js → pollConfig-xYxAmuXi.js} +1 -1
  211. package/dist/chunks/{poor-Bcu8JaV5.js → poor-C0KwfFF0.js} +1 -1
  212. package/dist/chunks/{poorMode-CDhhKGBw.js → poorMode-D7WXWZtJ.js} +1 -1
  213. package/dist/chunks/poorMode-DZQXZ_zu.js +1 -0
  214. package/dist/chunks/{print-DO52Fudu.js → print-BcRG8gkQ.js} +4 -4
  215. package/dist/chunks/{privacy-settings-CmHUlYoo.js → privacy-settings-DT3LGgsH.js} +1 -1
  216. package/dist/chunks/{processBashCommand-DltW2Ubs.js → processBashCommand-DPfJ9lrj.js} +1 -1
  217. package/dist/chunks/{processSlashCommand-JLJ_vF05.js → processSlashCommand-DyPCeZux.js} +1 -1
  218. package/dist/chunks/{prompt-BxoRdmaw.js → prompt-C69iv9cI.js} +1 -1
  219. package/dist/chunks/prompt-DaIJzI1P.js +1 -0
  220. package/dist/chunks/prompt-DnLsyywj.js +1 -0
  221. package/dist/chunks/{promptEditor-LQu9NhbN.js → promptEditor-BZqpLrcZ.js} +1 -1
  222. package/dist/chunks/{protocolHandler-DYn2E9Yl.js → protocolHandler-CfmBTg36.js} +1 -1
  223. package/dist/chunks/{rate-limit-options-OQt6LUP8.js → rate-limit-options-P7oQuwrl.js} +1 -1
  224. package/dist/chunks/{rcDebugLog-5XEbz_Yg.js → rcDebugLog-CTOZ2K3E.js} +1 -1
  225. package/dist/chunks/{referral-BsAvaATn.js → referral-D26orIXE.js} +1 -1
  226. package/dist/chunks/{refresh-TlNezXn4.js → refresh-BeSXaVya.js} +1 -1
  227. package/dist/chunks/{registerProtocol-COUVHFku.js → registerProtocol-DSQh-I21.js} +1 -1
  228. package/dist/chunks/{registry-m7JojEMY.js → registry-Dp5W2V8B.js} +1 -1
  229. package/dist/chunks/{release-notes-BDdughgu.js → release-notes-Cg85UVo8.js} +1 -1
  230. package/dist/chunks/{releaseNotes-Bd3zxid3.js → releaseNotes-Dps4SeVh.js} +2 -2
  231. package/dist/chunks/{reload-plugins-qUIybHNy.js → reload-plugins-Bo-R1CF3.js} +1 -1
  232. package/dist/chunks/{remote-env-GGlLNGsx.js → remote-env-ChQuV3rO.js} +1 -1
  233. package/dist/chunks/{remoteBridgeCore-DpF5alU6.js → remoteBridgeCore-BXtygJA-.js} +1 -1
  234. package/dist/chunks/{remoteControlServer-C32rxr3F.js → remoteControlServer-sqW_JLwC.js} +1 -1
  235. package/dist/chunks/{rename-CCF7A5mG.js → rename-Bigaipiq.js} +1 -1
  236. package/dist/chunks/{resume-C6ereXig.js → resume-CtOI2pOJ.js} +1 -1
  237. package/dist/chunks/{runtimeObserver-jrNSkZU2.js → runtimeObserver-CJ955XSo.js} +2 -2
  238. package/dist/chunks/{runtimeObserver-DBdzsp_h.js → runtimeObserver-DojpbVgU.js} +1 -1
  239. package/dist/chunks/sandbox-adapter-BbrJOJNZ.js +1 -0
  240. package/dist/chunks/{sandbox-toggle-Bfti5GKF.js → sandbox-toggle-B9dn09gt.js} +1 -1
  241. package/dist/chunks/searchExtraTools-Denn1c1E.js +1 -0
  242. package/dist/chunks/{sentry-CZUyEC3A.js → sentry-B6tWUNGj.js} +1 -1
  243. package/dist/chunks/{session-DCIDa5dI.js → session-C5yIf_zV.js} +1 -1
  244. package/dist/chunks/{sessionDiscovery-5m_pul65.js → sessionDiscovery-CQ3iMN4s.js} +1 -1
  245. package/dist/chunks/sessionFileAccessHooks-1IAwziOQ.js +1 -0
  246. package/dist/chunks/sessionMemory-3TAJyNuJ.js +1 -0
  247. package/dist/chunks/{sessionMemory-BQP_RezB.js → sessionMemory-HZNzEOLd.js} +1 -1
  248. package/dist/chunks/sessionMemoryUtils-BAkA4sGG.js +1 -0
  249. package/dist/chunks/sessionObserver-DqLMFMLM.js +1 -0
  250. package/dist/chunks/{sessionObserver-LBqNoak9.js → sessionObserver-MQA9_wZw.js} +1 -1
  251. package/dist/chunks/sessionStorage-CFfMypMQ.js +1 -0
  252. package/dist/chunks/{sessionTitle-BIykjtKk.js → sessionTitle-BafqFHLc.js} +1 -1
  253. package/dist/chunks/{sessionTracing-Da_r0mIc.js → sessionTracing-_obALZbi.js} +1 -1
  254. package/dist/chunks/{settingsSync-BE0PQqyo.js → settingsSync-DBWi-NXU.js} +1 -1
  255. package/dist/chunks/{setup-CjA5bW6e.js → setup-C_GrS0Rd.js} +1 -1
  256. package/dist/chunks/{setup-lxzmZdw5.js → setup-D1sQnli9.js} +2 -2
  257. package/dist/chunks/{setup-p04XtwYu.js → setup-DIxsjw17.js} +1 -1
  258. package/dist/chunks/{shadowedRuleDetection-Zqp1M5St.js → shadowedRuleDetection-CwMwv9uM.js} +1 -1
  259. package/dist/chunks/{sideQuestion-DzJenEES.js → sideQuestion-CI5pyoQF.js} +1 -1
  260. package/dist/chunks/{sink-N5XR8Zgp.js → sink-BSTUubjl.js} +1 -1
  261. package/dist/chunks/sink-fGBOXJab.js +1 -0
  262. package/dist/chunks/{sinks-D8erzS9D.js → sinks-B9EsWFeb.js} +2 -2
  263. package/dist/chunks/sinks-BCl9slVM.js +1 -0
  264. package/dist/chunks/{skill-learning-CbMQ8IsZ.js → skill-learning-DThetLpo.js} +1 -1
  265. package/dist/chunks/{skillChangeDetector-4XWLpjQl.js → skillChangeDetector-BOH-fyEn.js} +1 -1
  266. package/dist/chunks/{skillGapStore-DbiDG9Pd.js → skillGapStore-BmjCK9ZR.js} +2 -2
  267. package/dist/chunks/{skillGapStore-Bp5IVfOx.js → skillGapStore-ax0GuSmd.js} +1 -1
  268. package/dist/chunks/{skillGenerator-Bys7U1l_.js → skillGenerator-Dj3xInwG.js} +2 -2
  269. package/dist/chunks/skillLearning-BDsjN-u-.js +1 -0
  270. package/dist/chunks/skillLearning-CXUsWxdi.js +1 -0
  271. package/dist/chunks/{skillPanel-MIHU1PPp.js → skillPanel-CJ4tvX7A.js} +3 -3
  272. package/dist/chunks/{skillSearchPanel-MFB-PzB1.js → skillSearchPanel-hwZvXKZ4.js} +2 -2
  273. package/dist/chunks/{skills-D4tZYFpd.js → skills-BVWDDcD9.js} +1 -1
  274. package/dist/chunks/{sprites-B479AZSz.js → sprites-B-V9otkt.js} +1 -1
  275. package/dist/chunks/{stats-B-ErfxCJ.js → stats-DcS6ZnsX.js} +1 -1
  276. package/dist/chunks/{status-DVACJLsK.js → status-DZKjK9CE.js} +1 -1
  277. package/dist/chunks/{statusNoticeHelpers-CwSCVvxP.js → statusNoticeHelpers-reCcymMR.js} +1 -1
  278. package/dist/chunks/{tag-YpE2D2ve.js → tag-B5b-waIf.js} +1 -1
  279. package/dist/chunks/{tasks-7N7iSiEx.js → tasks-vXM-vULI.js} +1 -1
  280. package/dist/chunks/teamHelpers-BBhol4dD.js +1 -0
  281. package/dist/chunks/{teamHelpers-BFdTH57t.js → teamHelpers-CbFFdvPw.js} +1 -1
  282. package/dist/chunks/{teammateModeSnapshot-CwacsQvD.js → teammateModeSnapshot-DkkMv2-b.js} +1 -1
  283. package/dist/chunks/teammateModeSnapshot-W5G22rwQ.js +1 -0
  284. package/dist/chunks/{teleport-CPB1CHBs.js → teleport-Da0rKwCo.js} +1 -1
  285. package/dist/chunks/{templateJobs-BM98KAEH.js → templateJobs-BLQqrGjb.js} +1 -1
  286. package/dist/chunks/{terminalSetup-yQ0CoywX.js → terminalSetup-BKfVYk3w.js} +1 -1
  287. package/dist/chunks/{terminalSetup-CGiIwoIX.js → terminalSetup-BLU99dau.js} +1 -1
  288. package/dist/chunks/{theme-C5ULGNRs.js → theme-BM2CXWYE.js} +1 -1
  289. package/dist/chunks/{thinkback-CF_sLFvX.js → thinkback-Cd1g_2A9.js} +1 -1
  290. package/dist/chunks/thinkback-ChP6pvCS.js +1 -0
  291. package/dist/chunks/{thinkback-play-syg_SJm8.js → thinkback-play-Cg8Ys2dq.js} +1 -1
  292. package/dist/chunks/{toolEventObserver-CcLqNRcT.js → toolEventObserver-71WYUega.js} +1 -1
  293. package/dist/chunks/{toolEventObserver-CuJbsUL0.js → toolEventObserver-nxcfjaur.js} +1 -1
  294. package/dist/chunks/{toolPool-CRq0GSrk.js → toolPool-CN1cPGQz.js} +1 -1
  295. package/dist/chunks/toolPool-CygNb5cr.js +1 -0
  296. package/dist/chunks/{trustedDevice-C4tvgByY.js → trustedDevice-Brc9B8cZ.js} +1 -1
  297. package/dist/chunks/{trustedDevice-u2HpuTkN.js → trustedDevice-C0KJ0qiK.js} +1 -1
  298. package/dist/chunks/{ultrareviewCommand-CWLiiq-z.js → ultrareviewCommand-BY0T8Pzl.js} +1 -1
  299. package/dist/chunks/undercover-bx8TwG9W.js +1 -0
  300. package/dist/chunks/{undercover-CNlN7Xzl.js → undercover-j27F8p49.js} +1 -1
  301. package/dist/chunks/{updateCCB-BWN4mOEz.js → updateCCB-Dgb2ed9v.js} +1 -1
  302. package/dist/chunks/upgrade-BkHztwGA.js +1 -0
  303. package/dist/chunks/{upgrade-CE25mJEk.js → upgrade-zs7K9UkG.js} +1 -1
  304. package/dist/chunks/{upload-YpyOX2a-.js → upload-Df84yCBz.js} +1 -1
  305. package/dist/chunks/{usage-Bw-kTwHb.js → usage-DKENFl_k.js} +1 -1
  306. package/dist/chunks/{usage-DNXwr_ep.js → usage-lTILrQJV.js} +1 -1
  307. package/dist/chunks/{useMainLoopModel-DPmF_cMn.js → useMainLoopModel-X1PW9z5A.js} +1 -1
  308. package/dist/chunks/{useManagePlugins-hPG7UMWo.js → useManagePlugins-DDKeDfIv.js} +1 -1
  309. package/dist/chunks/{useMergedTools-BSO1NflP.js → useMergedTools-CC3XwtOR.js} +1 -1
  310. package/dist/chunks/{useSearchInput-CR9uhbA7.js → useSearchInput-DNpNG36H.js} +1 -1
  311. package/dist/chunks/{useSettingsErrors-453j5XuO.js → useSettingsErrors-vGzCYpIA.js} +1 -1
  312. package/dist/chunks/{useVoice-B5DQ5Tay.js → useVoice-DmObXoAh.js} +1 -1
  313. package/dist/chunks/{util-D_BHu06u.js → util-9vJ9WIeZ.js} +1 -1
  314. package/dist/chunks/utils-Dg0S2Vfn.js +1 -0
  315. package/dist/chunks/{validatePlugin-Dxm-5f8W.js → validatePlugin-_Z4zhjSx.js} +1 -1
  316. package/dist/chunks/{vim-BGqKMQxl.js → vim-CK7lReJi.js} +1 -1
  317. package/dist/chunks/{voice-B2MWrkN3.js → voice-BLVF7E3Q.js} +1 -1
  318. package/dist/chunks/{voiceModeEnabled-if9dV1bW.js → voiceModeEnabled-BpLBjY2-.js} +1 -1
  319. package/dist/chunks/voiceModeEnabled-BqFYzoXw.js +1 -0
  320. package/dist/chunks/voiceStreamSTT-C0pkuXGm.js +1 -0
  321. package/dist/chunks/{voiceStreamSTT-CWhKAxcp.js → voiceStreamSTT-i4tUq3Hu.js} +1 -1
  322. package/dist/chunks/{workerRegistry-BANOcuS2.js → workerRegistry-Bg7dWLHf.js} +1 -1
  323. package/dist/chunks/worktree-Cg4p1J__.js +1 -0
  324. package/dist/chunks/{xml-DZp0WcWT.js → xml-K_hNNh2b.js} +1 -1
  325. package/dist/cli.js +1 -1
  326. package/package.json +1 -1
  327. package/dist/chunks/ApproveApiKey-CBEOrsej.js +0 -1
  328. package/dist/chunks/ClaudeMdExternalIncludesDialog-CG26Jg7h.js +0 -1
  329. package/dist/chunks/ConsoleOAuthFlow-1aq67dJV.js +0 -1
  330. package/dist/chunks/Doctor-DOil8Eh7.js +0 -1
  331. package/dist/chunks/Grove-CJn8QGFo.js +0 -1
  332. package/dist/chunks/REPL-DV96-Prr.js +0 -1
  333. package/dist/chunks/SearchExtraToolsTool-CmyZbRut.js +0 -1
  334. package/dist/chunks/SentryErrorBoundary-B9sk4zvj.js +0 -1
  335. package/dist/chunks/api-DgzWK3bh.js +0 -1
  336. package/dist/chunks/assistant-Ojm6Wsb6.js +0 -1
  337. package/dist/chunks/auth-lQWhUjLX.js +0 -1
  338. package/dist/chunks/backgroundHousekeeping-BcLV1-Ap.js +0 -1
  339. package/dist/chunks/bridgeConfig-ByjfIoJz.js +0 -1
  340. package/dist/chunks/bridgeEnabled-C7AI9y8g.js +0 -1
  341. package/dist/chunks/bridgeMain-DKQ1u3k_.js +0 -1
  342. package/dist/chunks/caches-DbE9R4Zh.js +0 -1
  343. package/dist/chunks/changeDetector--9sSzU2e.js +0 -1
  344. package/dist/chunks/channelNotification-CLYOd2-R.js +0 -1
  345. package/dist/chunks/clear-Cf1D1WkR.js +0 -1
  346. package/dist/chunks/client-Bzn58Ea4.js +0 -1
  347. package/dist/chunks/commands-CJz20FMO.js +0 -1
  348. package/dist/chunks/commitAttribution-BgNel6QS.js +0 -1
  349. package/dist/chunks/context-noninteractive-CzuLiIeO.js +0 -1
  350. package/dist/chunks/conversation-D2iFk7Te.js +0 -1
  351. package/dist/chunks/createSession-XhPMcSns.js +0 -1
  352. package/dist/chunks/datadog-B5oHSyS1.js +0 -1
  353. package/dist/chunks/envLessBridgeConfig-DgdkC9jO.js +0 -1
  354. package/dist/chunks/extra-usage-CsJ9Z2G1.js +0 -1
  355. package/dist/chunks/extractMemories-D34FfNYT.js +0 -1
  356. package/dist/chunks/fast-CxPB-PBH.js +0 -1
  357. package/dist/chunks/gates-D-kXXHiv.js +0 -1
  358. package/dist/chunks/hooks-Cw-F-1uO.js +0 -1
  359. package/dist/chunks/inboundAttachments-CZN_sUNx.js +0 -1
  360. package/dist/chunks/language-DB1HIsF8.js +0 -1
  361. package/dist/chunks/loadAgentsDir-DsskgPWe.js +0 -1
  362. package/dist/chunks/localSearch-CScvVw0c.js +0 -1
  363. package/dist/chunks/login-FdPNsHJs.js +0 -1
  364. package/dist/chunks/logout-CulTqT7V.js +0 -1
  365. package/dist/chunks/model-DG0v1297.js +0 -1
  366. package/dist/chunks/pluginStartupCheck-Ga_XiMnA.js +0 -1
  367. package/dist/chunks/policyLimits-Dsz-jkpD.js +0 -1
  368. package/dist/chunks/poorMode-BAuBNURJ.js +0 -1
  369. package/dist/chunks/prompt-D3rBUscf.js +0 -1
  370. package/dist/chunks/prompt-ohTcwieE.js +0 -1
  371. package/dist/chunks/sandbox-adapter-CQ0imVO1.js +0 -1
  372. package/dist/chunks/searchExtraTools-Ntz1u-YC.js +0 -1
  373. package/dist/chunks/sessionFileAccessHooks-DD2a-mTZ.js +0 -1
  374. package/dist/chunks/sessionMemory-hbxplpxs.js +0 -1
  375. package/dist/chunks/sessionMemoryUtils-DlW9hqOH.js +0 -1
  376. package/dist/chunks/sessionObserver-Lb1c5FPy.js +0 -1
  377. package/dist/chunks/sessionStorage-DG68Xvsy.js +0 -1
  378. package/dist/chunks/sink-BdRlnpoG.js +0 -1
  379. package/dist/chunks/sinks-Bn0FK_Ab.js +0 -1
  380. package/dist/chunks/skillLearning-702-D6Lq.js +0 -1
  381. package/dist/chunks/skillLearning-Cz7qU9V6.js +0 -1
  382. package/dist/chunks/teamHelpers-CmDn2xyl.js +0 -1
  383. package/dist/chunks/teammateModeSnapshot-DXtG86pG.js +0 -1
  384. package/dist/chunks/thinkback-D1Fv1QYl.js +0 -1
  385. package/dist/chunks/toolPool-C4CO158z.js +0 -1
  386. package/dist/chunks/undercover-jZEIpxrJ.js +0 -1
  387. package/dist/chunks/upgrade-C_0-l0Zo.js +0 -1
  388. package/dist/chunks/utils--ZdihcLH.js +0 -1
  389. package/dist/chunks/voiceModeEnabled-0NU5pSM-.js +0 -1
  390. package/dist/chunks/voiceStreamSTT-yvcTWD7i.js +0 -1
  391. package/dist/chunks/worktree-CRn2SbHn.js +0 -1
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./loadAgentsDir-D-xcJ22-.js";e();export{t as clearAgentDefinitionsCache};
@@ -1 +1 @@
1
- import{Fv as e,Lv as t,Pv as n}from"./loadAgentsDir-HZ19tmOZ.js";n();export{e as loadPluginHooks,t as setupPluginHookHotReload};
1
+ import{Fv as e,Lv as t,Pv as n}from"./loadAgentsDir-D-xcJ22-.js";n();export{e as loadPluginHooks,t as setupPluginHookHotReload};
@@ -1 +1 @@
1
- import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{d as n,s as r}from"./debug-UI3T040K.js";var i=t({clearSkillIndexCache:()=>m,computeIdf:()=>u,computeWeightedTf:()=>l,cosineSimilarity:()=>d,getSkillIndex:()=>h,searchSkills:()=>g,tokenize:()=>o,tokenizeAndStem:()=>c});function a(e){return v.test(e)}function o(e){let t=[],n=e.toLowerCase(),r=0;for(;r<n.length;)if(a(n[r])){let e=``;for(;r<n.length&&a(n[r]);)e+=n[r],r++;for(let n=0;n<e.length-1;n++)t.push(e.slice(n,n+2))}else if(/[a-z0-9]/.test(n[r])){let e=``;for(;r<n.length&&/[a-z0-9\-_]/.test(n[r]);)e+=n[r],r++;let i=e.replace(/^[-_]+|[-_]+$/g,``);i&&!_.has(i)&&t.push(i)}else r++;return t}function s(e){if(a(e[0]??``))return e;let t=e;return t.endsWith(`ing`)&&t.length>5?t=t.slice(0,-3):t.endsWith(`tion`)&&t.length>5||t.endsWith(`ness`)&&t.length>5||t.endsWith(`ment`)&&t.length>5?t=t.slice(0,-4):t.endsWith(`ers`)&&t.length>4?t=t.slice(0,-1):t.endsWith(`er`)&&t.length>4||t.endsWith(`es`)&&t.length>4?t=t.slice(0,-2):t.endsWith(`s`)&&t.length>3&&!t.endsWith(`ss`)?t=t.slice(0,-1):(t.endsWith(`ed`)&&t.length>4||t.endsWith(`ly`)&&t.length>4)&&(t=t.slice(0,-2)),t}function c(e){return o(e).map(s)}function l(e){let t=new Map;for(let n of e){let e=new Map;for(let t of n.tokens)e.set(t,(e.get(t)??0)+1);let r=1;for(let t of e.values())t>r&&(r=t);for(let[i,a]of e){let e=a/r*n.weight;e>(t.get(i)??0)&&t.set(i,e)}}return t}function u(e){let t=new Map;for(let n of e){let e=new Set;for(let r of n.tokens)e.has(r)||(t.set(r,(t.get(r)??0)+1),e.add(r))}let n=e.length,r=new Map;for(let[e,i]of t)r.set(e,Math.log(n/i));return r}function d(e,t){let n=0,r=0,i=0;for(let[i,a]of e){let e=t.get(i)??0;n+=a*e,r+=a*a}for(let e of t.values())i+=e*e;let a=Math.sqrt(r)*Math.sqrt(i);return a===0?0:n/a}function f(e){return e.toLowerCase().replace(/[-_]/g,` `)}function p(e){return e.toLowerCase().split(/[-_]/).filter(e=>e.length>=3)}function m(){C=null,w=null,T=null,n(`[skill-search] index cache cleared`)}async function h(e){if(C&&T===e)return C;let{getCommands:t}=await import(`./commands-CJz20FMO.js`),r=await t(e),i=[];for(let e of r){if(e.type!==`prompt`||e.disableModelInvocation)continue;let t=e.name,n=e.description??``,r=e.whenToUse,a=e.allowedTools?.join(` `)??``,o=c(t),u=p(t),d=[...o,...u.map(s).filter(e=>!_.has(e))],m=c(n),h=c(r??``),g=c(a),v=[...new Set([...d,...m,...h,...g])],b=l([{tokens:d,weight:y.name},{tokens:h,weight:y.whenToUse},{tokens:m,weight:y.description},{tokens:g,weight:y.allowedTools}]);i.push({name:t,normalizedName:f(t),description:n,whenToUse:r,source:e.source??`unknown`,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength,tokens:v,tfVector:b})}let a=u(i);for(let e of i)for(let[t,n]of e.tfVector)e.tfVector.set(t,n*(a.get(t)??0));return C=i,w=a,T=e,n(`[skill-search] indexed ${i.length} skills from ${r.length} commands`),i}function g(e,t,n=5){if(t.length===0||!e?.trim())return[];let r=c(e);if(r.length===0)return[];let i=new Map,o=new Map;for(let e of r)o.set(e,(o.get(e)??0)+1);let s=1;for(let e of o.values())e>s&&(s=e);for(let[e,t]of o)i.set(e,t/s);let l=C===t&&w?w:u(t),f=new Map;for(let[e,t]of i)f.set(e,t*(l.get(e)??0));let p=r.filter(e=>a(e[0]??``)),m=r.filter(e=>!a(e[0]??``)),h=e.toLowerCase().replace(/[-_]/g,` `),g=[];for(let e of t){let t=d(f,e.tfVector);p.length>0&&t>0&&p.filter(t=>e.tfVector.has(t)).length<S&&(m.some(t=>e.tfVector.has(t))||(t=0)),e.name.length>=x&&h.includes(e.normalizedName)&&(t=Math.max(t,.75)),t>=b&&g.push({name:e.name,description:e.description,score:t,source:e.source,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength})}return g.sort((e,t)=>t.score-e.score),g.slice(0,n)}var _,v,y,b,x,S,C,w,T,E=e((()=>{r(),_=new Set(`a.an.the.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.shall.can.need.dare.ought.used.to.of.in.for.on.with.at.by.from.as.into.through.during.before.after.above.below.between.out.off.over.under.again.further.then.once.here.there.when.where.why.how.all.each.every.both.few.more.most.other.some.such.no.nor.not.only.own.same.so.than.too.very.just.because.but.and.or.if.while.this.that.these.those.it.its.i.me.my.we.our.you.your.he.him.his.she.her.they.them.their.what.which.who.whom.use.using.used`.split(`.`)),v=/[\u4e00-\u9fff\u3400-\u4dbf]/,y={name:3,whenToUse:2,description:1,allowedTools:.3},b=Number(process.env.SKILL_SEARCH_DISPLAY_MIN_SCORE??`0.10`),x=4,S=2,C=null,w=null,T=null}));export{h as a,g as c,d as i,o as l,u as n,E as o,l as r,i as s,m as t,c as u};
1
+ import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{d as n,s as r}from"./debug-UI3T040K.js";var i=t({clearSkillIndexCache:()=>m,computeIdf:()=>u,computeWeightedTf:()=>l,cosineSimilarity:()=>d,getSkillIndex:()=>h,searchSkills:()=>g,tokenize:()=>o,tokenizeAndStem:()=>c});function a(e){return v.test(e)}function o(e){let t=[],n=e.toLowerCase(),r=0;for(;r<n.length;)if(a(n[r])){let e=``;for(;r<n.length&&a(n[r]);)e+=n[r],r++;for(let n=0;n<e.length-1;n++)t.push(e.slice(n,n+2))}else if(/[a-z0-9]/.test(n[r])){let e=``;for(;r<n.length&&/[a-z0-9\-_]/.test(n[r]);)e+=n[r],r++;let i=e.replace(/^[-_]+|[-_]+$/g,``);i&&!_.has(i)&&t.push(i)}else r++;return t}function s(e){if(a(e[0]??``))return e;let t=e;return t.endsWith(`ing`)&&t.length>5?t=t.slice(0,-3):t.endsWith(`tion`)&&t.length>5||t.endsWith(`ness`)&&t.length>5||t.endsWith(`ment`)&&t.length>5?t=t.slice(0,-4):t.endsWith(`ers`)&&t.length>4?t=t.slice(0,-1):t.endsWith(`er`)&&t.length>4||t.endsWith(`es`)&&t.length>4?t=t.slice(0,-2):t.endsWith(`s`)&&t.length>3&&!t.endsWith(`ss`)?t=t.slice(0,-1):(t.endsWith(`ed`)&&t.length>4||t.endsWith(`ly`)&&t.length>4)&&(t=t.slice(0,-2)),t}function c(e){return o(e).map(s)}function l(e){let t=new Map;for(let n of e){let e=new Map;for(let t of n.tokens)e.set(t,(e.get(t)??0)+1);let r=1;for(let t of e.values())t>r&&(r=t);for(let[i,a]of e){let e=a/r*n.weight;e>(t.get(i)??0)&&t.set(i,e)}}return t}function u(e){let t=new Map;for(let n of e){let e=new Set;for(let r of n.tokens)e.has(r)||(t.set(r,(t.get(r)??0)+1),e.add(r))}let n=e.length,r=new Map;for(let[e,i]of t)r.set(e,Math.log(n/i));return r}function d(e,t){let n=0,r=0,i=0;for(let[i,a]of e){let e=t.get(i)??0;n+=a*e,r+=a*a}for(let e of t.values())i+=e*e;let a=Math.sqrt(r)*Math.sqrt(i);return a===0?0:n/a}function f(e){return e.toLowerCase().replace(/[-_]/g,` `)}function p(e){return e.toLowerCase().split(/[-_]/).filter(e=>e.length>=3)}function m(){C=null,w=null,T=null,n(`[skill-search] index cache cleared`)}async function h(e){if(C&&T===e)return C;let{getCommands:t}=await import(`./commands-LcLR5Vgx.js`),r=await t(e),i=[];for(let e of r){if(e.type!==`prompt`||e.disableModelInvocation)continue;let t=e.name,n=e.description??``,r=e.whenToUse,a=e.allowedTools?.join(` `)??``,o=c(t),u=p(t),d=[...o,...u.map(s).filter(e=>!_.has(e))],m=c(n),h=c(r??``),g=c(a),v=[...new Set([...d,...m,...h,...g])],b=l([{tokens:d,weight:y.name},{tokens:h,weight:y.whenToUse},{tokens:m,weight:y.description},{tokens:g,weight:y.allowedTools}]);i.push({name:t,normalizedName:f(t),description:n,whenToUse:r,source:e.source??`unknown`,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength,tokens:v,tfVector:b})}let a=u(i);for(let e of i)for(let[t,n]of e.tfVector)e.tfVector.set(t,n*(a.get(t)??0));return C=i,w=a,T=e,n(`[skill-search] indexed ${i.length} skills from ${r.length} commands`),i}function g(e,t,n=5){if(t.length===0||!e?.trim())return[];let r=c(e);if(r.length===0)return[];let i=new Map,o=new Map;for(let e of r)o.set(e,(o.get(e)??0)+1);let s=1;for(let e of o.values())e>s&&(s=e);for(let[e,t]of o)i.set(e,t/s);let l=C===t&&w?w:u(t),f=new Map;for(let[e,t]of i)f.set(e,t*(l.get(e)??0));let p=r.filter(e=>a(e[0]??``)),m=r.filter(e=>!a(e[0]??``)),h=e.toLowerCase().replace(/[-_]/g,` `),g=[];for(let e of t){let t=d(f,e.tfVector);p.length>0&&t>0&&p.filter(t=>e.tfVector.has(t)).length<S&&(m.some(t=>e.tfVector.has(t))||(t=0)),e.name.length>=x&&h.includes(e.normalizedName)&&(t=Math.max(t,.75)),t>=b&&g.push({name:e.name,description:e.description,score:t,source:e.source,loadedFrom:e.loadedFrom,skillRoot:e.skillRoot,contentLength:e.contentLength})}return g.sort((e,t)=>t.score-e.score),g.slice(0,n)}var _,v,y,b,x,S,C,w,T,E=e((()=>{r(),_=new Set(`a.an.the.is.are.was.were.be.been.being.have.has.had.do.does.did.will.would.could.should.may.might.shall.can.need.dare.ought.used.to.of.in.for.on.with.at.by.from.as.into.through.during.before.after.above.below.between.out.off.over.under.again.further.then.once.here.there.when.where.why.how.all.each.every.both.few.more.most.other.some.such.no.nor.not.only.own.same.so.than.too.very.just.because.but.and.or.if.while.this.that.these.those.it.its.i.me.my.we.our.you.your.he.him.his.she.her.they.them.their.what.which.who.whom.use.using.used`.split(`.`)),v=/[\u4e00-\u9fff\u3400-\u4dbf]/,y={name:3,whenToUse:2,description:1,allowedTools:.3},b=Number(process.env.SKILL_SEARCH_DISPLAY_MIN_SCORE??`0.10`),x=4,S=2,C=null,w=null,T=null}));export{h as a,g as c,d as i,o as l,u as n,E as o,l as r,i as s,m as t,c as u};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,o as n,t as r}from"./localSearch-B6Ho7Vfj.js";n();export{r as clearSkillIndexCache,e as getSkillIndex,t as searchSkills};
@@ -0,0 +1 @@
1
+ import{n as e,r as t,t as n}from"./login-uOvq1xN_.js";t();export{n as Login,e as call};
@@ -1 +1 @@
1
- import{a as e,n as t,o as n,r}from"./chunk-DR8-3Aex.js";import{Rn as i,b as a,f as o,t as s,x as c,xt as l}from"./src-Di342QoJ.js";import{t as u}from"./jsx-runtime-D-D469L8.js";import{cn as d,yn as f}from"./state-sIHsFpDu.js";import{Ac as p,Jt as m,Pc as h,S as g,Sc as _,T as ee,on as te,vt as ne,yt as re}from"./paths-D8Fx3kUi.js";import{a as ie,r as ae}from"./env-chR0gV31.js";import{o as oe,s as v}from"./log-CzsijfHZ.js";import{LT as se,Lo as ce,Ra as le,Ua as y,VT as ue,Zo as b,_y as x,eC as de,tC as fe,vy as pe}from"./loadAgentsDir-HZ19tmOZ.js";import{a as me,r as he,t as S}from"./trustedDevice-C4tvgByY.js";import{n as C,t as w}from"./useMainLoopModel-DPmF_cMn.js";import{n as T,r as E,t as D}from"./bypassPermissionsKillswitch-DAr5U3Ep.js";import{promises as O}from"fs";function k({subscription:e}){let t=e.active?`☑`:`☐`,n=e.active&&e.plan?` ${e.plan} plan`:``,r=e.active?`logged in${n}`:`not logged in`;return(0,N.jsxs)(c,{children:[(0,N.jsxs)(a,{color:e.active?`success`:void 0,children:[t,` Subscription (claude.ai)`,` `]}),(0,N.jsx)(a,{dimColor:!e.active,children:r})]})}function A({workspaceKey:e}){if(!e.set)return(0,N.jsxs)(c,{children:[(0,N.jsx)(a,{children:`☐ Workspace API key `}),(0,N.jsx)(a,{dimColor:!0,children:`not set`})]});if(!e.prefixValid)return(0,N.jsxs)(c,{children:[(0,N.jsx)(a,{color:`warning`,children:`⚠ Workspace API key `}),(0,N.jsx)(a,{children:e.keyPreview}),(0,N.jsx)(a,{color:`warning`,children:` (sk-ant-api03-* required)`})]});let t=e.source===`settings`?` (saved to settings)`:e.source===`env`?` (from ANTHROPIC_API_KEY env)`:``;return(0,N.jsxs)(c,{children:[(0,N.jsx)(a,{color:`success`,children:`☑ Workspace API key `}),(0,N.jsx)(a,{children:e.keyPreview}),t?(0,N.jsx)(a,{dimColor:!0,children:t}):null]})}function j({subscription:e,workspaceKey:t}){return!t.set&&e.active?(0,N.jsxs)(c,{flexDirection:`column`,marginLeft:5,marginTop:0,children:[(0,N.jsx)(a,{dimColor:!0,children:`To enable /vault /agents-platform /memory-stores:`}),(0,N.jsx)(a,{dimColor:!0,children:`Press W to set now (saves to settings.json, no restart needed)`}),(0,N.jsx)(a,{dimColor:!0,children:` — or —`}),(0,N.jsx)(a,{dimColor:!0,children:`1. Open https://console.anthropic.com/settings/keys`}),(0,N.jsx)(a,{dimColor:!0,children:`2. Create a key (sk-ant-api03-*)`}),(0,N.jsx)(a,{dimColor:!0,children:`3. Set ANTHROPIC_API_KEY=<key> and restart`})]}):null}function M({status:e}){return(0,N.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[(0,N.jsx)(c,{marginBottom:0,children:(0,N.jsx)(a,{bold:!0,children:`Anthropic auth status:`})}),(0,N.jsxs)(c,{marginLeft:2,flexDirection:`column`,children:[(0,N.jsx)(k,{subscription:e.subscription}),(0,N.jsx)(A,{workspaceKey:e.workspaceKey}),(0,N.jsx)(j,{subscription:e.subscription,workspaceKey:e.workspaceKey})]})]})}var N,P=t((()=>{i(),s(),N=u()})),F=r({getAuthStatus:()=>L});function I(e){let t=e.length;return t<20?`[redacted] (${t} chars)`:`${e.slice(0,4)}...${e.slice(-2)} (${t} chars)`}function L(){let e=m(),t=e!==null&&!!e.accessToken,n=null;if(t&&e){let t=e.subscriptionType;n=t===`free`||t===`pro`||t===`max`||t===`team`||t===`enterprise`?t:t==null?null:`unknown`}let r=(process.env.ANTHROPIC_API_KEY??``).trim(),i=_().workspaceApiKey?.trim()??``,a,o;r.length>0?(a=r,o=`env`):i.length>0?(a=i,o=`settings`):(a=``,o=null);let s=a.length>0,c=a.startsWith(R),l=s?I(a):null;return{subscription:{active:t,plan:n,accountEmail:null},workspaceKey:{set:s,prefixValid:c,keyPreview:l,source:o}}}var R,z=t((()=>{te(),p(),R=`sk-ant-api03-`}));async function B(e){if(!e||e.trim().length===0)throw Error(`Workspace API key must not be empty.`);let t=e.trim();if(t.length<U)throw Error(`Workspace API key is too short (${t.length} chars). Expected at least ${U} chars starting with "${H}".`);if(t.length>W)throw Error(`Workspace API key is too long (${t.length} chars). Maximum allowed length is ${W} chars.`);if(!t.startsWith(H)){let e=t.slice(0,4);throw Error(`Workspace API key must start with "${H}" (workspace key). Got prefix "${e}...". Obtain a workspace API key from https://console.anthropic.com/settings/keys.`)}try{h(e=>({...e,workspaceApiKey:t}))}catch(e){throw Error(`Failed to save workspace API key to config: ${V(e)}`)}await _e()}async function ge(){try{h(e=>{let t={...e};return delete t.workspaceApiKey,t})}catch(e){throw Error(`Failed to remove workspace API key: ${V(e)}`)}}function V(e){return e instanceof Error?e.message.replace(/sk-ant-api03-\S*/g,`[REDACTED]`):`unknown error`}async function _e(){let e=ae();if(process.platform===`win32`){v(Error(`[saveWorkspaceKey] Windows: chmod 600 is not supported. To protect your API key, restrict access to ${e} via icacls or Windows ACL settings.`));return}try{await O.chmod(e,384)}catch(t){v(Error(`[saveWorkspaceKey] Could not set chmod 600 on ${e}: ${V(t)}`))}}var H,U,W,G=t((()=>{ie(),p(),oe(),H=`sk-ant-api03-`,U=20,W=256}));function ve(e){if(e.length===0)return``;if(!e.startsWith(J))return e.slice(0,4)+(e.length>4?`...`:``);let t=e.slice(13);return t.length===0?J:`${J}****...${t.slice(-Math.min(4,t.length)).replace(/./g,`*`)}`}function ye(e){return e.length===0?null:e.startsWith(J)?e.length<Y?`Key too short (${e.length}/${Y} chars minimum)`:e.length>X?`Key too long (${e.length}/${X} chars maximum)`:null:`Key must start with "${J}"`}function be({onSave:e,onCancel:t,saving:n=!1,saveError:r=null}){let[i,o]=K.useState(``),[s,u]=K.useState(null),d=ye(i),f=!n&&i.length>=Y&&d===null;l((n,r)=>{if(r.escape){t();return}if(r.return){if(!f)return;u(null),e(i);return}if(r.backspace||r.delete){o(e=>e.slice(0,-1));return}if(n&&n.length>0){let e=n;e.charCodeAt(0)>=32&&e.charCodeAt(0)<=126&&o(t=>{let n=t+e;return n.length<=X?n:t})}},{isActive:!n});let p=ve(i),m=s??r??d;return(0,q.jsxs)(c,{flexDirection:`column`,marginTop:1,children:[(0,q.jsx)(c,{marginBottom:0,children:(0,q.jsx)(a,{bold:!0,children:`Enter workspace API key (sk-ant-api03-*):`})}),(0,q.jsx)(c,{marginTop:0,marginBottom:0,children:(0,q.jsx)(a,{dimColor:!0,children:` Obtain from: https://console.anthropic.com/settings/keys`})}),(0,q.jsxs)(c,{marginTop:1,marginBottom:0,children:[(0,q.jsx)(a,{children:` > `}),i.length>0?(0,q.jsx)(a,{children:p}):(0,q.jsx)(a,{dimColor:!0,children:`[paste key here]`})]}),m!==null&&(0,q.jsx)(c,{marginTop:0,children:(0,q.jsxs)(a,{color:`warning`,children:[` ✗ `,m]})}),n&&(0,q.jsx)(c,{marginTop:0,children:(0,q.jsx)(a,{dimColor:!0,children:` Saving...`})}),(0,q.jsx)(c,{marginTop:1,children:(0,q.jsx)(a,{dimColor:!0,children:f?`Press Enter to save · Esc to cancel`:`Esc to cancel`+(i.length===0?` · start typing your key`:``)})})]})}function xe({onSaved:e,onCancel:t}){let[n,r]=K.useState(!1),[i,a]=K.useState(null),o=K.useCallback(async t=>{r(!0),a(null);try{await B(t),e()}catch(e){a(e instanceof Error?e.message:`Failed to save key — unknown error`),r(!1)}},[e]);return(0,q.jsx)(be,{onSave:e=>{o(e)},onCancel:t,saving:n,saveError:i})}var K,q,J,Y,X,Se=t((()=>{K=n(i(),1),s(),G(),q=u(),J=`sk-ant-api03-`,Y=20,X=256}));async function Ce(e,t){return(0,$.jsx)(Z,{authStatus:L(),onDone:async n=>{if(t.onChangeAPIKey(),t.setMessages(b),n){f(),ue(),y(),re(),ee(),S(),he(),E();let e=t.getAppState();D(e.toolPermissionContext,t.setAppState,e.fastMode),t.setAppState(e=>({...e,authVersion:e.authVersion+1}))}e(n?`Login successful`:`Login interrupted`)}})}function Z(t){let n=C(),[r,i]=Q.useState(!1),[s,u]=Q.useState({phase:`idle`}),[d,f]=Q.useState(t.authStatus),p=d!==void 0&&d.workspaceKey.set,m=p&&d.workspaceKey.source===`settings`,h=Q.useCallback(()=>{let{getAuthStatus:t}=(z(),e(F));f(t())},[]);l(e=>{if(!r){if(s.phase===`confirm-remove`){if(e===`y`||e===`Y`){u({phase:`removing`}),(async()=>{try{await ge(),h(),u({phase:`idle`})}catch(e){u({phase:`error`,message:e instanceof Error?e.message:`Failed to remove workspace API key`})}})();return}if(e===`n`||e===`N`){u({phase:`idle`});return}return}if(e===`w`||e===`W`){i(!0);return}(e===`d`||e===`D`)&&m&&u({phase:`confirm-remove`})}},{isActive:!r});let g=Q.useCallback(()=>{h(),i(!1)},[h]),_=Q.useCallback(()=>{i(!1)},[]);return(0,$.jsx)(o,{title:`Login`,onCancel:()=>t.onDone(!1,n),color:`permission`,inputGuide:e=>e.pending?(0,$.jsxs)(a,{children:[`Press `,e.keyName,` again to exit`]}):(0,$.jsx)(de,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`}),children:(0,$.jsxs)(c,{flexDirection:`column`,children:[d!==void 0&&(0,$.jsx)(c,{marginBottom:1,children:(0,$.jsx)(M,{status:d})}),r?(0,$.jsx)(xe,{onSaved:g,onCancel:_}):s.phase===`confirm-remove`||s.phase===`removing`?(0,$.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[(0,$.jsxs)(a,{children:[`Remove the saved workspace API key? `,(0,$.jsx)(a,{dimColor:!0,children:`(settings.json only — env var is unaffected)`})]}),(0,$.jsx)(a,{dimColor:!0,children:s.phase===`removing`?`Removing…`:`Press Y to confirm, N to cancel`})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[p?m?(0,$.jsx)(a,{dimColor:!0,children:`Press W to replace workspace API key · Press D to remove it`}):(0,$.jsx)(a,{dimColor:!0,children:`Workspace API key from ANTHROPIC_API_KEY env. Press W to override with a settings-saved key.`}):(0,$.jsx)(a,{dimColor:!0,children:`Press W to enter workspace API key (saves to settings, no restart needed)`}),s.phase===`error`&&(0,$.jsx)(a,{color:`error`,children:s.message})]}),(0,$.jsx)(x,{onDone:()=>t.onDone(!0,n),startingMessage:t.startingMessage})]})]})})}var Q,$,we=t((()=>{Q=n(i(),1),d(),me(),fe(),pe(),s(),w(),g(),le(),se(),ce(),T(),ne(),P(),z(),Se(),G(),$=u()}));export{Ce as n,we as r,Z as t};
1
+ import{a as e,n as t,o as n,r}from"./chunk-DR8-3Aex.js";import{Rn as i,b as a,f as o,t as s,x as c,xt as l}from"./src-Di342QoJ.js";import{t as u}from"./jsx-runtime-D-D469L8.js";import{cn as d,yn as f}from"./state-sIHsFpDu.js";import{Ac as p,Jt as m,Pc as h,S as g,Sc as _,T as ee,on as te,vt as ne,yt as re}from"./paths-D9CVAtXU.js";import{a as ie,r as ae}from"./env-chR0gV31.js";import{o as oe,s as v}from"./log-CzsijfHZ.js";import{LT as se,Lo as ce,Ra as le,Ua as y,VT as ue,Zo as b,_y as x,eC as de,tC as fe,vy as pe}from"./loadAgentsDir-D-xcJ22-.js";import{a as me,r as he,t as S}from"./trustedDevice-Brc9B8cZ.js";import{n as C,t as w}from"./useMainLoopModel-X1PW9z5A.js";import{n as T,r as E,t as D}from"./bypassPermissionsKillswitch-B9Qz9zKO.js";import{promises as O}from"fs";function k({subscription:e}){let t=e.active?`☑`:`☐`,n=e.active&&e.plan?` ${e.plan} plan`:``,r=e.active?`logged in${n}`:`not logged in`;return(0,N.jsxs)(c,{children:[(0,N.jsxs)(a,{color:e.active?`success`:void 0,children:[t,` Subscription (claude.ai)`,` `]}),(0,N.jsx)(a,{dimColor:!e.active,children:r})]})}function A({workspaceKey:e}){if(!e.set)return(0,N.jsxs)(c,{children:[(0,N.jsx)(a,{children:`☐ Workspace API key `}),(0,N.jsx)(a,{dimColor:!0,children:`not set`})]});if(!e.prefixValid)return(0,N.jsxs)(c,{children:[(0,N.jsx)(a,{color:`warning`,children:`⚠ Workspace API key `}),(0,N.jsx)(a,{children:e.keyPreview}),(0,N.jsx)(a,{color:`warning`,children:` (sk-ant-api03-* required)`})]});let t=e.source===`settings`?` (saved to settings)`:e.source===`env`?` (from ANTHROPIC_API_KEY env)`:``;return(0,N.jsxs)(c,{children:[(0,N.jsx)(a,{color:`success`,children:`☑ Workspace API key `}),(0,N.jsx)(a,{children:e.keyPreview}),t?(0,N.jsx)(a,{dimColor:!0,children:t}):null]})}function j({subscription:e,workspaceKey:t}){return!t.set&&e.active?(0,N.jsxs)(c,{flexDirection:`column`,marginLeft:5,marginTop:0,children:[(0,N.jsx)(a,{dimColor:!0,children:`To enable /vault /agents-platform /memory-stores:`}),(0,N.jsx)(a,{dimColor:!0,children:`Press W to set now (saves to settings.json, no restart needed)`}),(0,N.jsx)(a,{dimColor:!0,children:` — or —`}),(0,N.jsx)(a,{dimColor:!0,children:`1. Open https://console.anthropic.com/settings/keys`}),(0,N.jsx)(a,{dimColor:!0,children:`2. Create a key (sk-ant-api03-*)`}),(0,N.jsx)(a,{dimColor:!0,children:`3. Set ANTHROPIC_API_KEY=<key> and restart`})]}):null}function M({status:e}){return(0,N.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[(0,N.jsx)(c,{marginBottom:0,children:(0,N.jsx)(a,{bold:!0,children:`Anthropic auth status:`})}),(0,N.jsxs)(c,{marginLeft:2,flexDirection:`column`,children:[(0,N.jsx)(k,{subscription:e.subscription}),(0,N.jsx)(A,{workspaceKey:e.workspaceKey}),(0,N.jsx)(j,{subscription:e.subscription,workspaceKey:e.workspaceKey})]})]})}var N,P=t((()=>{i(),s(),N=u()})),F=r({getAuthStatus:()=>L});function I(e){let t=e.length;return t<20?`[redacted] (${t} chars)`:`${e.slice(0,4)}...${e.slice(-2)} (${t} chars)`}function L(){let e=m(),t=e!==null&&!!e.accessToken,n=null;if(t&&e){let t=e.subscriptionType;n=t===`free`||t===`pro`||t===`max`||t===`team`||t===`enterprise`?t:t==null?null:`unknown`}let r=(process.env.ANTHROPIC_API_KEY??``).trim(),i=_().workspaceApiKey?.trim()??``,a,o;r.length>0?(a=r,o=`env`):i.length>0?(a=i,o=`settings`):(a=``,o=null);let s=a.length>0,c=a.startsWith(R),l=s?I(a):null;return{subscription:{active:t,plan:n,accountEmail:null},workspaceKey:{set:s,prefixValid:c,keyPreview:l,source:o}}}var R,z=t((()=>{te(),p(),R=`sk-ant-api03-`}));async function B(e){if(!e||e.trim().length===0)throw Error(`Workspace API key must not be empty.`);let t=e.trim();if(t.length<U)throw Error(`Workspace API key is too short (${t.length} chars). Expected at least ${U} chars starting with "${H}".`);if(t.length>W)throw Error(`Workspace API key is too long (${t.length} chars). Maximum allowed length is ${W} chars.`);if(!t.startsWith(H)){let e=t.slice(0,4);throw Error(`Workspace API key must start with "${H}" (workspace key). Got prefix "${e}...". Obtain a workspace API key from https://console.anthropic.com/settings/keys.`)}try{h(e=>({...e,workspaceApiKey:t}))}catch(e){throw Error(`Failed to save workspace API key to config: ${V(e)}`)}await _e()}async function ge(){try{h(e=>{let t={...e};return delete t.workspaceApiKey,t})}catch(e){throw Error(`Failed to remove workspace API key: ${V(e)}`)}}function V(e){return e instanceof Error?e.message.replace(/sk-ant-api03-\S*/g,`[REDACTED]`):`unknown error`}async function _e(){let e=ae();if(process.platform===`win32`){v(Error(`[saveWorkspaceKey] Windows: chmod 600 is not supported. To protect your API key, restrict access to ${e} via icacls or Windows ACL settings.`));return}try{await O.chmod(e,384)}catch(t){v(Error(`[saveWorkspaceKey] Could not set chmod 600 on ${e}: ${V(t)}`))}}var H,U,W,G=t((()=>{ie(),p(),oe(),H=`sk-ant-api03-`,U=20,W=256}));function ve(e){if(e.length===0)return``;if(!e.startsWith(J))return e.slice(0,4)+(e.length>4?`...`:``);let t=e.slice(13);return t.length===0?J:`${J}****...${t.slice(-Math.min(4,t.length)).replace(/./g,`*`)}`}function ye(e){return e.length===0?null:e.startsWith(J)?e.length<Y?`Key too short (${e.length}/${Y} chars minimum)`:e.length>X?`Key too long (${e.length}/${X} chars maximum)`:null:`Key must start with "${J}"`}function be({onSave:e,onCancel:t,saving:n=!1,saveError:r=null}){let[i,o]=K.useState(``),[s,u]=K.useState(null),d=ye(i),f=!n&&i.length>=Y&&d===null;l((n,r)=>{if(r.escape){t();return}if(r.return){if(!f)return;u(null),e(i);return}if(r.backspace||r.delete){o(e=>e.slice(0,-1));return}if(n&&n.length>0){let e=n;e.charCodeAt(0)>=32&&e.charCodeAt(0)<=126&&o(t=>{let n=t+e;return n.length<=X?n:t})}},{isActive:!n});let p=ve(i),m=s??r??d;return(0,q.jsxs)(c,{flexDirection:`column`,marginTop:1,children:[(0,q.jsx)(c,{marginBottom:0,children:(0,q.jsx)(a,{bold:!0,children:`Enter workspace API key (sk-ant-api03-*):`})}),(0,q.jsx)(c,{marginTop:0,marginBottom:0,children:(0,q.jsx)(a,{dimColor:!0,children:` Obtain from: https://console.anthropic.com/settings/keys`})}),(0,q.jsxs)(c,{marginTop:1,marginBottom:0,children:[(0,q.jsx)(a,{children:` > `}),i.length>0?(0,q.jsx)(a,{children:p}):(0,q.jsx)(a,{dimColor:!0,children:`[paste key here]`})]}),m!==null&&(0,q.jsx)(c,{marginTop:0,children:(0,q.jsxs)(a,{color:`warning`,children:[` ✗ `,m]})}),n&&(0,q.jsx)(c,{marginTop:0,children:(0,q.jsx)(a,{dimColor:!0,children:` Saving...`})}),(0,q.jsx)(c,{marginTop:1,children:(0,q.jsx)(a,{dimColor:!0,children:f?`Press Enter to save · Esc to cancel`:`Esc to cancel`+(i.length===0?` · start typing your key`:``)})})]})}function xe({onSaved:e,onCancel:t}){let[n,r]=K.useState(!1),[i,a]=K.useState(null),o=K.useCallback(async t=>{r(!0),a(null);try{await B(t),e()}catch(e){a(e instanceof Error?e.message:`Failed to save key — unknown error`),r(!1)}},[e]);return(0,q.jsx)(be,{onSave:e=>{o(e)},onCancel:t,saving:n,saveError:i})}var K,q,J,Y,X,Se=t((()=>{K=n(i(),1),s(),G(),q=u(),J=`sk-ant-api03-`,Y=20,X=256}));async function Ce(e,t){return(0,$.jsx)(Z,{authStatus:L(),onDone:async n=>{if(t.onChangeAPIKey(),t.setMessages(b),n){f(),ue(),y(),re(),ee(),S(),he(),E();let e=t.getAppState();D(e.toolPermissionContext,t.setAppState,e.fastMode),t.setAppState(e=>({...e,authVersion:e.authVersion+1}))}e(n?`Login successful`:`Login interrupted`)}})}function Z(t){let n=C(),[r,i]=Q.useState(!1),[s,u]=Q.useState({phase:`idle`}),[d,f]=Q.useState(t.authStatus),p=d!==void 0&&d.workspaceKey.set,m=p&&d.workspaceKey.source===`settings`,h=Q.useCallback(()=>{let{getAuthStatus:t}=(z(),e(F));f(t())},[]);l(e=>{if(!r){if(s.phase===`confirm-remove`){if(e===`y`||e===`Y`){u({phase:`removing`}),(async()=>{try{await ge(),h(),u({phase:`idle`})}catch(e){u({phase:`error`,message:e instanceof Error?e.message:`Failed to remove workspace API key`})}})();return}if(e===`n`||e===`N`){u({phase:`idle`});return}return}if(e===`w`||e===`W`){i(!0);return}(e===`d`||e===`D`)&&m&&u({phase:`confirm-remove`})}},{isActive:!r});let g=Q.useCallback(()=>{h(),i(!1)},[h]),_=Q.useCallback(()=>{i(!1)},[]);return(0,$.jsx)(o,{title:`Login`,onCancel:()=>t.onDone(!1,n),color:`permission`,inputGuide:e=>e.pending?(0,$.jsxs)(a,{children:[`Press `,e.keyName,` again to exit`]}):(0,$.jsx)(de,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`}),children:(0,$.jsxs)(c,{flexDirection:`column`,children:[d!==void 0&&(0,$.jsx)(c,{marginBottom:1,children:(0,$.jsx)(M,{status:d})}),r?(0,$.jsx)(xe,{onSaved:g,onCancel:_}):s.phase===`confirm-remove`||s.phase===`removing`?(0,$.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[(0,$.jsxs)(a,{children:[`Remove the saved workspace API key? `,(0,$.jsx)(a,{dimColor:!0,children:`(settings.json only — env var is unaffected)`})]}),(0,$.jsx)(a,{dimColor:!0,children:s.phase===`removing`?`Removing…`:`Press Y to confirm, N to cancel`})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(c,{flexDirection:`column`,marginBottom:1,children:[p?m?(0,$.jsx)(a,{dimColor:!0,children:`Press W to replace workspace API key · Press D to remove it`}):(0,$.jsx)(a,{dimColor:!0,children:`Workspace API key from ANTHROPIC_API_KEY env. Press W to override with a settings-saved key.`}):(0,$.jsx)(a,{dimColor:!0,children:`Press W to enter workspace API key (saves to settings, no restart needed)`}),s.phase===`error`&&(0,$.jsx)(a,{color:`error`,children:s.message})]}),(0,$.jsx)(x,{onDone:()=>t.onDone(!0,n),startingMessage:t.startingMessage})]})]})})}var Q,$,we=t((()=>{Q=n(i(),1),d(),me(),fe(),pe(),s(),w(),g(),le(),se(),ce(),T(),ne(),P(),z(),Se(),G(),$=u()}));export{Ce as n,we as r,Z as t};
@@ -1 +1 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{Cn as t,t as n}from"./src-Di342QoJ.js";import{Ct as r,M as i,cn as a}from"./state-sIHsFpDu.js";import{Ka as o,Zc as s,dn as c,el as l,en as u,on as d,oo as f}from"./paths-D8Fx3kUi.js";import{n as p,t as m}from"./cwd--iizewsn.js";import{C as h,D as g,E as _,x as v}from"./startupProfiler-DnXZaX4A.js";import{Ar as y,Wr as b}from"./loadAgentsDir-HZ19tmOZ.js";import{r as x,t as S}from"./semver-Tw0AFar5.js";import{c as C,s as w,u as T}from"./releaseNotes-Bd3zxid3.js";function E(e){return e>=70?`horizontal`:`compact`}function D(e,t,n){if(t===`horizontal`){let t=n,r=e-(R+B+z+t),i=Math.max(30,r),a=Math.min(t+i+z+B,e-R);return a<t+i+z+B&&(i=a-t-z-B),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-R,I+20);return{leftWidth:r,rightWidth:r,totalWidth:r}}function O(e,n,r){let i=Math.max(t(e),t(n),t(r),20);return Math.min(i+4,I)}function k(e){return!e||e.length>L?`Welcome back!`:`Welcome back ${e}!`}function A(e,n){if(t(e)<=n)return e;let r=e.split(`/`),i=r[0]||``,a=r[r.length-1]||``,o=t(i),s=t(a);if(r.length===1)return _(e,n);if(i===``&&2+s>=n)return`/${_(a,Math.max(1,n-1))}`;if(i!==``&&3+s>=n)return`…/${_(a,Math.max(1,n-1-1))}`;if(r.length===2)return`${g(i,n-1-1-s)}…/${a}`;let c=n-o-s-1-2;if(c<=0)return`${g(i,Math.max(0,n-s-1-2))}/…/${a}`;let l=[];for(let e=r.length-2;e>0;e--){let n=r[e];if(n&&t(n)+1<=c)l.unshift(n),c-=t(n)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function j(){if(H)return H;let e=r();return H=b(10).then(t=>(V=t.filter(t=>{if(t.isSidechain||t.sessionId===e||t.summary?.includes(`I apologize`))return!1;let n=t.summary&&t.summary!==`No prompt`,r=t.firstPrompt&&t.firstPrompt!==`No prompt`;return n||r}).slice(0,3),V)).catch(()=>(V=[],V)),H}function M(){return V}function N(){let e=process.env.DEMO_VERSION??`2.6.10`,t=i(),n=process.env.DEMO_VERSION?`/code/claude`:s(m());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:c()?u():`API Usage Billing`,agentName:o().agent}}function P(e,n,r){return t(e)+3+t(n)>r?{shouldSplit:!0,truncatedModel:h(e,r),truncatedBilling:h(n,r)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(r-t(n)-3,10)),truncatedBilling:n}}function F(e){if(process.env.USER_TYPE===`ant`)return[];let t=w();if(!t)return[];let n;try{n=T(t)}catch{return[]}let r=[],i=Object.keys(n).sort((e,t)=>S(e,t)?-1:1).slice(0,3);for(let e of i){let t=n[e];t&&r.push(...t)}return r.slice(0,e)}var I,L,R,z,B,V,H,U=e((()=>{a(),n(),d(),p(),l(),v(),C(),x(),y(),f(),I=50,L=20,R=4,z=1,B=2,V=[],H=null}));export{E as a,M as c,A as d,k as i,F as l,O as n,N as o,P as r,j as s,D as t,U as u};
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{Cn as t,t as n}from"./src-Di342QoJ.js";import{Ct as r,M as i,cn as a}from"./state-sIHsFpDu.js";import{Ka as o,Zc as s,dn as c,el as l,en as u,on as d,oo as f}from"./paths-D9CVAtXU.js";import{n as p,t as m}from"./cwd--iizewsn.js";import{C as h,D as g,E as _,x as v}from"./startupProfiler-DnXZaX4A.js";import{Ar as y,Wr as b}from"./loadAgentsDir-D-xcJ22-.js";import{r as x,t as S}from"./semver-Tw0AFar5.js";import{c as C,s as w,u as T}from"./releaseNotes-Dps4SeVh.js";function E(e){return e>=70?`horizontal`:`compact`}function D(e,t,n){if(t===`horizontal`){let t=n,r=e-(R+B+z+t),i=Math.max(30,r),a=Math.min(t+i+z+B,e-R);return a<t+i+z+B&&(i=a-t-z-B),{leftWidth:t,rightWidth:i,totalWidth:a}}let r=Math.min(e-R,I+20);return{leftWidth:r,rightWidth:r,totalWidth:r}}function O(e,n,r){let i=Math.max(t(e),t(n),t(r),20);return Math.min(i+4,I)}function k(e){return!e||e.length>L?`Welcome back!`:`Welcome back ${e}!`}function A(e,n){if(t(e)<=n)return e;let r=e.split(`/`),i=r[0]||``,a=r[r.length-1]||``,o=t(i),s=t(a);if(r.length===1)return _(e,n);if(i===``&&2+s>=n)return`/${_(a,Math.max(1,n-1))}`;if(i!==``&&3+s>=n)return`…/${_(a,Math.max(1,n-1-1))}`;if(r.length===2)return`${g(i,n-1-1-s)}…/${a}`;let c=n-o-s-1-2;if(c<=0)return`${g(i,Math.max(0,n-s-1-2))}/…/${a}`;let l=[];for(let e=r.length-2;e>0;e--){let n=r[e];if(n&&t(n)+1<=c)l.unshift(n),c-=t(n)+1;else break}return l.length===0?`${i}/…/${a}`:`${i}/…/${l.join(`/`)}/${a}`}async function j(){if(H)return H;let e=r();return H=b(10).then(t=>(V=t.filter(t=>{if(t.isSidechain||t.sessionId===e||t.summary?.includes(`I apologize`))return!1;let n=t.summary&&t.summary!==`No prompt`,r=t.firstPrompt&&t.firstPrompt!==`No prompt`;return n||r}).slice(0,3),V)).catch(()=>(V=[],V)),H}function M(){return V}function N(){let e=process.env.DEMO_VERSION??`2.6.11`,t=i(),n=process.env.DEMO_VERSION?`/code/claude`:s(m());return{version:e,cwd:t?`${n} in ${t.replace(/^https?:\/\//,``)}`:n,billingType:c()?u():`API Usage Billing`,agentName:o().agent}}function P(e,n,r){return t(e)+3+t(n)>r?{shouldSplit:!0,truncatedModel:h(e,r),truncatedBilling:h(n,r)}:{shouldSplit:!1,truncatedModel:h(e,Math.max(r-t(n)-3,10)),truncatedBilling:n}}function F(e){if(process.env.USER_TYPE===`ant`)return[];let t=w();if(!t)return[];let n;try{n=T(t)}catch{return[]}let r=[],i=Object.keys(n).sort((e,t)=>S(e,t)?-1:1).slice(0,3);for(let e of i){let t=n[e];t&&r.push(...t)}return r.slice(0,e)}var I,L,R,z,B,V,H,U=e((()=>{a(),n(),d(),p(),l(),v(),C(),x(),y(),f(),I=50,L=20,R=4,z=1,B=2,V=[],H=null}));export{E as a,M as c,A as d,k as i,F as l,O as n,N as o,P as r,j as s,D as t,U as u};
@@ -0,0 +1 @@
1
+ import{AT as e,MT as t,NT as n,jT as r}from"./loadAgentsDir-D-xcJ22-.js";t();export{e as call,r as clearAuthRelatedCaches,n as performLogout};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-BWeoiL4Y.js";import{Dr as r,Pr as i,mc as a,pc as o}from"./paths-D8Fx3kUi.js";import{V as s,W as c,h as l,p as u}from"./debug-UI3T040K.js";import{Bc as d,Fo as f,Hc as p,Lo as m,ND as h,PD as g,Vc as _,ZA as v,bo as y,n_ as b,r_ as x,rj as S}from"./loadAgentsDir-HZ19tmOZ.js";import{On as C,jn as w}from"./prompt-BxoRdmaw.js";import{i as T,o as E}from"./fileStateCache-C7-TxF8G.js";import{join as D}from"path";function O(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
1
+ import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-BWeoiL4Y.js";import{Dr as r,Pr as i,mc as a,pc as o}from"./paths-D9CVAtXU.js";import{V as s,W as c,h as l,p as u}from"./debug-UI3T040K.js";import{Bc as d,Fo as f,Hc as p,Lo as m,ND as h,PD as g,Vc as _,ZA as v,bo as y,n_ as b,r_ as x,rj as S}from"./loadAgentsDir-D-xcJ22-.js";import{On as C,jn as w}from"./prompt-C69iv9cI.js";import{i as T,o as E}from"./fileStateCache-C7-TxF8G.js";import{join as D}from"path";function O(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
2
 
3
3
  Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
4