@readmagic/workmate 0.0.23 → 0.0.25
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-Y5S_lMjD.js +1 -0
- package/dist/chunks/AgentsMdExternalIncludesDialog-Bnb1jWcg.js +1 -0
- package/dist/chunks/AgentsMdExternalIncludesDialog-DVbU-BaD.js +1 -0
- package/dist/chunks/App-B8q8PV77.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-i0TkZgQp.js +2 -0
- package/dist/chunks/BypassPermissionsModeDialog-DjqGAL4C.js +1 -0
- package/dist/chunks/CustomSelect-BvTftqEH.js +1 -0
- package/dist/chunks/DiffDialog-v5r8cBKW.js +6 -0
- package/dist/chunks/Doctor-DKpBnbuI.js +1 -0
- package/dist/chunks/Doctor-uvO6NM5m.js +3 -0
- package/dist/chunks/ExitFlow-Dh9QdaYK.js +2 -0
- package/dist/chunks/InvalidConfigDialog-C9boykQn.js +1 -0
- package/dist/chunks/{InvalidSettingsDialog-Dtmpzeps.js → InvalidSettingsDialog-UN5mleCK.js} +1 -1
- package/dist/chunks/KeybindingProviderSetup-DsJqfEt-.js +1 -0
- package/dist/chunks/MCPConnectionManager-DkZVxLEj.js +1 -0
- package/dist/chunks/MCPToolListView-De1W4jpj.js +1 -0
- package/dist/chunks/McpParsingWarnings-zkM_lGd0.js +1 -0
- package/dist/chunks/MessageSelector-DW_itlX-.js +3 -0
- package/dist/chunks/Messages-BFsCpACq.js +10 -0
- package/dist/chunks/Onboarding-BT90cFkn.js +1 -0
- package/dist/chunks/PromptInputFooterSuggestions-CCTZYbWI.js +1 -0
- package/dist/chunks/PromptInputHelpMenu-Bm5KY0Ma.js +1 -0
- package/dist/chunks/{ProviderSetup-XcBHjUnd.js → ProviderSetup-yIj8YOKF.js} +1 -1
- package/dist/chunks/QueryEngine-egz5mbaW.js +1 -0
- package/dist/chunks/REPL-D27CE4WN.js +124 -0
- package/dist/chunks/REPL-e8wAT1wN.js +1 -0
- package/dist/chunks/ResumeConversation-CWA27Lke.js +1 -0
- package/dist/chunks/SearchExtraToolsTool-BRchtZ9Q.js +1 -0
- package/dist/chunks/{SelectMulti-Bc6l11_K.js → SelectMulti-BW7Ffk1G.js} +1 -1
- package/dist/chunks/Settings-axHLvYIy.js +3 -0
- package/dist/chunks/Spinner-VjwI7m_g.js +1 -0
- package/dist/chunks/{SpinnerGlyph-CmkRUvHe.js → SpinnerGlyph-CqrOK3Mx.js} +1 -1
- package/dist/chunks/TextInput-Cev5Awdd.js +22 -0
- package/dist/chunks/ThemePicker-CtQYHmOr.js +1 -0
- package/dist/chunks/TrustDialog-8Sjmuu0e.js +1 -0
- package/dist/chunks/{ValidationErrorsList-DgNzJQUP.js → ValidationErrorsList-INwwoerV.js} +1 -1
- package/dist/chunks/_baseEach-DrPH_FGo.js +1 -0
- package/dist/chunks/add-dir-D3RMaYxy.js +1 -0
- package/dist/chunks/{agentDisplay-BReJUBWg.js → agentDisplay-B3npXoCS.js} +1 -1
- package/dist/chunks/{agents-B3x8yJ_r.js → agents-2mPGmeq6.js} +1 -1
- package/dist/chunks/agents-DEnmg8Xo.js +101 -0
- package/dist/chunks/allErrors-C9kx6lnk.js +1 -0
- package/dist/chunks/analytics-COpjZpvd.js +1 -0
- package/dist/chunks/{appleTerminalBackup-BArZWB21.js → appleTerminalBackup-CT7g8yOs.js} +1 -1
- package/dist/chunks/backgroundHousekeeping-BkFxfjOf.js +1 -0
- package/dist/chunks/backgroundHousekeeping-CvWfd99M.js +1 -0
- package/dist/chunks/banner-DHpTmEO7.js +2 -0
- package/dist/chunks/branch-Be_yDFU8.js +2 -0
- package/dist/chunks/{break-cache-BMXqFTeS.js → break-cache-UUt6Dkf2.js} +2 -2
- package/dist/chunks/btw-DUml5L1w.js +1 -0
- package/dist/chunks/caches-DWjwe-DN.js +1 -0
- package/dist/chunks/caches-VLs1tQkZ.js +1 -0
- package/dist/chunks/{claudeDesktop-D8ml2767.js → claudeDesktop-mBGFDbI6.js} +1 -1
- package/dist/chunks/{clear-Bdhb6b39.js → clear-CrGjNe6E.js} +1 -1
- package/dist/chunks/{client-CpTCeWba.js → client-BDuhbzLD.js} +1 -1
- package/dist/chunks/{client-4iqhC8xq.js → client-BYFVVMcf.js} +1 -1
- package/dist/chunks/client-CO_6v4yl.js +1 -0
- package/dist/chunks/client-DO-O441l.js +1 -0
- package/dist/chunks/commands-Cn1P7Tms.js +1 -0
- package/dist/chunks/compact-DGUhdXcc.js +2 -0
- package/dist/chunks/config-C7GTF4iI.js +1 -0
- package/dist/chunks/config-CWPHVTic.js +3 -0
- package/dist/chunks/config-Cox0TM2Z.js +1 -0
- package/dist/chunks/context-mV5zjqmc.js +1 -0
- package/dist/chunks/context-noninteractive--OuiZUzL.js +1 -0
- package/dist/chunks/{context-noninteractive-Dd4xIoP1.js → context-noninteractive-DvfVvmSE.js} +2 -2
- package/dist/chunks/conversation--y8PD2Lk.js +1 -0
- package/dist/chunks/conversation-BIPJEOwO.js +1 -0
- package/dist/chunks/conversationRecovery-BBJzrA0g.js +1 -0
- package/dist/chunks/crossProjectResume-CwZb3cEU.js +40 -0
- package/dist/chunks/cwd-BZMp3CZ8.js +1 -0
- package/dist/chunks/cwd-BvNt_018.js +1 -0
- package/dist/chunks/debug-CRnGsZOV.js +39 -0
- package/dist/chunks/{detectRepository-CfX8Lc0A.js → detectRepository-CsJLbVEe.js} +1 -1
- package/dist/chunks/{diff-BOAElpfQ.js → diff-DUEoNCnJ.js} +1 -1
- package/dist/chunks/{directoryCompletion-D_Rtg-4j.js → directoryCompletion-Bgi8DBT5.js} +1 -1
- package/dist/chunks/doctor-4NiE46ZG.js +1 -0
- package/dist/chunks/entry-D1iD76SW.js +13 -0
- package/dist/chunks/{esm-CGx9qY3q.js → esm-DUH16IqH.js} +1 -1
- package/dist/chunks/execAsync-D6SA-YsV.js +1 -0
- package/dist/chunks/{execFileNoThrow-BTachNBI.js → execFileNoThrow-BgRsj_SW.js} +3 -3
- package/dist/chunks/exit-CrsQsjbx.js +1 -0
- package/dist/chunks/extraUsage-BtHE-SBX.js +1 -0
- package/dist/chunks/extractMemories-kogJzpit.js +1 -0
- package/dist/chunks/fast-CuNVwVTr.js +1 -0
- package/dist/chunks/fast-RlFnwGRV.js +1 -0
- package/dist/chunks/fetchModelList-Cjow_QGy.js +1 -0
- package/dist/chunks/fetchModelList-uiCPVqbJ.js +1 -0
- package/dist/chunks/fileSuggestions-C96V9-Ne.js +3 -0
- package/dist/chunks/firstPartyEventLogger-CN9UOmEC.js +1 -0
- package/dist/chunks/firstPartyEventLogger-RR5rvDtk.js +1 -0
- package/dist/chunks/{gemini-D_ORb_L6.js → gemini-4YGElN3H.js} +2 -2
- package/dist/chunks/generateSessionName-BHIKyXpz.js +1 -0
- package/dist/chunks/{genericProcessUtils-DwQFuna9.js → genericProcessUtils-BNlr-QxM.js} +1 -1
- package/dist/chunks/getMachineId-bsd-DTYGimUN.js +1 -0
- package/dist/chunks/getMachineId-darwin-DqIFUVvd.js +2 -0
- package/dist/chunks/getMachineId-linux-CnCTmdzd.js +1 -0
- package/dist/chunks/getMachineId-unsupported-Cx21ssu1.js +1 -0
- package/dist/chunks/getMachineId-win-vZhex7KX.js +1 -0
- package/dist/chunks/goal-ePK_jLo3.js +3 -0
- package/dist/chunks/grok-DnmklTrm.js +1 -0
- package/dist/chunks/help-B7xRle-V.js +1 -0
- package/dist/chunks/history-kOw3CcLT.js +1 -0
- package/dist/chunks/hooks-BDY1jMbS.js +1 -0
- package/dist/chunks/{hooks-DIvN6gdv.js → hooks-BN5f58HY.js} +2 -2
- package/dist/chunks/install-DrMiHa2Q.js +1 -0
- package/dist/chunks/instrumentation-Oj5xagJG.js +21 -0
- package/dist/chunks/{job-R6c4-3c8.js → job-D9ypO0cd.js} +1 -1
- package/dist/chunks/keybindings-BRRN_eap.js +1 -0
- package/dist/chunks/launchLocalMemory-DliLezJw.js +3 -0
- package/dist/chunks/launchOnboarding-A-kk-7ID.js +8 -0
- package/dist/chunks/loadAgentsDir-CJAK4kif.js +1 -0
- package/dist/chunks/{loadAgentsDir-DlPbtIsS.js → loadAgentsDir-DGozQu_6.js} +550 -550
- package/dist/chunks/{loadPluginHooks-C_msxVIc.js → loadPluginHooks-BiHPKDaY.js} +1 -1
- package/dist/chunks/{loader-CICGtLp2.js → loader-CtoR-vO-.js} +1 -1
- package/dist/chunks/{localSearch-CK-sFzPm.js → localSearch-BU02Qsv9.js} +1 -1
- package/dist/chunks/localSearch-DyaB2Rm-.js +1 -0
- package/dist/chunks/{log-D2TIwHBV.js → log-DoSpAwRP.js} +1 -1
- package/dist/chunks/logoUtils-DLd6JKqW.js +1 -0
- package/dist/chunks/{magicDocs-BEF8D3if.js → magicDocs-Bj8LYrN2.js} +2 -2
- package/dist/chunks/main-B_09WbaG.js +345 -0
- package/dist/chunks/managedEnv-BJGfe3m7.js +1 -0
- package/dist/chunks/{managedEnv-OPlzUPbJ.js → managedEnv-CIWJsuty.js} +1 -1
- package/dist/chunks/mcp-1nBvcNxw.js +1 -0
- package/dist/chunks/mcp-7DXpXMdT.js +2 -0
- package/dist/chunks/mcp-kw99WVi2.js +6 -0
- package/dist/chunks/memory-CjWvzR_9.js +1 -0
- package/dist/chunks/mode-CBKawxnD.js +2 -0
- package/dist/chunks/model-DpZaKZMb.js +1 -0
- package/dist/chunks/model-DwbqvCY2.js +1 -0
- package/dist/chunks/modelOptions-CXBfKFXA.js +1 -0
- package/dist/chunks/nativeInstaller-SmPeEisk.js +1 -0
- package/dist/chunks/{notifications-4wP1Tx9Y.js → notifications-ql0eSo0Y.js} +1 -1
- package/dist/chunks/onChangeAppState-D85b33R5.js +1 -0
- package/dist/chunks/open-Cyrr4E5x.js +1 -0
- package/dist/chunks/openai-D_j7-KW6.js +2 -0
- package/dist/chunks/overlayContext-CLjlCFBl.js +1 -0
- package/dist/chunks/{panel-CVS4SK_E.js → panel-DMZkOEiU.js} +1 -1
- package/dist/chunks/parser-2usBI4G-.js +1 -0
- package/dist/chunks/{parser-Cg6hSCmn.js → parser-UqADrvxF.js} +1 -1
- package/dist/chunks/partition-CwxTlmMd.js +1 -0
- package/dist/chunks/{pasteStore-P0zP-ch0.js → pasteStore-ovtxMVR5.js} +1 -1
- package/dist/chunks/permissions-CgsvWOk_.js +3 -0
- package/dist/chunks/pidLock-B-SW3Nhx.js +3 -0
- package/dist/chunks/plan-BJrWtXEh.js +1 -0
- package/dist/chunks/platform-DsMIk3eq.js +2 -0
- package/dist/chunks/plugin-D97VJAxW.js +17 -0
- package/dist/chunks/{pluginAutoupdate-8qugAFhb.js → pluginAutoupdate-DQqYDPVg.js} +1 -1
- package/dist/chunks/{pluginBlocklist-q01ackCf.js → pluginBlocklist-BAr9WTup.js} +1 -1
- package/dist/chunks/pluginCliCommands-CUGPc853.js +1 -0
- package/dist/chunks/{pluginFlagging-BG2MHCQJ.js → pluginFlagging-BO_3qjfs.js} +1 -1
- package/dist/chunks/pluginOperations-rTrzu6Vg.js +2 -0
- package/dist/chunks/pluginStartupCheck-BRHnXlym.js +1 -0
- package/dist/chunks/{pluginStartupCheck-DTMa6TgL.js → pluginStartupCheck-BX6cv-vs.js} +1 -1
- package/dist/chunks/plugins-9crasx2V.js +4 -0
- package/dist/chunks/poorMode-BaS0DBUO.js +1 -0
- package/dist/chunks/{poorMode-B0QGV6Ci.js → poorMode-DmvzFAz_.js} +1 -1
- package/dist/chunks/print-Bi3xVdB3.js +13 -0
- package/dist/chunks/processBashCommand-BBtnCx-7.js +1 -0
- package/dist/chunks/processSlashCommand-jzF0GmLO.js +5 -0
- package/dist/chunks/{projectOnboardingState-B5YATuc6.js → projectOnboardingState--L3BKjOE.js} +1 -1
- package/dist/chunks/prompt-CmijKW7G.js +1 -0
- package/dist/chunks/prompt-DYBx_D0H.js +1 -0
- package/dist/chunks/{prompt-mM79EGnT.js → prompt-DzO1um1h.js} +4 -4
- package/dist/chunks/{promptEditor-DLGN_eLu.js → promptEditor-B6S_Rzcu.js} +2 -2
- package/dist/chunks/protocolHandler-BWgH1jaF.js +13 -0
- package/dist/chunks/{proxy-CDBfZjO7.js → proxy-BjkGlmBu.js} +1 -1
- package/dist/chunks/reconciler-CVMmAaCy.js +1 -0
- package/dist/chunks/refresh-CAGv8BJY.js +1 -0
- package/dist/chunks/reject-CEUkoI2G.js +1 -0
- package/dist/chunks/{reload-plugins-C42xSB5l.js → reload-plugins-DeyJTx4s.js} +1 -1
- package/dist/chunks/rename-DPFis9g_.js +1 -0
- package/dist/chunks/{renderOptions-DV0dn0IW.js → renderOptions-DRS2EslG.js} +1 -1
- package/dist/chunks/resume-N4O5YI-S.js +2 -0
- package/dist/chunks/ripgrep-3omwGI-l.js +1 -0
- package/dist/chunks/ripgrep-CgQrN3XX.js +5 -0
- package/dist/chunks/{runtimeObserver-1wQO8HSZ.js → runtimeObserver-C0CJvA3q.js} +1 -1
- package/dist/chunks/{runtimeObserver-XQrOux41.js → runtimeObserver-DMSzdFWt.js} +4 -4
- package/dist/chunks/sandbox-adapter-D15jjHJR.js +1 -0
- package/dist/chunks/sandbox-toggle-Tbbaw18C.js +1 -0
- package/dist/chunks/searchExtraTools-BoFc__Eg.js +1 -0
- package/dist/chunks/select-Fq6g2Ejk.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-Rgsp4_Ex.js +1 -0
- package/dist/chunks/{sessionObserver-DS4G6mb9.js → sessionObserver-CRie77tp.js} +2 -2
- package/dist/chunks/sessionObserver-PcaVCVkX.js +1 -0
- package/dist/chunks/sessionStorage-Dkf7FRgA.js +1 -0
- package/dist/chunks/sessionTracing-D7rekMdW.js +11 -0
- package/dist/chunks/settings-8fwIkMDV.js +1 -0
- package/dist/chunks/settings-CodSADx8.js +24 -0
- package/dist/chunks/setup-DBiIrXrh.js +3 -0
- package/dist/chunks/{shadowedRuleDetection-BRxZjobz.js → shadowedRuleDetection-CTnYVrmP.js} +1 -1
- package/dist/chunks/{sideQuestion-DLJxyrlp.js → sideQuestion-Cl8m2qYx.js} +3 -3
- package/dist/chunks/sinks-CiupmfTg.js +1 -0
- package/dist/chunks/sinks-DH83d_kd.js +1 -0
- package/dist/chunks/skillChangeDetector-BrrZaFkT.js +1 -0
- package/dist/chunks/{skillGapStore-CKN_d3pO.js → skillGapStore-es3K-aYe.js} +2 -2
- package/dist/chunks/{skillLifecycle-BMY2JGGG.js → skillLifecycle-BcgoOQBk.js} +2 -2
- package/dist/chunks/{skillSearchPanel-D9trHULQ.js → skillSearchPanel-CuDDb1L-.js} +4 -4
- package/dist/chunks/skills-BRtgqnLz.js +1 -0
- package/dist/chunks/{src-CiJCsqUl.js → src-C8gyNm5a.js} +1 -1
- package/dist/chunks/src-Db7K3F_i.js +3 -0
- package/dist/chunks/startupProfiler-D1NRu2nj.js +1 -0
- package/dist/chunks/startupProfiler-DF0AjiDf.js +3 -0
- package/dist/chunks/{state-B4jiUise.js → state-BQ4BEGin.js} +1 -1
- package/dist/chunks/state-D3gvDiu8.js +1 -0
- package/dist/chunks/status-WXA16wIM.js +1 -0
- package/dist/chunks/statusNoticeHelpers-BfmIub5L.js +1 -0
- package/dist/chunks/{stringUtils-C718f5ey.js → stringUtils-Bu_lJH5c.js} +1 -1
- package/dist/chunks/switcher-5gilU5_R.js +1 -0
- package/dist/chunks/{switcher-CAajZeNL.js → switcher-DMfuKuw_.js} +1 -1
- package/dist/chunks/{tasks-BWNQr2d3.js → tasks-B6gYXxOx.js} +1 -1
- package/dist/chunks/{templateJobs-gUET39Ho.js → templateJobs-BW6TaqEC.js} +1 -1
- package/dist/chunks/{terminalSetup-B_10N_gE.js → terminalSetup-BgIXFBpd.js} +4 -4
- package/dist/chunks/{terminalSetup-qc2PlvOm.js → terminalSetup-C-g9Xvj3.js} +1 -1
- package/dist/chunks/{theme-B7fKI6E5.js → theme-9AZceq_m.js} +1 -1
- package/dist/chunks/tipRegistry-DtO1H_Wo.js +2 -0
- package/dist/chunks/{toolEventObserver-BL06sDI4.js → toolEventObserver-DTuJcREC.js} +1 -1
- package/dist/chunks/toolPool-DHS8jWaL.js +1 -0
- package/dist/chunks/{types-Dx7P7JLQ.js → types-97nL3naE.js} +16 -16
- package/dist/chunks/{udsClient-cQz6nJ_T.js → udsClient-CmYHFiBD.js} +1 -1
- package/dist/chunks/{use-select-navigation-BiUJdWai.js → use-select-navigation-BStVRvcX.js} +1 -1
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-DWRFdFoU.js +1 -0
- package/dist/chunks/useMainLoopModel-DSN5HjV1.js +1 -0
- package/dist/chunks/useManagePlugins-ntnOf5OU.js +1 -0
- package/dist/chunks/useMergedTools-C5Yns9Ij.js +1 -0
- package/dist/chunks/useSearchInput-B_mY9wBq.js +1 -0
- package/dist/chunks/useSettingsErrors-CM7tThcp.js +1 -0
- package/dist/chunks/util-Bb2S6g9N.js +1 -0
- package/dist/chunks/{validatePlugin-D6tFo87L.js → validatePlugin-D8WQ5z4W.js} +1 -1
- package/dist/chunks/vim-Dpnhgoz_.js +1 -0
- package/dist/chunks/worktree-a5oOPSYl.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -12
- package/dist/chunks/AddWorkspaceDirectory-OgcBcK5A.js +0 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-CDNd5-7E.js +0 -1
- package/dist/chunks/AgentsMdExternalIncludesDialog-CNEifEyV.js +0 -1
- package/dist/chunks/App-B-3tPQ3k.js +0 -1
- package/dist/chunks/BackgroundTasksDialog-COuhHcey.js +0 -2
- package/dist/chunks/BypassPermissionsModeDialog-bJek4siJ.js +0 -1
- package/dist/chunks/CustomSelect-DoeEXOIP.js +0 -1
- package/dist/chunks/DiffDialog-B3X9FMpO.js +0 -6
- package/dist/chunks/Doctor-6PXyjIi6.js +0 -3
- package/dist/chunks/Doctor-DNgkgYhB.js +0 -1
- package/dist/chunks/ExitFlow-DgAZp_8U.js +0 -2
- package/dist/chunks/Grove-CHatOzcE.js +0 -11
- package/dist/chunks/InvalidConfigDialog-DXL92MN9.js +0 -1
- package/dist/chunks/KeybindingProviderSetup-DA37QUFs.js +0 -1
- package/dist/chunks/MCPConnectionManager-thZd-xA_.js +0 -1
- package/dist/chunks/MCPToolListView-CpY-YJg4.js +0 -1
- package/dist/chunks/McpParsingWarnings-JvChf3xr.js +0 -1
- package/dist/chunks/MessageSelector-C0_iw7SI.js +0 -3
- package/dist/chunks/Messages-K4DDsDP9.js +0 -10
- package/dist/chunks/Onboarding-C1UdzM-1.js +0 -1
- package/dist/chunks/PromptInputFooterSuggestions-AyLog8p7.js +0 -1
- package/dist/chunks/PromptInputHelpMenu-oyic20ip.js +0 -1
- package/dist/chunks/QueryEngine-DYxBjJ4i.js +0 -1
- package/dist/chunks/REPL-CQBJRrT0.js +0 -124
- package/dist/chunks/REPL-CrVuMQY2.js +0 -1
- package/dist/chunks/ResumeConversation-Dl8H9Gfy.js +0 -1
- package/dist/chunks/SearchExtraToolsTool-lv7VE50N.js +0 -1
- package/dist/chunks/Settings-TGp3fPrS.js +0 -3
- package/dist/chunks/Spinner-zYPFVFHN.js +0 -1
- package/dist/chunks/TextInput-CD9iau2k.js +0 -22
- package/dist/chunks/ThemePicker-0F0hZYPX.js +0 -1
- package/dist/chunks/TrustDialog-C76YiMKz.js +0 -1
- package/dist/chunks/_baseEach-4ff-vRlp.js +0 -1
- package/dist/chunks/add-dir-JMsRLGfx.js +0 -1
- package/dist/chunks/agents-9qQ8I6zW.js +0 -101
- package/dist/chunks/allErrors-DfWylHSw.js +0 -1
- package/dist/chunks/analytics-DJobLaWP.js +0 -1
- package/dist/chunks/backgroundHousekeeping-BGxHB_OX.js +0 -1
- package/dist/chunks/backgroundHousekeeping-CVNIhQg8.js +0 -17
- package/dist/chunks/banner-Cu2-XUek.js +0 -2
- package/dist/chunks/branch-C4TsMEkx.js +0 -2
- package/dist/chunks/btw-Dn1eYFAz.js +0 -1
- package/dist/chunks/caches-BGzKwpnc.js +0 -1
- package/dist/chunks/caches-DArHxBgL.js +0 -1
- package/dist/chunks/client-BiqbIkwr.js +0 -1
- package/dist/chunks/client-CZ8nyVh5.js +0 -1
- package/dist/chunks/commands-QepeBbFn.js +0 -1
- package/dist/chunks/compact-Bu9BUpxV.js +0 -2
- package/dist/chunks/config-C-Y2qtB2.js +0 -3
- package/dist/chunks/config-D58C3_Lu.js +0 -1
- package/dist/chunks/config-DD8fCYXn.js +0 -1
- package/dist/chunks/context-CY_yfdYa.js +0 -1
- package/dist/chunks/context-noninteractive-BDDi3NLF.js +0 -1
- package/dist/chunks/conversation-B0wxBwzv.js +0 -1
- package/dist/chunks/conversation-DUu9qBnq.js +0 -1
- package/dist/chunks/conversationRecovery-2ft8sCPE.js +0 -1
- package/dist/chunks/crossProjectResume-6boHMUBx.js +0 -40
- package/dist/chunks/cwd-Dc3NV7s8.js +0 -1
- package/dist/chunks/cwd-Pa83R95t.js +0 -1
- package/dist/chunks/datadog-BPuGcxxC.js +0 -1
- package/dist/chunks/debug-Bglx1aTu.js +0 -39
- package/dist/chunks/doctor-CkLzqAMd.js +0 -1
- package/dist/chunks/entry-TNOoyy7_.js +0 -13
- package/dist/chunks/esm-eTAUP-La.js +0 -1
- package/dist/chunks/execAsync-Bv2yxuGe.js +0 -1
- package/dist/chunks/exit-DXApFJIP.js +0 -1
- package/dist/chunks/extraUsage-CmQaLPV1.js +0 -1
- package/dist/chunks/extractMemories-xP63mv6R.js +0 -1
- package/dist/chunks/fast-C5nQH8rm.js +0 -1
- package/dist/chunks/fast-eGx2IxD7.js +0 -1
- package/dist/chunks/fetchModelList-CxLsVNsu.js +0 -1
- package/dist/chunks/fetchModelList-D24lRIgR.js +0 -1
- package/dist/chunks/fileSuggestions-DHxdwq28.js +0 -3
- package/dist/chunks/firstPartyEventLogger-BVAogAX8.js +0 -1
- package/dist/chunks/firstPartyEventLogger-M6UMli2c.js +0 -3
- package/dist/chunks/generateSessionName-BQoDduyA.js +0 -1
- package/dist/chunks/getMachineId-bsd-Cut1kHoA.js +0 -1
- package/dist/chunks/getMachineId-darwin-CsRhaP3y.js +0 -2
- package/dist/chunks/getMachineId-linux-Bd7UBNRQ.js +0 -1
- package/dist/chunks/getMachineId-unsupported-vFGP8E_8.js +0 -1
- package/dist/chunks/getMachineId-win-DamF2CH_.js +0 -1
- package/dist/chunks/goal-D7c2mSds.js +0 -3
- package/dist/chunks/grok-B2-ZbUiR.js +0 -1
- package/dist/chunks/grove-O6qp7ITR.js +0 -1
- package/dist/chunks/help-CZJdRviD.js +0 -1
- package/dist/chunks/history-CQiUERTL.js +0 -1
- package/dist/chunks/hooks-BNuUlMzL.js +0 -1
- package/dist/chunks/install-T_CV1Slu.js +0 -1
- package/dist/chunks/instrumentation-BjqUZ383.js +0 -21
- package/dist/chunks/keybindings-CLRaiL_Z.js +0 -1
- package/dist/chunks/launchLocalMemory-DrbKrwXc.js +0 -3
- package/dist/chunks/launchOnboarding-tqsMD8ni.js +0 -8
- package/dist/chunks/loadAgentsDir-CcmY8zCj.js +0 -1
- package/dist/chunks/localSearch-DrUj0B-d.js +0 -1
- package/dist/chunks/logoUtils-x2pHV-Nl.js +0 -1
- package/dist/chunks/main-kOVUGxOS.js +0 -345
- package/dist/chunks/managedEnv-BEqrGqn1.js +0 -1
- package/dist/chunks/mcp-BNd29r6p.js +0 -6
- package/dist/chunks/mcp-D0wAJrRT.js +0 -1
- package/dist/chunks/mcp-mgOlm1cY.js +0 -2
- package/dist/chunks/memory-DDLk9_LJ.js +0 -1
- package/dist/chunks/mode-CcNsWgK3.js +0 -2
- package/dist/chunks/model-BwBG0V1u.js +0 -1
- package/dist/chunks/model-DzCP4K-9.js +0 -1
- package/dist/chunks/modelOptions-DRaG3bo0.js +0 -1
- package/dist/chunks/nativeInstaller-C3pVPqrZ.js +0 -1
- package/dist/chunks/onChangeAppState-BlaoFbYF.js +0 -1
- package/dist/chunks/open-BtQHzzL9.js +0 -1
- package/dist/chunks/openai-CDN71NdX.js +0 -2
- package/dist/chunks/overlayContext-BT2Lq8ei.js +0 -1
- package/dist/chunks/parser-CG5RuOCK.js +0 -1
- package/dist/chunks/partition-CIl_ORUT.js +0 -1
- package/dist/chunks/permissions-zSNOZSwr.js +0 -3
- package/dist/chunks/pidLock-BTqO-h7Y.js +0 -3
- package/dist/chunks/plan-Bs6em6lk.js +0 -1
- package/dist/chunks/platform-BacQ6ACS.js +0 -2
- package/dist/chunks/plugin-DDDxjBa0.js +0 -17
- package/dist/chunks/pluginCliCommands-DXZfCZsv.js +0 -1
- package/dist/chunks/pluginOperations-hXYLrzM2.js +0 -2
- package/dist/chunks/pluginStartupCheck-HS1ZceZa.js +0 -1
- package/dist/chunks/plugins-COoGBYk6.js +0 -4
- package/dist/chunks/poorMode-G-pnu6NM.js +0 -1
- package/dist/chunks/print-BASybEtO.js +0 -13
- package/dist/chunks/processBashCommand-DDi_Pymt.js +0 -1
- package/dist/chunks/processSlashCommand-Cq9kaoSF.js +0 -5
- package/dist/chunks/prompt-CHobfCB1.js +0 -1
- package/dist/chunks/prompt-CMm6RHHc.js +0 -1
- package/dist/chunks/protocolHandler-DjQALaU2.js +0 -13
- package/dist/chunks/reconciler-CeXqh95g.js +0 -1
- package/dist/chunks/refresh-Ce2yk28a.js +0 -1
- package/dist/chunks/registerProtocol-CAsDme_E.js +0 -1
- package/dist/chunks/reject-Bld5E-bn.js +0 -1
- package/dist/chunks/rename-CtBghpxZ.js +0 -1
- package/dist/chunks/resume-BWkaTDqd.js +0 -2
- package/dist/chunks/ripgrep-DLs8MraF.js +0 -1
- package/dist/chunks/ripgrep-Dl3y5r4m.js +0 -5
- package/dist/chunks/sandbox-adapter-8GO6eJxw.js +0 -1
- package/dist/chunks/sandbox-toggle-Dir9Polo.js +0 -1
- package/dist/chunks/searchExtraTools-BhDq8DTJ.js +0 -1
- package/dist/chunks/select-Bxf5-5sI.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-CozocHQE.js +0 -1
- package/dist/chunks/sessionObserver-DGEQM4cO.js +0 -1
- package/dist/chunks/sessionStorage-BcAscOGE.js +0 -1
- package/dist/chunks/sessionTracing-BoDDYLxW.js +0 -11
- package/dist/chunks/settings-B2jvL8Dp.js +0 -24
- package/dist/chunks/settings-CisDe8DB.js +0 -1
- package/dist/chunks/setup-BRypY6iT.js +0 -3
- package/dist/chunks/sinks-CGdKmq_8.js +0 -1
- package/dist/chunks/sinks-Cz2HfgMU.js +0 -1
- package/dist/chunks/skillChangeDetector-xviGstqm.js +0 -1
- package/dist/chunks/skills-CX_AvwLG.js +0 -1
- package/dist/chunks/src-CHw1lvBc.js +0 -3
- package/dist/chunks/startupProfiler-BH0FoI66.js +0 -1
- package/dist/chunks/startupProfiler-CJdr3SxP.js +0 -3
- package/dist/chunks/state-BhOKSFi5.js +0 -1
- package/dist/chunks/status-Daaak6Bo.js +0 -1
- package/dist/chunks/statusNoticeHelpers-vFVgIYuw.js +0 -1
- package/dist/chunks/switcher-BpgmH4AI.js +0 -1
- package/dist/chunks/tipRegistry-DamZr34w.js +0 -2
- package/dist/chunks/toolPool-CX5wDBi1.js +0 -1
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-C9BYG8Bo.js +0 -1
- package/dist/chunks/useMainLoopModel-DwjSVzzO.js +0 -1
- package/dist/chunks/useManagePlugins-BqfIVa6E.js +0 -1
- package/dist/chunks/useMergedTools-Bw8FchX8.js +0 -1
- package/dist/chunks/useSearchInput-B25K1RnK.js +0 -1
- package/dist/chunks/useSettingsErrors-DYQ44kX4.js +0 -1
- package/dist/chunks/util-CtlC2dsN.js +0 -1
- package/dist/chunks/vim-CoRp9lY1.js +0 -1
- package/dist/chunks/worktree-B8apCnVe.js +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t,r as n}from"./rolldown-runtime-DaDcL9Zw.js";import{n as r,t as i}from"./figures-5ThXQEtq.js";import{$p as a,Ip as o,Jx as s,Lp as c,Lu as l,Qo as u,Qp as d,Sa as f,Ta as p,Xx as m,Yi as h,Zo as g,Zp as _,bb as v,es as y,gc as b,hc as x,im as S,ix as C,kS as w,l_ as T,mb as E,mc as D,mn as O,pS as k,rx as A,tn as j,tx as M,uS as N,u_ as ee,un as te,vc as P,zu as F}from"./loadAgentsDir-DlPbtIsS.js";import{C as ne,Gt as re,I,P as L,Wt as ie,ai as ae,ot as R,t as oe}from"./src-DL3w8VPk.js";import{t as se}from"./jsx-runtime-Bb4Xn-E0.js";import{It as ce,Mn as le}from"./state-B4jiUise.js";import{Hn as ue,Vn as z}from"./settings-B2jvL8Dp.js";import{D as B,h as de,m as V,o as fe,q as pe,s as H}from"./log-D2TIwHBV.js";import{n as U,r as W}from"./analytics-DJobLaWP.js";import{_ as me,p as he,y as ge}from"./startupProfiler-CJdr3SxP.js";import{E as _e,T as ve,c as ye,d as be,w as xe}from"./sessionTracing-BoDDYLxW.js";import{n as Se,t as Ce}from"./useExitOnCtrlCDWithKeybindings-C9BYG8Bo.js";import{n as we,t as Te}from"./select-Bxf5-5sI.js";import{r as Ee,t as De}from"./Spinner-zYPFVFHN.js";import*as G from"path";import{randomUUID as K}from"crypto";var q=t(ae(),1),J=se();oe(),ce(),pe(),V(),fe(),ue(),U(),me(),A(),T(),xe(),l(),ye(),b(),D(),y(),h(),O();function Oe(e){let t=e.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(t)}function ke(e){let t=e.toLowerCase().trim();return t===`continue`||/\b(keep going|go on)\b/.test(t)}function Ae(e,t,n,r,i,a,o){let s=K();le(s);let c=typeof e==`string`?e:e.find(e=>e.type===`text`)?.text||``;be(c);let l=typeof e==`string`?e:e.findLast(e=>e.type===`text`)?.text||``;return l&&ve(`user_prompt`,{prompt_length:String(l.length),prompt:_e(l),"prompt.id":s}),W(`tengu_input_prompt`,{is_negative:Oe(c),is_keep_going:ke(c)}),t.length>0?{messages:[k({content:[...typeof e==`string`?e.trim()?[{type:`text`,text:e}]:[]:e,...t],uuid:i,imagePasteIds:n.length>0?n:void 0,permissionMode:a,isMeta:o||void 0}),...r],shouldQuery:!0}:{messages:[k({content:e,uuid:i,permissionMode:a,isMeta:o||void 0}),...r],shouldQuery:!0}}U(),h();async function je({input:e,preExpansionInput:t,mode:n,setToolJSX:r,context:i,pastedContents:a,ideSelection:o,messages:s,setUserInputOnProcessing:c,uuid:l,isAlreadyProcessing:u,querySource:d,canUseTool:f,skipSlashCommands:p,bridgeOrigin:h,isMeta:_,skipAttachments:v,autonomy:y}){let b=typeof e==`string`?e:null,x=b?.startsWith(`/`)&&!p;n===`prompt`&&b!==null&&!_&&!x&&c?.(b),P(`query_process_user_input_base_start`);let S=i.getAppState(),C=await Ne(e,n,r,i,a,o,s,l,u,d,f,S.toolPermissionContext.mode,p,h,_,v,t,y);if(P(`query_process_user_input_base_end`),!C.shouldQuery)return C;P(`query_hooks_start`);let w=m(e)||``;for await(let t of j(w,S.toolPermissionContext.mode,i,i.requestPrompt))if(t.message?.type!==`progress`){if(t.blockingError)return{messages:[N(`${te(t.blockingError)}\n\nOriginal prompt: ${e}`,`warning`)],shouldQuery:!1,allowedTools:C.allowedTools};if(t.preventContinuation){let e=t.stopReason?`Operation stopped by hook: ${t.stopReason}`:`Operation stopped by hook`;return C.messages.push(k({content:e})),C.shouldQuery=!1,C}if(t.additionalContexts&&t.additionalContexts.length>0&&C.messages.push(g({type:`hook_additional_context`,content:t.additionalContexts.map(Me),hookName:`UserPromptSubmit`,toolUseID:`hook-${K()}`,hookEvent:`UserPromptSubmit`})),t.message)switch(t.message.attachment.type){case`hook_success`:if(!t.message.attachment.content)break;C.messages.push({...t.message,attachment:{...t.message.attachment,content:Me(t.message.attachment.content)}});break;default:C.messages.push(t.message);break}}return P(`query_hooks_end`),C}var Y=1e4;function Me(e){return e.length>Y?`${e.substring(0,Y)}… [output truncated - exceeded ${Y} characters]`:e}async function Ne(e,t,n,r,i,a,o,s,c,l,d,f,p,m,h,g,_,v){let y=null,b=[],S=[],w=e;if(typeof e==`string`)y=e;else if(e.length>0){P(`query_image_processing_start`);let t=[];for(let n of e)if(n.type===`image`){let e=await C(n);if(e.dimensions){let t=M(e.dimensions);t&&S.push(t)}t.push(e.block)}else t.push(n);w=t,P(`query_image_processing_end`);let n=t[t.length-1];n?.type===`text`?(y=n.text,b=t.slice(0,-1)):b=t}if(y===null&&t!==`prompt`)throw Error(`Mode: ${t} requires a string input.`);let T=i?Object.values(i).filter(ee):[],E=T.map(e=>e.id),D=i?await F(i):new Map;P(`query_pasted_image_processing_start`);let O=await Promise.all(T.map(async e=>{let t={type:`image`,source:{type:`base64`,media_type:e.mediaType||`image/png`,data:e.content}};return W(`tengu_pasted_image_resize_attempt`,{original_size_bytes:e.content.length}),{resized:await C(t),originalDimensions:e.dimensions,sourcePath:e.sourcePath??D.get(e.id)}})),k=[];for(let{resized:e,originalDimensions:t,sourcePath:n}of O){if(e.dimensions){let t=M(e.dimensions,n);t&&S.push(t)}else if(t){let e=M(t,n);e&&S.push(e)}else n&&S.push(`[Image source: ${n}]`);k.push(e.block)}P(`query_pasted_image_processing_end`);let A=p,j=!g&&y!==null&&(t!==`prompt`||A||!y.startsWith(`/`));P(`query_attachment_loading_start`);let N=j?await x(u(y,r,a??null,[],o,l)):[];if(P(`query_attachment_loading_end`),y!==null&&t===`bash`){let{processBashCommand:e}=await import(`./processBashCommand-DDi_Pymt.js`);return X(await e(y,b,N,r,n),S)}if(y!==null&&!A&&y.startsWith(`/`)){let{processSlashCommand:e}=await import(`./processSlashCommand-Cq9kaoSF.js`);return X(await e(y,b,k,N,r,n,s,c,d,v),S)}if(y!==null&&t===`prompt`){let e=y.trim(),t=N.find(e=>e.attachment.type===`agent_mention`);if(t){let n=`@agent-${t.attachment.agentType}`,r=e===n;W(`tengu_subagent_at_mention`,{is_subagent_only:r,is_prefix:e.startsWith(n)&&!r})}}return X(Ae(w,k,E,N,s,f,h),S)}function X(e,t){return t.length>0&&e.messages.push(k({content:t.map(e=>({type:`text`,text:e})),isMeta:!0})),e}var Pe=n({MessageSelector:()=>Ie,messagesAfterAreOnlySynthetic:()=>Ue,selectableUserMessagesFilter:()=>Q});function Fe(e){return e.type===`text`}function Z(e){return e===`summarize`}function Ie({messages:e,onPreRestore:t,onRestoreMessage:n,onRestoreCode:r,onSummarize:o,onClose:s,preselectedMessage:l}){let u=c(e=>e.fileHistory),[f,p]=(0,q.useState)(void 0),m=d(),h=(0,q.useMemo)(K,[]),g=(0,q.useMemo)(()=>[...e.filter(Q),{...k({content:``}),uuid:h}],[e,h]),[v,y]=(0,q.useState)(g.length-1),b=Math.max(0,Math.min(v-Math.floor($/2),g.length-$)),x=g.length>1,[S,C]=(0,q.useState)(l),[w,T]=(0,q.useState)(void 0);(0,q.useEffect)(()=>{if(!l||!m)return;let e=!1;return a(u,l.uuid).then(t=>{e||T(t)}),()=>{e=!0}},[l,m,u]);let[E,D]=(0,q.useState)(!1),[O,A]=(0,q.useState)(null),[j,M]=(0,q.useState)(`both`),[N,ee]=(0,q.useState)(``);function te(e){let t=e?[{value:`both`,label:`Restore code and conversation`},{value:`conversation`,label:`Restore conversation`},{value:`code`,label:`Restore code`}]:[{value:`conversation`,label:`Restore conversation`}];return t.push({value:`summarize`,label:`Summarize from here`,type:`input`,placeholder:`add context (optional)`,initialValue:``,allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:`: `,onChange:ee}),t.push({value:`nevermind`,label:`Never mind`}),t}(0,q.useEffect)(()=>{W(`tengu_message_selector_opened`,{})},[]);async function P(e){t(),D(!0);try{await n(e),D(!1),s()}catch(e){H(e),D(!1),p(`Failed to restore the conversation:\n${e}`)}}async function F(t){let n=e.indexOf(t);if(W(`tengu_message_selector_selected`,{index_from_end:e.length-1-n,message_type:t.type,is_current_prompt:!1}),!e.includes(t)){s();return}if(!m){await P(t);return}let r=await a(u,t.uuid);C(t),T(r)}async function ae(e){if(W(`tengu_message_selector_restore_option_selected`,{option:e}),!S){p(`Message not found.`);return}if(e===`nevermind`){l?s():C(void 0);return}if(Z(e)){t(),D(!0),A(e),p(void 0);try{let e=N.trim()||void 0;await o(S,e,`from`),D(!1),A(null),C(void 0),s()}catch(e){H(e),D(!1),A(null),C(void 0),p(`Failed to summarize:\n${e}`)}return}t(),D(!0),p(void 0);let i=null,a=null;if(e===`code`||e===`both`)try{await r(S)}catch(e){i=e,H(i)}if(e===`conversation`||e===`both`)try{await n(S)}catch(e){a=e,H(a)}D(!1),C(void 0),a&&i?p(`Failed to restore the conversation and code:\n${a}\n${i}`):a?p(`Failed to restore the conversation:\n${a}`):i?p(`Failed to restore the code:\n${i}`):s()}let R=Se(),oe=(0,q.useCallback)(()=>{if(S&&!l){C(void 0);return}W(`tengu_message_selector_cancelled`,{}),s()},[s,S,l]),se=(0,q.useCallback)(()=>y(e=>Math.max(0,e-1)),[]),ce=(0,q.useCallback)(()=>y(e=>Math.min(g.length-1,e+1)),[g.length]),le=(0,q.useCallback)(()=>y(0),[]),ue=(0,q.useCallback)(()=>y(g.length-1),[g.length]),z=(0,q.useCallback)(()=>{let e=g[v];e&&F(e)},[g,v,F]);ie(`confirm:no`,oe,{context:`Confirmation`,isActive:!S}),re({"messageSelector:up":se,"messageSelector:down":ce,"messageSelector:top":le,"messageSelector:bottom":ue,"messageSelector:select":z},{context:`MessageSelector`,isActive:!E&&!f&&!S&&x});let[B,de]=(0,q.useState)({});(0,q.useEffect)(()=>{async function t(){m&&Promise.all(g.map(async(t,n)=>{if(t.uuid!==h){let r=_(u,t.uuid),i=g.at(n+1),a=r?He(e,t.uuid,i?.uuid===h?void 0:i?.uuid):void 0;de(a===void 0?e=>({...e,[n]:void 0}):e=>({...e,[n]:a}))}}))}t()},[g,e,h,u,m]);let V=m&&w?.filesChanged&&w.filesChanged.length>0,fe=!f&&!S&&!l&&x;return(0,J.jsxs)(I,{flexDirection:`column`,width:`100%`,children:[(0,J.jsx)(ne,{color:`suggestion`}),(0,J.jsxs)(I,{flexDirection:`column`,marginX:1,gap:1,children:[(0,J.jsx)(L,{bold:!0,color:`suggestion`,children:`Rewind`}),f&&(0,J.jsxs)(L,{color:`error`,children:[`Error: `,f]}),!x&&(0,J.jsx)(L,{children:`Nothing to rewind to yet.`}),!f&&S&&x&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(L,{children:[`Confirm you want to restore `,!w&&`the conversation `,`to the point before you sent this message:`]}),(0,J.jsxs)(I,{flexDirection:`column`,paddingLeft:1,borderStyle:`single`,borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[(0,J.jsx)(Ve,{userMessage:S,color:`text`,isCurrent:!1}),(0,J.jsxs)(L,{dimColor:!0,children:[`(`,he(new Date(S.timestamp)),`)`]})]}),(0,J.jsx)(Re,{selectedRestoreOption:j,canRestoreCode:!!V,diffStatsForRestore:w}),E&&Z(O)?(0,J.jsxs)(I,{flexDirection:`row`,gap:1,children:[(0,J.jsx)(De,{}),(0,J.jsx)(L,{children:`Summarizing…`})]}):(0,J.jsx)(Te,{isDisabled:E,options:te(!!V),defaultFocusValue:V?`both`:`conversation`,onFocus:e=>M(e),onChange:e=>ae(e),onCancel:()=>l?s():C(void 0)}),V&&(0,J.jsx)(I,{marginBottom:1,children:(0,J.jsxs)(L,{dimColor:!0,children:[i.warning,` Rewinding does not affect files edited manually or via bash.`]})})]}),fe&&(0,J.jsxs)(J.Fragment,{children:[m?(0,J.jsx)(L,{children:`Restore the code and/or conversation to the point before…`}):(0,J.jsx)(L,{children:`Restore and fork the conversation to the point before…`}),(0,J.jsx)(I,{width:`100%`,flexDirection:`column`,children:g.slice(b,b+$).map((e,t)=>{let n=b+t,r=n===v,a=e.uuid===h,o=n in B,s=B[n],c=s?.filesChanged?.length;return(0,J.jsxs)(I,{height:m?3:2,overflow:`hidden`,width:`100%`,flexDirection:`row`,children:[(0,J.jsx)(I,{width:2,minWidth:2,children:r?(0,J.jsxs)(L,{color:`permission`,bold:!0,children:[i.pointer,` `]}):(0,J.jsx)(L,{children:` `})}),(0,J.jsxs)(I,{flexDirection:`column`,children:[(0,J.jsx)(I,{flexShrink:1,height:1,overflow:`hidden`,children:(0,J.jsx)(Ve,{userMessage:e,color:r?`suggestion`:void 0,isCurrent:a,paddingRight:10})}),m&&o&&(0,J.jsx)(I,{height:1,flexDirection:`row`,children:s?(0,J.jsx)(L,{dimColor:!r,color:`inactive`,children:c?(0,J.jsxs)(J.Fragment,{children:[c===1&&s.filesChanged[0]?`${G.basename(s.filesChanged[0])} `:`${c} files changed `,(0,J.jsx)(Be,{diffStats:s})]}):(0,J.jsx)(J.Fragment,{children:`No code changes`})}):(0,J.jsxs)(L,{dimColor:!0,color:`warning`,children:[i.warning,` No code restore`]})})]})]},e.uuid)})})]}),!S&&(0,J.jsx)(L,{dimColor:!0,italic:!0,children:R.pending?(0,J.jsxs)(J.Fragment,{children:[`Press `,R.keyName,` again to exit`]}):(0,J.jsxs)(J.Fragment,{children:[!f&&x&&`Enter to continue · `,`Esc to exit`]})})]})]})}function Le(e){switch(e){case`summarize`:return`Messages after this point will be summarized.`;case`both`:case`conversation`:return`The conversation will be forked.`;case`code`:case`nevermind`:return`The conversation will be unchanged.`}}function Re({selectedRestoreOption:e,canRestoreCode:t,diffStatsForRestore:n}){let r=t&&(e===`both`||e===`code`);return(0,J.jsxs)(I,{flexDirection:`column`,children:[(0,J.jsx)(L,{dimColor:!0,children:Le(e)}),!Z(e)&&(r?(0,J.jsx)(ze,{diffStatsForRestore:n}):(0,J.jsx)(L,{dimColor:!0,children:`The code will be unchanged.`}))]})}function ze({diffStatsForRestore:e}){if(e===void 0)return;if(!e.filesChanged?.[0])return(0,J.jsx)(L,{dimColor:!0,children:`The code has not changed (nothing will be restored).`});let t=e.filesChanged.length,n=``;return n=t===1?G.basename(e.filesChanged[0]||``):t===2?`${G.basename(e.filesChanged[0]||``)} and ${G.basename(e.filesChanged[1]||``)}`:`${G.basename(e.filesChanged[0]||``)} and ${e.filesChanged.length-1} other files`,(0,J.jsxs)(L,{dimColor:!0,children:[`The code will be restored `,(0,J.jsx)(Be,{diffStats:e}),` in `,n,`.`]})}function Be({diffStats:e}){if(e?.filesChanged)return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(L,{color:`diffAddedWord`,children:[`+`,e.insertions,` `]}),(0,J.jsxs)(L,{color:`diffRemovedWord`,children:[`-`,e.deletions]})]})}function Ve({userMessage:e,color:t,dimColor:n,isCurrent:r,paddingRight:i}){let{columns:a}=R();if(r)return(0,J.jsx)(I,{width:`100%`,children:(0,J.jsx)(L,{italic:!0,color:t,dimColor:n,children:`(current)`})});let o=e.message.content,c=typeof o==`string`?null:o[o.length-1],l=de(typeof o==`string`?o.trim():c&&Fe(c)?c.text.trim():`(no prompt)`);if(f(l))return(0,J.jsx)(I,{flexDirection:`row`,width:`100%`,children:(0,J.jsx)(L,{italic:!0,color:t,dimColor:n,children:`((empty message))`})});if(l.includes(`<bash-input>`)){let e=s(l,`bash-input`);if(e)return(0,J.jsxs)(I,{flexDirection:`row`,width:`100%`,children:[(0,J.jsx)(L,{color:`bashBorder`,children:`!`}),(0,J.jsxs)(L,{color:t,dimColor:n,children:[` `,e]})]})}if(l.includes(`<command-message>`)){let e=s(l,B),r=s(l,`command-args`),i=s(l,`skill-format`)===`true`;if(e)return i?(0,J.jsx)(I,{flexDirection:`row`,width:`100%`,children:(0,J.jsxs)(L,{color:t,dimColor:n,children:[`Skill(`,e,`)`]})}):(0,J.jsx)(I,{flexDirection:`row`,width:`100%`,children:(0,J.jsxs)(L,{color:t,dimColor:n,children:[`/`,e,` `,r]})})}return(0,J.jsx)(I,{flexDirection:`row`,width:`100%`,children:(0,J.jsx)(L,{color:t,dimColor:n,children:i?ge(l,a-i,!0):l.slice(0,500).split(`
|
|
2
|
-
`).slice(0,4).join(`
|
|
3
|
-
`)})})}function He(e,t,n){let r=e.findIndex(e=>e.uuid===t);if(r===-1)return;let i=n?e.findIndex(e=>e.uuid===n):e.length;i===-1&&(i=e.length);let a=[],o=0,s=0;for(let t=r+1;t<i;t++){let n=e[t];if(!n||!p(n))continue;let r=n.toolUseResult;if(!(!r?.filePath||!r.structuredPatch)){a.includes(r.filePath)||a.push(r.filePath);try{if(`type`in r&&r.type===`create`)o+=r.content.split(/\r?\n/).length;else for(let e of r.structuredPatch){let t=z(e.lines,e=>e.startsWith(`+`)),n=z(e.lines,e=>e.startsWith(`-`));o+=t,s+=n}}catch{}}}return{filesChanged:a,insertions:o,deletions:s}}function Q(e){if(e.type!==`user`||Array.isArray(e.message.content)&&e.message.content[0]?.type===`tool_result`||w(e)||e.isMeta||e.isCompactSummary||e.isVisibleInTranscriptOnly)return!1;let t=e.message.content,n=typeof t==`string`?null:t[t.length-1],r=typeof t==`string`?t.trim():n&&Fe(n)?n.text.trim():``;return!(r.indexOf(`<local-command-stdout>`)!==-1||r.indexOf(`<local-command-stderr>`)!==-1||r.indexOf(`<bash-stdout>`)!==-1||r.indexOf(`<bash-stderr>`)!==-1||r.indexOf(`<task-notification>`)!==-1||r.indexOf(`<tick>`)!==-1)}function Ue(e,t){for(let n=t+1;n<e.length;n++){let t=e[n];if(t&&!w(t)&&!p(t)&&t.type!==`progress`&&t.type!==`system`&&t.type!==`attachment`&&!(t.type===`user`&&t.isMeta)){if(t.type===`assistant`){let e=t.message.content;if(Array.isArray(e)&&e.some(e=>e.type===`text`&&e.text.trim()||e.type===`tool_use`))return!1;continue}if(t.type===`user`)return!1}}return!0}var $,We=e((()=>{r(),U(),o(),S(),Ce(),E(),h(),we(),Ee(),v(),$=7}));export{Q as a,Ue as i,Pe as n,je as o,We as r,Ie as t};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{l as n,o as r}from"./envUtils-DfkgIdYf.js";import{n as i,t as a}from"./figures-5ThXQEtq.js";import{$i as o,$u as s,$x as c,Ca as l,Cu as u,Du as d,Eu as f,Ip as p,Jx as m,Lp as h,Mf as g,Nf as _,Op as v,Ou as y,Qu as b,Qx as x,Tu as S,YC as C,Yi as w,__ as T,_u as E,aS as D,bS as O,bb as ee,bu as te,cb as ne,dC as re,db as ie,du as k,ea as A,fC as ae,fa as j,fb as oe,gC as se,g_ as ce,ga as le,gb as ue,hb as M,ia as N,kp as de,lb as fe,ld as pe,lu as P,ma as me,mm as he,na as ge,oa as _e,ob as ve,p_ as ye,qC as be,ra as xe,ta as Se,ua as Ce,ub as we,ud as Te,uu as Ee,vu as De,wu as Oe,xS as ke,yC as F,yS as Ae,y_ as je,yu as Me}from"./loadAgentsDir-DlPbtIsS.js";import{C as Ne,Gr as I,I as L,N as Pe,P as R,Pn as Fe,Rn as Ie,ai as z,di as Le,fi as Re,j as ze,mt as Be,ot as Ve,t as B,xt as He}from"./src-DL3w8VPk.js";import{t as V}from"./jsx-runtime-Bb4Xn-E0.js";import{n as Ue,t as We}from"./cwd-Pa83R95t.js";import{a as Ge,c as H,i as Ke,n as qe,o as Je}from"./debug-Bglx1aTu.js";import{Ht as Ye,Vt as Xe,h as Ze,t as Qe}from"./settings-B2jvL8Dp.js";import{_ as $e,p as et,s as tt}from"./config-C-Y2qtB2.js";import{B as nt,L as rt,R as it,q as at}from"./log-D2TIwHBV.js";import{l as ot,o as st}from"./stringUtils-C718f5ey.js";import{_ as ct,f as lt,p as ut,y as dt}from"./startupProfiler-CJdr3SxP.js";import{b as ft,d as pt,m as mt}from"./model-BwBG0V1u.js";import{gn as ht,vn as gt}from"./prompt-mM79EGnT.js";import{a as _t,n as vt,r as yt,t as bt}from"./projectOnboardingState-B5YATuc6.js";import{h as xt,m as St}from"./firstPartyEventLogger-M6UMli2c.js";import{n as Ct,t as wt}from"./systemTheme-Ceakddth.js";import{a as Tt,c as Et,i as Dt}from"./SpinnerGlyph-CmkRUvHe.js";import{n as Ot,r as kt}from"./PromptInputFooterSuggestions-AyLog8p7.js";import{n as At,t as jt}from"./useMainLoopModel-DwjSVzzO.js";import{n as Mt,t as Nt}from"./modalContext-DDZdU1J8.js";import{n as Pt,r as Ft,t as It}from"./statusNoticeHelpers-vFVgIYuw.js";import{a as Lt,c as Rt,i as zt,l as Bt,n as Vt,o as Ht,r as Ut,t as Wt,u as Gt}from"./logoUtils-x2pHV-Nl.js";import{homedir as Kt}from"os";import{relative as qt}from"path";import{fileURLToPath as Jt}from"url";function Yt(e,t){for(let n of e)if(!t.has(n))return!1;return!0}var Xt=e((()=>{}));function Zt(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`)||m(t.text,`status`)!==`completed`?!1:m(t.text,`summary`)?.startsWith(`Background command `)??!1}function Qt(e,t){if(!de()||t)return e;let n=[],r=0;for(;r<e.length;){let t=e[r];if(Zt(t)){let i=0;for(;r<e.length&&Zt(e[r]);)i++,r++;i===1?n.push(t):n.push({...t,message:{role:`user`,content:[{type:`text`,text:`<${nt}><${rt}>completed</${rt}><${it}>${i} background commands completed</${it}></${nt}>`}]}})}else n.push(t),r++}return n}var $t=e((()=>{at(),he(),v(),w()}));function en(e){return e.type===`system`&&e.subtype===`stop_hook_summary`&&e.hookLabel!==void 0}function tn(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(en(r)){let i=r.hookLabel,a=[];for(;n<e.length;){let t=e[n];if(!en(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 nn=e((()=>{}));function rn(e){let t=sn.get(e);return t||(t=new Set(e.filter(e=>e.renderGroupedToolUse).map(e=>e.name)),sn.set(e,t)),t}function an(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 on(e,t,n=!1){if(n)return{messages:e};let r=rn(t),i=new Map;for(let t of e){let e=an(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=an(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=an(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 sn,cn=e((()=>{sn=new WeakMap}));function ln(e){let t=hn.get(e);if(t!==void 0)return t;let n=un(e).toLowerCase();return hn.set(e,n),n}function un(e){let t=``;switch(e.type){case`user`:{let n=e.message.content;if(typeof n==`string`)t=mn.has(n)?``:n;else{let r=[];for(let t of n??[])t.type===`text`?mn.has(t.text)||r.push(t.text):t.type===`tool_result`&&r.push(fn(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`?[dn(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(pn,r);if(e<0)break;n=n.slice(0,r)+n.slice(e+18),r=n.indexOf(`<system-reminder>`)}return n}function dn(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 fn(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?`\n${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(`
|
|
8
|
-
`))}return n.join(`
|
|
9
|
-
`)}var pn,mn,hn,gn=e((()=>{w(),pn=`</system-reminder>`,mn=new Set([O,ke]),hn=new WeakMap}));function _n({pose:e=`default`}={}){return(0,vn.jsxs)(L,{flexDirection:`column`,alignItems:`center`,children:[(0,vn.jsx)(R,{color:`clawd_body`,children:` █████ `}),(0,vn.jsx)(R,{color:`clawd_body`,children:`██ ● ● ██`}),(0,vn.jsx)(R,{color:`clawd_body`,children:`██ ▄▄▄ ██`}),(0,vn.jsx)(R,{color:`clawd_body`,children:` █ █ █ █ `})]})}var vn,yn=e((()=>{B(),vn=V()}));function bn(e){let{title:t,lines:n,footer:r,emptyMessage:i,customContent:a}=e,o=I(t);if(a!==void 0)o=Math.max(o,a.width);else if(n.length===0&&i)o=Math.max(o,I(i));else{let e=Math.max(0,...n.map(e=>e.timestamp?I(e.timestamp):0));for(let t of n){let n=e>0?e:0,r=I(t.text)+(n>0?n+2:0);o=Math.max(o,r)}}return r&&(o=Math.max(o,I(r))),o}function xn({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?I(e.timestamp):0));return(0,U.jsxs)(L,{flexDirection:`column`,width:t,children:[(0,U.jsx)(R,{bold:!0,color:`claude`,children:n}),o?(0,U.jsxs)(U.Fragment,{children:[o.content,i&&(0,U.jsx)(R,{dimColor:!0,italic:!0,children:dt(i,t)})]}):r.length===0&&a?(0,U.jsx)(R,{dimColor:!0,children:dt(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)(R,{children:[s>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(R,{dimColor:!0,children:(e.timestamp||``).padEnd(s)}),` `]}),(0,U.jsx)(R,{children:dt(e.text,r)})]},n)}),i&&(0,U.jsx)(R,{dimColor:!0,italic:!0,children:dt(i,t)})]})]})}var U,Sn=e((()=>{B(),ct(),U=V()}));function Cn({feeds:e,maxWidth:t}){let n=e.map(e=>bn(e)),r=Math.max(...n),i=Math.min(r,t);return(0,Tn.jsx)(L,{flexDirection:`column`,children:e.map((t,n)=>(0,Tn.jsxs)(wn.Fragment,{children:[(0,Tn.jsx)(xn,{config:t,actualWidth:i}),n<e.length-1&&(0,Tn.jsx)(Ne,{color:`claude`,width:i})]},n))})}var wn,Tn,En=e((()=>{wn=t(z(),1),B(),Sn(),Tn=V()}));function Dn(e){let t=e.map(e=>{let t=ut(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 On(e){let t=e.filter(({isEnabled:e})=>e).sort((e,t)=>Number(e.isComplete)-Number(t.isComplete)).map(({text:e,isComplete:t})=>({text:`${t?`${a.tick} `:``}${e}`})),n=We()===Kt()?`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}}var kn=e((()=>{i(),Ue(),ct()}));function An(e,t,n){return Array.from({length:n},()=>({pose:e,offset:t}))}function jn(){let{pose:e,bounceOffset:t,onClick:n}=Mn();return(0,Pn.jsx)(L,{height:Bn,flexDirection:`column`,onClick:n,children:(0,Pn.jsx)(L,{marginTop:t,flexShrink:0,children:(0,Pn.jsx)(_n,{pose:e})})})}function Mn(){let[e]=(0,Nn.useState)(()=>Qe().prefersReducedMotion??!1),[t,n]=(0,Nn.useState)(-1),r=(0,Nn.useRef)(Fn),i=()=>{e||t!==-1||(r.current=In[Math.floor(Math.random()*In.length)],n(0))};(0,Nn.useEffect)(()=>{if(t===-1)return;if(t>=r.current.length){n(-1);return}let e=setTimeout(n,Rn,zn);return()=>clearTimeout(e)},[t]);let a=r.current,o=t>=0&&t<a.length?a[t]:Ln;return{pose:o.pose,bounceOffset:o.offset,onClick:i}}var Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn=e((()=>{Nn=t(z(),1),B(),Ze(),yn(),Pn=V(),Fn=[...An(`default`,1,2),...An(`arms-up`,0,3),...An(`default`,0,1),...An(`default`,1,2),...An(`arms-up`,0,3),...An(`default`,0,1)],In=[Fn,[...An(`look-right`,0,5),...An(`look-left`,0,5),...An(`default`,0,1)]],Ln={pose:`default`,offset:0},Rn=60,zn=e=>e+1,Bn=3}));function Hn(){let{columns:e}=Ve(),t=h(e=>e.agent),n=ft(At()),{version:r,cwd:i,billingType:a,agentName:o}=Ht(),s=t??o,c=Math.max(e-15,20),l=dt(r,Math.max(c-11,6)),{shouldSplit:u,truncatedModel:d,truncatedBilling:f}=Ut(n,a,c),p=s?c-1-I(s)-3:c,m=Gt(i,Math.max(p,10));return(0,W.jsx)(g,{children:(0,W.jsxs)(L,{flexDirection:`row`,gap:2,alignItems:`center`,children:[de()?(0,W.jsx)(jn,{}):(0,W.jsx)(_n,{}),(0,W.jsxs)(L,{flexDirection:`column`,children:[(0,W.jsxs)(R,{children:[(0,W.jsx)(R,{bold:!0,children:`Work Mate`}),` `,(0,W.jsxs)(R,{dimColor:!0,children:[`v`,l]})]}),u?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(R,{dimColor:!0,children:d}),(0,W.jsx)(R,{dimColor:!0,children:f})]}):(0,W.jsxs)(R,{dimColor:!0,children:[d,` · `,f]}),(0,W.jsx)(R,{dimColor:!0,children:s?`@${s} · ${m}`:m})]})]})})}var W,Un=e((()=>{jt(),ee(),B(),p(),ct(),v(),Bt(),pt(),_(),Vn(),yn(),W=V()}));function Wn(){let e=(0,Kn.useMemo)(Gn,[]),t=(0,Kn.useMemo)(()=>tt().lastShownEmergencyTip,[]),n=e.tip&&e.tip!==t;return(0,Kn.useEffect)(()=>{n&&$e(t=>t.lastShownEmergencyTip===e.tip?t:{...t,lastShownEmergencyTip:e.tip})},[n,e.tip]),n?(0,qn.jsx)(L,{paddingLeft:2,flexDirection:`column`,children:(0,qn.jsx)(R,{...e.color===`warning`?{color:`warning`}:e.color===`error`?{color:`error`}:{dimColor:!0},children:e.tip})}):null}function Gn(){return Jn}var Kn,qn,Jn,Yn=e((()=>{Kn=t(z(),1),B(),et(),qn=V(),Jn={tip:``,color:`dim`}}));function Xn({char:e=`✻`}){let[t]=(0,Zn.useState)(()=>Qe().prefersReducedMotion??!1),[n,r]=(0,Zn.useState)(t),i=(0,Zn.useRef)(null),[a,o]=Be(n?null:50);return(0,Zn.useEffect)(()=>{if(n)return;let e=setTimeout(r,er,!0);return()=>clearTimeout(e)},[n]),n?(0,Qn.jsx)(L,{ref:a,children:(0,Qn.jsx)(R,{color:tr,children:e})}):(i.current===null&&(i.current=o),(0,Qn.jsx)(L,{ref:a,children:(0,Qn.jsx)(R,{color:Et(Dt((o-i.current)/$n*360%360)),children:e})}))}var Zn,Qn,$n,er,tr,nr=e((()=>{Zn=t(z(),1),Ye(),B(),Ze(),Tt(),Qn=V(),$n=1500,er=$n*2,tr=Et({r:153,g:153,b:153})}));function rr(){return mt()&&(tt().opus1mMergeNoticeSeenCount??0)<sr}function ir(){let[e]=(0,ar.useState)(rr);return(0,ar.useEffect)(()=>{if(!e)return;let t=(tt().opus1mMergeNoticeSeenCount??0)+1;$e(e=>(e.opus1mMergeNoticeSeenCount??0)>=t?e:{...e,opus1mMergeNoticeSeenCount:t})},[e]),e?(0,or.jsxs)(L,{paddingLeft:2,children:[(0,or.jsx)(Xn,{char:`↑`}),(0,or.jsx)(R,{dimColor:!0,children:` Opus now defaults to 1M context · 5x more room, same pricing`})]}):null}var ar,or,sr,cr=e((()=>{ar=t(z(),1),Ye(),B(),et(),pt(),nr(),or=V(),sr=6}));function lr(){let e=Rt(),{columns:t}=Ve(),r=_t(),i=se.isSandboxingEnabled(),a=h(e=>e.agent),o=tt(),[s]=(0,ur.useState)(()=>{let e=Qe().companyAnnouncements;if(!(!e||e.length===0))return o.numStartups===1?e[0]:e[Math.floor(Math.random()*e.length)]});(0,ur.useEffect)(()=>{r&&vt()},[r]),!r&&n(process.env.CLAUDE_CODE_FORCE_FULL_LOGO);let c=ft(At()),{version:l,cwd:u,billingType:d,agentName:f}=Ht(),p=a??f,m=dt(c,dr-20);if(!r&&!n(process.env.CLAUDE_CODE_FORCE_FULL_LOGO))return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Hn,{}),(0,G.jsx)(ir,{}),Ge()&&(0,G.jsxs)(L,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(R,{color:`warning`,children:`Debug mode enabled`}),(0,G.jsxs)(R,{dimColor:!0,children:[`Logging to: `,Je()?`stderr`:qe()]})]}),(0,G.jsx)(Wn,{}),process.env.CLAUDE_CODE_TMUX_SESSION&&(0,G.jsxs)(L,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsxs)(R,{dimColor:!0,children:[`tmux session: `,process.env.CLAUDE_CODE_TMUX_SESSION]}),(0,G.jsx)(R,{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 - Work Mate uses ${process.env.CLAUDE_CODE_TMUX_PREFIX})`:`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} d`})]}),s&&(0,G.jsx)(L,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(R,{children:s})})]});let _=Lt(t),v=Ct(tt().theme),y=` ${ze(`claude`,v)(`Work Mate`)} ${ze(`inactive`,v)(`v${l}`)} `,b=ze(`claude`,v)(` Work Mate `);if(_===`compact`){let e=zt(null);I(e)>t-4&&(e=zt(null));let n=p?t-4-1-I(p)-3:t-4,r=Gt(u,Math.max(n,10));return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g,{children:(0,G.jsxs)(L,{flexDirection:`column`,borderStyle:`round`,borderColor:`claude`,borderText:{content:b,position:`top`,align:`start`,offset:1},paddingX:1,paddingY:1,alignItems:`center`,width:t,children:[(0,G.jsx)(R,{bold:!0,children:e}),(0,G.jsx)(L,{marginY:1,children:(0,G.jsx)(_n,{})}),(0,G.jsx)(R,{dimColor:!0,children:m}),(0,G.jsx)(R,{dimColor:!0,children:d}),(0,G.jsx)(R,{dimColor:!0,children:p?`@${p} · ${r}`:r})]})}),(0,G.jsx)(ir,{}),i&&(0,G.jsx)(L,{marginTop:1,flexDirection:`column`,children:(0,G.jsx)(R,{color:`warning`,children:`Your bash commands will be sandboxed. Disable with /sandbox.`})})]})}let x=zt(null),S=`${m} · ${d}`,C=p?dr-1-I(p)-3:dr,w=Gt(u,Math.max(C,10)),T=p?`@${p} · ${w}`:w,{leftWidth:E,rightWidth:D}=Wt(t,_,Vt(x,T,S));return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g,{children:(0,G.jsx)(L,{flexDirection:`column`,borderStyle:`round`,borderColor:`claude`,borderText:{content:y,position:`top`,align:`start`,offset:3},children:(0,G.jsxs)(L,{flexDirection:_===`horizontal`?`row`:`column`,paddingX:1,gap:1,children:[(0,G.jsxs)(L,{flexDirection:`column`,width:E,justifyContent:`space-between`,alignItems:`center`,minHeight:9,children:[(0,G.jsx)(L,{marginTop:1,children:(0,G.jsx)(R,{bold:!0,children:x})}),(0,G.jsx)(_n,{}),(0,G.jsxs)(L,{flexDirection:`column`,alignItems:`center`,children:[(0,G.jsx)(R,{dimColor:!0,children:S}),(0,G.jsx)(R,{dimColor:!0,children:T})]})]}),_===`horizontal`&&(0,G.jsx)(L,{height:`100%`,borderStyle:`single`,borderColor:`claude`,borderDimColor:!0,borderTop:!1,borderBottom:!1,borderLeft:!1}),_===`horizontal`&&(0,G.jsx)(Cn,{feeds:r?[On(bt()),Dn(e)]:[Dn(e)],maxWidth:D})]})})}),(0,G.jsx)(ir,{}),Ge()&&(0,G.jsxs)(L,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsx)(R,{color:`warning`,children:`Debug mode enabled`}),(0,G.jsxs)(R,{dimColor:!0,children:[`Logging to: `,Je()?`stderr`:qe()]})]}),(0,G.jsx)(Wn,{}),process.env.CLAUDE_CODE_TMUX_SESSION&&(0,G.jsxs)(L,{paddingLeft:2,flexDirection:`column`,children:[(0,G.jsxs)(R,{dimColor:!0,children:[`tmux session: `,process.env.CLAUDE_CODE_TMUX_SESSION]}),(0,G.jsx)(R,{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 - Work Mate uses ${process.env.CLAUDE_CODE_TMUX_PREFIX})`:`Detach: ${process.env.CLAUDE_CODE_TMUX_PREFIX} d`})]}),s&&(0,G.jsx)(L,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(R,{children:s})}),i&&(0,G.jsx)(L,{paddingLeft:2,flexDirection:`column`,children:(0,G.jsx)(R,{color:`warning`,children:`Your bash commands will be sandboxed. Disable with /sandbox.`})})]})}var ur,G,dr,fr=e((()=>{B(),ee(),Bt(),ct(),yn(),En(),kn(),et(),wt(),Ze(),Ke(),ur=t(z(),1),yt(),Un(),_(),r(),Yn(),cr(),F(),p(),jt(),pt(),G=V(),dr=50}));function pr({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,mr.jsx)(L,{minWidth:I(i)+8,children:(0,mr.jsx)(R,{dimColor:!0,children:i})})}var mr,hr=e((()=>{B(),mr=V()}));function gr({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,_r.jsx)(L,{minWidth:I(n),children:(0,_r.jsx)(R,{dimColor:!0,children:n})})}var _r,vr=e((()=>{B(),_r=V()}));function yr(e,t,n,r){for(let i=t+1;i<e.length;i++){let t=e[i];if(t?.type===`assistant`){let e=Er(t.message.content);if(e?.type===`thinking`||e?.type===`redacted_thinking`||e?.type===`tool_use`&&(S(e.name,e.input,n).isCollapsible||r.has(e.id)))continue;return!0}if(!(t?.type===`system`||t?.type===`attachment`)&&!(t?.type===`user`&&Er(t.message.content)?.type===`tool_result`)){if(t?.type===`grouped_tool_use`){let e=Er(t.messages[0]?.message.content)?.input;if(S(t.toolName,e,n).isCollapsible)continue}return!0}}return!1}function br({message:e,isUserContinuation:t,hasContentAfter:n,tools:r,commands:i,verbose:a,inProgressToolUseIDs:o,streamingToolUseIDs:s,screen:l,canAnimate:u,lastThinkingBlockId:f,latestBashOutputUUID:p,columns:m,isLoading:h,lookups:_,shouldCollapseDiffs:v}){let y=l===`transcript`,b=e.type===`grouped_tool_use`,x=e.type===`collapsed_read_search`,S=x&&(d(e,o)||h&&!n),C=b?e.displayMessage:x?Oe(e):e,w=b||x?[]:Se(e,_),T=Li(e,s,o,b||x?Ae:ge(e,_),l,_),E=!1;if(u)if(b)E=e.messages.some(e=>{let t=Er(e.message.content);return t?.type===`tool_use`&&o.has(t.id)});else if(x)E=d(e,o);else{let t=c(e);E=!t||o.has(t)}let D=y&&C.type===`assistant`&&Array.isArray(C.message.content)&&C.message.content.some(e=>e.type===`text`)&&(C.timestamp||C.message.model),O=(0,Tr.jsx)(P,{message:e,lookups:_,addMargin:!D,containerWidth:D?void 0:m,tools:r,commands:i,verbose:a,inProgressToolUseIDs:o,progressMessagesForMessage:w,shouldAnimate:E,shouldShowDot:!0,isTranscriptMode:y,isStatic:T,isActiveCollapsedGroup:S,isUserContinuation:t,lastThinkingBlockId:f,latestBashOutputUUID:p,shouldCollapseDiffs:v});return D?(0,Tr.jsx)(g,{children:(0,Tr.jsxs)(L,{width:m,flexDirection:`column`,children:[(0,Tr.jsxs)(L,{flexDirection:`row`,justifyContent:`flex-end`,gap:1,marginTop:1,children:[(0,Tr.jsx)(gr,{message:C,isTranscriptMode:y}),(0,Tr.jsx)(pr,{message:C,isTranscriptMode:y})]}),O]})}):(0,Tr.jsx)(g,{children:O})}function xr(e,t){if(e.type===`grouped_tool_use`)return e.messages.some(e=>{let n=Er(e.message.content);return n?.type===`tool_use`&&t.has(n.id)});if(e.type===`collapsed_read_search`)return f(e).some(e=>t.has(e));let n=c(e);return!!n&&t.has(n)}function Sr(e,t){if(e.type===`grouped_tool_use`)return e.messages.every(e=>{let n=Er(e.message.content);return n?.type===`tool_use`&&t.has(n.id)});if(e.type===`collapsed_read_search`)return f(e).every(e=>t.has(e));if(e.type===`assistant`){let n=Er(e.message.content);if(n?.type===`server_tool_use`)return t.has(n.id)}let n=c(e);return!n||t.has(n)}function Cr(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&&Ee(t.message))return!1;let n=xr(e.message,e.streamingToolUseIDs),r=Sr(e.message,e.lookups.resolvedToolUseIDs);return!(n||!r)}var wr,Tr,Er,Dr,Or=e((()=>{wr=t(z(),1),B(),y(),w(),k(),Tr=V(),hr(),Gi(),vr(),_(),Er=e=>{if(!Array.isArray(e))return;let t=e[0];if(!(t==null||typeof t==`string`))return t},Dr=wr.memo(br,Cr)}));function kr(e){return e.type===`attachment`&&Ar.has(e.attachment.type)}var Ar,jr=e((()=>{Ar=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.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 Mr(e){return Fr.filter(t=>t.isActive(e))}var K,Nr,Pr,Fr,Ir=e((()=>{B(),je(),i(),Ue(),ct(),Ft(),K=V(),Nr={id:`large-memory-files`,type:`warning`,isActive:e=>ce(e.memoryFiles).length>0,render:e=>(0,K.jsx)(K.Fragment,{children:ce(e.memoryFiles).map(e=>{let t=e.path.startsWith(We())?qt(We(),e.path):e.path;return(0,K.jsxs)(L,{flexDirection:`row`,children:[(0,K.jsx)(R,{color:`warning`,children:a.warning}),(0,K.jsxs)(R,{color:`warning`,children:[`Large `,(0,K.jsx)(R,{bold:!0,children:t}),` will impact performance (`,lt(e.content.length),` chars > `,lt(ye),`)`,(0,K.jsx)(R,{dimColor:!0,children:` · /memory to edit`})]})]},e.path)})})},Pr={id:`large-agent-descriptions`,type:`warning`,isActive:e=>Pt(e.agentDefinitions)>It,render:e=>{let t=Pt(e.agentDefinitions);return(0,K.jsxs)(L,{flexDirection:`row`,children:[(0,K.jsx)(R,{color:`warning`,children:a.warning}),(0,K.jsxs)(R,{color:`warning`,children:[`Large cumulative agent descriptions will impact performance (~`,lt(t),` tokens > `,lt(It),`)`,(0,K.jsx)(R,{dimColor:!0,children:` · /agents to manage`})]})]})}},Fr=[Nr,Pr]}));function Lr({agentDefinitions:e}={}){let t={config:tt(),agentDefinitions:e,memoryFiles:(0,zr.use)(T())},n=Mr(t);return n.length===0?null:(0,Br.jsx)(L,{flexDirection:`column`,paddingLeft:1,children:n.map(e=>(0,Br.jsx)(Rr.Fragment,{children:e.render(t)},e.id))})}var Rr,zr,Br,Vr=e((()=>{Rr=t(z(),1),zr=t(z(),1),B(),je(),et(),Ir(),Br=V()}));function Hr(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)??Xr,[e]),()=>{let t=e.current;if(!t)return NaN;let n=t.getScrollTop()+t.getPendingDelta(),r=Math.floor(n/Kr);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])??Ur);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-Gr),w=b;else{if(y){let e=v+Wr;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-Wr;{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*Wr,y=Math.min(b,C+Jr),S=0;for(w=C;w<y&&(S<h||x[w]<f+v+Wr);)S+=r.current.get(t[w])??qr,w++}let e=v+2*Wr,n=Math.max(0,w-Jr),i=0;for(let e=C;e<w;e++)i+=r.current.get(t[e])??qr;for(;C>n&&i<e;)C--,i+=r.current.get(t[C])??qr;let o=d.current,c=Math.abs(g-a.current)+Math.abs(_);if(o&&c>v*2){let[e,t]=o;C<e-Yr&&(C=e-Yr),w>t+Yr&&(w=t+Yr),C>w&&(w=Math.min(C+Yr,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>Jr){let e=(x[D]+x[O])/2;g-m.current<e?O=D+Jr:D=O-Jr}let ee=m.current,te=x[D],ne=D===0?0:te+ee,re=O===b?1/0:Math.max(te,x[O]-v)+ee;(0,q.useLayoutEffect)(()=>{y?e.current?.setClampBounds(void 0,void 0):e.current?.setClampBounds(ne,re)}),(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 ie=(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},[]),k=(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]),ae=(0,q.useCallback)(e=>r.current.get(t[e]),[t]),j=(0,q.useCallback)(t=>{let n=o.current;t<0||t>=n.n||e.current?.scrollTo(n.arr[t]+m.current)},[e]),oe=S-x[O];return{range:[D,O],topSpacer:te,bottomSpacer:oe,measureRef:ie,spacerRef:h,offsets:x,getItemTop:k,getItemElement:A,getItemHeight:ae,scrollToIndex:j}}var q,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr=e((()=>{q=t(z(),1),Ur=3,Wr=40,Gr=30,Kr=20,qr=1,Jr=200,Yr=25,Xr=()=>{}}));function Qr({children:e}){let[t,n]=(0,J.useState)(null),[r,i]=(0,J.useState)(null);return(0,ri.jsx)(ai.Provider,{value:n,children:(0,ri.jsx)(si.Provider,{value:i,children:(0,ri.jsx)(ii.Provider,{value:t,children:(0,ri.jsx)(oi.Provider,{value:r,children:e})})})})}function $r(){return(0,J.useContext)(ii)}function ei(){return(0,J.useContext)(oi)}function ti(e){let t=(0,J.useContext)(ai);(0,J.useEffect)(()=>{if(t)return t(e),()=>t(null)},[t,e])}function ni(e){let t=(0,J.useContext)(si);(0,J.useEffect)(()=>{if(t)return t(e),()=>t(null)},[t,e])}var J,ri,ii,ai,oi,si,ci=e((()=>{J=t(z(),1),ri=V(),ii=(0,J.createContext)(null),ai=(0,J.createContext)(null),oi=(0,J.createContext)(null),si=(0,J.createContext)(null)}));function li(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 ui(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`&&!di(t))continue;let a=t.type===`assistant`;a&&!r&&n++,r=a}return n}function di(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 fi(e,t){if(t===null)return;let n=t;for(;n<e.length&&(e[n]?.type===`progress`||kr(e[n]));)n++;let r=e[n]?.uuid;if(!r)return;let i=ui(e,t);return{firstUnseenUuid:r,count:Math.max(1,i)}}function pi({scrollable:e,bottom:t,overlay:n,bottomFloat:r,modal:i,modalScrollRef:a,scrollRef:o,dividerYRef:s,hidePill:c=!1,hideSticky:l=!1,newMessageCount:u=0,onPillClick:d}){let{rows:f,columns:p}=Ve(),[m,h]=(0,Y.useState)(null),g=(0,Y.useMemo)(()=>({setStickyPrompt:h}),[]),_=(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(!de())return;let e=Ie.get(process.stdout);if(e)return e.onHyperlinkClick=e=>{if(e.startsWith(`file:`))try{te(Jt(e))}catch{}else Me(e)},()=>{e.onHyperlinkClick=void 0}},[]),de()){let s=l?null:m,h=s!=null&&s!==`clicked`&&n==null?s:null,v=s!=null&&n==null;return(0,X.jsxs)(Qr,{children:[(0,X.jsx)(L,{flexDirection:`row`,flexGrow:1,overflow:`hidden`,width:`100%`,children:(0,X.jsxs)(L,{flexDirection:`column`,flexGrow:1,width:p,overflow:`hidden`,children:[(0,X.jsxs)(L,{flexGrow:1,flexDirection:`column`,overflow:`hidden`,children:[h&&(0,X.jsx)(hi,{text:h.text,onClick:h.scrollTo}),(0,X.jsxs)(He,{ref:o,flexGrow:1,flexDirection:`column`,paddingTop:+!v,stickyScroll:!0,children:[(0,X.jsx)(yi,{value:g,children:e}),n]}),!c&&_&&n==null&&(0,X.jsx)(mi,{count:u,onClick:d}),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)(gi,{}),(0,X.jsx)(_i,{}),(0,X.jsx)(L,{flexDirection:`column`,width:`100%`,flexGrow:1,overflowY:`hidden`,children:t})]})]})}),i!=null&&(0,X.jsx)(Nt,{value:{rows:f-vi-1,columns:p-4,scrollRef:a??null},children:(0,X.jsxs)(L,{position:`absolute`,bottom:0,left:0,right:0,maxHeight:f-vi,flexDirection:`column`,overflow:`hidden`,opaque:!0,children:[(0,X.jsx)(L,{flexShrink:0,children:(0,X.jsx)(R,{color:`permission`,children:`▔`.repeat(p)})}),(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 mi({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)(R,{backgroundColor:n?`userMessageBackgroundHover`:`userMessageBackground`,dimColor:!0,children:[` `,e>0?`${e} new ${ot(e,`message`)}`:`Jump to bottom`,` `,a.arrowDown,` `]})})})}function hi({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)(R,{color:`subtle`,wrap:`truncate-end`,children:[a.pointer,` `,e]})})}function gi(){let e=$r();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)(Ot,{suggestions:e.suggestions,selectedSuggestion:e.selectedSuggestion,maxColumnWidth:e.maxColumnWidth,overlay:!0})})}function _i(){let e=ei();return e?(0,X.jsx)(L,{position:`absolute`,bottom:`100%`,left:0,right:0,opaque:!0,children:e}):null}var Y,X,vi,yi,bi=e((()=>{i(),Y=t(z(),1),Mt(),ci(),ee(),B(),De(),v(),st(),jr(),kt(),X=V(),vi=2,yi=(0,Y.createContext)({setStickyPrompt:()=>{}})}));function xi(e){let t=ki.get(e);if(t!==void 0)return t;let n=ln(e);return ki.set(e,n),n}function Si(e){let t=ji.get(e);if(t!==void 0)return t;let n=Ci(e);return ji.set(e,n),n}function Ci(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(`
|
|
10
|
-
`)}if(t===null)return null;let n=ie(t);return n.startsWith(`<`)||n===``?null:n}function wi({itemKey:e,msg:t,idx:n,measureRef:r,expanded:i,hovered:a,clickable:o,onClickK:s,onEnterK:c,onLeaveK:l,renderItem:u}){return(0,Di.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?()=>l(e):void 0,children:(0,Di.jsx)(Pe.Provider,{value:a&&!i?`text`:void 0,children:u(t,n)})})}function Ti({messages:e,scrollRef:t,columns:n,itemKey:r,renderItem:i,onItemClick:a,isItemClickable:o,isItemExpanded:s,extractSearchText:c=xi,trackStickyPrompt:l,selectedIndex:u,cursorNavRef:d,setCursor:f,jumpRef:p,onSearchMatchesChange:m,scanElement:h,setPositions:g}){let _=(0,Z.useRef)([]),v=(0,Z.useRef)(e),y=(0,Z.useRef)(r);if(y.current!==r||e.length<_.current.length||e[0]!==v.current[0])_.current=e.map(e=>r(e));else for(let t=_.current.length;t<e.length;t++)_.current.push(r(e[t]));v.current=e,y.current=r;let b=_.current,{range:x,topSpacer:S,bottomSpacer:C,measureRef:w,spacerRef:T,offsets:E,getItemTop:D,getItemElement:O,getItemHeight:ee,scrollToIndex:te}=Hr(t,b,n),[ne,re]=x,ie=(0,Z.useCallback)(t=>ee(t)!==0&&we(e[t]),[ee,e]);(0,Z.useImperativeHandle)(d,()=>{let n=e=>f?.({uuid:e.uuid,msgType:e.type,expanded:!1,toolName:oe(e)?.name}),r=u??-1,i=(t,r,i=ie)=>{for(let a=t;a>=0&&a<e.length;a+=r)if(i(a))return n(e[a]),!0;return!1},a=t=>ie(t)&&e[t].type===`user`;return{enterCursor:()=>i(e.length-1,-1,a),navigatePrev:()=>i(r-1,-1),navigateNext:()=>{i(r+1,1)||(t.current?.scrollToBottom(),f?.(null))},navigatePrevUser:()=>i(r-1,-1,a),navigateNextUser:()=>i(r+1,1,a),navigateTop:()=>i(0,1),navigateBottom:()=>i(e.length-1,-1),getSelected:()=>r>=0?e[r]??null:null}},[e,u,f,ie]);let k=(0,Z.useRef)({offsets:E,start:ne,getItemElement:O,getItemTop:D,messages:e,scrollToIndex:te});k.current={offsets:E,start:ne,getItemElement:O,getItemTop:D,messages:e,scrollToIndex:te},(0,Z.useEffect)(()=>{if(u===void 0)return;let e=k.current,n=e.getItemElement(u);n?t.current?.scrollToElement(n,1):e.scrollToIndex(u)},[u,t]);let A=(0,Z.useRef)(null),ae=(0,Z.useRef)({msgIdx:-1,positions:[]}),j=(0,Z.useRef)(-1),se=(0,Z.useRef)(0),ce=(0,Z.useRef)(0),le=(0,Z.useRef)(()=>{}),ue=(0,Z.useRef)(()=>{}),M=(0,Z.useRef)({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),N=(0,Z.useRef)(-1),de=(0,Z.useRef)(!1);function fe(e){let t=k.current.getItemTop(e);return Math.max(0,t-Oi)}function pe(e){let n=t.current,{msgIdx:r,positions:i}=ae.current;if(!n||i.length===0||r<0){g?.(null);return}let a=Math.max(0,Math.min(e,i.length-1)),o=i[a],s=k.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-Oi)),l=s-n.getScrollTop(),d=c+l+o.row),g?.({positions:i,rowOffset:c+l,currentIdx:a});let f=M.current,p=f.prefixSum.at(-1)??0,h=(f.prefixSum[f.ptr]??0)+a+1;m?.(p,h),H(`highlight(i=${r}, ord=${a}/${i.length}): pos={row:${o.row},col:${o.col}} lo=${l} screenRow=${d} badge=${h}/${p}`)}ue.current=pe;let[P,me]=(0,Z.useState)(0),he=(0,Z.useCallback)(()=>me(e=>e+1),[]);(0,Z.useEffect)(()=>{let e=A.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}=k.current,l=o(n),u=l?.yogaNode?.getComputedHeight()??0;if(!l||u===0){if(i>1){A.current=null,H(`seek(i=${n}): no mount after scrollToIndex, skip`),le.current(r?-1:1);return}A.current={idx:n,wantLast:r,tries:i+1},c(n),he();return}A.current=null,a.scrollTo(Math.max(0,s(n)-Oi));let d=h?.(l)??[];if(ae.current={msgIdx:n,positions:d},H(`seek(i=${n} t=${i}): ${d.length} positions`),d.length===0){if(++se.current>20){se.current=0;return}le.current(r?-1:1);return}se.current=0;let f=r?d.length-1:0;M.current.screenOrd=f,j.current=-1,ue.current(f);let p=ce.current;p&&(ce.current=0,le.current(p))},[P]);function ge(e,n){let r=t.current;if(!r)return;let i=k.current,{getItemElement:a,scrollToIndex:o}=i;if(e<0||e>=i.messages.length)return;g?.(null),ae.current={msgIdx:-1,positions:[]},A.current={idx:e,wantLast:n,tries:0};let s=a(e),c=s?.yogaNode?.getComputedHeight()??0;s&&c>0?r.scrollTo(fe(e)):o(e),he()}function _e(e){let t=M.current,{matches:n,prefixSum:r}=t,i=r.at(-1)??0;if(n.length===0)return;if(A.current){ce.current=e;return}j.current<0&&(j.current=t.ptr);let{positions:a}=ae.current,o=t.screenOrd+e;if(o>=0&&o<a.length){t.screenOrd=o,pe(o),j.current=-1;return}let s=(t.ptr+e+n.length)%n.length;if(s===j.current){g?.(null),j.current=-1,H(`step: wraparound at ptr=${s}, all ${n.length} msgs phantoms`);return}t.ptr=s,t.screenOrd=0,ge(n[s],e<0);let c=e<0?r[s+1]??i:r[s]+1;m?.(i,c)}le.current=_e,(0,Z.useImperativeHandle)(p,()=>({jumpToIndex:e=>{let n=t.current;n&&n.scrollTo(fe(e))},setSearchQuery:e=>{A.current=null,ae.current={msgIdx:-1,positions:[]},j.current=-1,g?.(null);let n=e.toLowerCase(),r=[],i=[0];if(n){let e=k.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}=k.current,f=d(u),p=f>=0?f-l[u]:0;if(r.length>0&&s){let t=N.current>=0?N.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)}H(`setSearchQuery('${e}'): ${r.length} msgs · ptr=${o} msgIdx=${r[o]} curTop=${t} origin=${p}`)}M.current={matches:r,ptr:o,screenOrd:0,prefixSum:i},r.length>0?ge(r[o],!0):N.current>=0&&s&&s.scrollTo(N.current),m?.(a,r.length>0?i[o+1]??a:0)},nextMatch:()=>_e(1),prevMatch:()=>_e(-1),setAnchor:()=>{let e=t.current;e&&(N.current=e.getScrollTop())},disarmSearch:()=>{g?.(null),A.current=null,ae.current={msgIdx:-1,positions:[]},j.current=-1},warmSearchIndex:async()=>{if(de.current)return 0;let e=k.current.messages,t=0,n=performance.now();for(let n=0;n<e.length;n+=500){await xt(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 H(`warmSearchIndex: ${e.length} msgs · work=${Math.round(t)}ms wall=${r}ms chunks=${Math.ceil(e.length/500)}`),de.current=!0,Math.round(t)}}),[t]);let[ve,ye]=(0,Z.useState)(null),be=(0,Z.useRef)({onItemClick:a,setHoveredKey:ye});be.current={onItemClick:a,setHoveredKey:ye};let xe=(0,Z.useCallback)((e,t)=>{let n=be.current;!t&&n.onItemClick&&n.onItemClick(e)},[]),Se=(0,Z.useCallback)(e=>{be.current.setHoveredKey(e)},[]),Ce=(0,Z.useCallback)(e=>{be.current.setHoveredKey(t=>t===e?null:t)},[]);return(0,Di.jsxs)(Di.Fragment,{children:[(0,Di.jsx)(L,{ref:T,height:S,flexShrink:0}),e.slice(ne,re).map((e,t)=>{let n=ne+t,r=b[n],c=!!a&&(o?.(e)??!0),l=c&&ve===r,u=s?.(e);return(0,Di.jsx)(wi,{itemKey:r,msg:e,idx:n,measureRef:w,expanded:u,hovered:l,clickable:c,onClickK:xe,onEnterK:Se,onLeaveK:Ce,renderItem:i},r)}),C>0&&(0,Di.jsx)(L,{height:C,flexShrink:0}),l&&(0,Di.jsx)(Ei,{messages:e,start:ne,end:re,offsets:E,getItemTop:D,getItemElement:O,scrollRef:t})]})}function Ei({messages:e,start:t,end:n,offsets:r,getItemTop:i,getItemElement:a,scrollRef:o}){let{setStickyPrompt:s}=(0,Z.useContext)(yi);(0,Z.useSyncExternalStore)((0,Z.useCallback)(e=>o.current?.subscribe(e)??Mi,[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=Si(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,Ai).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,Di,Oi,ki,Ai,ji,Mi,Ni=e((()=>{Z=t(z(),1),Zr(),B(),E(),bi(),Di=V(),Ke(),St(),gn(),fe(),Oi=3,ki=new WeakMap,Ai=500,ji=new WeakMap,Mi=()=>{}}));function Pi(e,t,n=Vi,r=Hi){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 Fi(e){return(e.type===`assistant`||e.type===`user`?c(e):null)??e.uuid}function Ii(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Li(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=c(e);return i?t.has(i)||n.has(i)||N(i,`PostToolUse`,a)?!1:Yt(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 Ri,Q,$,zi,Bi,Vi,Hi,Ui,Wi,Gi=e((()=>{Re(),Ri=t(z(),1),Q=t(z(),1),Xt(),Ye(),ee(),B(),M(),gt(),re(),$t(),nn(),y(),et(),r(),v(),cn(),w(),st(),gn(),fr(),Te(),Or(),fe(),s(),jr(),_(),Vr(),$=V(),be(),Ni(),zi=Ri.memo(function({agentDefinitions:e}){return(0,$.jsx)(g,{children:(0,$.jsxs)(L,{flexDirection:`column`,gap:1,children:[(0,$.jsx)(lr,{}),(0,$.jsx)(Ri.Suspense,{fallback:null,children:(0,$.jsx)(Lr,{agentDefinitions:e})})]})})}),Bi=30,Vi=200,Hi=50,Ui=({messages:e,tools:t,commands:r,verbose:i,toolJSX:a,toolUseConfirmQueue:s,inProgressToolUseIDs:c,isMessageSelectorVisible:d,conversationId:f,screen:p,streamingToolUses:m,showAllInTranscript:h=!1,agentDefinitions:g,hideLogo:_=!1,isLoading:v,hidePastThinking:y=!1,streamingThinking:S,streamingText:w,unseenDivider:T,scrollRef:E,trackStickyPrompt:O,jumpRef:ee,onSearchMatchesChange:te,scanElement:re,setPositions:ie,disableRenderCap:k=!1,cursor:oe=null,setCursor:se,cursorNavRef:ce,renderRange:M})=>{let{columns:N}=Ve(),fe=ue(`transcript:toggleShowAll`,`Transcript`,`Ctrl+E`),P=(0,Q.useMemo)(()=>Ce(e).filter(l),[e]),he=(0,Q.useMemo)(()=>S?S.isStreaming?!0:S.streamingEndedAt?Date.now()-S.streamingEndedAt<3e4:!1:!1,[S]),{lastThinkingBlockId:ge,latestBashOutputUUID:ye}=(0,Q.useMemo)(()=>{let e=null,t=null,n=y&&!he;y&&he&&(e=`streaming`);for(let r=P.length-1;r>=0;r--){let i=P[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 y||(e=null),{lastThinkingBlockId:e,latestBashOutputUUID:t}},[P,y,he]),be=(0,Q.useMemo)(()=>xe(P),[P]),Se=(0,Q.useMemo)(()=>m.filter(e=>!c.has(e.contentBlock.id)&&!be.has(e.contentBlock.id)),[m,c,be]),we=(0,Q.useMemo)(()=>Se.flatMap(e=>{let t=D({content:[e.contentBlock]});return t.uuid=me(e.contentBlock.id,0),Ce([t])}),[Se]),Te=p===`transcript`,Ee=(0,Q.useMemo)(()=>n(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),De=E!=null&&!Ee,Oe=Te&&!h&&!De,ke=(0,Q.useRef)(null),F=(0,Q.useRef)(null),{collapsed:Ae,lookups:je,hasTruncatedMessages:Me,hiddenMessageCount:I}=(0,Q.useMemo)(()=>{let e=j((i||de()?P:x(P,{includeSnipped:!0})).filter(e=>e.type!==`progress`&&!kr(e)&&le(e,Te)),we),n=Oe?e.slice(-30):e,r=Oe&&e.length>Bi,{messages:a}=on(n,t,i),s=Qt(tn(u(a,t)),i),c=A(P,n),l=(()=>{let e=n.at(-1);return e?.type===`assistant`?e.message?.id:void 0})(),d;if(F.current&&F.current.key===c)d=F.current.lookups;else if(F.current&&P.length>=F.current.normalizedCount&&n.length>=F.current.messageCount&&F.current.lastAssistantMsgId===l){let e=_e(F.current.lookups,F.current.normalizedCount,F.current.messageCount,P,n);e?(d=e,F.current={key:c,lookups:d,normalizedCount:P.length,messageCount:n.length,lastAssistantMsgId:l}):(d=o(P,n),F.current={key:c,lookups:d,normalizedCount:P.length,messageCount:n.length,lastAssistantMsgId:l})}else d=o(P,n),F.current={key:c,lookups:d,normalizedCount:P.length,messageCount:n.length,lastAssistantMsgId:l};let f=e.length-Bi;return{collapsed:s,lookups:d,hasTruncatedMessages:r,hiddenMessageCount:f}},[i,P,Te,we,Oe,t]),Pe=(0,Q.useMemo)(()=>{let e=!De&&!k?Pi(Ae,ke):0;return M?Ae.slice(M[0],M[1]):e>0?Ae.slice(e):Ae},[Ae,M,De,k]),Ie=(0,Q.useMemo)(()=>new Set(m.map(e=>e.contentBlock.id)),[m]),{dividerBeforeIndex:z,selectedIdx:Re}=(0,Q.useMemo)(()=>{if(!T&&!oe)return{dividerBeforeIndex:-1,selectedIdx:-1};let e=-1,t=-1,n=T?.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&&oe&&i.uuid===oe.uuid&&(t=r),e!==-1&&t!==-1)break}return{dividerBeforeIndex:e,selectedIdx:t}},[T,oe,Pe]),[ze,Be]=(0,Q.useState)(()=>new Set),B=(0,Q.useCallback)(e=>{let t=Fi(e);Be(e=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n})},[]),He=(0,Q.useCallback)(e=>ze.size>0&&ze.has(Fi(e)),[ze]),V=(0,Q.useRef)(je);V.current=je;let Ue=(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&&ae(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=V.current.toolUseByToolUseID.get(n.tool_use_id??``)?.name;return(r?ht(t,r):void 0)?.isResultTruncated?.(e.toolUseResult)??!1},[t]),We=(!a||!!a.shouldContinueAnimation)&&!s.length&&!d,Ge=c.size>0,{progress:H}=Fe(),Ke=(0,Q.useRef)(null),qe=tt().terminalProgressBarEnabled&&!C();(0,Q.useEffect)(()=>{let e=qe?Ge?`indeterminate`:`completed`:null;Ke.current!==e&&(Ke.current=e,H(e))},[H,qe,Ge]),(0,Q.useEffect)(()=>()=>H(null),[H]);let Je=(0,Q.useCallback)(e=>`${e.uuid}-${f}`,[f]),Ye=(e,n)=>{let a=n>0?Pe[n-1]?.type:void 0,o=e.type===`user`&&a===`user`,s=e.type===`collapsed_read_search`&&(!!w||yr(Pe,n,t,Ie)),l=Pe.length-1-n>0,u=Je(e),d=(0,$.jsx)(Dr,{message:e,isUserContinuation:o,hasContentAfter:s,tools:t,commands:r,verbose:i||He(e)||oe?.expanded===!0&&n===Re,inProgressToolUseIDs:c,streamingToolUseIDs:Ie,screen:p,canAnimate:We,lastThinkingBlockId:ge,latestBashOutputUUID:ye,columns:N,isLoading:v,lookups:je,shouldCollapseDiffs:l},u),f=(0,$.jsx)(ne.Provider,{value:n===Re,children:d},u);return T&&n===z?[(0,$.jsx)(L,{marginTop:1,children:(0,$.jsx)(Ne,{title:`${T.count} new ${ot(T.count,`message`)}`,width:N,color:`inactive`})},`unseen-divider`),f]:f},Ze=(0,Q.useRef)(new WeakMap),Qe=(0,Q.useCallback)(e=>{let n=Ze.current.get(e);if(n!==void 0)return n;let r=ln(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&&ht(t,i.name))?.extractSearchText?.(e.toolUseResult);a!==void 0&&(r=a)}}let i=r.toLowerCase();return Ze.current.set(e,i),i},[t,je]);return(0,$.jsxs)($.Fragment,{children:[!_&&!(M&&M[0]>0)&&(0,$.jsx)(zi,{agentDefinitions:g}),Me&&(0,$.jsx)(Ne,{title:`${fe} to show ${Le.bold(I)} previous messages`,width:N}),Te&&h&&I>0&&!k&&(0,$.jsx)(Ne,{title:`${fe} to hide ${Le.bold(I)} previous messages`,width:N}),De?(0,$.jsx)(ve.Provider,{value:!0,children:(0,$.jsx)(Ti,{messages:Pe,scrollRef:E,columns:N,itemKey:Je,renderItem:Ye,onItemClick:B,isItemClickable:Ue,isItemExpanded:He,trackStickyPrompt:O,selectedIndex:Re>=0?Re:void 0,cursorNavRef:ce,setCursor:se,jumpRef:ee,onSearchMatchesChange:te,scanElement:re,setPositions:ie,extractSearchText:Qe})}):Pe.flatMap(Ye),w&&(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)(R,{color:`text`,children:Xe})}),(0,$.jsx)(L,{flexDirection:`column`,children:(0,$.jsx)(pe,{children:w})})]})}),he&&S&&(0,$.jsx)(L,{marginTop:1,children:(0,$.jsx)(b,{param:{type:`thinking`,thinking:S.thinking},addMargin:!1,isTranscriptMode:!0,verbose:i,hideInTranscript:!1})})]})},Wi=Ri.memo(Ui,(e,t)=>{let n=Object.keys(e);for(let r of n)if(!(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`&&Ii(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{bi as a,ti as c,fi as i,ni as l,Gi as n,li as o,pi as r,ci as s,Wi as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DaDcL9Zw.js";import{mb as t}from"./loadAgentsDir-DlPbtIsS.js";import{Gt as n,H as r,I as i,Lt as a,P as o,ai as s,kt as c,t as l}from"./src-DL3w8VPk.js";import{t as u}from"./jsx-runtime-Bb4Xn-E0.js";import{Wt as d,qt as f}from"./settings-B2jvL8Dp.js";import{n as p,r as m}from"./analytics-DJobLaWP.js";import{c as h,i as g,s as _}from"./terminalSetup-B_10N_gE.js";import{n as v,t as y}from"./useExitOnCtrlCDWithKeybindings-C9BYG8Bo.js";import{n as b,t as x}from"./select-Bxf5-5sI.js";import{r as S}from"./Spinner-zYPFVFHN.js";import{n as C,t as w}from"./ThemePicker-0F0hZYPX.js";import{n as T,t as E}from"./PressEnterToContinue-DZc_s_pE.js";var D=e(s(),1),O=u();p(),f(),t(),g(),y(),l(),l(),S(),b(),l();var k=58;function A(){let[e]=r(),t=`Welcome to Work Mate`;return d.terminal===`Apple_Terminal`?(0,O.jsx)(j,{theme:e,welcomeMessage:t}):[`light`,`light-daltonized`,`light-ansi`].includes(e)?(0,O.jsxs)(i,{width:k,flexDirection:`column`,children:[(0,O.jsxs)(o,{children:[(0,O.jsxs)(o,{color:`claudeBlue_FOR_SYSTEM_SPINNER`,children:[t,` `]}),(0,O.jsxs)(o,{dimColor:!0,children:[`v`,`0.0.23`,` `]})]}),(0,O.jsx)(o,{children:`…………………………………………………………………………………………………………………………………………………………`}),(0,O.jsx)(o,{children:` ░░░░░░ `}),(0,O.jsx)(o,{children:` ░░░ ░░░░░░░░░░ `}),(0,O.jsx)(o,{children:` ░░░░░░░░░░░░░░░░░░░ `}),(0,O.jsx)(o,{children:` `})]}):(0,O.jsxs)(i,{width:k,flexDirection:`column`,children:[(0,O.jsxs)(o,{children:[(0,O.jsxs)(o,{color:`claudeBlue_FOR_SYSTEM_SPINNER`,children:[t,` `]}),(0,O.jsxs)(o,{dimColor:!0,children:[`v`,`0.0.23`,` `]})]}),(0,O.jsx)(o,{children:`…………………………………………………………………………………………………………………………………………………………`}),(0,O.jsx)(o,{children:` * █████▓▓░ `}),(0,O.jsx)(o,{children:` * ███▓░ ░░ `}),(0,O.jsx)(o,{children:` ░░░░░░ ███▓░ `}),(0,O.jsx)(o,{children:` ░░░ ░░░░░░░░░░ ███▓░ `}),(0,O.jsxs)(o,{children:[(0,O.jsx)(o,{children:` ░░░░░░░░░░░░░░░░░░░ `}),(0,O.jsx)(o,{bold:!0,children:`*`}),(0,O.jsx)(o,{children:` ██▓░░ ▓ `})]}),(0,O.jsx)(o,{children:` ░▓▓███▓▓░ `}),(0,O.jsx)(o,{dimColor:!0,children:` * ░░░░ `}),(0,O.jsx)(o,{dimColor:!0,children:` ░░░░░░░░ `}),(0,O.jsx)(o,{dimColor:!0,children:` * ░░░░░░░░░░░░░░░░ `}),(0,O.jsx)(o,{dimColor:!0,children:` * `})]})}function j({theme:e,welcomeMessage:t}){return[`light`,`light-daltonized`,`light-ansi`].includes(e)?(0,O.jsxs)(i,{width:k,flexDirection:`column`,children:[(0,O.jsxs)(o,{children:[(0,O.jsxs)(o,{color:`claudeBlue_FOR_SYSTEM_SPINNER`,children:[t,` `]}),(0,O.jsxs)(o,{dimColor:!0,children:[`v`,`0.0.23`,` `]})]}),(0,O.jsx)(o,{children:`…………………………………………………………………………………………………………………………………………………………`}),(0,O.jsx)(o,{children:` ░░░░░░ `}),(0,O.jsx)(o,{children:` ░░░ ░░░░░░░░░░ `}),(0,O.jsx)(o,{children:` ░░░░░░░░░░░░░░░░░░░ `}),(0,O.jsx)(o,{children:` `})]}):(0,O.jsxs)(i,{width:k,flexDirection:`column`,children:[(0,O.jsxs)(o,{children:[(0,O.jsxs)(o,{color:`claudeBlue_FOR_SYSTEM_SPINNER`,children:[t,` `]}),(0,O.jsxs)(o,{dimColor:!0,children:[`v`,`0.0.23`,` `]})]}),(0,O.jsx)(o,{children:`…………………………………………………………………………………………………………………………………………………………`}),(0,O.jsx)(o,{children:` * █████▓▓░ `}),(0,O.jsx)(o,{children:` * ███▓░ ░░ `}),(0,O.jsx)(o,{children:` ░░░░░░ ███▓░ `}),(0,O.jsx)(o,{children:` ░░░ ░░░░░░░░░░ ███▓░ `}),(0,O.jsxs)(o,{children:[(0,O.jsx)(o,{children:` ░░░░░░░░░░░░░░░░░░░ `}),(0,O.jsx)(o,{bold:!0,children:`*`}),(0,O.jsx)(o,{children:` ██▓░░ ▓ `})]}),(0,O.jsx)(o,{children:` ░▓▓███▓▓░ `}),(0,O.jsx)(o,{dimColor:!0,children:` * ░░░░ `}),(0,O.jsx)(o,{dimColor:!0,children:` ░░░░░░░░ `}),(0,O.jsx)(o,{dimColor:!0,children:` ░░░░░░░░░░░░░░░░ `})]})}C(),T(),l();var M=(0,D.createContext)({marker:``});function N({children:e}){let{marker:t}=(0,D.useContext)(M);return(0,O.jsxs)(i,{gap:1,children:[(0,O.jsx)(o,{dimColor:!0,children:t}),(0,O.jsx)(i,{flexDirection:`column`,children:e})]})}l();var P=(0,D.createContext)({marker:``});function F({children:e}){let{marker:t}=(0,D.useContext)(P),n=0;for(let t of D.Children.toArray(e))!(0,D.isValidElement)(t)||t.type!==N||n++;let r=String(n).length;return(0,O.jsx)(i,{flexDirection:`column`,children:D.Children.map(e,(e,n)=>{if(!(0,D.isValidElement)(e)||e.type!==N)return e;let i=`${String(n+1).padStart(r)}.`,a=`${t}${i}`;return(0,O.jsx)(P.Provider,{value:{marker:a},children:(0,O.jsx)(M.Provider,{value:{marker:a},children:e})})})})}F.Item=N;var I=F;l(),f();function L({onDone:e}){let[t,s]=(0,D.useState)(0),[l,u]=r();(0,D.useEffect)(()=>{m(`tengu_began_setup`,{})},[]);function f(){if(t<S.length-1){let e=t+1;s(e),m(`tengu_onboarding_step`,{stepId:S[e]?.id})}else e()}function p(e){u(e),f()}let g=v(),y=(0,O.jsx)(i,{marginX:1,children:(0,O.jsx)(w,{onThemeSelect:p,showIntroText:!0,helpText:`To change this later, run /theme`,hideEscToCancel:!0,skipExitHandling:!0})}),b=(0,O.jsxs)(i,{flexDirection:`column`,gap:1,paddingLeft:1,children:[(0,O.jsx)(o,{bold:!0,children:`Before you start, keep in mind:`}),(0,O.jsx)(i,{flexDirection:`column`,width:70,children:(0,O.jsxs)(I,{children:[(0,O.jsxs)(I.Item,{children:[(0,O.jsx)(o,{children:`Always review changes before accepting`}),(0,O.jsxs)(o,{dimColor:!0,wrap:`wrap`,children:[`Work Mate can make mistakes — especially when running commands`,(0,O.jsx)(c,{}),`or editing files. You stay in control of every action.`,(0,O.jsx)(c,{})]})]}),(0,O.jsxs)(I.Item,{children:[(0,O.jsx)(o,{children:`Only use Work Mate on projects you trust`}),(0,O.jsxs)(o,{dimColor:!0,wrap:`wrap`,children:[`Untrusted code could contain prompt injection attacks.`,(0,O.jsx)(c,{}),(0,O.jsx)(a,{url:`https://code.workmate.com/docs/en/security`})]})]})]})}),(0,O.jsx)(E,{})]}),S=[];S.push({id:`theme`,component:y}),S.push({id:`security`,component:b}),h()&&S.push({id:`terminal-setup`,component:(0,O.jsxs)(i,{flexDirection:`column`,gap:1,paddingLeft:1,children:[(0,O.jsx)(o,{bold:!0,children:`Use Work Mate's terminal setup?`}),(0,O.jsxs)(i,{flexDirection:`column`,width:70,gap:1,children:[(0,O.jsxs)(o,{children:[`For the optimal coding experience, enable the recommended settings`,(0,O.jsx)(c,{}),`for your terminal:`,` `,d.terminal===`Apple_Terminal`?`Option+Enter for newlines and visual bell`:`Shift+Enter for newlines`]}),(0,O.jsx)(x,{options:[{label:`Yes, use recommended settings`,value:`install`},{label:`No, maybe later with /terminal-setup`,value:`no`}],onChange:e=>{e===`install`?_(l).catch(()=>{}).finally(f):f()},onCancel:()=>f()}),(0,O.jsx)(o,{dimColor:!0,children:g.pending?(0,O.jsxs)(O.Fragment,{children:[`Press `,g.keyName,` again to exit`]}):(0,O.jsx)(O.Fragment,{children:`Enter to confirm · Esc to skip`})})]})]})});let C=S[t],T=(0,D.useCallback)(()=>{t===S.length-1?e():f()},[t,S.length,e]),k=(0,D.useCallback)(()=>{f()},[t,S.length,e]);return n({"confirm:yes":T},{context:`Confirmation`,isActive:C?.id===`security`}),n({"confirm:no":k},{context:`Confirmation`,isActive:C?.id===`terminal-setup`}),(0,O.jsxs)(i,{flexDirection:`column`,children:[(0,O.jsx)(A,{}),(0,O.jsxs)(i,{flexDirection:`column`,marginTop:1,children:[C?.component,g.pending&&(0,O.jsx)(i,{padding:1,children:(0,O.jsxs)(o,{dimColor:!0,children:[`Press `,g.keyName,` again to exit`]})})]})]})}export{L as Onboarding};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./rolldown-runtime-DaDcL9Zw.js";import{bb as n}from"./loadAgentsDir-DlPbtIsS.js";import{Gr as r,I as i,P as a,ai as o,ot as s,t as c}from"./src-DL3w8VPk.js";import{t as l}from"./jsx-runtime-Bb4Xn-E0.js";import{S as u,_ as d,b as f}from"./startupProfiler-CJdr3SxP.js";function p(e){return e.startsWith(`file-`)?`+`:e.startsWith(`mcp-resource-`)?`◇`:e.startsWith(`agent-`)?`*`:`+`}function m(e){return e.startsWith(`file-`)||e.startsWith(`mcp-resource-`)||e.startsWith(`agent-`)}function h({suggestions:e,selectedSuggestion:t,maxColumnWidth:n,overlay:a}){let{rows:o}=s(),c=a?5:Math.min(6,Math.max(1,o-3));if(e.length===0)return null;let l=n??Math.max(...e.map(e=>r(e.displayText)))+5,u=Math.max(0,Math.min(t-Math.floor(c/2),e.length-c)),d=Math.min(u+c,e.length),f=e.slice(u,d);return(0,_.jsx)(i,{flexDirection:`column`,justifyContent:a?void 0:`flex-end`,children:f.map(n=>(0,_.jsx)(v,{item:n,maxColumnWidth:l,isSelected:n.id===e[t]?.id},n.id))})}var g,_,v,y,b=e((()=>{g=t(o(),1),n(),c(),d(),_=l(),v=(0,g.memo)(function({item:e,maxColumnWidth:t,isSelected:n}){let i=s().columns;if(m(e.id)){let t=p(e.id),o=n?`suggestion`:void 0,s=!n,c=e.id.startsWith(`file-`),l=e.id.startsWith(`mcp-resource-`),d=e.description?3:0,m;if(c){let t=e.description?Math.min(20,r(e.description)):0,n=i-2-4-d-t;m=f(e.displayText,n)}else m=l?u(e.displayText,30):e.displayText;let h=i-2-r(m)-d-4,g;if(e.description){let n=Math.max(0,h),r=u(e.description.replace(/\s+/g,` `),n);g=`${t} ${m} – ${r}`}else g=`${t} ${m}`;return(0,_.jsx)(a,{color:o,dimColor:s,wrap:`truncate`,children:g})}let o=Math.floor(i*.4),c=Math.min(t??r(e.displayText)+5,o),l=e.color||(n?`suggestion`:void 0),d=!n,h=e.displayText;r(h)>c-2&&(h=u(h,c-2));let g=h+` `.repeat(Math.max(0,c-r(h))),v=e.tag?`[${e.tag}] `:``,y=r(v),b=Math.max(0,i-c-y-4),x=e.description?u(e.description.replace(/\s+/g,` `),b):``;return(0,_.jsxs)(a,{wrap:`truncate`,children:[(0,_.jsx)(a,{color:l,dimColor:d,children:g}),v?(0,_.jsx)(a,{color:e.tag===`local`?`ansi:yellow`:void 0,dimColor:e.tag!==`local`,children:v}):null,(0,_.jsx)(a,{color:n?`suggestion`:void 0,dimColor:!n,children:x})]})}),y=(0,g.memo)(h)}));export{y as n,b as r,h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DaDcL9Zw.js";import{cw as t,gb as n,hb as r,ow as i}from"./loadAgentsDir-DlPbtIsS.js";import{I as a,P as o,t as s}from"./src-DL3w8VPk.js";import{t as c}from"./jsx-runtime-Bb4Xn-E0.js";import{Wt as l,qt as u}from"./settings-B2jvL8Dp.js";import{p as d,s as f}from"./config-C-Y2qtB2.js";import{i as p,o as m}from"./platform-BacQ6ACS.js";import{G as h,H as g,U as _}from"./model-BwBG0V1u.js";import{a as v,i as y,r as b}from"./terminalSetup-B_10N_gE.js";function x(){return f().editorMode===`vim`}function S(){return l.terminal===`Apple_Terminal`&&process.platform===`darwin`||v()?`shift + ⏎ for newline`:b()?`\\⏎ for newline`:`backslash (\\) + return (⏎) for newline`}function C(e,t){return t.ctrl||t.meta||t.escape||t.return||t.tab||t.backspace||t.delete||t.upArrow||t.downArrow||t.leftArrow||t.rightArrow||t.pageUp||t.pageDown||t.home||t.end?!1:e.length>0&&!/^\s/.test(e)&&!e.startsWith(`\x1B`)}var w=e((()=>{y(),d(),u()}));function T(e){return e.replace(/\+/g,` + `)}function E(e){let{dimColor:r,fixedWidth:i,gap:s,paddingX:c}=e,l=T(n(`app:toggleTranscript`,`Global`,`ctrl+o`)),u=T(n(`app:toggleTodos`,`Global`,`ctrl+t`)),d=T(n(`chat:undo`,`Chat`,`ctrl+_`)),f=T(n(`chat:stash`,`Chat`,`ctrl+s`)),m=T(n(`chat:cycleMode`,`Chat`,`shift+tab`)),g=T(n(`chat:modelPicker`,`Chat`,`alt+p`)),v=T(n(`chat:fastMode`,`Chat`,`alt+o`)),y=T(n(`chat:externalEditor`,`Chat`,`ctrl+g`));T(n(`app:toggleTerminal`,`Global`,`meta+j`));let b=T(n(`chat:imagePaste`,`Chat`,`ctrl+v`));return(0,D.jsxs)(a,{paddingX:c,flexDirection:`row`,gap:s,children:[(0,D.jsxs)(a,{flexDirection:`column`,width:i?24:void 0,children:[(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:`! for bash mode`})}),(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:`/ for commands`})}),(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:`@ for file paths`})}),(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:`& for background`})}),(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:`/btw for side question`})})]}),(0,D.jsxs)(a,{flexDirection:`column`,width:i?35:void 0,children:[(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:`double tap esc to clear input`})}),(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[m,` to auto-accept edits`]})}),(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[l,` for verbose output`]})}),(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[u,` to toggle tasks`]})}),(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:S()})})]}),(0,D.jsxs)(a,{flexDirection:`column`,children:[(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[d,` to undo`]})}),p()!==`windows`&&(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:`ctrl + z to suspend`})}),(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[b,` to paste images`]})}),(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[g,` to switch model`]})}),h()&&_()&&(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[v,` to toggle fast mode`]})}),(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[f,` to stash prompt`]})}),(0,D.jsx)(a,{children:(0,D.jsxs)(o,{dimColor:r,children:[y,` to edit in $EDITOR`]})}),t()&&(0,D.jsx)(a,{children:(0,D.jsx)(o,{dimColor:r,children:`/keybindings to customize`})})]})]})}var D,O=e((()=>{s(),m(),i(),r(),g(),w(),D=c()}));export{x as a,C as i,O as n,w as r,E as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-DaDcL9Zw.js";import{l as t,o as n,s as r}from"./envUtils-DfkgIdYf.js";import{n as i,t as a}from"./defineProperty-C-QyHrDq.js";import{$ as o,Aw as s,Cs as c,DS as ee,E_ as l,FC as u,Fa as d,Gr as f,Ks as p,La as te,Lw as m,Mh as h,Nb as g,Nh as ne,Ni as _,PC as v,PS as y,Pb as re,Qd as ie,Qp as ae,Rw as oe,Ss as b,Wu as x,X as S,Xd as C,Y as se,Yi as w,Zn as T,_n as ce,_r as le,aC as ue,aS as E,at as de,gn as fe,hg as D,im as O,it as pe,jh as k,ji as me,ka as A,mg as he,ny as j,o_ as M,pa as ge,qg as _e,qs as ve,qu as ye,sC as N,tm as be,ty as P,w_ as xe,ws as F,xs as Se}from"./loadAgentsDir-DlPbtIsS.js";import{Kr as Ce,qr as we}from"./src-DL3w8VPk.js";import{It as I,Lt as Te,at as Ee,mt as L,q as R,st as z,vt as B}from"./state-B4jiUise.js";import{n as De,t as Oe}from"./cwd-Pa83R95t.js";import{J as V,Z as H,d as ke,h as Ae}from"./settings-B2jvL8Dp.js";import{D as je,O as Me,p as Ne,s as Pe}from"./config-C-Y2qtB2.js";import{i as Fe,o as U,q as Ie}from"./log-D2TIwHBV.js";import{H as Le,L as W,_ as Re,d as G,o as ze}from"./model-BwBG0V1u.js";import{at as K,bn as Be,nt as Ve,vn as He}from"./prompt-mM79EGnT.js";import{n as Ue,o as We,r as q}from"./MessageSelector-C0_iw7SI.js";import{n as Ge,t as J}from"./systemTheme-Ceakddth.js";import{randomUUID as Y}from"crypto";n(),i(),Ce(),I(),De(),U(),Ae(),Me(),He(),Ne(),m(),Le(),v(),y(),l(),M(),K(),D(),O(),ie(),p(),d(),w(),_(),le(),fe(),S(),de(),ne(),j(),G(),_e(),x();async function Ke({tools:e,mainLoopModel:t,additionalWorkingDirectories:n,mcpClients:r,customSystemPrompt:i}){let[a,o,s]=await Promise.all([i===void 0?pe(e,t,n,r):Promise.resolve([]),h(),i===void 0?k():Promise.resolve({})]);return{defaultSystemPrompt:a,userContext:o,systemContext:s}}async function qe({tools:e,commands:t,mcpClients:n,messages:r,readFileState:i,getAppState:a,setAppState:o,customSystemPrompt:s,appendSystemPrompt:c,thinkingConfig:ee,agents:l}){let u=ze(),d=a(),{defaultSystemPrompt:f,userContext:p,systemContext:te}=await Ke({tools:e,mainLoopModel:u,additionalWorkingDirectories:Array.from(d.toolPermissionContext.additionalWorkingDirectories.keys()),mcpClients:n,customSystemPrompt:s}),m=ue([...s===void 0?f:[s],...c?[c]:[]]),h=r.at(-1),g=h?.type===`assistant`&&h.message.stop_reason===null?r.slice(0,-1):r;return{systemPrompt:m,userContext:p,systemContext:te,toolUseContext:{options:{commands:t,debug:!1,mainLoopModel:u,tools:e,verbose:!1,thinkingConfig:ee??(ye()===!1?{type:`disabled`}:{type:`adaptive`}),mcpClients:n,mcpResources:{},isNonInteractiveSession:!0,agentDefinitions:{activeAgents:l,allAgents:[]},customSystemPrompt:s,appendSystemPrompt:c},abortController:P(),readFileState:i,getAppState:a,setAppState:o,messages:g,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:()=>{},updateAttributionState:()=>{}},forkContextMessages:g}}H(),g(),A(),J(),s();function X(e){return e.flatMap(e=>{if(!e)return[];switch(e.type){case`assistant`:return[{type:`assistant`,message:e.message,uuid:e.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case`user`:return[{type:`user`,message:e.message,uuid:e.uuid??Y(),timestamp:e.timestamp??new Date().toISOString(),isMeta:e.isSynthetic}];default:return[]}})}function Je(e){let t=e.preservedSegment;return{trigger:e.trigger,pre_tokens:e.preTokens,...t&&{preserved_segment:{head_uuid:t.headUuid,anchor_uuid:t.anchorUuid,tail_uuid:t.tailUuid}}}}function Ye(e,t){let n=E({content:we(e).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,`$1`).replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,`$1`).trim()});return{type:`assistant`,content:n.message?.content,message:n.message,parent_tool_use_id:null,session_id:z(),uuid:t}}function Z(e){if(e)return{type:`rate_limit`,status:e.status,...e.resetsAt!==void 0&&{resetsAt:e.resetsAt},...e.rateLimitType!==void 0&&{rateLimitType:e.rateLimitType},...e.utilization!==void 0&&{utilization:e.utilization},...e.overageStatus!==void 0&&{overageStatus:e.overageStatus},...e.overageResetsAt!==void 0&&{overageResetsAt:e.overageResetsAt},...e.overageDisabledReason!==void 0&&{overageDisabledReason:e.overageDisabledReason},...e.isUsingOverage!==void 0&&{isUsingOverage:e.isUsingOverage},...e.surpassedThreshold!==void 0&&{surpassedThreshold:e.surpassedThreshold}}}I();function Xe(e){return e===`Agent`?V:e}function Ze(e){let t=ke()?.outputStyle??`default`,n={type:`system`,subtype:`init`,cwd:Oe(),session_id:z(),tools:e.tools.map(e=>Xe(e.name)),mcp_servers:e.mcpClients.map(e=>({name:e.name,status:e.type})),model:e.model,permissionMode:e.permissionMode,slash_commands:e.commands.filter(e=>e.userInvocable!==!1).map(e=>e.name),apiKeySource:process.env.ANTHROPIC_API_KEY?`ANTHROPIC_API_KEY`:`none`,betas:Ee(),claude_code_version:`0.0.23`,output_style:t,agents:e.agents.map(e=>e.agentType),skills:e.skills.filter(e=>e.userInvocable!==!1).map(e=>e.name),plugins:e.plugins.map(e=>({name:e.name,path:e.path,source:e.source})),uuid:Y()};return n.fast_mode_state=W(e.model,e.fastMode),n}I(),Ce(),Ie(),j(),De(),Le(),w(),G(),_e(),x(),b();var Qe=()=>{try{return q(),e(Ue)}catch{return null}},Q=class{constructor(e){a(this,`config`,void 0),a(this,`mutableMessages`,void 0),a(this,`abortController`,void 0),a(this,`permissionDenials`,void 0),a(this,`totalUsage`,void 0),a(this,`hasHandledOrphanedPermission`,!1),a(this,`readFileState`,void 0),a(this,`discoveredSkillNames`,new Set),a(this,`loadedNestedMemoryPaths`,new Set),this.config=e,this.mutableMessages=e.initialMessages??[],this.abortController=e.abortController??P(),this.permissionDenials=[],this.readFileState=e.readFileCache,this.totalUsage=N}async*submitMessage(e,n){let{cwd:i,commands:a,tools:s,mcpClients:l,verbose:d=!1,thinkingConfig:p,maxTurns:m,maxBudgetUsd:h,taskBudget:g,canUseTool:ne,customSystemPrompt:_,appendSystemPrompt:v,userSpecifiedModel:y,fallbackModel:ie,jsonSchema:b,getAppState:x,setAppState:S,replayUserMessages:w=!1,includePartialMessages:le=!1,agents:E=[],setSDKStatus:de,orphanedPermission:fe}=this.config;this.discoveredSkillNames.clear(),this.permissionDenials=[],re(i);let D=!Te(),O=Date.now(),pe=async(e,t,n,r,i,a)=>{let o=await ne(e,t,n,r,i,a);return o.behavior!==`allow`&&this.permissionDenials.push({type:`permission_denial`,tool_name:Xe(e.name),tool_use_id:i,tool_input:t}),o},k=x(),A=y?Re(y):ze(),j=p||(ye()===!1?{type:`disabled`}:{type:`adaptive`});C(`before_getSystemPrompt`);let M=typeof _==`string`?_:void 0,{defaultSystemPrompt:_e,userContext:P,systemContext:xe}=await Ke({tools:s,mainLoopModel:A,additionalWorkingDirectories:Array.from(k.toolPermissionContext.additionalWorkingDirectories.keys()),mcpClients:l,customSystemPrompt:M});C(`after_getSystemPrompt`);let Ce={...P},I=M!==void 0&&je()?await oe():null,Ee=ue([...M===void 0?_e:[M],...I?[I]:[],...v?[v]:[]]),De=s.some(e=>Be(e,Ve));b&&De&&ce(S,z());let V={messages:this.mutableMessages,setMessages:e=>{this.mutableMessages=e(this.mutableMessages)},onChangeAPIKey:()=>{},handleElicitation:this.config.handleElicitation,options:{commands:a,debug:!1,tools:s,verbose:d,mainLoopModel:A,thinkingConfig:j,mcpClients:l,mcpResources:{},ideInstallationStatus:null,isNonInteractiveSession:!0,customSystemPrompt:_,appendSystemPrompt:v,agentDefinitions:{activeAgents:E,allAgents:[]},theme:Ge(Pe().theme),maxBudgetUsd:h},getAppState:x,setAppState:S,abortController:this.abortController,readFileState:this.readFileState,nestedMemoryAttachmentTriggers:new Set,loadedNestedMemoryPaths:this.loadedNestedMemoryPaths,dynamicSkillDirTriggers:new Set,discoveredSkillNames:this.discoveredSkillNames,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:e=>{S(t=>{let n=e(t.fileHistory);return n===t.fileHistory?t:{...t,fileHistory:n}})},updateAttributionState:e=>{S(t=>{let n=e(t.attribution);return n===t.attribution?t:{...t,attribution:n}})},setSDKStatus:de};if(fe&&!this.hasHandledOrphanedPermission){this.hasHandledOrphanedPermission=!0;for await(let e of Se(fe,s,this.mutableMessages,V))yield e}let{messages:H,shouldQuery:ke,allowedTools:Ae,model:Me,resultText:Ne}=await We({input:e,mode:`prompt`,setToolJSX:()=>{},context:{...V,messages:this.mutableMessages},messages:this.mutableMessages,uuid:n?.uuid,isMeta:n?.isMeta,querySource:`sdk`});this.mutableMessages.push(...H);let U=[...this.mutableMessages];if(D&&H.length>0){let e=f(U);r()||(await e,(t(process.env.CLAUDE_CODE_EAGER_FLUSH)||t(process.env.CLAUDE_CODE_IS_COWORK))&&await T())}let Ie=Qe(),Le=H.filter(e=>e.type===`user`&&!e.isMeta&&!e.toolUseResult&&(Ie?.selectableUserMessagesFilter(e)??!0)||e.type===`system`&&e.subtype===`compact_boundary`),G=w?Le:[];S(e=>({...e,toolPermissionContext:{...e.toolPermissionContext,alwaysAllowRules:{...e.toolPermissionContext.alwaysAllowRules,command:Ae}}}));let K=Me??A;V={messages:U,setMessages:()=>{},onChangeAPIKey:()=>{},handleElicitation:this.config.handleElicitation,options:{commands:a,debug:!1,tools:s,verbose:d,mainLoopModel:K,thinkingConfig:j,mcpClients:l,mcpResources:{},ideInstallationStatus:null,isNonInteractiveSession:!0,customSystemPrompt:_,appendSystemPrompt:v,theme:Ge(Pe().theme),agentDefinitions:{activeAgents:E,allAgents:[]},maxBudgetUsd:h},getAppState:x,setAppState:S,abortController:this.abortController,readFileState:this.readFileState,nestedMemoryAttachmentTriggers:new Set,loadedNestedMemoryPaths:this.loadedNestedMemoryPaths,dynamicSkillDirTriggers:new Set,discoveredSkillNames:this.discoveredSkillNames,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:V.updateFileHistoryState,updateAttributionState:V.updateAttributionState,setSDKStatus:de},C(`before_skills_plugins`);let[He,{enabled:Ue}]=await Promise.all([me(Oe()),te()]);if(C(`after_skills_plugins`),yield Ze({tools:s,mcpClients:l,model:K,permissionMode:k.toolPermissionContext.mode,commands:a,agents:E,skills:He,plugins:Ue,fastMode:k.fastMode}),C(`system_message_yielded`),!ke){for(let e of H)if(e.type===`user`&&typeof e.message.content==`string`&&(e.message.content.includes(`<local-command-stdout>`)||e.message.content.includes(`<local-command-stderr>`)||e.isCompactSummary)&&(yield{type:`user`,message:{...e.message,content:we(e.message.content)},session_id:z(),parent_tool_use_id:null,uuid:e.uuid,timestamp:e.timestamp,isReplay:!e.isCompactSummary,isSynthetic:e.isMeta||e.isVisibleInTranscriptOnly}),e.type===`system`&&e.subtype===`local_command`&&typeof e.content==`string`&&(e.content.includes(`<local-command-stdout>`)||e.content.includes(`<local-command-stderr>`))&&(yield Ye(e.content,e.uuid)),e.type===`system`&&e.subtype===`compact_boundary`){let t=e;yield{type:`system`,subtype:`compact_boundary`,session_id:z(),uuid:e.uuid,compact_metadata:Je(t.compactMetadata)}}D&&(await f(U),(t(process.env.CLAUDE_CODE_EAGER_FLUSH)||t(process.env.CLAUDE_CODE_IS_COWORK))&&await T()),yield{type:`result`,subtype:`success`,is_error:!1,duration_ms:Date.now()-O,duration_api_ms:L(),num_turns:U.length-1,result:Ne??``,stop_reason:null,session_id:z(),total_cost_usd:B(),usage:this.totalUsage,modelUsage:R(),permission_denials:this.permissionDenials,fast_mode_state:W(K,k.fastMode),uuid:Y()};return}if(ae()&&D){let e=Qe()?.selectableUserMessagesFilter??(e=>!0);H.filter(e).forEach(e=>{be(e=>{S(t=>({...t,fileHistory:e(t.fileHistory)}))},e.uuid)})}let q=N,J=1,qe=!1,X,Z=null,Q=Fe().at(-1),$e=b?ge(this.mutableMessages,Ve):0;for await(let e of ve({messages:U,systemPrompt:Ee,userContext:Ce,systemContext:xe,canUseTool:pe,toolUseContext:V,fallbackModel:ie,querySource:`sdk`,maxTurns:m,taskBudget:g})){if(e.type===`assistant`||e.type===`user`||e.type===`system`&&e.subtype===`compact_boundary`){if(D&&e.type===`system`&&e.subtype===`compact_boundary`){let t=e.compactMetadata?.preservedSegment?.tailUuid;if(t){let e=this.mutableMessages.findLastIndex(e=>e.uuid===t);e!==-1&&await f(this.mutableMessages.slice(0,e+1))}}if(U.push(e),D&&(e.type===`assistant`?f(U):await f(U)),!qe&&G.length>0){qe=!0;for(let e of G)e.type===`user`&&(yield{type:`user`,message:e.message,session_id:z(),parent_tool_use_id:null,uuid:e.uuid,timestamp:e.timestamp,isReplay:!0})}}switch(e.type===`user`&&J++,e.type){case`tombstone`:break;case`assistant`:{let t=e,n=t.message?.stop_reason;n!=null&&(Z=n),this.mutableMessages.push(t),yield*F(t);break}case`progress`:{let t=e;this.mutableMessages.push(t),D&&(U.push(t),f(U)),yield*F(t);break}case`user`:{let t=e;this.mutableMessages.push(t),yield*F(t);break}case`stream_event`:{let t=e.event;if(t.type===`message_start`){q=N;let e=t.message;q=o(q,e.usage)}if(t.type===`message_delta`){q=o(q,t.usage);let e=t.delta;e.stop_reason!=null&&(Z=e.stop_reason)}t.type===`message_stop`&&(this.totalUsage=se(this.totalUsage,q)),le&&(yield{type:`stream_event`,event:t,session_id:z(),parent_tool_use_id:null,uuid:Y()});break}case`attachment`:{let n=e;this.mutableMessages.push(n),D&&(U.push(n),f(U));let r=n.attachment;if(r.type===`structured_output`)X=r.data;else if(r.type===`max_turns_reached`){D&&(t(process.env.CLAUDE_CODE_EAGER_FLUSH)||t(process.env.CLAUDE_CODE_IS_COWORK))&&await T(),yield{type:`result`,subtype:`error_max_turns`,duration_ms:Date.now()-O,duration_api_ms:L(),is_error:!0,num_turns:r.turnCount,stop_reason:Z,session_id:z(),total_cost_usd:B(),usage:this.totalUsage,modelUsage:R(),permission_denials:this.permissionDenials,fast_mode_state:W(K,k.fastMode),uuid:Y(),errors:[`Reached maximum number of turns (${r.maxTurns})`]};return}else w&&r.type===`queued_command`&&(yield{type:`user`,message:{role:`user`,content:r.prompt},session_id:z(),parent_tool_use_id:null,uuid:r.source_uuid||n.uuid,timestamp:n.timestamp,isReplay:!0});break}case`stream_request_start`:break;case`system`:{let t=e,n=this.config.snipReplay?.(t,this.mutableMessages);if(n!==void 0){n.executed&&(this.mutableMessages.length=0,this.mutableMessages.push(...n.messages));break}if(this.mutableMessages.push(t),t.subtype===`compact_boundary`&&t.compactMetadata){let e=t,n=this.mutableMessages.length-1;n>0&&this.mutableMessages.splice(0,n);let r=U.length-1;r>0&&U.splice(0,r),yield{type:`system`,subtype:`compact_boundary`,session_id:z(),uuid:t.uuid,compact_metadata:Je(e.compactMetadata)}}if(t.subtype===`api_error`){let e=t;yield{type:`system`,subtype:`api_retry`,attempt:e.retryAttempt,max_retries:e.maxRetries,retry_delay_ms:e.retryInMs,error_status:e.error.status??null,error:he(e.error),session_id:z(),uuid:t.uuid}}break}case`tool_use_summary`:{let t=e;yield{type:`tool_use_summary`,summary:t.summary,preceding_tool_use_ids:t.precedingToolUseIds,session_id:z(),uuid:t.uuid};break}}if(h!==void 0&&B()>=h){D&&(t(process.env.CLAUDE_CODE_EAGER_FLUSH)||t(process.env.CLAUDE_CODE_IS_COWORK))&&await T(),yield{type:`result`,subtype:`error_max_budget_usd`,duration_ms:Date.now()-O,duration_api_ms:L(),is_error:!0,num_turns:J,stop_reason:Z,session_id:z(),total_cost_usd:B(),usage:this.totalUsage,modelUsage:R(),permission_denials:this.permissionDenials,fast_mode_state:W(K,k.fastMode),uuid:Y(),errors:[`Reached maximum budget ($${h}). Increase the limit with --max-budget-usd or start a new session.`]};return}if(e.type===`user`&&b){let e=ge(this.mutableMessages,Ve)-$e,n=parseInt(process.env.MAX_STRUCTURED_OUTPUT_RETRIES||`5`,10);if(e>=n){D&&(t(process.env.CLAUDE_CODE_EAGER_FLUSH)||t(process.env.CLAUDE_CODE_IS_COWORK))&&await T(),yield{type:`result`,subtype:`error_max_structured_output_retries`,duration_ms:Date.now()-O,duration_api_ms:L(),is_error:!0,num_turns:J,stop_reason:Z,session_id:z(),total_cost_usd:B(),usage:this.totalUsage,modelUsage:R(),permission_denials:this.permissionDenials,fast_mode_state:W(K,k.fastMode),uuid:Y(),errors:[`Failed to provide valid structured output after ${n} attempts`]};return}}}let $=U.findLast(e=>e.type===`assistant`||e.type===`user`),et=$?.type??`undefined`,tt=$?.type===`assistant`?u($.message.content)?.type??`none`:`n/a`;if(D&&(t(process.env.CLAUDE_CODE_EAGER_FLUSH)||t(process.env.CLAUDE_CODE_IS_COWORK))&&await T(),!c($,Z)){yield{type:`result`,subtype:`error_during_execution`,duration_ms:Date.now()-O,duration_api_ms:L(),is_error:!0,num_turns:J,stop_reason:Z,session_id:z(),total_cost_usd:B(),usage:this.totalUsage,modelUsage:R(),permission_denials:this.permissionDenials,fast_mode_state:W(K,k.fastMode),uuid:Y(),errors:(()=>{let e=Fe(),t=Q?e.lastIndexOf(Q)+1:0;return[`[ede_diagnostic] result_type=${et} last_content_type=${tt} stop_reason=${Z}`,...e.slice(t).map(e=>e.error)]})()};return}let nt=``,rt=!1;if($.type===`assistant`){let e=u($.message.content);e?.type===`text`&&!ee.has(e.text)&&(nt=e.text),rt=!!$.isApiErrorMessage}yield{type:`result`,subtype:`success`,is_error:rt,duration_ms:Date.now()-O,duration_api_ms:L(),num_turns:J,result:nt,stop_reason:Z,session_id:z(),total_cost_usd:B(),usage:this.totalUsage,modelUsage:R(),permission_denials:this.permissionDenials,structured_output:X,fast_mode_state:W(K,k.fastMode),uuid:Y()}}interrupt(){this.abortController.abort()}resetAbortController(){this.abortController=P()}getAbortSignal(){return this.abortController.signal}getMessages(){return this.mutableMessages}getReadFileState(){return this.readFileState}getSessionId(){return z()}setModel(e){this.config.userSpecifiedModel=e}};async function*$e({commands:e,prompt:t,promptUuid:n,isMeta:r,cwd:i,tools:a,mcpClients:o,verbose:s=!1,thinkingConfig:c,maxTurns:ee,maxBudgetUsd:l,taskBudget:u,canUseTool:d,mutableMessages:f=[],getReadFileCache:p,setReadFileCache:te,customSystemPrompt:m,appendSystemPrompt:h,userSpecifiedModel:g,fallbackModel:ne,jsonSchema:_,getAppState:v,setAppState:y,abortController:re,replayUserMessages:ie=!1,includePartialMessages:ae=!1,handleElicitation:oe,agents:b=[],setSDKStatus:x,orphanedPermission:S}){let C=new Q({cwd:i,tools:a,commands:e,mcpClients:o,agents:b??[],canUseTool:d,getAppState:v,setAppState:y,initialMessages:f,readFileCache:xe(p()),customSystemPrompt:m,appendSystemPrompt:h,userSpecifiedModel:g,fallbackModel:ne,thinkingConfig:c,maxTurns:ee,maxBudgetUsd:l,taskBudget:u,jsonSchema:_,verbose:s,handleElicitation:oe,replayUserMessages:ie,includePartialMessages:ae,setSDKStatus:x,abortController:re,orphanedPermission:S});try{yield*C.submitMessage(t,{uuid:n,isMeta:r})}finally{te(C.getReadFileState())}}export{qe as a,Z as i,$e as n,X as r,Q as t};
|