claude-code-best 2.6.8 → 2.6.10
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.
- package/dist/chunks/{AddWorkspaceDirectory-YmrkKVv2.js → AddWorkspaceDirectory-DYIf4o0g.js} +1 -1
- package/dist/chunks/{App-IAjCdPUn.js → App-Bw4stCcv.js} +1 -1
- package/dist/chunks/ApproveApiKey-CBEOrsej.js +1 -0
- package/dist/chunks/{ApproveApiKey-DhsT69v7.js → ApproveApiKey-CNBKF9de.js} +1 -1
- package/dist/chunks/{AssistantSessionChooser-DCUVNGfn.js → AssistantSessionChooser-DU5OOPwq.js} +1 -1
- package/dist/chunks/{BackgroundTasksDialog-Di_gH2TW.js → BackgroundTasksDialog-ChDZ6M4c.js} +1 -1
- package/dist/chunks/{BypassPermissionsModeDialog-BeZqE75e.js → BypassPermissionsModeDialog-UOkwRr3W.js} +1 -1
- package/dist/chunks/{ClaudeInChromeOnboarding-CZHktpPE.js → ClaudeInChromeOnboarding-6UL2_PCg.js} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-CG26Jg7h.js +1 -0
- package/dist/chunks/{ClaudeMdExternalIncludesDialog-Dofr1TYr.js → ClaudeMdExternalIncludesDialog-DBfmH_dG.js} +1 -1
- package/dist/chunks/ConsoleOAuthFlow-1aq67dJV.js +1 -0
- package/dist/chunks/{DesktopHandoff-C8_CDNft.js → DesktopHandoff-B-ySC5nP.js} +1 -1
- package/dist/chunks/{DevChannelsDialog-DkGWCFpL.js → DevChannelsDialog-DZMsKuak.js} +1 -1
- package/dist/chunks/{DiffDialog-93P95op8.js → DiffDialog-CeYcqIIw.js} +1 -1
- package/dist/chunks/{Doctor-Zd0UaR5d.js → Doctor-ByQrTdef.js} +1 -1
- package/dist/chunks/Doctor-DOil8Eh7.js +1 -0
- package/dist/chunks/{ExitFlow-4edARxmd.js → ExitFlow-gMv13EpM.js} +1 -1
- package/dist/chunks/Feedback-CGRlFB5g.js +2 -0
- package/dist/chunks/Grove-CJn8QGFo.js +1 -0
- package/dist/chunks/{Grove-TYf1glGP.js → Grove-CnHyPepC.js} +1 -1
- package/dist/chunks/{HybridTransport-BNexuwcN.js → HybridTransport-CiY6jyhx.js} +1 -1
- package/dist/chunks/{ITermBackend-DuomVpsD.js → ITermBackend-CG-a4QYW.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-Byury3Zx.js → InvalidConfigDialog-umJZVrz-.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-B8_0AvWo.js → InvalidSettingsDialog-C62kuhHc.js} +1 -1
- package/dist/chunks/{MCPConnectionManager-xL_wQCda.js → MCPConnectionManager-BbGFGZTr.js} +1 -1
- package/dist/chunks/{McpParsingWarnings-C6u4RM2a.js → McpParsingWarnings-DW0d9Lsb.js} +1 -1
- package/dist/chunks/MessageSelector-A-814zUi.js +3 -0
- package/dist/chunks/{Messages-QH8_sB13.js → Messages-C4nIAGDL.js} +2 -2
- package/dist/chunks/{Onboarding-XWhelEBr.js → Onboarding-BRePz3fJ.js} +1 -1
- package/dist/chunks/{OverageCreditUpsell-BvPz1jLU.js → OverageCreditUpsell-DEZsyI6y.js} +1 -1
- package/dist/chunks/{PluginSettings-D1YHfrE1.js → PluginSettings-CuZtXDaS.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-rqUoa9Ch.js → PromptInputFooterSuggestions-BrpVQJVn.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-OTViHSR0.js → PromptInputHelpMenu-BlGRpX1Q.js} +1 -1
- package/dist/chunks/{QueryEngine-DigBggXq.js → QueryEngine-CK9YRTZo.js} +1 -1
- package/dist/chunks/{REPL-D2p-vgct.js → REPL-D-t0XQx2.js} +6 -6
- package/dist/chunks/REPL-DV96-Prr.js +1 -0
- package/dist/chunks/{RemoteCallout-CCIWIrd-.js → RemoteCallout-DvOZQWoG.js} +1 -1
- package/dist/chunks/{RemoteSessionManager-Dx81p5dH.js → RemoteSessionManager-BlIA65dM.js} +1 -1
- package/dist/chunks/{ResumeConversation-73r3Zh5P.js → ResumeConversation-BTccgPK8.js} +1 -1
- package/dist/chunks/{SSETransport-C9hd2v-w.js → SSETransport-CIvM80QS.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-CmyZbRut.js +1 -0
- package/dist/chunks/SentryErrorBoundary-B9sk4zvj.js +1 -0
- package/dist/chunks/{SentryErrorBoundary-z8tMb-zO.js → SentryErrorBoundary-BK2HjzVw.js} +1 -1
- package/dist/chunks/Settings-D3Kpcb7q.js +2 -0
- package/dist/chunks/{TeleportProgress-CPXN7u3Z.js → TeleportProgress-BFlMrsa_.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-CiyXjTxq.js → TeleportRepoMismatchDialog-BUeyIQCH.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-Dao8ktHk.js → TeleportResumeWrapper-CHfeyo9J.js} +1 -1
- package/dist/chunks/{ThemePicker-CFYFNnPp.js → ThemePicker-a5n2EKgk.js} +1 -1
- package/dist/chunks/{TmuxBackend-B5DBBugq.js → TmuxBackend-Ct9v-J78.js} +1 -1
- package/dist/chunks/{TrustDialog-DtIXHMR_.js → TrustDialog-e1nyM-Fp.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-BK0wOS55.js → ValidationErrorsList-BHCepjdO.js} +1 -1
- package/dist/chunks/WelcomeV2-BnyziLbm.js +1 -0
- package/dist/chunks/{WindowsTerminalBackend-DFLLlAOp.js → WindowsTerminalBackend-Dw6qjsBu.js} +1 -1
- package/dist/chunks/{add-dir-JoVgNFOk.js → add-dir-CjnY5yfR.js} +1 -1
- package/dist/chunks/{agentDisplay-B3RjWR-3.js → agentDisplay-Dfx-axK9.js} +1 -1
- package/dist/chunks/{agents-BUyLUAIu.js → agents-CICHEOOq.js} +1 -1
- package/dist/chunks/{agents-UqS5PhD2.js → agents-lM-cxA8_.js} +1 -1
- package/dist/chunks/{ant-Bq1wIvnP.js → ant-JgExUpwJ.js} +1 -1
- package/dist/chunks/{api-O4eHGLTY.js → api-CClu711S.js} +1 -1
- package/dist/chunks/api-DgzWK3bh.js +1 -0
- package/dist/chunks/asciicast-C3nf97NR.js +1 -0
- package/dist/chunks/{asciicast-o5Zg4dJt.js → asciicast-DIsaWcsJ.js} +1 -1
- package/dist/chunks/{assistant-D5Tg_1ry.js → assistant-Bih7t52W.js} +1 -1
- package/dist/chunks/{assistant-CMIbt3Ir.js → assistant-D1XefK1z.js} +1 -1
- package/dist/chunks/assistant-Ojm6Wsb6.js +1 -0
- package/dist/chunks/{auth-D3SKo0wT.js → auth-CU6ArDos.js} +1 -1
- package/dist/chunks/auth-lQWhUjLX.js +1 -0
- package/dist/chunks/{autoMode-BIVJlkBM.js → autoMode-DM9eDMmT.js} +1 -1
- package/dist/chunks/{autonomy-BYi6z9LD.js → autonomy-CZCZ9wlx.js} +1 -1
- package/dist/chunks/{autonomy-Mi7Fkq1J.js → autonomy-DUfXLZfq.js} +1 -1
- package/dist/chunks/{autonomyPanel-D_GsUMOf.js → autonomyPanel-kUZwcjfu.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-BcLV1-Ap.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-BG_UYxFF.js → backgroundHousekeeping-KGRk7QeA.js} +2 -2
- package/dist/chunks/{branch-BC-K45fw.js → branch-Ac3HXXs2.js} +1 -1
- package/dist/chunks/{bridge-DBteRzgS.js → bridge-Drt-UmFp.js} +2 -2
- package/dist/chunks/bridgeConfig-ByjfIoJz.js +1 -0
- package/dist/chunks/{bridgeConfig-C_GoD1k5.js → bridgeConfig-GQzZVhuF.js} +1 -1
- package/dist/chunks/bridgeEnabled-C7AI9y8g.js +1 -0
- package/dist/chunks/{bridgeEnabled-cSK8a7tN.js → bridgeEnabled-CDoXbe3S.js} +1 -1
- package/dist/chunks/{bridgeMain-QbfEOTqV.js → bridgeMain-B0fLyOLC.js} +6 -6
- package/dist/chunks/bridgeMain-DKQ1u3k_.js +1 -0
- package/dist/chunks/{bridgeMessaging-CqXQzew4.js → bridgeMessaging-gRm2WcIE.js} +1 -1
- package/dist/chunks/{bridgePointer-FvAMj3re.js → bridgePointer-B2FPGDWR.js} +1 -1
- package/dist/chunks/{btw-DBtPlEWc.js → btw-B2Tq2ewP.js} +1 -1
- package/dist/chunks/{buddy-BYwTgNnf.js → buddy-v00QHFZ6.js} +1 -1
- package/dist/chunks/{bypassPermissionsKillswitch-DkYLp9m0.js → bypassPermissionsKillswitch-DAr5U3Ep.js} +1 -1
- package/dist/chunks/{caches-DGW9ovtw.js → caches-DHUk9KMo.js} +2 -2
- package/dist/chunks/caches-DbE9R4Zh.js +1 -0
- package/dist/chunks/{ccrClient-B9pi3b8Y.js → ccrClient-1Q3C_3_r.js} +1 -1
- package/dist/chunks/changeDetector--9sSzU2e.js +1 -0
- package/dist/chunks/channelNotification-CLYOd2-R.js +1 -0
- package/dist/chunks/{channelNotification-n7Avue-9.js → channelNotification-d08DSK9u.js} +1 -1
- package/dist/chunks/{chrome-BwZPfW9Z.js → chrome-CKo0_n71.js} +1 -1
- package/dist/chunks/clear-Cf1D1WkR.js +1 -0
- package/dist/chunks/client-Bzn58Ea4.js +1 -0
- package/dist/chunks/{color-BsBrog6H.js → color-DqtpdhFx.js} +1 -1
- package/dist/chunks/commands-CJz20FMO.js +1 -0
- package/dist/chunks/{commitAttribution-q7SEukgl.js → commitAttribution-BJvmLsVe.js} +1 -1
- package/dist/chunks/commitAttribution-BgNel6QS.js +1 -0
- package/dist/chunks/{compact-DiY1w7pT.js → compact-DLYic2Oa.js} +1 -1
- package/dist/chunks/{companion-D18UNnC7.js → companion-C2CBSYiF.js} +1 -1
- package/dist/chunks/{config-CSHnElBp.js → config-Cht2x9n9.js} +1 -1
- package/dist/chunks/{config-D3QKcEKz.js → config-DnWYFpDc.js} +1 -1
- package/dist/chunks/{context-DnyYrN2X.js → context-CDz9HqRT.js} +1 -1
- package/dist/chunks/{context-noninteractive-CFlod2Eg.js → context-noninteractive-BUIf4IMX.js} +1 -1
- package/dist/chunks/context-noninteractive-CzuLiIeO.js +1 -0
- package/dist/chunks/{conversation-CRoOMglD.js → conversation-CLRfdC_V.js} +1 -1
- package/dist/chunks/conversation-D2iFk7Te.js +1 -0
- package/dist/chunks/{copy-CHGX-YpC.js → copy-BgHTb1Z0.js} +1 -1
- package/dist/chunks/{createSSHSession-Bf-8h3Sw.js → createSSHSession-C_mpeqPy.js} +1 -1
- package/dist/chunks/createSession-XhPMcSns.js +1 -0
- package/dist/chunks/{createSession-rRZIkjl3.js → createSession-kVJBXQlZ.js} +1 -1
- package/dist/chunks/{cronJitterConfig-DmBBJDTf.js → cronJitterConfig-SI7bYvJj.js} +1 -1
- package/dist/chunks/{crossProjectResume-BQxLBpDD.js → crossProjectResume-BMWSw62A.js} +1 -1
- package/dist/chunks/datadog-B5oHSyS1.js +1 -0
- package/dist/chunks/{datadog-Bb65d6yd.js → datadog-Bd9AgZT-.js} +1 -1
- package/dist/chunks/{desktop-DiCA6RUU.js → desktop-BeUj2fqu.js} +1 -1
- package/dist/chunks/{diff-BvLQ-t8P.js → diff-BzgXDp1o.js} +1 -1
- package/dist/chunks/{directoryCompletion-DP_4B1GL.js → directoryCompletion-D7EGwonO.js} +1 -1
- package/dist/chunks/{doctor-bmTXLycZ.js → doctor-HCOexiL5.js} +1 -1
- package/dist/chunks/{effort-CSTwkB2B.js → effort-BaJU_k2K.js} +1 -1
- package/dist/chunks/entry-BoXZIfxW.js +14 -0
- package/dist/chunks/envLessBridgeConfig-CnR1E53G.js +1 -0
- package/dist/chunks/envLessBridgeConfig-DgdkC9jO.js +1 -0
- package/dist/chunks/{exit-eirVuF-n.js → exit-B-9k0zjK.js} +1 -1
- package/dist/chunks/{export-CcJD8r8U.js → export-p85q3g8t.js} +1 -1
- package/dist/chunks/{exportRenderer-DtezFcml.js → exportRenderer-CUqd8PZM.js} +1 -1
- package/dist/chunks/extra-usage-CsJ9Z2G1.js +1 -0
- package/dist/chunks/{extra-usage-core-DWM0Q56J.js → extra-usage-core-B9Fy8_RP.js} +1 -1
- package/dist/chunks/{extra-usage-noninteractive-BvJEi4WX.js → extra-usage-noninteractive-B4vaWh0y.js} +1 -1
- package/dist/chunks/{extra-usage-CBcgeIcJ.js → extra-usage-pPprHqwq.js} +1 -1
- package/dist/chunks/{extraUsage-CWde-Mi0.js → extraUsage-CEHCMe7l.js} +1 -1
- package/dist/chunks/extractMemories-D34FfNYT.js +1 -0
- package/dist/chunks/{fast-DQyJ7c7s.js → fast-CiSIZ5FI.js} +1 -1
- package/dist/chunks/fast-CxPB-PBH.js +1 -0
- package/dist/chunks/{feedback-BzBBKT2y.js → feedback-C2QLdCfW.js} +1 -1
- package/dist/chunks/{firstPartyEventLogger-BOHIpp-w.js → firstPartyEventLogger-CozFbFD9.js} +1 -1
- package/dist/chunks/{flushGate-DeCDhkKp.js → flushGate-LXr8ynSz.js} +1 -1
- package/dist/chunks/{gates-CAVdjC23.js → gates-BGfvIJXl.js} +1 -1
- package/dist/chunks/gates-D-kXXHiv.js +1 -0
- package/dist/chunks/{gemini-CFrOUVS4.js → gemini-BFBrPtVM.js} +1 -1
- package/dist/chunks/{generateRecap-Bcp5DiiO.js → generateRecap-CLla3Ymz.js} +1 -1
- package/dist/chunks/{generateSessionName-DeFGkHct.js → generateSessionName-DF4I7gr2.js} +1 -1
- package/dist/chunks/{githubRepoPathMapping-B07Wb07_.js → githubRepoPathMapping-C_5RCW_Z.js} +1 -1
- package/dist/chunks/{grok-DtidcVWD.js → grok-Dih61WOo.js} +1 -1
- package/dist/chunks/{growthbook-gLwBDK-r.js → growthbook-C39e6Byf.js} +1 -1
- package/dist/chunks/{heapdump-BxQYlnPR.js → heapdump-BRj4tC1y.js} +1 -1
- package/dist/chunks/{help-Bi0sABuv.js → help-fH9LNwox.js} +1 -1
- package/dist/chunks/hooks-Cw-F-1uO.js +1 -0
- package/dist/chunks/{hooks-Cc_DxF9N.js → hooks-D22Uu3Vs.js} +1 -1
- package/dist/chunks/{hostAdapter-D9_d4gU0.js → hostAdapter-CbXytx4y.js} +1 -1
- package/dist/chunks/{ide-3wDIOoZF.js → ide-DM5Tw70v.js} +1 -1
- package/dist/chunks/{inboundAttachments-DPMETKd6.js → inboundAttachments-2QIORKsd.js} +1 -1
- package/dist/chunks/inboundAttachments-CZN_sUNx.js +1 -0
- package/dist/chunks/initReplBridge-D8sWx97P.js +1 -0
- package/dist/chunks/{insights-w7qM4YyA.js → insights-B6ogyLuv.js} +1 -1
- package/dist/chunks/{install-N2FgArWv.js → install-DimDiHha.js} +1 -1
- package/dist/chunks/{install-github-app-By39Zi78.js → install-github-app-CQ7vkhIX.js} +1 -1
- package/dist/chunks/{install-slack-app-CVwZphU-.js → install-slack-app-By9_5YS7.js} +1 -1
- package/dist/chunks/{instrumentation-BkLEupDC.js → instrumentation-DbKu2GCL.js} +3 -3
- package/dist/chunks/{job-CgBE27O7.js → job-D_DoFtev.js} +1 -1
- package/dist/chunks/{keybindings-DHXJzU3E.js → keybindings-DYRBv1bg.js} +1 -1
- package/dist/chunks/{lang-DLneRt1b.js → lang-CAMxxG9F.js} +1 -1
- package/dist/chunks/{language-BVAzlrRz.js → language-CoHgN7rh.js} +1 -1
- package/dist/chunks/language-DB1HIsF8.js +1 -0
- package/dist/chunks/{launchAgentsPlatform-CtfK0qPa.js → launchAgentsPlatform-9P8K66ku.js} +1 -1
- package/dist/chunks/{launchAutofixPr-CQBv0rQ0.js → launchAutofixPr-BbsqqUMA.js} +1 -1
- package/dist/chunks/{launchLocalMemory-BNE09TKr.js → launchLocalMemory-K55Yo6JM.js} +1 -1
- package/dist/chunks/{launchLocalVault-Dw_NJUnd.js → launchLocalVault-rrd1Q7jP.js} +1 -1
- package/dist/chunks/{launchMemoryStores-CRRB6Z5A.js → launchMemoryStores-DMZ8GNQj.js} +1 -1
- package/dist/chunks/{launchOnboarding-nMAF5iv7.js → launchOnboarding-Duz_huXl.js} +1 -1
- package/dist/chunks/{launchSchedule-Akq1AmK8.js → launchSchedule-7VlG_3M6.js} +1 -1
- package/dist/chunks/{launchSkillStore-Zwtasj13.js → launchSkillStore-CcJL8RT0.js} +1 -1
- package/dist/chunks/{launchTeleport-BzlIYyll.js → launchTeleport-C8h_4F_L.js} +1 -1
- package/dist/chunks/{launchVault-BevXlxJB.js → launchVault-Bm1EeT2x.js} +1 -1
- package/dist/chunks/loadAgentsDir-DsskgPWe.js +1 -0
- package/dist/chunks/{loadAgentsDir-DF6FgRn-.js → loadAgentsDir-HZ19tmOZ.js} +53 -53
- package/dist/chunks/{loadPluginHooks-DBHkyJaj.js → loadPluginHooks-DoFtrBWf.js} +1 -1
- package/dist/chunks/{localSearch-v4itMlCM.js → localSearch-4cz5ia5a.js} +1 -1
- package/dist/chunks/localSearch-CScvVw0c.js +1 -0
- package/dist/chunks/{login-CKodBzyZ.js → login-D6ywctRr.js} +1 -1
- package/dist/chunks/login-FdPNsHJs.js +1 -0
- package/dist/chunks/{logoV2Utils-VebeEs7Y.js → logoV2Utils-jaFn88oE.js} +1 -1
- package/dist/chunks/logout-CulTqT7V.js +1 -0
- package/dist/chunks/{magicDocs-uX5n3NKh.js → magicDocs-DHGtJq0K.js} +1 -1
- package/dist/chunks/{main-Cd_i0ZPo.js → main-Bv4AvaJk.js} +15 -15
- package/dist/chunks/{mappers-CPL2ni36.js → mappers-qcXgNBi5.js} +1 -1
- package/dist/chunks/{mcp-DeWOD4B4.js → mcp-BXPg0RPm.js} +1 -1
- package/dist/chunks/{mcp-Dhp1SaId.js → mcp-iCbCqg7w.js} +2 -2
- package/dist/chunks/mcp-yDWIJznG.js +2 -0
- package/dist/chunks/{mcpServer-CPJo2eKm.js → mcpServer-DcSto-Od.js} +1 -1
- package/dist/chunks/{mcpServer-CTuPkyD6.js → mcpServer-Do9XTs2J.js} +1 -1
- package/dist/chunks/{memory-enMuKEnU.js → memory-B0YG4r65.js} +1 -1
- package/dist/chunks/model-DG0v1297.js +1 -0
- package/dist/chunks/{model-4f3U2YMu.js → model-DwVGG0mc.js} +1 -1
- package/dist/chunks/{onChangeAppState-DxTGoS7j.js → onChangeAppState-CHYSALjM.js} +1 -1
- package/dist/chunks/{openai-CwG_KpH1.js → openai-Brj68CWD.js} +1 -1
- package/dist/chunks/{overageCreditGrant-CCkJVN9k.js → overageCreditGrant-D5X6-TcP.js} +1 -1
- package/dist/chunks/{passes-O0VEQz1a.js → passes-B1f6NHWA.js} +1 -1
- package/dist/chunks/{path-C4kbwvSH.js → path-B3lx7yHn.js} +1 -1
- package/dist/chunks/{paths-o5iA-EnQ.js → paths-D8Fx3kUi.js} +3 -3
- package/dist/chunks/{permissions-BtYQvivG.js → permissions-CYrv_WVH.js} +1 -1
- package/dist/chunks/{pipeTransport-BEfqa7Uh.js → pipeTransport-DAYnzvGK.js} +1 -1
- package/dist/chunks/{plan-Jw4GjVL0.js → plan-B7EPetF0.js} +1 -1
- package/dist/chunks/{plugin-DZq0voFR.js → plugin-BRWx-_ZS.js} +1 -1
- package/dist/chunks/{pluginAutoupdate-D19vNoOp.js → pluginAutoupdate-BwxAsU2F.js} +1 -1
- package/dist/chunks/{pluginBlocklist-DeX8I4dK.js → pluginBlocklist-BiRgxFei.js} +1 -1
- package/dist/chunks/{pluginCliCommands-CMgqxOaT.js → pluginCliCommands-CXANH43C.js} +1 -1
- package/dist/chunks/{pluginFlagging-DFLE5fkh.js → pluginFlagging-CBbUoCJ9.js} +1 -1
- package/dist/chunks/{pluginOperations-BTz69m3_.js → pluginOperations-B3gcFjVq.js} +1 -1
- package/dist/chunks/{pluginStartupCheck-CWWKwD5F.js → pluginStartupCheck-BNfv-Pf4.js} +1 -1
- package/dist/chunks/pluginStartupCheck-Ga_XiMnA.js +1 -0
- package/dist/chunks/{plugins-BPUnAc0r.js → plugins-zHTS03v8.js} +1 -1
- package/dist/chunks/policyLimits-Dsz-jkpD.js +1 -0
- package/dist/chunks/{pollConfig-DyHumJli.js → pollConfig-BWY_xmk6.js} +1 -1
- package/dist/chunks/{poor-CHHZIPDW.js → poor-Bcu8JaV5.js} +1 -1
- package/dist/chunks/poorMode-BAuBNURJ.js +1 -0
- package/dist/chunks/{poorMode-7N6J6YN2.js → poorMode-CDhhKGBw.js} +1 -1
- package/dist/chunks/{print-QCXJDmz0.js → print-DO52Fudu.js} +4 -4
- package/dist/chunks/{privacy-settings-DR0_P3JF.js → privacy-settings-CmHUlYoo.js} +1 -1
- package/dist/chunks/{processBashCommand-CkqKsBSD.js → processBashCommand-DltW2Ubs.js} +1 -1
- package/dist/chunks/{processSlashCommand-DIk_hLHW.js → processSlashCommand-JLJ_vF05.js} +1 -1
- package/dist/chunks/{prompt-DiHksuOs.js → prompt-BxoRdmaw.js} +1 -1
- package/dist/chunks/prompt-D3rBUscf.js +1 -0
- package/dist/chunks/prompt-ohTcwieE.js +1 -0
- package/dist/chunks/{promptEditor-B3S5E5Q7.js → promptEditor-LQu9NhbN.js} +1 -1
- package/dist/chunks/{protocolHandler-D1XT2l3j.js → protocolHandler-DYn2E9Yl.js} +1 -1
- package/dist/chunks/{rate-limit-options-DHh1ksB5.js → rate-limit-options-OQt6LUP8.js} +1 -1
- package/dist/chunks/{rcDebugLog-BNojB_eB.js → rcDebugLog-5XEbz_Yg.js} +1 -1
- package/dist/chunks/{referral-BADm5sBf.js → referral-BsAvaATn.js} +1 -1
- package/dist/chunks/{refresh-D48fjYJ4.js → refresh-TlNezXn4.js} +1 -1
- package/dist/chunks/{registerProtocol-Dzmi6VC4.js → registerProtocol-COUVHFku.js} +1 -1
- package/dist/chunks/{registry-CEu_N3dS.js → registry-m7JojEMY.js} +1 -1
- package/dist/chunks/{release-notes-Dr61jYDO.js → release-notes-BDdughgu.js} +1 -1
- package/dist/chunks/{releaseNotes-5SV7C5aV.js → releaseNotes-Bd3zxid3.js} +2 -2
- package/dist/chunks/{reload-plugins-BxuE-21F.js → reload-plugins-qUIybHNy.js} +1 -1
- package/dist/chunks/{remote-env-BaQjT5em.js → remote-env-GGlLNGsx.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-B8MjcW6f.js → remoteBridgeCore-DpF5alU6.js} +1 -1
- package/dist/chunks/{remoteControlServer-BvoNcg9D.js → remoteControlServer-C32rxr3F.js} +1 -1
- package/dist/chunks/{rename-B3q0tgmd.js → rename-CCF7A5mG.js} +1 -1
- package/dist/chunks/{resume-BSGOqus7.js → resume-C6ereXig.js} +1 -1
- package/dist/chunks/{runtimeObserver-Bb6wSUMJ.js → runtimeObserver-DBdzsp_h.js} +1 -1
- package/dist/chunks/{runtimeObserver-BbwUiToa.js → runtimeObserver-jrNSkZU2.js} +2 -2
- package/dist/chunks/sandbox-adapter-CQ0imVO1.js +1 -0
- package/dist/chunks/{sandbox-toggle-L7YPKXba.js → sandbox-toggle-Bfti5GKF.js} +1 -1
- package/dist/chunks/searchExtraTools-Ntz1u-YC.js +1 -0
- package/dist/chunks/{sentry-DG3ru8XE.js → sentry-CZUyEC3A.js} +1 -1
- package/dist/chunks/{session-B5wA2K9M.js → session-DCIDa5dI.js} +1 -1
- package/dist/chunks/{sessionDiscovery-DijWFNjj.js → sessionDiscovery-5m_pul65.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-DD2a-mTZ.js +1 -0
- package/dist/chunks/{sessionMemory-CeWjRuFL.js → sessionMemory-BQP_RezB.js} +1 -1
- package/dist/chunks/sessionMemory-hbxplpxs.js +1 -0
- package/dist/chunks/sessionMemoryUtils-DlW9hqOH.js +1 -0
- package/dist/chunks/{sessionObserver-CsDT2GnB.js → sessionObserver-LBqNoak9.js} +1 -1
- package/dist/chunks/sessionObserver-Lb1c5FPy.js +1 -0
- package/dist/chunks/sessionStorage-DG68Xvsy.js +1 -0
- package/dist/chunks/sessionStoragePortable-DJZ_6cL8.js +3 -0
- package/dist/chunks/{sessionTitle-CxmvZO71.js → sessionTitle-BIykjtKk.js} +1 -1
- package/dist/chunks/{sessionTracing-Cy5dAplG.js → sessionTracing-Da_r0mIc.js} +1 -1
- package/dist/chunks/{settingsSync-54E8xV8N.js → settingsSync-BE0PQqyo.js} +1 -1
- package/dist/chunks/{setup-KWELOokh.js → setup-CjA5bW6e.js} +1 -1
- package/dist/chunks/{setup-B5CMpp0c.js → setup-lxzmZdw5.js} +2 -2
- package/dist/chunks/{setup-GJtdESQj.js → setup-p04XtwYu.js} +1 -1
- package/dist/chunks/{shadowedRuleDetection-C4NGjljb.js → shadowedRuleDetection-Zqp1M5St.js} +1 -1
- package/dist/chunks/{sideQuestion-DBrzdgkl.js → sideQuestion-DzJenEES.js} +1 -1
- package/dist/chunks/sink-BdRlnpoG.js +1 -0
- package/dist/chunks/{sink-BKc24wdw.js → sink-N5XR8Zgp.js} +1 -1
- package/dist/chunks/sinks-Bn0FK_Ab.js +1 -0
- package/dist/chunks/sinks-D8erzS9D.js +2 -0
- package/dist/chunks/{skill-learning-C5NrosiL.js → skill-learning-CbMQ8IsZ.js} +1 -1
- package/dist/chunks/{skillChangeDetector-NJrEtU47.js → skillChangeDetector-4XWLpjQl.js} +1 -1
- package/dist/chunks/{skillGapStore-uXpRqLGG.js → skillGapStore-Bp5IVfOx.js} +1 -1
- package/dist/chunks/{skillGapStore-D1rkePoo.js → skillGapStore-DbiDG9Pd.js} +2 -2
- package/dist/chunks/{skillGenerator-Deog7yBO.js → skillGenerator-Bys7U1l_.js} +2 -2
- package/dist/chunks/skillLearning-702-D6Lq.js +1 -0
- package/dist/chunks/skillLearning-Cz7qU9V6.js +1 -0
- package/dist/chunks/{skillPanel-Bx63GX9w.js → skillPanel-MIHU1PPp.js} +3 -3
- package/dist/chunks/{skillSearchPanel-CM5EZGkH.js → skillSearchPanel-MFB-PzB1.js} +2 -2
- package/dist/chunks/{skills-JvC7Ms0P.js → skills-D4tZYFpd.js} +1 -1
- package/dist/chunks/{sprites-YBiqlYch.js → sprites-B479AZSz.js} +1 -1
- package/dist/chunks/{stats-BJMKNvVK.js → stats-B-ErfxCJ.js} +1 -1
- package/dist/chunks/{status-DAJ28yxZ.js → status-DVACJLsK.js} +1 -1
- package/dist/chunks/{statusNoticeHelpers-B7nbsqLz.js → statusNoticeHelpers-CwSCVvxP.js} +1 -1
- package/dist/chunks/{tag-B4y7cBqH.js → tag-YpE2D2ve.js} +1 -1
- package/dist/chunks/{tasks-CSye58Ap.js → tasks-7N7iSiEx.js} +1 -1
- package/dist/chunks/{teamHelpers-BFZ4eVwW.js → teamHelpers-BFdTH57t.js} +1 -1
- package/dist/chunks/teamHelpers-CmDn2xyl.js +1 -0
- package/dist/chunks/{teammateModeSnapshot-DXc2vyo2.js → teammateModeSnapshot-CwacsQvD.js} +1 -1
- package/dist/chunks/teammateModeSnapshot-DXtG86pG.js +1 -0
- package/dist/chunks/{teleport-NN6zSxxe.js → teleport-CPB1CHBs.js} +1 -1
- package/dist/chunks/{templateJobs-DAVqqU0g.js → templateJobs-BM98KAEH.js} +1 -1
- package/dist/chunks/{terminalSetup-DqL65XR2.js → terminalSetup-CGiIwoIX.js} +1 -1
- package/dist/chunks/{terminalSetup-jZKBoPTc.js → terminalSetup-yQ0CoywX.js} +1 -1
- package/dist/chunks/{theme-DPv2L3ut.js → theme-C5ULGNRs.js} +1 -1
- package/dist/chunks/{thinkback-tcfR5Uod.js → thinkback-CF_sLFvX.js} +1 -1
- package/dist/chunks/thinkback-D1Fv1QYl.js +1 -0
- package/dist/chunks/{thinkback-play-D_uOESmO.js → thinkback-play-syg_SJm8.js} +1 -1
- package/dist/chunks/{toolEventObserver-CtApZXry.js → toolEventObserver-CcLqNRcT.js} +1 -1
- package/dist/chunks/{toolEventObserver-D6ZTtdh_.js → toolEventObserver-CuJbsUL0.js} +1 -1
- package/dist/chunks/toolPool-C4CO158z.js +1 -0
- package/dist/chunks/{toolPool-DFpa-yul.js → toolPool-CRq0GSrk.js} +1 -1
- package/dist/chunks/{trustedDevice-Bxn7WW5C.js → trustedDevice-C4tvgByY.js} +1 -1
- package/dist/chunks/{trustedDevice-DsgCQRsJ.js → trustedDevice-u2HpuTkN.js} +1 -1
- package/dist/chunks/{ultrareviewCommand-BfuSrdXz.js → ultrareviewCommand-CWLiiq-z.js} +1 -1
- package/dist/chunks/{undercover-CM8zTx5g.js → undercover-CNlN7Xzl.js} +1 -1
- package/dist/chunks/undercover-jZEIpxrJ.js +1 -0
- package/dist/chunks/{updateCCB-DTArxdyR.js → updateCCB-BWN4mOEz.js} +1 -1
- package/dist/chunks/{upgrade-CEd1Jxw_.js → upgrade-CE25mJEk.js} +1 -1
- package/dist/chunks/upgrade-C_0-l0Zo.js +1 -0
- package/dist/chunks/{upload-DNo3bZLc.js → upload-YpyOX2a-.js} +1 -1
- package/dist/chunks/{usage-X4-qec8g.js → usage-Bw-kTwHb.js} +1 -1
- package/dist/chunks/{usage-DEwRsc7E.js → usage-DNXwr_ep.js} +1 -1
- package/dist/chunks/{useMainLoopModel-2A9HV1H3.js → useMainLoopModel-DPmF_cMn.js} +1 -1
- package/dist/chunks/{useManagePlugins-D9MBag8O.js → useManagePlugins-hPG7UMWo.js} +1 -1
- package/dist/chunks/{useMergedTools-DCYrP_YE.js → useMergedTools-BSO1NflP.js} +1 -1
- package/dist/chunks/{useSearchInput-CepwLBvi.js → useSearchInput-CR9uhbA7.js} +1 -1
- package/dist/chunks/{useSettingsErrors-C8ffWXbY.js → useSettingsErrors-453j5XuO.js} +1 -1
- package/dist/chunks/{useVoice-vHZVaTAN.js → useVoice-B5DQ5Tay.js} +1 -1
- package/dist/chunks/{util-B13MVSse.js → util-D_BHu06u.js} +1 -1
- package/dist/chunks/utils--ZdihcLH.js +1 -0
- package/dist/chunks/{validatePlugin-Cf_toBOJ.js → validatePlugin-Dxm-5f8W.js} +1 -1
- package/dist/chunks/{vim-6p7eiRPG.js → vim-BGqKMQxl.js} +1 -1
- package/dist/chunks/{voice-Bvc_BxoI.js → voice-B2MWrkN3.js} +1 -1
- package/dist/chunks/voiceModeEnabled-0NU5pSM-.js +1 -0
- package/dist/chunks/{voiceModeEnabled-BPbOh6jd.js → voiceModeEnabled-if9dV1bW.js} +1 -1
- package/dist/chunks/{voiceStreamSTT-CzCUhap3.js → voiceStreamSTT-CWhKAxcp.js} +1 -1
- package/dist/chunks/voiceStreamSTT-yvcTWD7i.js +1 -0
- package/dist/chunks/{workerRegistry-DCtC-WN3.js → workerRegistry-BANOcuS2.js} +1 -1
- package/dist/chunks/worktree-CRn2SbHn.js +1 -0
- package/dist/chunks/{xml-CqxiCY4v.js → xml-DZp0WcWT.js} +1 -1
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/ApproveApiKey-CAvlRKLr.js +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DrkzPawC.js +0 -1
- package/dist/chunks/ConsoleOAuthFlow-CtqOQRDT.js +0 -1
- package/dist/chunks/Doctor-CheDaF3O.js +0 -1
- package/dist/chunks/Feedback-CZY-BikO.js +0 -2
- package/dist/chunks/Grove-CbcR0CsI.js +0 -1
- package/dist/chunks/MessageSelector-DAyH1noQ.js +0 -3
- package/dist/chunks/REPL-Cxh0Qnnt.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-BNpA8JzR.js +0 -1
- package/dist/chunks/SentryErrorBoundary-BFwcMSIK.js +0 -1
- package/dist/chunks/Settings-D9qdaMe5.js +0 -2
- package/dist/chunks/WelcomeV2-BjUbi9vp.js +0 -1
- package/dist/chunks/api-kAjsowcb.js +0 -1
- package/dist/chunks/asciicast-aoKFhc7C.js +0 -1
- package/dist/chunks/assistant-nOCkNa3_.js +0 -1
- package/dist/chunks/auth-CDOk9J9A.js +0 -1
- package/dist/chunks/backgroundHousekeeping-wHy1eAso.js +0 -1
- package/dist/chunks/bridgeConfig-V_pmBzSH.js +0 -1
- package/dist/chunks/bridgeEnabled-BxtxHb8R.js +0 -1
- package/dist/chunks/bridgeMain-CMNptMs4.js +0 -1
- package/dist/chunks/caches-B-GiT9hm.js +0 -1
- package/dist/chunks/changeDetector-S1Jti1bW.js +0 -1
- package/dist/chunks/channelNotification-Bx6dpA7I.js +0 -1
- package/dist/chunks/clear-BXv0Sq3m.js +0 -1
- package/dist/chunks/client-DNQukPEE.js +0 -1
- package/dist/chunks/commands-BK3ugb0u.js +0 -1
- package/dist/chunks/commitAttribution-CtQYmnw-.js +0 -1
- package/dist/chunks/context-noninteractive-0YpW67KZ.js +0 -1
- package/dist/chunks/conversation-DCG0fiGV.js +0 -1
- package/dist/chunks/createSession-BYf27ahD.js +0 -1
- package/dist/chunks/datadog-NnzM1Mu3.js +0 -1
- package/dist/chunks/entry-BUwwv2dM.js +0 -14
- package/dist/chunks/envLessBridgeConfig-DJJKeDBT.js +0 -1
- package/dist/chunks/envLessBridgeConfig-Dq02Vvx1.js +0 -1
- package/dist/chunks/extra-usage-DhB0NElh.js +0 -1
- package/dist/chunks/extractMemories-wcRNh_jz.js +0 -1
- package/dist/chunks/fast-ukzN3wl2.js +0 -1
- package/dist/chunks/gates-CB_pFChT.js +0 -1
- package/dist/chunks/hooks-BTBhK9sh.js +0 -1
- package/dist/chunks/inboundAttachments-DBaPmCTv.js +0 -1
- package/dist/chunks/initReplBridge-BWP41EGm.js +0 -1
- package/dist/chunks/language-ZBygqv6V.js +0 -1
- package/dist/chunks/loadAgentsDir-OIIKHPq9.js +0 -1
- package/dist/chunks/localSearch-DslXIfeC.js +0 -1
- package/dist/chunks/login-CTIVwgFU.js +0 -1
- package/dist/chunks/logout-B3MyP8fk.js +0 -1
- package/dist/chunks/mcp-Ci_TbB5m.js +0 -2
- package/dist/chunks/model-BsHyPvD0.js +0 -1
- package/dist/chunks/pluginStartupCheck-Non969kz.js +0 -1
- package/dist/chunks/policyLimits-D6dpS-CU.js +0 -1
- package/dist/chunks/poorMode-DX4EXe0o.js +0 -1
- package/dist/chunks/prompt-2ia5b-QO.js +0 -1
- package/dist/chunks/prompt-CNtVpGdl.js +0 -1
- package/dist/chunks/sandbox-adapter-Cr6f6gjf.js +0 -1
- package/dist/chunks/searchExtraTools-DRVIhwVJ.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-DnbPctQc.js +0 -1
- package/dist/chunks/sessionMemory-BOT9f5f0.js +0 -1
- package/dist/chunks/sessionMemoryUtils-B47JMJa2.js +0 -1
- package/dist/chunks/sessionObserver-BNZflr2e.js +0 -1
- package/dist/chunks/sessionStorage-BUuPrnU0.js +0 -1
- package/dist/chunks/sessionStoragePortable-BI9q2WcJ.js +0 -3
- package/dist/chunks/sink-DG0SNHP7.js +0 -1
- package/dist/chunks/sinks-BTS1DWM4.js +0 -2
- package/dist/chunks/sinks-Cbp-8X1S.js +0 -1
- package/dist/chunks/skillLearning-BHjRTDJw.js +0 -1
- package/dist/chunks/skillLearning-By7jxHSI.js +0 -1
- package/dist/chunks/teamHelpers-CKBoDEPj.js +0 -1
- package/dist/chunks/teammateModeSnapshot-BfOLEMKn.js +0 -1
- package/dist/chunks/thinkback-B0OSwcPG.js +0 -1
- package/dist/chunks/toolPool-DqemSx_r.js +0 -1
- package/dist/chunks/undercover-B-R6dhHB.js +0 -1
- package/dist/chunks/upgrade-CCrHxXrm.js +0 -1
- package/dist/chunks/utils-C-vk0zpl.js +0 -1
- package/dist/chunks/voiceModeEnabled-JSBux8GA.js +0 -1
- package/dist/chunks/voiceStreamSTT-D9ER6Ml3.js +0 -1
- package/dist/chunks/worktree-Dv0mPuy_.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{Ac as t,Ka as n,Pc as r,Sc as i,lo as a,oo as o}from"./paths-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Ac as t,Ka as n,Pc as r,Sc as i,lo as a,oo as o}from"./paths-D8Fx3kUi.js";import{n as s,r as c}from"./analytics-DqMQntaB.js";import{SA as l,aT as u,oT as d,vA as f}from"./loadAgentsDir-HZ19tmOZ.js";import{n as p,r as m}from"./voiceModeEnabled-if9dV1bW.js";import{n as h,t as g}from"./useVoice-B5DQ5Tay.js";var _,v;e((()=>{g(),d(),s(),t(),f(),o(),p(),_=2,v=async e=>{if(!m())return{type:`text`,value:`Voice mode is not available.`};let t=n(),o=t.voiceEnabled===!0,s=e?.trim().toLowerCase();if(o&&s===`doubao`)return a(`userSettings`,{voiceProvider:`doubao`}).error?{type:`text`,value:`Failed to update settings. Check your settings file for syntax errors.`}:(l.notifyChange(`userSettings`),{type:`text`,value:`Voice mode switched to Doubao ASR. Hold ${u(`voice:pushToTalk`,`Chat`,`Space`)} to record.`});if(o&&s===`anthropic`)return a(`userSettings`,{voiceProvider:`anthropic`}).error?{type:`text`,value:`Failed to update settings. Check your settings file for syntax errors.`}:(l.notifyChange(`userSettings`),{type:`text`,value:`Voice mode switched to Anthropic STT. Hold ${u(`voice:pushToTalk`,`Chat`,`Space`)} to record.`});if(o)return a(`userSettings`,{voiceEnabled:!1}).error?{type:`text`,value:`Failed to update settings. Check your settings file for syntax errors.`}:(l.notifyChange(`userSettings`),c(`tengu_voice_toggled`,{enabled:!1}),{type:`text`,value:`Voice mode disabled.`});let d=s===`doubao`?`doubao`:`anthropic`,{isVoiceStreamAvailable:f}=await import(`./voiceStreamSTT-yvcTWD7i.js`),{checkRecordingAvailability:p}=await import(`./voice-DXiiy8HX.js`),g=await p();if(!g.available)return{type:`text`,value:g.reason??`Voice mode is not available in this environment.`};if(d!==`doubao`&&!f())return{type:`text`,value:`Voice mode requires a Claude.ai account. Please run /login to sign in.`};let{checkVoiceDependencies:v,requestMicrophonePermission:y}=await import(`./voice-DXiiy8HX.js`),b=await v();if(!b.available)return{type:`text`,value:`No audio recording tool found.${b.installCommand?`\nInstall audio recording tools? Run: ${b.installCommand}`:`
|
|
2
2
|
Install SoX manually for audio recording.`}`};if(!await y()){let e;return e=process.platform===`win32`?`Settings → Privacy → Microphone`:process.platform===`linux`?`your system's audio settings`:`System Settings → Privacy & Security → Microphone`,{type:`text`,value:`Microphone access is denied. To enable it, go to ${e}, then run /voice again.`}}if(a(`userSettings`,{voiceEnabled:!0,...d===`doubao`?{voiceProvider:`doubao`}:{}}).error)return{type:`text`,value:`Failed to update settings. Check your settings file for syntax errors.`};l.notifyChange(`userSettings`),c(`tengu_voice_toggled`,{enabled:!0});let x=u(`voice:pushToTalk`,`Chat`,`Space`),S=``,C=d===`doubao`?`Doubao ASR`:`Anthropic`;if(d!==`doubao`){let e=h(t.language),n=i(),a=n.voiceLangHintLastLanguage!==e.code,o=a?0:n.voiceLangHintShownCount??0,s=!e.fellBackFrom&&o<_;e.fellBackFrom?S=` Note: "${e.fellBackFrom}" is not a supported dictation language; using English. Change it via /config.`:s&&(S=` Dictation language: ${e.code} (/config to change).`),(a||s)&&r(t=>({...t,voiceLangHintShownCount:o+ +!!s,voiceLangHintLastLanguage:e.code}))}return{type:`text`,value:`Voice mode enabled (${C}). Hold ${x} to record.${S}`}}}))();export{v as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,n}from"./voiceModeEnabled-if9dV1bW.js";n();export{t as isVoiceGrowthBookEnabled,e as isVoiceModeEnabled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{Jt as t,S as n,_ as r,cn as i,on as a}from"./paths-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Jt as t,S as n,_ as r,cn as i,on as a}from"./paths-D8Fx3kUi.js";function o(){return!r(`tengu_amber_quartz_disabled`,!1)}function s(){return i()?!!t()?.accessToken:!1}function c(){return s()&&o()}function l(){return o()}var u=e((()=>{n(),a()}));export{c as a,o as i,u as n,l as r,s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,r as n}from"./wrapper-D5qL1aQL.js";import{Jt as r,Pt as i,S as a,St as o,_ as s,cn as c,on as l,wt as u}from"./paths-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,r as n}from"./wrapper-D5qL1aQL.js";import{Jt as r,Pt as i,S as a,St as o,_ as s,cn as c,on as l,wt as u}from"./paths-D8Fx3kUi.js";import{E as d,T as f,d as p,s as m,w as h}from"./debug-UI3T040K.js";import{l as g,u as _}from"./oauth-CdZEzMww.js";import{o as v,s as y}from"./log-CzsijfHZ.js";import{c as b,g as x,h as S,l as C,u as w}from"./proxy-CfZp-wce.js";function T(){if(!c())return!1;let e=r();return e!==null&&e.accessToken!==null}async function E(e,t){await i();let a=r();if(!a?.accessToken)return p(`[voice_stream] No OAuth token available`),null;let c=process.env.VOICE_STREAM_BASE_URL||g().BASE_API_URL.replace(`https://`,`wss://`).replace(`http://`,`ws://`);process.env.VOICE_STREAM_BASE_URL&&p(`[voice_stream] Using VOICE_STREAM_BASE_URL override: ${process.env.VOICE_STREAM_BASE_URL}`);let l=new URLSearchParams({encoding:`linear16`,sample_rate:`16000`,channels:`1`,endpointing_ms:`300`,utterance_end_ms:`1000`,language:t?.language??`en`}),u=s(`tengu_cobalt_frost`,!1);if(u&&(l.set(`use_conversation_engine`,`true`),l.set(`stt_provider`,`deepgram-nova3`),p(`[voice_stream] Nova 3 gate enabled (tengu_cobalt_frost)`)),t?.keyterms?.length)for(let e of t.keyterms)l.append(`keyterms`,e);let m=`${c}${k}?${l.toString()}`;p(`[voice_stream] Connecting to ${m}`);let h={Authorization:`Bearer ${a.accessToken}`,"User-Agent":o(),"x-app":`cli`},_=S(),v=new n(m,typeof Bun<`u`?{headers:h,proxy:C(m),tls:_||void 0}:{headers:h,agent:b(m),..._}),x=null,w=!1,T=!1,E=!1,M=!1,N=null,P=null,F={send(e){if(v.readyState===n.OPEN){if(T){p(`[voice_stream] Dropping audio chunk after CloseStream: ${String(e.length)} bytes`);return}p(`[voice_stream] Sending audio chunk: ${String(e.length)} bytes`),v.send(Buffer.from(e))}},finalize(){return E||T?Promise.resolve(`ws_already_closed`):(E=!0,new Promise(t=>{let r=setTimeout(()=>N?.(`safety_timeout`),j.safety),i=setTimeout(()=>N?.(`no_data_timeout`),j.noData);if(P=()=>{clearTimeout(i),P=null},N=n=>{if(clearTimeout(r),clearTimeout(i),N=null,P=null,I){p(`[voice_stream] Promoting unreported interim before ${n} resolve`);let t=I;I=``,e.onTranscript(t,!0)}p(`[voice_stream] Finalize resolved via ${n}`),t(n)},v.readyState===n.CLOSED||v.readyState===n.CLOSING){N(`ws_already_closed`);return}setTimeout(()=>{T=!0,v.readyState===n.OPEN&&(p(`[voice_stream] Sending CloseStream (finalize)`),v.send(O))},0)}))},close(){T=!0,x&&(clearInterval(x),x=null),w=!1,v.readyState===n.OPEN&&v.close()},isConnected(){return w&&v.readyState===n.OPEN}};v.on(`open`,()=>{p(`[voice_stream] WebSocket connected`),w=!0,p(`[voice_stream] Sending initial KeepAlive`),v.send(D),x=setInterval(e=>{e.readyState===n.OPEN&&(p(`[voice_stream] Sending periodic KeepAlive`),e.send(D))},A,v),e.onReady(F)});let I=``;return v.on(`message`,t=>{let n=t.toString();p(`[voice_stream] Message received (${String(n.length)} chars): ${n.slice(0,200)}`);let r;try{r=f(n)}catch{return}switch(r.type){case`TranscriptText`:{let t=r.data;if(p(`[voice_stream] TranscriptText: "${t??``}"`),T&&P?.(),t){if(!u&&I){let n=I.trimStart(),r=t.trimStart();n&&r&&!r.startsWith(n)&&!n.startsWith(r)&&(p(`[voice_stream] Auto-finalizing previous segment (new segment detected): "${I}"`),e.onTranscript(I,!0))}I=t,e.onTranscript(t,!1)}break}case`TranscriptEndpoint`:{p(`[voice_stream] TranscriptEndpoint received, lastTranscriptText="${I}"`);let t=I;I=``,t&&e.onTranscript(t,!0),T&&N?.(`post_closestream_endpoint`);break}case`TranscriptError`:{let t=r.description??r.error_code??`unknown transcription error`;p(`[voice_stream] TranscriptError: ${t}`),E||e.onError(t);break}case`error`:{let t=r.message??d(r);p(`[voice_stream] Server error: ${t}`),E||e.onError(t);break}default:break}}),v.on(`close`,(t,n)=>{let r=n?.toString()??``;if(p(`[voice_stream] WebSocket closed: code=${String(t)} reason="${r}"`),w=!1,x&&(clearInterval(x),x=null),I){p(`[voice_stream] Promoting unreported interim transcript to final on close`);let t=I;I=``,e.onTranscript(t,!0)}N?.(`ws_close`),!E&&!M&&t!==1e3&&t!==1005&&e.onError(`Connection closed: code ${String(t)}${r?` — ${r}`:``}`),e.onClose()}),v.on(`unexpected-response`,(t,n)=>{let r=n.statusCode??0;if(r===101){p(`[voice_stream] unexpected-response fired with 101; ignoring`);return}p(`[voice_stream] Upgrade rejected: status=${String(r)} cf-mitigated=${String(n.headers[`cf-mitigated`])} cf-ray=${String(n.headers[`cf-ray`])}`),M=!0,n.resume(),t.destroy(),!E&&e.onError(`WebSocket upgrade rejected with HTTP ${String(r)}`,{fatal:r>=400&&r<500})}),v.on(`error`,t=>{y(t),p(`[voice_stream] WebSocket error: ${t.message}`),E||e.onError(`Voice stream connection error: ${t.message}`)}),F}var D,O,k,A,j,M=e((()=>{t(),_(),l(),m(),u(),v(),x(),w(),h(),a(),D=`{"type":"KeepAlive"}`,O=`{"type":"CloseStream"}`,k=`/api/ws/speech_to_text/voice_stream`,A=8e3,j={safety:5e3,noData:1500}}));export{T as i,E as n,M as r,j as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,r as t}from"./voiceStreamSTT-CWhKAxcp.js";t();export{e as isVoiceStreamAvailable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jt as e,on as t}from"./paths-
|
|
1
|
+
import{Jt as e,on as t}from"./paths-D8Fx3kUi.js";import{L as n,V as r}from"./debug-UI3T040K.js";import{o as i,t as a}from"./bridgeMain-B0fLyOLC.js";import{resolve as o}from"path";t(),r();var s=78,c=1;async function l(e){if(!e){console.error(`Error: --daemon-worker requires a worker kind`),process.exitCode=s;return}switch(e){case`remoteControl`:await u();break;default:console.error(`Error: unknown daemon worker kind '${e}'`),process.exitCode=s}}async function u(){let t=process.env.DAEMON_WORKER_DIR||o(`.`),r=process.env.DAEMON_WORKER_NAME||void 0,l=process.env.DAEMON_WORKER_SPAWN_MODE||`same-dir`,u=parseInt(process.env.DAEMON_WORKER_CAPACITY||`4`,10),d=process.env.DAEMON_WORKER_PERMISSION||void 0,f=process.env.DAEMON_WORKER_SANDBOX===`1`,p=process.env.DAEMON_WORKER_TIMEOUT_MS?parseInt(process.env.DAEMON_WORKER_TIMEOUT_MS,10):void 0,m=process.env.DAEMON_WORKER_CREATE_SESSION!==`0`,h=new AbortController,g=()=>h.abort();process.on(`SIGTERM`,g),process.on(`SIGINT`,g);let _={dir:t,name:r,spawnMode:l,capacity:u,permissionMode:d,sandbox:f,sessionTimeoutMs:p,createSessionOnStart:m,getAccessToken:()=>e()?.accessToken,onAuth401:async t=>!!e()?.accessToken,log:e=>{console.log(`[remoteControl] ${e}`)}};try{await i(_,h.signal)}catch(e){e instanceof a?(console.error(`[remoteControl] permanent error: ${e.message}`),process.exitCode=s):(console.error(`[remoteControl] transient error: ${n(e)}`),process.exitCode=c)}finally{process.off(`SIGTERM`,g),process.off(`SIGINT`,g)}}export{l as runDaemonWorker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{wt as e,yt as t}from"./loadAgentsDir-HZ19tmOZ.js";e();export{t as execIntoTmuxWorktree};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{ds as t,no as n,oo as r,xs as i}from"./paths-
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{ds as t,no as n,oo as r,xs as i}from"./paths-D8Fx3kUi.js";function a(e){d.set(e.name,e)}function o(e){return e.endsWith(`@${f}`)}function s(e){return d.get(e)}function c(){let e=n(),t=[],r=[];for(let[n,i]of d){if(i.isAvailable&&!i.isAvailable())continue;let a=`${n}@${f}`,o=e?.enabledPlugins?.[a],s=o===void 0?i.defaultEnabled??!0:o===!0,c={name:n,manifest:{name:n,description:i.description,version:i.version},path:f,source:a,repository:a,enabled:s,isBuiltin:!0,hooksConfig:i.hooks,mcpServers:i.mcpServers};s?t.push(c):r.push(c)}return{enabled:t,disabled:r}}function l(){let{enabled:e}=c(),t=[];for(let n of e){let e=d.get(n.name);if(e?.skills)for(let n of e.skills)t.push(u(n))}return t}function u(e){return{type:`prompt`,name:e.name,description:e.description,hasUserSpecifiedDescription:!0,allowedTools:e.allowedTools??[],argumentHint:e.argumentHint,whenToUse:e.whenToUse,model:e.model,disableModelInvocation:e.disableModelInvocation??!1,userInvocable:e.userInvocable??!0,contentLength:0,source:`bundled`,loadedFrom:`bundled`,hooks:e.hooks,context:e.context,agent:e.agent,isEnabled:e.isEnabled??(()=>!0),isHidden:!(e.userInvocable??!0),progressMessage:`running`,getPromptForCommand:e.getPromptForCommand}}var d,f,p=e((()=>{r(),d=new Map,f=`builtin`}));function m(e){if(e.includes(`@`)){let t=e.split(`@`);return{name:t[0]||``,marketplace:t[1]}}return{name:e}}function h(e){return e!==void 0&&t.has(e.toLowerCase())}function g(e){if(e===`managed`)throw Error(`Cannot install plugins to managed scope`);return y[e]}function _(e){return v[e]}var v,y,b=e((()=>{i(),v={policySettings:`managed`,userSettings:`user`,projectSettings:`project`,localSettings:`local`,flagSettings:`flag`},y={user:`userSettings`,project:`projectSettings`,local:`localSettings`}}));function x(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function S(e){return x(e).replace(/"/g,`"`).replace(/'/g,`'`)}var C=e((()=>{}));export{h as a,_ as c,l as d,c as f,a as h,b as i,f as l,o as m,S as n,m as o,p,C as r,g as s,x as t,s as u};
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import{s as e,u as t}from"./chunks/envUtils-BWeoiL4Y.js";var n=globalThis.performance,r=new Map,i=new Map;function a(){return n.now()}function o(e){return r.set(e,a()),{name:e,entryType:`mark`,startTime:r.get(e),duration:0}}function s(e,t,n){let o,s;if(typeof t==`string`){let e=r.get(t),i=n?r.get(n):a();o=e??a(),s=(i??a())-o}else t&&typeof t==`object`?(o=t.start??0,s=(t.end??a())-o):(o=0,s=a());i.set(e,{name:e,startTime:o,duration:s})}function c(e){return e===`mark`?[...r.entries()].map(([e,t])=>({name:e,entryType:`mark`,startTime:t,duration:0})):e===`measure`?[...i.values()].map(e=>({name:e.name,entryType:`measure`,startTime:e.startTime,duration:e.duration})):[]}function l(e,t){return c(t??`mark`).concat(t===void 0?c(`measure`):[]).filter(t=>t.name===e)}function u(e){e===void 0?r.clear():r.delete(e)}function d(e){e===void 0?i.clear():i.delete(e)}var f={now:a,mark:o,measure:s,getEntriesByType:c,getEntriesByName:l,clearMarks:u,clearMeasures:d,clearResourceTimings:(()=>{}),setResourceTimingBufferSize:(()=>{}),markResourceTiming:(()=>{}),get timeOrigin(){return n.timeOrigin},get onresourcetimingbufferfull(){return n.onresourcetimingbufferfull},set onresourcetimingbufferfull(e){},toJSON(){return n.toJSON()}};function p(){globalThis.__performanceShimInstalled||(globalThis.__performanceShimInstalled=!0,globalThis.performance=f)}if(p(),e(),globalThis.MACRO===void 0&&(globalThis.MACRO={VERSION:process.env.CLAUDE_CODE_VERSION||`2.1.888`,BUILD_TIME:new Date().toISOString(),FEEDBACK_CHANNEL:``,ISSUES_EXPLAINER:``,NATIVE_PACKAGE_URL:``,PACKAGE_URL:``,VERSION_CHANGELOG:``}),t(process.env.CLAUDE_CODE_FORCE_INTERACTIVE)){for(let e of[process.stdin,process.stdout,process.stderr])if(!e.isTTY)try{Object.defineProperty(e,`isTTY`,{value:!0,configurable:!0})}catch{}}if(process.env.COREPACK_ENABLE_AUTO_PIN=`0`,process.env.CLAUDE_CODE_REMOTE===`true`){let e=process.env.NODE_OPTIONS||``;process.env.NODE_OPTIONS=e?`${e} --max-old-space-size=8192`:`--max-old-space-size=8192`}async function m(){let e=process.argv.slice(2);if(e.length===1&&(e[0]===`--version`||e[0]===`-v`||e[0]===`-V`)){console.log(`2.6.
|
|
2
|
+
import{s as e,u as t}from"./chunks/envUtils-BWeoiL4Y.js";var n=globalThis.performance,r=new Map,i=new Map;function a(){return n.now()}function o(e){return r.set(e,a()),{name:e,entryType:`mark`,startTime:r.get(e),duration:0}}function s(e,t,n){let o,s;if(typeof t==`string`){let e=r.get(t),i=n?r.get(n):a();o=e??a(),s=(i??a())-o}else t&&typeof t==`object`?(o=t.start??0,s=(t.end??a())-o):(o=0,s=a());i.set(e,{name:e,startTime:o,duration:s})}function c(e){return e===`mark`?[...r.entries()].map(([e,t])=>({name:e,entryType:`mark`,startTime:t,duration:0})):e===`measure`?[...i.values()].map(e=>({name:e.name,entryType:`measure`,startTime:e.startTime,duration:e.duration})):[]}function l(e,t){return c(t??`mark`).concat(t===void 0?c(`measure`):[]).filter(t=>t.name===e)}function u(e){e===void 0?r.clear():r.delete(e)}function d(e){e===void 0?i.clear():i.delete(e)}var f={now:a,mark:o,measure:s,getEntriesByType:c,getEntriesByName:l,clearMarks:u,clearMeasures:d,clearResourceTimings:(()=>{}),setResourceTimingBufferSize:(()=>{}),markResourceTiming:(()=>{}),get timeOrigin(){return n.timeOrigin},get onresourcetimingbufferfull(){return n.onresourcetimingbufferfull},set onresourcetimingbufferfull(e){},toJSON(){return n.toJSON()}};function p(){globalThis.__performanceShimInstalled||(globalThis.__performanceShimInstalled=!0,globalThis.performance=f)}if(p(),e(),globalThis.MACRO===void 0&&(globalThis.MACRO={VERSION:process.env.CLAUDE_CODE_VERSION||`2.1.888`,BUILD_TIME:new Date().toISOString(),FEEDBACK_CHANNEL:``,ISSUES_EXPLAINER:``,NATIVE_PACKAGE_URL:``,PACKAGE_URL:``,VERSION_CHANGELOG:``}),t(process.env.CLAUDE_CODE_FORCE_INTERACTIVE)){for(let e of[process.stdin,process.stdout,process.stderr])if(!e.isTTY)try{Object.defineProperty(e,`isTTY`,{value:!0,configurable:!0})}catch{}}if(process.env.COREPACK_ENABLE_AUTO_PIN=`0`,process.env.CLAUDE_CODE_REMOTE===`true`){let e=process.env.NODE_OPTIONS||``;process.env.NODE_OPTIONS=e?`${e} --max-old-space-size=8192`:`--max-old-space-size=8192`}async function m(){let e=process.argv.slice(2);if(e.length===1&&(e[0]===`--version`||e[0]===`-v`||e[0]===`-V`)){console.log(`2.6.10 (Claude Code)`);return}let{profileCheckpoint:t}=await import(`./chunks/startupProfiler-SOE--nM9.js`);if(t(`cli_entry`),process.argv[2]===`--claude-in-chrome-mcp`){t(`cli_claude_in_chrome_mcp_path`);let{runClaudeInChromeMcpServer:e}=await import(`./chunks/mcpServer-Do9XTs2J.js`);await e();return}else if(process.argv[2]===`--chrome-native-host`){t(`cli_chrome_native_host_path`);let{runChromeNativeHost:e}=await import(`./chunks/chromeNativeHost-4U39yLtd.js`);await e();return}else if(process.argv[2]===`--computer-use-mcp`){t(`cli_computer_use_mcp_path`);let{runComputerUseMcpServer:e}=await import(`./chunks/mcpServer-DcSto-Od.js`);await e();return}if(process.argv[2]===`--acp`){t(`cli_acp_path`);let{runAcpAgent:e}=await import(`./chunks/entry-BoXZIfxW.js`);await e();return}if(e[0]===`weixin`){t(`cli_weixin_path`);let{handleWeixinCli:n}=await import(`./chunks/src-BIPP3_mo.js`),{enableConfigs:r}=await import(`./chunks/config-DnWYFpDc.js`),{initializeAnalyticsSink:i}=await import(`./chunks/sink-BdRlnpoG.js`),{shutdownDatadog:a}=await import(`./chunks/datadog-B5oHSyS1.js`),{shutdown1PEventLogging:o}=await import(`./chunks/firstPartyEventLogger-CozFbFD9.js`),{logForDebugging:s}=await import(`./chunks/debug-DM5ezCBS.js`),{ChannelPermissionRequestNotificationSchema:c}=await import(`./chunks/channelNotification-CLYOd2-R.js`);await n(e.slice(1),{enableConfigs:r,initializeAnalyticsSink:i,shutdownDatadog:a,shutdown1PEventLogging:o,logForDebugging:s,registerPermissionHandler(e,t){e.setNotificationHandler(c(),async e=>t(e.params))}},`2.6.10`);return}if(e[0]===`--daemon-worker`||e[0]?.startsWith(`--daemon-worker=`)){let t=e[0]===`--daemon-worker`?e[1]:e[0].split(`=`)[1],{runDaemonWorker:n}=await import(`./chunks/workerRegistry-BANOcuS2.js`);await n(t);return}if(e[0]===`remote-control`||e[0]===`rc`||e[0]===`remote`||e[0]===`sync`||e[0]===`bridge`){t(`cli_bridge_path`);let{enableConfigs:n}=await import(`./chunks/config-DnWYFpDc.js`);n();let{getBridgeDisabledReason:r,checkBridgeMinVersion:i}=await import(`./chunks/bridgeEnabled-C7AI9y8g.js`),{BRIDGE_LOGIN_ERROR:a}=await import(`./chunks/types-CQ1wrnQ0.js`),{bridgeMain:o}=await import(`./chunks/bridgeMain-DKQ1u3k_.js`),{exitWithError:s}=await import(`./chunks/process-CWupreF6.js`),{getClaudeAIOAuthTokens:c}=await import(`./chunks/auth-CU6ArDos.js`),{getBridgeAccessToken:l}=await import(`./chunks/bridgeConfig-ByjfIoJz.js`);!c()?.accessToken&&!l()&&s(a);let u=await r();u&&s(`Error: ${u}`);let d=i();d&&s(d);let{waitForPolicyLimitsToLoad:f,isPolicyAllowed:p}=await import(`./chunks/policyLimits-Dsz-jkpD.js`);await f(),p(`allow_remote_control`)||s(`Error: Remote Control is disabled by your organization's policy.`),await o(e.slice(1));return}if(e[0]===`daemon`){t(`cli_daemon_path`);let{enableConfigs:n}=await import(`./chunks/config-DnWYFpDc.js`);n();let{setShellIfWindows:r}=await import(`./chunks/windowsPaths-C9CigqoF.js`);r();let{initSinks:i}=await import(`./chunks/sinks-Bn0FK_Ab.js`);i();let{daemonMain:a}=await import(`./chunks/main-C6be1KFk.js`);await a(e.slice(1));return}if(e[0]===`autonomy`){t(`cli_autonomy_path`);let{getAutonomyCommandText:n}=await import(`./chunks/autonomy-CZCZ9wlx.js`),r=await n(e.slice(1).join(` `));await new Promise((e,t)=>{process.stdout.write(`${r}\n`,n=>{if(n){t(n);return}e()})}),process.exit(0)}if(e.includes(`--bg`)||e.includes(`--background`)){t(`cli_daemon_path`);let{enableConfigs:n}=await import(`./chunks/config-DnWYFpDc.js`);n();let{setShellIfWindows:r}=await import(`./chunks/windowsPaths-C9CigqoF.js`);r(),await(await import(`./chunks/bg-Dbh5z3Y8.js`)).handleBgStart(e.filter(e=>e!==`--bg`&&e!==`--background`));return}if(e[0]===`ps`||e[0]===`logs`||e[0]===`attach`||e[0]===`kill`){let n=e[0]===`ps`?`status`:e[0];console.error(`[deprecated] Use: claude daemon ${n}${e[1]?` `+e[1]:``}`),t(`cli_daemon_path`);let{enableConfigs:r}=await import(`./chunks/config-DnWYFpDc.js`);r();let{setShellIfWindows:i}=await import(`./chunks/windowsPaths-C9CigqoF.js`);i();let{initSinks:a}=await import(`./chunks/sinks-Bn0FK_Ab.js`);a();let{daemonMain:o}=await import(`./chunks/main-C6be1KFk.js`);await o([e[0]===`ps`?`status`:e[0],...e.slice(1)]);return}if(e[0]===`job`){t(`cli_templates_path`);let{templatesMain:n}=await import(`./chunks/templateJobs-BM98KAEH.js`);await n(e.slice(1)),process.exit(0)}if(e[0]===`new`||e[0]===`list`||e[0]===`reply`){console.error(`[deprecated] Use: claude job ${e[0]} ${e.slice(1).join(` `)}`.trim()),t(`cli_templates_path`);let{templatesMain:n}=await import(`./chunks/templateJobs-BM98KAEH.js`);await n(e),process.exit(0)}if((e.includes(`--tmux`)||e.includes(`--tmux=classic`))&&(e.includes(`-w`)||e.includes(`--worktree`)||e.some(e=>e.startsWith(`--worktree=`)))){t(`cli_tmux_worktree_fast_path`);let{enableConfigs:n}=await import(`./chunks/config-DnWYFpDc.js`);n();let{isWorktreeModeEnabled:r}=await import(`./chunks/worktreeModeEnabled-THQb19xR.js`);if(r()){let{execIntoTmuxWorktree:t}=await import(`./chunks/worktree-CRn2SbHn.js`),n=await t(e);if(n.handled)return;if(n.error){let{exitWithError:e}=await import(`./chunks/process-CWupreF6.js`);e(n.error)}}}e.length===1&&(e[0]===`--update`||e[0]===`--upgrade`)&&(process.argv=[process.argv[0],process.argv[1],`update`]),e.includes(`--bare`)&&(process.env.CLAUDE_CODE_SIMPLE=`1`);let{startCapturingEarlyInput:n}=await import(`./chunks/earlyInput-JGJo1zcC.js`);n(),t(`cli_before_main_import`);let{main:r}=await import(`./chunks/main-Bv4AvaJk.js`);t(`cli_after_main_import`),await r(),t(`cli_after_main_complete`)}await m();export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-best",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.10",
|
|
4
4
|
"description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "claude-code-best <claude-code-best@proton.me>",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ApproveApiKey-DhsT69v7.js";export{e as ApproveApiKey};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./ClaudeMdExternalIncludesDialog-Dofr1TYr.js";e();export{t as ClaudeMdExternalIncludesDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_y as e,vy as t}from"./loadAgentsDir-DF6FgRn-.js";t();export{e as ConsoleOAuthFlow};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./Doctor-Zd0UaR5d.js";e();export{t as Doctor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./axios-DhfaybwJ.js";import{F as i,Rn as a,b as o,f as s,g as c,h as l,t as u,tt as d,x as f,xt as ee}from"./src-Di342QoJ.js";import{t as p}from"./jsx-runtime-D-D469L8.js";import{cn as m,q as h}from"./state-sIHsFpDu.js";import{F as te,M as g,Pt as _,St as v,bt as y,on as b,wt as x}from"./paths-o5iA-EnQ.js";import{E as S,d as C,s as w,w as T}from"./debug-UI3T040K.js";import{n as E,r as ne}from"./analytics-DqMQntaB.js";import{c as re,f as ie,v as D}from"./git-CN3qtTb_.js";import{a as O,n as k}from"./env-chR0gV31.js";import{d as A,f as ae,i as oe,o as se,s as j}from"./log-CzsijfHZ.js";import{AO as ce,Ar as le,Bx as M,Do as N,Hr as P,Ko as F,LO as I,Lo as L,Tr as R,Uw as z,eC as B,kO as V,nt as H,sr as U,tC as W,tt as ue,zx as de}from"./loadAgentsDir-DF6FgRn-.js";import{X as fe}from"./rcDebugLog-BNojB_eB.js";import{n as pe,t as me}from"./browser-fLRXxIsQ.js";import{t as he}from"./useKeybinding-FsOnjW6T.js";import{readFile as ge,stat as _e}from"fs/promises";function G(e){let t=e;return t=t.replace(/"(sk-ant[^\s"']{24,})"/g,`"[REDACTED_API_KEY]"`),t=t.replace(/(?<![A-Za-z0-9"'])(sk-ant-?[A-Za-z0-9_-]{10,})(?![A-Za-z0-9"'])/g,`[REDACTED_API_KEY]`),t=t.replace(/AWS key: "(AWS[A-Z0-9]{20,})"/g,`AWS key: "[REDACTED_AWS_KEY]"`),t=t.replace(/(AKIA[A-Z0-9]{16})/g,`[REDACTED_AWS_KEY]`),t=t.replace(/(?<![A-Za-z0-9])(AIza[A-Za-z0-9_-]{35})(?![A-Za-z0-9])/g,`[REDACTED_GCP_KEY]`),t=t.replace(/(?<![A-Za-z0-9])([a-z0-9-]+@[a-z0-9-]+\.iam\.gserviceaccount\.com)(?![A-Za-z0-9])/g,`[REDACTED_GCP_SERVICE_ACCOUNT]`),t=t.replace(/(["']?x-api-key["']?\s*[:=]\s*["']?)[^"',\s)}\]]+/gi,`$1[REDACTED_API_KEY]`),t=t.replace(/(["']?authorization["']?\s*[:=]\s*["']?(bearer\s+)?)[^"',\s)}\]]+/gi,`$1[REDACTED_TOKEN]`),t=t.replace(/(AWS[_-][A-Za-z0-9_]+\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,`$1[REDACTED_AWS_VALUE]`),t=t.replace(/(GOOGLE[_-][A-Za-z0-9_]+\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,`$1[REDACTED_GCP_VALUE]`),t=t.replace(/((API[-_]?KEY|TOKEN|SECRET|PASSWORD)\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,`$1[REDACTED]`),t}function K(){return oe().map(e=>{let t={...e};return t&&typeof t.error==`string`&&(t.error=G(t.error)),t})}async function q(){try{let e=R(),{size:t}=await _e(e);return t>52428800?(C(`Skipping raw transcript read: file too large (${t} bytes)`,{level:`warn`}),null):await ge(e,`utf-8`)}catch{return null}}function ve({abortSignal:e,messages:t,initialDescription:n,onDone:r,backgroundTasks:a={}}){let[u,p]=(0,X.useState)(`userInput`),[m,g]=(0,X.useState)(0),[_,v]=(0,X.useState)(n??``),[y,b]=(0,X.useState)(null),[x,S]=(0,X.useState)(null),[C,w]=(0,X.useState)({isGit:!1,gitState:null}),[T,E]=(0,X.useState)(null),D=i().columns-4;(0,X.useEffect)(()=>{async function e(){let e=await ie(),t=null;e&&(t=await re()),w({isGit:e,gitState:t})}e()},[]);let O=(0,X.useCallback)(async()=>{p(`submitting`),S(null),b(null);let n=K(),r=N(t)?.requestId??null,[i,o]=await Promise.all([P(),q()]),s=U(a),c={...i,...s},l={latestAssistantMessageId:r,message_count:t.length,datetime:new Date().toISOString(),description:_,platform:k.platform,gitRepo:C.isGit,terminal:k.terminal,version:`2.6.8`,transcript:F(t),errors:n,lastApiRequest:h(),...Object.keys(c).length>0&&{subagentTranscripts:c},...o&&{rawTranscriptJsonl:o}},[u,d]=await Promise.all([xe(l,e),be(_,e)]);E(d),u.success?(u.feedbackId&&(b(u.feedbackId),ne(`tengu_bug_report_submitted`,{feedback_id:u.feedbackId,last_assistant_message_id:r}),te(`tengu_bug_report_description`,{feedback_id:u.feedbackId,description:G(_)})),p(`done`)):(u.isZdrOrg?S(`Feedback collection is not available for organizations with custom data retention policies.`):S(`Could not submit feedback. Please try again later.`),p(`userInput`))},[_,C.isGit,t]),A=(0,X.useCallback)(()=>{if(u===`done`){r(x?`Error submitting feedback / bug report`:`Feedback / bug report submitted`,{display:`system`});return}r(`Feedback / bug report cancelled`,{display:`system`})},[u,x,r]);return d(`confirm:no`,A,{context:`Settings`,isActive:u===`userInput`}),ee((e,t)=>{if(u===`done`){t.return&&T&&pe(ye(y??``,T,_,K())),r(x?`Error submitting feedback / bug report`:`Feedback / bug report submitted`,{display:`system`});return}if(x&&u!==`userInput`){r(`Error submitting feedback / bug report`,{display:`system`});return}u===`consent`&&(t.return||e===` `)&&O()}),(0,Z.jsxs)(s,{title:`Submit Feedback / Bug Report`,onCancel:A,isCancelActive:u!==`userInput`,inputGuide:e=>e.pending?(0,Z.jsxs)(o,{children:[`Press `,e.keyName,` again to exit`]}):u===`userInput`?(0,Z.jsxs)(l,{children:[(0,Z.jsx)(c,{shortcut:`Enter`,action:`continue`}),(0,Z.jsx)(B,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]}):u===`consent`?(0,Z.jsxs)(l,{children:[(0,Z.jsx)(c,{shortcut:`Enter`,action:`submit`}),(0,Z.jsx)(B,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]}):null,children:[u===`userInput`&&(0,Z.jsxs)(f,{flexDirection:`column`,gap:1,children:[(0,Z.jsx)(o,{children:`Describe the issue below:`}),(0,Z.jsx)(de,{value:_,onChange:e=>{v(e),x&&S(null)},columns:D,onSubmit:()=>p(`consent`),onExitMessage:()=>r(`Feedback cancelled`,{display:`system`}),cursorOffset:m,onChangeCursorOffset:g,showCursor:!0}),x&&(0,Z.jsxs)(f,{flexDirection:`column`,gap:1,children:[(0,Z.jsx)(o,{color:`error`,children:x}),(0,Z.jsx)(o,{dimColor:!0,children:`Edit and press Enter to retry, or Esc to cancel`})]})]}),u===`consent`&&(0,Z.jsxs)(f,{flexDirection:`column`,children:[(0,Z.jsx)(o,{children:`This report will include:`}),(0,Z.jsxs)(f,{marginLeft:2,flexDirection:`column`,children:[(0,Z.jsxs)(o,{children:[`- Your feedback / bug description: `,(0,Z.jsx)(o,{dimColor:!0,children:_})]}),(0,Z.jsxs)(o,{children:[`- Environment info:`,` `,(0,Z.jsxs)(o,{dimColor:!0,children:[k.platform,`, `,k.terminal,`, v`,`2.6.8`]})]}),C.gitState&&(0,Z.jsxs)(o,{children:[`- Git repo metadata:`,` `,(0,Z.jsxs)(o,{dimColor:!0,children:[C.gitState.branchName,C.gitState.commitHash?`, ${C.gitState.commitHash.slice(0,7)}`:``,C.gitState.remoteUrl?` @ ${C.gitState.remoteUrl}`:``,!C.gitState.isHeadOnRemote&&`, not synced`,!C.gitState.isClean&&`, has local changes`]})]}),(0,Z.jsx)(o,{children:`- Current session transcript`})]}),(0,Z.jsx)(f,{marginTop:1,children:(0,Z.jsx)(o,{wrap:`wrap`,dimColor:!0,children:`We will use your feedback to debug related issues or to improve Claude Code's functionality (eg. to reduce the risk of bugs occurring in the future).`})}),(0,Z.jsx)(f,{marginTop:1,children:(0,Z.jsxs)(o,{children:[`Press `,(0,Z.jsx)(o,{bold:!0,children:`Enter`}),` to confirm and submit.`]})})]}),u===`submitting`&&(0,Z.jsx)(f,{flexDirection:`row`,gap:1,children:(0,Z.jsx)(o,{children:`Submitting report…`})}),u===`done`&&(0,Z.jsxs)(f,{flexDirection:`column`,children:[x?(0,Z.jsx)(o,{color:`error`,children:x}):(0,Z.jsx)(o,{color:`success`,children:`Thank you for your report!`}),y&&(0,Z.jsxs)(o,{dimColor:!0,children:[`Feedback ID: `,y]}),(0,Z.jsxs)(f,{marginTop:1,children:[(0,Z.jsx)(o,{children:`Press `}),(0,Z.jsx)(o,{bold:!0,children:`Enter `}),(0,Z.jsx)(o,{children:`to open your browser and draft a GitHub issue, or any other key to close.`})]})]})]})}function ye(e,t,n,r){let i=G(t),a=`**Bug Description**\n${G(n)}\n\n**Environment Info**\n- Platform: ${k.platform}\n- Terminal: ${k.terminal}\n- Version: 2.6.8\n- Feedback ID: ${e}\n\n**Errors**\n\`\`\`json\n`,o=S(r),s=`${$}/new?title=${encodeURIComponent(i)}&labels=user-reported,bug&body=`,c=encodeURIComponent(a),l=encodeURIComponent(o),u=Q-s.length-c.length-15-46;if(u<=0){let e=Q-s.length-9-46-50,t=a+o+"\n```\n",n=encodeURIComponent(t);if(n.length>e){n=n.slice(0,e);let t=n.lastIndexOf(`%`);t>=n.length-2&&(n=n.slice(0,t))}return s+n+`%E2%80%A6%0A**Note%3A**%20Content%20was%20truncated.%0A`}if(l.length<=u)return s+c+l+`%0A%60%60%60%0A`;let d=l.slice(0,u-9-50),f=d.lastIndexOf(`%`);return f>=d.length-2&&(d=d.slice(0,f)),s+c+d+`%E2%80%A6%0A%60%60%60%0A%0A**Note%3A**%20Content%20was%20truncated.%0A`}async function be(e,t){try{let n=(await H({systemPrompt:fe([`Generate a concise, technical issue title (max 80 chars) for a public GitHub issue based on this bug report for Claude Code.`,`Claude Code is an agentic coding CLI based on the Anthropic API.`,`The title should:`,`- Include the type of issue [Bug] or [Feature Request] as the first thing in the title`,`- Be concise, specific and descriptive of the actual problem`,`- Use technical terminology appropriate for a software issue`,`- For error messages, extract the key error (e.g., "Missing Tool Result Block" rather than the full message)`,`- Be direct and clear for developers to understand the problem`,`- If you cannot determine a clear issue, use "Bug Report: [brief description]"`,`- Any LLM API errors are from the Anthropic API, not from any other model provider`,`Your response will be directly used as the title of the Github issue, and as such should not contain any other commentary or explaination`,`Examples of good titles include: "[Bug] Auto-Compact triggers to soon", "[Bug] Anthropic API Error: Missing Tool Result Block", "[Bug] Error: Invalid Model Name for Opus"`]),userPrompt:e,signal:t,options:{hasAppendSystemPrompt:!1,toolChoice:void 0,isNonInteractiveSession:!1,agents:[],querySource:`feedback`,mcpTools:[]}}))?.message?.content?.[0],r=n?.type===`text`?n.text:`Bug Report`;return ce(r)?J(e):r}catch(t){return j(t),J(e)}}function J(e){let t=e.split(`
|
|
2
|
-
`)[0]||``;if(t.length<=60&&t.length>5)return t;let n=t.slice(0,60);if(t.length>60){let e=n.lastIndexOf(` `);e>30&&(n=n.slice(0,e)),n+=`...`}return n.length<10?`Bug Report`:n}function Y(e){if(e instanceof Error){let t=Error(G(e.message));e.stack&&(t.stack=G(e.stack)),j(t)}else{let t=G(String(e));j(Error(t))}}async function xe(e,t){if(ae())return{success:!1};try{await _();let r=y();if(r.error)return{success:!1};let i={"Content-Type":`application/json`,"User-Agent":v(),...r.headers},a=await n.post(`https://api.anthropic.com/api/claude_cli_feedback`,{content:S(e)},{headers:i,timeout:3e4,signal:t});if(a.status===200){let e=a.data;return e?.feedback_id?{success:!0,feedbackId:e.feedback_id}:(Y(Error(`Failed to submit feedback: request did not return feedback_id`)),{success:!1})}return Y(Error(`Failed to submit feedback:`+a.status)),{success:!1}}catch(e){if(n.isCancel(e))return{success:!1};if(n.isAxiosError(e)&&e.response?.status===403){let t=e.response.data;if(t?.error?.type===`permission_error`&&t?.error?.message?.includes(`Custom data retention settings`))return Y(Error(`Cannot submit feedback because custom data retention settings are enabled`)),{success:!1,isZdrOrg:!0}}return Y(e),{success:!1}}}var X,Z,Q,$,Se=e((()=>{r(),a(),X=t(a(),1),m(),g(),E(),L(),z(),u(),he(),ue(),V(),b(),me(),w(),O(),D(),x(),se(),A(),le(),T(),I(),W(),M(),Z=p(),Q=7250,$=process.env.USER_TYPE===`ant`?`https://github.com/anthropics/claude-cli-internal/issues`:`https://github.com/anthropics/claude-code/issues`}));export{Se as n,G as r,ve as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./Grove-TYf1glGP.js";e();export{t as GroveDialog};
|
|
@@ -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-o5iA-EnQ.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-CzsijfHZ.js";import{b as N,x as re}from"./teammate-DMYOtLTK.js";import{C as ie,g as ae,x as oe}from"./startupProfiler-DnXZaX4A.js";import{BO as se,Dc as P,Ec as ce,Eo as F,GE as le,KE as ue,LS as de,Lo as I,Nx as fe,Px as pe,RO as L,RS as me,Rc as R,So as z,Sy as B,Ui as he,Uo as ge,Uw as _e,VO as ve,Vi as ye,Vo as be,Xi as xe,_o as Se,aC as Ce,an as we,bo as V,by as Te,ey as Ee,fo as De,hn as Oe,iu as H,kc as ke,la as Ae,nu as je,ny as Me,os as Ne,sC as Pe,sy as Fe,ty as Ie,yn as Le,zc as Re,zo as ze}from"./loadAgentsDir-DF6FgRn-.js";import{E as Be,T as Ve,c as He,d as Ue,w as We}from"./sessionTracing-Cy5dAplG.js";import{t as Ge}from"./useKeybinding-FsOnjW6T.js";import{l as Ke,u as qe}from"./referral-BADm5sBf.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(),oe(),w(),S(),x(),se(),We(),le(),Ce(),He(),je(),R(),ke(),Ne(),I(),xe(),Le(),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:[V({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:[V({content:e,uuid:i,permissionMode:a,isMeta:o||void 0}),...r],shouldQuery:!0}}E(),I();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;n===`prompt`&&v!==null&&!h&&c?.(v),H(`query_process_user_input_base_start`);let y=i.getAppState(),b=await ot(e,n,r,i,a,o,s,l,u,d,f,y.toolPermissionContext.mode,p,m,h,g,t,_);if(H(`query_process_user_input_base_end`),!b.shouldQuery)return b;H(`query_hooks_start`);let x=F(e)||``;for await(let t of we(x,y.toolPermissionContext.mode,i,i.requestPrompt))if(t.message?.type!==`progress`){if(t.blockingError)return{messages:[Se(`${Oe(t.blockingError)}\n\nOriginal prompt: ${e}`,`warning`)],shouldQuery:!1,allowedTools:b.allowedTools};if(t.preventContinuation){let e=t.stopReason?`Operation stopped by hook: ${t.stopReason}`:`Operation stopped by hook`;return b.messages.push(V({content:e})),b.shouldQuery=!1,b}if(t.additionalContexts&&t.additionalContexts.length>0&&b.messages.push(ce({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;b.messages.push({...t.message,attachment:{...t.message.attachment,content:at(t.message.attachment.content)}});break;default:b.messages.push(t.message);break}}return H(`query_hooks_end`),b}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 ve(n);if(e.dimensions){let t=L(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(Re):[],C=S.map(e=>e.id),w=i?await Pe(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 ve(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=L(e.dimensions,n);t&&b.push(t)}else if(t){let e=L(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?ye(e.commandName,r.options.commands):void 0;if(t){let n=he(t,e?.args??``);if(n.ok)O=!1;else{let e=n.reason??`/${Ae(t)} isn't available over Remote Control.`;return{messages:[V({content:v,uuid:s}),De(`<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-DIk_hLHW.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 ue(P(v,r,a??null,[],o,l)):[];if(H(`query_attachment_loading_end`),v!==null&&t===`bash`){let{processBashCommand:e}=await import(`./processBashCommand-CkqKsBSD.js`);return J(await e(v,y,A,r,n),b)}if(v!==null&&!O&&v.startsWith(`/`)){let{processSlashCommand:e}=await import(`./processSlashCommand-DIk_hLHW.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(V({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.6.8`,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:()=>ut,messagesAfterAreOnlySynthetic:()=>_t,selectableUserMessagesFilter:()=>Z});function Y(e){return e.type===`text`}function X(e){return e===`summarize`||e===`summarize_up_to`}function ut({messages:e,onPreRestore:t,onRestoreMessage:n,onRestoreCode:r,onSummarize:a,onClose:o,preselectedMessage:u}){let p=me(e=>e.fileHistory),[m,h]=(0,Q.useState)(void 0),g=Ie(),_=(0,Q.useMemo)(W,[]),v=(0,Q.useMemo)(()=>[...e.filter(Z),{...V({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 Me(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 oe(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 se(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 P(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 se(t);return}let r=await Me(p,t.uuid);w(t),E(r)}async function ce(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(X(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 F=qe(),le=(0,Q.useCallback)(()=>{if(C&&!u){w(void 0);return}D(`tengu_message_selector_cancelled`,{}),o()},[o,C,u]),ue=(0,Q.useCallback)(()=>b(e=>Math.max(0,e-1)),[]),de=(0,Q.useCallback)(()=>b(e=>Math.min(v.length-1,e+1)),[v.length]),I=(0,Q.useCallback)(()=>b(0),[]),pe=(0,Q.useCallback)(()=>b(v.length-1),[v.length]),L=(0,Q.useCallback)(()=>{let e=v[y];e&&P(e)},[v,y,P]);d(`confirm:no`,le,{context:`Confirmation`,isActive:!C}),l({"messageSelector:up":ue,"messageSelector:down":de,"messageSelector:top":I,"messageSelector:bottom":pe,"messageSelector:select":L},{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=Ee(p,t.uuid),i=v.at(n+1),a=r?gt(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,he=!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)(ht,{userMessage:C,color:`text`,isCurrent:!1}),(0,G.jsxs)(s,{dimColor:!0,children:[`(`,ae(new Date(C.timestamp)),`)`]})]}),(0,G.jsx)(ft,{selectedRestoreOption:ee,canRestoreCode:!!B,diffStatsForRestore:T}),O&&X(A)?(0,G.jsxs)(f,{flexDirection:`row`,gap:1,children:[(0,G.jsx)(Te,{}),(0,G.jsx)(s,{children:`Summarizing…`})]}):(0,G.jsx)(fe,{isDisabled:O,options:oe(!!B),defaultFocusValue:B?`both`:`conversation`,onFocus:e=>te(e),onChange:e=>ce(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.`]})})]}),he&&(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)(ht,{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)(mt,{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:F.pending?(0,G.jsxs)(G.Fragment,{children:[`Press `,F.keyName,` again to exit`]}):(0,G.jsxs)(G.Fragment,{children:[!m&&S&&`Enter to continue · `,`Esc to exit`]})})]})]})}function dt(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 ft({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:dt(e)}),!X(e)&&(r?(0,G.jsx)(pt,{diffStatsForRestore:n}):(0,G.jsx)(s,{dimColor:!0,children:`The code will be unchanged.`}))]})}function pt({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)(mt,{diffStats:e}),` in `,n,`.`]})})}function mt({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 ht({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&&Y(l)?l.text.trim():`(no prompt)`);if(ze(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 gt(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||!ge(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 Z(e){if(e.type!==`user`||Array.isArray(e.message.content)&&e.message.content[0]?.type===`tool_result`||be(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&&Y(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 _t(e,t){for(let n=t+1;n<e.length;n++){let t=e[n];if(t&&!be(t)&&!ge(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(),1),E(),de(),Fe(),Ke(),Ge(),I(),pe(),B(),_e(),$=7}));export{Z as a,it as c,_t as i,K as l,lt as n,ct as o,vt as r,st as s,ut as t,Qe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./REPL-D2p-vgct.js";export{e as REPL};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{UO as e,WO as t}from"./loadAgentsDir-DF6FgRn-.js";t();export{e as clearSearchExtraToolsDescriptionCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./SentryErrorBoundary-z8tMb-zO.js";e();export{t as SentryErrorBoundary};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,o as n}from"./chunk-DR8-3Aex.js";import{f as r,s as i,u as a}from"./envUtils-BWeoiL4Y.js";import{n as o,t as s}from"./figures-gfT9mM8P.js";import{E as c,F as ee,In as l,Ln as u,Rn as d,T as te,Ut as ne,_ as re,b as f,c as ie,f as ae,g as p,h as m,i as oe,n as se,nt as ce,p as le,r as ue,t as h,tt as de,x as g}from"./src-Di342QoJ.js";import{t as _}from"./jsx-runtime-D-D469L8.js";import{Ct as v,cn as y,kr as fe,tn as pe}from"./state-sIHsFpDu.js";import{Ac as b,Fs as me,Is as he,Ka as ge,Lr as _e,Ns as ve,Oc as ye,Pc as x,Pr as S,Qa as be,Rr as xe,Rs as Se,S as Ce,Sc as C,Si as we,Vs as Te,Xi as Ee,Zi as De,_ as Oe,bc as ke,di as Ae,it as je,li as Me,lo as w,on as T,oo as Ne,rt as Pe,tn as E,ui as Fe,vc as Ie,vi as Le,xi as Re,yc as ze,yi as Be}from"./paths-o5iA-EnQ.js";import{E as D,w as O}from"./debug-UI3T040K.js";import{n as k,r as A}from"./analytics-DqMQntaB.js";import{n as j,t as Ve}from"./cwd--iizewsn.js";import{o as He,s as Ue}from"./log-CzsijfHZ.js";import{i as We,o as Ge}from"./platform-CuyedWpe.js";import{_ as M,x as N}from"./startupProfiler-DnXZaX4A.js";import{r as Ke}from"./permissions-DXLfdE7b.js";import{$f as qe,$x as Je,Ab as Ye,Ar as Xe,BS as Ze,Bx as Qe,C as $e,Ck as et,Db as tt,Dk as nt,Eb as rt,Ek as it,Fb as at,Hu as P,I as ot,LS as st,Lg as F,Mb as ct,Nb as lt,Nx as ut,Ob as dt,Pb as ft,Px as pt,RS as I,Rg as mt,Tb as ht,Tk as gt,Uw as L,Vu as _t,Zx as vt,as as R,eC as z,ep as yt,gm as B,hr as V,is as bt,ix as xt,jb as St,kb as Ct,lx as wt,my as Tt,os as Et,pm as Dt,rx as Ot,tC as H,w as kt,y as At,zS as jt,zx as Mt}from"./loadAgentsDir-DF6FgRn-.js";import{r as Nt,t as Pt}from"./poorMode-7N6J6YN2.js";import{t as U}from"./useKeybinding-FsOnjW6T.js";import{l as W,u as Ft}from"./referral-BADm5sBf.js";import{i as It,r as Lt}from"./bridgeEnabled-cSK8a7tN.js";import{a as Rt,n as zt,r as Bt}from"./teammateModeSnapshot-DXc2vyo2.js";import{i as Vt,n as G,r as Ht}from"./modalContext-CmSKRyea.js";import{n as Ut,t as Wt}from"./ThemePicker-CFYFNnPp.js";import{i as Gt,n as Kt,r as qt,t as Jt}from"./extraUsage-CWde-Mi0.js";import{n as Yt,t as Xt}from"./ClaudeMdExternalIncludesDialog-Dofr1TYr.js";import{t as Zt}from"./SearchBox-DfOmUoaI.js";import{n as Qt,t as $t}from"./useSearchInput-CepwLBvi.js";import{n as en,t as tn}from"./usage-X4-qec8g.js";import{a as nn,i as rn,t as an}from"./OverageCreditUpsell-BvPz1jLU.js";function on(){let e=v();return[{label:`Version`,value:`2.6.8`},{label:`Session name`,value:V(e)??(0,K.jsx)(f,{dimColor:!0,children:`/rename to add a name`})},{label:`Session ID`,value:e},{label:`cwd`,value:Ve()},...rt(),...ht()]}function sn({mainLoopModel:e,mcp:t,theme:n,context:r}){return[{label:`Model`,value:ft(e)},...tt(t.clients,r.options.ideInstallationStatus,n),...Ye(t.clients,n),...ct(),...lt()]}async function cn(){return[...await dt(),...await Ct(),...await St()]}function ln({value:e}){return Array.isArray(e)?(0,K.jsx)(g,{flexWrap:`wrap`,columnGap:1,flexShrink:99,children:e.map((t,n)=>(0,K.jsxs)(f,{children:[t,n<e.length-1?`,`:``]},n))}):typeof e==`string`?(0,K.jsx)(f,{children:e}):e}function un({context:e,diagnosticsPromise:t}){let n=I(e=>e.mainLoopModel),r=I(e=>e.mcp),[i]=te(),a=fn.useMemo(()=>[on(),sn({mainLoopModel:n,mcp:r,theme:i,context:e})],[n,r,i,e]),o=Ht()?1:void 0;return(0,K.jsxs)(g,{flexDirection:`column`,flexGrow:o,children:[(0,K.jsxs)(g,{flexDirection:`column`,gap:1,flexGrow:o,children:[a.map((e,t)=>e.length>0&&(0,K.jsx)(g,{flexDirection:`column`,children:e.map(({label:e,value:t},n)=>(0,K.jsxs)(g,{flexDirection:`row`,gap:1,flexShrink:0,children:[e!==void 0&&(0,K.jsxs)(f,{bold:!0,children:[e,`:`]}),(0,K.jsx)(ln,{value:t})]},n))},t)),(0,K.jsx)(pn.Suspense,{fallback:null,children:(0,K.jsx)(dn,{promise:t})})]}),(0,K.jsx)(f,{dimColor:!0,children:(0,K.jsx)(z,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`cancel`})})]})}function dn({promise:e}){let t=(0,pn.use)(e);return t.length===0?null:(0,K.jsxs)(g,{flexDirection:`column`,paddingBottom:1,children:[(0,K.jsx)(f,{bold:!0,children:`System Diagnostics`}),t.map((e,t)=>(0,K.jsxs)(g,{flexDirection:`row`,gap:1,paddingX:1,children:[(0,K.jsx)(f,{color:`error`,children:s.warning}),typeof e==`string`?(0,K.jsx)(f,{wrap:`wrap`,children:e}):e]},t))]})}var fn,pn,K,mn=t((()=>{o(),fn=n(d(),1),pn=n(d(),1),y(),G(),h(),st(),j(),Xe(),at(),H(),K=_()}));function hn({currentVersion:e,onChoice:t}){function n(e){t(e)}function r(){t(`cancel`)}return(0,gn.jsxs)(ae,{title:`Switch to Stable Channel`,onCancel:r,color:`permission`,hideBorder:!0,hideInputGuide:!0,children:[(0,gn.jsxs)(f,{children:[`The stable channel may have an older version than what you're currently running (`,e,`).`]}),(0,gn.jsx)(f,{dimColor:!0,children:`How would you like to handle this?`}),(0,gn.jsx)(ut,{options:[{label:`Allow possible downgrade to stable version`,value:`downgrade`},{label:`Stay on current version (${e}) until stable catches up`,value:`stay`}],onChange:n})]})}var gn,_n=t((()=>{d(),h(),Tt(),gn=_()}));function vn(e){return Object.entries(e).map(([e,t])=>({label:t?.name??xn,value:e,description:t?.description??Sn}))}function yn({initialStyle:e,onComplete:t,onCancel:n,isStandaloneCommand:r}){let[i,a]=(0,bn.useState)([]),[o,s]=(0,bn.useState)(!0);(0,bn.useEffect)(()=>{R(Ve()).then(e=>{a(vn(e)),s(!1)}).catch(()=>{a(vn(bt)),s(!1)})},[]);let c=(0,bn.useCallback)(e=>{t(e)},[t]);return(0,q.jsx)(ae,{title:`Preferred output style`,onCancel:n,hideInputGuide:!r,hideBorder:!r,children:(0,q.jsxs)(g,{flexDirection:`column`,gap:1,children:[(0,q.jsx)(g,{marginTop:1,children:(0,q.jsx)(f,{dimColor:!0,children:`This changes how Claude Code communicates with you`})}),o?(0,q.jsx)(f,{dimColor:!0,children:`Loading output styles…`}):(0,q.jsx)(ut,{options:i,onChange:c,visibleOptionCount:10,defaultValue:e})]})})}var bn,q,xn,Sn,Cn=t((()=>{d(),bn=n(d(),1),Et(),h(),j(),pt(),q=_(),xn=`Default`,Sn=`Claude completes coding tasks efficiently and provides concise responses`}));function wn({initialLanguage:e,onComplete:t,onCancel:n}){let[r,i]=(0,Tn.useState)(e),[a,o]=(0,Tn.useState)((e??``).length);de(`confirm:no`,n,{context:`Settings`});function c(){let e=r?.trim();t(e||void 0)}return(0,J.jsxs)(g,{flexDirection:`column`,gap:1,children:[(0,J.jsx)(f,{children:`Enter your preferred response and voice language:`}),(0,J.jsxs)(g,{flexDirection:`row`,gap:1,children:[(0,J.jsx)(f,{children:s.pointer}),(0,J.jsx)(Mt,{value:r??``,onChange:i,onSubmit:c,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${s.ellipsis}`,columns:60,cursorOffset:a,onChangeCursorOffset:o})]}),(0,J.jsx)(f,{dimColor:!0,children:`Leave empty for default (English)`})]})}var Tn,J,En=t((()=>{o(),Tn=n(d(),1),h(),U(),Qe(),J=_()}));function Dn({onClose:t,context:n,setTabsHidden:i,onIsSearchModeChange:o,contentHeight:u}){let{headerFocused:d,focusHeader:ie}=oe(),se=Ht(),[,le]=te(),ue=c(),[h,_]=(0,X.useState)(C()),v=Y.useRef(C()),[y,b]=(0,X.useState)(ge()),ve=Y.useRef(ge()),[S,Ce]=(0,X.useState)(y?.outputStyle||`default`),Ee=Y.useRef(S),[T,Ne]=(0,X.useState)(y?.language),Pe=Y.useRef(T),[E,Le]=(0,X.useState)(0),[D,O]=(0,X.useState)(0),[k,j]=(0,X.useState)(!1),Ve=ne(),{rows:He}=ee(),Ge=u??Math.min(Math.floor(He*.8),30),M=Math.max(5,Ge-10),N=I(e=>e.mainLoopModel),Ye=I(e=>e.verbose),Xe=I(e=>e.thinkingEnabled),Qe=I(e=>Re()?e.fastMode:!1),tt=I(e=>e.promptSuggestionEnabled),nt=he(y?.permissions?.defaultMode??`default`),rt=$e()||At()===`enabled`,at=(yt(),e(qe)).isBriefEntitled(),P=Ze(),[st,F]=(0,X.useState)({}),ct=Y.useRef(Xe),[lt]=(0,X.useState)(()=>be(`localSettings`)),[dt]=(0,X.useState)(()=>be(`userSettings`)),ft=Y.useRef(ue),pt=jt(),[mt]=(0,X.useState)(()=>{let e=pt.getState();return{mainLoopModel:e.mainLoopModel,mainLoopModelForSession:e.mainLoopModelForSession,verbose:e.verbose,thinkingEnabled:e.thinkingEnabled,fastMode:e.fastMode,promptSuggestionEnabled:e.promptSuggestionEnabled,isBriefOnly:e.isBriefOnly,replBridgeEnabled:e.replBridgeEnabled,replBridgeOutboundOnly:e.replBridgeOutboundOnly,settings:e.settings}}),[ht]=(0,X.useState)(()=>pe()),L=Y.useRef(!1),[_t,vt]=(0,X.useState)(!1),[R,B]=(0,X.useState)(null),{query:V,setQuery:bt,cursorOffset:xt}=Qt({isActive:k&&R===null&&!d,onExit:()=>j(!1),onExitUp:ie,passthroughCtrlKeys:[`c`,`d`]}),St=k&&!d;Y.useEffect(()=>{o?.(St)},[St,o]);let Ct=Ot(n.options.mcpClients),Tt=!a(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),Et=Y.use(gt(!0)),Dt=it(Et),H=ze();function kt(e){A(`tengu_config_model_changed`,{from_model:N,to_model:e}),P(t=>({...t,mainLoopModel:e,mainLoopModelForSession:null})),F(t=>{let n=xe(e)+(Kt(e,!1,_e())?` · Billed as extra usage`:``);if(`model`in t){let{model:e,...r}=t;return{...r,model:n}}return{...t,model:n}})}function Mt(e){x(t=>({...t,verbose:e})),_({...C(),verbose:e}),P(t=>({...t,verbose:e})),F(t=>{if(`verbose`in t){let{verbose:e,...n}=t;return n}return{...t,verbose:e}})}let U=[{id:`autoCompactEnabled`,label:`Auto-compact`,value:h.autoCompactEnabled,type:`boolean`,onChange(e){x(t=>({...t,autoCompactEnabled:e})),_({...C(),autoCompactEnabled:e}),A(`tengu_auto_compact_setting_changed`,{enabled:e})}},{id:`spinnerTipsEnabled`,label:`Show tips`,value:y?.spinnerTipsEnabled??!0,type:`boolean`,onChange(e){w(`localSettings`,{spinnerTipsEnabled:e}),b(t=>({...t,spinnerTipsEnabled:e})),A(`tengu_tips_setting_changed`,{enabled:e})}},{id:`prefersReducedMotion`,label:`Reduce motion`,value:y?.prefersReducedMotion??!1,type:`boolean`,onChange(e){w(`localSettings`,{prefersReducedMotion:e}),b(t=>({...t,prefersReducedMotion:e})),P(t=>({...t,settings:{...t.settings,prefersReducedMotion:e}})),A(`tengu_reduce_motion_setting_changed`,{enabled:e})}},{id:`thinkingEnabled`,label:`Thinking mode`,value:Xe??!0,type:`boolean`,onChange(e){P(t=>({...t,thinkingEnabled:e})),w(`userSettings`,{alwaysThinkingEnabled:e?void 0:!1}),A(`tengu_thinking_toggled`,{enabled:e})}},...Re()&&Be()?[{id:`fastMode`,label:`Fast mode (${Me} only)`,value:!!Qe,type:`boolean`,onChange(e){Fe(),w(`userSettings`,{fastMode:e?!0:void 0}),e?(P(e=>({...e,mainLoopModel:Ae(),mainLoopModelForSession:null,fastMode:!0})),F(e=>({...e,model:Ae(),"Fast mode":`ON`}))):(P(e=>({...e,fastMode:!1})),F(e=>({...e,"Fast mode":`OFF`})))}}]:[],...Oe(`tengu_chomp_inflection`,!1)?[{id:`promptSuggestionEnabled`,label:`Prompt suggestions`,value:tt,type:`boolean`,onChange(e){P(t=>({...t,promptSuggestionEnabled:e})),w(`userSettings`,{promptSuggestionEnabled:e?void 0:!1})}}]:[],...[{id:`poorMode`,label:`Poor mode (save tokens)`,value:(Pt(),e(Nt)).isPoorModeActive(),type:`boolean`,onChange(t){(Pt(),e(Nt)).setPoorMode(t),P(e=>({...e,promptSuggestionEnabled:!t}))}}],...process.env.USER_TYPE===`ant`?[{id:`speculationEnabled`,label:`Speculative execution`,value:h.speculationEnabled??!0,type:`boolean`,onChange(e){x(t=>t.speculationEnabled===e?t:{...t,speculationEnabled:e}),_({...C(),speculationEnabled:e}),A(`tengu_speculation_setting_changed`,{enabled:e})}}]:[],...Tt?[{id:`fileCheckpointingEnabled`,label:`Rewind code (checkpoints)`,value:h.fileCheckpointingEnabled,type:`boolean`,onChange(e){x(t=>({...t,fileCheckpointingEnabled:e})),_({...C(),fileCheckpointingEnabled:e}),A(`tengu_file_history_snapshots_setting_changed`,{enabled:e})}}]:[],{id:`verbose`,label:`Verbose output`,value:Ye,type:`boolean`,onChange:Mt},{id:`terminalProgressBarEnabled`,label:`Terminal progress bar`,value:h.terminalProgressBarEnabled,type:`boolean`,onChange(e){x(t=>({...t,terminalProgressBarEnabled:e})),_({...C(),terminalProgressBarEnabled:e}),A(`tengu_terminal_progress_bar_setting_changed`,{enabled:e})}},...Oe(`tengu_terminal_sidebar`,!1)?[{id:`showStatusInTerminalTab`,label:`Show status in terminal tab`,value:h.showStatusInTerminalTab??!1,type:`boolean`,onChange(e){x(t=>({...t,showStatusInTerminalTab:e})),_({...C(),showStatusInTerminalTab:e}),A(`tengu_terminal_tab_status_setting_changed`,{enabled:e})}}]:[],{id:`showTurnDuration`,label:`Show turn duration`,value:h.showTurnDuration,type:`boolean`,onChange(e){x(t=>({...t,showTurnDuration:e})),_({...C(),showTurnDuration:e}),A(`tengu_show_turn_duration_setting_changed`,{enabled:e})}},{id:`defaultPermissionMode`,label:`Default permission mode`,value:nt,options:(()=>{let e=[`default`,`plan`];return[...e,...Ke.filter(t=>!e.includes(t))]})(),type:`enum`,onChange(e){let t=he(e),n=t===`auto`?t:me(t)?Te(t):t,r=w(`userSettings`,{permissions:{...y?.permissions,defaultMode:n}});if(r.error){Ue(r.error);return}b(e=>({...e,permissions:{...e?.permissions,defaultMode:n}})),F(t=>({...t,defaultPermissionMode:e})),A(`tengu_config_changed`,{setting:`defaultPermissionMode`,value:e})}},...rt?[{id:`useAutoModeDuringPlan`,label:`Use auto mode during plan`,value:y?.useAutoModeDuringPlan??!0,type:`boolean`,onChange(e){w(`userSettings`,{useAutoModeDuringPlan:e}),b(t=>({...t,useAutoModeDuringPlan:e})),P(e=>{let t=ot(e.toolPermissionContext);return t===e.toolPermissionContext?e:{...e,toolPermissionContext:t}}),F(t=>({...t,"Use auto mode during plan":e}))}}]:[],{id:`respectGitignore`,label:`Respect .gitignore in file picker`,value:h.respectGitignore,type:`boolean`,onChange(e){x(t=>({...t,respectGitignore:e})),_({...C(),respectGitignore:e}),A(`tengu_respect_gitignore_setting_changed`,{enabled:e})}},{id:`copyFullResponse`,label:`Always copy full response (skip /copy picker)`,value:h.copyFullResponse,type:`boolean`,onChange(e){x(t=>({...t,copyFullResponse:e})),_({...C(),copyFullResponse:e}),A(`tengu_config_changed`,{setting:`copyFullResponse`,value:String(e)})}},...Je()?[{id:`copyOnSelect`,label:`Copy on select`,value:h.copyOnSelect??!0,type:`boolean`,onChange(e){x(t=>({...t,copyOnSelect:e})),_({...C(),copyOnSelect:e}),A(`tengu_config_changed`,{setting:`copyOnSelect`,value:String(e)})}}]:[],H?{id:`autoUpdatesChannel`,label:`Auto-update channel`,value:`disabled`,type:`managedEnum`,onChange(){}}:{id:`autoUpdatesChannel`,label:`Auto-update channel`,value:y?.autoUpdatesChannel??`latest`,type:`managedEnum`,onChange(){}},{id:`theme`,label:`Theme`,value:ue,type:`managedEnum`,onChange:le},{id:`notifChannel`,label:`Local notifications`,value:h.preferredNotifChannel,options:[`auto`,`iterm2`,`terminal_bell`,`iterm2_with_bell`,`kitty`,`ghostty`,`notifications_disabled`],type:`enum`,onChange(e){x(t=>({...t,preferredNotifChannel:e})),_({...C(),preferredNotifChannel:e})}},...[{id:`taskCompleteNotifEnabled`,label:`Push when idle`,value:h.taskCompleteNotifEnabled??!1,type:`boolean`,onChange(e){x(t=>({...t,taskCompleteNotifEnabled:e})),_({...C(),taskCompleteNotifEnabled:e})}},{id:`inputNeededNotifEnabled`,label:`Push when input needed`,value:h.inputNeededNotifEnabled??!1,type:`boolean`,onChange(e){x(t=>({...t,inputNeededNotifEnabled:e})),_({...C(),inputNeededNotifEnabled:e})}},{id:`agentPushNotifEnabled`,label:`Push when Claude decides`,value:h.agentPushNotifEnabled??!1,type:`boolean`,onChange(e){x(t=>({...t,agentPushNotifEnabled:e})),_({...C(),agentPushNotifEnabled:e})}}],{id:`outputStyle`,label:`Output style`,value:S,type:`managedEnum`,onChange:()=>{}},...at?[{id:`defaultView`,label:`What you see by default`,value:y?.defaultView===void 0?`default`:String(y.defaultView),options:[`transcript`,`chat`,`default`],type:`enum`,onChange(e){let t=e===`default`?void 0:e;w(`localSettings`,{defaultView:t}),b(e=>({...e,defaultView:t}));let n=t===`chat`;P(e=>e.isBriefOnly===n?e:{...e,isBriefOnly:n}),fe(n),F(t=>({...t,"Default view":e})),A(`tengu_default_view_setting_changed`,{value:t??`unset`})}}]:[],{id:`language`,label:`Language`,value:T??`Default (English)`,type:`managedEnum`,onChange:()=>{}},{id:`editorMode`,label:`Editor mode`,value:h.editorMode===`emacs`?`normal`:h.editorMode||`normal`,options:[`normal`,`vim`],type:`enum`,onChange(e){x(t=>({...t,editorMode:e})),_({...C(),editorMode:e}),A(`tengu_editor_mode_changed`,{mode:e,source:`config_panel`})}},{id:`prStatusFooterEnabled`,label:`Show PR status footer`,value:h.prStatusFooterEnabled??!0,type:`boolean`,onChange(e){x(t=>t.prStatusFooterEnabled===e?t:{...t,prStatusFooterEnabled:e}),_({...C(),prStatusFooterEnabled:e}),A(`tengu_pr_status_footer_setting_changed`,{enabled:e})}},{id:`model`,label:`Model`,value:N===null?`Default (recommended)`:N,type:`managedEnum`,onChange:kt},...Ct?[{id:`diffTool`,label:`Diff tool`,value:h.diffTool??`auto`,options:[`terminal`,`auto`],type:`enum`,onChange(e){x(t=>({...t,diffTool:e})),_({...C(),diffTool:e}),A(`tengu_diff_tool_changed`,{tool:e,source:`config_panel`})}}]:[],...wt()?[]:[{id:`autoConnectIde`,label:`Auto-connect to IDE (external terminal)`,value:h.autoConnectIde??!1,type:`boolean`,onChange(e){x(t=>({...t,autoConnectIde:e})),_({...C(),autoConnectIde:e}),A(`tengu_auto_connect_ide_changed`,{enabled:e,source:`config_panel`})}}],...wt()?[{id:`autoInstallIdeExtension`,label:`Auto-install IDE extension`,value:h.autoInstallIdeExtension??!0,type:`boolean`,onChange(e){x(t=>({...t,autoInstallIdeExtension:e})),_({...C(),autoInstallIdeExtension:e}),A(`tengu_auto_install_ide_extension_changed`,{enabled:e,source:`config_panel`})}}]:[],{id:`claudeInChromeDefaultEnabled`,label:`Claude in Chrome enabled by default`,value:h.claudeInChromeDefaultEnabled??!0,type:`boolean`,onChange(e){x(t=>({...t,claudeInChromeDefaultEnabled:e})),_({...C(),claudeInChromeDefaultEnabled:e}),A(`tengu_claude_in_chrome_setting_changed`,{enabled:e})}},...je()?(()=>{let e=Bt(),t=e?`Teammate mode [overridden: ${e}]`:`Teammate mode`,n=We()===`windows`,r=n?[`auto`,`tmux`,`windows-terminal`,`in-process`]:[`auto`,`tmux`,`in-process`];return[{id:`teammateMode`,label:t,value:h.teammateMode??`auto`,options:r,type:`enum`,onChange(e){e!==`auto`&&e!==`tmux`&&e!==`windows-terminal`&&e!==`in-process`||e===`windows-terminal`&&!n||(zt(e),x(t=>({...t,teammateMode:e})),_({...C(),teammateMode:e}),A(`tengu_teammate_mode_changed`,{mode:e}))}},{id:`teammateDefaultModel`,label:`Default teammate model`,value:On(h.teammateDefaultModel),type:`managedEnum`,onChange(){}}]})():[],...It()?[{id:`remoteControlAtStartup`,label:`Enable Remote Control for all sessions`,value:h.remoteControlAtStartup===void 0?`default`:String(h.remoteControlAtStartup),options:[`true`,`false`,`default`],type:`enum`,onChange(e){if(e===`default`)x(e=>{if(e.remoteControlAtStartup===void 0)return e;let t={...e};return delete t.remoteControlAtStartup,t}),_({...C(),remoteControlAtStartup:void 0});else{let t=e===`true`;x(e=>e.remoteControlAtStartup===t?e:{...e,remoteControlAtStartup:t}),_({...C(),remoteControlAtStartup:t})}let t=ye();P(e=>e.replBridgeEnabled===t&&!e.replBridgeOutboundOnly?e:{...e,replBridgeEnabled:t,replBridgeOutboundOnly:!1})}}]:[],...Dt?[{id:`showExternalIncludesDialog`,label:`External CLAUDE.md includes`,value:ke().hasClaudeMdExternalIncludesApproved?`true`:`false`,type:`managedEnum`,onChange(){}}]:[],...process.env.ANTHROPIC_API_KEY&&!r()?[{id:`apiKey`,label:(0,Z.jsxs)(f,{children:[`Use custom API key: `,(0,Z.jsx)(f,{bold:!0,children:De(process.env.ANTHROPIC_API_KEY)})]}),searchText:`Use custom API key`,value:!!(process.env.ANTHROPIC_API_KEY&&h.customApiKeyResponses?.approved?.includes(De(process.env.ANTHROPIC_API_KEY))),type:`boolean`,onChange(e){x(t=>{let n={...t};if(n.customApiKeyResponses||(n.customApiKeyResponses={approved:[],rejected:[]}),n.customApiKeyResponses.approved||(n.customApiKeyResponses={...n.customApiKeyResponses,approved:[]}),n.customApiKeyResponses.rejected||(n.customApiKeyResponses={...n.customApiKeyResponses,rejected:[]}),process.env.ANTHROPIC_API_KEY){let t=De(process.env.ANTHROPIC_API_KEY);e?n.customApiKeyResponses={...n.customApiKeyResponses,approved:[...(n.customApiKeyResponses.approved??[]).filter(e=>e!==t),t],rejected:(n.customApiKeyResponses.rejected??[]).filter(e=>e!==t)}:n.customApiKeyResponses={...n.customApiKeyResponses,approved:(n.customApiKeyResponses.approved??[]).filter(e=>e!==t),rejected:[...(n.customApiKeyResponses.rejected??[]).filter(e=>e!==t),t]}}return n}),_(C())}}]:[]],W=Y.useMemo(()=>{if(!V)return U;let e=V.toLowerCase();return U.filter(t=>t.id.toLowerCase().includes(e)?!0:(`searchText`in t?t.searchText:t.label).toLowerCase().includes(e))},[U,V]);Y.useEffect(()=>{if(E>=W.length){let e=Math.max(0,W.length-1);Le(e),O(Math.max(0,e-M+1));return}O(e=>E<e?E:E>=e+M?E-M+1:e)},[W.length,E,M]);let Ft=(0,X.useCallback)(e=>{O(t=>e<t?e:e>=t+M?e-M+1:t)},[M]),Lt=(0,X.useCallback)(()=>{if(R!==null)return;let e=Object.entries(st).map(([e,t])=>(A(`tengu_config_changed`,{key:e,value:t}),`Set ${e} to ${l.bold(t)}`)),n=r()?void 0:process.env.ANTHROPIC_API_KEY,i=!!(n&&v.current.customApiKeyResponses?.approved?.includes(De(n))),a=!!(n&&h.customApiKeyResponses?.approved?.includes(De(n)));if(i!==a&&(e.push(`${a?`Enabled`:`Disabled`} custom API key`),A(`tengu_config_changed`,{key:`env.ANTHROPIC_API_KEY`,value:a})),h.theme!==v.current.theme&&e.push(`Set theme to ${l.bold(h.theme)}`),h.preferredNotifChannel!==v.current.preferredNotifChannel&&e.push(`Set notifications to ${l.bold(h.preferredNotifChannel)}`),S!==Ee.current&&e.push(`Set output style to ${l.bold(S)}`),T!==Pe.current&&e.push(`Set response language to ${l.bold(T??`Default (English)`)}`),h.editorMode!==v.current.editorMode&&e.push(`Set editor mode to ${l.bold(h.editorMode||`emacs`)}`),h.diffTool!==v.current.diffTool&&e.push(`Set diff tool to ${l.bold(h.diffTool)}`),h.autoConnectIde!==v.current.autoConnectIde&&e.push(`${h.autoConnectIde?`Enabled`:`Disabled`} auto-connect to IDE`),h.autoInstallIdeExtension!==v.current.autoInstallIdeExtension&&e.push(`${h.autoInstallIdeExtension?`Enabled`:`Disabled`} auto-install IDE extension`),h.autoCompactEnabled!==v.current.autoCompactEnabled&&e.push(`${h.autoCompactEnabled?`Enabled`:`Disabled`} auto-compact`),h.respectGitignore!==v.current.respectGitignore&&e.push(`${h.respectGitignore?`Enabled`:`Disabled`} respect .gitignore in file picker`),h.copyFullResponse!==v.current.copyFullResponse&&e.push(`${h.copyFullResponse?`Enabled`:`Disabled`} always copy full response`),h.copyOnSelect!==v.current.copyOnSelect&&e.push(`${h.copyOnSelect?`Enabled`:`Disabled`} copy on select`),h.terminalProgressBarEnabled!==v.current.terminalProgressBarEnabled&&e.push(`${h.terminalProgressBarEnabled?`Enabled`:`Disabled`} terminal progress bar`),h.showStatusInTerminalTab!==v.current.showStatusInTerminalTab&&e.push(`${h.showStatusInTerminalTab?`Enabled`:`Disabled`} terminal tab status`),h.showTurnDuration!==v.current.showTurnDuration&&e.push(`${h.showTurnDuration?`Enabled`:`Disabled`} turn duration`),h.remoteControlAtStartup!==v.current.remoteControlAtStartup){let t=h.remoteControlAtStartup===void 0?`Reset Remote Control to default`:`${h.remoteControlAtStartup?`Enabled`:`Disabled`} Remote Control for all sessions`;e.push(t)}y?.autoUpdatesChannel!==ve.current?.autoUpdatesChannel&&e.push(`Set auto-update channel to ${l.bold(y?.autoUpdatesChannel??`latest`)}`),e.length>0?t(e.join(`
|
|
2
|
-
`)):t(`Config dialog dismissed`,{display:`system`})},[R,st,h,N,S,T,y?.autoUpdatesChannel,Re()?y?.fastMode:void 0,t]),Rt=(0,X.useCallback)(()=>{ue!==ft.current&&le(ft.current),x(()=>v.current);let e=lt;w(`localSettings`,{spinnerTipsEnabled:e?.spinnerTipsEnabled,prefersReducedMotion:e?.prefersReducedMotion,defaultView:e?.defaultView,outputStyle:e?.outputStyle});let t=dt;w(`userSettings`,{alwaysThinkingEnabled:t?.alwaysThinkingEnabled,fastMode:t?.fastMode,promptSuggestionEnabled:t?.promptSuggestionEnabled,autoUpdatesChannel:t?.autoUpdatesChannel,minimumVersion:t?.minimumVersion,language:t?.language,useAutoModeDuringPlan:t?.useAutoModeDuringPlan,syntaxHighlightingDisabled:t?.syntaxHighlightingDisabled,permissions:t?.permissions===void 0?void 0:{...t.permissions,defaultMode:t.permissions.defaultMode}});let n=mt;P(e=>({...e,mainLoopModel:n.mainLoopModel,mainLoopModelForSession:n.mainLoopModelForSession,verbose:n.verbose,thinkingEnabled:n.thinkingEnabled,fastMode:n.fastMode,promptSuggestionEnabled:n.promptSuggestionEnabled,isBriefOnly:n.isBriefOnly,replBridgeEnabled:n.replBridgeEnabled,replBridgeOutboundOnly:n.replBridgeOutboundOnly,settings:n.settings,toolPermissionContext:ot(e.toolPermissionContext)})),pe()!==ht&&fe(ht)},[ue,le,lt,dt,mt,ht,P]);de(`confirm:no`,(0,X.useCallback)(()=>{R===null&&(L.current&&Rt(),t(`Config dialog dismissed`,{display:`system`}))},[R,Rt,t]),{context:`Settings`,isActive:R===null&&!k&&!d}),de(`settings:close`,Lt,{context:`Settings`,isActive:R===null&&!k&&!d});let Vt=(0,X.useCallback)(()=>{let e=W[E];if(!(!e||!e.onChange)){if(e.type===`boolean`){L.current=!0,e.onChange(!e.value),e.id===`thinkingEnabled`&&(!e.value===ct.current?vt(!1):n.messages.some(e=>e.type===`assistant`)&&vt(!0));return}if(e.id===`theme`||e.id===`model`||e.id===`teammateDefaultModel`||e.id===`showExternalIncludesDialog`||e.id===`outputStyle`||e.id===`language`)switch(e.id){case`theme`:B(`Theme`),i(!0);return;case`model`:B(`Model`),i(!0);return;case`teammateDefaultModel`:B(`TeammateModel`),i(!0);return;case`showExternalIncludesDialog`:B(`ExternalIncludes`),i(!0);return;case`outputStyle`:B(`OutputStyle`),i(!0);return;case`language`:B(`Language`),i(!0);return}if(e.id===`autoUpdatesChannel`){if(H){B(`EnableAutoUpdates`),i(!0);return}(y?.autoUpdatesChannel??`latest`)===`latest`?(B(`ChannelDowngrade`),i(!0)):(L.current=!0,w(`userSettings`,{autoUpdatesChannel:`latest`,minimumVersion:void 0}),b(e=>({...e,autoUpdatesChannel:`latest`,minimumVersion:void 0})),A(`tengu_autoupdate_channel_changed`,{channel:`latest`}));return}if(e.type===`enum`){L.current=!0;let t=(e.options.indexOf(e.value)+1)%e.options.length;e.onChange(e.options[t]);return}}},[H,W,E,y?.autoUpdatesChannel,i]),G=e=>{vt(!1);let t=Math.max(0,Math.min(W.length-1,E+e));Le(t),Ft(t)};return ce({"select:previous":()=>{E===0?(vt(!1),j(!0),O(0)):G(-1)},"select:next":()=>G(1),"scroll:lineUp":()=>G(-1),"scroll:lineDown":()=>G(1),"select:accept":Vt,"select:previousValue":()=>Vt(),"select:nextValue":()=>Vt(),"settings:search":()=>{j(!0),bt(``)}},{context:`Settings`,isActive:R===null&&!k&&!d}),(0,Z.jsx)(g,{flexDirection:`column`,width:`100%`,tabIndex:0,autoFocus:!0,onKeyDown:(0,X.useCallback)(e=>{if(R===null&&!d){if(k){if(e.key===`escape`){e.preventDefault(),V.length>0?bt(``):j(!1);return}(e.key===`return`||e.key===`down`||e.key===`wheeldown`)&&(e.preventDefault(),j(!1),Le(0),O(0));return}if(e.key===`left`||e.key===`right`||e.key===`tab`){e.preventDefault(),Vt();return}e.ctrl||e.meta||e.key===`j`||e.key===`k`||e.key===`/`||e.key.length===1&&e.key!==` `&&(e.preventDefault(),j(!0),bt(e.key))}},[R,d,k,V,bt,Vt]),children:R===`Theme`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Wt,{onThemeSelect:e=>{L.current=!0,le(e),B(null),i(!1)},onCancel:()=>{B(null),i(!1)},hideEscToCancel:!0,skipExitHandling:!0}),(0,Z.jsx)(g,{children:(0,Z.jsx)(f,{dimColor:!0,italic:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(p,{shortcut:`Enter`,action:`select`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})})]}):R===`Model`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(qt,{initial:N,onSelect:(e,t)=>{L.current=!0,kt(e),B(null),i(!1)},onCancel:()=>{B(null),i(!1)},showFastModeNotice:Re()?Qe&&we(N)&&Be():!1}),(0,Z.jsx)(f,{dimColor:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(p,{shortcut:`Enter`,action:`confirm`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})]}):R===`TeammateModel`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(qt,{initial:h.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:`Default model for newly spawned teammates. The leader can override via the tool call's model parameter.`,onSelect:(e,t)=>{B(null),i(!1),!(h.teammateDefaultModel===void 0&&e===null)&&(L.current=!0,x(t=>t.teammateDefaultModel===e?t:{...t,teammateDefaultModel:e}),_({...C(),teammateDefaultModel:e}),F(t=>({...t,teammateDefaultModel:On(e)})),A(`tengu_teammate_default_model_changed`,{model:e}))},onCancel:()=>{B(null),i(!1)}}),(0,Z.jsx)(f,{dimColor:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(p,{shortcut:`Enter`,action:`confirm`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})]}):R===`ExternalIncludes`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Xt,{onDone:()=>{B(null),i(!1)},externalIncludes:et(Et)}),(0,Z.jsx)(f,{dimColor:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(p,{shortcut:`Enter`,action:`confirm`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`disable external includes`})]})})]}):R===`OutputStyle`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(yn,{initialStyle:S,onComplete:e=>{L.current=!0,Ce(e??`default`),B(null),i(!1),w(`localSettings`,{outputStyle:e}),A(`tengu_output_style_changed`,{style:e??`default`,source:`config_panel`,settings_source:`localSettings`})},onCancel:()=>{B(null),i(!1)}}),(0,Z.jsx)(f,{dimColor:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(p,{shortcut:`Enter`,action:`confirm`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})]}):R===`Language`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(wn,{initialLanguage:T,onComplete:e=>{L.current=!0,Ne(e),B(null),i(!1),w(`userSettings`,{language:e}),A(`tengu_language_changed`,{language:e??`default`,source:`config_panel`})},onCancel:()=>{B(null),i(!1)}}),(0,Z.jsx)(f,{dimColor:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(p,{shortcut:`Enter`,action:`confirm`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`cancel`})]})})]}):R===`EnableAutoUpdates`?(0,Z.jsx)(ae,{title:`Enable Auto-Updates`,onCancel:()=>{B(null),i(!1)},hideBorder:!0,hideInputGuide:!0,children:H?.type===`config`?(0,Z.jsx)(ut,{options:[{label:`Enable with latest channel`,value:`latest`},{label:`Enable with stable channel`,value:`stable`}],onChange:e=>{L.current=!0,B(null),i(!1),x(e=>({...e,autoUpdates:!0})),_({...C(),autoUpdates:!0}),w(`userSettings`,{autoUpdatesChannel:e,minimumVersion:void 0}),b(t=>({...t,autoUpdatesChannel:e,minimumVersion:void 0})),A(`tengu_autoupdate_enabled`,{channel:e})}}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(f,{children:H?.type===`env`?`Auto-updates are controlled by an environment variable and cannot be changed here.`:`Auto-updates are disabled in development builds.`}),H?.type===`env`&&(0,Z.jsxs)(f,{dimColor:!0,children:[`Unset `,H.envVar,` to re-enable auto-updates.`]})]})}):R===`ChannelDowngrade`?(0,Z.jsx)(hn,{currentVersion:`2.6.8`,onChoice:e=>{if(B(null),i(!1),e===`cancel`)return;L.current=!0;let t={autoUpdatesChannel:`stable`};e===`stay`&&(t.minimumVersion=`2.6.8`),w(`userSettings`,t),b(e=>({...e,...t})),A(`tengu_autoupdate_channel_changed`,{channel:`stable`,minimum_version_set:e===`stay`})}}):(0,Z.jsxs)(g,{flexDirection:`column`,gap:1,marginY:se?void 0:1,children:[(0,Z.jsx)(re,{query:V,isFocused:k&&!d,isTerminalFocused:Ve,cursorOffset:xt,placeholder:`Search settings…`}),(0,Z.jsx)(g,{flexDirection:`column`,children:W.length===0?(0,Z.jsxs)(f,{dimColor:!0,italic:!0,children:[`No settings match "`,V,`"`]}):(0,Z.jsxs)(Z.Fragment,{children:[D>0&&(0,Z.jsxs)(f,{dimColor:!0,children:[s.arrowUp,` `,D,` more above`]}),W.slice(D,D+M).map((e,t)=>{let n=D+t===E&&!d&&!k;return(0,Z.jsx)(Y.Fragment,{children:(0,Z.jsxs)(g,{width:`100%`,children:[(0,Z.jsx)(g,{width:44,children:(0,Z.jsxs)(f,{color:n?`suggestion`:void 0,children:[n?s.pointer:` `,` `,e.label]})}),(0,Z.jsx)(g,{flexGrow:1,children:e.type===`boolean`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(f,{color:n?`suggestion`:void 0,children:e.value.toString()}),_t&&e.id===`thinkingEnabled`&&(0,Z.jsxs)(f,{color:`warning`,children:[` `,`Changing thinking mode mid-conversation will increase latency and may reduce quality.`]})]}):e.id===`theme`?(0,Z.jsx)(f,{color:n?`suggestion`:void 0,children:An[e.value.toString()]??e.value.toString()}):e.id===`notifChannel`?(0,Z.jsx)(f,{color:n?`suggestion`:void 0,children:(0,Z.jsx)(kn,{value:e.value.toString()})}):e.id===`defaultPermissionMode`?(0,Z.jsx)(f,{color:n?`suggestion`:void 0,children:Se(e.value)}):e.id===`autoUpdatesChannel`&&H?(0,Z.jsxs)(g,{flexDirection:`column`,children:[(0,Z.jsx)(f,{color:n?`suggestion`:void 0,children:`disabled`}),(0,Z.jsxs)(f,{dimColor:!0,children:[`(`,Ie(H),`)`]})]}):(0,Z.jsx)(f,{color:n?`suggestion`:void 0,children:e.value.toString()})})]})},e.id)}),D+M<W.length&&(0,Z.jsxs)(f,{dimColor:!0,children:[s.arrowDown,` `,W.length-D-M,` more below`]})]})}),d?(0,Z.jsx)(f,{dimColor:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(p,{shortcut:`←/→ tab`,action:`switch`}),(0,Z.jsx)(p,{shortcut:`↓`,action:`return`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`close`})]})}):k?(0,Z.jsx)(f,{dimColor:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(f,{children:`Type to filter`}),(0,Z.jsx)(p,{shortcut:`Enter/↓`,action:`select`}),(0,Z.jsx)(p,{shortcut:`↑`,action:`tabs`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`clear`})]})}):(0,Z.jsx)(f,{dimColor:!0,children:(0,Z.jsxs)(m,{children:[(0,Z.jsx)(z,{action:`select:accept`,context:`Settings`,fallback:`Space`,description:`change`}),(0,Z.jsx)(z,{action:`settings:close`,context:`Settings`,fallback:`Enter`,description:`save`}),(0,Z.jsx)(z,{action:`settings:search`,context:`Settings`,fallback:`/`,description:`search`}),(0,Z.jsx)(z,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`cancel`})]})})]})})}function On(e){return e===void 0?xe(_t()):e===null?`Default (leader's model)`:xe(e)}function kn({value:e}){switch(e){case`auto`:return`Auto`;case`iterm2`:return(0,Z.jsxs)(f,{children:[`iTerm2 `,(0,Z.jsx)(f,{dimColor:!0,children:`(OSC 9)`})]});case`terminal_bell`:return(0,Z.jsxs)(f,{children:[`Terminal Bell `,(0,Z.jsx)(f,{dimColor:!0,children:`(\\a)`})]});case`kitty`:return(0,Z.jsxs)(f,{children:[`Kitty `,(0,Z.jsx)(f,{dimColor:!0,children:`(OSC 99)`})]});case`ghostty`:return(0,Z.jsxs)(f,{children:[`Ghostty `,(0,Z.jsx)(f,{dimColor:!0,children:`(OSC 777)`})]});case`iterm2_with_bell`:return`iTerm2 w/ Bell`;case`notifications_disabled`:return`Disabled`;default:return e}}var Y,X,Z,An,jn=t((()=>{h(),Y=n(d(),1),X=n(d(),1),U(),o(),b(),Ee(),u(),ve(),kt(),He(),k(),Lt(),Ut(),st(),Gt(),S(),Jt(),Yt(),_n(),Tt(),Cn(),En(),nt(),H(),G(),Zt(),xt(),Ne(),y(),Et(),i(),Ce(),Pe(),Rt(),P(),$t(),L(),Le(),vt(),Ge(),Z=_(),An={auto:`Auto (match terminal)`,dark:`Dark mode`,light:`Light mode`,"dark-daltonized":`Dark mode (colorblind-friendly)`,"light-daltonized":`Light mode (colorblind-friendly)`,"dark-ansi":`Dark mode (ANSI colors only)`,"light-ansi":`Light mode (ANSI colors only)`}}));function Mn({title:e,limit:t,maxWidth:n,showTimeInReset:r=!0,extraSubtext:i}){let{utilization:a,resets_at:o}=t;if(a===null)return null;let s=`${Math.floor(a)}% used`,c;return o&&(c=`Resets ${M(o,!0,r)}`),i&&(c=c?`${i} · ${c}`:i),n>=62?(0,Q.jsxs)(g,{flexDirection:`column`,children:[(0,Q.jsx)(f,{bold:!0,children:e}),(0,Q.jsxs)(g,{flexDirection:`row`,gap:1,children:[(0,Q.jsx)(ie,{ratio:a/100,width:50,fillColor:`rate_limit_fill`,emptyColor:`rate_limit_empty`}),(0,Q.jsx)(f,{children:s})]}),c&&(0,Q.jsx)(f,{dimColor:!0,children:c})]}):(0,Q.jsxs)(g,{flexDirection:`column`,children:[(0,Q.jsxs)(f,{children:[(0,Q.jsx)(f,{bold:!0,children:e}),c&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(f,{children:` `}),(0,Q.jsxs)(f,{dimColor:!0,children:[`· `,c]})]})]}),(0,Q.jsx)(ie,{ratio:a/100,width:n,fillColor:`rate_limit_fill`,emptyColor:`rate_limit_empty`}),(0,Q.jsx)(f,{children:s})]})}function Nn(){let[e,t]=(0,In.useState)(null),[n,r]=(0,In.useState)(null),[i,a]=(0,In.useState)(!0),{columns:o}=ee(),s=o-2,c=Math.min(s,80),l=Fn.useCallback(async()=>{a(!0),r(null);try{t(await tn())}catch(e){Ue(e);let t=e,n=t.response?.data?D(t.response.data):void 0;r(n?`Failed to load usage data: ${n}`:`Failed to load usage data`)}finally{a(!1)}},[]);if((0,In.useEffect)(()=>{l()},[l]),de(`settings:retry`,()=>{l()},{context:`Settings`,isActive:!!n&&!i}),n)return(0,Q.jsxs)(g,{flexDirection:`column`,gap:1,children:[(0,Q.jsxs)(f,{color:`error`,children:[`Error: `,n]}),(0,Q.jsx)(f,{dimColor:!0,children:(0,Q.jsxs)(m,{children:[(0,Q.jsx)(z,{action:`settings:retry`,context:`Settings`,fallback:`r`,description:`retry`}),(0,Q.jsx)(z,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`cancel`})]})})]});if(!e)return(0,Q.jsxs)(g,{flexDirection:`column`,gap:1,children:[(0,Q.jsx)(f,{dimColor:!0,children:`Loading usage data…`}),(0,Q.jsx)(f,{dimColor:!0,children:(0,Q.jsx)(z,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`cancel`})})]});let u=E(),d=u===`max`||u===`team`||u===null,te=[{title:`Current session`,limit:e.five_hour},{title:`Current week (all models)`,limit:e.seven_day},...d?[{title:`Current week (Sonnet only)`,limit:e.seven_day_sonnet}]:[]];return(0,Q.jsxs)(g,{flexDirection:`column`,gap:1,width:`100%`,children:[te.some(({limit:e})=>e)||(0,Q.jsx)(f,{dimColor:!0,children:`/usage is only available for subscription plans.`}),te.map(({title:e,limit:t})=>t&&(0,Q.jsx)(Mn,{title:e,limit:t,maxWidth:c},e)),e.extra_usage&&(0,Q.jsx)(Pn,{extraUsage:e.extra_usage,maxWidth:c}),nn()&&(0,Q.jsx)(an,{maxWidth:c}),(0,Q.jsx)(f,{dimColor:!0,children:(0,Q.jsx)(z,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`cancel`})})]})}function Pn({extraUsage:e,maxWidth:t}){let n=E();if(!(n===`pro`||n===`max`))return!1;if(!e.is_enabled)return F.isEnabled()?(0,Q.jsxs)(g,{flexDirection:`column`,children:[(0,Q.jsx)(f,{bold:!0,children:Ln}),(0,Q.jsx)(f,{dimColor:!0,children:`Extra usage not enabled · /extra-usage to enable`})]}):null;if(e.monthly_limit===null)return(0,Q.jsxs)(g,{flexDirection:`column`,children:[(0,Q.jsx)(f,{bold:!0,children:Ln}),(0,Q.jsx)(f,{dimColor:!0,children:`Unlimited`})]});if(typeof e.used_credits!=`number`||typeof e.utilization!=`number`)return null;let r=Dt(e.used_credits/100,2),i=Dt(e.monthly_limit/100,2),a=new Date,o=new Date(a.getFullYear(),a.getMonth()+1,1);return(0,Q.jsx)(Mn,{title:Ln,limit:{utilization:e.utilization,resets_at:o.toISOString()},showTimeInReset:!1,extraSubtext:`${r} / ${i} spent`,maxWidth:t})}var Fn,In,Q,Ln,Rn=t((()=>{Fn=n(d(),1),In=n(d(),1),mt(),B(),T(),L(),h(),U(),en(),N(),He(),O(),H(),rn(),Q=_(),Ln=`Extra usage`}));function zn({onClose:e,context:t,defaultTab:n}){let[r,i]=(0,Bn.useState)(n),[a,o]=(0,Bn.useState)(!1),[s,c]=(0,Bn.useState)(!1),l=Ht(),{rows:u}=Vt(ee()),d=l?u+1:Math.max(15,Math.min(Math.floor(u*.8),30)),[te]=(0,Bn.useState)(()=>cn().catch(()=>[]));return Ft(),de(`confirm:no`,()=>{a||e(`Status dialog dismissed`,{display:`system`})},{context:`Settings`,isActive:!a&&!(r===`Config`&&s)}),(0,$.jsx)(le,{color:`permission`,children:(0,$.jsx)(ue,{color:`permission`,selectedTab:r,onTabChange:i,hidden:a,initialHeaderFocused:n!==`Config`,contentHeight:a||l?void 0:d,children:[(0,$.jsx)(se,{title:`Status`,children:(0,$.jsx)(un,{context:t,diagnosticsPromise:te})},`status`),(0,$.jsx)(se,{title:`Config`,children:(0,$.jsx)(Bn.Suspense,{fallback:null,children:(0,$.jsx)(Dn,{context:t,onClose:e,setTabsHidden:o,onIsSearchModeChange:c,contentHeight:d})})},`config`),(0,$.jsx)(se,{title:`Usage`,children:(0,$.jsx)(Nn,{})},`usage`)]})})}var Bn,$,Vn=t((()=>{d(),Bn=n(d(),1),U(),W(),L(),G(),h(),mn(),jn(),Rn(),$=_()}));export{Vn as n,zn as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DR8-3Aex.js";import{Rn as e,T as t,b as n,t as r,x as i}from"./src-Di342QoJ.js";import{t as a}from"./jsx-runtime-D-D469L8.js";import{a as o,n as s}from"./env-chR0gV31.js";e(),r(),o();var c=a(),l=58;function u(){let[e]=t(),r=`Welcome to Claude Code`;return s.terminal===`Apple_Terminal`?(0,c.jsx)(d,{theme:e,welcomeMessage:r}):[`light`,`light-daltonized`,`light-ansi`].includes(e)?(0,c.jsx)(i,{width:l,children:(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{color:`claude`,children:[r,` `]}),(0,c.jsxs)(n,{dimColor:!0,children:[`v`,`2.6.8`,` `]})]}),(0,c.jsx)(n,{children:`…………………………………………………………………………………………………………………………………………………………`}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{children:` ░░░░░░ `}),(0,c.jsx)(n,{children:` ░░░ ░░░░░░░░░░ `}),(0,c.jsx)(n,{children:` ░░░░░░░░░░░░░░░░░░░ `}),(0,c.jsx)(n,{children:` `}),(0,c.jsxs)(n,{children:[(0,c.jsx)(n,{dimColor:!0,children:` ░░░░`}),(0,c.jsx)(n,{children:` ██ `})]}),(0,c.jsxs)(n,{children:[(0,c.jsx)(n,{dimColor:!0,children:` ░░░░░░░░░░`}),(0,c.jsx)(n,{children:` ██▒▒██ `})]}),(0,c.jsx)(n,{children:` ▒▒ ██ ▒`}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{color:`clawd_body`,children:` █████████ `}),` ▒▒░░▒▒ ▒ ▒▒`]}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{color:`clawd_body`,backgroundColor:`clawd_background`,children:`██▄█████▄██`}),` ▒▒ ▒▒ `]}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{color:`clawd_body`,children:` █████████ `}),` ░ ▒ `]}),(0,c.jsxs)(n,{children:[`…………………`,(0,c.jsx)(n,{color:`clawd_body`,children:`█ █ █ █`}),`……………………………………………………………………░…………………………▒…………`]})]})}):(0,c.jsx)(i,{width:l,children:(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{color:`claude`,children:[r,` `]}),(0,c.jsxs)(n,{dimColor:!0,children:[`v`,`2.6.8`,` `]})]}),(0,c.jsx)(n,{children:`…………………………………………………………………………………………………………………………………………………………`}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{children:` * █████▓▓░ `}),(0,c.jsx)(n,{children:` * ███▓░ ░░ `}),(0,c.jsx)(n,{children:` ░░░░░░ ███▓░ `}),(0,c.jsx)(n,{children:` ░░░ ░░░░░░░░░░ ███▓░ `}),(0,c.jsxs)(n,{children:[(0,c.jsx)(n,{children:` ░░░░░░░░░░░░░░░░░░░ `}),(0,c.jsx)(n,{bold:!0,children:`*`}),(0,c.jsx)(n,{children:` ██▓░░ ▓ `})]}),(0,c.jsx)(n,{children:` ░▓▓███▓▓░ `}),(0,c.jsx)(n,{dimColor:!0,children:` * ░░░░ `}),(0,c.jsx)(n,{dimColor:!0,children:` ░░░░░░░░ `}),(0,c.jsx)(n,{dimColor:!0,children:` ░░░░░░░░░░░░░░░░ `}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{color:`clawd_body`,children:` █████████ `}),` `,(0,c.jsx)(n,{dimColor:!0,children:`*`}),(0,c.jsx)(n,{children:` `})]}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{color:`clawd_body`,children:`██▄█████▄██`}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{bold:!0,children:`*`}),(0,c.jsx)(n,{children:` `})]}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{color:`clawd_body`,children:` █████████ `}),` * `]}),(0,c.jsxs)(n,{children:[`…………………`,(0,c.jsx)(n,{color:`clawd_body`,children:`█ █ █ █`}),`………………………………………………………………………………………………………………`]})]})})}function d({theme:e,welcomeMessage:t}){return[`light`,`light-daltonized`,`light-ansi`].includes(e)?(0,c.jsx)(i,{width:l,children:(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{color:`claude`,children:[t,` `]}),(0,c.jsxs)(n,{dimColor:!0,children:[`v`,`2.6.8`,` `]})]}),(0,c.jsx)(n,{children:`…………………………………………………………………………………………………………………………………………………………`}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{children:` ░░░░░░ `}),(0,c.jsx)(n,{children:` ░░░ ░░░░░░░░░░ `}),(0,c.jsx)(n,{children:` ░░░░░░░░░░░░░░░░░░░ `}),(0,c.jsx)(n,{children:` `}),(0,c.jsxs)(n,{children:[(0,c.jsx)(n,{dimColor:!0,children:` ░░░░`}),(0,c.jsx)(n,{children:` ██ `})]}),(0,c.jsxs)(n,{children:[(0,c.jsx)(n,{dimColor:!0,children:` ░░░░░░░░░░`}),(0,c.jsx)(n,{children:` ██▒▒██ `})]}),(0,c.jsx)(n,{children:` ▒▒ ██ ▒`}),(0,c.jsx)(n,{children:` ▒▒░░▒▒ ▒ ▒▒`}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{color:`clawd_body`,children:`▗`}),(0,c.jsxs)(n,{color:`clawd_background`,backgroundColor:`clawd_body`,children:[` `,`▗`,` `,`▖`,` `]}),(0,c.jsx)(n,{color:`clawd_body`,children:`▖`}),` ▒▒ ▒▒ `]}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `.repeat(9)}),` ░ ▒ `]}),(0,c.jsxs)(n,{children:[`…………………`,(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `}),`……………………………………………………………………░…………………………▒…………`]})]})}):(0,c.jsx)(i,{width:l,children:(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{color:`claude`,children:[t,` `]}),(0,c.jsxs)(n,{dimColor:!0,children:[`v`,`2.6.8`,` `]})]}),(0,c.jsx)(n,{children:`…………………………………………………………………………………………………………………………………………………………`}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{children:` * █████▓▓░ `}),(0,c.jsx)(n,{children:` * ███▓░ ░░ `}),(0,c.jsx)(n,{children:` ░░░░░░ ███▓░ `}),(0,c.jsx)(n,{children:` ░░░ ░░░░░░░░░░ ███▓░ `}),(0,c.jsxs)(n,{children:[(0,c.jsx)(n,{children:` ░░░░░░░░░░░░░░░░░░░ `}),(0,c.jsx)(n,{bold:!0,children:`*`}),(0,c.jsx)(n,{children:` ██▓░░ ▓ `})]}),(0,c.jsx)(n,{children:` ░▓▓███▓▓░ `}),(0,c.jsx)(n,{dimColor:!0,children:` * ░░░░ `}),(0,c.jsx)(n,{dimColor:!0,children:` ░░░░░░░░ `}),(0,c.jsx)(n,{dimColor:!0,children:` ░░░░░░░░░░░░░░░░ `}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{dimColor:!0,children:`*`}),(0,c.jsx)(n,{children:` `})]}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{color:`clawd_body`,children:`▗`}),(0,c.jsxs)(n,{color:`clawd_background`,backgroundColor:`clawd_body`,children:[` `,`▗`,` `,`▖`,` `]}),(0,c.jsx)(n,{color:`clawd_body`,children:`▖`}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{bold:!0,children:`*`}),(0,c.jsx)(n,{children:` `})]}),(0,c.jsxs)(n,{children:[` `,(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `.repeat(9)}),` * `]}),(0,c.jsxs)(n,{children:[`…………………`,(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `}),(0,c.jsx)(n,{children:` `}),(0,c.jsx)(n,{backgroundColor:`clawd_body`,children:` `}),`………………………………………………………………………………………………………………`]})]})})}export{u as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,o as n}from"./api-O4eHGLTY.js";n();export{t as fetchCodeSessionsFromSessionsAPI,e as getOAuthHeaders};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./asciicast-o5Zg4dJt.js";export{e as renameRecordingForSession};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,s as t}from"./assistant-D5Tg_1ry.js";e();export{t as isAssistantMode};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Cb as e,Sb as t,bb as n,xb as r}from"./loadAgentsDir-DF6FgRn-.js";e();export{n as authLogin,r as authLogout,t as authStatus};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./backgroundHousekeeping-BG_UYxFF.js";export{e as startBackgroundHousekeeping};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,o as n,t as r}from"./bridgeConfig-C_GoD1k5.js";e();export{r as getBridgeAccessToken,t as getBridgeBaseUrl,n as isSelfHostedBridge};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./bridgeEnabled-cSK8a7tN.js";t();export{n as checkBridgeMinVersion,e as getBridgeDisabledReason};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./bridgeMain-QbfEOTqV.js";export{e as bridgeMain};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./caches-DGW9ovtw.js";e();export{t as clearSessionCaches};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{SA as e,vA as t}from"./loadAgentsDir-DF6FgRn-.js";t();export{e as settingsChangeDetector};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t}from"./channelNotification-n7Avue-9.js";t();export{e as ChannelPermissionRequestNotificationSchema};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./conversation-CRoOMglD.js";var r;e((()=>{t(),r=async(e,t)=>(await n(t),{type:`text`,value:``})}))();export{r as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{la as e,ua as t}from"./paths-o5iA-EnQ.js";t();export{e as getOrganizationUUID};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Gi as e,Xi as t,zi as n}from"./loadAgentsDir-DF6FgRn-.js";t();export{n as clearCommandsCache,e as getCommands};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e,l as t}from"./commitAttribution-q7SEukgl.js";t();export{e as isInternalModelRepo};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./context-noninteractive-CFlod2Eg.js";t();export{n as call,e as collectContextData};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./conversation-CRoOMglD.js";e();export{t as clearConversation};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n,r}from"./createSession-rRZIkjl3.js";t();export{n as createBridgeSession,r as getBridgeSession,e as updateBridgeSessionTitle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./datadog-Bb65d6yd.js";t();export{e as shutdownDatadog};
|