@readmagic/workmate 0.0.1 → 0.0.2
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-BSLHrjbt.js → AddWorkspaceDirectory-BgNp7glC.js} +1 -1
- package/dist/chunks/{App-DY5O6IKw.js → App-Coboqa8H.js} +1 -1
- package/dist/chunks/ApproveApiKey-CQsQdQBC.js +1 -0
- package/dist/chunks/{ApproveApiKey-BEzfC6r3.js → ApproveApiKey-CYpBbj0k.js} +1 -1
- package/dist/chunks/{AssistantSessionChooser-Ce3PraaD.js → AssistantSessionChooser-DxKsTdqj.js} +1 -1
- package/dist/chunks/{BackgroundTasksDialog-Dvhcgahe.js → BackgroundTasksDialog-AiVi-1pI.js} +1 -1
- package/dist/chunks/{BypassPermissionsModeDialog-B68V1bCq.js → BypassPermissionsModeDialog-Cx3QGFz-.js} +1 -1
- package/dist/chunks/{ClaudeMdExternalIncludesDialog-CTWhpIm8.js → ClaudeMdExternalIncludesDialog-BAK9fxwg.js} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DUu6iRJk.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-DVTPwR5I.js +1 -0
- package/dist/chunks/{DesktopHandoff-BRbU4is4.js → DesktopHandoff-BsHgLlTy.js} +1 -1
- package/dist/chunks/{DiffDialog-CBluIK-x.js → DiffDialog-BgTW2Znv.js} +1 -1
- package/dist/chunks/{Doctor-WxNv49HC.js → Doctor-BXhz8eUa.js} +1 -1
- package/dist/chunks/Doctor-D75dsEyb.js +1 -0
- package/dist/chunks/{ExitFlow-CRPgptCN.js → ExitFlow-B1XNACQP.js} +1 -1
- package/dist/chunks/{Feedback-CEtzaLr3.js → Feedback-Cvz80lAn.js} +1 -1
- package/dist/chunks/Grove-B7hhBvFw.js +1 -0
- package/dist/chunks/{Grove--kttLxvs.js → Grove-Dsi4yU08.js} +1 -1
- package/dist/chunks/{HybridTransport-BgV5_7Az.js → HybridTransport-8qA64lCx.js} +1 -1
- package/dist/chunks/{InvalidConfigDialog-DCGwXW_p.js → InvalidConfigDialog-CAZ1z5WG.js} +1 -1
- package/dist/chunks/{InvalidSettingsDialog-jTwsdXWr.js → InvalidSettingsDialog-D82Qk_MR.js} +1 -1
- package/dist/chunks/{MCPConnectionManager-BX0LMz9J.js → MCPConnectionManager-BLfKm4H2.js} +1 -1
- package/dist/chunks/{McpParsingWarnings-WQrWJeWP.js → McpParsingWarnings-8ZueNqAd.js} +1 -1
- package/dist/chunks/{MessageSelector-_UZB8cGb.js → MessageSelector-DmKtBYX9.js} +1 -1
- package/dist/chunks/Messages-CaFdI1kk.js +11 -0
- package/dist/chunks/{Onboarding-BoIVNCgc.js → Onboarding-CUztnbbv.js} +1 -1
- package/dist/chunks/{OverageCreditUpsell-1FCN8bH3.js → OverageCreditUpsell-DSgrZvMv.js} +1 -1
- package/dist/chunks/{PluginSettings-BD9JLV9-.js → PluginSettings-0FSNch8O.js} +1 -1
- package/dist/chunks/{PromptInputFooterSuggestions-CrGST0Cq.js → PromptInputFooterSuggestions-IaihWay3.js} +1 -1
- package/dist/chunks/{PromptInputHelpMenu-B2TDpbpw.js → PromptInputHelpMenu-okS2rQ4k.js} +1 -1
- package/dist/chunks/{QueryEngine-D2HUnwmU.js → QueryEngine-WYDWzQuY.js} +1 -1
- package/dist/chunks/{REPL-BV4WyYMg.js → REPL-Dto012J0.js} +7 -7
- package/dist/chunks/REPL-vV_jzAVx.js +1 -0
- package/dist/chunks/{RemoteCallout-DS_EV6Fh.js → RemoteCallout-C_UIYnuT.js} +1 -1
- package/dist/chunks/RemoteSessionManager-CuSSHAXN.js +2 -0
- package/dist/chunks/{ResumeConversation-Cw3vP4G8.js → ResumeConversation-g_JyOWbl.js} +1 -1
- package/dist/chunks/{SSETransport-BXiEBMpb.js → SSETransport-Chj_yfPv.js} +1 -1
- package/dist/chunks/SearchExtraToolsTool-Daedym7_.js +1 -0
- package/dist/chunks/{Settings-ns6mRsDc.js → Settings-DUXA-qac.js} +2 -2
- package/dist/chunks/{TeleportProgress-CcDzMC5L.js → TeleportProgress-DP1a8jit.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-DZbxl4sD.js → TeleportRepoMismatchDialog-B6sTwXuZ.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-EowJO5nm.js → TeleportResumeWrapper-CKUuRQSG.js} +1 -1
- package/dist/chunks/{ThemePicker-BYbChJpu.js → ThemePicker-Dyq1YVhb.js} +1 -1
- package/dist/chunks/{TrustDialog-DA3YTk_k.js → TrustDialog-CdZS9t-T.js} +1 -1
- package/dist/chunks/{ValidationErrorsList-Cx-hoRwG.js → ValidationErrorsList-DUNh4BNa.js} +1 -1
- package/dist/chunks/WelcomeV2-TPbOXGrO.js +1 -0
- package/dist/chunks/{add-dir-CWt69NAZ.js → add-dir-Bf_5tCeR.js} +1 -1
- package/dist/chunks/{agentDisplay-CQ4mZWFH.js → agentDisplay-CCeYiAta.js} +1 -1
- package/dist/chunks/{agents-D4clhuCl.js → agents-Bt72Gz1v.js} +1 -1
- package/dist/chunks/{agents-C6jzKOit.js → agents-T8xHY5Wk.js} +1 -1
- package/dist/chunks/{allErrors-HMPqE0jK.js → allErrors-CDWTJcMw.js} +1 -1
- package/dist/chunks/{ant-9Z5bppVC.js → ant-DRF-v5bA.js} +1 -1
- package/dist/chunks/api-CLLIHLpn.js +1 -0
- package/dist/chunks/api-DMpNA1s8.js +1 -0
- package/dist/chunks/asciicast-BIr75_x9.js +1 -0
- package/dist/chunks/{asciicast-n-BBfgDq.js → asciicast-CQJlNTae.js} +1 -1
- package/dist/chunks/{assistant-BA9_Mo9U.js → assistant-C83quuNj.js} +1 -1
- package/dist/chunks/{assistant-BiNOSla3.js → assistant-z1ojxEET.js} +1 -1
- package/dist/chunks/assistant-z2o4-UJe.js +1 -0
- package/dist/chunks/auth-Ce0jllLf.js +1 -0
- package/dist/chunks/auth-DV3P8Qup.js +1 -0
- package/dist/chunks/{auth-DHyCIxCk.js → auth-DpFfHy1W.js} +1 -1
- package/dist/chunks/{autoMode-Db4QrgFr.js → autoMode-DW_H3i37.js} +3 -3
- package/dist/chunks/{autonomy-BkAMA7du.js → autonomy-46hnmyAi.js} +1 -1
- package/dist/chunks/{autonomy-D4Vy-RPQ.js → autonomy-OxhciwYa.js} +1 -1
- package/dist/chunks/{autonomyPanel-EjfO8jvg.js → autonomyPanel-CTEjq0Bd.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-BycL9lOe.js +1 -0
- package/dist/chunks/{backgroundHousekeeping-hDDE8mJC.js → backgroundHousekeeping-Cpxq4krt.js} +2 -2
- package/dist/chunks/{banner-hD6wZygx.js → banner-BVkLvJiB.js} +1 -1
- package/dist/chunks/bg-H849G7Sc.js +1 -0
- package/dist/chunks/{bg-DQ0Q3Qv-.js → bg-zWGqkcST.js} +2 -2
- package/dist/chunks/{branch-CeQ9IyZk.js → branch-DJzijRGm.js} +1 -1
- package/dist/chunks/{break-cache-Bd0clV2N.js → break-cache-BQfgkNAo.js} +2 -2
- package/dist/chunks/{bridge-yerAiaK2.js → bridge-Dpr2AWpc.js} +2 -2
- package/dist/chunks/bridgeConfig-CcANVX0P.js +1 -0
- package/dist/chunks/{bridgeConfig-CCtXe8ak.js → bridgeConfig-DDF3teRE.js} +1 -1
- package/dist/chunks/bridgeEnabled-Cn-u7P4_.js +1 -0
- package/dist/chunks/{bridgeEnabled--F-6TUi4.js → bridgeEnabled-D4JDZd0y.js} +1 -1
- package/dist/chunks/{bridgeMain--R1HFbOv.js → bridgeMain-CtgVyLjI.js} +7 -7
- package/dist/chunks/bridgeMain-Dh0gWRVo.js +1 -0
- package/dist/chunks/{bridgeMessaging-CqbLTDcx.js → bridgeMessaging-CRG6HqUb.js} +1 -1
- package/dist/chunks/{bridgePointer-W_jdQ8zf.js → bridgePointer-Cug5fQ3e.js} +1 -1
- package/dist/chunks/{browser-Bd7GeBH1.js → browser-BKiu1max.js} +1 -1
- package/dist/chunks/{btw-CVGRmL9a.js → btw-DG9CCeq4.js} +1 -1
- package/dist/chunks/{caches-BtmAri4e.js → caches-BB5_91gU.js} +2 -2
- package/dist/chunks/caches-C3NINY3K.js +1 -0
- package/dist/chunks/{ccrClient-HqMi5Kfu.js → ccrClient-CRXGlUCe.js} +1 -1
- package/dist/chunks/{claudeDesktop-aUMx06RK.js → claudeDesktop-9xfIgkzE.js} +1 -1
- package/dist/chunks/{clear-C6nRzIQE.js → clear-ueMvDelv.js} +1 -1
- package/dist/chunks/{cliLaunch-2AUoMnqx.js → cliLaunch-BJ9o-rIV.js} +1 -1
- package/dist/chunks/client-AnWHs0gW.js +1 -0
- package/dist/chunks/{color-DXI_4ibU.js → color-B0-MIfsq.js} +1 -1
- package/dist/chunks/commands-DsKH3ogN.js +1 -0
- package/dist/chunks/commitAttribution-D7NrwLhc.js +1 -0
- package/dist/chunks/{commitAttribution-Cm40fdNU.js → commitAttribution-DKun9CeU.js} +1 -1
- package/dist/chunks/{compact-DPTVpJ4D.js → compact-BhWCO-oD.js} +1 -1
- package/dist/chunks/completionCache-C9zlWBRz.js +1 -0
- package/dist/chunks/{completionCache-BQaLkB4d.js → completionCache-CdHCuiqq.js} +2 -2
- package/dist/chunks/{config-C7YHKCPV.js → config-662VDD70.js} +1 -1
- package/dist/chunks/config-CUN8YbOa.js +1 -0
- package/dist/chunks/{config-CLmFk-5V.js → config-DklnhNx1.js} +1 -1
- package/dist/chunks/config-Wk3svGdH.js +1 -0
- package/dist/chunks/{context-C_cKrBUn.js → context-DBswG0EY.js} +1 -1
- package/dist/chunks/context-noninteractive-C3dICmA9.js +1 -0
- package/dist/chunks/{context-noninteractive-DnH6Q9Lu.js → context-noninteractive-CTvyNimw.js} +1 -1
- package/dist/chunks/{conversation-GJxfkr6M.js → conversation-CooSju3g.js} +1 -1
- package/dist/chunks/conversation-DLLIOKYV.js +1 -0
- package/dist/chunks/{createSSHSession--bWmmIk9.js → createSSHSession-BdO35H6o.js} +1 -1
- package/dist/chunks/{createSession-DIr4sUp6.js → createSession-Br1g8qSD.js} +1 -1
- package/dist/chunks/createSession-CVG8SiEm.js +1 -0
- package/dist/chunks/{crossProjectResume-DKrtjTpm.js → crossProjectResume-DiKJb83I.js} +1 -1
- package/dist/chunks/cwd--nvsx73T.js +1 -0
- package/dist/chunks/{cwd-BuJhkTrc.js → cwd-CYmmnQVS.js} +1 -1
- package/dist/chunks/{daemon-B9lBPdBJ.js → daemon-BQiSFjc-.js} +1 -1
- package/dist/chunks/{datadog-DNCsyfSO.js → datadog-BE6D_6m0.js} +1 -1
- package/dist/chunks/datadog-C69i7cfI.js +1 -0
- package/dist/chunks/debug-8kgDrUfj.js +1 -0
- package/dist/chunks/{debug-IKW-jE7K.js → debug-DiuXEmUq.js} +1 -1
- package/dist/chunks/{debugUtils-D2981c0Z.js → debugUtils-3YYWvb3H.js} +1 -1
- package/dist/chunks/{desktop-B5cvrcOQ.js → desktop-W7SA8BFk.js} +1 -1
- package/dist/chunks/{detached-rfIUyc-B.js → detached-Cv9gAylK.js} +1 -1
- package/dist/chunks/{detectRepository-ReZ0Fz8Z.js → detectRepository-B1PMTLAU.js} +1 -1
- package/dist/chunks/detectRepository-_Kj817Vi.js +1 -0
- package/dist/chunks/{diff-cXAp9cNN.js → diff-CMtRjFUb.js} +1 -1
- package/dist/chunks/{directoryCompletion-DBM2o5kx.js → directoryCompletion-CeV63gvu.js} +1 -1
- package/dist/chunks/doctor-DEz8BHAz.js +1 -0
- package/dist/chunks/{effort-Br8KKHdx.js → effort-BAlVDBHq.js} +1 -1
- package/dist/chunks/{entry-4lIRMrLI.js → entry-DLqeVq5C.js} +2 -2
- package/dist/chunks/envLessBridgeConfig-3kCrKZl7.js +1 -0
- package/dist/chunks/envLessBridgeConfig-BfgXw47_.js +1 -0
- package/dist/chunks/{execFileNoThrow-COKYqVQj.js → execFileNoThrow-DResQRvR.js} +1 -1
- package/dist/chunks/{execSyncWrapper-DZJ3tNWF.js → execSyncWrapper-CWxMek26.js} +1 -1
- package/dist/chunks/{exit-Z9oWrqE4.js → exit-cyepwuyy.js} +1 -1
- package/dist/chunks/extra-usage-DlFeNGQD.js +1 -0
- package/dist/chunks/{extra-usage-core-CdL1ltqq.js → extra-usage-core-Dh4rVUI-.js} +1 -1
- package/dist/chunks/{extra-usage-DtAIhW74.js → extra-usage-nRFfBiXh.js} +1 -1
- package/dist/chunks/{extra-usage-noninteractive-DxxRI0Yx.js → extra-usage-noninteractive-D4Ya5KPm.js} +1 -1
- package/dist/chunks/{extraUsage-BYZdi44Y.js → extraUsage-DtWi8E78.js} +1 -1
- package/dist/chunks/extractMemories-BqN8fWZ5.js +1 -0
- package/dist/chunks/{fast-DKqiojzf.js → fast-DkUxqWhE.js} +1 -1
- package/dist/chunks/fast-NvqW2-t1.js +1 -0
- package/dist/chunks/{feedback-yB19xph5.js → feedback-Cn7Sbqxa.js} +1 -1
- package/dist/chunks/{file-D1cN3LMK.js → file-BZriE-XU.js} +1 -1
- package/dist/chunks/{files-DAzGtmzz.js → files-Cz1-PK3r.js} +1 -1
- package/dist/chunks/firstPartyEventLogger-AhXYSrkP.js +1 -0
- package/dist/chunks/{firstPartyEventLogger-hU-LPkje.js → firstPartyEventLogger-BQYrBdvD.js} +2 -2
- package/dist/chunks/{flushGate-ZFr8yv7F.js → flushGate-ebqQZF1t.js} +1 -1
- package/dist/chunks/{gemini-DqAv8_GY.js → gemini-Sr_00TsL.js} +1 -1
- package/dist/chunks/{generateRecap-lO2PDlx8.js → generateRecap-5d4l_ODy.js} +1 -1
- package/dist/chunks/{generateSessionName-48veu5dv.js → generateSessionName-DEAw5x_h.js} +1 -1
- package/dist/chunks/{genericProcessUtils-F1Qcb1sO.js → genericProcessUtils-DO7Fy0RJ.js} +1 -1
- package/dist/chunks/git-Cc1jAz6r.js +1 -0
- package/dist/chunks/{git-tyaWOgRL.js → git-Cgc8X5l2.js} +2 -2
- package/dist/chunks/{githubRepoPathMapping-BlR0BphY.js → githubRepoPathMapping-Tt-LdYFZ.js} +1 -1
- package/dist/chunks/{goal-Bn8Kz2Dp.js → goal-DCaI1NPN.js} +1 -1
- package/dist/chunks/{grok-DhnO_KDC.js → grok-CKlngG3b.js} +1 -1
- package/dist/chunks/{grove-DotW04-v.js → grove-DSWe6psK.js} +1 -1
- package/dist/chunks/{heapdump-DkZSKNbp.js → heapdump-OVbV05On.js} +1 -1
- package/dist/chunks/{help-DU_BcZtU.js → help-CRtX5VX9.js} +1 -1
- package/dist/chunks/hooks-DvtnNoYE.js +1 -0
- package/dist/chunks/{hooks-BTMWE5Qx.js → hooks-tpf90xd5.js} +1 -1
- package/dist/chunks/{hostGuard-Dh296c6q.js → hostGuard-t7QfbijF.js} +1 -1
- package/dist/chunks/{inboundAttachments-DVs3_m48.js → inboundAttachments-BZ6MKpxd.js} +1 -1
- package/dist/chunks/inboundAttachments-D5Ux2kCl.js +1 -0
- package/dist/chunks/{initReplBridge-D0Xec8S-.js → initReplBridge-CjuO6in6.js} +1 -1
- package/dist/chunks/{install-BkfXeXpv.js → install-DqpM2brU.js} +1 -1
- package/dist/chunks/{instrumentation-H0XRS1yG.js → instrumentation--Sx0y1Gk.js} +3 -3
- package/dist/chunks/{job-DKtLkF8V.js → job-D7B35Usp.js} +1 -1
- package/dist/chunks/{jwtUtils-C-ojmb8W.js → jwtUtils-CqXPjf-a.js} +1 -1
- package/dist/chunks/{keybindings-ez51eHHp.js → keybindings-JvAmBpLt.js} +1 -1
- package/dist/chunks/{language-BuRSO2sR.js → language-8Rnu_qxl.js} +1 -1
- package/dist/chunks/language-DaxZe0Xw.js +1 -0
- package/dist/chunks/{launchAgentsPlatform-BQyPdrHp.js → launchAgentsPlatform-CNPkOVzu.js} +1 -1
- package/dist/chunks/{launchLocalMemory-CWHAj7CX.js → launchLocalMemory-BxmDhENs.js} +1 -1
- package/dist/chunks/{launchLocalVault-D8iJdtsP.js → launchLocalVault-DQlTGA-g.js} +1 -1
- package/dist/chunks/{launchMemoryStores-W7jWG2uH.js → launchMemoryStores-EYAwxI8i.js} +1 -1
- package/dist/chunks/{launchOnboarding-q__LaLy1.js → launchOnboarding-CTu5Zf4E.js} +1 -1
- package/dist/chunks/{launchSchedule-BWi9F5vh.js → launchSchedule-CeHHSvO7.js} +1 -1
- package/dist/chunks/{launchSkillStore-4wd4MQBc.js → launchSkillStore-Bqh2Fru2.js} +1 -1
- package/dist/chunks/{launchTeleport-BlCf2QM_.js → launchTeleport-Crc3XVZX.js} +1 -1
- package/dist/chunks/{launchVault-C7u7LZV7.js → launchVault-BHLgpth_.js} +1 -1
- package/dist/chunks/loadAgentsDir-D7npVvsj.js +1 -0
- package/dist/chunks/{loadAgentsDir-nzr38hai.js → loadAgentsDir-ZQwvbURI.js} +66 -66
- package/dist/chunks/{loadPluginHooks-z1-zvBLw.js → loadPluginHooks-CaKvZVZI.js} +1 -1
- package/dist/chunks/localSearch-BU5oulbF.js +1 -0
- package/dist/chunks/{localSearch-B-L_ldos.js → localSearch-H0LchlTi.js} +1 -1
- package/dist/chunks/{log-B3eB4EFv.js → log-Duzb4o6h.js} +1 -1
- package/dist/chunks/{logoV2Utils-RQ160dI2.js → logoV2Utils-5lcUu53m.js} +1 -1
- package/dist/chunks/{magicDocs-BqZ0GewA.js → magicDocs-D1FIPmYg.js} +1 -1
- package/dist/chunks/main-B8XtFN2P.js +859 -0
- package/dist/chunks/{main-DeFMhaFE.js → main-CR7cXdgy.js} +3 -3
- package/dist/chunks/{mappers-CWykjGfP.js → mappers-DKU4RgE3.js} +1 -1
- package/dist/chunks/{mcp-DBwT4pa9.js → mcp-B06Mqsur.js} +4 -4
- package/dist/chunks/{mcp-DvZTaHZE.js → mcp-C0AjA07u.js} +1 -1
- package/dist/chunks/{mcp-CSFPAfaW.js → mcp-ghioDl7W.js} +1 -1
- package/dist/chunks/{memoize-BO31Ws9Q.js → memoize-DgMjqLtn.js} +1 -1
- package/dist/chunks/{memory-DcpPpYN0.js → memory-D-Q62bJ7.js} +1 -1
- package/dist/chunks/{metadata-BRLJvh61.js → metadata-CIx5CsoY.js} +1 -1
- package/dist/chunks/{mode-BkViT_0o.js → mode-DFZgqKBd.js} +1 -1
- package/dist/chunks/{model-DfFA3qMO.js → model-BgrLt7P7.js} +1 -1
- package/dist/chunks/model-aVc5c3Lz.js +1 -0
- package/dist/chunks/{model-CZktWw6o.js → model-fDWtIRVr.js} +1 -1
- package/dist/chunks/{nativeInstaller-GcIk7G2Y.js → nativeInstaller-DKe1pWoL.js} +1 -1
- package/dist/chunks/{onChangeAppState-DwGVi-BC.js → onChangeAppState-DaQ0R9Tw.js} +1 -1
- package/dist/chunks/{openai-B2wxZDQx.js → openai-DNS0-ivj.js} +1 -1
- package/dist/chunks/{overageCreditGrant-CjK49axw.js → overageCreditGrant-qHN3tnp2.js} +1 -1
- package/dist/chunks/{panel-R4ue6pSW.js → panel-Be-OxtqL.js} +1 -1
- package/dist/chunks/{panel-B-nrcHpm.js → panel-CrTPqXCv.js} +1 -1
- package/dist/chunks/{panelCall-I_fbgub5.js → panelCall-BvKpHquo.js} +1 -1
- package/dist/chunks/parser-Bj3gOqFv.js +1 -0
- package/dist/chunks/{parser-CQrasoUB.js → parser-TYEkLFgh.js} +1 -1
- package/dist/chunks/{partition-CxRF7T-f.js → partition-Cv11dD5P.js} +1 -1
- package/dist/chunks/{passes-U_h-hNu-.js → passes-DQdM2Ssq.js} +1 -1
- package/dist/chunks/{path-BCSE0S-c.js → path-Cu_AKqg6.js} +1 -1
- package/dist/chunks/{permissions-B8epy16o.js → permissions-DB_2mmCl.js} +1 -1
- package/dist/chunks/{pidLock-CBJDnBG_.js → pidLock-DchmaAK6.js} +2 -2
- package/dist/chunks/{pipeTransport-D3Qx9v1V.js → pipeTransport-7GIO6GCA.js} +1 -1
- package/dist/chunks/{plan-BAhStVci.js → plan-D8dQDl8W.js} +1 -1
- package/dist/chunks/{platform-EtecGacO.js → platform-B5dCGT8t.js} +1 -1
- package/dist/chunks/{plugin-D9huNnv6.js → plugin-w8MqsKHn.js} +1 -1
- package/dist/chunks/{pluginAutoupdate-BfmyxR5g.js → pluginAutoupdate-7FFHzSRz.js} +1 -1
- package/dist/chunks/{pluginBlocklist-03sZaZa6.js → pluginBlocklist-Cw_l-yal.js} +1 -1
- package/dist/chunks/{pluginCliCommands-P2Ndi1r1.js → pluginCliCommands-BtYWRxhS.js} +1 -1
- package/dist/chunks/{pluginFlagging-BVy7Xv_0.js → pluginFlagging-_WUQP3Lq.js} +1 -1
- package/dist/chunks/{pluginOperations-Cz37qcjF.js → pluginOperations-BOkST1qE.js} +1 -1
- package/dist/chunks/{pluginStartupCheck-w24D-wwk.js → pluginStartupCheck-BelpzwZI.js} +1 -1
- package/dist/chunks/pluginStartupCheck-XBLJZZys.js +1 -0
- package/dist/chunks/{plugins-B0hiIN4q.js → plugins-6px6K1fh.js} +1 -1
- package/dist/chunks/policyLimits-C07tQ0Wr.js +1 -0
- package/dist/chunks/{poor-CfbMKZNJ.js → poor-D3T_8wwf.js} +1 -1
- package/dist/chunks/poorMode-BdBDiOFD.js +1 -0
- package/dist/chunks/{poorMode-Bsw2V-V_.js → poorMode-BqyVuBu-.js} +1 -1
- package/dist/chunks/{print-ozjC0Mhg.js → print-DcQSuK0v.js} +4 -4
- package/dist/chunks/{privacy-settings-DeGoBRrZ.js → privacy-settings-D5zxu4Aa.js} +1 -1
- package/dist/chunks/{processBashCommand-loWZ8MSE.js → processBashCommand-CEqA4QZi.js} +1 -1
- package/dist/chunks/{processSlashCommand-BdouajZb.js → processSlashCommand-DMpFk59M.js} +1 -1
- package/dist/chunks/prompt-CKvoqUC3.js +1 -0
- package/dist/chunks/prompt-aXZPR3q8.js +1 -0
- package/dist/chunks/{prompt-Bef63FhB.js → prompt-wys9CwDo.js} +1 -1
- package/dist/chunks/{promptEditor-foiayhdY.js → promptEditor-D6HzjcMS.js} +1 -1
- package/dist/chunks/{protocolHandler-BsiB1oW_.js → protocolHandler-BXlx1N7v.js} +1 -1
- package/dist/chunks/{proxy-Cn2YwITp.js → proxy-CHnxhNZI.js} +1 -1
- package/dist/chunks/{rate-limit-options-DTJPDcTr.js → rate-limit-options-1hc-RyNR.js} +1 -1
- package/dist/chunks/{rcDebugLog-BUuD-X1D.js → rcDebugLog-CivJaJ3V.js} +1 -1
- package/dist/chunks/{reconciler-DqXTmV3J.js → reconciler-BKX4jh34.js} +1 -1
- package/dist/chunks/{referral-DP_GshTS.js → referral-Cu9bEOFE.js} +1 -1
- package/dist/chunks/{refresh-CNzXPAFw.js → refresh-vJbxW4a1.js} +1 -1
- package/dist/chunks/{registerProtocol-CjxlFsKw.js → registerProtocol-B_XbLDQO.js} +3 -3
- package/dist/chunks/{release-notes-BxgK8zWO.js → release-notes-CavWoMQR.js} +1 -1
- package/dist/chunks/{releaseNotes-CbSktIJW.js → releaseNotes-Di6OaHF7.js} +2 -2
- package/dist/chunks/{reload-plugins-CDu6yU5-.js → reload-plugins-ofeLn07p.js} +1 -1
- package/dist/chunks/{remote-env-B4HnhISc.js → remote-env-dXzHAuD6.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-D-wG5jau.js → remoteBridgeCore-CmwkjiTK.js} +1 -1
- package/dist/chunks/{remoteManagedSettings-B7gt0VAX.js → remoteManagedSettings-Co-CxR67.js} +1 -1
- package/dist/chunks/{rename-DlbMb24l.js → rename-CtjP0lop.js} +1 -1
- package/dist/chunks/{renderOptions-5kWQpVr2.js → renderOptions-DOXmueQV.js} +1 -1
- package/dist/chunks/{resume-BB5iBogS.js → resume-C5h5JvY1.js} +1 -1
- package/dist/chunks/{ripgrep-BvDwiKJ3.js → ripgrep-BN_g-F7X.js} +1 -1
- package/dist/chunks/ripgrep-hOjrgpMp.js +1 -0
- package/dist/chunks/{runtimeObserver-Ci-5gvYg.js → runtimeObserver-B93v1AxE.js} +2 -2
- package/dist/chunks/{runtimeObserver-BNH2WGE3.js → runtimeObserver-DOZFrqJu.js} +1 -1
- package/dist/chunks/sandbox-adapter-CO5GuywY.js +1 -0
- package/dist/chunks/{sandbox-toggle-B2Yk4y2V.js → sandbox-toggle-TiLGFwaZ.js} +1 -1
- package/dist/chunks/searchExtraTools-CXZJU2Kv.js +1 -0
- package/dist/chunks/{session-Bmx7L3Mt.js → session-v9tKHhU9.js} +1 -1
- package/dist/chunks/{sessionDiscovery-DcEAr5vJ.js → sessionDiscovery-4byQKOnc.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-BUyIQVzL.js +1 -0
- package/dist/chunks/sessionMemory-ZsxCLHYd.js +1 -0
- package/dist/chunks/{sessionMemory-Bsg2unYX.js → sessionMemory-e6YpTUhW.js} +1 -1
- package/dist/chunks/sessionMemoryUtils-BD_dqyYB.js +1 -0
- package/dist/chunks/sessionObserver-DNItJztR.js +1 -0
- package/dist/chunks/{sessionObserver-DQwHsDrM.js → sessionObserver-OgY9BUP4.js} +1 -1
- package/dist/chunks/sessionStorage-xvxpRETp.js +1 -0
- package/dist/chunks/{sessionTitle-B8jcexkQ.js → sessionTitle-Bph6GO4F.js} +1 -1
- package/dist/chunks/{sessionTracing-BuLsL6qA.js → sessionTracing-BBxhPccY.js} +1 -1
- package/dist/chunks/{settings-5PQdphqC.js → settings-BhvhCpVh.js} +2 -2
- package/dist/chunks/settingsSync-D2B5K4BT.js +1 -0
- package/dist/chunks/{setup-BKEnSLR9.js → setup-CEnNEK6Z.js} +2 -2
- package/dist/chunks/{shadowedRuleDetection-7Z8ezTKF.js → shadowedRuleDetection-DDSOFi1W.js} +1 -1
- package/dist/chunks/{shellQuote-fB02N16J.js → shellQuote-yXoC_y5m.js} +1 -1
- package/dist/chunks/{sideQuestion-CYdNATPW.js → sideQuestion-CAiA6jAf.js} +1 -1
- package/dist/chunks/sink-CyKOf5TT.js +1 -0
- package/dist/chunks/{sink-DjKoYMsA.js → sink-DxPJ4khU.js} +1 -1
- package/dist/chunks/{sinks-GryGVRT8.js → sinks-BNo3DvxO.js} +2 -2
- package/dist/chunks/sinks-CHgtwDha.js +1 -0
- package/dist/chunks/{skill-learning-E8tQed-Q.js → skill-learning-Dx1o4mMo.js} +1 -1
- package/dist/chunks/{skillChangeDetector-A8SAuyo9.js → skillChangeDetector-BRBCwQ2w.js} +1 -1
- package/dist/chunks/{skillGapStore-B5rl12bV.js → skillGapStore-BV_6qzxU.js} +1 -1
- package/dist/chunks/{skillGapStore-CjJrxxjk.js → skillGapStore-Zvqiyxds.js} +2 -2
- package/dist/chunks/{skillGenerator-BDR_z3-X.js → skillGenerator-jJQDphQ8.js} +2 -2
- package/dist/chunks/skillLearning-BH7EAU1m.js +1 -0
- package/dist/chunks/{skillLearning-BQtfFE0g.js → skillLearning-BTT3_yGc.js} +1 -1
- package/dist/chunks/{skillPanel-yR8Oi-mO.js → skillPanel-OW2M6SZr.js} +3 -3
- package/dist/chunks/{skillSearchPanel-DUQQUCUS.js → skillSearchPanel-C0Y56c5N.js} +4 -4
- package/dist/chunks/{skills-NAZQ3j-t.js → skills-BFsyLP33.js} +1 -1
- package/dist/chunks/{startupProfiler-DxRQteII.js → startupProfiler-BquH_Yqm.js} +1 -1
- package/dist/chunks/startupProfiler-CYCH-qos.js +1 -0
- package/dist/chunks/state-BOa-3Av3.js +1 -0
- package/dist/chunks/{state-4KQ3kaqz.js → state-ix0xIunV.js} +1 -1
- package/dist/chunks/{stats-h4yu84Q-.js → stats-CrPmPT8f.js} +1 -1
- package/dist/chunks/{status-BbdeubJG.js → status-BO5J2MAe.js} +1 -1
- package/dist/chunks/{status-is_Bg_IB.js → status-DHJbK4pV.js} +1 -1
- package/dist/chunks/{statusNoticeHelpers-CQ7CUugR.js → statusNoticeHelpers-CqeUBySi.js} +1 -1
- package/dist/chunks/{stickers-qJoNhPk4.js → stickers-BLFmyHZV.js} +1 -1
- package/dist/chunks/{stringUtils-CvXbHQRH.js → stringUtils-D_g2L6A4.js} +1 -1
- package/dist/chunks/systemPromptSections-CR_AoPIX.js +1 -0
- package/dist/chunks/{systemPromptSections-CgpggIYX.js → systemPromptSections-DN0HGVye.js} +1 -1
- package/dist/chunks/{tag-i3HZ4lhj.js → tag-M2AEtXjW.js} +1 -1
- package/dist/chunks/{tasks-HzsYNTZ1.js → tasks-CoOs_Qkj.js} +1 -1
- package/dist/chunks/{teleport-hN3cAbYC.js → teleport-DjIgQeBB.js} +1 -1
- package/dist/chunks/{templateJobs-CIv_ysje.js → templateJobs-Cl50Qw0s.js} +1 -1
- package/dist/chunks/{terminalSetup-CxniwSF-.js → terminalSetup-Bdh9K31U.js} +1 -1
- package/dist/chunks/{terminalSetup-C0PF87iu.js → terminalSetup-nvS3KCDG.js} +1 -1
- package/dist/chunks/{theme-BKIHX_Dx.js → theme-DgCIr0jU.js} +1 -1
- package/dist/chunks/thinkback-BSv_fvbV.js +1 -0
- package/dist/chunks/{thinkback-mT-8FIT-.js → thinkback-ERCQ86CR.js} +1 -1
- package/dist/chunks/{thinkback-play-Cfk49mvF.js → thinkback-play-DNB0IWYt.js} +1 -1
- package/dist/chunks/{tmux-CbsW-VDJ.js → tmux-ZZk68JBq.js} +1 -1
- package/dist/chunks/{toolEventObserver-8FQtxeVv.js → toolEventObserver-9-5Ne25Z.js} +1 -1
- package/dist/chunks/{toolEventObserver-B1xvyKdE.js → toolEventObserver-9XCQXiMx.js} +1 -1
- package/dist/chunks/{toolPool-CHVDZqh7.js → toolPool-uQKZRMKg.js} +1 -1
- package/dist/chunks/trustedDevice-0ej6e3nx.js +1 -0
- package/dist/chunks/{trustedDevice-BYCh1ff7.js → trustedDevice-nqhuw4tp.js} +1 -1
- package/dist/chunks/{tui-fTa_pzdA.js → tui-C2yuCuOU.js} +3 -3
- package/dist/chunks/{types-a7X-tJpJ.js → types-Cnorfsss.js} +1 -1
- package/dist/chunks/{udsClient-Cg9bBD0p.js → udsClient-CiFj4M_h.js} +1 -1
- package/dist/chunks/{ultrareviewCommand-DCFRZsKp.js → ultrareviewCommand-BMBHepdu.js} +1 -1
- package/dist/chunks/undercover-6UUO38fQ.js +1 -0
- package/dist/chunks/{undercover-CsLPQb-a.js → undercover-DDgIKbO5.js} +3 -3
- package/dist/chunks/{up-dO5BcPaq.js → up-D6bNw_tT.js} +1 -1
- package/dist/chunks/{updateCCB-CfUnkOLT.js → updateCCB-B-OlpLjA.js} +1 -1
- package/dist/chunks/{upgrade-kpttjebY.js → upgrade-BN20nsCH.js} +1 -1
- package/dist/chunks/upgrade-DYqlCH80.js +1 -0
- package/dist/chunks/{upload-DDhQqV8n.js → upload-BQGByiXE.js} +1 -1
- package/dist/chunks/{upstreamproxy-CvcjNY7J.js → upstreamproxy-os5rw0Vg.js} +1 -1
- package/dist/chunks/{usage-CJ5w0907.js → usage-D_sqm8us.js} +1 -1
- package/dist/chunks/usage-DolSCKGi.js +1 -0
- package/dist/chunks/{useExitOnCtrlCDWithKeybindings-yAroCqu4.js → useExitOnCtrlCDWithKeybindings-vzUoPY51.js} +1 -1
- package/dist/chunks/useMainLoopModel-cZd8EKo5.js +1 -0
- package/dist/chunks/{useManagePlugins-CTtPaQRP.js → useManagePlugins-DgGZBvXV.js} +1 -1
- package/dist/chunks/{useMergedTools-CZJffsmf.js → useMergedTools-Bb4XbC9d.js} +1 -1
- package/dist/chunks/{useSearchInput-C-CqUK6w.js → useSearchInput-B1UOjxAI.js} +1 -1
- package/dist/chunks/{useSettingsErrors-BWlJCgYF.js → useSettingsErrors-BLbvu4--.js} +1 -1
- package/dist/chunks/{util-DJV0joAW.js → util-CxlfALM4.js} +1 -1
- package/dist/chunks/validatePlugin-n8a4W_jI.js +1 -0
- package/dist/chunks/{vim-n8-UT5w-.js → vim-DLWBHwVM.js} +1 -1
- package/dist/chunks/{which-BBCjXfI2.js → which-sEFQXpaX.js} +1 -1
- package/dist/chunks/windowsPaths-BLevJOlm.js +1 -0
- package/dist/chunks/{windowsPaths-D6T_3XaU.js → windowsPaths-N_YmYY6k.js} +1 -1
- package/dist/chunks/{workSecret-C_lv0dRh.js → workSecret-DvniZR71.js} +1 -1
- package/dist/chunks/{workerRegistry-BdHi7_sN.js → workerRegistry-CFnGtb3L.js} +1 -1
- package/dist/chunks/worktree-Dr_WzlXs.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/ApproveApiKey-DfAPwDix.js +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-BV7HHcgL.js +0 -1
- package/dist/chunks/ConsoleOAuthFlow-CU5fCPKq.js +0 -1
- package/dist/chunks/Doctor-B0CRtxi2.js +0 -1
- package/dist/chunks/Grove-CelgLWH4.js +0 -1
- package/dist/chunks/Messages-jCoW_1Rr.js +0 -11
- package/dist/chunks/REPL-DcpN3MRC.js +0 -1
- package/dist/chunks/RemoteSessionManager-Tx1N2uVL.js +0 -2
- package/dist/chunks/SearchExtraToolsTool-D3VOFq9R.js +0 -1
- package/dist/chunks/WelcomeV2-BTfttGcv.js +0 -1
- package/dist/chunks/api-L2IgleTV.js +0 -1
- package/dist/chunks/api-TgV7fl9V.js +0 -1
- package/dist/chunks/asciicast-DYbkzGCN.js +0 -1
- package/dist/chunks/assistant-YvbVKjVh.js +0 -1
- package/dist/chunks/auth-CEig4Gxp.js +0 -1
- package/dist/chunks/auth-CbGDlhyO.js +0 -1
- package/dist/chunks/backgroundHousekeeping-BNEKWHhH.js +0 -1
- package/dist/chunks/bg-BzG63WOm.js +0 -1
- package/dist/chunks/bridgeConfig-D5dB38xD.js +0 -1
- package/dist/chunks/bridgeEnabled-DKX8-T_H.js +0 -1
- package/dist/chunks/bridgeMain-d06JByZn.js +0 -1
- package/dist/chunks/caches-BuTIAOtY.js +0 -1
- package/dist/chunks/client-BeET1hnC.js +0 -1
- package/dist/chunks/commands-VjcG4qFq.js +0 -1
- package/dist/chunks/commitAttribution-Lb3qUlAR.js +0 -1
- package/dist/chunks/completionCache-CW8lKIgy.js +0 -1
- package/dist/chunks/config-0cRberzR.js +0 -1
- package/dist/chunks/config-BrxKpHpR.js +0 -1
- package/dist/chunks/context-noninteractive-rUZ3ydmJ.js +0 -1
- package/dist/chunks/conversation-oK3aFzqO.js +0 -1
- package/dist/chunks/createSession-DM4acqaC.js +0 -1
- package/dist/chunks/cwd-D-tY2NKc.js +0 -1
- package/dist/chunks/datadog-ByS7LGGa.js +0 -1
- package/dist/chunks/debug-DzZUT2Wv.js +0 -1
- package/dist/chunks/detectRepository-6nw-Aw3v.js +0 -1
- package/dist/chunks/doctor-CTMHXZvQ.js +0 -1
- package/dist/chunks/envLessBridgeConfig-CGuIxFzJ.js +0 -1
- package/dist/chunks/envLessBridgeConfig-D_Jg4fJy.js +0 -1
- package/dist/chunks/extra-usage-BS4aVOt5.js +0 -1
- package/dist/chunks/extractMemories-C4f9JWuI.js +0 -1
- package/dist/chunks/fast-B0OB4x7K.js +0 -1
- package/dist/chunks/firstPartyEventLogger-CdUpe6Lh.js +0 -1
- package/dist/chunks/git-BE_FiJZp.js +0 -1
- package/dist/chunks/hooks-DONAb_nq.js +0 -1
- package/dist/chunks/inboundAttachments-BcEgi49j.js +0 -1
- package/dist/chunks/language-Da4KNbjm.js +0 -1
- package/dist/chunks/loadAgentsDir-Dgd-fzNt.js +0 -1
- package/dist/chunks/localSearch-D-FprOMr.js +0 -1
- package/dist/chunks/main-y7LJ5qUc.js +0 -1243
- package/dist/chunks/model--z4Di9QO.js +0 -1
- package/dist/chunks/parser-BlM_Fk4J.js +0 -1
- package/dist/chunks/pluginStartupCheck-BqUwHcMD.js +0 -1
- package/dist/chunks/policyLimits-Dem-XJ_h.js +0 -1
- package/dist/chunks/poorMode-jvImnkty.js +0 -1
- package/dist/chunks/prompt-C7wd1H_i.js +0 -1
- package/dist/chunks/prompt-DIoNqZvO.js +0 -1
- package/dist/chunks/ripgrep-BQgJ02F9.js +0 -1
- package/dist/chunks/sandbox-adapter-Coe1GDAE.js +0 -1
- package/dist/chunks/searchExtraTools-BnWZ9roi.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-BhdOmW9o.js +0 -1
- package/dist/chunks/sessionMemory-CIbCojm-.js +0 -1
- package/dist/chunks/sessionMemoryUtils-Cjb57wtC.js +0 -1
- package/dist/chunks/sessionObserver-CRU1qWnP.js +0 -1
- package/dist/chunks/sessionStorage-BxDN8qRc.js +0 -1
- package/dist/chunks/settingsSync-BDeuErb5.js +0 -1
- package/dist/chunks/sink-iYxWapbU.js +0 -1
- package/dist/chunks/sinks-jfaIjsRJ.js +0 -1
- package/dist/chunks/skillLearning-C8ihdryM.js +0 -1
- package/dist/chunks/startupProfiler-B0m6crkd.js +0 -1
- package/dist/chunks/state-53JDbNQM.js +0 -1
- package/dist/chunks/systemPromptSections-IePG5K8r.js +0 -1
- package/dist/chunks/thinkback-BA4cMz4D.js +0 -1
- package/dist/chunks/trustedDevice-DnIWErCt.js +0 -1
- package/dist/chunks/undercover-B-kKUWtK.js +0 -1
- package/dist/chunks/upgrade-CngUwvY4.js +0 -1
- package/dist/chunks/usage-eZRwLa77.js +0 -1
- package/dist/chunks/useMainLoopModel-BNFW-g8E.js +0 -1
- package/dist/chunks/validatePlugin-CRmpIGLV.js +0 -1
- package/dist/chunks/windowsPaths-DUKTzBck.js +0 -1
- package/dist/chunks/worktree-YDeHMlHZ.js +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,o as n}from"./rolldown-runtime-DaDcL9Zw.js";import{l as r,o as i}from"./envUtils-DSxRz_kt.js";import{n as a,t as o}from"./figures-5ThXQEtq.js";import{C as s,Gr as c,I as l,N as u,P as d,Pn as f,Rn as p,di as m,fi as h,j as g,mt as _,ot as v,t as y,ui as b,xt as x}from"./src-CDCSSo0U2.js";import{t as S}from"./jsx-runtime-Bb4Xn-E0.js";import{B as C,en as w}from"./state-4KQ3kaqz.js";import{$T as T,$a as E,$o as D,Am as O,Ao as ee,Bu as k,Co as te,Cv as ne,Eg as re,Eu as ie,Fu as A,GD as j,Hg as M,Ho as N,IE as ae,Iu as oe,Lg as se,Lm as ce,Lu as le,Mg as P,Mm as F,Mo as ue,NE as I,Nm as de,No as fe,Og as pe,Po as me,QT as he,Ro as ge,Ru as _e,Sv as ve,TS as ye,Ub as be,Ug as xe,Wb as Se,Xo as Ce,YD as we,YT as L,Zo as Te,bh as Ee,bv as De,cb as Oe,ch as ke,co as Ae,cw as je,cx as Me,dy as Ne,eo as Pe,jm as Fe,jo as Ie,km as Le,lS as Re,lb as ze,lh as Be,lx as Ve,nh as He,po as Ue,qo as We,so as Ge,sw as Ke,tE as qe,th as Je,to as Ye,uS as Xe,ub as Ze,uy as Qe,vv as $e,wo as et,wv as tt,xv as nt,yh as rt,zo as it,zu as at}from"./loadAgentsDir-nzr38hai.js";import{n as ot,t as st}from"./cwd-BuJhkTrc.js";import{d as ct,l as lt,o as ut,p as dt,u as ft}from"./debug-IKW-jE7K.js";import{G as pt,Jt as mt,K as ht,Kt as gt,Ut as _t,Zt as vt,g as yt,n as bt}from"./settings-5PQdphqC.js";import{b as xt,c as R,g as St}from"./config-C7YHKCPV.js";import{B as Ct,L as wt,R as Tt,Y as Et}from"./log-B3eB4EFv.js";import{f as Dt,l as Ot}from"./file-D1cN3LMK.js";import{n as kt,r as At}from"./analytics-BotDBGh0.js";import{S as jt,b as Mt,h as Nt,n as Pt,p as Ft,r as It,t as Lt}from"./startupProfiler-DxRQteII.js";import{l as Rt,o as zt}from"./stringUtils-CvXbHQRH.js";import{Ct as Bt,E as Vt,Et as Ht,Kt as Ut,Ot as Wt,Vt as Gt,_ as Kt,b as qt,vn as Jt,yn as Yt}from"./model-DfFA3qMO.js";import{Cn as Xt,xn as Zt}from"./prompt-Bef63FhB.js";import{C as Qt,y as $t}from"./rcDebugLog-BUuD-X1D.js";import{a as en,o as tn,r as nn,s as rn,t as an}from"./referral-DP_GshTS.js";import{d as on,f as sn,h as cn,p as ln}from"./terminalSetup-C0PF87iu.js";import{n as un,r as dn,t as fn}from"./browser-Bd7GeBH1.js";import{c as pn,r as mn}from"./releaseNotes-CbSktIJW.js";import{a as hn,c as gn,d as _n,i as vn,l as yn,n as bn,o as xn,r as Sn,t as Cn,u as wn}from"./logoV2Utils-RQ160dI2.js";import{n as Tn,t as En}from"./systemTheme-Ceakddth.js";import{n as Dn,r as On}from"./PromptInputFooterSuggestions-CrGST0Cq.js";import{n as kn,t as An}from"./useMainLoopModel-BNFW-g8E.js";import{n as jn,t as Mn}from"./modalContext-DFjKLCB6.js";import{i as Nn,n as Pn,r as Fn,s as In,t as Ln}from"./OverageCreditUpsell-1FCN8bH3.js";import{n as Rn,r as zn,t as Bn}from"./statusNoticeHelpers-CQ7CUugR.js";import{homedir as Vn}from"os";import{relative as Hn}from"path";import{fileURLToPath as Un}from"url";function Wn(e){return Array.isArray?Array.isArray(e):Qn(e)===`[object Array]`}function Gn(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Kn(e){return e==null?``:Gn(e)}function z(e){return typeof e==`string`}function qn(e){return typeof e==`number`}function Jn(e){return e===!0||e===!1||Xn(e)&&Qn(e)==`[object Boolean]`}function Yn(e){return typeof e==`object`}function Xn(e){return Yn(e)&&e!==null}function B(e){return e!=null}function Zn(e){return!e.trim().length}function Qn(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function $n(e){let t=null,n=null,r=null,i=1,a=null;if(z(e)||Wn(e))r=e,t=er(e),n=tr(e);else{if(!Lr.call(e,`name`))throw Error(Pr(`name`));let o=e.name;if(r=o,Lr.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(Fr(tr(o)));t=er(o),n=tr(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function er(e){return Wn(e)?e:e.split(`.`)}function tr(e){return Wn(e)?e.join(`.`):e}function nr(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(B(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!B(s))return;if(a===t.length-1&&(z(s)||qn(s)||Jn(s)||typeof s==`bigint`))n.push(o===void 0?Kn(s):{v:Kn(s),i:o});else if(Wn(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}};return i(e,z(t)?t.split(`.`):t,0),r?n:n[0]}function rr(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=1,a=!1;for(let e=0;e<t.length;e++)t.charCodeAt(e)===32?a||(i++,a=!0):a=!1;if(n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}function ir(e,t,{getFn:n=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){let i=new Ur({getFn:n,fieldNormWeight:r});return i.setKeys(e.map($n)),i.setSources(t),i.create(),i}function ar(e,{getFn:t=V.getFn,fieldNormWeight:n=V.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new Ur({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function or(e=[],t=V.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function sr(e,t,n,{location:r=V.location,distance:i=V.distance,threshold:a=V.threshold,findAllMatches:o=V.findAllMatches,minMatchCharLength:s=V.minMatchCharLength,includeMatches:c=V.includeMatches,ignoreLocation:l=V.ignoreLocation}={}){if(t.length>32)throw Error(Nr(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=0,S=u+d,C=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=S;for(;r<i;)h(t,f+i)<=p?r=i:S=i,i=Math.floor((S-r)/2+r);S=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=or(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function cr(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function lr(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}function ur(e){return e.startsWith(`inverse`)}function dr(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function fr(e,t){let n=e.match(t);return n?n[1]:null}function pr(e,t={}){return e.replace(/\\\|/g,Zr).split(Qr).map(e=>{let n=dr(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<Xr;){let e=Yr[o],n=fr(i,e.multiRegex);n&&(r.push(e.create(n,t)),a=!0)}if(!a)for(o=-1;++o<Xr;){let e=Yr[o],n=fr(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}function mr(...e){ei.push(...e)}function hr(e,t){for(let n=0,r=ei.length;n<r;n+=1){let r=ei[n];if(r.condition(e,t))return new r(e,t)}return new qr(e,t)}function gr(e,t,{auto:n=!0}={}){let r=e=>{if(z(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=hr(e,t)),r}let i=Object.keys(e),a=ii(e);if(!a&&i.length>1&&!ri(e))return r(oi(e));if(ai(e)){let r=a?e[ni.PATH]:i[0],o=a?e[ni.PATTERN]:e[r];if(!z(o))throw Error(Mr(r));let s={keyId:tr(r),pattern:o};return n&&(s.searcher=hr(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];Wn(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return ri(e)||(e=oi(e)),r(e)}function _r(e,{ignoreFieldNorm:t=V.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function vr(e,{ignoreFieldNorm:t=V.ignoreFieldNorm}){e.forEach(e=>{e.score=_r(e.matches,{ignoreFieldNorm:t})})}function yr(e){let t=[];return e.matches.forEach(e=>{if(!B(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function br(e,t,{includeMatches:n=V.includeMatches,includeScore:r=V.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=yr(e)),r&&(a.score=e.score),a})}function xr(e){li.has(e)||(li.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Sr(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||xr(e),t=>t.match(e)||[]):e=>e.match(ci)||[]}function Cr({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=Sr(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=Kr(n)),r(n)}}}function wr(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function Tr(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){wr(e,a,i,r);return}if(o)for(let t=0;t<n;t++){let n=o[t];if(n)if(Array.isArray(n))for(let t of n)wr(e,t.v,i,r);else wr(e,n.v,i,r)}}function Er(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)Tr(r,i,t,n);return r}function Dr(e,t,n,r){Tr(e,t,n,r)}function Or(e,t){let n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[t,n]of r){let r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function kr(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)Or(e,t);let r=e=>{let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],a=new Map;for(let[t,n]of e.docFieldCount)a.set(t>i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,V,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi=t((()=>{Ar=`Incorrect 'index' type`,jr=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,Mr=e=>`Invalid value for key ${e}`,Nr=e=>`Pattern length exceeds max of ${e}.`,Pr=e=>`Missing ${e} property in key`,Fr=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ir=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,Lr=Object.prototype.hasOwnProperty,Rr=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=$n(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}},zr={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Br={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Vr={location:0,threshold:.6,distance:100},Hr={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:nr,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},V=Object.freeze({...Br,...zr,...Vr,...Hr}),Ur=class{constructor({getFn:e=V.getFn,fieldNormWeight:t=V.fieldNormWeight}={}){this.norm=rr(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(z(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(jr);if(z(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(jr);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!B(e)||Zn(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){let n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){let r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(B(i)){if(Wn(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(B(n)){if(z(n)){if(!Zn(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(B(n.v)){let t=z(n.v)?n.v:Kn(n.v);if(!Zn(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[t]=e}else if(z(i)&&!Zn(i)){let e={v:i,n:this.norm.get(i)};n.$[t]=e}}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}},Wr={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},Gr=RegExp(`[`+Object.keys(Wr).join(``)+`]`,`g`),Kr=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(Gr,e=>Wr[e]):e=>e,qr=class{constructor(e,{location:t=V.location,threshold:n=V.threshold,distance:r=V.distance,includeMatches:i=V.includeMatches,findAllMatches:a=V.findAllMatches,minMatchCharLength:o=V.minMatchCharLength,isCaseSensitive:s=V.isCaseSensitive,ignoreDiacritics:c=V.ignoreDiacritics,ignoreLocation:l=V.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?Kr(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:cr(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?Kr(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=sr(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=lr(u)),p}},Jr=new Set([`fuzzy`,`include`]),Yr=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new qr(e,{location:t.location??V.location,threshold:t.threshold??V.threshold,distance:t.distance??V.distance,includeMatches:t.includeMatches??V.includeMatches,findAllMatches:t.findAllMatches??V.findAllMatches,minMatchCharLength:t.minMatchCharLength??V.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??V.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??V.ignoreDiacritics,ignoreLocation:t.ignoreLocation??V.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],Xr=Yr.length,Zr=`\0`,Qr=`|`,$r=class{constructor(e,{isCaseSensitive:t=V.isCaseSensitive,ignoreDiacritics:n=V.ignoreDiacritics,includeMatches:r=V.includeMatches,minMatchCharLength:i=V.minMatchCharLength,ignoreLocation:a=V.ignoreLocation,findAllMatches:o=V.findAllMatches,location:s=V.location,threshold:c=V.threshold,distance:l=V.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?Kr(e):e,this.pattern=e,this.query=pr(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?Kr(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l)a+=1,s+=d,ur(r.type)&&(c=!0),n&&(Jr.has(r.type)?o.push(...u):o.push(u));else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=lr(o)),e}}return{isMatch:!1,score:1}}},ei=[],ti={AND:`$and`,OR:`$or`},ni={PATH:`$path`,PATTERN:`$val`},ri=e=>!!(e[ti.AND]||e[ti.OR]),ii=e=>!!e[ni.PATH],ai=e=>!Wn(e)&&Yn(e)&&!ri(e),oi=e=>({[ti.AND]:Object.keys(e).map(t=>({[t]:e[t]}))}),si=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&t[i].score>t[r].score&&(r=i),a<n&&t[a].score>t[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}},ci=/[\p{L}\p{M}\p{N}_]+/gu,li=new WeakSet,ui=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Cr({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new qr(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){let c=this.termSearchers[s].searchIn(e),l=this.idfWeights[s];r+=l,c.isMatch&&(i++,n+=l*(1-c.score),c.indices&&t.push(...c.indices),this.combineAll&&(this.useMask?a|=1<<s:o.add(s)))}if(i===0)return{isMatch:!1,score:1};let s=r>0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=lr(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}},di=class{constructor(e,t,n){this.options={...V,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Rr(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=hr(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ur))throw Error(Ar);if(this._myIndex=t||ir(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=Cr({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Er(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!B(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=Cr({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});Dr(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&kr(this._invertedIndex,n);let e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(jr);this._invertedIndex&&kr(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(z(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return qn(n)&&n>-1&&(e=e.slice(0,n)),e}let c=qn(n)&&n>0&&z(e),l;if(c){let t=new si(n);z(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=z(e)?z(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),vr(l,{ignoreFieldNorm:s}),a&&l.sort(o),qn(n)&&n>-1&&(l=l.slice(0,n));return br(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!B(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=_r(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=gr(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e<s;e+=1){let s=i[e],c=n(s,t,r);if(c.length)o.push(...c);else if(a===ti.AND)return[]}return o},r=this._myIndex.records,i=new Map,a=[];return r.forEach(({$:e,i:r})=>{if(B(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{keys:a,records:o}=this._myIndex,s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!B(e))return;let c=[],l=!1,u=!1;if(a.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:o,item:e,matches:c};t?(r.score=_r(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!B(t))return[];let r=[];if(Wn(t))t.forEach(({v:t,i,n:a})=>{if(!B(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].matchedTerms;if(r)for(let e of r)n.add(e)}return n.size===t}},di.version=`7.4.2`,di.createIndex=ir,di.parseIndex=ar,di.config=V,di.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(Ir);return hr(e,{...V,...n}).searchIn(t)},di.parseQuery=gr,mr($r),mr(ui),di.use=function(...e){e.forEach(e=>mr(e))},fi=di}));function mi(e,t){for(let n of e)if(!t.has(n))return!1;return!0}var hi=t((()=>{}));function gi(e){if(e.type!==`user`)return!1;let t=Array.isArray(e.message.content)?e.message.content[0]:void 0;return!t||typeof t==`string`||t?.type!==`text`||!t.text.includes(`<task-notification`)||et(t.text,`status`)!==`completed`?!1:et(t.text,`summary`)?.startsWith(`Background command `)??!1}function _i(e,t){if(!Ve()||t)return e;let n=[],r=0;for(;r<e.length;){let t=e[r];if(gi(t)){let i=0;for(;r<e.length&&gi(e[r]);)i++,r++;i===1?n.push(t):n.push({...t,message:{role:`user`,content:[{type:`text`,text:`<${Ct}><${wt}>completed</${wt}><${Tt}>${i} background commands completed</${Tt}></${Ct}>`}]}})}else n.push(t),r++}return n}var vi=t((()=>{Et(),ie(),Me(),it()}));function yi(e){return e.type===`system`&&e.subtype===`stop_hook_summary`&&e.hookLabel!==void 0}function bi(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(yi(r)){let i=r.hookLabel,a=[];for(;n<e.length;){let t=e[n];if(!yi(t)||t.hookLabel!==i)break;a.push(t),n++}a.length===1?t.push(r):t.push({...r,hookCount:a.reduce((e,t)=>e+t.hookCount,0),hookInfos:a.flatMap(e=>e.hookInfos),hookErrors:a.flatMap(e=>e.hookErrors),preventedContinuation:a.some(e=>e.preventedContinuation),hasOutput:a.some(e=>e.hasOutput),totalDurationMs:Math.max(...a.map(e=>e.totalDurationMs??0))})}else t.push(r),n++}return t}var xi=t((()=>{}));function Si(e){let t=Ti.get(e);return t||(t=new Set(e.filter(e=>e.renderGroupedToolUse).map(e=>e.name)),Ti.set(e,t)),t}function Ci(e){if(e.type===`assistant`&&e.message?.content&&Array.isArray(e.message.content)&&e.message.content[0]?.type===`tool_use`){let t=e.message.content[0];return{messageId:e.message.id,toolUseId:t.id,toolName:t.name}}return null}function wi(e,t,n=!1){if(n)return{messages:e};let r=Si(t),i=new Map;for(let t of e){let e=Ci(t);if(e&&r.has(e.toolName)){let n=`${e.messageId}:${e.toolName}`,r=i.get(n)??[];r.push(t),i.set(n,r)}}let a=new Map,o=new Set;for(let[e,t]of i)if(t.length>=2){a.set(e,t);for(let e of t){let t=Ci(e);t&&o.add(t.toolUseId)}}let s=new Map;for(let t of e)if(t.type===`user`&&t.message?.content&&Array.isArray(t.message.content))for(let e of t.message.content)e.type===`tool_result`&&o.has(e.tool_use_id)&&s.set(e.tool_use_id,t);let c=[],l=new Set;for(let t of e){let e=Ci(t);if(e){let t=`${e.messageId}:${e.toolName}`,n=a.get(t);if(n){if(!l.has(t)){l.add(t);let r=n[0],i=[];for(let e of n){let t=e.message.content[0].id,n=s.get(t);n&&i.push(n)}let a={type:`grouped_tool_use`,toolName:e.toolName,messages:n,results:i,displayMessage:r,uuid:`grouped-${r.uuid}`,timestamp:r.timestamp,messageId:e.messageId};c.push(a)}continue}}if(t.type===`user`&&t.message?.content&&Array.isArray(t.message.content)){let e=t.message.content.filter(e=>e.type===`tool_result`);if(e.length>0&&e.every(e=>o.has(e.tool_use_id)))continue}c.push(t)}return{messages:c}}var Ti,Ei=t((()=>{Ti=new WeakMap}));function Di(e){let t=Ni.get(e);if(t!==void 0)return t;let n=Oi(e).toLowerCase();return Ni.set(e,n),n}function Oi(e){let t=``;switch(e.type){case`user`:{let n=e.message.content;if(typeof n==`string`)t=Mi.has(n)?``:n;else{let r=[];for(let t of n??[])t.type===`text`?Mi.has(t.text)||r.push(t.text):t.type===`tool_result`&&r.push(Ai(e.toolUseResult));t=r.join(`
|
|
2
|
-
`)}break}case`assistant`:{let n=e.message.content;Array.isArray(n)&&(t=n.flatMap(e=>e.type===`text`?[e.text]:e.type===`tool_use`?[ki(e.input)]:[]).join(`
|
|
3
|
-
`));break}case`attachment`:if(e.attachment.type===`relevant_memories`)t=(e.attachment.memories??[]).map(e=>e.content).join(`
|
|
4
|
-
`);else if(e.attachment.type===`queued_command`&&e.attachment.commandMode!==`task-notification`&&!e.attachment.isMeta){let n=e.attachment.prompt;t=typeof n==`string`?n:n.flatMap(e=>e.type===`text`?[e.text]:[]).join(`
|
|
5
|
-
`)}break;case`collapsed_read_search`:e.relevantMemories&&(t=e.relevantMemories.map(e=>e.content).join(`
|
|
6
|
-
`));break;default:break}let n=t,r=n.indexOf(`<system-reminder>`);for(;r>=0;){let e=n.indexOf(ji,r);if(e<0)break;n=n.slice(0,r)+n.slice(e+18),r=n.indexOf(`<system-reminder>`)}return n}function ki(e){if(!e||typeof e!=`object`)return``;let t=e,n=[];for(let e of[`command`,`pattern`,`file_path`,`path`,`prompt`,`description`,`query`,`url`,`skill`]){let r=t[e];typeof r==`string`&&n.push(r)}for(let e of[`args`,`files`]){let r=t[e];Array.isArray(r)&&r.every(e=>typeof e==`string`)&&n.push(r.join(` `))}return n.join(`
|
|
7
|
-
`)}function Ai(e){if(!e||typeof e!=`object`)return typeof e==`string`?e:``;let t=e;if(typeof t.stdout==`string`){let e=typeof t.stderr==`string`?t.stderr:``;return t.stdout+(e?`
|
|
8
|
-
`+e:``)}if(t.file&&typeof t.file==`object`&&typeof t.file.content==`string`)return t.file.content;let n=[];for(let e of[`content`,`output`,`result`,`text`,`message`]){let r=t[e];typeof r==`string`&&n.push(r)}for(let e of[`filenames`,`lines`,`results`]){let r=t[e];Array.isArray(r)&&r.every(e=>typeof e==`string`)&&n.push(r.join(`
|
|
9
|
-
`))}return n.join(`
|
|
10
|
-
`)}var ji,Mi,Ni,Pi=t((()=>{it(),ji=`</system-reminder>`,Mi=new Set([Pe,Ye]),Ni=new WeakMap}));function Fi({pose:e=`default`}={}){if(mt.terminal===`Apple_Terminal`)return(0,H.jsx)(Ii,{pose:e});let t=Li[e];return(0,H.jsxs)(l,{flexDirection:`column`,children:[(0,H.jsxs)(d,{children:[(0,H.jsx)(d,{color:`clawd_body`,children:t.r1L}),(0,H.jsx)(d,{color:`clawd_body`,backgroundColor:`clawd_background`,children:t.r1E}),(0,H.jsx)(d,{color:`clawd_body`,children:t.r1R})]}),(0,H.jsxs)(d,{children:[(0,H.jsx)(d,{color:`clawd_body`,children:t.r2L}),(0,H.jsx)(d,{color:`clawd_body`,backgroundColor:`clawd_background`,children:`█████`}),(0,H.jsx)(d,{color:`clawd_body`,children:t.r2R})]}),(0,H.jsxs)(d,{color:`clawd_body`,children:[` `,`▘▘ ▝▝`,` `]})]})}function Ii({pose:e}){return(0,H.jsxs)(l,{flexDirection:`column`,alignItems:`center`,children:[(0,H.jsxs)(d,{children:[(0,H.jsx)(d,{color:`clawd_body`,children:`▗`}),(0,H.jsx)(d,{color:`clawd_background`,backgroundColor:`clawd_body`,children:Ri[e]}),(0,H.jsx)(d,{color:`clawd_body`,children:`▖`})]}),(0,H.jsx)(d,{backgroundColor:`clawd_body`,children:` `.repeat(7)}),(0,H.jsx)(d,{color:`clawd_body`,children:`▘▘ ▝▝`})]})}var H,Li,Ri,zi=t((()=>{h(),y(),vt(),H=S(),Li={default:{r1L:` ▐`,r1E:`▛███▜`,r1R:`▌`,r2L:`▝▜`,r2R:`▛▘`},"look-left":{r1L:` ▐`,r1E:`▟███▟`,r1R:`▌`,r2L:`▝▜`,r2R:`▛▘`},"look-right":{r1L:` ▐`,r1E:`▙███▙`,r1R:`▌`,r2L:`▝▜`,r2R:`▛▘`},"arms-up":{r1L:`▗▟`,r1E:`▛███▜`,r1R:`▙▖`,r2L:` ▜`,r2R:`▛ `}},Ri={default:` ▗ ▖ `,"look-left":` ▘ ▘ `,"look-right":` ▝ ▝ `,"arms-up":` ▗ ▖ `}}));function Bi(e){let{title:t,lines:n,footer:r,emptyMessage:i,customContent:a}=e,o=c(t);if(a!==void 0)o=Math.max(o,a.width);else if(n.length===0&&i)o=Math.max(o,c(i));else{let e=Math.max(0,...n.map(e=>e.timestamp?c(e.timestamp):0));for(let t of n){let n=e>0?e:0,r=c(t.text)+(n>0?n+2:0);o=Math.max(o,r)}}return r&&(o=Math.max(o,c(r))),o}function Vi({config:e,actualWidth:t}){let{title:n,lines:r,footer:i,emptyMessage:a,customContent:o}=e,s=Math.max(0,...r.map(e=>e.timestamp?c(e.timestamp):0));return(0,U.jsxs)(l,{flexDirection:`column`,width:t,children:[(0,U.jsx)(d,{bold:!0,color:`claude`,children:n}),o?(0,U.jsxs)(U.Fragment,{children:[o.content,i&&(0,U.jsx)(d,{dimColor:!0,italic:!0,children:jt(i,t)})]}):r.length===0&&a?(0,U.jsx)(d,{dimColor:!0,children:jt(a,t)}):(0,U.jsxs)(U.Fragment,{children:[r.map((e,n)=>{let r=Math.max(10,t-(s>0?s+2:0));return(0,U.jsxs)(d,{children:[s>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(d,{dimColor:!0,children:(e.timestamp||``).padEnd(s)}),` `]}),(0,U.jsx)(d,{children:jt(e.text,r)})]},n)}),i&&(0,U.jsx)(d,{dimColor:!0,italic:!0,children:jt(i,t)})]})]})}var U,Hi=t((()=>{h(),y(),Mt(),U=S()}));function Ui({feeds:e,maxWidth:t}){let n=e.map(e=>Bi(e)),r=Math.max(...n),i=Math.min(r,t);return(0,Gi.jsx)(l,{flexDirection:`column`,children:e.map((t,n)=>(0,Gi.jsxs)(Wi.Fragment,{children:[(0,Gi.jsx)(Vi,{config:t,actualWidth:i}),n<e.length-1&&(0,Gi.jsx)(s,{color:`claude`,width:i})]},n))})}var Wi,Gi,Ki=t((()=>{Wi=n(h(),1),y(),Hi(),Gi=S()}));function qi(e){let t=e.map(e=>{let t=Nt(e.modified);return{text:(e.summary&&e.summary!==`No prompt`?e.summary:e.firstPrompt)||``,timestamp:t}});return{title:`Recent activity`,lines:t,footer:t.length>0?`/resume for more`:void 0,emptyMessage:`No recent activity`}}function Ji(e){let t=e.map(e=>{if(process.env.USER_TYPE===`ant`){let t=e.match(/^(\d+\s+\w+\s+ago)\s+(.+)$/);if(t)return{timestamp:t[1],text:t[2]||``}}return{text:e}}),n=process.env.USER_TYPE===`ant`?`Unable to fetch latest claude-cli-internal commits`:`Check the Claude Code changelog for updates`;return{title:process.env.USER_TYPE===`ant`?`What's new [ANT-ONLY: Latest CC commits]`:`What's new`,lines:t,footer:t.length>0?`/release-notes for more`:void 0,emptyMessage:n}}function Yi(e){let t=e.filter(({isEnabled:e})=>e).sort((e,t)=>Number(e.isComplete)-Number(t.isComplete)).map(({text:e,isComplete:t})=>({text:`${t?`${o.tick} `:``}${e}`})),n=st()===Vn()?`Note: You have launched claude in your home directory. For the best experience, launch it in a project directory instead.`:void 0;return n&&t.push({text:n}),{title:`Tips for getting started`,lines:t}}function Xi(){let e=en(),t=e?`Share Claude Code and earn ${nn(e)} of extra usage`:`Share Claude Code with friends`;return{title:`3 guest passes`,lines:[],customContent:{content:(0,Zi.jsxs)(Zi.Fragment,{children:[(0,Zi.jsx)(l,{marginY:1,children:(0,Zi.jsx)(d,{color:`claude`,children:`[✻] [✻] [✻]`})}),(0,Zi.jsx)(d,{dimColor:!0,children:t})]}),width:48},footer:`/passes`}}var Zi,Qi=t((()=>{a(),y(),rn(),ot(),Mt(),Zi=S()}));function $i(e,t,n){return Array.from({length:n},()=>({pose:e,offset:t}))}function ea(){let{pose:e,bounceOffset:t,onClick:n}=ta();return(0,ra.jsx)(l,{height:la,flexDirection:`column`,onClick:n,children:(0,ra.jsx)(l,{marginTop:t,flexShrink:0,children:(0,ra.jsx)(Fi,{pose:e})})})}function ta(){let[e]=(0,na.useState)(()=>bt().prefersReducedMotion??!1),[t,n]=(0,na.useState)(-1),r=(0,na.useRef)(ia),i=()=>{e||t!==-1||(r.current=aa[Math.floor(Math.random()*aa.length)],n(0))};(0,na.useEffect)(()=>{if(t===-1)return;if(t>=r.current.length){n(-1);return}let e=setTimeout(n,sa,ca);return()=>clearTimeout(e)},[t]);let a=r.current,o=t>=0&&t<a.length?a[t]:oa;return{pose:o.pose,bounceOffset:o.offset,onClick:i}}var na,ra,ia,aa,oa,sa,ca,la,ua=t((()=>{h(),na=n(h(),1),y(),yt(),zi(),ra=S(),ia=[...$i(`default`,1,2),...$i(`arms-up`,0,3),...$i(`default`,0,1),...$i(`default`,1,2),...$i(`arms-up`,0,3),...$i(`default`,0,1)],aa=[ia,[...$i(`look-right`,0,5),...$i(`look-left`,0,5),...$i(`default`,0,1)]],oa={pose:`default`,offset:0},sa=60,ca=e=>e+1,la=3}));function da(){let e=tn();e==null||e<=0||e>(R().passesLastSeenRemaining??0)&&xt(t=>({...t,passesUpsellSeenCount:0,hasVisitedPasses:!1,passesLastSeenRemaining:e}))}function fa(){let{eligible:e,hasCache:t}=an();if(!e||!t)return!1;da();let n=R();return!((n.passesUpsellSeenCount??0)>=3||n.hasVisitedPasses)}function pa(){let[e]=(0,ga.useState)(()=>fa());return e}function ma(){let e=0;xt(t=>(e=(t.passesUpsellSeenCount??0)+1,{...t,passesUpsellSeenCount:e})),At(`tengu_guest_passes_upsell_shown`,{seen_count:e})}function ha(){let e=en();return(0,_a.jsxs)(d,{dimColor:!0,children:[(0,_a.jsx)(d,{color:`claude`,children:`[✻]`}),` `,(0,_a.jsx)(d,{color:`claude`,children:`[✻]`}),` `,(0,_a.jsx)(d,{color:`claude`,children:`[✻]`}),` ·`,` `,e?`Share Claude Code and earn ${nn(e)} of extra usage · /passes`:`3 guest passes at /passes`]})}var ga,_a,va=t((()=>{h(),ga=n(h(),1),y(),kt(),rn(),St(),_a=S()}));function ya(){let{columns:e}=v(),t=Xe(e=>e.agent),n=Xe(e=>e.effortValue),r=kn(),i=Vt(r),{version:a,cwd:o,billingType:s,agentName:u}=xn(),f=t??u,p=pa(),m=In();(0,ba.useEffect)(()=>{p&&ma()},[p]),(0,ba.useEffect)(()=>{m&&!p&&Fn()},[m,p]);let h=Math.max(e-15,20),g=jt(a,Math.max(h-13,6)),{shouldSplit:_,truncatedModel:y,truncatedBilling:b}=Sn(i+j(r,n),s,h),x=f?h-1-c(f)-3:h,S=_n(o,Math.max(x,10));return(0,W.jsx)(F,{children:(0,W.jsxs)(l,{flexDirection:`row`,gap:2,alignItems:`center`,children:[Ve()?(0,W.jsx)(ea,{}):(0,W.jsx)(Fi,{}),(0,W.jsxs)(l,{flexDirection:`column`,children:[(0,W.jsxs)(d,{children:[(0,W.jsx)(d,{bold:!0,children:`Claude Code`}),` `,(0,W.jsxs)(d,{dimColor:!0,children:[`v`,g]})]}),_?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(d,{dimColor:!0,children:y}),(0,W.jsx)(d,{dimColor:!0,children:b})]}):(0,W.jsxs)(d,{dimColor:!0,children:[y,` · `,b]}),(0,W.jsx)(d,{dimColor:!0,children:f?`@${f} · ${S}`:S}),p&&(0,W.jsx)(ha,{}),!p&&m&&(0,W.jsx)(Ln,{maxWidth:h,twoLine:!0})]})]})})}var ba,W,xa=t((()=>{ba=n(h(),1),An(),ye(),y(),Re(),we(),Mt(),Me(),wn(),Kt(),de(),ua(),zi(),va(),Nn(),W=S()}));function Sa(){let e=(0,wa.useMemo)(Ca,[]),t=(0,wa.useMemo)(()=>R().lastShownEmergencyTip,[]),n=e.tip&&e.tip!==t;return(0,wa.useEffect)(()=>{n&&xt(t=>t.lastShownEmergencyTip===e.tip?t:{...t,lastShownEmergencyTip:e.tip})},[n,e.tip]),n?(0,Ta.jsx)(l,{paddingLeft:2,flexDirection:`column`,children:(0,Ta.jsx)(d,{...e.color===`warning`?{color:`warning`}:e.color===`error`?{color:`error`}:{dimColor:!0},children:e.tip})}):null}function Ca(){return Ea}var wa,Ta,Ea,Da=t((()=>{h(),wa=n(h(),1),y(),St(),Ta=S(),Ea={tip:``,color:`dim`}}));function Oa({char:e=`✻`}){let[t]=(0,ka.useState)(()=>bt().prefersReducedMotion??!1),[n,r]=(0,ka.useState)(t),i=(0,ka.useRef)(null),[a,o]=_(n?null:50);return(0,ka.useEffect)(()=>{if(n)return;let e=setTimeout(r,Ma,!0);return()=>clearTimeout(e)},[n]),n?(0,Aa.jsx)(l,{ref:a,children:(0,Aa.jsx)(d,{color:Na,children:e})}):(i.current===null&&(i.current=o),(0,Aa.jsx)(l,{ref:a,children:(0,Aa.jsx)(d,{color:Ze(Oe((o-i.current)/ja*360%360)),children:e})}))}var ka,Aa,ja,Ma,Na,Pa=t((()=>{h(),ka=n(h(),1),gt(),y(),yt(),ze(),Aa=S(),ja=1500,Ma=ja*2,Na=Ze({r:153,g:153,b:153})}));function Fa(){return qt()&&(R().opus1mMergeNoticeSeenCount??0)<za}function Ia(){let[e]=(0,La.useState)(Fa);return(0,La.useEffect)(()=>{if(!e)return;let t=(R().opus1mMergeNoticeSeenCount??0)+1;xt(e=>(e.opus1mMergeNoticeSeenCount??0)>=t?e:{...e,opus1mMergeNoticeSeenCount:t})},[e]),e?(0,Ra.jsxs)(l,{paddingLeft:2,children:[(0,Ra.jsx)(Oa,{char:`↑`}),(0,Ra.jsx)(d,{dimColor:!0,children:` Opus now defaults to 1M context · 5x more room, same pricing`})]}):null}var La,Ra,za,Ba=t((()=>{h(),La=n(h(),1),gt(),y(),St(),Kt(),Pa(),Ra=S(),za=6}));function Va(){return null}var Ha=t((()=>{}));function Ua(){return null}var Wa=t((()=>{}));function Ga(){let e=gn(),t=R().oauthAccount?.displayName??``,{columns:n}=v(),i=cn(),a=I.isSandboxingEnabled(),o=pa(),s=In(),u=Xe(e=>e.agent),f=Xe(e=>e.effortValue),p=R(),m;try{m=yn(3)}catch{m=[]}let[h]=(0,Ka.useState)(()=>{let e=bt().companyAnnouncements;if(!(!e||e.length===0))return p.numStartups===1?e[0]:e[Math.floor(Math.random()*e.length)]}),{hasReleaseNotes:_}=mn(p.lastReleaseNotesSeen);(0,Ka.useEffect)(()=>{R().lastReleaseNotesSeen!==`0.0.1`&&(xt(e=>e.lastReleaseNotesSeen===`0.0.1`?e:{...e,lastReleaseNotesSeen:`0.0.1`}),i&&sn())},[p,i]);let y=!_&&!i&&!r(process.env.CLAUDE_CODE_FORCE_FULL_LOGO);(0,Ka.useEffect)(()=>{o&&!i&&!y&&ma()},[o,i,y]),(0,Ka.useEffect)(()=>{s&&!i&&!o&&!y&&Fn()},[s,i,o,y]);let b=kn(),x=Vt(b),{version:S,cwd:C,billingType:w,agentName:T}=xn(),E=u??T,D=jt(x+j(b,f),qa-20);if(!_&&!i&&!r(process.env.CLAUDE_CODE_FORCE_FULL_LOGO))return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ya,{}),(0,G.jsx)(Ia,{}),ft()&&(0,G.jsxs)(l,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(d,{color:`warning`,children:`Debug mode enabled`}),(0,G.jsxs)(d,{dimColor:!0,children:[`Logging to: `,ct()?`stderr`:ut()]})]}),(0,G.jsx)(Sa,{}),process.env.CLAUDE_CODE_TMUX_SESSION&&(0,G.jsxs)(l,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsxs)(d,{dimColor:!0,children:[`tmux session: `,process.env.CLAUDE_CODE_TMUX_SESSION]}),(0,G.jsx)(d,{dimColor:!0,children:process.env.CLAUDE_CODE_TMUX_PREFIX_CONFLICTS?`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} ${process.env.CLAUDE_CODE_TMUX_PREFIX} d (press prefix twice - Claude uses ${process.env.CLAUDE_CODE_TMUX_PREFIX})`:`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} d`})]}),h&&(0,G.jsxs)(l,{paddingLeft:2,flexDirection:`column`,children:[!process.env.IS_DEMO&&p.oauthAccount?.organizationName&&(0,G.jsxs)(d,{dimColor:!0,children:[`Message from `,p.oauthAccount.organizationName,`:`]}),(0,G.jsx)(d,{children:h})]}),process.env.USER_TYPE===`ant`&&!process.env.DEMO_VERSION&&(0,G.jsx)(l,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(d,{dimColor:!0,children:`Use /issue to report model behavior issues`})}),process.env.USER_TYPE===`ant`&&!process.env.DEMO_VERSION&&(0,G.jsxs)(l,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(d,{color:`warning`,children:`[ANT-ONLY] Logs:`}),(0,G.jsxs)(d,{dimColor:!0,children:[`API calls: `,Ot(Ke())]}),(0,G.jsxs)(d,{dimColor:!0,children:[`Debug logs: `,Ot(ut())]}),It()&&(0,G.jsxs)(d,{dimColor:!0,children:[`Startup Perf: `,Ot(Lt())]})]}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Va,{}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Ua,{})]});let O=hn(n),ee=Tn(R().theme),k=` ${g(`claude`,ee)(`Claude Code`)} ${g(`inactive`,ee)(`v${S}`)} `,te=g(`claude`,ee)(` Claude Code `);if(O===`compact`){let e=vn(t);c(e)>n-4&&(e=vn(null));let r=E?n-4-1-c(E)-3:n-4,i=_n(C,Math.max(r,10));return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(F,{children:(0,G.jsxs)(l,{flexDirection:`column`,borderStyle:`round`,borderColor:`claude`,borderText:{content:te,position:`top`,align:`start`,offset:1},paddingX:1,paddingY:1,alignItems:`center`,width:n,children:[(0,G.jsx)(d,{bold:!0,children:e}),(0,G.jsx)(l,{marginY:1,children:(0,G.jsx)(Fi,{})}),(0,G.jsx)(d,{dimColor:!0,children:D}),(0,G.jsx)(d,{dimColor:!0,children:w}),(0,G.jsx)(d,{dimColor:!0,children:E?`@${E} · ${i}`:i})]})}),(0,G.jsx)(Ia,{}),a&&(0,G.jsx)(l,{marginTop:1,flexDirection:`column`,children:(0,G.jsx)(d,{color:`warning`,children:`Your bash commands will be sandboxed. Disable with /sandbox.`})}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Va,{}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Ua,{})]})}let ne=vn(t),re=!process.env.IS_DEMO&&p.oauthAccount?.organizationName?`${D} · ${w} · ${p.oauthAccount.organizationName}`:`${D} · ${w}`,ie=E?qa-1-c(E)-3:qa,A=_n(C,Math.max(ie,10)),M=E?`@${E} · ${A}`:A,{leftWidth:N,rightWidth:ae}=Cn(n,O,bn(ne,M,re));return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(F,{children:(0,G.jsx)(l,{flexDirection:`column`,borderStyle:`round`,borderColor:`claude`,borderText:{content:k,position:`top`,align:`start`,offset:3},children:(0,G.jsxs)(l,{flexDirection:O===`horizontal`?`row`:`column`,paddingX:1,gap:1,children:[(0,G.jsxs)(l,{flexDirection:`column`,width:N,justifyContent:`space-between`,alignItems:`center`,minHeight:9,children:[(0,G.jsx)(l,{marginTop:1,children:(0,G.jsx)(d,{bold:!0,children:ne})}),(0,G.jsx)(Fi,{}),(0,G.jsxs)(l,{flexDirection:`column`,alignItems:`center`,children:[(0,G.jsx)(d,{dimColor:!0,children:re}),(0,G.jsx)(d,{dimColor:!0,children:M})]})]}),O===`horizontal`&&(0,G.jsx)(l,{height:`100%`,borderStyle:`single`,borderColor:`claude`,borderDimColor:!0,borderTop:!1,borderBottom:!1,borderLeft:!1}),O===`horizontal`&&(0,G.jsx)(Ui,{feeds:i?[Yi(on()),qi(e)]:o?[qi(e),Xi()]:s?[qi(e),Pn()]:[qi(e),Ji(m)],maxWidth:ae})]})})}),(0,G.jsx)(Ia,{}),ft()&&(0,G.jsxs)(l,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(d,{color:`warning`,children:`Debug mode enabled`}),(0,G.jsxs)(d,{dimColor:!0,children:[`Logging to: `,ct()?`stderr`:ut()]})]}),(0,G.jsx)(Sa,{}),process.env.CLAUDE_CODE_TMUX_SESSION&&(0,G.jsxs)(l,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsxs)(d,{dimColor:!0,children:[`tmux session: `,process.env.CLAUDE_CODE_TMUX_SESSION]}),(0,G.jsx)(d,{dimColor:!0,children:process.env.CLAUDE_CODE_TMUX_PREFIX_CONFLICTS?`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} ${process.env.CLAUDE_CODE_TMUX_PREFIX} d (press prefix twice - Claude uses ${process.env.CLAUDE_CODE_TMUX_PREFIX})`:`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} d`})]}),h&&(0,G.jsxs)(l,{paddingLeft:2,flexDirection:`column`,children:[!process.env.IS_DEMO&&p.oauthAccount?.organizationName&&(0,G.jsxs)(d,{dimColor:!0,children:[`Message from `,p.oauthAccount.organizationName,`:`]}),(0,G.jsx)(d,{children:h})]}),a&&(0,G.jsx)(l,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(d,{color:`warning`,children:`Your bash commands will be sandboxed. Disable with /sandbox.`})}),process.env.USER_TYPE===`ant`&&!process.env.DEMO_VERSION&&(0,G.jsx)(l,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(d,{dimColor:!0,children:`Use /issue to report model behavior issues`})}),process.env.USER_TYPE===`ant`&&!process.env.DEMO_VERSION&&(0,G.jsxs)(l,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(d,{color:`warning`,children:`[ANT-ONLY] Logs:`}),(0,G.jsxs)(d,{dimColor:!0,children:[`API calls: `,Ot(Ke())]}),(0,G.jsxs)(d,{dimColor:!0,children:[`Debug logs: `,Ot(ut())]}),It()&&(0,G.jsxs)(d,{dimColor:!0,children:[`Startup Perf: `,Ot(Lt())]})]}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Va,{}),process.env.USER_TYPE===`ant`&&(0,G.jsx)(Ua,{})]})}var Ka,G,qa,Ja=t((()=>{h(),y(),ye(),wn(),Mt(),Dt(),zi(),Ki(),Qi(),St(),En(),yt(),lt(),Ka=n(h(),1),ln(),xa(),de(),pn(),je(),i(),Pt(),Da(),Ba(),Ha(),Wa(),ae(),va(),Nn(),Re(),we(),An(),Kt(),G=S(),qa=50}));function Ya({message:e,isTranscriptMode:t}){let n=e.message?.content,r=Array.isArray(n)?n:[];if(!(t&&e.type===`assistant`&&e.message?.model&&r.some(e=>e?.type===`text`)))return null;let i=e.message.model;return(0,Xa.jsx)(l,{minWidth:c(i)+8,children:(0,Xa.jsx)(d,{dimColor:!0,children:i})})}var Xa,Za=t((()=>{h(),y(),Xa=S()}));function Qa({message:e,isTranscriptMode:t}){if(!(t&&e.timestamp&&e.type===`assistant`&&Array.isArray(e.message.content)&&e.message.content.some(e=>e.type===`text`)))return null;let n=new Date(e.timestamp).toLocaleTimeString(`en-US`,{hour:`2-digit`,minute:`2-digit`,hour12:!0});return(0,$a.jsx)(l,{minWidth:c(n),children:(0,$a.jsx)(d,{dimColor:!0,children:n})})}var $a,eo=t((()=>{h(),y(),$a=S()}));function to(e,t,n,r){for(let i=t+1;i<e.length;i++){let t=e[i];if(t?.type===`assistant`){let e=co(t.message.content);if(e?.type===`thinking`||e?.type===`redacted_thinking`||e?.type===`tool_use`&&(le(e.name,e.input,n).isCollapsible||r.has(e.id)))continue;return!0}if(!(t?.type===`system`||t?.type===`attachment`)&&!(t?.type===`user`&&co(t.message.content)?.type===`tool_result`)){if(t?.type===`grouped_tool_use`){let e=co(t.messages[0]?.message.content)?.input;if(le(t.toolName,e,n).isCollapsible)continue}return!0}}return!1}function no({message:e,isUserContinuation:t,hasContentAfter:n,tools:r,commands:i,verbose:a,inProgressToolUseIDs:o,streamingToolUseIDs:s,screen:c,canAnimate:u,onOpenRateLimitOptions:d,lastThinkingBlockId:f,latestBashOutputUUID:p,columns:m,isLoading:h,lookups:g,shouldCollapseDiffs:_}){let v=c===`transcript`,y=e.type===`grouped_tool_use`,b=e.type===`collapsed_read_search`,x=b&&(at(e,o)||h&&!n),S=y?e.displayMessage:b?oe(e):e,C=y||b?[]:Ie(e,g),w=Es(e,s,o,y||b?E:ue(e,g),c,g),T=!1;if(u)if(y)T=e.messages.some(e=>{let t=co(e.message.content);return t?.type===`tool_use`&&o.has(t.id)});else if(b)T=at(e,o);else{let t=fe(e);T=!t||o.has(t)}let D=v&&S.type===`assistant`&&Array.isArray(S.message.content)&&S.message.content.some(e=>e.type===`text`)&&(S.timestamp||S.message.model),O=(0,so.jsx)(Le,{message:e,lookups:g,addMargin:!D,containerWidth:D?void 0:m,tools:r,commands:i,verbose:a,inProgressToolUseIDs:o,progressMessagesForMessage:C,shouldAnimate:T,shouldShowDot:!0,isTranscriptMode:v,isStatic:w,onOpenRateLimitOptions:d,isActiveCollapsedGroup:x,isUserContinuation:t,lastThinkingBlockId:f,latestBashOutputUUID:p,shouldCollapseDiffs:_});return D?(0,so.jsx)(F,{children:(0,so.jsxs)(l,{width:m,flexDirection:`column`,children:[(0,so.jsxs)(l,{flexDirection:`row`,justifyContent:`flex-end`,gap:1,marginTop:1,children:[(0,so.jsx)(Qa,{message:S,isTranscriptMode:v}),(0,so.jsx)(Ya,{message:S,isTranscriptMode:v})]}),O]})}):(0,so.jsx)(F,{children:O})}function ro(e,t){if(e.type===`grouped_tool_use`)return e.messages.some(e=>{let n=co(e.message.content);return n?.type===`tool_use`&&t.has(n.id)});if(e.type===`collapsed_read_search`)return _e(e).some(e=>t.has(e));let n=fe(e);return!!n&&t.has(n)}function io(e,t){if(e.type===`grouped_tool_use`)return e.messages.every(e=>{let n=co(e.message.content);return n?.type===`tool_use`&&t.has(n.id)});if(e.type===`collapsed_read_search`)return _e(e).every(e=>t.has(e));if(e.type===`assistant`){let n=co(e.message.content);if(n?.type===`server_tool_use`)return t.has(n.id)}let n=fe(e);return!n||t.has(n)}function ao(e,t){if(e.message!==t.message||e.screen!==t.screen||e.verbose!==t.verbose||e.message.type===`collapsed_read_search`&&t.screen!==`transcript`||e.columns!==t.columns||e.latestBashOutputUUID===e.message.uuid!=(t.latestBashOutputUUID===t.message.uuid)||e.lastThinkingBlockId!==t.lastThinkingBlockId&&O(t.message))return!1;let n=ro(e.message,e.streamingToolUseIDs),r=io(e.message,e.lookups.resolvedToolUseIDs);return!(n||!r)}var oo,so,co,lo,uo=t((()=>{oo=n(h(),1),y(),k(),it(),Fe(),so=S(),Za(),Ls(),eo(),de(),co=e=>{if(!Array.isArray(e))return;let t=e[0];if(!(t==null||typeof t==`string`))return t},lo=oo.memo(no,ao)}));function fo(e){return e.type===`attachment`&&po.has(e.attachment.type)}var po,mo=t((()=>{po=new Set(`hook_success.hook_additional_context.hook_cancelled.command_permissions.agent_mention.budget_usd.critical_system_reminder.edited_image_file.edited_text_file.opened_file_in_ide.output_style.plan_mode.plan_mode_exit.plan_mode_reentry.structured_output.todo_reminder.context_efficiency.deferred_tools_delta.mcp_instructions_delta.token_usage.ultrathink_effort.max_turns_reached.task_reminder.auto_mode.auto_mode_exit.output_token_usage.verify_plan_reminder.current_session_memory.compaction_reminder.date_change`.split(`.`))}));function ho(e){return So.filter(t=>t.isActive(e))}var K,go,_o,vo,yo,bo,xo,So,Co=t((()=>{y(),h(),qe(),a(),ot(),Mt(),Gt(),zn(),pe(),M(),K=S(),go={id:`large-memory-files`,type:`warning`,isActive:e=>he(e.memoryFiles).length>0,render:e=>(0,K.jsx)(K.Fragment,{children:he(e.memoryFiles).map(e=>{let t=e.path.startsWith(st())?Hn(st(),e.path):e.path;return(0,K.jsxs)(l,{flexDirection:`row`,children:[(0,K.jsx)(d,{color:`warning`,children:o.warning}),(0,K.jsxs)(d,{color:`warning`,children:[`Large `,(0,K.jsx)(d,{bold:!0,children:t}),` will impact performance (`,Ft(e.content.length),` chars > `,Ft(L),`)`,(0,K.jsx)(d,{dimColor:!0,children:` · /memory to edit`})]})]},e.path)})})},_o={id:`claude-ai-external-token`,type:`warning`,isActive:()=>{let e=Wt();return Ut()&&(e.source===`ANTHROPIC_AUTH_TOKEN`||e.source===`apiKeyHelper`)},render:()=>{let e=Wt();return(0,K.jsxs)(l,{flexDirection:`row`,marginTop:1,children:[(0,K.jsx)(d,{color:`warning`,children:o.warning}),(0,K.jsxs)(d,{color:`warning`,children:[`Auth conflict: Using `,e.source,` instead of Claude account subscription token. Either unset`,` `,e.source,", or run `claude /logout`."]})]})}},vo={id:`api-key-conflict`,type:`warning`,isActive:()=>{let{source:e}=Bt({skipRetrievingKeyFromApiKeyHelper:!0});return!!Ht()&&(e===`ANTHROPIC_API_KEY`||e===`apiKeyHelper`)},render:()=>{let{source:e}=Bt({skipRetrievingKeyFromApiKeyHelper:!0});return(0,K.jsxs)(l,{flexDirection:`row`,marginTop:1,children:[(0,K.jsx)(d,{color:`warning`,children:o.warning}),(0,K.jsxs)(d,{color:`warning`,children:[`Auth conflict: Using `,e,` instead of Anthropic Console key. Either unset `,e,", or run `claude /logout`."]})]})}},yo={id:`both-auth-methods`,type:`warning`,isActive:()=>{let{source:e}=Bt({skipRetrievingKeyFromApiKeyHelper:!0}),t=Wt();return e!==`none`&&t.source!==`none`&&!(e===`apiKeyHelper`&&t.source===`apiKeyHelper`)},render:()=>{let{source:e}=Bt({skipRetrievingKeyFromApiKeyHelper:!0}),t=Wt();return(0,K.jsxs)(l,{flexDirection:`column`,marginTop:1,children:[(0,K.jsxs)(l,{flexDirection:`row`,children:[(0,K.jsx)(d,{color:`warning`,children:o.warning}),(0,K.jsxs)(d,{color:`warning`,children:[`Auth conflict: Both a token (`,t.source,`) and an API key (`,e,`) are set. This may lead to unexpected behavior.`]})]}),(0,K.jsxs)(l,{flexDirection:`column`,marginLeft:3,children:[(0,K.jsxs)(d,{color:`warning`,children:[`· Trying to use `,t.source===`claude.ai`?`claude.ai`:t.source,`?`,` `,e===`ANTHROPIC_API_KEY`?`Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.`:e===`apiKeyHelper`?`Unset the apiKeyHelper setting.`:`claude /logout`]}),(0,K.jsxs)(d,{color:`warning`,children:[`· Trying to use `,e,`?`,` `,t.source===`claude.ai`?`claude /logout to sign out of claude.ai.`:`Unset the ${t.source} environment variable.`]})]})]})}},bo={id:`large-agent-descriptions`,type:`warning`,isActive:e=>Rn(e.agentDefinitions)>Bn,render:e=>{let t=Rn(e.agentDefinitions);return(0,K.jsxs)(l,{flexDirection:`row`,children:[(0,K.jsx)(d,{color:`warning`,children:o.warning}),(0,K.jsxs)(d,{color:`warning`,children:[`Large cumulative agent descriptions will impact performance (~`,Ft(t),` tokens > `,Ft(Bn),`)`,(0,K.jsx)(d,{dimColor:!0,children:` · /agents to manage`})]})]})}},xo={id:`jetbrains-plugin-install`,type:`info`,isActive:e=>{if(!P()||!(e.config.autoInstallIdeExtension??!0))return!1;let t=re();return t!==null&&!xe(t)},render:()=>{let e=se(re());return(0,K.jsxs)(l,{flexDirection:`row`,gap:1,marginLeft:1,children:[(0,K.jsx)(d,{color:`ide`,children:o.arrowUp}),(0,K.jsxs)(d,{children:[`Install the `,(0,K.jsx)(d,{color:`ide`,children:e}),` plugin from the JetBrains Marketplace:`,` `,(0,K.jsx)(d,{bold:!0,children:`https://docs.claude.com/s/claude-code-jetbrains`})]})]})}},So=[go,bo,_o,vo,yo,xo]}));function wo({agentDefinitions:e}={}){let t={config:R(),agentDefinitions:e,memoryFiles:(0,Eo.use)(T())},n=ho(t);return n.length===0?null:(0,Do.jsx)(l,{flexDirection:`column`,paddingLeft:1,children:n.map(e=>(0,Do.jsx)(To.Fragment,{children:e.render(t)},e.id))})}var To,Eo,Do,Oo=t((()=>{To=n(h(),1),Eo=n(h(),1),y(),qe(),St(),Co(),Do=S()}));function ko(e,t,n){let r=(0,q.useRef)(new Map),i=(0,q.useRef)(0),a=(0,q.useRef)(0),o=(0,q.useRef)({arr:new Float64Array,version:-1,n:-1}),s=(0,q.useRef)(new Map),c=(0,q.useRef)(new Map),l=(0,q.useRef)(n),u=(0,q.useRef)(!1),d=(0,q.useRef)(null),f=(0,q.useRef)(0);if(l.current!==n){let e=l.current/n;l.current=n;for(let[t,n]of r.current)r.current.set(t,Math.max(1,Math.round(n*e)));i.current++,u.current=!0,f.current=2}let p=f.current>0?d.current:null,m=(0,q.useRef)(0),h=(0,q.useRef)(null);(0,q.useSyncExternalStore)((0,q.useCallback)(t=>e.current?.subscribe(t)??Lo,[e]),()=>{let t=e.current;if(!t)return NaN;let n=t.getScrollTop()+t.getPendingDelta(),r=Math.floor(n/No);return t.isSticky()?~r:r});let g=e.current?.getScrollTop()??-1,_=e.current?.getPendingDelta()??0,v=e.current?.getViewportHeight()??0,y=e.current?.isSticky()??!0;(0,q.useMemo)(()=>{let e=new Set(t),n=!1;for(let t of r.current.keys())e.has(t)||(r.current.delete(t),n=!0);for(let t of c.current.keys())e.has(t)||c.current.delete(t);n&&i.current++},[t]);let b=t.length;if(o.current.version!==i.current||o.current.n!==b){let e=o.current.arr.length>=b+1?o.current.arr:new Float64Array(b+1);e[0]=0;for(let n=0;n<b;n++)e[n+1]=e[n]+(r.current.get(t[n])??Ao);o.current={arr:e,version:i.current,n:b}}let x=o.current.arr,S=x[b],C,w;if(p)[C,w]=p,C=Math.min(C,b),w=Math.min(w,b);else if(v===0||g<0)C=Math.max(0,b-Mo),w=b;else{if(y){let e=v+jo;for(C=b;C>0&&S-x[C-1]<e;)C--;w=b}else{let e=m.current,n=v*3,i=Math.min(g,g+_),a=Math.max(g,g+_),o=a-i,c=o>n&&_<0?a-n:i,l=c+Math.min(o,n),u=Math.max(0,c-e),f=l-e,p=u-jo;{let e=0,t=b;for(;e<t;){let n=e+t>>1;x[n+1]<=p?e=n+1:t=n}C=e}{let e=d.current;if(e&&e[0]<C)for(let n=e[0];n<Math.min(C,e[1]);n++){let e=t[n];if(s.current.has(e)&&!r.current.has(e)){C=n;break}}}let h=v+2*jo,y=Math.min(b,C+Fo),S=0;for(w=C;w<y&&(S<h||x[w]<f+v+jo);)S+=r.current.get(t[w])??Po,w++}let e=v+2*jo,n=Math.max(0,w-Fo),i=0;for(let e=C;e<w;e++)i+=r.current.get(t[e])??Po;for(;C>n&&i<e;)C--,i+=r.current.get(t[C])??Po;let o=d.current,c=Math.abs(g-a.current)+Math.abs(_);if(o&&c>v*2){let[e,t]=o;C<e-Io&&(C=e-Io),w>t+Io&&(w=t+Io),C>w&&(w=Math.min(C+Io,b))}a.current=g}f.current>0?f.current--:d.current=[C,w];let T=(0,q.useDeferredValue)(C),E=(0,q.useDeferredValue)(w),D=C<T?T:C,O=w>E?E:w;if((D>O||y)&&(D=C,O=w),_>0&&(O=w),O-D>Fo){let e=(x[D]+x[O])/2;g-m.current<e?O=D+Fo:D=O-Fo}let ee=m.current,k=x[D],te=D===0?0:k+ee,ne=O===b?1/0:Math.max(k,x[O]-v)+ee;(0,q.useLayoutEffect)(()=>{y?e.current?.setClampBounds(void 0,void 0):e.current?.setClampBounds(te,ne)}),(0,q.useLayoutEffect)(()=>{let e=h.current?.yogaNode;if(e&&e.getComputedWidth()>0&&(m.current=e.getComputedTop()),u.current){u.current=!1;return}let t=!1;for(let[e,n]of s.current){let i=n.yogaNode;if(!i)continue;let a=i.getComputedHeight(),o=r.current.get(e);a>0?o!==a&&(r.current.set(e,a),t=!0):i.getComputedWidth()>0&&o!==0&&(r.current.set(e,0),t=!0)}t&&i.current++});let re=(0,q.useCallback)(e=>{let t=c.current.get(e);return t||(t=t=>{if(t)s.current.set(e,t);else{let t=s.current.get(e)?.yogaNode;if(t&&!u.current){let n=t.getComputedHeight();(n>0||t.getComputedWidth()>0)&&r.current.get(e)!==n&&(r.current.set(e,n),i.current++)}s.current.delete(e)}},c.current.set(e,t)),t},[]),ie=(0,q.useCallback)(e=>{let n=s.current.get(t[e])?.yogaNode;return!n||n.getComputedWidth()===0?-1:n.getComputedTop()},[t]),A=(0,q.useCallback)(e=>s.current.get(t[e])??null,[t]),j=(0,q.useCallback)(e=>r.current.get(t[e]),[t]),M=(0,q.useCallback)(t=>{let n=o.current;t<0||t>=n.n||e.current?.scrollTo(n.arr[t]+m.current)},[e]),N=S-x[O];return{range:[D,O],topSpacer:k,bottomSpacer:N,measureRef:re,spacerRef:h,offsets:x,getItemTop:ie,getItemElement:A,getItemHeight:j,scrollToIndex:M}}var q,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro=t((()=>{q=n(h(),1),Ao=3,jo=40,Mo=30,No=20,Po=1,Fo=200,Io=25,Lo=()=>{}}));function zo({children:e}){let[t,n]=(0,J.useState)(null),[r,i]=(0,J.useState)(null);return(0,Wo.jsx)(Ko.Provider,{value:n,children:(0,Wo.jsx)(Jo.Provider,{value:i,children:(0,Wo.jsx)(Go.Provider,{value:t,children:(0,Wo.jsx)(qo.Provider,{value:r,children:e})})})})}function Bo(){return(0,J.useContext)(Go)}function Vo(){return(0,J.useContext)(qo)}function Ho(e){let t=(0,J.useContext)(Ko);(0,J.useEffect)(()=>{if(t)return t(e),()=>t(null)},[t,e])}function Uo(e){let t=(0,J.useContext)(Jo);(0,J.useEffect)(()=>{if(t)return t(e),()=>t(null)},[t,e])}var J,Wo,Go,Ko,qo,Jo,Yo=t((()=>{J=n(h(),1),Wo=S(),Go=(0,J.createContext)(null),Ko=(0,J.createContext)(null),qo=(0,J.createContext)(null),Jo=(0,J.createContext)(null)}));function Xo(e){let[t,n]=(0,Y.useState)(null),r=(0,Y.useRef)(e);r.current=e;let i=(0,Y.useRef)(null),a=(0,Y.useCallback)(()=>{n(null)},[]),o=(0,Y.useCallback)(e=>{let t=Math.max(0,e.getScrollHeight()-e.getViewportHeight());e.getScrollTop()+e.getPendingDelta()>=t||i.current===null&&(i.current=e.getScrollHeight(),n(r.current))},[]),s=(0,Y.useCallback)(e=>{e&&e.scrollToBottom()},[]);return(0,Y.useEffect)(()=>{t===null?i.current=null:e<t&&(i.current=null,n(null))},[e,t]),{dividerIndex:t,dividerYRef:i,onScrollAway:o,onRepin:a,jumpToNew:s,shiftDivider:(0,Y.useCallback)((e,t)=>{n(t=>t===null?null:t+e),i.current!==null&&(i.current+=t)},[])}}function Zo(e,t){let n=0,r=!1;for(let i=t;i<e.length;i++){let t=e[i];if(t.type===`progress`||t.type===`assistant`&&!Qo(t))continue;let a=t.type===`assistant`;a&&!r&&n++,r=a}return n}function Qo(e){if(e.type!==`assistant`||!Array.isArray(e.message.content))return!1;for(let t of e.message.content)if(typeof t!=`string`&&t.type===`text`&&t.text.trim()!==``)return!0;return!1}function $o(e,t){if(t===null)return;let n=t;for(;n<e.length&&(e[n]?.type===`progress`||fo(e[n]));)n++;let r=e[n]?.uuid;if(!r)return;let i=Zo(e,t);return{firstUnseenUuid:r,count:Math.max(1,i)}}function es({scrollable:e,bottom:t,overlay:n,bottomFloat:r,modal:i,modalScrollRef:a,scrollRef:o,dividerYRef:s,hidePill:c=!1,hideSticky:u=!1,newMessageCount:f=0,onPillClick:m}){let{rows:h,columns:g}=v(),[_,y]=(0,Y.useState)(null),b=(0,Y.useMemo)(()=>({setStickyPrompt:y}),[]),S=(0,Y.useSyncExternalStore)((0,Y.useCallback)(e=>o?.current?.subscribe(e)??(()=>{}),[o]),()=>{let e=o?.current,t=s?.current;return!e||t==null?!1:e.getScrollTop()+e.getPendingDelta()+e.getViewportHeight()<t});if((0,Y.useLayoutEffect)(()=>{if(!Ve())return;let e=p.get(process.stdout);if(e)return e.onHyperlinkClick=e=>{if(e.startsWith(`file:`))try{dn(Un(e))}catch{}else un(e)},()=>{e.onHyperlinkClick=void 0}},[]),Ve()){let s=u?null:_,p=s!=null&&s!==`clicked`&&n==null?s:null,v=s!=null&&n==null;return(0,X.jsxs)(zo,{children:[(0,X.jsx)(l,{flexDirection:`row`,flexGrow:1,overflow:`hidden`,width:`100%`,children:(0,X.jsxs)(l,{flexDirection:`column`,flexGrow:1,width:g,overflow:`hidden`,children:[(0,X.jsxs)(l,{flexGrow:1,flexDirection:`column`,overflow:`hidden`,children:[p&&(0,X.jsx)(ns,{text:p.text,onClick:p.scrollTo}),(0,X.jsxs)(x,{ref:o,flexGrow:1,flexDirection:`column`,paddingTop:+!v,stickyScroll:!0,children:[(0,X.jsx)(os,{value:b,children:e}),n]}),!c&&S&&n==null&&(0,X.jsx)(ts,{count:f,onClick:m}),r!=null&&(0,X.jsx)(l,{position:`absolute`,bottom:0,right:0,opaque:!0,children:r})]}),(0,X.jsxs)(l,{flexDirection:`column`,flexShrink:0,width:`100%`,maxHeight:`50%`,children:[(0,X.jsx)(rs,{}),(0,X.jsx)(is,{}),(0,X.jsx)(l,{flexDirection:`column`,width:`100%`,flexGrow:1,overflowY:`hidden`,children:t})]})]})}),i!=null&&(0,X.jsx)(Mn,{value:{rows:h-as-1,columns:g-4,scrollRef:a??null},children:(0,X.jsxs)(l,{position:`absolute`,bottom:0,left:0,right:0,maxHeight:h-as,flexDirection:`column`,overflow:`hidden`,opaque:!0,children:[(0,X.jsx)(l,{flexShrink:0,children:(0,X.jsx)(d,{color:`permission`,children:`▔`.repeat(g)})}),(0,X.jsx)(l,{flexDirection:`column`,paddingX:2,flexShrink:0,overflow:`hidden`,children:i})]})})]})}return(0,X.jsxs)(X.Fragment,{children:[e,t,n,i]})}function ts({count:e,onClick:t}){let[n,r]=(0,Y.useState)(!1);return(0,X.jsx)(l,{position:`absolute`,bottom:0,left:0,right:0,justifyContent:`center`,children:(0,X.jsx)(l,{onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:(0,X.jsxs)(d,{backgroundColor:n?`userMessageBackgroundHover`:`userMessageBackground`,dimColor:!0,children:[` `,e>0?`${e} new ${Rt(e,`message`)}`:`Jump to bottom`,` `,o.arrowDown,` `]})})})}function ns({text:e,onClick:t}){let[n,r]=(0,Y.useState)(!1);return(0,X.jsx)(l,{flexShrink:0,width:`100%`,height:1,paddingRight:1,backgroundColor:n?`userMessageBackgroundHover`:`userMessageBackground`,onClick:t,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:(0,X.jsxs)(d,{color:`subtle`,wrap:`truncate-end`,children:[o.pointer,` `,e]})})}function rs(){let e=Bo();return!e||e.suggestions.length===0?null:(0,X.jsx)(l,{position:`absolute`,bottom:`100%`,left:0,right:0,paddingX:2,paddingTop:1,flexDirection:`column`,opaque:!0,children:(0,X.jsx)(Dn,{suggestions:e.suggestions,selectedSuggestion:e.selectedSuggestion,maxColumnWidth:e.maxColumnWidth,overlay:!0})})}function is(){let e=Vo();return e?(0,X.jsx)(l,{position:`absolute`,bottom:`100%`,left:0,right:0,opaque:!0,children:e}):null}var Y,X,as,os,ss=t((()=>{a(),Y=n(h(),1),jn(),Yo(),ye(),y(),fn(),Me(),zt(),mo(),On(),X=S(),as=2,os=(0,Y.createContext)({setStickyPrompt:()=>{}})}));function cs(e){let t=gs.get(e);if(t!==void 0)return t;let n=Di(e);return gs.set(e,n),n}function ls(e){let t=vs.get(e);if(t!==void 0)return t;let n=us(e);return vs.set(e,n),n}function us(e){let t=null;if(e.type===`user`){if(e.isMeta||e.isVisibleInTranscriptOnly)return null;let n=e.message.content[0];if(n?.type!==`text`)return null;t=n.text??null}else if(e.type===`attachment`&&e.attachment.type===`queued_command`&&e.attachment.commandMode!==`task-notification`&&!e.attachment.isMeta){let n=e.attachment.prompt;t=typeof n==`string`?n:n.flatMap(e=>e.type===`text`?[e.text??``]:[]).join(`
|
|
11
|
-
`)}if(t===null)return null;let n=ne(t);return n.startsWith(`<`)||n===``?null:n}function ds({itemKey:e,msg:t,idx:n,measureRef:r,expanded:i,hovered:a,clickable:o,onClickK:s,onEnterK:c,onLeaveK:d,renderItem:f}){return(0,ms.jsx)(l,{ref:r(e),flexDirection:`column`,backgroundColor:i?`userMessageBackgroundHover`:void 0,paddingBottom:i?1:void 0,onClick:o?e=>s(t,e.cellIsBlank):void 0,onMouseEnter:o?()=>c(e):void 0,onMouseLeave:o?()=>d(e):void 0,children:(0,ms.jsx)(u.Provider,{value:a&&!i?`text`:void 0,children:f(t,n)})})}function fs({messages:e,scrollRef:t,columns:n,itemKey:r,renderItem:i,onItemClick:a,isItemClickable:o,isItemExpanded:s,extractSearchText:c=cs,trackStickyPrompt:u,selectedIndex:d,cursorNavRef:f,setCursor:p,jumpRef:m,onSearchMatchesChange:h,scanElement:g,setPositions:_}){let v=(0,Z.useRef)([]),y=(0,Z.useRef)(e),b=(0,Z.useRef)(r);if(b.current!==r||e.length<v.current.length||e[0]!==y.current[0])v.current=e.map(e=>r(e));else for(let t=v.current.length;t<e.length;t++)v.current.push(r(e[t]));y.current=e,b.current=r;let x=v.current,{range:S,topSpacer:C,bottomSpacer:w,measureRef:T,spacerRef:E,offsets:D,getItemTop:O,getItemElement:ee,getItemHeight:k,scrollToIndex:te}=ko(t,x,n),[ne,re]=S,ie=(0,Z.useCallback)(t=>k(t)!==0&&ve(e[t]),[k,e]);(0,Z.useImperativeHandle)(f,()=>{let n=e=>p?.({uuid:e.uuid,msgType:e.type,expanded:!1,toolName:tt(e)?.name}),r=d??-1,i=(t,r,i=ie)=>{for(let a=t;a>=0&&a<e.length;a+=r)if(i(a))return n(e[a]),!0;return!1},a=t=>ie(t)&&e[t].type===`user`;return{enterCursor:()=>i(e.length-1,-1,a),navigatePrev:()=>i(r-1,-1),navigateNext:()=>{i(r+1,1)||(t.current?.scrollToBottom(),p?.(null))},navigatePrevUser:()=>i(r-1,-1,a),navigateNextUser:()=>i(r+1,1,a),navigateTop:()=>i(0,1),navigateBottom:()=>i(e.length-1,-1),getSelected:()=>r>=0?e[r]??null:null}},[e,d,p,ie]);let A=(0,Z.useRef)({offsets:D,start:ne,getItemElement:ee,getItemTop:O,messages:e,scrollToIndex:te});A.current={offsets:D,start:ne,getItemElement:ee,getItemTop:O,messages:e,scrollToIndex:te},(0,Z.useEffect)(()=>{if(d===void 0)return;let e=A.current,n=e.getItemElement(d);n?t.current?.scrollToElement(n,1):e.scrollToIndex(d)},[d,t]);let j=(0,Z.useRef)(null),M=(0,Z.useRef)({msgIdx:-1,positions:[]}),N=(0,Z.useRef)(-1),ae=(0,Z.useRef)(0),oe=(0,Z.useRef)(0),se=(0,Z.useRef)(()=>{}),ce=(0,Z.useRef)(()=>{}),le=(0,Z.useRef)({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),P=(0,Z.useRef)(-1),F=(0,Z.useRef)(!1);function ue(e){let t=A.current.getItemTop(e);return Math.max(0,t-hs)}function I(e){let n=t.current,{msgIdx:r,positions:i}=M.current;if(!n||i.length===0||r<0){_?.(null);return}let a=Math.max(0,Math.min(e,i.length-1)),o=i[a],s=A.current.getItemTop(r),c=n.getViewportTop(),l=s-n.getScrollTop(),u=n.getViewportHeight(),d=c+l+o.row;(d<c||d>=c+u)&&(n.scrollTo(Math.max(0,s+o.row-hs)),l=s-n.getScrollTop(),d=c+l+o.row),_?.({positions:i,rowOffset:c+l,currentIdx:a});let f=le.current,p=f.prefixSum.at(-1)??0,m=(f.prefixSum[f.ptr]??0)+a+1;h?.(p,m),dt(`highlight(i=${r}, ord=${a}/${i.length}): pos={row:${o.row},col:${o.col}} lo=${l} screenRow=${d} badge=${m}/${p}`)}ce.current=I;let[de,fe]=(0,Z.useState)(0),pe=(0,Z.useCallback)(()=>fe(e=>e+1),[]);(0,Z.useEffect)(()=>{let e=j.current;if(!e)return;let{idx:n,wantLast:r,tries:i}=e,a=t.current;if(!a)return;let{getItemElement:o,getItemTop:s,scrollToIndex:c}=A.current,l=o(n),u=l?.yogaNode?.getComputedHeight()??0;if(!l||u===0){if(i>1){j.current=null,dt(`seek(i=${n}): no mount after scrollToIndex, skip`),se.current(r?-1:1);return}j.current={idx:n,wantLast:r,tries:i+1},c(n),pe();return}j.current=null,a.scrollTo(Math.max(0,s(n)-hs));let d=g?.(l)??[];if(M.current={msgIdx:n,positions:d},dt(`seek(i=${n} t=${i}): ${d.length} positions`),d.length===0){if(++ae.current>20){ae.current=0;return}se.current(r?-1:1);return}ae.current=0;let f=r?d.length-1:0;le.current.screenOrd=f,N.current=-1,ce.current(f);let p=oe.current;p&&(oe.current=0,se.current(p))},[de]);function me(e,n){let r=t.current;if(!r)return;let i=A.current,{getItemElement:a,scrollToIndex:o}=i;if(e<0||e>=i.messages.length)return;_?.(null),M.current={msgIdx:-1,positions:[]},j.current={idx:e,wantLast:n,tries:0};let s=a(e),c=s?.yogaNode?.getComputedHeight()??0;s&&c>0?r.scrollTo(ue(e)):o(e),pe()}function he(e){let t=le.current,{matches:n,prefixSum:r}=t,i=r.at(-1)??0;if(n.length===0)return;if(j.current){oe.current=e;return}N.current<0&&(N.current=t.ptr);let{positions:a}=M.current,o=t.screenOrd+e;if(o>=0&&o<a.length){t.screenOrd=o,I(o),N.current=-1;return}let s=(t.ptr+e+n.length)%n.length;if(s===N.current){_?.(null),N.current=-1,dt(`step: wraparound at ptr=${s}, all ${n.length} msgs phantoms`);return}t.ptr=s,t.screenOrd=0,me(n[s],e<0);let c=e<0?r[s+1]??i:r[s]+1;h?.(i,c)}se.current=he,(0,Z.useImperativeHandle)(m,()=>({jumpToIndex:e=>{let n=t.current;n&&n.scrollTo(ue(e))},setSearchQuery:e=>{j.current=null,M.current={msgIdx:-1,positions:[]},N.current=-1,_?.(null);let n=e.toLowerCase(),r=[],i=[0];if(n){let e=A.current.messages;for(let t=0;t<e.length;t++){let a=c(e[t]),o=a.indexOf(n),s=0;for(;o>=0;)s++,o=a.indexOf(n,o+n.length);s>0&&(r.push(t),i.push(i.at(-1)+s))}}let a=i.at(-1),o=0,s=t.current,{offsets:l,start:u,getItemTop:d}=A.current,f=d(u),p=f>=0?f-l[u]:0;if(r.length>0&&s){let t=P.current>=0?P.current:s.getScrollTop(),n=1/0;for(let e=0;e<r.length;e++){let i=Math.abs(p+l[r[e]]-t);i<=n&&(n=i,o=e)}dt(`setSearchQuery('${e}'): ${r.length} msgs · ptr=${o} msgIdx=${r[o]} curTop=${t} origin=${p}`)}le.current={matches:r,ptr:o,screenOrd:0,prefixSum:i},r.length>0?me(r[o],!0):P.current>=0&&s&&s.scrollTo(P.current),h?.(a,r.length>0?i[o+1]??a:0)},nextMatch:()=>he(1),prevMatch:()=>he(-1),setAnchor:()=>{let e=t.current;e&&(P.current=e.getScrollTop())},disarmSearch:()=>{_?.(null),j.current=null,M.current={msgIdx:-1,positions:[]},N.current=-1},warmSearchIndex:async()=>{if(F.current)return 0;let e=A.current.messages,t=0,n=performance.now();for(let n=0;n<e.length;n+=500){await Yt(0);let r=performance.now(),i=Math.min(n+500,e.length);for(let t=n;t<i;t++)c(e[t]);t+=performance.now()-r}let r=Math.round(performance.now()-n);return dt(`warmSearchIndex: ${e.length} msgs · work=${Math.round(t)}ms wall=${r}ms chunks=${Math.ceil(e.length/500)}`),F.current=!0,Math.round(t)}}),[t]);let[ge,_e]=(0,Z.useState)(null),ye=(0,Z.useRef)({onItemClick:a,setHoveredKey:_e});ye.current={onItemClick:a,setHoveredKey:_e};let be=(0,Z.useCallback)((e,t)=>{let n=ye.current;!t&&n.onItemClick&&n.onItemClick(e)},[]),xe=(0,Z.useCallback)(e=>{ye.current.setHoveredKey(e)},[]),Se=(0,Z.useCallback)(e=>{ye.current.setHoveredKey(t=>t===e?null:t)},[]);return(0,ms.jsxs)(ms.Fragment,{children:[(0,ms.jsx)(l,{ref:E,height:C,flexShrink:0}),e.slice(ne,re).map((e,t)=>{let n=ne+t,r=x[n],c=!!a&&(o?.(e)??!0),l=c&&ge===r,u=s?.(e);return(0,ms.jsx)(ds,{itemKey:r,msg:e,idx:n,measureRef:T,expanded:u,hovered:l,clickable:c,onClickK:be,onEnterK:xe,onLeaveK:Se,renderItem:i},r)}),w>0&&(0,ms.jsx)(l,{height:w,flexShrink:0}),u&&(0,ms.jsx)(ps,{messages:e,start:ne,end:re,offsets:D,getItemTop:O,getItemElement:ee,scrollRef:t})]})}function ps({messages:e,start:t,end:n,offsets:r,getItemTop:i,getItemElement:a,scrollRef:o}){let{setStickyPrompt:s}=(0,Z.useContext)(os);(0,Z.useSyncExternalStore)((0,Z.useCallback)(e=>o.current?.subscribe(e)??ys,[o]),()=>{let e=o.current;if(!e)return NaN;let t=e.getScrollTop()+e.getPendingDelta();return e.isSticky()?-1-t:t});let c=o.current?.isSticky()??!0,l=Math.max(0,(o.current?.getScrollTop()??0)+(o.current?.getPendingDelta()??0)),u=t,d=-1;for(let e=n-1;e>=t;e--){let t=i(e);if(t>=0){if(t<l)break;d=t}u=e}let f=-1,p=null;if(u>0&&!c)for(let t=u-1;t>=0;t--){let n=ls(e[t]);if(n===null)continue;let r=i(t);if(!(r>=0&&r+1>=l)){f=t,p=n;break}}let m=d>=0?d-r[u]:0,h=f>=0?Math.max(0,m+r[f]):-1,g=(0,Z.useRef)({idx:-1,tries:0}),_=(0,Z.useRef)(`none`),v=(0,Z.useRef)(-1);return(0,Z.useEffect)(()=>{if(g.current.idx>=0)return;if(_.current===`armed`){_.current=`force`;return}let e=_.current===`force`;if(_.current=`none`,!e&&v.current===f)return;if(v.current=f,p===null){s(null);return}let t=p.trimStart(),n=t.search(/\n\s*\n/),r=(n>=0?t.slice(0,n):t).slice(0,_s).replace(/\s+/g,` `).trim();if(r===``){s(null);return}let i=f,c=h;s({text:r,scrollTo:()=>{s(`clicked`),_.current=`armed`;let e=a(i);e?o.current?.scrollToElement(e,1):(o.current?.scrollTo(c),g.current={idx:i,tries:0})}})}),(0,Z.useEffect)(()=>{if(g.current.idx<0)return;let e=a(g.current.idx);e?(o.current?.scrollToElement(e,1),g.current={idx:-1,tries:0}):++g.current.tries>5&&(g.current={idx:-1,tries:0})}),null}var Z,ms,hs,gs,_s,vs,ys,bs=t((()=>{h(),Z=n(h(),1),Ro(),y(),ce(),ss(),ms=S(),lt(),Jt(),Pi(),nt(),hs=3,gs=new WeakMap,_s=500,vs=new WeakMap,ys=()=>{}}));function xs(e,t){let n=new Set(t),r=new Set;return e.filter(e=>{if(e.type===`system`)return e.subtype!==`api_metrics`;let t=e.message?.content[0];if(e.type===`assistant`)return e.isApiErrorMessage?!0:t?.type===`tool_use`&&t.name&&n.has(t.name)?(`id`in t&&r.add(t.id),!0):!1;if(e.type===`user`)return t?.type===`tool_result`?t.tool_use_id!==void 0&&r.has(t.tool_use_id):!e.isMeta;if(e.type===`attachment`){let t=e.attachment;return t?.type===`queued_command`&&t.commandMode===`prompt`&&!t.isMeta&&t.origin===void 0}return!1})}function Ss(e,t){let n=new Set(t),r=new Set,i=[],a=0;for(let t=0;t<e.length;t++){let o=e[t],s=o.message?.content[0];if(o.type===`user`&&s?.type!==`tool_result`&&!o.isMeta){a++;continue}o.type===`assistant`&&(s?.type===`text`?i[t]=a:s?.type===`tool_use`&&s.name&&n.has(s.name)&&r.add(a))}return r.size===0?e:e.filter((e,t)=>{let n=i[t];return n===void 0||!r.has(n)})}function Cs(e,t,n=Ns,r=Ps){let i=t.current,a=i?e.findIndex(e=>e.uuid===i.uuid):-1,o=a>=0?a:i?Math.min(i.idx,Math.max(0,e.length-n)):0;e.length-o>n+r&&(o=e.length-n);let s=e[o];return s&&(i?.uuid!==s.uuid||i.idx!==o)?t.current={uuid:s.uuid,idx:o}:!s&&i&&(t.current=null),o}function ws(e){return(e.type===`assistant`||e.type===`user`?fe(e):null)??e.uuid}function Ts(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Es(e,t,n,r,i,a){if(i===`transcript`)return!0;switch(e.type){case`attachment`:case`user`:case`assistant`:{if(e.type===`assistant`){let t=e.message.content[0];if(t?.type===`server_tool_use`)return a.resolvedToolUseIDs.has(t.id)}let i=fe(e);return i?t.has(i)||n.has(i)||ge(i,`PostToolUse`,a)?!1:mi(r,a.resolvedToolUseIDs):!0}case`system`:return e.subtype!==`api_error`;case`grouped_tool_use`:return e.messages.every(e=>{let t=e.message.content[0];return t?.type===`tool_use`&&a.resolvedToolUseIDs.has(t.id)});case`collapsed_read_search`:return!1;default:return!0}}var Ds,Q,$,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls=t((()=>{m(),Ds=n(h(),1),Q=n(h(),1),hi(),w(),gt(),ye(),y(),be(),Xt(),rt(),vi(),xi(),k(),St(),i(),Me(),Ei(),it(),zt(),Pi(),Ja(),Be(),uo(),nt(),He(),mo(),de(),Oo(),$=S(),bs(),Os=Ds.memo(function({agentDefinitions:e}){return(0,$.jsx)(F,{children:(0,$.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,$.jsx)(Ga,{}),(0,$.jsx)(Ds.Suspense,{fallback:null,children:(0,$.jsx)(wo,{agentDefinitions:e})})]})})}),ks=($t(),e(Qt)),As=(pt(),e(ht)).BRIEF_TOOL_NAME,js=(Qe(),e(Ne)).SEND_USER_FILE_TOOL_NAME,Ms=30,Ns=200,Ps=50,Fs=({messages:e,tools:t,commands:n,verbose:i,toolJSX:a,toolUseConfirmQueue:o,inProgressToolUseIDs:c,isMessageSelectorVisible:u,conversationId:p,screen:m,streamingToolUses:h,showAllInTranscript:g=!1,agentDefinitions:_,onOpenRateLimitOptions:y,hideLogo:x=!1,isLoading:S,hidePastThinking:w=!1,streamingThinking:T,streamingText:E,isBriefOnly:O=!1,unseenDivider:k,scrollRef:ne,trackStickyPrompt:re,jumpRef:ie,onSearchMatchesChange:j,scanElement:M,setPositions:ae,disableRenderCap:oe=!1,cursor:se=null,setCursor:ce,cursorNavRef:le,renderRange:P})=>{let{columns:F}=v(),ue=Se(`transcript:toggleShowAll`,`Transcript`,`Ctrl+E`),I=(0,Q.useMemo)(()=>We(e).filter(N),[e]),de=(0,Q.useMemo)(()=>T?T.isStreaming?!0:T.streamingEndedAt?Date.now()-T.streamingEndedAt<3e4:!1:!1,[T]),{lastThinkingBlockId:fe,latestBashOutputUUID:pe}=(0,Q.useMemo)(()=>{let e=null,t=null,n=w&&!de;w&&de&&(e=`streaming`);for(let r=I.length-1;r>=0;r--){let i=I[r];if(i?.type===`user`){let r=i.message.content;if(!t){for(let e of r)if(e.type===`text`){let n=e.text??``;if(n.startsWith(`<bash-stdout`)||n.startsWith(`<bash-stderr`)){t=i.uuid;break}}}n&&!e&&(r.some(e=>e.type===`tool_result`)||(e=`no-thinking`))}else if(i?.type===`assistant`&&n&&!e){let t=i.message.content;for(let n=t.length-1;n>=0;n--)if(t[n]?.type===`thinking`){e=`${i.uuid}:${n}`;break}}if(e!==null&&t)break}return w||(e=null),{lastThinkingBlockId:e,latestBashOutputUUID:t}},[I,w,de]),he=(0,Q.useMemo)(()=>me(I),[I]),ge=(0,Q.useMemo)(()=>h.filter(e=>!c.has(e.contentBlock.id)&&!he.has(e.contentBlock.id)),[h,c,he]),_e=(0,Q.useMemo)(()=>ge.flatMap(e=>{let t=Ue({content:[e.contentBlock]});return t.uuid=te(e.contentBlock.id,0),We([t])}),[ge]),ve=m===`transcript`,ye=(0,Q.useMemo)(()=>r(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),be=ne!=null&&!ye,xe=ve&&!g&&!be,we=(0,Q.useRef)(null),L=(0,Q.useRef)(null),{collapsed:Oe,lookups:je,hasTruncatedMessages:Me,hiddenMessageCount:Ne}=(0,Q.useMemo)(()=>{let e=Ce((i||Ve()?I:ee(I,{includeSnipped:!0})).filter(e=>e.type!==`progress`&&!fo(e)&&Te(e,ve)),_e),n=[As,js].filter(e=>e!==null),r=[As].filter(e=>e!==null),a=n.length>0&&!ve?O?xs(e,n):r.length>0?Ss(e,r):e:e,o=xe?a.slice(-30):a,s=xe&&a.length>Ms,{messages:c}=wi(o,t,i),l=_i(bi(A(c,t)),i),u=Ae(I,o),d=(()=>{let e=o.at(-1);return e?.type===`assistant`?e.message?.id:void 0})(),f;if(L.current&&L.current.key===u)f=L.current.lookups;else if(L.current&&I.length>=L.current.normalizedCount&&o.length>=L.current.messageCount&&L.current.lastAssistantMsgId===d){let e=D(L.current.lookups,L.current.normalizedCount,L.current.messageCount,I,o);e?(f=e,L.current={key:u,lookups:f,normalizedCount:I.length,messageCount:o.length,lastAssistantMsgId:d}):(f=Ge(I,o),L.current={key:u,lookups:f,normalizedCount:I.length,messageCount:o.length,lastAssistantMsgId:d})}else f=Ge(I,o),L.current={key:u,lookups:f,normalizedCount:I.length,messageCount:o.length,lastAssistantMsgId:d};let p=e.length-Ms;return{collapsed:l,lookups:f,hasTruncatedMessages:s,hiddenMessageCount:p}},[i,I,ve,_e,xe,t,O]),Pe=(0,Q.useMemo)(()=>{let e=!be&&!oe?Cs(Oe,we):0;return P?Oe.slice(P[0],P[1]):e>0?Oe.slice(e):Oe},[Oe,P,be,oe]),Fe=(0,Q.useMemo)(()=>new Set(h.map(e=>e.contentBlock.id)),[h]),{dividerBeforeIndex:Ie,selectedIdx:Le}=(0,Q.useMemo)(()=>{if(!k&&!se)return{dividerBeforeIndex:-1,selectedIdx:-1};let e=-1,t=-1,n=k?.firstUnseenUuid.slice(0,24);for(let r=0;r<Pe.length;r++){let i=Pe[r];if(e===-1&&n&&i.uuid.slice(0,24)===n&&(e=r),t===-1&&se&&i.uuid===se.uuid&&(t=r),e!==-1&&t!==-1)break}return{dividerBeforeIndex:e,selectedIdx:t}},[k,se,Pe]),[Re,ze]=(0,Q.useState)(()=>new Set),Be=(0,Q.useCallback)(e=>{let t=ws(e);ze(e=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n})},[]),He=(0,Q.useCallback)(e=>Re.size>0&&Re.has(ws(e)),[Re]),Ke=(0,Q.useRef)(je);Ke.current=je;let qe=(0,Q.useCallback)(e=>{if(e.type===`collapsed_read_search`)return!0;if(e.type===`assistant`){let t=e.message.content,n=Array.isArray(t)?t[0]:void 0;return n!=null&&Ee(n)&&n.type===`advisor_tool_result`&&n.content.type===`advisor_result`}if(e.type!==`user`)return!1;let n=e.message.content[0];if(n?.type!==`tool_result`||n.is_error||!e.toolUseResult)return!1;let r=Ke.current.toolUseByToolUseID.get(n.tool_use_id??``)?.name;return(r?Zt(t,r):void 0)?.isResultTruncated?.(e.toolUseResult)??!1},[t]),Ye=(!a||!!a.shouldContinueAnimation)&&!o.length&&!u,Xe=c.size>0,{progress:Ze}=f(),Qe=(0,Q.useRef)(null),et=R().terminalProgressBarEnabled&&!C()&&!(ks?.isProactiveActive()??!1);(0,Q.useEffect)(()=>{let e=et?Xe?`indeterminate`:`completed`:null;Qe.current!==e&&(Qe.current=e,Ze(e))},[Ze,et,Xe]),(0,Q.useEffect)(()=>()=>Ze(null),[Ze]);let tt=(0,Q.useCallback)(e=>`${e.uuid}-${p}`,[p]),nt=(e,r)=>{let a=r>0?Pe[r-1]?.type:void 0,o=e.type===`user`&&a===`user`,u=e.type===`collapsed_read_search`&&(!!E||to(Pe,r,t,Fe)),d=Pe.length-1-r>0,f=tt(e),p=(0,$.jsx)(lo,{message:e,isUserContinuation:o,hasContentAfter:u,tools:t,commands:n,verbose:i||He(e)||se?.expanded===!0&&r===Le,inProgressToolUseIDs:c,streamingToolUseIDs:Fe,screen:m,canAnimate:Ye,onOpenRateLimitOptions:y,lastThinkingBlockId:fe,latestBashOutputUUID:pe,columns:F,isLoading:S,lookups:je,shouldCollapseDiffs:d},f),h=(0,$.jsx)(De.Provider,{value:r===Le,children:p},f);return k&&r===Ie?[(0,$.jsx)(l,{marginTop:1,children:(0,$.jsx)(s,{title:`${k.count} new ${Rt(k.count,`message`)}`,width:F,color:`inactive`})},`unseen-divider`),h]:h},rt=(0,Q.useRef)(new WeakMap),it=(0,Q.useCallback)(e=>{let n=rt.current.get(e);if(n!==void 0)return n;let r=Di(e);if(e.type===`user`&&e.toolUseResult&&Array.isArray(e.message.content)){let n=e.message.content.find(e=>e.type===`tool_result`);if(n&&`tool_use_id`in n){let i=je.toolUseByToolUseID.get(n.tool_use_id),a=(i&&Zt(t,i.name))?.extractSearchText?.(e.toolUseResult);a!==void 0&&(r=a)}}let i=r.toLowerCase();return rt.current.set(e,i),i},[t,je]);return(0,$.jsxs)($.Fragment,{children:[!x&&!(P&&P[0]>0)&&(0,$.jsx)(Os,{agentDefinitions:_}),Me&&(0,$.jsx)(s,{title:`${ue} to show ${b.bold(Ne)} previous messages`,width:F}),ve&&g&&Ne>0&&!oe&&(0,$.jsx)(s,{title:`${ue} to hide ${b.bold(Ne)} previous messages`,width:F}),be?(0,$.jsx)($e.Provider,{value:!0,children:(0,$.jsx)(fs,{messages:Pe,scrollRef:ne,columns:F,itemKey:tt,renderItem:nt,onItemClick:Be,isItemClickable:qe,isItemExpanded:He,trackStickyPrompt:re,selectedIndex:Le>=0?Le:void 0,cursorNavRef:le,setCursor:ce,jumpRef:ie,onSearchMatchesChange:j,scanElement:M,setPositions:ae,extractSearchText:it})}):Pe.flatMap(nt),E&&!O&&(0,$.jsx)(l,{alignItems:`flex-start`,flexDirection:`row`,marginTop:1,width:`100%`,children:(0,$.jsxs)(l,{flexDirection:`row`,children:[(0,$.jsx)(l,{minWidth:2,children:(0,$.jsx)(d,{color:`text`,children:_t})}),(0,$.jsx)(l,{flexDirection:`column`,children:(0,$.jsx)(ke,{children:E})})]})}),de&&T&&!O&&(0,$.jsx)(l,{marginTop:1,children:(0,$.jsx)(Je,{param:{type:`thinking`,thinking:T.thinking},addMargin:!1,isTranscriptMode:!0,verbose:i,hideInTranscript:!1})})]})},Is=Ds.memo(Fs,(e,t)=>{let n=Object.keys(e);for(let r of n)if(!(r===`onOpenRateLimitOptions`||r===`scrollRef`||r===`trackStickyPrompt`||r===`setCursor`||r===`cursorNavRef`||r===`jumpRef`||r===`onSearchMatchesChange`||r===`scanElement`||r===`setPositions`)&&e[r]!==t[r]){if(r===`streamingToolUses`){let n=e.streamingToolUses,r=t.streamingToolUses;if(n.length===r.length&&n.every((e,t)=>e.contentBlock===r[t]?.contentBlock))continue}if(r===`inProgressToolUseIDs`&&Ts(e.inProgressToolUseIDs,t.inProgressToolUseIDs))continue;if(r===`unseenDivider`){let n=e.unseenDivider,r=t.unseenDivider;if(n?.firstUnseenUuid===r?.firstUnseenUuid&&n?.count===r?.count)continue}if(r===`tools`){let n=e.tools,r=t.tools;if(n.length===r.length&&n.every((e,t)=>e.name===r[t]?.name))continue}return!1}return!0})}));export{ss as a,Ho as c,pi as d,$o as i,Uo as l,Ls as n,Xo as o,es as r,Yo as s,Is as t,fi as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./REPL-BV4WyYMg.js";export{e as REPL};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./memoize-BK3gG5ob.js";import{n as r,t as i}from"./defineProperty-C-QyHrDq.js";import{I as a,P as o,di as s,fi as c,j as l,t as u,ui as ee}from"./src-CDCSSo0U2.js";import{t as te}from"./jsx-runtime-Bb4Xn-E0.js";import{Ag as ne,As as re,Es as ie,Fg as d,Fl as f,Gy as p,Ig as m,Il as h,Kx as g,Nb as ae,Ng as oe,Nr as se,Og as ce,Pb as le,Pg as ue,Tg as de,Us as fe,Vs as pe,WD as me,XE as _,YD as he,YE as ge,ZD as _e,fr as ve,hD as ye,jr as be,pD as v,qx as xe,xg as Se,zy as y}from"./loadAgentsDir-nzr38hai.js";import{n as Ce,t as b}from"./cwd-BuJhkTrc.js";import{D as x,E as S,O as C,U as w,l as T,p as E,z as D}from"./debug-IKW-jE7K.js";import{Jt as O,Zt as k,c as A,f as j,g as we,n as M}from"./settings-5PQdphqC.js";import{b as N,c as P,g as F,o as I,y as Te}from"./config-C7YHKCPV.js";import{_ as L,d as Ee,g as De,h as Oe}from"./git-tyaWOgRL.js";import{n as R,r as ke}from"./execFileNoThrow-COKYqVQj.js";import{o as z,s as B}from"./log-B3eB4EFv.js";import{i as V,o as Ae}from"./platform-EtecGacO.js";import{n as je,r as Me}from"./analytics-BotDBGh0.js";import{l as Ne,u as Pe}from"./oauth-BqJqV-2M.js";import{Ht as H,Vt as Fe,_ as Ie,fi as Le,g as Re,mi as ze,u as Be}from"./model-DfFA3qMO.js";import{c as Ve,h as He,l as Ue,m as U,s as We}from"./proxy-Cn2YwITp.js";import{n as Ge,o as Ke}from"./fileStateCache-DDW5toIs.js";import{d as qe,o as Je}from"./api-TgV7fl9V.js";import{c as Ye,u as Xe}from"./firstPartyEventLogger-hU-LPkje.js";import{a as Ze,r as Qe,s as $e,t as et}from"./referral-DP_GshTS.js";import{c as tt,i as nt}from"./terminalSetup-C0PF87iu.js";import{n as rt,t as it}from"./PermissionDialog-0ya1CU5k.js";import{n as at,r as ot,t as st}from"./overageCreditGrant-CjK49axw.js";import{i as ct,o as lt}from"./OverageCreditUpsell-1FCN8bH3.js";import{n as ut,t as dt}from"./DesktopHandoff-BRbU4is4.js";import{randomUUID as ft}from"crypto";n(),ge(),Ce(),F(),k(),ke(),L(),z(),Xe();var pt=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function mt(e){return!pt.some(t=>t.test(e))}function ht(e,t){let n=[],r=new Set,i=new Map;for(let a=1;n.length<t&&a<=t;a++)for(let o of e){if(n.length>=t)break;if(!mt(o))continue;let e=Math.max(o.lastIndexOf(`/`),o.lastIndexOf(`\\`)),s=e>=0?o.slice(e+1):o;if(!s||r.has(s))continue;let c=e>=0?o.slice(0,e):`.`;(i.get(c)??0)>=a||(n.push(s),r.add(s),i.set(c,(i.get(c)??0)+1))}return n.length>=t?n:[]}async function gt(){if(O.platform===`win32`||!await Ee())return[];try{let e=await Ye(),t=[`log`,`-n`,`1000`,`--pretty=format:`,`--name-only`,`--diff-filter=M`],n=new Map,r=e=>{for(let t of e.split(`
|
|
2
|
-
`)){let e=t.trim();e&&n.set(e,(n.get(e)??0)+1)}};if(e){let{stdout:n}=await R(`git`,[...t,`--author=${e}`],{cwd:b()});r(n)}if(n.size<10){let{stdout:e}=await R(De(),t,{cwd:b()});r(e)}return ht(Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e])=>e),5)}catch(e){return B(e),[]}}var _t=10080*60*1e3,vt=t(()=>{let e=I(),t=e.exampleFiles?.length?_(e.exampleFiles):`<filepath>`;return`Try "${_([`fix lint errors`,`fix typecheck errors`,`how does ${t} work?`,`refactor ${t}`,`how do I log an error?`,`edit ${t} to...`,`write a test for ${t}`,`create a util logging.py that...`])}"`}),yt=t(async()=>{let e=I();Date.now()-(e.exampleFilesGeneratedAt??0)>_t&&(e.exampleFiles=[]),e.exampleFiles?.length||gt().then(e=>{e.length&&Te(t=>({...t,exampleFiles:e,exampleFilesGeneratedAt:Date.now()}))})});ze();var bt={"claude-3-opus":{modelName:`Claude 3 Opus`,retirementDates:{firstParty:`January 5, 2026`,bedrock:`January 15, 2026`,vertex:`January 5, 2026`,foundry:`January 5, 2026`}},"claude-3-7-sonnet":{modelName:`Claude 3.7 Sonnet`,retirementDates:{firstParty:`February 19, 2026`,bedrock:`April 28, 2026`,vertex:`May 11, 2026`,foundry:`February 19, 2026`}},"claude-3-5-haiku":{modelName:`Claude 3.5 Haiku`,retirementDates:{firstParty:`February 19, 2026`,bedrock:null,vertex:null,foundry:null}}};function xt(e){let t=e.toLowerCase(),n=Le();for(let[e,r]of Object.entries(bt)){let i=r.retirementDates[n];if(!(!t.includes(e)||!i))return{isDeprecated:!0,modelName:r.modelName,retirementDate:i}}return{isDeprecated:!1}}function St(e){if(!e)return null;let t=xt(e);return t.isDeprecated?`⚠ ${t.modelName} will be retired on ${t.retirementDate}. Consider switching to a newer model.`:null}r(),s(),w(),S(),T(),Ae(),Pe(),we(),Fe(),nt(),p(),h(),be();var W=e(c(),1);u(),je(),F(),le(),ut(),rt();var G=te(),Ct={enable_shortcut_tip:!1,enable_startup_dialog:!1};function K(){return Ct}function wt(){return process.platform===`darwin`||process.platform===`win32`&&process.arch===`x64`}function Tt(){if(!wt()||!K().enable_startup_dialog)return!1;let e=P();return!(e.desktopUpsellDismissed||(e.desktopUpsellSeenCount??0)>=3)}function Et({onDone:e}){let[t,n]=(0,W.useState)(!1);if((0,W.useEffect)(()=>{let e=(P().desktopUpsellSeenCount??0)+1;N(t=>(t.desktopUpsellSeenCount??0)>=e?t:{...t,desktopUpsellSeenCount:e}),Me(`tengu_desktop_upsell_shown`,{seen_count:e})},[]),t)return(0,G.jsx)(dt,{onDone:()=>e()});function r(t){switch(t){case`try`:n(!0);return;case`never`:N(e=>e.desktopUpsellDismissed?e:{...e,desktopUpsellDismissed:!0}),e();return;case`not-now`:e();return}}return(0,G.jsx)(it,{title:`Try Claude Code Desktop`,children:(0,G.jsxs)(a,{flexDirection:`column`,paddingX:2,paddingY:1,children:[(0,G.jsx)(a,{marginBottom:1,children:(0,G.jsx)(o,{children:`Same Claude Code with visual diffs, live app preview, parallel sessions, and more.`})}),(0,G.jsx)(ae,{options:[{label:`Open in Claude Code Desktop`,value:`try`},{label:`Not now`,value:`not-now`},{label:`Don't ask again`,value:`never`}],onChange:r,onCancel:()=>r(`not-now`)})]})})}Ie(),he(),ye(),Ke(),Je(),xe(),ce(),pe(),ie(),$e(),ot(),ct(),F();function Dt(e){let t=P().numStartups;N(n=>{let r=n.tipsHistory??{};return r[e]===t?n:{...n,tipsHistory:{...r,[e]:t}}})}function q(e){let t=P(),n=t.tipsHistory?.[e];return n?t.numStartups-n:1/0}u(),F(),k(),L();var J;async function Ot(){return J===void 0&&(J=v in await fe()),J}async function Y(e,t,n){if(!await Ot()||re(`${e}@claude-plugins-official`))return!1;let{bashTools:r}=t??{};return!!(n.cli&&r?.size&&n.cli.some(e=>r.has(e))||n.filePath&&t?.readFileState&&Ge(t.readFileState).some(e=>n.filePath.test(e)))}var kt=[{id:`new-user-warmup`,content:async()=>`Start with small features or bug fixes, tell Claude to propose a plan, and verify its suggested edits`,cooldownSessions:3,async isRelevant(){return P().numStartups<10}},{id:`plan-mode-for-complex-tasks`,content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${g(`chat:cycleMode`,`Chat`,`shift+tab`)} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let e=P();return(e.lastPlanModeUse?(Date.now()-e.lastPlanModeUse)/(1e3*60*60*24):1/0)>7}},{id:`default-permission-mode-config`,content:async()=>`Use /config to change your default permission mode (including Plan Mode)`,cooldownSessions:10,isRelevant:async()=>{try{let e=P(),t=j(),n=!!e.lastPlanModeUse,r=!!t?.permissions?.defaultMode;return n&&!r}catch(e){return E(`Failed to check default-permission-mode-config tip relevance: ${e}`,{level:`warn`}),!1}}},{id:`git-worktrees`,content:async()=>`Use git worktrees to run multiple Claude sessions in parallel.`,cooldownSessions:10,isRelevant:async()=>{try{let e=P();return await Oe()<=1&&e.numStartups>50}catch{return!1}}},{id:`color-when-multi-clauding`,content:async()=>`Running multiple Claude sessions? Use /color and /rename to tell them apart at a glance.`,cooldownSessions:10,isRelevant:async()=>!ve()&&await f()>=2},{id:`terminal-setup`,content:async()=>O.terminal===`Apple_Terminal`?`Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more`:`Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more`,cooldownSessions:10,async isRelevant(){let e=P();return O.terminal===`Apple_Terminal`?!e.optionAsMetaKeyInstalled:!e.shiftEnterKeyBindingInstalled}},{id:`shift-enter`,content:async()=>O.terminal===`Apple_Terminal`?`Press Option+Enter to send a multi-line message`:`Press Shift+Enter to send a multi-line message`,cooldownSessions:10,async isRelevant(){let e=P();return!!((O.terminal===`Apple_Terminal`?e.optionAsMetaKeyInstalled:e.shiftEnterKeyBindingInstalled)&&e.numStartups>3)}},{id:`shift-enter-setup`,content:async()=>O.terminal===`Apple_Terminal`?`Run /terminal-setup to enable Option+Enter for new lines`:`Run /terminal-setup to enable Shift+Enter for new lines`,cooldownSessions:10,async isRelevant(){if(!tt())return!1;let e=P();return!(O.terminal===`Apple_Terminal`?e.optionAsMetaKeyInstalled:e.shiftEnterKeyBindingInstalled)}},{id:`memory-command`,content:async()=>`Use /memory to view and manage Claude memory`,cooldownSessions:15,async isRelevant(){return P().memoryUsageCount<=0}},{id:`theme-command`,content:async()=>`Use /theme to change the color theme`,cooldownSessions:20,isRelevant:async()=>!0},{id:`colorterm-truecolor`,content:async()=>`Try setting environment variable COLORTERM=truecolor for richer colors`,cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&ee.level<3},{id:`powershell-tool-env`,content:async()=>`Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)`,cooldownSessions:10,isRelevant:async()=>V()===`windows`&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:`status-line`,content:async()=>`Use /statusline to set up a custom status line that will display beneath the input box`,cooldownSessions:25,isRelevant:async()=>j().statusLine===void 0},{id:`prompt-queue`,content:async()=>`Hit Enter to queue up additional messages while Claude is working.`,cooldownSessions:5,async isRelevant(){return P().promptQueueUseCount<=3}},{id:`enter-to-steer-in-relatime`,content:async()=>`Send messages to Claude while it works to steer Claude in real-time`,cooldownSessions:20,isRelevant:async()=>!0},{id:`todo-list`,content:async()=>`Ask Claude to create a todo list when working on complex tasks to track progress and remain on track`,cooldownSessions:20,isRelevant:async()=>!0},{id:`vscode-command-install`,content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${O.terminal===`vscode`?`code`:O.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!ue()||V()!==`macos`)return!1;switch(O.terminal){case`vscode`:return!await d();case`cursor`:return!await ne();case`windsurf`:return!await m();default:return!1}}},{id:`ide-upsell-external-terminal`,content:async()=>`Connect Claude to your IDE · /ide`,cooldownSessions:4,async isRelevant(){return oe()||(await de()).length!==0?!1:(await Se()).length>0}},{id:`permissions`,content:async()=>`Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools`,cooldownSessions:10,async isRelevant(){return P().numStartups>10}},{id:`drag-and-drop-images`,content:async()=>`Did you know you can drag and drop image files into your terminal?`,cooldownSessions:10,isRelevant:async()=>!O.isSSH()},{id:`paste-images-mac`,content:async()=>`Paste images into Claude Code using control+v (not cmd+v!)`,cooldownSessions:10,isRelevant:async()=>V()===`macos`},{id:`double-esc`,content:async()=>`Double-tap esc to rewind the conversation to a previous point in time`,cooldownSessions:10,isRelevant:async()=>!y()},{id:`double-esc-code-restore`,content:async()=>`Double-tap esc to rewind the code and/or conversation to a previous point in time`,cooldownSessions:10,isRelevant:async()=>y()},{id:`continue`,content:async()=>`Run claude --continue or claude --resume to resume a conversation`,cooldownSessions:10,isRelevant:async()=>!0},{id:`rename-conversation`,content:async()=>`Name your conversations with /rename to find them easily in /resume later`,cooldownSessions:15,isRelevant:async()=>se()&&P().numStartups>10},{id:`custom-commands`,content:async()=>`Create skills by adding .md files to .claude/skills/ in your project or ~/.claude/skills/ for skills that work in any project`,cooldownSessions:15,async isRelevant(){return P().numStartups>10}},{id:`shift-tab`,content:async()=>`Hit ${g(`chat:cycleMode`,`Chat`,`shift+tab`)} to cycle between default, accept edits, plan, auto, and bypass modes`,cooldownSessions:10,isRelevant:async()=>!0},{id:`image-paste`,content:async()=>`Use ${g(`chat:imagePaste`,`Chat`,`ctrl+v`)} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:`custom-agents`,content:async()=>`Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer`,cooldownSessions:15,async isRelevant(){return P().numStartups>5}},{id:`agent-flag`,content:async()=>`Use --agent <agent_name> to directly start a conversation with a subagent`,cooldownSessions:15,async isRelevant(){return P().numStartups>5}},{id:`desktop-app`,content:async()=>`Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop`,cooldownSessions:15,isRelevant:async()=>V()!==`linux`},{id:`desktop-shortcut`,content:async e=>`Continue your session in Claude Code Desktop with ${l(`suggestion`,e?.theme??`dark`)(`/desktop`)}`,cooldownSessions:15,isRelevant:async()=>K().enable_shortcut_tip?process.platform===`darwin`||process.platform===`win32`&&process.arch===`x64`:!1},{id:`web-app`,content:async()=>`Run tasks in the cloud while you keep coding locally · clau.de/web`,cooldownSessions:15,isRelevant:async()=>!0},{id:`opusplan-mode-reminder`,content:async()=>`Your default model setting is Opus Plan Mode. Press ${g(`chat:cycleMode`,`Chat`,`shift+tab`)} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){if(process.env.USER_TYPE===`ant`)return!1;let e=P(),t=Re()===`opusplan`,n=e.lastPlanModeUse?(Date.now()-e.lastPlanModeUse)/(1e3*60*60*24):1/0;return t&&n>3}},{id:`frontend-design-plugin`,content:async e=>`Working with HTML/CSS? Install the frontend-design plugin:\n${l(`suggestion`,e?.theme??`dark`)(`/plugin install frontend-design@${v}`)}`,cooldownSessions:3,isRelevant:async e=>Y(`frontend-design`,e,{filePath:/\.(html|css|htm)$/i})},{id:`vercel-plugin`,content:async e=>`Working with Vercel? Install the vercel plugin:\n${l(`suggestion`,e?.theme??`dark`)(`/plugin install vercel@${v}`)}`,cooldownSessions:3,isRelevant:async e=>Y(`vercel`,e,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:[`vercel`]})},{id:`effort-high-nudge`,content:async e=>`Working on something tricky? ${l(`suggestion`,e?.theme??`dark`)(`/effort high`)} gives better first answers`,cooldownSessions:3,isRelevant:async()=>(!H()||!_e(Be())||A(`policySettings`)?.effortLevel!==void 0||me()!==void 0||M().effortLevel,!1)},{id:`subagent-fanout-nudge`,content:async e=>`Say ${l(`suggestion`,e?.theme??`dark`)(`"fan out subagents"`)} and Claude sends a team. Each one digs deep so nothing gets missed.`,cooldownSessions:3,isRelevant:async()=>(H(),!1)},{id:`guest-passes`,content:async e=>{let t=l(`claude`,e?.theme??`dark`),n=Ze();return n?`Share Claude Code and earn ${t(Qe(n))} of extra usage · ${t(`/passes`)}`:`You have free guest passes to share · ${t(`/passes`)}`},cooldownSessions:3,isRelevant:async()=>{if(P().hasVisitedPasses)return!1;let{eligible:e}=et();return e}},{id:`overage-credit`,content:async e=>{let t=l(`claude`,e?.theme??`dark`),n=at(),r=n?st(n):null;return r?`${t(`${r} in extra usage, on us`)} · third-party apps · ${t(`/extra-usage`)}`:``},cooldownSessions:3,isRelevant:async()=>lt()},{id:`feedback-command`,content:async()=>`Use /feedback to help us improve!`,cooldownSessions:15,async isRelevant(){return process.env.USER_TYPE!==`ant`&&P().numStartups>5}}],X=process.env.USER_TYPE===`ant`?[{id:`important-claudemd`,content:async()=>`[ANT-ONLY] Use "IMPORTANT:" prefix for must-follow CLAUDE.md rules`,cooldownSessions:30,isRelevant:async()=>!0},{id:`skillify`,content:async()=>`[ANT-ONLY] Use /skillify at the end of a workflow to turn it into a reusable skill`,cooldownSessions:15,isRelevant:async()=>!0}]:[];function At(){let e=M().spinnerTipsOverride;return e?.tips?.length?e.tips.map((e,t)=>({id:`custom-tip-${t}`,content:async()=>e,cooldownSessions:0,isRelevant:async()=>!0})):[]}async function jt(e){let t=M().spinnerTipsOverride,n=At();if(t?.excludeDefault&&n.length>0)return n;let r=[...kt,...X],i=await Promise.all(r.map(t=>t.isRelevant?.(e)??Promise.resolve(!0)));return[...r.filter((e,t)=>i[t]).filter(e=>q(e.id)>=e.cooldownSessions),...n]}T(),z(),He(),Ue();var Z=2e3,Q=5,Mt=3e4,$=3,Nt=new Set([4003]);function Pt(e){return typeof e!=`object`||!e||!(`type`in e)?!1:typeof e.type==`string`}var Ft=class{constructor(e,t,n,r){i(this,`sessionId`,void 0),i(this,`orgUuid`,void 0),i(this,`getAccessToken`,void 0),i(this,`callbacks`,void 0),i(this,`ws`,null),i(this,`state`,`closed`),i(this,`reconnectAttempts`,0),i(this,`sessionNotFoundRetries`,0),i(this,`pingInterval`,null),i(this,`reconnectTimer`,null),this.sessionId=e,this.orgUuid=t,this.getAccessToken=n,this.callbacks=r}async connect(){if(this.state===`connecting`){E(`[SessionsWebSocket] Already connecting`);return}this.state=`connecting`;let e=`${Ne().BASE_API_URL.replace(`http`,`ws`)}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;E(`[SessionsWebSocket] Connecting to ${e}`);let t={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":`2023-06-01`};if(typeof Bun<`u`){let n=new globalThis.WebSocket(e,{headers:t,proxy:Ve(e),tls:U()||void 0});this.ws=n,n.addEventListener(`open`,()=>{E(`[SessionsWebSocket] Connection opened, authenticated via headers`),this.state=`connected`,this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),n.addEventListener(`message`,e=>{let t=typeof e.data==`string`?e.data:String(e.data);this.handleMessage(t)}),n.addEventListener(`error`,()=>{let e=Error(`[SessionsWebSocket] WebSocket error`);B(e),this.callbacks.onError?.(e)}),n.addEventListener(`close`,e=>{E(`[SessionsWebSocket] Closed: code=${e.code} reason=${e.reason}`),this.handleClose(e.code)}),n.addEventListener(`pong`,()=>{E(`[SessionsWebSocket] Pong received`)})}else{let{default:n}=await import(`./wrapper-K8ZapJVu.js`),r=new n(e,{headers:t,agent:We(e),...U()});this.ws=r,r.on(`open`,()=>{E(`[SessionsWebSocket] Connection opened, authenticated via headers`),this.state=`connected`,this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),r.on(`message`,e=>{this.handleMessage(e.toString())}),r.on(`error`,e=>{B(Error(`[SessionsWebSocket] Error: ${e.message}`)),this.callbacks.onError?.(e)}),r.on(`close`,(e,t)=>{E(`[SessionsWebSocket] Closed: code=${e} reason=${t.toString()}`),this.handleClose(e)}),r.on(`pong`,()=>{E(`[SessionsWebSocket] Pong received`)})}}handleMessage(e){try{let t=x(e);Pt(t)?this.callbacks.onMessage(t):E(`[SessionsWebSocket] Ignoring message type: ${typeof t==`object`&&t&&`type`in t?String(t.type):`unknown`}`)}catch(e){B(Error(`[SessionsWebSocket] Failed to parse message: ${D(e)}`))}}handleClose(e){if(this.stopPingInterval(),this.state===`closed`)return;this.ws=null;let t=this.state;if(this.state=`closed`,Nt.has(e)){E(`[SessionsWebSocket] Permanent close code ${e}, not reconnecting`),this.callbacks.onClose?.();return}if(e===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>$){E(`[SessionsWebSocket] 4001 retry budget exhausted (${$}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(Z*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${$}`);return}t===`connected`&&this.reconnectAttempts<Q?(this.reconnectAttempts++,this.scheduleReconnect(Z,`attempt ${this.reconnectAttempts}/${Q}`)):(E(`[SessionsWebSocket] Not reconnecting`),this.callbacks.onClose?.())}scheduleReconnect(e,t){this.callbacks.onReconnecting?.(),E(`[SessionsWebSocket] Scheduling reconnect (${t}) in ${e}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},e)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state===`connected`)try{this.ws.ping?.()}catch{}},Mt)}stopPingInterval(){this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=null)}sendControlResponse(e){if(!this.ws||this.state!==`connected`){B(Error(`[SessionsWebSocket] Cannot send: not connected`));return}E(`[SessionsWebSocket] Sending control response`),this.ws.send(C(e))}sendControlRequest(e){if(!this.ws||this.state!==`connected`){B(Error(`[SessionsWebSocket] Cannot send: not connected`));return}let t={type:`control_request`,request_id:ft(),request:e};E(`[SessionsWebSocket] Sending control request: ${e.subtype}`),this.ws.send(C(t))}isConnected(){return this.state===`connected`}close(){E(`[SessionsWebSocket] Closing connection`),this.state=`closed`,this.stopPingInterval(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null)}reconnect(){E(`[SessionsWebSocket] Force reconnecting`),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}};T(),z(),r();function It(e){return e.type!==`control_request`&&e.type!==`control_response`&&e.type!==`control_cancel_request`}var Lt=class{constructor(e,t){i(this,`config`,void 0),i(this,`callbacks`,void 0),i(this,`websocket`,null),i(this,`pendingPermissionRequests`,new Map),this.config=e,this.callbacks=t}connect(){E(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let e={onMessage:e=>this.handleMessage(e),onConnected:()=>{E(`[RemoteSessionManager] Connected`),this.callbacks.onConnected?.()},onClose:()=>{E(`[RemoteSessionManager] Disconnected`),this.callbacks.onDisconnected?.()},onReconnecting:()=>{E(`[RemoteSessionManager] Reconnecting`),this.callbacks.onReconnecting?.()},onError:e=>{B(e),this.callbacks.onError?.(e)}};this.websocket=new Ft(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,e),this.websocket.connect()}handleMessage(e){if(e.type===`control_request`){this.handleControlRequest(e);return}if(e.type===`control_cancel_request`){let{request_id:t}=e,n=this.pendingPermissionRequests.get(t);E(`[RemoteSessionManager] Permission request cancelled: ${t}`),this.pendingPermissionRequests.delete(t),this.callbacks.onPermissionCancelled?.(t,n?.tool_use_id);return}if(e.type===`control_response`){E(`[RemoteSessionManager] Received control response`);return}It(e)&&this.callbacks.onMessage(e)}handleControlRequest(e){let t=e.request_id,n=e.request;if(n.subtype===`can_use_tool`)E(`[RemoteSessionManager] Permission request for tool: ${n.tool_name}`),this.pendingPermissionRequests.set(t,n),this.callbacks.onPermissionRequest(n,t);else{E(`[RemoteSessionManager] Unsupported control request subtype: ${n.subtype}`);let e={type:`control_response`,response:{subtype:`error`,request_id:t,error:`Unsupported control request subtype: ${n.subtype}`}};this.websocket?.sendControlResponse(e)}}async sendMessage(e,t){E(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let n=await qe(this.config.sessionId,e,t);return n||B(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`)),n}respondToPermissionRequest(e,t){if(!this.pendingPermissionRequests.get(e)){B(Error(`[RemoteSessionManager] No pending permission request with ID: ${e}`));return}this.pendingPermissionRequests.delete(e);let n={type:`control_response`,response:{subtype:`success`,request_id:e,response:{behavior:t.behavior,...t.behavior===`allow`?{updatedInput:t.updatedInput}:{message:t.message}}}};E(`[RemoteSessionManager] Sending permission response: ${t.behavior}`),this.websocket?.sendControlResponse(n)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){E(`[RemoteSessionManager] Sending interrupt signal`),this.websocket?.sendControlRequest({subtype:`interrupt`})}getSessionId(){return this.config.sessionId}disconnect(){E(`[RemoteSessionManager] Disconnecting`),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){E(`[RemoteSessionManager] Reconnecting WebSocket`),this.websocket?.reconnect()}};function Rt(e,t,n,r=!1,i=!1){return{sessionId:e,getAccessToken:t,orgUuid:n,hasInitialPrompt:r,viewerOnly:i}}export{Dt as a,St as c,q as i,vt as l,Rt as n,Et as o,jt as r,Tt as s,Lt as t,yt as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_T as e,vT as t}from"./loadAgentsDir-nzr38hai.js";t();export{e as clearSearchExtraToolsDescriptionCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime-DaDcL9Zw.js";import{H as e,I as t,P as n,fi as r,t as i}from"./src-CDCSSo0U2.js";import{t as a}from"./jsx-runtime-Bb4Xn-E0.js";import{Jt as o,Zt as s}from"./settings-5PQdphqC.js";r(),i(),s();var c=a(),l=58;function u(){let[r]=e(),i=`Welcome to Claude Code`;return o.terminal===`Apple_Terminal`?(0,c.jsx)(d,{theme:r,welcomeMessage:i}):[`light`,`light-daltonized`,`light-ansi`].includes(r)?(0,c.jsx)(t,{width:l,children:(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{color:`claude`,children:[i,` `]}),(0,c.jsxs)(n,{dimColor:!0,children:[`v`,`0.0.1`,` `]})]}),(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)(t,{width:l,children:(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{children:[(0,c.jsxs)(n,{color:`claude`,children:[i,` `]}),(0,c.jsxs)(n,{dimColor:!0,children:[`v`,`0.0.1`,` `]})]}),(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:r}){return[`light`,`light-daltonized`,`light-ansi`].includes(e)?(0,c.jsx)(t,{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`,`0.0.1`,` `]})]}),(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)(t,{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`,`0.0.1`,` `]})]}),(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-TgV7fl9V.js";n();export{t as fetchCodeSessionsFromSessionsAPI,e as getOAuthHeaders};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{n as t,t as n}from"./axios-DaWTGg7G.js";import{n as r,t as i}from"./v4-jw6qOKwQ.js";import{E as a,J as o,O as s,U as c,l,p as u,z as d}from"./debug-IKW-jE7K.js";import{c as f,g as p}from"./config-C7YHKCPV.js";import{o as m,s as h}from"./log-B3eB4EFv.js";import{n as g,t as _}from"./lazySchema-uxlVVNM1.js";import{l as v,u as y}from"./oauth-BqJqV-2M.js";import{Hr as b,Ur as x,Vt as S,kt as C,vn as w,yn as T}from"./model-DfFA3qMO.js";import{a as E,i as D}from"./detectRepository-ReZ0Fz8Z.js";import{randomUUID as O}from"crypto";function k(e){return t.isAxiosError(e)?!e.response||e.response.status>=500:!1}async function A(e,n){let r;for(let i=0;i<=V;i++)try{return await t.get(e,n)}catch(e){if(r=e,!k(e))throw e;if(i>=V)throw u(`Teleport request failed after ${i+1} attempts: ${d(e)}`),e;let t=B[i]??2e3;u(`Teleport request failed (attempt ${i+1}/${V+1}), retrying in ${t}ms: ${d(e)}`),await T(t)}throw r}function j(e){return e===null||typeof e==`string`&&e.trim()===``}async function M(){let e=f(),t=process.env.ANTHROPIC_API_KEY?.trim()||e.workspaceApiKey?.trim();if(!t){let t=e.workspaceApiKey,n=j(t)?`Your workspace API key was cleared. `:`A workspace API key (sk-ant-api03-*) is required to use workspace endpoints (/v1/agents, /v1/vaults, /v1/memory_stores, /v1/skills). `;throw Error(n+`Press W in /login to save your key directly (no restart needed), or set ANTHROPIC_API_KEY=<key> and restart. Obtain a key from https://console.anthropic.com/settings/keys. Subscription OAuth (claude.ai login) cannot reach these endpoints.`)}if(!t.startsWith(`sk-ant-api03-`))throw Error(`Workspace API key must start with sk-ant-api03-, got prefix "${t.slice(0,4)}...". Obtain a workspace API key from https://console.anthropic.com/settings/keys. Press W in /login to save your key, or set ANTHROPIC_API_KEY.`);return{apiKey:t}}async function N(){let e=C()?.accessToken;if(e===void 0)throw Error(`Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.`);let t=await b();if(!t)throw Error(`Unable to get organization UUID`);return{accessToken:e,orgUUID:t}}async function P(){let{accessToken:e,orgUUID:t}=await N(),n=`${v().BASE_API_URL}/v1/sessions`;try{let r=await A(n,{headers:{...F(e),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":t}});if(r.status!==200)throw Error(`Failed to fetch code sessions: ${r.statusText}`);return r.data.data.map(e=>{let t=e.session_context.sources.find(e=>e.type===`git_repository`),n=null;if(t?.url){let e=E(t.url);if(e){let[r,i]=e.split(`/`);r&&i&&(n={name:i,owner:{login:r},default_branch:t.revision||void 0})}}return{id:e.id,title:e.title||`Untitled`,description:``,status:e.session_status,repo:n,turns:[],created_at:e.created_at,updated_at:e.updated_at}})}catch(e){throw h(o(e)),e}}function F(e){return{Authorization:`Bearer ${e}`,"Content-Type":`application/json`,"anthropic-version":`2023-06-01`}}async function I(e){let{accessToken:n,orgUUID:r}=await N(),i=`${v().BASE_API_URL}/v1/sessions/${e}`,a={...F(n),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":r},o=await t.get(i,{headers:a,timeout:15e3,validateStatus:e=>e<500});if(o.status!==200){let t=o.data?.error?.message;throw o.status===404?Error(`Session not found: ${e}`):o.status===401?Error(`Session expired. Please run /login to sign in again.`):Error(t||`Failed to fetch session: ${o.status} ${o.statusText}`)}return o.data}function L(e){return(e.session_context.outcomes?.find(e=>e.type===`git_repository`))?.git_info?.branches[0]}async function R(e,n,r){try{let{accessToken:i,orgUUID:a}=await N(),o=`${v().BASE_API_URL}/v1/sessions/${e}/events`,c={...F(i),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":a},l={events:[{uuid:r?.uuid??O(),session_id:e,type:`user`,parent_tool_use_id:null,message:{role:`user`,content:n}}]};u(`[sendEventToRemoteSession] Sending event to session ${e}`);let d=await t.post(o,l,{headers:c,validateStatus:e=>e<500,timeout:3e4});return d.status===200||d.status===201?(u(`[sendEventToRemoteSession] Successfully sent event to session ${e}`),!0):(u(`[sendEventToRemoteSession] Failed with status ${d.status}: ${s(d.data)}`),!1)}catch(e){return u(`[sendEventToRemoteSession] Error: ${d(e)}`),!1}}async function z(e,n){try{let{accessToken:r,orgUUID:i}=await N(),a=`${v().BASE_API_URL}/v1/sessions/${e}`,o={...F(r),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":i};u(`[updateSessionTitle] Updating title for session ${e}: "${n}"`);let c=await t.patch(a,{title:n},{headers:o,validateStatus:e=>e<500});return c.status===200?(u(`[updateSessionTitle] Successfully updated title for session ${e}`),!0):(u(`[updateSessionTitle] Failed with status ${c.status}: ${s(c.data)}`),!1)}catch(e){return u(`[updateSessionTitle] Error: ${d(e)}`),!1}}var B,V,H=e((()=>{n(),y(),x(),i(),S(),p(),l(),D(),c(),_(),m(),w(),a(),B=[2e3,4e3,8e3,16e3],V=B.length,g(()=>r.object({id:r.string(),title:r.string(),description:r.string(),status:r.enum([`idle`,`working`,`waiting`,`completed`,`archived`,`cancelled`,`rejected`]),repo:r.object({name:r.string(),owner:r.object({login:r.string()}),default_branch:r.string().optional()}).nullable(),turns:r.array(r.string()),created_at:r.string(),updated_at:r.string()}))}));export{F as a,j as c,R as d,z as f,L as i,N as l,P as n,H as o,I as r,k as s,A as t,M as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./asciicast-n-BBfgDq.js";export{e as renameRecordingForSession};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,o as t}from"./assistant-BA9_Mo9U.js";e();export{t as isAssistantMode};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Lt as e,Vt as t,bt as n,ht as r,kt as i}from"./model-DfFA3qMO.js";t();export{r as checkAndRefreshOAuthTokenIfNeeded,n as clearOAuthTokenCache,i as getClaudeAIOAuthTokens,e as handleOAuth401Error};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./auth-DHyCIxCk.js";export{t as authLogin,e as authStatus};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./backgroundHousekeeping-hDDE8mJC.js";export{e as startBackgroundHousekeeping};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,r,s as i,t as a}from"./bg-DQ0Q3Qv-.js";n();export{a as attachHandler,r as handleBgStart,e as killHandler,i as logsHandler,t as psHandler};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,o as n,t as r}from"./bridgeConfig-CCtXe8ak.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--F-6TUi4.js";t();export{n as checkBridgeMinVersion,e as getBridgeDisabledReason};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./bridgeMain--R1HFbOv.js";export{e as bridgeMain};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./caches-BtmAri4e.js";e();export{t as clearSessionCaches};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Hr as e,Ur as t}from"./model-DfFA3qMO.js";t();export{e as getOrganizationUUID};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Qi as e,Vi as t,qi as n}from"./loadAgentsDir-nzr38hai.js";e();export{t as clearCommandsCache,n as getCommands};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e,l as t}from"./commitAttribution-Cm40fdNU.js";t();export{e as isInternalModelRepo};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./completionCache-BQaLkB4d.js";t();export{e as regenerateCompletionCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{t}from"./jsx-runtime-Bb4Xn-E0.js";import{n,t as r}from"./Settings-ns6mRsDc.js";var i,a;e((()=>{n(),i=t(),a=async(e,t)=>(0,i.jsx)(r,{onClose:e,context:t,defaultTab:`Config`})}))();export{a as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./loadAgentsDir-nzr38hai.js";import{b as e,c as t,g as n,n as r,o as i,r as a,y as o}from"./config-C7YHKCPV.js";n();export{r as checkHasTrustDialogAccepted,a as enableConfigs,i as getCurrentProjectConfig,t as getGlobalConfig,o as saveCurrentProjectConfig,e as saveGlobalConfig};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./context-noninteractive-DnH6Q9Lu.js";t();export{n as call,e as collectContextData};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./conversation-GJxfkr6M.js";e();export{t as clearConversation};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n,r}from"./createSession-DIr4sUp6.js";t();export{n as createBridgeSession,r as getBridgeSession,e as updateBridgeSessionTitle};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./cwd-BuJhkTrc.js";e();export{t as getCwd};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./datadog-DNCsyfSO.js";t();export{e as shutdownDatadog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as e,p as t}from"./debug-IKW-jE7K.js";e();export{t as logForDebugging};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,o as n}from"./detectRepository-ReZ0Fz8Z.js";t();export{e as parseGitHubRepository,n as parseGitRemote};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{t}from"./jsx-runtime-Bb4Xn-E0.js";import{n,t as r}from"./Doctor-WxNv49HC.js";var i,a;e((()=>{n(),i=t(),a=(e,t,n)=>Promise.resolve((0,i.jsx)(r,{onDone:e}))}))();export{a as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t}from"./envLessBridgeConfig-D_Jg4fJy.js";t();export{e as shouldShowAppUpgradeMessage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{A as t,C as n,m as r,t as i,w as a}from"./v4-jw6qOKwQ.js";import{n as o,t as s}from"./lazySchema-uxlVVNM1.js";import{i as c,r as l}from"./semver-BMRJYn3q.js";import{r as u,s as d}from"./bridgeEnabled--F-6TUi4.js";async function f(){let e=h,t=g().safeParse(e);return t.success?t.data:h}async function p(){let e=await f();return e.min_version&&c(`0.0.1`,e.min_version)?`Your version of Claude Code (0.0.1) is too old for Remote Control.\nVersion ${e.min_version} or higher is required. Run \`claude update\` to update.`:null}async function m(){return d()?(await f()).should_show_app_upgrade_message:!1}var h,g,_=e((()=>{i(),s(),l(),u(),h={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:.25,init_retry_max_delay_ms:4e3,http_timeout_ms:1e4,uuid_dedup_buffer_size:2e3,heartbeat_interval_ms:2e4,heartbeat_jitter_fraction:.1,token_refresh_buffer_ms:3e5,teardown_archive_timeout_ms:1500,connect_timeout_ms:15e3,min_version:`0.0.0`,should_show_app_upgrade_message:!1},g=o(()=>a({init_retry_max_attempts:n().int().min(1).max(10).default(3),init_retry_base_delay_ms:n().int().min(100).default(500),init_retry_jitter_fraction:n().min(0).max(1).default(.25),init_retry_max_delay_ms:n().int().min(500).default(4e3),http_timeout_ms:n().int().min(2e3).default(1e4),uuid_dedup_buffer_size:n().int().min(100).max(5e4).default(2e3),heartbeat_interval_ms:n().int().min(5e3).max(3e4).default(2e4),heartbeat_jitter_fraction:n().min(0).max(.5).default(.1),token_refresh_buffer_ms:n().int().min(3e4).max(18e5).default(3e5),teardown_archive_timeout_ms:n().int().min(500).max(2e3).default(1500),connect_timeout_ms:n().int().min(5e3).max(6e4).default(15e3),min_version:t().refine(e=>{try{return c(e,`0.0.0`),!0}catch{return!1}}).default(`0.0.0`),should_show_app_upgrade_message:r().default(!1)}))}));export{m as a,_ as i,p as n,f as r,h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./extra-usage-DtAIhW74.js";e();export{t as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eu as e,nu as t,ru as n,tu as r}from"./loadAgentsDir-nzr38hai.js";n();export{e as drainPendingExtraction,r as executeExtractMemories,t as initExtractMemories};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./fast-DKqiojzf.js";t();export{n as FastModePicker,e as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,s as n}from"./firstPartyEventLogger-hU-LPkje.js";e();export{t as initialize1PEventLogging,n as shutdown1PEventLogging};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,a as t,i as n,p as r,r as i}from"./git-tyaWOgRL.js";e();export{i as findGitRoot,n as getBranch,t as getDefaultBranch,r as getRemoteUrl};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Zt as e,dn as t,vn as n,yn as r}from"./loadAgentsDir-nzr38hai.js";r();export{e as executeSessionEndHooks,t as getSessionEndHookTimeoutMs,n as hasWorktreeCreateHook};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./inboundAttachments-DVs3_m48.js";export{e as resolveAndPrepend};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./language-BuRSO2sR.js";e();export{t as getResolvedLanguage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,t}from"./loadAgentsDir-nzr38hai.js";e();export{t as clearAgentDefinitionsCache};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,o as n,t as r}from"./localSearch-B-L_ldos.js";n();export{r as clearSkillIndexCache,e as getSkillIndex,t as searchSkills};
|